browserstack-node-sdk 1.40.1 → 1.40.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 (175) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +2 -2
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test_before.setup.js +1 -1
  67. package/src/bin/launcher/launcher.js +1 -1
  68. package/src/bin/load/index.js +1 -1
  69. package/src/bin/load/load/index.js +46 -27
  70. package/src/bin/load/load/loadUtils.js +37 -31
  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/processHelper.js +1 -1
  154. package/src/helpers/request-spy.js +1 -1
  155. package/src/helpers/setKeepAlive.js +1 -1
  156. package/src/helpers/test-observability/constants.js +1 -1
  157. package/src/helpers/test-observability/error-handler.js +1 -1
  158. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  159. package/src/helpers/test-observability/sessionHandler.js +1 -1
  160. package/src/helpers/test-observability/utils.js +1 -1
  161. package/src/helpers/test-orchestration/constants.js +1 -1
  162. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  163. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  164. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  165. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  166. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  167. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  168. package/src/helpers/testhub/constants.js +1 -1
  169. package/src/helpers/testhub/testhubHandler.js +1 -1
  170. package/src/helpers/testhub/utils.js +1 -1
  171. package/src/helpers/timeoutPromise.js +1 -1
  172. package/src/helpers/utilities.js +1 -1
  173. package/src/helpers/w3cMapping.js +1 -1
  174. package/src/hubAllocationMethods.js +1 -1
  175. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x378f76=a15_0x2b52;(function(_0x11d667,_0x8981bc){const _0x508ef4=a15_0x2b52,_0x5b86da=_0x11d667();while(!![]){try{const _0x22b8fe=-parseInt(_0x508ef4(0x111))/0x1+-parseInt(_0x508ef4(0xd3))/0x2*(parseInt(_0x508ef4(0xdd))/0x3)+parseInt(_0x508ef4(0xdf))/0x4+parseInt(_0x508ef4(0xf8))/0x5*(-parseInt(_0x508ef4(0xc6))/0x6)+parseInt(_0x508ef4(0x10f))/0x7+-parseInt(_0x508ef4(0xca))/0x8+-parseInt(_0x508ef4(0xe8))/0x9;if(_0x22b8fe===_0x8981bc)break;else _0x5b86da['push'](_0x5b86da['shift']());}catch(_0x591985){_0x5b86da['push'](_0x5b86da['shift']());}}}(a15_0x47ff,0x4581f));const fs=require('fs'),got=require(a15_0x378f76(0xec)),{table}=require('table'),{v4:uuidv4}=require(a15_0x378f76(0xe3)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x378f76(0xf5)),{getCredentialsPath,getAuthHeader}=require(a15_0x378f76(0x114)),{sendInstrumentationEvent}=require(a15_0x378f76(0xfb));function a15_0x47ff(){const _0x4630c4=['Browserstack','error','grid-name','RWmwa','parse','pUjvj','10534WYNENi','ceNhZ','ERROR','grids','description','running','body','\x0aFound\x20the\x20following\x20grids:\x0a','clusterName','init-not-called','3dMIRlu','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','2255308iEBDcb','push','INFO','FDIpq','uuid','USShR','wdcZk','epilogue','ccUQU','5657202kZTSAC','name','exit','bstackUsername','got','/packages/cli/get-grids','handler','cluster-name','argv','HVoNI','sDJpc','status','grid-id','../../config/constants','xpeTj','RAGtw','13305lrGMqB','unknown-error','server-error','../../utils/instrumentationUtils','log','forEach','UVBIH','GCxfj','ODsrc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','options','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','readFileSync','username','Dqqtj','requestId','builder','password','all-grids','command','PJNuV','/packages/cli/get-all-grids','statusCode','3816974XzQOlE','help','37752MQOlPl','boolean','desc','../../utils/utilityMethods','kNubT','JfEkr','90unKQiq','Failed\x20to\x20list\x20resources!\x20Error:\x20','aujyg','allGrids','903152LPhWWZ','queued','ucADM'];a15_0x47ff=function(){return _0x4630c4;};return a15_0x47ff();}function a15_0x2b52(_0x3c1bb2,_0x1ea74c){const _0x47ff87=a15_0x47ff();return a15_0x2b52=function(_0x2b5235,_0x159960){_0x2b5235=_0x2b5235-0xc4;let _0x2ce052=_0x47ff87[_0x2b5235];return _0x2ce052;},a15_0x2b52(_0x3c1bb2,_0x1ea74c);}exports[a15_0x378f76(0x10b)]=a15_0x378f76(0xd6),exports[a15_0x378f76(0x113)]=a15_0x378f76(0xde),exports[a15_0x378f76(0x108)]=function(_0x27d0b4){const _0x415bcb=a15_0x378f76,_0x4973a5={};_0x4973a5['UVBIH']=_0x415bcb(0x103),_0x4973a5[_0x415bcb(0xd4)]=_0x415bcb(0x112),_0x4973a5['sSqcV']=_0x415bcb(0x110);const _0x37c89d=_0x4973a5,_0x5250b7={};_0x5250b7[_0x415bcb(0xd7)]=_0x37c89d[_0x415bcb(0xfe)],_0x5250b7['type']=_0x37c89d[_0x415bcb(0xd4)];const _0x20dee6={};return _0x20dee6[_0x415bcb(0x10a)]=_0x5250b7,_0x27d0b4['usage'](HELP_HEADER_MESSAGE['list']['grid'])[_0x415bcb(0xe6)](HELP_FOOTER_MESSAGE)[_0x415bcb(0x102)](_0x20dee6)[_0x415bcb(0x110)](_0x37c89d['sSqcV'])[_0x415bcb(0xf0)];},exports[a15_0x378f76(0xee)]=async function(_0x55a95a){const _0x2714b3=a15_0x378f76,_0xad0908={'wdcZk':function(_0x5df291){return _0x5df291();},'ccUQU':function(_0x2b6c7a){return _0x2b6c7a();},'ODsrc':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','JfEkr':function(_0x4d4c95,_0x48f2ed,_0x186812,_0x35aad2,_0x547523,_0x5762bd,_0x213fe1){return _0x4d4c95(_0x48f2ed,_0x186812,_0x35aad2,_0x547523,_0x5762bd,_0x213fe1);},'ucADM':'list-grids-called','PJNuV':_0x2714b3(0xdc),'CNRbw':'GET','Dqqtj':function(_0x4cf1c2,_0x556d6a,_0x3a1949){return _0x4cf1c2(_0x556d6a,_0x3a1949);},'pUjvj':function(_0x150c7d,_0x3aa730){return _0x150c7d!==_0x3aa730;},'QhAfd':function(_0x11385c,_0x18308a){return _0x11385c===_0x18308a;},'aujyg':_0x2714b3(0xda),'USShR':_0x2714b3(0xf4),'GCxfj':_0x2714b3(0xcf),'RAGtw':_0x2714b3(0xf3),'sDJpc':_0x2714b3(0xd8),'OTAos':_0x2714b3(0xcb),'xpeTj':_0x2714b3(0xef),'FDIpq':function(_0x5a62cd,_0x1a26cf){return _0x5a62cd(_0x1a26cf);},'HVoNI':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','RWmwa':'unauthorised','HqorN':function(_0x117ed7,_0x1633bd,_0xff7a53,_0x581561,_0x584fac,_0x10fc75,_0x36111d){return _0x117ed7(_0x1633bd,_0xff7a53,_0x581561,_0x584fac,_0x10fc75,_0x36111d);},'riljm':_0x2714b3(0xfa),'kNubT':_0x2714b3(0xf9)};try{global_registry[_0x2714b3(0x107)]=_0xad0908['wdcZk'](uuidv4);!fs['existsSync'](_0xad0908[_0x2714b3(0xe7)](getCredentialsPath))&&(console[_0x2714b3(0xce)](_0xad0908[_0x2714b3(0x100)]),await _0xad0908['JfEkr'](sendInstrumentationEvent,_0x55a95a,_0xad0908['ucADM'],messageTypes[_0x2714b3(0xd5)],_0xad0908[_0x2714b3(0x10c)],null,_0x55a95a),process[_0x2714b3(0xea)](0x1));const _0x1c41b0=JSON[_0x2714b3(0xd1)](fs[_0x2714b3(0x104)](_0xad0908[_0x2714b3(0xe5)](getCredentialsPath)));let _0x31b39b='https://'+AG_API_URL+_0x2714b3(0xed);_0x55a95a[_0x2714b3(0xc9)]&&(_0x31b39b='https://'+AG_API_URL+_0x2714b3(0x10d));const _0x8fd4d6={'method':_0xad0908['CNRbw'],'headers':_0xad0908[_0x2714b3(0x106)](getAuthHeader,_0x1c41b0[_0x2714b3(0xcd)][_0x2714b3(0x105)],_0x1c41b0[_0x2714b3(0xcd)]['password']),'throwHttpErrors':![]};global_registry[_0x2714b3(0xeb)]=_0x1c41b0['Browserstack'][_0x2714b3(0x105)],global_registry['bstackAccesskey']=_0x1c41b0[_0x2714b3(0xcd)][_0x2714b3(0x109)],_0xad0908[_0x2714b3(0xc5)](sendInstrumentationEvent,_0x55a95a,_0xad0908[_0x2714b3(0xcc)],messageTypes[_0x2714b3(0xe1)],null,null,_0x55a95a);const _0x5953ae=await _0xad0908[_0x2714b3(0x106)](got,_0x31b39b,_0x8fd4d6);if(_0xad0908[_0x2714b3(0xd2)](_0x5953ae,null)&&_0xad0908['pUjvj'](_0x5953ae,undefined)&&_0xad0908['QhAfd'](_0x5953ae['statusCode'],0xc8)){const _0x3f4235=JSON['parse'](_0x5953ae[_0x2714b3(0xd9)]);console[_0x2714b3(0xfc)](_0xad0908[_0x2714b3(0xc8)]);const _0x477a36=[];_0x477a36[_0x2714b3(0xe0)]([_0xad0908[_0x2714b3(0xe4)],_0xad0908[_0x2714b3(0xff)],_0xad0908[_0x2714b3(0xf7)],_0xad0908[_0x2714b3(0xf2)],_0xad0908['OTAos'],_0xad0908[_0x2714b3(0xf6)]]),_0x3f4235[_0x2714b3(0xfd)](_0x40b2c3=>{const _0xac8023=_0x2714b3;_0x477a36[_0xac8023(0xe0)]([_0x40b2c3['id'],_0x40b2c3[_0xac8023(0xe9)],_0x40b2c3[_0xac8023(0xf3)],_0x40b2c3['running'],_0x40b2c3['queued'],_0x40b2c3[_0xac8023(0xdb)]]);}),console[_0x2714b3(0xfc)](_0xad0908[_0x2714b3(0xe2)](table,_0x477a36)),process[_0x2714b3(0xea)](0x0);}_0xad0908['QhAfd'](_0x5953ae[_0x2714b3(0x10e)],0x191)&&(console[_0x2714b3(0xce)](_0xad0908[_0x2714b3(0xf1)]),await _0xad0908[_0x2714b3(0xc5)](sendInstrumentationEvent,_0x55a95a,_0xad0908[_0x2714b3(0xcc)],messageTypes[_0x2714b3(0xd5)],_0xad0908[_0x2714b3(0xd0)],null,_0x55a95a),process['exit'](0x1)),console[_0x2714b3(0xce)](_0x2714b3(0x101)+JSON['stringify'](_0x5953ae)),await _0xad0908['HqorN'](sendInstrumentationEvent,_0x55a95a,_0xad0908[_0x2714b3(0xcc)],messageTypes[_0x2714b3(0xd5)],_0xad0908['riljm'],_0x5953ae,_0x55a95a),process[_0x2714b3(0xea)](0x1);}catch(_0x44deab){console[_0x2714b3(0xce)](_0x2714b3(0xc7)+_0x44deab['stack']),await _0xad0908[_0x2714b3(0xc5)](sendInstrumentationEvent,_0x55a95a,_0xad0908['ucADM'],messageTypes['ERROR'],_0xad0908[_0x2714b3(0xc4)],_0x44deab,_0x55a95a),process[_0x2714b3(0xea)](0x1);}};
1
+ const a15_0x100049=a15_0x3c1e;(function(_0x13565d,_0x3e0554){const _0x2127fb=a15_0x3c1e,_0x59eae5=_0x13565d();while(!![]){try{const _0x1cc253=parseInt(_0x2127fb(0x115))/0x1*(parseInt(_0x2127fb(0xcf))/0x2)+-parseInt(_0x2127fb(0x11f))/0x3+parseInt(_0x2127fb(0xd2))/0x4+-parseInt(_0x2127fb(0x118))/0x5*(-parseInt(_0x2127fb(0xf9))/0x6)+-parseInt(_0x2127fb(0xfa))/0x7*(parseInt(_0x2127fb(0x10b))/0x8)+parseInt(_0x2127fb(0x105))/0x9*(-parseInt(_0x2127fb(0x112))/0xa)+-parseInt(_0x2127fb(0x121))/0xb*(-parseInt(_0x2127fb(0x10a))/0xc);if(_0x1cc253===_0x3e0554)break;else _0x59eae5['push'](_0x59eae5['shift']());}catch(_0x344838){_0x59eae5['push'](_0x59eae5['shift']());}}}(a15_0x3c14,0x85d00));function a15_0x3c1e(_0x437362,_0x3619b1){const _0x3c1407=a15_0x3c14();return a15_0x3c1e=function(_0x3c1e7d,_0x591dcf){_0x3c1e7d=_0x3c1e7d-0xcb;let _0x672b9c=_0x3c1407[_0x3c1e7d];return _0x672b9c;},a15_0x3c1e(_0x437362,_0x3619b1);}const fs=require('fs'),got=require(a15_0x100049(0x117)),{table}=require(a15_0x100049(0xce)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x100049(0x120)),{getCredentialsPath,getAuthHeader}=require(a15_0x100049(0x11c)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a15_0x100049(0x11e)]=a15_0x100049(0xf1),exports['desc']='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x51c97f){const _0x450a7f=a15_0x100049,_0x2884cb={};_0x2884cb[_0x450a7f(0x10f)]=_0x450a7f(0xee),_0x2884cb[_0x450a7f(0xe3)]=_0x450a7f(0x11d),_0x2884cb[_0x450a7f(0x114)]=_0x450a7f(0xd3);const _0x9dff9d=_0x2884cb,_0xa6bcf={};_0xa6bcf[_0x450a7f(0xf0)]=_0x9dff9d[_0x450a7f(0x10f)],_0xa6bcf[_0x450a7f(0xd4)]=_0x9dff9d[_0x450a7f(0xe3)];const _0x51494b={};return _0x51494b[_0x450a7f(0xe1)]=_0xa6bcf,_0x51c97f[_0x450a7f(0xe9)](HELP_HEADER_MESSAGE[_0x450a7f(0xe6)][_0x450a7f(0xf4)])[_0x450a7f(0x10e)](HELP_FOOTER_MESSAGE)[_0x450a7f(0xfd)](_0x51494b)['help'](_0x9dff9d['uEbCF'])[_0x450a7f(0xed)];},exports[a15_0x100049(0xf8)]=async function(_0x397446){const _0x4ab486=a15_0x100049,_0x341299={'yDdXD':function(_0x45f848){return _0x45f848();},'wbUWF':function(_0x260976){return _0x260976();},'yrNBN':_0x4ab486(0xec),'vkKwo':function(_0x5e40e1,_0x8501db,_0x5db38a,_0x43b9b7,_0x2b517e,_0x24b8a0,_0x16eeea){return _0x5e40e1(_0x8501db,_0x5db38a,_0x43b9b7,_0x2b517e,_0x24b8a0,_0x16eeea);},'EKhJd':'list-grids-called','EsEyy':_0x4ab486(0x123),'cbTWN':_0x4ab486(0xf6),'JLVPf':function(_0x1dcec6,_0x55efd2,_0x2c1f02){return _0x1dcec6(_0x55efd2,_0x2c1f02);},'tEbJY':function(_0xd9e7bf,_0x30881f,_0x41f87a){return _0xd9e7bf(_0x30881f,_0x41f87a);},'yERVh':function(_0x19b58e,_0x118b40){return _0x19b58e!==_0x118b40;},'FLiBH':function(_0x34badf,_0x59eefe){return _0x34badf===_0x59eefe;},'kSlEn':_0x4ab486(0xd9),'wjFyc':_0x4ab486(0xf5),'ruQgn':_0x4ab486(0xf7),'NQxbg':'status','CIgxR':'running','qRkyJ':'queued','Jldfd':'cluster-name','RhYGc':function(_0x256a33,_0x4a6890){return _0x256a33(_0x4a6890);},'rUZLG':function(_0x1e7493,_0x30aa07){return _0x1e7493===_0x30aa07;},'WVkva':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','NFZQQ':_0x4ab486(0x10d),'ugFRZ':function(_0x2da901,_0x203301,_0x5831b8,_0x35fe6d,_0x277685,_0x174b69,_0x2f9d1e){return _0x2da901(_0x203301,_0x5831b8,_0x35fe6d,_0x277685,_0x174b69,_0x2f9d1e);},'KoOaM':_0x4ab486(0xe2),'mrGgd':'unknown-error'};try{global_registry[_0x4ab486(0xdc)]=_0x341299[_0x4ab486(0x107)](uuidv4);!fs[_0x4ab486(0x113)](_0x341299['wbUWF'](getCredentialsPath))&&(console[_0x4ab486(0x102)](_0x341299[_0x4ab486(0xd6)]),await _0x341299[_0x4ab486(0xcb)](sendInstrumentationEvent,_0x397446,_0x341299[_0x4ab486(0x108)],messageTypes[_0x4ab486(0x101)],_0x341299[_0x4ab486(0xfb)],null,_0x397446),process[_0x4ab486(0xd0)](0x1));const _0x427b2a=JSON['parse'](fs[_0x4ab486(0xcd)](_0x341299[_0x4ab486(0xd1)](getCredentialsPath)));let _0x53cbaa=_0x4ab486(0x111)+AG_API_URL+_0x4ab486(0xde);_0x397446[_0x4ab486(0xdf)]&&(_0x53cbaa=_0x4ab486(0x111)+AG_API_URL+_0x4ab486(0xd5));const _0x114c0c={'method':_0x341299[_0x4ab486(0xdb)],'headers':_0x341299[_0x4ab486(0xe4)](getAuthHeader,_0x427b2a[_0x4ab486(0x119)]['username'],_0x427b2a['Browserstack'][_0x4ab486(0x116)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x427b2a[_0x4ab486(0x119)][_0x4ab486(0x109)],global_registry[_0x4ab486(0xf2)]=_0x427b2a['Browserstack']['password'],_0x341299['vkKwo'](sendInstrumentationEvent,_0x397446,_0x341299[_0x4ab486(0x108)],messageTypes[_0x4ab486(0xd7)],null,null,_0x397446);const _0x21a5d6=await _0x341299[_0x4ab486(0x106)](got,_0x53cbaa,_0x114c0c);if(_0x341299[_0x4ab486(0xeb)](_0x21a5d6,null)&&_0x341299[_0x4ab486(0xeb)](_0x21a5d6,undefined)&&_0x341299[_0x4ab486(0x122)](_0x21a5d6[_0x4ab486(0x124)],0xc8)){const _0x3c6e78=JSON[_0x4ab486(0xdd)](_0x21a5d6[_0x4ab486(0xda)]);console[_0x4ab486(0x103)](_0x341299['kSlEn']);const _0x302309=[];_0x302309[_0x4ab486(0xff)]([_0x341299[_0x4ab486(0x104)],_0x341299[_0x4ab486(0xea)],_0x341299['NQxbg'],_0x341299[_0x4ab486(0xf3)],_0x341299['qRkyJ'],_0x341299[_0x4ab486(0xcc)]]),_0x3c6e78[_0x4ab486(0x10c)](_0x7270c3=>{const _0x24c014=_0x4ab486;_0x302309[_0x24c014(0xff)]([_0x7270c3['id'],_0x7270c3[_0x24c014(0xe0)],_0x7270c3[_0x24c014(0xef)],_0x7270c3[_0x24c014(0xe5)],_0x7270c3[_0x24c014(0x100)],_0x7270c3[_0x24c014(0x125)]]);}),console[_0x4ab486(0x103)](_0x341299['RhYGc'](table,_0x302309)),process[_0x4ab486(0xd0)](0x0);}_0x341299[_0x4ab486(0xfe)](_0x21a5d6[_0x4ab486(0x124)],0x191)&&(console['error'](_0x341299[_0x4ab486(0xfc)]),await _0x341299[_0x4ab486(0xcb)](sendInstrumentationEvent,_0x397446,_0x341299[_0x4ab486(0x108)],messageTypes[_0x4ab486(0x101)],_0x341299[_0x4ab486(0xe8)],null,_0x397446),process[_0x4ab486(0xd0)](0x1)),console[_0x4ab486(0x102)](_0x4ab486(0xe7)+JSON[_0x4ab486(0x11a)](_0x21a5d6)),await _0x341299['ugFRZ'](sendInstrumentationEvent,_0x397446,_0x341299[_0x4ab486(0x108)],messageTypes['ERROR'],_0x341299['KoOaM'],_0x21a5d6,_0x397446),process[_0x4ab486(0xd0)](0x1);}catch(_0x42d3da){console[_0x4ab486(0x102)](_0x4ab486(0x110)+_0x42d3da[_0x4ab486(0x11b)]),await _0x341299[_0x4ab486(0xcb)](sendInstrumentationEvent,_0x397446,_0x341299[_0x4ab486(0x108)],messageTypes[_0x4ab486(0x101)],_0x341299[_0x4ab486(0xd8)],_0x42d3da,_0x397446),process['exit'](0x1);}};function a15_0x3c14(){const _0x4d4017=['../../utils/utilityMethods','boolean','command','172800ToRVWX','../../config/constants','4118785MINvJW','FLiBH','init-not-called','statusCode','clusterName','vkKwo','Jldfd','readFileSync','table','4mMzEPZ','exit','wbUWF','1916580sMHgkL','help','type','/packages/cli/get-all-grids','yrNBN','INFO','mrGgd','\x0aFound\x20the\x20following\x20grids:\x0a','body','cbTWN','requestId','parse','/packages/cli/get-grids','allGrids','name','all-grids','server-error','RUNWB','JLVPf','running','list','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','NFZQQ','usage','ruQgn','yERVh','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','argv','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','status','description','grids','bstackAccesskey','CIgxR','grid','grid-id','GET','grid-name','handler','12tfYpLa','5559771khFFBg','EsEyy','WVkva','options','rUZLG','push','queued','ERROR','error','log','wjFyc','169767LxaoaD','tEbJY','yDdXD','EKhJd','username','12FVyPQO','8LguMMS','forEach','unauthorised','epilogue','Mofck','Failed\x20to\x20list\x20resources!\x20Error:\x20','https://','130sKqfsC','existsSync','uEbCF','163151xHXpGj','password','got','1163215lVFYWL','Browserstack','stringify','stack'];a15_0x3c14=function(){return _0x4d4017;};return a15_0x3c14();}
@@ -1 +1 @@
1
- function a16_0x249e(){const _0x15e8e0=['55203YFjSea','392319cNEDpk','2akQMQZ','935473vCUTZO','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','../config/constants','pyxMc','recommendCommands','epilogue','1296240MmqZsk','command','5592LMSTty','6VjYPcA','36003DEYyNL','85632mVIuUC','464LjabJh','commandDir','precheck_commands','pre-check','5380cDIuqf','demandCommand','558WVQVcL','ROWev','builder'];a16_0x249e=function(){return _0x15e8e0;};return a16_0x249e();}const a16_0x58088c=a16_0xa89c;(function(_0x40bc59,_0x444315){const _0x41821a=a16_0xa89c,_0x55c6af=_0x40bc59();while(!![]){try{const _0xdad51f=-parseInt(_0x41821a(0x196))/0x1+parseInt(_0x41821a(0x197))/0x2*(parseInt(_0x41821a(0x195))/0x3)+parseInt(_0x41821a(0x1a4))/0x4*(parseInt(_0x41821a(0x1a8))/0x5)+-parseInt(_0x41821a(0x1a1))/0x6*(parseInt(_0x41821a(0x198))/0x7)+-parseInt(_0x41821a(0x1a3))/0x8*(parseInt(_0x41821a(0x192))/0x9)+-parseInt(_0x41821a(0x19e))/0xa+parseInt(_0x41821a(0x1a2))/0xb*(parseInt(_0x41821a(0x1a0))/0xc);if(_0xdad51f===_0x444315)break;else _0x55c6af['push'](_0x55c6af['shift']());}catch(_0x34db22){_0x55c6af['push'](_0x55c6af['shift']());}}}(a16_0x249e,0x55415));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x58088c(0x19a));function a16_0xa89c(_0x4d01b1,_0x1a1fbf){const _0x249ea9=a16_0x249e();return a16_0xa89c=function(_0xa89cf7,_0x2c12d9){_0xa89cf7=_0xa89cf7-0x191;let _0x375bf0=_0x249ea9[_0xa89cf7];return _0x375bf0;},a16_0xa89c(_0x4d01b1,_0x1a1fbf);}exports[a16_0x58088c(0x19f)]=a16_0x58088c(0x1a7),exports['desc']=a16_0x58088c(0x199),exports[a16_0x58088c(0x194)]=function(_0x22adac){const _0x2314cc=a16_0x58088c,_0x2e7ac2={};_0x2e7ac2[_0x2314cc(0x19b)]=_0x2314cc(0x1a6),_0x2e7ac2[_0x2314cc(0x193)]='help';const _0x59a2a8=_0x2e7ac2;return _0x22adac['usage'](HELP_HEADER_MESSAGE['pre_check'])[_0x2314cc(0x19d)](HELP_FOOTER_MESSAGE)[_0x2314cc(0x1a5)](_0x59a2a8[_0x2314cc(0x19b)])[_0x2314cc(0x191)]()[_0x2314cc(0x19c)]()['strict']()['help'](_0x59a2a8[_0x2314cc(0x193)]);},exports['handler']=function(_0x358a04){};
1
+ function a16_0x4595(_0x3a2348,_0x2c9e66){const _0x19133b=a16_0x1913();return a16_0x4595=function(_0x4595d9,_0x2dcf7c){_0x4595d9=_0x4595d9-0xaf;let _0x334746=_0x19133b[_0x4595d9];return _0x334746;},a16_0x4595(_0x3a2348,_0x2c9e66);}function a16_0x1913(){const _0x376df0=['desc','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','pre-check','82sGCAEY','846eoHTlA','23784SPKLgr','2823wZlYaH','18CCZJHj','pre_check','usage','strict','help','1112364wFtVtv','AlaLz','epilogue','3238880EdrwaN','TnToo','builder','recommendCommands','174755redgTr','1616ICNaBc','precheck_commands','188870QBwcVf'];a16_0x1913=function(){return _0x376df0;};return a16_0x1913();}const a16_0x23f10d=a16_0x4595;(function(_0x2cdb5c,_0xff8384){const _0x2edaa5=a16_0x4595,_0x390d10=_0x2cdb5c();while(!![]){try{const _0x526cdf=parseInt(_0x2edaa5(0xb0))/0x1+-parseInt(_0x2edaa5(0xb6))/0x2*(parseInt(_0x2edaa5(0xb9))/0x3)+parseInt(_0x2edaa5(0xbf))/0x4+-parseInt(_0x2edaa5(0xb2))/0x5+parseInt(_0x2edaa5(0xba))/0x6*(-parseInt(_0x2edaa5(0xaf))/0x7)+parseInt(_0x2edaa5(0xb8))/0x8*(-parseInt(_0x2edaa5(0xb7))/0x9)+parseInt(_0x2edaa5(0xc2))/0xa;if(_0x526cdf===_0xff8384)break;else _0x390d10['push'](_0x390d10['shift']());}catch(_0x369b84){_0x390d10['push'](_0x390d10['shift']());}}}(a16_0x1913,0x2a353));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a16_0x23f10d(0xb5),exports[a16_0x23f10d(0xb3)]=a16_0x23f10d(0xb4),exports[a16_0x23f10d(0xc4)]=function(_0x48849c){const _0x1a9719=a16_0x23f10d,_0xfb63e8={};_0xfb63e8[_0x1a9719(0xc0)]=_0x1a9719(0xb1),_0xfb63e8['TnToo']='help';const _0x5a7bb9=_0xfb63e8;return _0x48849c[_0x1a9719(0xbc)](HELP_HEADER_MESSAGE[_0x1a9719(0xbb)])[_0x1a9719(0xc1)](HELP_FOOTER_MESSAGE)['commandDir'](_0x5a7bb9[_0x1a9719(0xc0)])['demandCommand']()[_0x1a9719(0xc5)]()[_0x1a9719(0xbd)]()[_0x1a9719(0xbe)](_0x5a7bb9[_0x1a9719(0xc3)]);},exports['handler']=function(_0x5d1064){};
@@ -1 +1 @@
1
- const a17_0x4d6df3=a17_0x3fdd;(function(_0x15f132,_0x46d99b){const _0x46f14d=a17_0x3fdd,_0x3d12b9=_0x15f132();while(!![]){try{const _0xb05938=parseInt(_0x46f14d(0x23c))/0x1*(parseInt(_0x46f14d(0x25a))/0x2)+-parseInt(_0x46f14d(0x1d1))/0x3+-parseInt(_0x46f14d(0x261))/0x4*(parseInt(_0x46f14d(0x1fd))/0x5)+parseInt(_0x46f14d(0x228))/0x6*(-parseInt(_0x46f14d(0x23b))/0x7)+-parseInt(_0x46f14d(0x273))/0x8*(-parseInt(_0x46f14d(0x290))/0x9)+-parseInt(_0x46f14d(0x244))/0xa*(-parseInt(_0x46f14d(0x2a3))/0xb)+parseInt(_0x46f14d(0x2aa))/0xc*(parseInt(_0x46f14d(0x1fa))/0xd);if(_0xb05938===_0x46d99b)break;else _0x3d12b9['push'](_0x3d12b9['shift']());}catch(_0x26dc7f){_0x3d12b9['push'](_0x3d12b9['shift']());}}}(a17_0x364d,0xe012b));const fs=require('fs'),ws=require('ws'),got=require(a17_0x4d6df3(0x238)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x4d6df3(0x294)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x4d6df3(0x219)),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x4d6df3(0x275)),{getCloudProviderObjectWithOutInit}=require(a17_0x4d6df3(0x270)),webSocketUtils=require(a17_0x4d6df3(0x1de)),{sendInstrumentationEvent}=require(a17_0x4d6df3(0x2b9));exports['command']=a17_0x4d6df3(0x1f0),exports[a17_0x4d6df3(0x279)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a17_0x4d6df3(0x1fb)]=function(_0x5e9b16){const _0x1bcafa=a17_0x4d6df3,_0x59e248={};_0x59e248['UkJEA']=_0x1bcafa(0x24e),_0x59e248[_0x1bcafa(0x204)]=_0x1bcafa(0x1fe),_0x59e248['mlRwR']=_0x1bcafa(0x24d),_0x59e248[_0x1bcafa(0x2a6)]=_0x1bcafa(0x232),_0x59e248[_0x1bcafa(0x1f5)]=_0x1bcafa(0x1ed),_0x59e248[_0x1bcafa(0x285)]='help';const _0x547f2f=_0x59e248,_0x38dbeb={};_0x38dbeb[_0x1bcafa(0x281)]=_0x547f2f[_0x1bcafa(0x236)],_0x38dbeb[_0x1bcafa(0x200)]=_0x547f2f[_0x1bcafa(0x204)];const _0x43cb46={};_0x43cb46[_0x1bcafa(0x281)]=_0x547f2f[_0x1bcafa(0x222)],_0x43cb46[_0x1bcafa(0x200)]=_0x547f2f['yxVis'];const _0x173a31={};_0x173a31[_0x1bcafa(0x281)]=_0x547f2f[_0x1bcafa(0x2a6)],_0x173a31[_0x1bcafa(0x200)]=_0x547f2f[_0x1bcafa(0x204)];const _0x689bda={};_0x689bda[_0x1bcafa(0x281)]=_0x547f2f[_0x1bcafa(0x1f5)],_0x689bda['type']=_0x547f2f[_0x1bcafa(0x204)];const _0x1dd168={};return _0x1dd168['cluster-name']=_0x38dbeb,_0x1dd168['cloud-provider']=_0x43cb46,_0x1dd168[_0x1bcafa(0x2b2)]=_0x173a31,_0x1dd168[_0x1bcafa(0x20f)]=_0x689bda,_0x5e9b16['usage'](HELP_HEADER_MESSAGE['pre_check'])[_0x1bcafa(0x21d)](HELP_FOOTER_MESSAGE)['options'](_0x1dd168)['help'](_0x547f2f['MoRHl'])[_0x1bcafa(0x29b)];};function a17_0x3fdd(_0x406177,_0x319f1e){const _0x364dd5=a17_0x364d();return a17_0x3fdd=function(_0x3fddb9,_0x550af8){_0x3fddb9=_0x3fddb9-0x1cf;let _0x552530=_0x364dd5[_0x3fddb9];return _0x552530;},a17_0x3fdd(_0x406177,_0x319f1e);}async function inputValidation(_0x3b6867,_0x57765b){const _0x2a14b9=a17_0x4d6df3,_0x1a08af={'APeQN':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','SKnBh':'string','vNoGX':_0x2a14b9(0x24d),'wHZba':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','KIvJx':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','bdfoN':_0x2a14b9(0x28c),'ZKfPC':_0x2a14b9(0x2b2),'HUGxW':function(_0x25fea7,_0x43bd43){return _0x25fea7+_0x43bd43;},'suRIz':'Success','yUCCy':'Failure','xwOLl':function(_0x2e10f2,_0x252441){return _0x2e10f2||_0x252441;},'pPVgu':'N/A','cazCM':'Error\x20Details:\x0a','LnXUQ':_0x2a14b9(0x1e4),'LPmsC':_0x2a14b9(0x1dd),'YXNzK':'will\x20be\x20created','Duzul':_0x2a14b9(0x1ef),'pNdQa':_0x2a14b9(0x2c0),'wRhkY':_0x2a14b9(0x26a),'mtnlj':function(_0x2351a8,_0x22eb14){return _0x2351a8!==_0x22eb14;},'ZwYMr':'nGqfN','fQprI':function(_0x57c49d,_0x1c4c18){return _0x57c49d!==_0x1c4c18;},'FGdEe':_0x2a14b9(0x1d3),'TYVGb':function(_0x520cd6,_0xa254a0){return _0x520cd6!==_0xa254a0;},'QUFyX':_0x2a14b9(0x234),'aGBmC':function(_0x3b92b0,_0x2ef9c8){return _0x3b92b0===_0x2ef9c8;},'mLBPk':_0x2a14b9(0x20b),'ZEAuf':_0x2a14b9(0x2b4),'CWyKy':_0x2a14b9(0x283),'HxMsO':function(_0x49abdb,_0x231ba3){return _0x49abdb>_0x231ba3;},'CIAea':_0x2a14b9(0x27d),'EXArD':'qFgQR','huWvO':function(_0x379f82,_0x4d5de0,_0x502df1,_0xbe7a89,_0x56ab1c,_0x192457,_0x56afee,_0x23cd27){return _0x379f82(_0x4d5de0,_0x502df1,_0xbe7a89,_0x56ab1c,_0x192457,_0x56afee,_0x23cd27);},'dROKC':_0x2a14b9(0x257),'fYoQh':'pre-check-cluster-args-not-passed','fIxlN':function(_0x18c409,_0x2f1f71){return _0x18c409!==_0x2f1f71;},'Rsxjx':_0x2a14b9(0x1f3),'Pkwld':_0x2a14b9(0x272),'SKzpr':function(_0x2682de,_0x1ee2c4,_0x5d4cc5,_0x19b6c7,_0x518d6d,_0x33a71b,_0x392ff9,_0x59596a){return _0x2682de(_0x1ee2c4,_0x5d4cc5,_0x19b6c7,_0x518d6d,_0x33a71b,_0x392ff9,_0x59596a);},'sedev':_0x2a14b9(0x2a0),'dxAEs':'aNsgx','vujzH':function(_0x454bfc,_0x28d8a3){return _0x454bfc===_0x28d8a3;},'vHgog':_0x2a14b9(0x1e6),'HhpIf':_0x2a14b9(0x231),'fOeoD':function(_0x3b157b,_0x43eb5e,_0x438211){return _0x3b157b(_0x43eb5e,_0x438211);},'eGSNu':function(_0x4cb2c3,_0xef1a82,_0x4ff17c,_0x34c035,_0x294399,_0x503148){return _0x4cb2c3(_0xef1a82,_0x4ff17c,_0x34c035,_0x294399,_0x503148);},'twZdc':'pre-check','KhHpg':_0x2a14b9(0x20f),'TuXia':function(_0x131493,_0x441218){return _0x131493!==_0x441218;},'MiMfz':'ZYGXc','muuUr':function(_0x331f80,_0x155585){return _0x331f80(_0x155585);},'OaYlA':_0x2a14b9(0x21a),'eEdwH':function(_0x1b5f2e,_0x47d967,_0x489ac9,_0x59c375,_0x312d28,_0x4667c1,_0x4df4ad,_0x1634e9){return _0x1b5f2e(_0x47d967,_0x489ac9,_0x59c375,_0x312d28,_0x4667c1,_0x4df4ad,_0x1634e9);},'BoQAX':_0x2a14b9(0x288),'fwgon':_0x2a14b9(0x2b8),'ccfUA':function(_0x47d77a,_0x19e634){return _0x47d77a!==_0x19e634;},'sjPRP':_0x2a14b9(0x27c),'NuVgG':_0x2a14b9(0x28f),'pTKHH':_0x2a14b9(0x252),'gDvjv':_0x2a14b9(0x245),'ZobGi':_0x2a14b9(0x28d),'NSpNl':_0x2a14b9(0x276),'LcqAx':function(_0x2daa8a,_0x3bfee6,_0x581b84,_0x541ea8,_0x170cc4,_0xe8968a,_0x5a3d47,_0x4817f2){return _0x2daa8a(_0x3bfee6,_0x581b84,_0x541ea8,_0x170cc4,_0xe8968a,_0x5a3d47,_0x4817f2);}};let _0x3c09ea;try{if(_0x1a08af[_0x2a14b9(0x202)](_0x1a08af[_0x2a14b9(0x2a8)],_0x1a08af[_0x2a14b9(0x2a8)]))_0xa25d0f=_0x458c4f;else{if(_0x3b6867[_0x2a14b9(0x2b7)]||_0x3b6867[_0x2a14b9(0x2c1)]||_0x3b6867[_0x2a14b9(0x2b2)]){if(_0x1a08af['fQprI'](_0x1a08af[_0x2a14b9(0x23f)],_0x1a08af[_0x2a14b9(0x23f)]))_0x213b4[_0x2a14b9(0x26a)]('error\x20stack\x20:\x20'+_0x52e497[_0x2a14b9(0x26a)][_0x2a14b9(0x229)]);else{const _0x229224=[];if(!_0x3b6867['clusterName']){if(_0x1a08af[_0x2a14b9(0x1fc)](_0x1a08af[_0x2a14b9(0x250)],_0x1a08af[_0x2a14b9(0x250)])){const _0x4d5ecc={};_0x4d5ecc[_0x2a14b9(0x281)]=_0x1a08af[_0x2a14b9(0x227)],_0x4d5ecc[_0x2a14b9(0x200)]=_0x1a08af[_0x2a14b9(0x258)];const _0x46dd97={};_0x46dd97[_0x2a14b9(0x281)]=_0x1a08af[_0x2a14b9(0x20a)],_0x46dd97['type']=_0x1a08af[_0x2a14b9(0x258)];const _0x3baed9={};_0x3baed9[_0x2a14b9(0x281)]=_0x1a08af['wHZba'],_0x3baed9[_0x2a14b9(0x200)]=_0x1a08af[_0x2a14b9(0x258)];const _0x509be0={};_0x509be0[_0x2a14b9(0x281)]=_0x1a08af[_0x2a14b9(0x237)],_0x509be0['type']=_0x1a08af['SKnBh'];const _0x31ff01={};return _0x31ff01[_0x2a14b9(0x2c0)]=_0x4d5ecc,_0x31ff01['cloud-provider']=_0x46dd97,_0x31ff01[_0x2a14b9(0x2b2)]=_0x3baed9,_0x31ff01[_0x2a14b9(0x20f)]=_0x509be0,_0x2381bd[_0x2a14b9(0x24c)](_0x3cbd5e['pre_check'])[_0x2a14b9(0x21d)](_0x5c4064)[_0x2a14b9(0x2c5)](_0x31ff01)[_0x2a14b9(0x28c)](_0x1a08af[_0x2a14b9(0x247)])[_0x2a14b9(0x29b)];}else _0x229224[_0x2a14b9(0x280)](_0x1a08af[_0x2a14b9(0x1d6)]);};!_0x3b6867['cloudProvider']&&(_0x1a08af[_0x2a14b9(0x211)](_0x1a08af[_0x2a14b9(0x25c)],_0x1a08af[_0x2a14b9(0x25c)])?_0x229224[_0x2a14b9(0x280)](_0x1a08af[_0x2a14b9(0x292)]):_0x22b796[_0x2a14b9(0x280)](_0x1a08af[_0x2a14b9(0x1e3)]));;if(!_0x3b6867[_0x2a14b9(0x2b2)]){if(_0x1a08af[_0x2a14b9(0x211)](_0x1a08af['ZEAuf'],_0x1a08af[_0x2a14b9(0x262)])){const {header:_0x36fa24,response:_0xeddc0a}=_0xcec3e3,{status:_0x5c812a,data:_0x17f55d,error:_0x362e7f}=_0xeddc0a;_0x49150f+=_0x36fa24+'\x20#'+_0x1a08af[_0x2a14b9(0x23d)](_0x5e908d,0x1)+'\x0a',_0x49231a+=_0x2a14b9(0x241)+(_0x5c812a?_0x1a08af['suRIz']:_0x1a08af[_0x2a14b9(0x259)])+'\x0a',_0x385d90+=_0x2a14b9(0x21f)+_0x1a08af[_0x2a14b9(0x214)](_0x17f55d,_0x1a08af[_0x2a14b9(0x1d7)])+'\x0a',_0x362e7f&&(_0x520cc1+=_0x1a08af[_0x2a14b9(0x249)],_0x51406c+=_0x2a14b9(0x2bd)+(_0x362e7f[_0x2a14b9(0x1ea)]||_0x1a08af[_0x2a14b9(0x1d7)])+'\x0a',_0x412f23+=_0x2a14b9(0x2b5)+(_0x362e7f[_0x2a14b9(0x2be)]||_0x1a08af[_0x2a14b9(0x1d7)])+'\x0a',_0xba085f+=_0x2a14b9(0x2b6)+(_0x362e7f[_0x2a14b9(0x229)]||_0x1a08af['pPVgu'])+'\x0a'),_0x22b236+='\x0a\x0a';}else _0x229224[_0x2a14b9(0x280)](_0x1a08af[_0x2a14b9(0x1e3)]);};_0x1a08af[_0x2a14b9(0x299)](_0x229224['length'],0x0)&&(_0x1a08af[_0x2a14b9(0x1e5)](_0x1a08af[_0x2a14b9(0x201)],_0x1a08af[_0x2a14b9(0x2c6)])?(_0x3c09ea=_0x2a14b9(0x26d)+_0x229224[_0x2a14b9(0x1dc)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x1a08af['huWvO'](reportToGalactusAndSendToEDS,_0x3b6867,_0x57765b,_0x3c09ea,messageTypes[_0x2a14b9(0x278)],_0x1a08af[_0x2a14b9(0x254)],_0x1a08af['fYoQh'],_0x1a08af[_0x2a14b9(0x216)]),logger[_0x2a14b9(0x26a)](_0x3c09ea),process['exit'](0x1)):_0x47715d[_0x2a14b9(0x280)](_0x1a08af[_0x2a14b9(0x292)])),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x2a14b9(0x2ac)](_0x3b6867[_0x2a14b9(0x2c1)][_0x2a14b9(0x1db)]())&&(_0x1a08af[_0x2a14b9(0x274)](_0x1a08af['Rsxjx'],_0x1a08af[_0x2a14b9(0x2a9)])?_0x23a087+=_0x2a14b9(0x2a5)+_0x3238af[_0x2a14b9(0x2b7)]+'\x20'+(_0x3a4ad2?_0x1a08af[_0x2a14b9(0x284)]:_0x1a08af[_0x2a14b9(0x253)])+'\x0a\x0a':(_0x3c09ea=_0x1a08af[_0x2a14b9(0x265)],await _0x1a08af[_0x2a14b9(0x1f4)](reportToGalactusAndSendToEDS,_0x3b6867,_0x57765b,_0x3c09ea,messageTypes['ERROR'],_0x1a08af['dROKC'],_0x1a08af['sedev'],_0x1a08af['wRhkY']),logger['error'](_0x3c09ea),!_0x3b6867[_0x2a14b9(0x2c1)]&&(_0x1a08af[_0x2a14b9(0x211)](_0x1a08af[_0x2a14b9(0x1d2)],_0x1a08af[_0x2a14b9(0x1d2)])?(logger['info'](_0x2a14b9(0x1d0)+DEFAULT_CLUSTER_DETAILS[_0x2a14b9(0x225)]+'\x20'),_0x3b6867[_0x2a14b9(0x2c1)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']):(_0x28f793['error'](_0x1a08af['Duzul']),_0xf1a2f9[_0x2a14b9(0x29d)](0x1))))),global_registry[_0x2a14b9(0x2b7)]=_0x3b6867[_0x2a14b9(0x2b7)],global_registry['cloudProvider']=_0x3b6867[_0x2a14b9(0x2c1)],global_registry[_0x2a14b9(0x1e9)]=_0x3b6867[_0x2a14b9(0x2b2)];}}else{if(_0x3b6867[_0x2a14b9(0x2a1)]){if(_0x1a08af[_0x2a14b9(0x282)](_0x1a08af[_0x2a14b9(0x2ad)],_0x1a08af[_0x2a14b9(0x2ad)])){global_registry[_0x2a14b9(0x2a1)]=_0x3b6867[_0x2a14b9(0x2a1)],logger[_0x2a14b9(0x2b3)]('grid\x20profile\x20flow\x20'+_0x3b6867[_0x2a14b9(0x2a1)]);const _0x18d8df=_0x2a14b9(0x26b)+AG_API_URL+_0x2a14b9(0x295),_0x433329={};_0x433329[_0x2a14b9(0x263)]=_0x1a08af['HhpIf'],_0x433329[_0x2a14b9(0x29a)]=global_registry[_0x2a14b9(0x1e7)],_0x433329[_0x2a14b9(0x230)]=![];const _0x5039de=_0x433329,_0x3c248f=await _0x1a08af[_0x2a14b9(0x26e)](got,_0x18d8df,_0x5039de),_0x43e436=await _0x1a08af[_0x2a14b9(0x2c4)](responseValidation,_0x3c248f,_0x1a08af['twZdc'],_0x1a08af['KhHpg'],_0x3b6867,_0x57765b);let _0x241ef2={};if(_0x1a08af['vujzH'](_0x43e436,0xc8)){if(_0x1a08af['TuXia'](_0x1a08af['MiMfz'],_0x1a08af[_0x2a14b9(0x29c)]))_0x2c1bc8['push'](_0x1a08af[_0x2a14b9(0x1d6)]);else{const _0x2d76ff=JSON['parse'](_0x3c248f[_0x2a14b9(0x23e)]),_0x57a7e7=_0x2d76ff['find'](_0x535ec5=>_0x535ec5[_0x2a14b9(0x26f)]===_0x3b6867[_0x2a14b9(0x2a1)])||null;_0x1a08af[_0x2a14b9(0x25e)](isUndefined,_0x57a7e7)?_0x1a08af[_0x2a14b9(0x282)](_0x1a08af['OaYlA'],_0x1a08af[_0x2a14b9(0x242)])?(_0x3c09ea=_0x2a14b9(0x21e)+_0x3b6867[_0x2a14b9(0x2a1)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x1a08af[_0x2a14b9(0x286)](reportToGalactusAndSendToEDS,_0x3b6867,_0x57765b,_0x3c09ea,messageTypes[_0x2a14b9(0x278)],_0x1a08af['dROKC'],_0x1a08af[_0x2a14b9(0x205)],_0x1a08af[_0x2a14b9(0x216)]),logger[_0x2a14b9(0x26a)](_0x3c09ea),process[_0x2a14b9(0x29d)](0x1)):(_0x3d93df[_0x2a14b9(0x26c)](_0x2a14b9(0x1d0)+_0x32b07d[_0x2a14b9(0x225)]+'\x20'),_0x4f2d84[_0x2a14b9(0x2c1)]=_0x5bd71f[_0x2a14b9(0x225)]):_0x1a08af[_0x2a14b9(0x1fc)](_0x1a08af[_0x2a14b9(0x2c9)],_0x1a08af[_0x2a14b9(0x2c9)])?(_0xa721b0['info']('['+_0x3580ad+']\x20status\x20:\x20'+_0x320b74[_0x2a14b9(0x1cf)]+_0x2a14b9(0x27a)+_0x59b8a8['data']+_0x2a14b9(0x267)+_0x3b9aca['error']),_0x3bfeb2['error']&&_0x1ab45b[_0x2a14b9(0x26a)]('error\x20stack\x20:\x20'+_0x345165[_0x2a14b9(0x26a)][_0x2a14b9(0x229)])):_0x241ef2=_0x57a7e7;}}else _0x1a08af[_0x2a14b9(0x25b)](_0x1a08af['sjPRP'],_0x1a08af[_0x2a14b9(0x264)])?(_0x1ca978+=_0x1a08af[_0x2a14b9(0x249)],_0x373b15+=_0x2a14b9(0x2bd)+(_0x3c80d4[_0x2a14b9(0x1ea)]||_0x1a08af[_0x2a14b9(0x1d7)])+'\x0a',_0x414f84+='\x20\x20Code:\x20'+(_0x31144a['code']||_0x1a08af[_0x2a14b9(0x1d7)])+'\x0a',_0x2dea12+=_0x2a14b9(0x2b6)+(_0x4abcc2[_0x2a14b9(0x229)]||_0x1a08af[_0x2a14b9(0x1d7)])+'\x0a'):process[_0x2a14b9(0x29d)](0x1);const _0x40342a={};_0x40342a[_0x2a14b9(0x200)]=WS_EVENTS[_0x2a14b9(0x21b)],_0x40342a[_0x2a14b9(0x1ea)]=_0x1a08af[_0x2a14b9(0x240)],webSocketUtils[_0x2a14b9(0x20c)](_0x57765b,_0x40342a),global_registry[_0x2a14b9(0x2c1)]=_0x241ef2[_0x2a14b9(0x2c1)],global_registry[_0x2a14b9(0x1e9)]=_0x241ef2['region'],global_registry[_0x2a14b9(0x2b7)]=_0x241ef2[_0x2a14b9(0x2b7)];}else{const _0x2fc54a={};_0x2fc54a['type']=_0x51d96b[_0x2a14b9(0x21b)],_0x2fc54a[_0x2a14b9(0x1ea)]=_0x2dc081,_0x477924[_0x2a14b9(0x20c)](_0x5b10e1,_0x2fc54a,_0x1a08af[_0x2a14b9(0x216)],!![]);}}else _0x1a08af[_0x2a14b9(0x202)](_0x1a08af[_0x2a14b9(0x218)],_0x1a08af[_0x2a14b9(0x2ae)])?(logger[_0x2a14b9(0x26a)](_0x1a08af[_0x2a14b9(0x224)]),process[_0x2a14b9(0x29d)](0x1)):_0x1e67e3+=_0x2a14b9(0x2a5)+_0x290148['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';}}}catch(_0x35f2be){_0x1a08af[_0x2a14b9(0x1fc)](_0x1a08af[_0x2a14b9(0x1ec)],_0x1a08af[_0x2a14b9(0x2ab)])?(_0x3c09ea=_0x2a14b9(0x2bf)+_0x35f2be+':\x20'+_0x35f2be[_0x2a14b9(0x229)],logger['error'](_0x3c09ea),await _0x1a08af[_0x2a14b9(0x1d9)](reportToGalactusAndSendToEDS,_0x3b6867,_0x57765b,_0x3c09ea,messageTypes['ERROR'],_0x1a08af[_0x2a14b9(0x254)],_0x1a08af['sedev'],_0x1a08af[_0x2a14b9(0x216)]),process['exit'](0x1)):_0x18947a['exit'](0x1);}}function printResponse(_0x1e5db1,_0x83dbe2){const _0x537c8e=a17_0x4d6df3,_0x16a829={};_0x16a829[_0x537c8e(0x243)]=function(_0x193631,_0x4892be){return _0x193631!==_0x4892be;},_0x16a829[_0x537c8e(0x266)]=_0x537c8e(0x2b1);const _0x4d9779=_0x16a829;logger[_0x537c8e(0x26c)]('['+_0x1e5db1+_0x537c8e(0x221)+_0x83dbe2[_0x537c8e(0x1cf)]+'\x20data\x20:\x20'+_0x83dbe2['data']+_0x537c8e(0x267)+_0x83dbe2[_0x537c8e(0x26a)]),_0x83dbe2[_0x537c8e(0x26a)]&&(_0x4d9779[_0x537c8e(0x243)](_0x4d9779['FTYRu'],_0x4d9779[_0x537c8e(0x266)])?_0x3966eb[_0x537c8e(0x26c)]('Cluster\x20`'+_0x154679[_0x537c8e(0x2b7)]+_0x537c8e(0x235)):logger[_0x537c8e(0x26a)](_0x537c8e(0x251)+_0x83dbe2[_0x537c8e(0x26a)][_0x537c8e(0x229)]));}async function generateReport(_0x19b5ac,_0x5d22e2){const _0x26aebe=a17_0x4d6df3,_0x55676c={'vpyPd':function(_0x33aae0,_0xfe317){return _0x33aae0+_0xfe317;},'CnGaF':_0x26aebe(0x1eb),'CmudR':'Failure','gQdtZ':function(_0x109b02,_0x596243){return _0x109b02||_0x596243;},'wlVKC':_0x26aebe(0x203),'StLEi':_0x26aebe(0x291),'JORSb':_0x26aebe(0x2a2),'DLShW':function(_0x8e1ce6,_0x525966){return _0x8e1ce6!=_0x525966;},'DCFIa':_0x26aebe(0x1dd),'XroFh':_0x26aebe(0x2ca),'mWJDH':function(_0x57959a){return _0x57959a();}};let _0x3956b4=_0x26aebe(0x1e0)+global_registry[_0x26aebe(0x2c1)]+_0x26aebe(0x1e1);return _0x19b5ac[_0x26aebe(0x213)]((_0x36bfc8,_0xf64a61)=>{const _0x27d67e=_0x26aebe,{header:_0x31423b,response:_0x357d08}=_0x36bfc8,{status:_0x7b9ab7,data:_0x15eadf,error:_0x43f327}=_0x357d08;_0x3956b4+=_0x31423b+'\x20#'+_0x55676c[_0x27d67e(0x2a7)](_0xf64a61,0x1)+'\x0a',_0x3956b4+=_0x27d67e(0x241)+(_0x7b9ab7?_0x55676c[_0x27d67e(0x28a)]:_0x55676c[_0x27d67e(0x1d5)])+'\x0a',_0x3956b4+=_0x27d67e(0x21f)+_0x55676c[_0x27d67e(0x298)](_0x15eadf,_0x55676c[_0x27d67e(0x206)])+'\x0a',_0x43f327&&(_0x3956b4+=_0x55676c['StLEi'],_0x3956b4+=_0x27d67e(0x2bd)+(_0x43f327[_0x27d67e(0x1ea)]||_0x55676c[_0x27d67e(0x206)])+'\x0a',_0x3956b4+='\x20\x20Code:\x20'+(_0x43f327[_0x27d67e(0x2be)]||_0x55676c[_0x27d67e(0x206)])+'\x0a',_0x3956b4+=_0x27d67e(0x2b6)+(_0x43f327[_0x27d67e(0x229)]||_0x55676c['wlVKC'])+'\x0a'),_0x3956b4+='\x0a\x0a';}),_0x3956b4+=_0x55676c[_0x26aebe(0x28e)],_0x55676c[_0x26aebe(0x297)](_0x5d22e2,null)?_0x3956b4+='Cluster\x20'+global_registry[_0x26aebe(0x2b7)]+'\x20'+(_0x5d22e2?_0x55676c[_0x26aebe(0x1e2)]:_0x55676c['XroFh'])+'\x0a\x0a':_0x3956b4+=_0x26aebe(0x2a5)+global_registry['clusterName']+_0x26aebe(0x29e),_0x3956b4+=_0x55676c['mWJDH'](getSystemMetaData),_0x3956b4;};exports[a17_0x4d6df3(0x20e)]=async function(_0x2e9872){const _0xb54a63=a17_0x4d6df3,_0x19a3db={'lzvXv':function(_0xd0d7f6){return _0xd0d7f6();},'atWVT':_0xb54a63(0x1d8),'AHHOC':function(_0x5ca483,_0x3d0e9e,_0x4c61b1,_0x2590b4,_0xe52a0b,_0x138813,_0x2e662c,_0x293f15){return _0x5ca483(_0x3d0e9e,_0x4c61b1,_0x2590b4,_0xe52a0b,_0x138813,_0x2e662c,_0x293f15);},'BOnTR':'pre-check-grid-called','RoumY':_0xb54a63(0x209),'IHpbU':'error','XEngu':function(_0x16944f,_0x1e8508,_0x54211c,_0x421dba,_0x489dec,_0x20120d,_0x517ec8){return _0x16944f(_0x1e8508,_0x54211c,_0x421dba,_0x489dec,_0x20120d,_0x517ec8);},'lXjeO':_0xb54a63(0x23a),'XQmAX':_0xb54a63(0x22f),'hIcBH':function(_0x54c30c,_0x5c7295,_0x351393){return _0x54c30c(_0x5c7295,_0x351393);},'maIAg':'dummy-grid','zceQA':_0xb54a63(0x1f1),'jVzov':_0xb54a63(0x248),'MMUvF':function(_0x54874c,_0x1c6a7e,_0x47223a,_0x4b36d0,_0x301075,_0x3e1125,_0x2beeaa,_0x41583a){return _0x54874c(_0x1c6a7e,_0x47223a,_0x4b36d0,_0x301075,_0x3e1125,_0x2beeaa,_0x41583a);},'yVWZA':'accessResp','ZZnTf':function(_0x56d800){return _0x56d800();},'vGOhu':_0xb54a63(0x1f2),'MhDhI':function(_0x4675d5,_0x21a0e6){return _0x4675d5(_0x21a0e6);},'JWYaj':_0xb54a63(0x22c),'rkEXa':function(_0x112513,_0x53562d,_0x210737){return _0x112513(_0x53562d,_0x210737);},'TPPLu':_0xb54a63(0x2bb),'Ztfyb':_0xb54a63(0x27e),'wuDyv':'User\x20Access','SgsFw':_0xb54a63(0x1f7),'HwuWa':_0xb54a63(0x24b),'nkDVI':function(_0x5a0835,_0x3fbef8,_0x1eed5a){return _0x5a0835(_0x3fbef8,_0x1eed5a);},'tlaKC':function(_0x1b52a2,_0x13fb79){return _0x1b52a2+_0x13fb79;},'GmEBK':'utf-8','WFSgp':_0xb54a63(0x1d4)};let _0x507988,_0x269a69;try{global_registry[_0xb54a63(0x1da)]=_0x19a3db[_0xb54a63(0x212)](uuidv4);!fs[_0xb54a63(0x287)](_0x19a3db['lzvXv'](getCredentialsPath))&&(_0x269a69=_0x19a3db[_0xb54a63(0x27b)],logger[_0xb54a63(0x26a)](_0x269a69),await _0x19a3db[_0xb54a63(0x1f8)](reportToGalactusAndSendToEDS,_0x2e9872,_0x507988,_0x269a69,messageTypes[_0xb54a63(0x278)],_0x19a3db['BOnTR'],_0x19a3db[_0xb54a63(0x29f)],_0x19a3db[_0xb54a63(0x223)]),process[_0xb54a63(0x29d)](0x1));_0x19a3db['XEngu'](sendInstrumentationEvent,_0x2e9872,_0x19a3db[_0xb54a63(0x24a)],messageTypes['INFO'],null,null,_0x2e9872);const _0x1af972=JSON['parse'](fs[_0xb54a63(0x22a)](_0x19a3db[_0xb54a63(0x212)](getCredentialsPath)));global_registry[_0xb54a63(0x210)]=_0x1af972[_0xb54a63(0x289)][_0xb54a63(0x246)],global_registry['bstackAccesskey']=_0x1af972[_0xb54a63(0x289)][_0xb54a63(0x1ee)];const _0x137067=WS_ENDPOINT['replace'](_0x19a3db['lXjeO'],_0x1af972[_0xb54a63(0x289)][_0xb54a63(0x246)])[_0xb54a63(0x27f)](_0x19a3db[_0xb54a63(0x2ba)],_0x1af972['Browserstack']['password']),_0x459130={};_0x459130[_0xb54a63(0x217)]=ws,_0x459130[_0xb54a63(0x2c3)]=0x36ee80,_0x507988=new ReconnectingWebSocket(_0x137067,[],_0x459130),global_registry[_0xb54a63(0x1e7)]=_0x19a3db['hIcBH'](getAuthHeader,global_registry[_0xb54a63(0x210)],global_registry[_0xb54a63(0x255)]),await _0x19a3db[_0xb54a63(0x226)](inputValidation,_0x2e9872,_0x507988),logger[_0xb54a63(0x26c)](_0xb54a63(0x277)+global_registry[_0xb54a63(0x2c1)]+'\x20region\x20-\x20'+global_registry[_0xb54a63(0x1e9)]);let _0x4a8531=await _0x19a3db[_0xb54a63(0x2c2)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry['clusterName'],_0x19a3db['maIAg'],_0x507988,webSocketUtils,_0x2e9872);const _0x4b21c8=await _0x4a8531[_0xb54a63(0x2bc)]();_0x19a3db['hIcBH'](printResponse,_0x19a3db[_0xb54a63(0x260)],_0x4b21c8),_0x4a8531=await _0x4a8531[_0xb54a63(0x21c)]();let _0x20189a=![];try{_0x20189a=await _0x4a8531[_0xb54a63(0x269)]();}catch(_0x339e97){const _0xb27ef4=_0x19a3db[_0xb54a63(0x256)][_0xb54a63(0x20d)]('|');let _0x3ebd0a=0x0;while(!![]){switch(_0xb27ef4[_0x3ebd0a++]){case'0':_0x269a69=_0xb54a63(0x296)+global_registry[_0xb54a63(0x2b7)]+_0xb54a63(0x293)+global_registry[_0xb54a63(0x1e9)]+_0xb54a63(0x28b)+_0x339e97;continue;case'1':await _0x19a3db[_0xb54a63(0x2c8)](reportToGalactusAndSendToEDS,_0x2e9872,_0x507988,_0x269a69,messageTypes[_0xb54a63(0x278)],_0x19a3db[_0xb54a63(0x24a)],_0xb54a63(0x239)+global_registry[_0xb54a63(0x2c1)],_0x19a3db[_0xb54a63(0x223)]);continue;case'2':logger['error'](_0x269a69);continue;case'3':_0x269a69+='\x0a'+JSON[_0xb54a63(0x2a4)](_0x339e97['stack']);continue;case'4':_0x20189a=null;continue;}break;}}_0x20189a&&logger[_0xb54a63(0x26c)](_0xb54a63(0x2af)+global_registry[_0xb54a63(0x2b7)]+_0xb54a63(0x235));const _0x5fe091=await _0x4a8531[_0xb54a63(0x208)]();_0x19a3db[_0xb54a63(0x226)](printResponse,_0x19a3db[_0xb54a63(0x271)],_0x5fe091);const _0x45fd0d=await _0x19a3db[_0xb54a63(0x207)](curlRequest);_0x19a3db[_0xb54a63(0x226)](printResponse,_0x19a3db[_0xb54a63(0x220)],_0x45fd0d);const _0x8155b1=await _0x19a3db[_0xb54a63(0x1ff)](isTlsSupported,_0x19a3db['JWYaj']);_0x19a3db[_0xb54a63(0x1e8)](printResponse,_0x19a3db['TPPLu'],_0x8155b1);const _0x46d97b={};_0x46d97b['header']=_0x19a3db[_0xb54a63(0x215)],_0x46d97b[_0xb54a63(0x22e)]=_0x4b21c8;const _0x5143c1={};_0x5143c1['header']=_0x19a3db[_0xb54a63(0x1f6)],_0x5143c1[_0xb54a63(0x22e)]=_0x5fe091;const _0x24263d={};_0x24263d[_0xb54a63(0x233)]=_0x19a3db[_0xb54a63(0x2c7)],_0x24263d[_0xb54a63(0x22e)]=_0x45fd0d;const _0x1043e6={};_0x1043e6['header']=_0x19a3db[_0xb54a63(0x24f)],_0x1043e6[_0xb54a63(0x22e)]=_0x8155b1;const _0x14e7e2=[_0x46d97b,_0x5143c1,_0x24263d,_0x1043e6],_0x26a62f=await _0x19a3db['nkDVI'](generateReport,_0x14e7e2,_0x20189a),_0x597133=new Date(),_0x3b5e32=_0x597133['getUTCFullYear']()+'_'+_0x19a3db[_0xb54a63(0x25d)](_0x597133['getUTCMonth'](),0x1)+'_'+_0x597133[_0xb54a63(0x1f9)]()+'_'+_0x597133['getUTCHours']()+'_'+_0x597133['getUTCMinutes'](),_0x4a41c2=_0xb54a63(0x1df)+_0x3b5e32+'.txt';fs[_0xb54a63(0x268)](_0x4a41c2,_0x26a62f,_0x19a3db[_0xb54a63(0x22d)]),logger[_0xb54a63(0x26c)]('Report\x20saved\x20in\x20'+_0x4a41c2),process[_0xb54a63(0x29d)](0x0);}catch(_0x33dc8b){let _0x4b50b3=_0xb54a63(0x22b)+_0x33dc8b+'\x20';logger['error'](_0x4b50b3),_0x4b50b3+='\x0a'+JSON[_0xb54a63(0x2a4)](_0x33dc8b[_0xb54a63(0x229)]),logger[_0xb54a63(0x2b3)]('stack\x20trace\x20'+_0x33dc8b[_0xb54a63(0x229)]);if(_0x507988){const _0x188a0b={};_0x188a0b[_0xb54a63(0x200)]=WS_EVENTS['LOG'],_0x188a0b['message']=_0x4b50b3,webSocketUtils[_0xb54a63(0x20c)](_0x507988,_0x188a0b,_0x19a3db['IHpbU'],!![]);}await webSocketUtils[_0xb54a63(0x2b0)](0x7d0);const _0x26b355={};_0x26b355['error']=_0x4b50b3,await _0x19a3db[_0xb54a63(0x2c2)](sendInstrumentationEvent,_0x2e9872,_0x19a3db[_0xb54a63(0x24a)],messageTypes[_0xb54a63(0x278)],_0x19a3db[_0xb54a63(0x25f)],_0x26b355,_0x2e9872),process[_0xb54a63(0x29d)](0x1);}};function a17_0x364d(){const _0x2b2097=['aGBmC','lzvXv','forEach','xwOLl','Ztfyb','wRhkY','WebSocket','pTKHH','../../utils/utilityMethods','ZQnEw','LOG','init','epilogue','Invalid\x20input.\x20grid\x20profiles:\x20','Message:\x20','vGOhu',']\x20status\x20:\x20','mlRwR','IHpbU','Duzul','CLOUD_PROVIDER','hIcBH','APeQN','6tqNPZU','stack','readFileSync','Failed\x20in\x20pre-check!\x20Error:\x20','TLSv1_2_client_method','GmEBK','response','<PasswordPlaceholder>','throwHttpErrors','GET','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','header','AYvUy','`\x20already\x20exists','UkJEA','KIvJx','got','cluster-check-failed-','<UsernamePlaceholder>','9989357EcXKzx','1wIHlMs','HUGxW','body','FGdEe','NuVgG','Status:\x20','OaYlA','WYktm','290JJBfuC','BJOSt','username','bdfoN','0|4|2|3|1','cazCM','BOnTR','SSL\x20Configured','usage','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','HwuWa','QUFyX','error\x20stack\x20:\x20','ceOlh','YXNzK','dROKC','bstackAccesskey','jVzov','pre-check-grid-called','SKnBh','yUCCy','2627356qXVNUu','ccfUA','mLBPk','tlaKC','muuUr','WFSgp','zceQA','4yfwQwq','CWyKy','method','sjPRP','Pkwld','FTYRu','\x20error\x20:\x20','writeFileSync','isClusterPresent','error','https://','info','Missing\x20required\x20arguments:\x20','fOeoD','name','../../cloudproviders/utils','yVWZA','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','1708456pwGCFX','fIxlN','../../config/constants','GaAoS','Pre-check\x20running\x20for\x20Cloud\x20-\x20','ERROR','desc','\x20data\x20:\x20','atWVT','cwmue','moUtD','Tool\x20Installed','replace','push','description','vujzH','vgCnM','LPmsC','MoRHl','eEdwH','existsSync','pre-check-grid-profile-empty','Browserstack','CnGaF','`\x20,error\x20:\x20','help','jaogq','JORSb','Grid\x20profile\x20fetched\x20for\x20pre-check','72aeBFpE','Error\x20Details:\x0a','LnXUQ','`\x20is\x20present\x20in\x20region\x20`','reconnecting-websocket','/packages/cli/get-all-grid-profiles','unable\x20to\x20verify\x20if\x20cluster\x20`','DLShW','gQdtZ','HxMsO','headers','argv','MiMfz','exit','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','RoumY','cloud-provider-not-supported','gridProfile','Cluster\x20details\x0a-----------------------\x0a','247346TDySDT','stringify','Cluster\x20','TFhbi','vpyPd','ZwYMr','Rsxjx','6626784CVQswV','NSpNl','includes','vHgog','gDvjv','Cluster\x20`','delay','atNsv','region','debug','hZnaJ','\x20\x20Code:\x20','\x20\x20Stack:\x20','clusterName','xNXBy','../../utils/instrumentationUtils','XQmAX','isTls1_2_SUPPORTED','isCliToolInstalled','\x20\x20Message:\x20','code','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','cluster-name','cloudProvider','XEngu','connectionTimeout','eGSNu','options','EXArD','SgsFw','MMUvF','fwgon','will\x20be\x20created','status','Setting\x20cloud\x20provider\x20as\x20','1832025EFhDhn','dxAEs','fXdaM','pre-check-failed','CmudR','pNdQa','pPVgu','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','LcqAx','requestId','toLowerCase','join','is\x20already\x20present','../../utils/webSocketUtils','log/report_','===\x20Precheck\x20Report\x20-\x20','\x20===\x0a\x0a','DCFIa','ZKfPC','cloud-provider','fQprI','PqVrR','authHeader','rkEXa','clusterRegion','message','Success','ZobGi','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','password','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','grid','toolInstalledResp','isTrialGridAccessible','mOAEF','SKzpr','INVFL','wuDyv','Whitelisted\x20browserstack','AHHOC','getUTCDate','13ZSSaQC','builder','TYVGb','6354655LsHuVZ','string','MhDhI','type','CIAea','mtnlj','N/A','yxVis','BoQAX','wlVKC','ZZnTf','checkAccess','credential-not-found','vNoGX','UCjvn','sendEventToBackend','split','handler','grid-profile','bstackUsername'];a17_0x364d=function(){return _0x2b2097;};return a17_0x364d();}
1
+ const a17_0x50a54d=a17_0x4c84;(function(_0x4826fa,_0x1c59f6){const _0x3ebc9c=a17_0x4c84,_0x2680b9=_0x4826fa();while(!![]){try{const _0x5ca97b=-parseInt(_0x3ebc9c(0x14a))/0x1*(parseInt(_0x3ebc9c(0x161))/0x2)+parseInt(_0x3ebc9c(0x1cc))/0x3+-parseInt(_0x3ebc9c(0x130))/0x4+-parseInt(_0x3ebc9c(0x188))/0x5+-parseInt(_0x3ebc9c(0x1f5))/0x6*(-parseInt(_0x3ebc9c(0x1f4))/0x7)+parseInt(_0x3ebc9c(0x164))/0x8+parseInt(_0x3ebc9c(0x1a6))/0x9;if(_0x5ca97b===_0x1c59f6)break;else _0x2680b9['push'](_0x2680b9['shift']());}catch(_0x49f4f6){_0x2680b9['push'](_0x2680b9['shift']());}}}(a17_0x5811,0x35226));function a17_0x4c84(_0x58706a,_0x1f18b7){const _0x5811dc=a17_0x5811();return a17_0x4c84=function(_0x4c8499,_0x12e0dd){_0x4c8499=_0x4c8499-0x125;let _0x4d4549=_0x5811dc[_0x4c8499];return _0x4d4549;},a17_0x4c84(_0x58706a,_0x1f18b7);}const fs=require('fs'),ws=require('ws'),got=require(a17_0x50a54d(0x19d)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x50a54d(0x1c4)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x50a54d(0x1c7)),{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_0x50a54d(0x137)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x50a54d(0x168)),{sendInstrumentationEvent}=require(a17_0x50a54d(0x17e));exports[a17_0x50a54d(0x128)]=a17_0x50a54d(0x1d8),exports[a17_0x50a54d(0x1ce)]=a17_0x50a54d(0x1be),exports[a17_0x50a54d(0x219)]=function(_0x20617c){const _0x4ef986=a17_0x50a54d,_0x3af000={};_0x3af000[_0x4ef986(0x14e)]=_0x4ef986(0x160),_0x3af000[_0x4ef986(0x1e3)]=_0x4ef986(0x207),_0x3af000['iJjZh']=_0x4ef986(0x1a3),_0x3af000[_0x4ef986(0x1cf)]=_0x4ef986(0x1b4),_0x3af000['zJxQO']='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x3af000[_0x4ef986(0x17d)]='help';const _0x3eb3fa=_0x3af000,_0x35565f={};_0x35565f[_0x4ef986(0x177)]=_0x3eb3fa[_0x4ef986(0x14e)],_0x35565f[_0x4ef986(0x1e7)]=_0x3eb3fa['fNPtl'];const _0x152bb2={};_0x152bb2[_0x4ef986(0x177)]=_0x3eb3fa[_0x4ef986(0x15a)],_0x152bb2[_0x4ef986(0x1e7)]=_0x3eb3fa[_0x4ef986(0x1e3)];const _0x5718fb={};_0x5718fb[_0x4ef986(0x177)]=_0x3eb3fa[_0x4ef986(0x1cf)],_0x5718fb[_0x4ef986(0x1e7)]=_0x3eb3fa[_0x4ef986(0x1e3)];const _0x2df4bf={};_0x2df4bf[_0x4ef986(0x177)]=_0x3eb3fa['zJxQO'],_0x2df4bf[_0x4ef986(0x1e7)]=_0x3eb3fa['fNPtl'];const _0x2f8927={};return _0x2f8927[_0x4ef986(0x138)]=_0x35565f,_0x2f8927[_0x4ef986(0x147)]=_0x152bb2,_0x2f8927[_0x4ef986(0x1bc)]=_0x5718fb,_0x2f8927[_0x4ef986(0x205)]=_0x2df4bf,_0x20617c[_0x4ef986(0x208)](HELP_HEADER_MESSAGE[_0x4ef986(0x13c)])[_0x4ef986(0x1c1)](HELP_FOOTER_MESSAGE)[_0x4ef986(0x1d4)](_0x2f8927)[_0x4ef986(0x154)](_0x3eb3fa[_0x4ef986(0x17d)])[_0x4ef986(0x182)];};async function inputValidation(_0x479733,_0x27738a){const _0x10b233=a17_0x50a54d,_0x3ee684={'lGZKc':function(_0x10b4f9,_0x6d6921){return _0x10b4f9+_0x6d6921;},'WwVOF':_0x10b233(0x155),'msokJ':_0x10b233(0x15e),'GJRGI':function(_0x427ba1,_0x1312f9){return _0x427ba1||_0x1312f9;},'uPgDh':_0x10b233(0x189),'jrjvv':_0x10b233(0x15c),'WymmO':'region','wzxRY':_0x10b233(0x1f7),'jWiFQ':_0x10b233(0x1c6),'kXsbH':_0x10b233(0x160),'bxsFh':_0x10b233(0x207),'xudXq':_0x10b233(0x1a3),'gvaHH':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','SbWLU':_0x10b233(0x1bf),'THewn':_0x10b233(0x154),'Vtxfw':_0x10b233(0x138),'IgsJw':_0x10b233(0x12a),'MUHpm':_0x10b233(0x1e1),'kYMXX':_0x10b233(0x147),'yeZgS':function(_0x2a9b42,_0x5d6c4a){return _0x2a9b42===_0x5d6c4a;},'dciHe':_0x10b233(0x179),'bKHGb':'GdQTr','fAxWI':function(_0xc2acfe,_0x8c172f){return _0xc2acfe===_0x8c172f;},'jkJTZ':_0x10b233(0x152),'Kwnai':_0x10b233(0x1e6),'DICBf':function(_0x1d1c51,_0x194b5a){return _0x1d1c51!==_0x194b5a;},'Dpvbg':_0x10b233(0x20c),'nHsmT':_0x10b233(0x1e0),'PLGna':_0x10b233(0x1d7),'DOpfu':_0x10b233(0x210),'BnzVd':function(_0x20e8b1,_0x5445e6){return _0x20e8b1===_0x5445e6;},'UDTcZ':_0x10b233(0x220),'hrYCu':_0x10b233(0x19b),'rqfEk':function(_0x23b201,_0x4370b1){return _0x23b201>_0x4370b1;},'gzpTc':_0x10b233(0x126),'Rgzfu':_0x10b233(0x19f),'BVZDM':function(_0x2ae554,_0x332693,_0x5eb973,_0x42d9d9,_0xda5484,_0x39c119,_0x3d04ed,_0x586d37){return _0x2ae554(_0x332693,_0x5eb973,_0x42d9d9,_0xda5484,_0x39c119,_0x3d04ed,_0x586d37);},'AnxeH':_0x10b233(0x195),'bMSFL':_0x10b233(0x135),'dYhQV':_0x10b233(0x198),'orXUb':_0x10b233(0x175),'lUsmN':function(_0x5a8923,_0x5c685d,_0x23a7e0,_0x39c5cb,_0x14769b,_0x4c7601,_0x42f8d4,_0x1148fc){return _0x5a8923(_0x5c685d,_0x23a7e0,_0x39c5cb,_0x14769b,_0x4c7601,_0x42f8d4,_0x1148fc);},'hyOCh':_0x10b233(0x13b),'cquQb':_0x10b233(0x1f3),'gNrNR':'uIUvd','BwkkD':_0x10b233(0x1fa),'FHbOg':'kOHzK','fYrgr':_0x10b233(0x21c),'iftOO':function(_0x847bcb,_0x2f3eb9,_0x4ff2af){return _0x847bcb(_0x2f3eb9,_0x4ff2af);},'idOql':function(_0x322535,_0x2fc7b3,_0x330dc9,_0x1b7b94,_0x323352,_0x52f110){return _0x322535(_0x2fc7b3,_0x330dc9,_0x1b7b94,_0x323352,_0x52f110);},'EVPAq':'pre-check','gflZk':_0x10b233(0x205),'lPmkH':'rzxOU','hzhHs':function(_0x53519a,_0x4d452f){return _0x53519a(_0x4d452f);},'zqUEL':_0x10b233(0x202),'IScYL':function(_0x52762e,_0x2f84aa,_0x5a07ac,_0x8e8145,_0x84541a,_0x53adb5,_0x3627ac,_0x374fd3){return _0x52762e(_0x2f84aa,_0x5a07ac,_0x8e8145,_0x84541a,_0x53adb5,_0x3627ac,_0x374fd3);},'hsqRB':_0x10b233(0x13e),'LUdpk':'bjOad','nqxrq':function(_0x371da6,_0x1a2490){return _0x371da6===_0x1a2490;},'RwKHv':'whpDC','KiKPm':_0x10b233(0x20f),'fNGCn':_0x10b233(0x1a0),'LVOim':function(_0x234f7d,_0x5a2bd3){return _0x234f7d===_0x5a2bd3;},'ZnKGV':_0x10b233(0x1fc),'MtbOY':_0x10b233(0x1a5),'qOdzp':_0x10b233(0x12d),'sqdTs':function(_0x173257,_0x58be10,_0x165bcb,_0x3cdc32,_0x4bdac5,_0xfe5d1,_0x4fea18,_0x156d20){return _0x173257(_0x58be10,_0x165bcb,_0x3cdc32,_0x4bdac5,_0xfe5d1,_0x4fea18,_0x156d20);}};let _0x279f42;try{if(_0x3ee684[_0x10b233(0x1a8)](_0x3ee684[_0x10b233(0x143)],_0x3ee684[_0x10b233(0x1b7)])){const {header:_0x46258d,response:_0x32617c}=_0x453613,{status:_0x4e7197,data:_0x22ed15,error:_0x6f529f}=_0x32617c;_0x18c306+=_0x46258d+'\x20#'+_0x3ee684['lGZKc'](_0x3d403a,0x1)+'\x0a',_0x342ce6+='Status:\x20'+(_0x4e7197?_0x3ee684['WwVOF']:_0x3ee684[_0x10b233(0x193)])+'\x0a',_0x434cd4+=_0x10b233(0x178)+_0x3ee684[_0x10b233(0x209)](_0x22ed15,_0x3ee684[_0x10b233(0x1ba)])+'\x0a',_0x6f529f&&(_0x15ec08+=_0x3ee684[_0x10b233(0x157)],_0x4eec63+='\x20\x20Message:\x20'+(_0x6f529f[_0x10b233(0x201)]||_0x3ee684['uPgDh'])+'\x0a',_0x22b90f+=_0x10b233(0x1bb)+(_0x6f529f[_0x10b233(0x1e8)]||_0x3ee684[_0x10b233(0x1ba)])+'\x0a',_0x4ac250+=_0x10b233(0x20b)+(_0x6f529f[_0x10b233(0x18b)]||_0x3ee684['uPgDh'])+'\x0a'),_0x5ac42+='\x0a\x0a';}else{if(_0x479733['clusterName']||_0x479733[_0x10b233(0x133)]||_0x479733[_0x10b233(0x1bc)]){if(_0x3ee684['fAxWI'](_0x3ee684[_0x10b233(0x1eb)],_0x3ee684['Kwnai']))_0xca0bfa[_0x10b233(0x139)](_0x3ee684[_0x10b233(0x163)]);else{const _0x8d698d=[];if(!_0x479733[_0x10b233(0x1c8)]){if(_0x3ee684[_0x10b233(0x174)](_0x3ee684[_0x10b233(0x185)],_0x3ee684['nHsmT']))_0x8d698d[_0x10b233(0x139)](_0x3ee684[_0x10b233(0x145)]);else{const _0x586c56={};_0x586c56[_0x10b233(0x1e7)]=_0x5475ac[_0x10b233(0x146)],_0x586c56[_0x10b233(0x201)]=_0x5c330e,_0x34ddc3['sendEventToBackend'](_0x591207,_0x586c56,_0x3ee684[_0x10b233(0x1d6)],!![]);}};!_0x479733[_0x10b233(0x133)]&&(_0x3ee684[_0x10b233(0x20e)](_0x3ee684[_0x10b233(0x13d)],_0x3ee684[_0x10b233(0x1ef)])?(_0x2c0acf[_0x10b233(0x212)](_0x10b233(0x18f)+_0x35e20d[_0x10b233(0x173)]+'\x20'),_0x45e88b[_0x10b233(0x133)]=_0x1f00e6[_0x10b233(0x173)]):_0x8d698d[_0x10b233(0x139)](_0x3ee684['kYMXX']));;!_0x479733[_0x10b233(0x1bc)]&&(_0x3ee684[_0x10b233(0x1dd)](_0x3ee684[_0x10b233(0x176)],_0x3ee684[_0x10b233(0x1b6)])?(_0x134559+=_0x3ee684[_0x10b233(0x157)],_0x819204+=_0x10b233(0x12f)+(_0x2dd29d[_0x10b233(0x201)]||_0x3ee684['uPgDh'])+'\x0a',_0x3ae4af+='\x20\x20Code:\x20'+(_0x3a01d2['code']||_0x3ee684[_0x10b233(0x1ba)])+'\x0a',_0x126dc7+=_0x10b233(0x20b)+(_0x489531[_0x10b233(0x18b)]||_0x3ee684['uPgDh'])+'\x0a'):_0x8d698d['push'](_0x3ee684[_0x10b233(0x163)]));;_0x3ee684[_0x10b233(0x1c3)](_0x8d698d[_0x10b233(0x1f9)],0x0)&&(_0x3ee684[_0x10b233(0x174)](_0x3ee684[_0x10b233(0x1ac)],_0x3ee684[_0x10b233(0x1b3)])?(_0x279f42=_0x10b233(0x1b9)+_0x8d698d[_0x10b233(0x1b2)](',\x20')+_0x10b233(0x16c),await _0x3ee684[_0x10b233(0x1ad)](reportToGalactusAndSendToEDS,_0x479733,_0x27738a,_0x279f42,messageTypes[_0x10b233(0x1ab)],_0x3ee684['AnxeH'],_0x3ee684[_0x10b233(0x159)],_0x3ee684['wzxRY']),logger[_0x10b233(0x1f7)](_0x279f42),process['exit'](0x1)):_0x3aecc8=_0x286c07),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x10b233(0x21d)](_0x479733[_0x10b233(0x133)][_0x10b233(0x190)]())&&(_0x3ee684[_0x10b233(0x174)](_0x3ee684[_0x10b233(0x200)],_0x3ee684[_0x10b233(0x200)])?(_0x43a5dd[_0x10b233(0x212)]('['+_0x316c8c+_0x10b233(0x1a9)+_0x3009fc[_0x10b233(0x162)]+'\x20data\x20:\x20'+_0x1a0822['data']+_0x10b233(0x172)+_0x3f8ac7['error']),_0x25d4ae[_0x10b233(0x1f7)]&&_0x33594a[_0x10b233(0x1f7)]('error\x20stack\x20:\x20'+_0x488b18['error']['stack'])):(_0x279f42=_0x3ee684['orXUb'],await _0x3ee684['lUsmN'](reportToGalactusAndSendToEDS,_0x479733,_0x27738a,_0x279f42,messageTypes[_0x10b233(0x1ab)],_0x3ee684[_0x10b233(0x1b5)],_0x3ee684[_0x10b233(0x141)],_0x3ee684[_0x10b233(0x1d6)]),logger['error'](_0x279f42),!_0x479733[_0x10b233(0x133)]&&(_0x3ee684['DICBf'](_0x3ee684['cquQb'],_0x3ee684[_0x10b233(0x1fb)])?(logger[_0x10b233(0x212)](_0x10b233(0x18f)+DEFAULT_CLUSTER_DETAILS[_0x10b233(0x173)]+'\x20'),_0x479733[_0x10b233(0x133)]=DEFAULT_CLUSTER_DETAILS[_0x10b233(0x173)]):_0x138fab+='Cluster\x20'+_0x11de2a[_0x10b233(0x1c8)]+_0x10b233(0x14c)))),global_registry[_0x10b233(0x1c8)]=_0x479733[_0x10b233(0x1c8)],global_registry['cloudProvider']=_0x479733['cloudProvider'],global_registry[_0x10b233(0x180)]=_0x479733[_0x10b233(0x1bc)];}}else{if(_0x479733[_0x10b233(0x1ed)]){if(_0x3ee684[_0x10b233(0x1dd)](_0x3ee684[_0x10b233(0x216)],_0x3ee684[_0x10b233(0x183)]))_0x115f80[_0x10b233(0x1f7)](_0x10b233(0x1fd)+_0x35a1b2[_0x10b233(0x1f7)][_0x10b233(0x18b)]);else{global_registry[_0x10b233(0x1ed)]=_0x479733[_0x10b233(0x1ed)],logger[_0x10b233(0x1f2)](_0x10b233(0x17f)+_0x479733[_0x10b233(0x1ed)]);const _0x24e868=_0x10b233(0x1e5)+AG_API_URL+_0x10b233(0x20a),_0x4a6983={};_0x4a6983[_0x10b233(0x150)]=_0x3ee684[_0x10b233(0x196)],_0x4a6983[_0x10b233(0x19a)]=global_registry['authHeader'],_0x4a6983[_0x10b233(0x1bd)]=![];const _0x3a090b=_0x4a6983,_0x4ce71a=await _0x3ee684['iftOO'](got,_0x24e868,_0x3a090b),_0x14c147=await _0x3ee684[_0x10b233(0x1e9)](responseValidation,_0x4ce71a,_0x3ee684[_0x10b233(0x166)],_0x3ee684[_0x10b233(0x1c2)],_0x479733,_0x27738a);let _0x4a67ff={};if(_0x3ee684[_0x10b233(0x1dd)](_0x14c147,0xc8)){if(_0x3ee684[_0x10b233(0x174)](_0x3ee684['lPmkH'],_0x3ee684[_0x10b233(0x20d)]))_0x2e57ed[_0x10b233(0x1f7)](_0x3ee684[_0x10b233(0x1dc)]),_0xda0b71[_0x10b233(0x1d0)](0x1);else{const _0x39dcb5=JSON['parse'](_0x4ce71a[_0x10b233(0x186)]),_0x1927f6=_0x39dcb5[_0x10b233(0x153)](_0x19fa71=>_0x19fa71[_0x10b233(0x140)]===_0x479733[_0x10b233(0x1ed)])||null;if(_0x3ee684['hzhHs'](isUndefined,_0x1927f6)){if(_0x3ee684['DICBf'](_0x3ee684[_0x10b233(0x18a)],_0x3ee684[_0x10b233(0x18a)])){const _0x2b14fc={};_0x2b14fc['description']=_0x3ee684['kXsbH'],_0x2b14fc[_0x10b233(0x1e7)]=_0x3ee684[_0x10b233(0x148)];const _0x5cec2e={};_0x5cec2e[_0x10b233(0x177)]=_0x3ee684[_0x10b233(0x1df)],_0x5cec2e[_0x10b233(0x1e7)]=_0x3ee684[_0x10b233(0x148)];const _0x5cc8be={};_0x5cc8be[_0x10b233(0x177)]=_0x3ee684[_0x10b233(0x13f)],_0x5cc8be[_0x10b233(0x1e7)]=_0x3ee684[_0x10b233(0x148)];const _0x3ba0a3={};_0x3ba0a3['description']=_0x3ee684[_0x10b233(0x1cb)],_0x3ba0a3['type']=_0x3ee684[_0x10b233(0x148)];const _0x39c491={};return _0x39c491[_0x10b233(0x138)]=_0x2b14fc,_0x39c491[_0x10b233(0x147)]=_0x5cec2e,_0x39c491[_0x10b233(0x1bc)]=_0x5cc8be,_0x39c491[_0x10b233(0x205)]=_0x3ba0a3,_0x3aa7b0[_0x10b233(0x208)](_0x29934f['pre_check'])[_0x10b233(0x1c1)](_0x4a1910)[_0x10b233(0x1d4)](_0x39c491)[_0x10b233(0x154)](_0x3ee684[_0x10b233(0x1e4)])[_0x10b233(0x182)];}else _0x279f42=_0x10b233(0x203)+_0x479733['gridProfile']+_0x10b233(0x1ca),await _0x3ee684[_0x10b233(0x217)](reportToGalactusAndSendToEDS,_0x479733,_0x27738a,_0x279f42,messageTypes[_0x10b233(0x1ab)],_0x3ee684[_0x10b233(0x1b5)],_0x3ee684[_0x10b233(0x156)],_0x3ee684[_0x10b233(0x1d6)]),logger[_0x10b233(0x1f7)](_0x279f42),process['exit'](0x1);}else _0x3ee684[_0x10b233(0x174)](_0x3ee684[_0x10b233(0x184)],_0x3ee684[_0x10b233(0x184)])?_0x703285[_0x10b233(0x139)](_0x3ee684[_0x10b233(0x145)]):_0x4a67ff=_0x1927f6;}}else _0x3ee684[_0x10b233(0x132)](_0x3ee684['RwKHv'],_0x3ee684['KiKPm'])?_0x5266ed[_0x10b233(0x212)](_0x10b233(0x21f)+_0x51241a[_0x10b233(0x1c8)]+_0x10b233(0x211)):process[_0x10b233(0x1d0)](0x1);const _0x2452b8={};_0x2452b8[_0x10b233(0x1e7)]=WS_EVENTS[_0x10b233(0x146)],_0x2452b8[_0x10b233(0x201)]=_0x3ee684[_0x10b233(0x206)],webSocketUtils[_0x10b233(0x21a)](_0x27738a,_0x2452b8),global_registry[_0x10b233(0x133)]=_0x4a67ff[_0x10b233(0x133)],global_registry[_0x10b233(0x180)]=_0x4a67ff['region'],global_registry[_0x10b233(0x1c8)]=_0x4a67ff['clusterName'];}}else _0x3ee684[_0x10b233(0x1d5)](_0x3ee684['ZnKGV'],_0x3ee684[_0x10b233(0x194)])?_0x568c43+=_0x10b233(0x222)+_0x137167['clusterName']+'\x20'+(_0x508b4a?_0x3ee684['IgsJw']:_0x3ee684['MUHpm'])+'\x0a\x0a':(logger['error'](_0x3ee684[_0x10b233(0x1dc)]),process[_0x10b233(0x1d0)](0x1));}}}catch(_0x2fc639){_0x3ee684[_0x10b233(0x174)](_0x3ee684[_0x10b233(0x1a2)],_0x3ee684[_0x10b233(0x1a2)])?_0x3697c4[_0x10b233(0x139)](_0x3ee684[_0x10b233(0x16d)]):(_0x279f42=_0x10b233(0x1de)+_0x2fc639+':\x20'+_0x2fc639[_0x10b233(0x18b)],logger['error'](_0x279f42),await _0x3ee684[_0x10b233(0x125)](reportToGalactusAndSendToEDS,_0x479733,_0x27738a,_0x279f42,messageTypes[_0x10b233(0x1ab)],_0x3ee684[_0x10b233(0x1b5)],_0x3ee684['hyOCh'],_0x3ee684[_0x10b233(0x1d6)]),process[_0x10b233(0x1d0)](0x1));}}function printResponse(_0x38c7cf,_0x6a05f2){const _0x579333=a17_0x50a54d,_0x47b605={};_0x47b605['xjwVu']=function(_0x48df2e,_0x268e8b){return _0x48df2e!==_0x268e8b;},_0x47b605[_0x579333(0x15b)]=_0x579333(0x1b1),_0x47b605[_0x579333(0x1ec)]='OqQlC';const _0x19ce11=_0x47b605;logger[_0x579333(0x212)]('['+_0x38c7cf+_0x579333(0x1a9)+_0x6a05f2['status']+_0x579333(0x1f0)+_0x6a05f2[_0x579333(0x149)]+_0x579333(0x172)+_0x6a05f2[_0x579333(0x1f7)]),_0x6a05f2[_0x579333(0x1f7)]&&(_0x19ce11[_0x579333(0x136)](_0x19ce11[_0x579333(0x15b)],_0x19ce11[_0x579333(0x1ec)])?logger['error'](_0x579333(0x1fd)+_0x6a05f2[_0x579333(0x1f7)]['stack']):_0x521a1e[_0x579333(0x1d0)](0x1));}async function generateReport(_0x13ad4a,_0x5aca93){const _0x4426b3=a17_0x50a54d,_0x27c938={'EXcyW':function(_0xb3d363,_0x52a119){return _0xb3d363+_0x52a119;},'tJxKf':_0x4426b3(0x155),'QfUjI':_0x4426b3(0x15e),'aUPqd':function(_0x1d157e,_0x1a59ba){return _0x1d157e||_0x1a59ba;},'CermP':_0x4426b3(0x189),'wHiAJ':'Error\x20Details:\x0a','YhbYa':_0x4426b3(0x214),'NcYFd':function(_0x4923f2,_0x48636b){return _0x4923f2!=_0x48636b;},'jdPQw':'is\x20already\x20present','RPyUk':'will\x20be\x20created','OGYOC':function(_0x19ae6e){return _0x19ae6e();}};let _0x3bfde9='===\x20Precheck\x20Report\x20-\x20'+global_registry['cloudProvider']+'\x20===\x0a\x0a';return _0x13ad4a['forEach']((_0x567b75,_0x28127e)=>{const _0x5bd18a=_0x4426b3,{header:_0x558267,response:_0x61b400}=_0x567b75,{status:_0x3fabff,data:_0x14ddb8,error:_0x5cd399}=_0x61b400;_0x3bfde9+=_0x558267+'\x20#'+_0x27c938[_0x5bd18a(0x18e)](_0x28127e,0x1)+'\x0a',_0x3bfde9+=_0x5bd18a(0x191)+(_0x3fabff?_0x27c938[_0x5bd18a(0x15f)]:_0x27c938[_0x5bd18a(0x181)])+'\x0a',_0x3bfde9+=_0x5bd18a(0x178)+_0x27c938['aUPqd'](_0x14ddb8,_0x27c938[_0x5bd18a(0x14d)])+'\x0a',_0x5cd399&&(_0x3bfde9+=_0x27c938[_0x5bd18a(0x14b)],_0x3bfde9+='\x20\x20Message:\x20'+(_0x5cd399['message']||_0x27c938['CermP'])+'\x0a',_0x3bfde9+='\x20\x20Code:\x20'+(_0x5cd399[_0x5bd18a(0x1e8)]||_0x27c938[_0x5bd18a(0x14d)])+'\x0a',_0x3bfde9+=_0x5bd18a(0x20b)+(_0x5cd399[_0x5bd18a(0x18b)]||_0x27c938['CermP'])+'\x0a'),_0x3bfde9+='\x0a\x0a';}),_0x3bfde9+=_0x27c938[_0x4426b3(0x127)],_0x27c938[_0x4426b3(0x1ff)](_0x5aca93,null)?_0x3bfde9+=_0x4426b3(0x222)+global_registry[_0x4426b3(0x1c8)]+'\x20'+(_0x5aca93?_0x27c938[_0x4426b3(0x171)]:_0x27c938[_0x4426b3(0x170)])+'\x0a\x0a':_0x3bfde9+=_0x4426b3(0x222)+global_registry[_0x4426b3(0x1c8)]+_0x4426b3(0x14c),_0x3bfde9+=_0x27c938['OGYOC'](getSystemMetaData),_0x3bfde9;}function a17_0x5811(){const _0xe86991=['RPyUk','jdPQw','\x20error\x20:\x20','CLOUD_PROVIDER','DICBf','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','UDTcZ','description','Message:\x20','xtGzV','SSL\x20Configured','Browserstack','Pre-check\x20running\x20for\x20Cloud\x20-\x20','dZnWL','../../utils/instrumentationUtils','grid\x20profile\x20flow\x20','clusterRegion','QfUjI','argv','FHbOg','LUdpk','Dpvbg','body','meJTR','1108525jRVnaT','N/A','zqUEL','stack','pre-check-failed','accessResp','EXcyW','Setting\x20cloud\x20provider\x20as\x20','toLowerCase','Status:\x20','zPrsc','msokJ','MtbOY','pre-check-grid-called','fYrgr','fvKur','HbiMt','eXidV','headers','bdMOw','PgWRW','got','nMxFF','dpDeA','Grid\x20profile\x20fetched\x20for\x20pre-check','getUTCMinutes','qOdzp','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','isClusterPresent','sGEta','1373067qAXTdR','BrUho','yeZgS',']\x20status\x20:\x20','bstackUsername','ERROR','gzpTc','BVZDM','INFO','<UsernamePlaceholder>','Nlwce','YLtkr','join','Rgzfu','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','AnxeH','hrYCu','bKHGb','bstackAccesskey','Missing\x20required\x20arguments:\x20','uPgDh','\x20\x20Code:\x20','region','throwHttpErrors','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','User\x20Access','epilogue','gflZk','rqfEk','reconnecting-websocket','TLSv1_2_client_method','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','../../config/logger','clusterName','toolInstalledResp','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','SbWLU','979815zfXBwU','mWFvw','desc','BLKlv','exit','mBpyN','replace','fGOaC','options','LVOim','wzxRY','yENkE','grid','Tool\x20Installed','split','FJTaI','jWiFQ','BnzVd','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','xudXq','mrVLW','will\x20be\x20created','isTrialGridAccessible','fNPtl','THewn','https://','roTxW','type','code','idOql','header','jkJTZ','EBOCJ','gridProfile','requestId','DOpfu','\x20data\x20:\x20','authHeader','debug','NnlxG','188608RicJIc','72DMVPyw','writeFileSync','error','log/report_','length','nMXPD','gNrNR','exxNo','error\x20stack\x20:\x20','getUTCHours','NcYFd','dYhQV','message','HYYat','Invalid\x20input.\x20grid\x20profiles:\x20','connectionTimeout','grid-profile','fNGCn','string','usage','GJRGI','/packages/cli/get-all-grid-profiles','\x20\x20Stack:\x20','HUAyy','lPmkH','fAxWI','cVwwc','lxKAu','`\x20already\x20exists','info','HBSwk','Cluster\x20details\x0a-----------------------\x0a','hBykj','BwkkD','IScYL','isTls1_2_SUPPORTED','builder','sendEventToBackend','password','GET','includes','username','Cluster\x20`','WyzaA','HuFGp','Cluster\x20','yEbLe','sqdTs','rJHyT','YhbYa','command','.txt','is\x20already\x20present','phMsI','Report\x20saved\x20in\x20','DQkkR','Failed\x20in\x20pre-check!\x20Error:\x20','\x20\x20Message:\x20','746960bzinBv','unable\x20to\x20verify\x20if\x20cluster\x20`','nqxrq','cloudProvider','UdsIf','pre-check-cluster-args-not-passed','xjwVu','../../config/constants','cluster-name','push','3|0|2|1|4','cloud-provider-not-supported','pre_check','PLGna','pre-check-grid-profile-empty','gvaHH','name','hyOCh','<PasswordPlaceholder>','dciHe','HnCSC','Vtxfw','LOG','cloud-provider','bxsFh','data','579utahiI','wHiAJ','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','CermP','ptslc','checkAccess','method','ylrEY','nQFkG','find','help','Success','hsqRB','jrjvv','bqffF','bMSFL','iJjZh','kSgXH','Error\x20Details:\x0a','stringify','Failure','tJxKf','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','982TIbhGk','status','WymmO','863008uXoyDs','ZlyVl','EVPAq','response','../../utils/webSocketUtils','`\x20,error\x20:\x20','rLvxB','`\x20is\x20present\x20in\x20region\x20`','.\x20Please\x20provide\x20all\x20required\x20arguments.','kYMXX','credential-not-found','stack\x20trace\x20'];a17_0x5811=function(){return _0xe86991;};return a17_0x5811();};exports['handler']=async function(_0x1ea234){const _0x4fcea6=a17_0x50a54d,_0x4650f0={'PgWRW':function(_0x185be3){return _0x185be3();},'ylrEY':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','mBpyN':function(_0x1d9162,_0x484b50,_0x584de4,_0xcc7ff4,_0x57db22,_0x49b849,_0x4b3de6,_0x5a2100){return _0x1d9162(_0x484b50,_0x584de4,_0xcc7ff4,_0x57db22,_0x49b849,_0x4b3de6,_0x5a2100);},'phMsI':_0x4fcea6(0x195),'fvKur':_0x4fcea6(0x16e),'BrUho':_0x4fcea6(0x1f7),'ZlyVl':function(_0x8041f,_0x49e047,_0x150435,_0x123d30,_0x553336,_0x26e4eb,_0x5b1906){return _0x8041f(_0x49e047,_0x150435,_0x123d30,_0x553336,_0x26e4eb,_0x5b1906);},'ZoxNp':_0x4fcea6(0x1af),'HnCSC':_0x4fcea6(0x142),'mWFvw':function(_0x9f9f0,_0x537d58,_0xa770f1){return _0x9f9f0(_0x537d58,_0xa770f1);},'fGOaC':'dummy-grid','meJTR':function(_0x4979ad,_0xd087fe,_0x2d1996){return _0x4979ad(_0xd087fe,_0x2d1996);},'uUmTH':_0x4fcea6(0x1c9),'UdsIf':_0x4fcea6(0x13a),'HuFGp':function(_0x58e24b,_0x435b62,_0x49cec8,_0x6924e1,_0x2a00ff,_0xa1d02c,_0x2c8294,_0x31491a){return _0x58e24b(_0x435b62,_0x49cec8,_0x6924e1,_0x2a00ff,_0xa1d02c,_0x2c8294,_0x31491a);},'yEbLe':function(_0x2dcec2,_0x17477e,_0xa9a780){return _0x2dcec2(_0x17477e,_0xa9a780);},'nMxFF':_0x4fcea6(0x18d),'HBSwk':function(_0x2da100,_0x1c2a74,_0x433c7f){return _0x2da100(_0x1c2a74,_0x433c7f);},'FJTaI':_0x4fcea6(0x1e2),'ebACd':function(_0xf2f785,_0x45a5b8){return _0xf2f785(_0x45a5b8);},'eXidV':_0x4fcea6(0x1c5),'Cxurd':_0x4fcea6(0x218),'Nlwce':_0x4fcea6(0x1d9),'bqffF':_0x4fcea6(0x1c0),'zPrsc':'Whitelisted\x20browserstack','rLvxB':_0x4fcea6(0x17a),'jMayH':function(_0x1942c2,_0x15757c){return _0x1942c2+_0x15757c;},'LtExR':'utf-8','hBykj':_0x4fcea6(0x18c)};let _0x76ea02,_0x408848;try{global_registry[_0x4fcea6(0x1ee)]=_0x4650f0[_0x4fcea6(0x19c)](uuidv4);!fs['existsSync'](_0x4650f0[_0x4fcea6(0x19c)](getCredentialsPath))&&(_0x408848=_0x4650f0[_0x4fcea6(0x151)],logger['error'](_0x408848),await _0x4650f0[_0x4fcea6(0x1d1)](reportToGalactusAndSendToEDS,_0x1ea234,_0x76ea02,_0x408848,messageTypes[_0x4fcea6(0x1ab)],_0x4650f0[_0x4fcea6(0x12b)],_0x4650f0[_0x4fcea6(0x197)],_0x4650f0['BrUho']),process[_0x4fcea6(0x1d0)](0x1));_0x4650f0[_0x4fcea6(0x165)](sendInstrumentationEvent,_0x1ea234,_0x4650f0['phMsI'],messageTypes[_0x4fcea6(0x1ae)],null,null,_0x1ea234);const _0x5d9042=JSON['parse'](fs['readFileSync'](_0x4650f0[_0x4fcea6(0x19c)](getCredentialsPath)));global_registry['bstackUsername']=_0x5d9042[_0x4fcea6(0x17b)][_0x4fcea6(0x21e)],global_registry[_0x4fcea6(0x1b8)]=_0x5d9042[_0x4fcea6(0x17b)][_0x4fcea6(0x21b)];const _0x4c1c92=WS_ENDPOINT[_0x4fcea6(0x1d2)](_0x4650f0['ZoxNp'],_0x5d9042['Browserstack'][_0x4fcea6(0x21e)])[_0x4fcea6(0x1d2)](_0x4650f0[_0x4fcea6(0x144)],_0x5d9042[_0x4fcea6(0x17b)][_0x4fcea6(0x21b)]),_0x318e75={};_0x318e75['WebSocket']=ws,_0x318e75[_0x4fcea6(0x204)]=0x36ee80,_0x76ea02=new ReconnectingWebSocket(_0x4c1c92,[],_0x318e75),global_registry[_0x4fcea6(0x1f1)]=_0x4650f0[_0x4fcea6(0x1cd)](getAuthHeader,global_registry[_0x4fcea6(0x1aa)],global_registry[_0x4fcea6(0x1b8)]),await _0x4650f0[_0x4fcea6(0x1cd)](inputValidation,_0x1ea234,_0x76ea02),logger[_0x4fcea6(0x212)](_0x4fcea6(0x17c)+global_registry[_0x4fcea6(0x133)]+'\x20region\x20-\x20'+global_registry[_0x4fcea6(0x180)]);let _0x2bde08=await _0x4650f0[_0x4fcea6(0x165)](getCloudProviderObjectWithOutInit,global_registry[_0x4fcea6(0x133)],global_registry['clusterName'],_0x4650f0[_0x4fcea6(0x1d3)],_0x76ea02,webSocketUtils,_0x1ea234);const _0x115b92=await _0x2bde08['isCliToolInstalled']();_0x4650f0[_0x4fcea6(0x187)](printResponse,_0x4650f0['uUmTH'],_0x115b92),_0x2bde08=await _0x2bde08['init']();let _0x393042=![];try{_0x393042=await _0x2bde08[_0x4fcea6(0x1a4)]();}catch(_0xc364fb){const _0x399ad6=_0x4650f0[_0x4fcea6(0x134)][_0x4fcea6(0x1da)]('|');let _0x9d118f=0x0;while(!![]){switch(_0x399ad6[_0x9d118f++]){case'0':_0x393042=null;continue;case'1':_0x408848+='\x0a'+JSON[_0x4fcea6(0x15d)](_0xc364fb[_0x4fcea6(0x18b)]);continue;case'2':logger['error'](_0x408848);continue;case'3':_0x408848=_0x4fcea6(0x131)+global_registry['clusterName']+_0x4fcea6(0x16b)+global_registry[_0x4fcea6(0x180)]+_0x4fcea6(0x169)+_0xc364fb;continue;case'4':await _0x4650f0[_0x4fcea6(0x221)](reportToGalactusAndSendToEDS,_0x1ea234,_0x76ea02,_0x408848,messageTypes[_0x4fcea6(0x1ab)],_0x4650f0[_0x4fcea6(0x12b)],'cluster-check-failed-'+global_registry[_0x4fcea6(0x133)],_0x4650f0['BrUho']);continue;}break;}}_0x393042&&logger[_0x4fcea6(0x212)](_0x4fcea6(0x21f)+global_registry['clusterName']+_0x4fcea6(0x211));const _0x104ea1=await _0x2bde08[_0x4fcea6(0x14f)]();_0x4650f0[_0x4fcea6(0x223)](printResponse,_0x4650f0[_0x4fcea6(0x19e)],_0x104ea1);const _0x5c10a1=await _0x4650f0['PgWRW'](curlRequest);_0x4650f0[_0x4fcea6(0x213)](printResponse,_0x4650f0[_0x4fcea6(0x1db)],_0x5c10a1);const _0x2ed7b0=await _0x4650f0['ebACd'](isTlsSupported,_0x4650f0[_0x4fcea6(0x199)]);_0x4650f0[_0x4fcea6(0x187)](printResponse,_0x4650f0['Cxurd'],_0x2ed7b0);const _0x4c7b0d={};_0x4c7b0d[_0x4fcea6(0x1ea)]=_0x4650f0[_0x4fcea6(0x1b0)],_0x4c7b0d['response']=_0x115b92;const _0x1c2752={};_0x1c2752[_0x4fcea6(0x1ea)]=_0x4650f0[_0x4fcea6(0x158)],_0x1c2752[_0x4fcea6(0x167)]=_0x104ea1;const _0xcbf43d={};_0xcbf43d[_0x4fcea6(0x1ea)]=_0x4650f0[_0x4fcea6(0x192)],_0xcbf43d['response']=_0x5c10a1;const _0x5c3e98={};_0x5c3e98['header']=_0x4650f0[_0x4fcea6(0x16a)],_0x5c3e98['response']=_0x2ed7b0;const _0x5f1961=[_0x4c7b0d,_0x1c2752,_0xcbf43d,_0x5c3e98],_0x2f0919=await _0x4650f0[_0x4fcea6(0x1cd)](generateReport,_0x5f1961,_0x393042),_0x2b3064=new Date(),_0x2b6772=_0x2b3064['getUTCFullYear']()+'_'+_0x4650f0['jMayH'](_0x2b3064['getUTCMonth'](),0x1)+'_'+_0x2b3064['getUTCDate']()+'_'+_0x2b3064[_0x4fcea6(0x1fe)]()+'_'+_0x2b3064[_0x4fcea6(0x1a1)](),_0xfebd91=_0x4fcea6(0x1f8)+_0x2b6772+_0x4fcea6(0x129);fs[_0x4fcea6(0x1f6)](_0xfebd91,_0x2f0919,_0x4650f0['LtExR']),logger[_0x4fcea6(0x212)](_0x4fcea6(0x12c)+_0xfebd91),process[_0x4fcea6(0x1d0)](0x0);}catch(_0x50eb31){let _0x1c7bf2=_0x4fcea6(0x12e)+_0x50eb31+'\x20';logger[_0x4fcea6(0x1f7)](_0x1c7bf2),_0x1c7bf2+='\x0a'+JSON['stringify'](_0x50eb31[_0x4fcea6(0x18b)]),logger[_0x4fcea6(0x1f2)](_0x4fcea6(0x16f)+_0x50eb31[_0x4fcea6(0x18b)]);if(_0x76ea02){const _0x586086={};_0x586086['type']=WS_EVENTS['LOG'],_0x586086[_0x4fcea6(0x201)]=_0x1c7bf2,webSocketUtils['sendEventToBackend'](_0x76ea02,_0x586086,_0x4650f0[_0x4fcea6(0x1a7)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x2914c7={};_0x2914c7[_0x4fcea6(0x1f7)]=_0x1c7bf2,await _0x4650f0[_0x4fcea6(0x165)](sendInstrumentationEvent,_0x1ea234,_0x4650f0[_0x4fcea6(0x12b)],messageTypes[_0x4fcea6(0x1ab)],_0x4650f0[_0x4fcea6(0x215)],_0x2914c7,_0x1ea234),process[_0x4fcea6(0x1d0)](0x1);}};
@@ -1 +1 @@
1
- function a18_0x68d7(){const _0x2e971e=['11043613mMfywo','2828775TCOfIA','start','dKxEK','xrTyT','3xyyUNQ','epilogue','19405242SLxGQK','strict','desc','2423416JiauFH','builder','2874135nfIybQ','6880072yhqdlI','830476zMjYQo','help','handler','demandCommand','command','20wpRDxL','start_commands','usage','recommendCommands','6hcnJlb','../config/constants'];a18_0x68d7=function(){return _0x2e971e;};return a18_0x68d7();}const a18_0x5c1da4=a18_0x1168;function a18_0x1168(_0x47ec07,_0x5bc2ec){const _0x68d748=a18_0x68d7();return a18_0x1168=function(_0x1168a2,_0x28ab4e){_0x1168a2=_0x1168a2-0xf1;let _0x7454c9=_0x68d748[_0x1168a2];return _0x7454c9;},a18_0x1168(_0x47ec07,_0x5bc2ec);}(function(_0x453324,_0x2b5f20){const _0x556d02=a18_0x1168,_0x139549=_0x453324();while(!![]){try{const _0x33a831=parseInt(_0x556d02(0xf7))/0x1*(-parseInt(_0x556d02(0x100))/0x2)+-parseInt(_0x556d02(0xf3))/0x3+parseInt(_0x556d02(0xfc))/0x4+parseInt(_0x556d02(0xfe))/0x5+parseInt(_0x556d02(0x109))/0x6*(-parseInt(_0x556d02(0xf2))/0x7)+-parseInt(_0x556d02(0xff))/0x8+-parseInt(_0x556d02(0xf9))/0x9*(-parseInt(_0x556d02(0x105))/0xa);if(_0x33a831===_0x2b5f20)break;else _0x139549['push'](_0x139549['shift']());}catch(_0x661de){_0x139549['push'](_0x139549['shift']());}}}(a18_0x68d7,0xd395a));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x5c1da4(0xf1));exports[a18_0x5c1da4(0x104)]=a18_0x5c1da4(0xf4),exports[a18_0x5c1da4(0xfb)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a18_0x5c1da4(0xfd)]=function(_0x592ac6){const _0x247c04=a18_0x5c1da4,_0x62dcbe={};_0x62dcbe[_0x247c04(0xf6)]=_0x247c04(0x106),_0x62dcbe['dKxEK']=_0x247c04(0x101);const _0x4fecc0=_0x62dcbe;return _0x592ac6[_0x247c04(0x107)](HELP_HEADER_MESSAGE[_0x247c04(0xf4)])[_0x247c04(0xf8)](HELP_FOOTER_MESSAGE)['commandDir'](_0x4fecc0[_0x247c04(0xf6)])[_0x247c04(0x103)]()[_0x247c04(0x108)]()[_0x247c04(0xfa)]()['help'](_0x4fecc0[_0x247c04(0xf5)]);},exports[a18_0x5c1da4(0x102)]=function(_0x47fe01){};
1
+ const a18_0x2b9c02=a18_0x469e;(function(_0x5cb17d,_0x27ce02){const _0x43a62a=a18_0x469e,_0x4d170d=_0x5cb17d();while(!![]){try{const _0x49a1bf=-parseInt(_0x43a62a(0x16c))/0x1+-parseInt(_0x43a62a(0x172))/0x2+parseInt(_0x43a62a(0x174))/0x3+parseInt(_0x43a62a(0x17f))/0x4*(parseInt(_0x43a62a(0x168))/0x5)+-parseInt(_0x43a62a(0x181))/0x6*(parseInt(_0x43a62a(0x176))/0x7)+parseInt(_0x43a62a(0x179))/0x8+parseInt(_0x43a62a(0x17b))/0x9*(parseInt(_0x43a62a(0x175))/0xa);if(_0x49a1bf===_0x27ce02)break;else _0x4d170d['push'](_0x4d170d['shift']());}catch(_0x306b61){_0x4d170d['push'](_0x4d170d['shift']());}}}(a18_0x3e15,0x649ad));function a18_0x3e15(){const _0x5386e4=['usage','recommendCommands','start','136968zCaTAf','../config/constants','epilogue','start_commands','strict','UWxMP','1267850AzWPcb','builder','2443338bJgmOB','1066250pbzbxp','2312555WilSFJ','help','command','2733672KWCPbu','demandCommand','9pJQOCW','desc','Start\x20an\x20existing\x20Automation\x20grid.','handler','19364wNFykY','XZsNf','12FCNusR','600PeZmoJ'];a18_0x3e15=function(){return _0x5386e4;};return a18_0x3e15();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x2b9c02(0x16d));function a18_0x469e(_0x9ea46b,_0x3d799e){const _0x3e15d2=a18_0x3e15();return a18_0x469e=function(_0x469e5d,_0x775e7){_0x469e5d=_0x469e5d-0x168;let _0x2919c1=_0x3e15d2[_0x469e5d];return _0x2919c1;},a18_0x469e(_0x9ea46b,_0x3d799e);}exports[a18_0x2b9c02(0x178)]=a18_0x2b9c02(0x16b),exports[a18_0x2b9c02(0x17c)]=a18_0x2b9c02(0x17d),exports[a18_0x2b9c02(0x173)]=function(_0xe301f3){const _0x55efcb=a18_0x2b9c02,_0x16e7a9={};_0x16e7a9[_0x55efcb(0x171)]=_0x55efcb(0x16f),_0x16e7a9[_0x55efcb(0x180)]=_0x55efcb(0x177);const _0x2beea7=_0x16e7a9;return _0xe301f3[_0x55efcb(0x169)](HELP_HEADER_MESSAGE['start'])[_0x55efcb(0x16e)](HELP_FOOTER_MESSAGE)['commandDir'](_0x2beea7[_0x55efcb(0x171)])[_0x55efcb(0x17a)]()[_0x55efcb(0x16a)]()[_0x55efcb(0x170)]()['help'](_0x2beea7[_0x55efcb(0x180)]);},exports[a18_0x2b9c02(0x17e)]=function(_0x4b181e){};
@@ -1 +1 @@
1
- function a19_0x3c27(){const _0x21e614=['readFileSync','info','Adding\x20Websocket\x20listeners','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Browserstack','../../config/constants','string','aDUys','help','19110RSMpzg','Starting\x20grid\x20','parse','name','nYofh','epilogue','Skip\x20insecure\x20cert\x20verification.','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','Bwrvu','command','message','Start\x20an\x20existing\x20Automation\x20grid.','username','uPaaq','clusterRegion','erjqK','../../utils/gridComponents','addListeners','nPaNL','1388049vQvVLr','cjIMQ','dchLw','INFO','1106170JFHHmR','GZfPU','desc','unauthorised','Grid\x20started','grid','error','ERROR','existsSync','../../cloudproviders/utils','server-error','FArVO','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','SziqH','../../utils/utilityMethods','description','default','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','gridId','25fvlnuY','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','replace','<PasswordPlaceholder>','cloudProvider','stack','pLzHm','statusCode','CIhjl','connectionTimeout','debug','jPtzZ','WebSocket','type','KHfPt','password','clusterName','../../utils/createk8sClient','exit','TazqC','boolean','stringify','dfQcB','iJBeP','PAdGr','start','570462JLdHUW','skipTlsCertVerify','options','yzMLL','920776pzcSmI','bstackAccesskey','../../utils/webSocketUtils','cYNYI','argv','region','<UsernamePlaceholder>','../../config/logger','user','4725077tVxqcf','NORrm','qyBIE','3435032wywooc'];a19_0x3c27=function(){return _0x21e614;};return a19_0x3c27();}const a19_0x233cde=a19_0x2b3a;(function(_0x4ef388,_0x1da613){const _0x43a6b3=a19_0x2b3a,_0x1eaf05=_0x4ef388();while(!![]){try{const _0x4c4433=parseInt(_0x43a6b3(0x155))/0x1*(parseInt(_0x43a6b3(0x12b))/0x2)+parseInt(_0x43a6b3(0x13e))/0x3+parseInt(_0x43a6b3(0x121))/0x4+-parseInt(_0x43a6b3(0x142))/0x5+-parseInt(_0x43a6b3(0x16f))/0x6+-parseInt(_0x43a6b3(0x11e))/0x7+-parseInt(_0x43a6b3(0x115))/0x8;if(_0x4c4433===_0x1da613)break;else _0x1eaf05['push'](_0x1eaf05['shift']());}catch(_0x5697f7){_0x1eaf05['push'](_0x1eaf05['shift']());}}}(a19_0x3c27,0x6ed09));function a19_0x2b3a(_0x2916f1,_0x362a86){const _0x3c272d=a19_0x3c27();return a19_0x2b3a=function(_0x2b3a2a,_0x59a003){_0x2b3a2a=_0x2b3a2a-0x115;let _0x360203=_0x3c272d[_0x2b3a2a];return _0x360203;},a19_0x2b3a(_0x2916f1,_0x362a86);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x233cde(0x127)),{logger}=require(a19_0x233cde(0x11c)),{getCredentialsPath,getGridDetails}=require(a19_0x233cde(0x150)),{scaleUpHubDeployment}=require(a19_0x233cde(0x13b)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x233cde(0x117)),{createK8sClient}=require(a19_0x233cde(0x166)),{getCloudProviderObject}=require(a19_0x233cde(0x14b));exports[a19_0x233cde(0x134)]=a19_0x233cde(0x147),exports[a19_0x233cde(0x144)]=a19_0x233cde(0x136),exports['builder']=function(_0x13949e){const _0x21165f=a19_0x233cde,_0x19bf24={};_0x19bf24[_0x21165f(0x15b)]='Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.',_0x19bf24[_0x21165f(0x160)]=_0x21165f(0x128),_0x19bf24[_0x21165f(0x118)]=_0x21165f(0x131),_0x19bf24[_0x21165f(0x129)]=_0x21165f(0x169),_0x19bf24[_0x21165f(0x143)]=_0x21165f(0x12a);const _0x3878f3=_0x19bf24,_0x417373={};_0x417373['description']=_0x3878f3[_0x21165f(0x15b)],_0x417373[_0x21165f(0x162)]=_0x3878f3[_0x21165f(0x160)];const _0x1f132c={};_0x1f132c[_0x21165f(0x151)]=_0x3878f3['cYNYI'],_0x1f132c[_0x21165f(0x162)]=_0x3878f3[_0x21165f(0x129)],_0x1f132c[_0x21165f(0x152)]=![];const _0x7445c0={};return _0x7445c0['grid-id']=_0x417373,_0x7445c0['skip-tls-cert-verify']=_0x1f132c,_0x13949e['usage'](HELP_HEADER_MESSAGE[_0x21165f(0x16e)])[_0x21165f(0x130)](HELP_FOOTER_MESSAGE)[_0x21165f(0x171)](_0x7445c0)[_0x21165f(0x12a)](_0x3878f3[_0x21165f(0x143)])[_0x21165f(0x119)];},exports['handler']=async function(_0x3c962f){const _0x56665c=a19_0x233cde,_0x2bcd9f={'tELsk':_0x56665c(0x14e),'qyBIE':function(_0x3ccc7c){return _0x3ccc7c();},'SziqH':_0x56665c(0x153),'erjqK':function(_0x92ca00,_0x1c7e38,_0xbca453,_0x80e8cd,_0x4a5d31,_0x392e7d,_0x59c95f){return _0x92ca00(_0x1c7e38,_0xbca453,_0x80e8cd,_0x4a5d31,_0x392e7d,_0x59c95f);},'cjIMQ':'start-grid-called','EljVo':'init-not-called','NORrm':function(_0x1ad603){return _0x1ad603();},'Bwrvu':_0x56665c(0x11b),'TazqC':_0x56665c(0x158),'dfQcB':_0x56665c(0x124),'uPaaq':function(_0x32ecef,_0x7010db,_0x43a766,_0x11ff45){return _0x32ecef(_0x7010db,_0x43a766,_0x11ff45);},'yzMLL':function(_0x51b16e,_0x62da6f,_0x269b88){return _0x51b16e(_0x62da6f,_0x269b88);},'ubLca':function(_0x45e67e,_0x42f6b6,_0x344767){return _0x45e67e(_0x42f6b6,_0x344767);},'PAdGr':_0x56665c(0x146),'KHfPt':function(_0x4fa90e,_0x5e7e6c){return _0x4fa90e===_0x5e7e6c;},'OtaIR':_0x56665c(0x125),'uOQMS':function(_0x1325c0,_0x19c553,_0x2a265d,_0xeec972,_0x175595,_0xa6cf5,_0x5ceac7){return _0x1325c0(_0x19c553,_0x2a265d,_0xeec972,_0x175595,_0xa6cf5,_0x5ceac7);},'CIhjl':_0x56665c(0x145),'iJBeP':function(_0x3a78e1,_0x53c691){return _0x3a78e1===_0x53c691;},'FArVO':function(_0x14df5e,_0x15d915,_0x44bff9,_0x3c7df6,_0x484bc3,_0x38e282,_0x10b510){return _0x14df5e(_0x15d915,_0x44bff9,_0x3c7df6,_0x484bc3,_0x38e282,_0x10b510);},'nYofh':'invalid-grid-id','dchLw':function(_0x37cdf0,_0x104734,_0x47486e,_0x441843,_0x528b28,_0x5cedd0,_0xa2931b){return _0x37cdf0(_0x104734,_0x47486e,_0x441843,_0x528b28,_0x5cedd0,_0xa2931b);},'nPaNL':_0x56665c(0x14c)};let _0x56d2ad;try{!_0x3c962f[_0x56665c(0x154)]&&(logger[_0x56665c(0x148)](_0x2bcd9f['tELsk']),process[_0x56665c(0x167)](0x1));!fs[_0x56665c(0x14a)](_0x2bcd9f[_0x56665c(0x120)](getCredentialsPath))&&(logger[_0x56665c(0x148)](_0x2bcd9f[_0x56665c(0x14f)]),await _0x2bcd9f[_0x56665c(0x13a)](sendInstrumentationEvent,_0x3c962f,_0x2bcd9f[_0x56665c(0x13f)],messageTypes[_0x56665c(0x149)],_0x2bcd9f['EljVo'],null,_0x3c962f),process[_0x56665c(0x167)](0x1));logger[_0x56665c(0x123)](_0x56665c(0x12c)+_0x3c962f['gridId']),await _0x2bcd9f[_0x56665c(0x13a)](sendInstrumentationEvent,_0x3c962f,_0x2bcd9f[_0x56665c(0x13f)],messageTypes[_0x56665c(0x141)],null,null,_0x3c962f);const _0x2b73f8=JSON[_0x56665c(0x12d)](fs[_0x56665c(0x122)](_0x2bcd9f[_0x56665c(0x11f)](getCredentialsPath)));global_registry['bstackUsername']=_0x2b73f8[_0x56665c(0x126)]['username'],global_registry[_0x56665c(0x116)]=_0x2b73f8[_0x56665c(0x126)][_0x56665c(0x164)];const _0x59a327=WS_ENDPOINT[_0x56665c(0x157)](_0x2bcd9f[_0x56665c(0x133)],_0x2b73f8['Browserstack']['username'])[_0x56665c(0x157)](_0x2bcd9f[_0x56665c(0x168)],_0x2b73f8[_0x56665c(0x126)][_0x56665c(0x164)]),_0x1926f1={};_0x1926f1[_0x56665c(0x161)]=ws,_0x1926f1[_0x56665c(0x15e)]=0x36ee80,_0x56d2ad=new ReconnectingWebSocket(_0x59a327,[],_0x1926f1),logger[_0x56665c(0x15f)](_0x2bcd9f[_0x56665c(0x16b)]),webSocketUtils[_0x56665c(0x13c)](_0x56d2ad,_0x3c962f[_0x56665c(0x11d)],_0x3c962f[_0x56665c(0x164)]);const [_0x44e9bb,_0x5605dc]=await _0x2bcd9f[_0x56665c(0x138)](getGridDetails,_0x2b73f8[_0x56665c(0x126)][_0x56665c(0x137)],_0x2b73f8['Browserstack'][_0x56665c(0x164)],_0x3c962f['gridId']);if(_0x5605dc){const _0x2add38=_0x5605dc['info'];global_registry[_0x56665c(0x159)]=_0x2add38[_0x56665c(0x159)],global_registry[_0x56665c(0x139)]=_0x2add38[_0x56665c(0x11a)],global_registry[_0x56665c(0x165)]=_0x2add38[_0x56665c(0x165)];const _0x13d3b7=await _0x2bcd9f[_0x56665c(0x13a)](getCloudProviderObject,_0x2add38['cloudProvider'],_0x2add38[_0x56665c(0x165)],_0x2add38[_0x56665c(0x12e)],_0x56d2ad,webSocketUtils,_0x3c962f),[_0x518dd6,_0x22d241,_0x55c383,_0x2810d0,_0x3431f7,_0x77e8c6]=await _0x2bcd9f[_0x56665c(0x172)](createK8sClient,_0x13d3b7,_0x3c962f[_0x56665c(0x170)]);await _0x2bcd9f['ubLca'](scaleUpHubDeployment,_0x22d241,_0x2add38['name']),logger[_0x56665c(0x123)](_0x2bcd9f[_0x56665c(0x16d)]),process[_0x56665c(0x167)](0x0);}_0x2bcd9f[_0x56665c(0x163)](_0x44e9bb[_0x56665c(0x15c)],0x191)&&(logger[_0x56665c(0x148)](_0x2bcd9f['OtaIR']),await _0x2bcd9f['uOQMS'](sendInstrumentationEvent,_0x3c962f,_0x2bcd9f[_0x56665c(0x13f)],messageTypes[_0x56665c(0x149)],_0x2bcd9f[_0x56665c(0x15d)],null,_0x3c962f),process[_0x56665c(0x167)](0x1)),_0x2bcd9f[_0x56665c(0x16c)](_0x44e9bb[_0x56665c(0x15c)],0x190)&&(logger[_0x56665c(0x148)](JSON[_0x56665c(0x12d)](_0x44e9bb['body'])[_0x56665c(0x135)]),await _0x2bcd9f[_0x56665c(0x14d)](sendInstrumentationEvent,_0x3c962f,_0x2bcd9f[_0x56665c(0x13f)],messageTypes[_0x56665c(0x149)],_0x2bcd9f[_0x56665c(0x12f)],null,_0x3c962f),process[_0x56665c(0x167)](0x1)),logger['error'](_0x56665c(0x156)+JSON['stringify'](_0x44e9bb)),await _0x2bcd9f[_0x56665c(0x140)](sendInstrumentationEvent,_0x3c962f,_0x2bcd9f['cjIMQ'],messageTypes[_0x56665c(0x149)],_0x2bcd9f[_0x56665c(0x13d)],_0x44e9bb,_0x3c962f),process['exit'](0x1);}catch(_0x2e0b1a){const _0x368d21=_0x56665c(0x132)+_0x2e0b1a+'\x20\x0a'+JSON[_0x56665c(0x16a)](_0x2e0b1a[_0x56665c(0x15a)])+'\x20';logger[_0x56665c(0x148)](_0x368d21),process[_0x56665c(0x167)](0x1);}};
1
+ const a19_0x2131eb=a19_0x347d;function a19_0x347d(_0x463157,_0x11dd17){const _0x4f9164=a19_0x4f91();return a19_0x347d=function(_0x347d4f,_0xbf0100){_0x347d4f=_0x347d4f-0x1c7;let _0x484940=_0x4f9164[_0x347d4f];return _0x484940;},a19_0x347d(_0x463157,_0x11dd17);}(function(_0x3901b2,_0x1288cd){const _0x3e7e2a=a19_0x347d,_0x2636cd=_0x3901b2();while(!![]){try{const _0x534331=parseInt(_0x3e7e2a(0x1cc))/0x1+parseInt(_0x3e7e2a(0x1d0))/0x2+parseInt(_0x3e7e2a(0x1f1))/0x3*(-parseInt(_0x3e7e2a(0x1e4))/0x4)+-parseInt(_0x3e7e2a(0x1dd))/0x5*(-parseInt(_0x3e7e2a(0x1e8))/0x6)+-parseInt(_0x3e7e2a(0x1e0))/0x7+parseInt(_0x3e7e2a(0x1fd))/0x8+-parseInt(_0x3e7e2a(0x1fa))/0x9;if(_0x534331===_0x1288cd)break;else _0x2636cd['push'](_0x2636cd['shift']());}catch(_0x3350a5){_0x2636cd['push'](_0x2636cd['shift']());}}}(a19_0x4f91,0xb0220));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x2131eb(0x1f0)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x2131eb(0x218)),{logger}=require(a19_0x2131eb(0x1d6)),{getCredentialsPath,getGridDetails}=require(a19_0x2131eb(0x1ea)),{scaleUpHubDeployment}=require(a19_0x2131eb(0x221)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x2131eb(0x210)),{createK8sClient}=require(a19_0x2131eb(0x213)),{getCloudProviderObject}=require(a19_0x2131eb(0x1db));function a19_0x4f91(){const _0x47e592=['connectionTimeout','2464352gfZNfs','hBWgK','gridId','existsSync','desc','Browserstack','BiAYG','Skip\x20insecure\x20cert\x20verification.','help','INFO','name','Adding\x20Websocket\x20listeners','start-grid-called','exit','acMlS','server-error','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Starting\x20grid\x20','IEuvA','../../utils/webSocketUtils','addListeners','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../utils/createk8sClient','stack','unauthorised','<UsernamePlaceholder>','password','../../config/constants','Start\x20an\x20existing\x20Automation\x20grid.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','PsGmE','KHEGF','string','kWIyq','start','bXYoi','../../utils/gridComponents','username','init-not-called','error','command','statusCode','881934oypQmC','readFileSync','kAQnv','clusterName','1637578oFfvTV','info','invalid-grid-id','<PasswordPlaceholder>','grid','cloudProvider','../../config/logger','type','usage','DuUVN','argv','../../cloudproviders/utils','GLpaW','50kPJLAi','NhQGA','nfywN','9142427mljtQQ','parse','bstackUsername','nYTtR','4vSDxyi','ksYAb','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','QTeLL','605700DDexkZ','OnbQa','../../utils/utilityMethods','WebSocket','epilogue','description','user','replace','reconnecting-websocket','1215567XFGAkZ','boolean','Grid\x20started','stringify','skipTlsCertVerify','skip-tls-cert-verify','ERROR','builder','handler','5270193qKsUJX','debug'];a19_0x4f91=function(){return _0x47e592;};return a19_0x4f91();}exports[a19_0x2131eb(0x1ca)]=a19_0x2131eb(0x1d4),exports[a19_0x2131eb(0x201)]=a19_0x2131eb(0x219),exports[a19_0x2131eb(0x1f8)]=function(_0xa6b17){const _0x35ae85=a19_0x2131eb,_0x5ca6e9={};_0x5ca6e9[_0x35ae85(0x1e9)]=_0x35ae85(0x1e6),_0x5ca6e9['ksYAb']=_0x35ae85(0x21d),_0x5ca6e9[_0x35ae85(0x20b)]=_0x35ae85(0x204),_0x5ca6e9[_0x35ae85(0x1ce)]=_0x35ae85(0x1f2),_0x5ca6e9[_0x35ae85(0x220)]=_0x35ae85(0x205);const _0x330680=_0x5ca6e9,_0x11ba07={};_0x11ba07['description']=_0x330680['OnbQa'],_0x11ba07['type']=_0x330680[_0x35ae85(0x1e5)];const _0x54058a={};_0x54058a[_0x35ae85(0x1ed)]=_0x330680[_0x35ae85(0x20b)],_0x54058a[_0x35ae85(0x1d7)]=_0x330680[_0x35ae85(0x1ce)],_0x54058a['default']=![];const _0x546856={};return _0x546856['grid-id']=_0x11ba07,_0x546856[_0x35ae85(0x1f6)]=_0x54058a,_0xa6b17[_0x35ae85(0x1d8)](HELP_HEADER_MESSAGE[_0x35ae85(0x21f)])[_0x35ae85(0x1ec)](HELP_FOOTER_MESSAGE)['options'](_0x546856)[_0x35ae85(0x205)](_0x330680[_0x35ae85(0x220)])[_0x35ae85(0x1da)];},exports[a19_0x2131eb(0x1f9)]=async function(_0x5d6644){const _0x2e9cf8=a19_0x2131eb,_0x353dbf={'nfywN':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','nYTtR':function(_0x4dbda0){return _0x4dbda0();},'TiyDs':_0x2e9cf8(0x20d),'KHEGF':function(_0x588755,_0x2c578c,_0x45ebee,_0x438f0b,_0x33ca93,_0x493b62,_0x95e3fb){return _0x588755(_0x2c578c,_0x45ebee,_0x438f0b,_0x33ca93,_0x493b62,_0x95e3fb);},'kWIyq':_0x2e9cf8(0x209),'DuUVN':_0x2e9cf8(0x1c8),'wlNWI':function(_0x358799){return _0x358799();},'jYqoj':_0x2e9cf8(0x216),'kXJJu':_0x2e9cf8(0x1d3),'WsIBZ':_0x2e9cf8(0x208),'xwRRZ':function(_0x8bc96a,_0x4d1073,_0x3101da,_0x3bb6cd){return _0x8bc96a(_0x4d1073,_0x3101da,_0x3bb6cd);},'NhQGA':function(_0x3c8858,_0x401c84,_0x8934d){return _0x3c8858(_0x401c84,_0x8934d);},'BiAYG':_0x2e9cf8(0x1f3),'PsGmE':function(_0xd3a598,_0x5cd81b){return _0xd3a598===_0x5cd81b;},'GLpaW':_0x2e9cf8(0x212),'hBWgK':_0x2e9cf8(0x215),'NrhLu':_0x2e9cf8(0x1d2),'QTeLL':function(_0x412996,_0x7fd322,_0x2979d6,_0x4b96b1,_0x5f1c03,_0x49c78e,_0x19fe6a){return _0x412996(_0x7fd322,_0x2979d6,_0x4b96b1,_0x5f1c03,_0x49c78e,_0x19fe6a);},'IEuvA':_0x2e9cf8(0x20c)};let _0x9b824f;try{!_0x5d6644[_0x2e9cf8(0x1ff)]&&(logger['error'](_0x353dbf[_0x2e9cf8(0x1df)]),process[_0x2e9cf8(0x20a)](0x1));!fs[_0x2e9cf8(0x200)](_0x353dbf[_0x2e9cf8(0x1e3)](getCredentialsPath))&&(logger[_0x2e9cf8(0x1c9)](_0x353dbf['TiyDs']),await _0x353dbf[_0x2e9cf8(0x21c)](sendInstrumentationEvent,_0x5d6644,_0x353dbf[_0x2e9cf8(0x21e)],messageTypes[_0x2e9cf8(0x1f7)],_0x353dbf[_0x2e9cf8(0x1d9)],null,_0x5d6644),process['exit'](0x1));logger['info'](_0x2e9cf8(0x20e)+_0x5d6644[_0x2e9cf8(0x1ff)]),await _0x353dbf[_0x2e9cf8(0x21c)](sendInstrumentationEvent,_0x5d6644,_0x353dbf[_0x2e9cf8(0x21e)],messageTypes[_0x2e9cf8(0x206)],null,null,_0x5d6644);const _0x1c8a34=JSON[_0x2e9cf8(0x1e1)](fs[_0x2e9cf8(0x1cd)](_0x353dbf['wlNWI'](getCredentialsPath)));global_registry[_0x2e9cf8(0x1e2)]=_0x1c8a34['Browserstack'][_0x2e9cf8(0x1c7)],global_registry['bstackAccesskey']=_0x1c8a34[_0x2e9cf8(0x202)][_0x2e9cf8(0x217)];const _0x513f54=WS_ENDPOINT[_0x2e9cf8(0x1ef)](_0x353dbf['jYqoj'],_0x1c8a34['Browserstack'][_0x2e9cf8(0x1c7)])[_0x2e9cf8(0x1ef)](_0x353dbf['kXJJu'],_0x1c8a34[_0x2e9cf8(0x202)][_0x2e9cf8(0x217)]),_0x5c7352={};_0x5c7352[_0x2e9cf8(0x1eb)]=ws,_0x5c7352[_0x2e9cf8(0x1fc)]=0x36ee80,_0x9b824f=new ReconnectingWebSocket(_0x513f54,[],_0x5c7352),logger[_0x2e9cf8(0x1fb)](_0x353dbf['WsIBZ']),webSocketUtils[_0x2e9cf8(0x211)](_0x9b824f,_0x5d6644[_0x2e9cf8(0x1ee)],_0x5d6644[_0x2e9cf8(0x217)]);const [_0x20baeb,_0x29510f]=await _0x353dbf['xwRRZ'](getGridDetails,_0x1c8a34['Browserstack']['username'],_0x1c8a34[_0x2e9cf8(0x202)][_0x2e9cf8(0x217)],_0x5d6644[_0x2e9cf8(0x1ff)]);if(_0x29510f){const _0x305c12=_0x29510f[_0x2e9cf8(0x1d1)];global_registry['cloudProvider']=_0x305c12[_0x2e9cf8(0x1d5)],global_registry['clusterRegion']=_0x305c12['region'],global_registry['clusterName']=_0x305c12[_0x2e9cf8(0x1cf)];const _0x4078e5=await _0x353dbf[_0x2e9cf8(0x21c)](getCloudProviderObject,_0x305c12['cloudProvider'],_0x305c12[_0x2e9cf8(0x1cf)],_0x305c12['name'],_0x9b824f,webSocketUtils,_0x5d6644),[_0x583165,_0x3d27bf,_0x60e41c,_0x2048f8,_0x1d19c4,_0x294130]=await _0x353dbf[_0x2e9cf8(0x1de)](createK8sClient,_0x4078e5,_0x5d6644[_0x2e9cf8(0x1f5)]);await _0x353dbf[_0x2e9cf8(0x1de)](scaleUpHubDeployment,_0x3d27bf,_0x305c12[_0x2e9cf8(0x207)]),logger[_0x2e9cf8(0x1d1)](_0x353dbf[_0x2e9cf8(0x203)]),process['exit'](0x0);}_0x353dbf[_0x2e9cf8(0x21b)](_0x20baeb['statusCode'],0x191)&&(logger[_0x2e9cf8(0x1c9)](_0x353dbf[_0x2e9cf8(0x1dc)]),await _0x353dbf['KHEGF'](sendInstrumentationEvent,_0x5d6644,_0x353dbf[_0x2e9cf8(0x21e)],messageTypes[_0x2e9cf8(0x1f7)],_0x353dbf[_0x2e9cf8(0x1fe)],null,_0x5d6644),process['exit'](0x1)),_0x353dbf[_0x2e9cf8(0x21b)](_0x20baeb[_0x2e9cf8(0x1cb)],0x190)&&(logger[_0x2e9cf8(0x1c9)](JSON[_0x2e9cf8(0x1e1)](_0x20baeb['body'])['message']),await _0x353dbf['KHEGF'](sendInstrumentationEvent,_0x5d6644,_0x353dbf[_0x2e9cf8(0x21e)],messageTypes['ERROR'],_0x353dbf['NrhLu'],null,_0x5d6644),process['exit'](0x1)),logger[_0x2e9cf8(0x1c9)](_0x2e9cf8(0x21a)+JSON[_0x2e9cf8(0x1f4)](_0x20baeb)),await _0x353dbf[_0x2e9cf8(0x1e7)](sendInstrumentationEvent,_0x5d6644,_0x353dbf[_0x2e9cf8(0x21e)],messageTypes[_0x2e9cf8(0x1f7)],_0x353dbf[_0x2e9cf8(0x20f)],_0x20baeb,_0x5d6644),process[_0x2e9cf8(0x20a)](0x1);}catch(_0x2e6f5c){const _0x167031='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x2e6f5c+'\x20\x0a'+JSON['stringify'](_0x2e6f5c[_0x2e9cf8(0x214)])+'\x20';logger[_0x2e9cf8(0x1c9)](_0x167031),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a20_0x3f947b=a20_0x5cea;function a20_0x5cea(_0x439b09,_0x518e98){const _0x5434db=a20_0x5434();return a20_0x5cea=function(_0x5cea6f,_0x3c1c77){_0x5cea6f=_0x5cea6f-0xfc;let _0x47e8b1=_0x5434db[_0x5cea6f];return _0x47e8b1;},a20_0x5cea(_0x439b09,_0x518e98);}(function(_0x2cb9fa,_0x325762){const _0x4e3bb8=a20_0x5cea,_0x551309=_0x2cb9fa();while(!![]){try{const _0xcb2ad3=parseInt(_0x4e3bb8(0x108))/0x1+-parseInt(_0x4e3bb8(0xfc))/0x2*(parseInt(_0x4e3bb8(0x10a))/0x3)+-parseInt(_0x4e3bb8(0x106))/0x4*(parseInt(_0x4e3bb8(0xfd))/0x5)+-parseInt(_0x4e3bb8(0x103))/0x6*(-parseInt(_0x4e3bb8(0xff))/0x7)+-parseInt(_0x4e3bb8(0x101))/0x8+parseInt(_0x4e3bb8(0x113))/0x9*(parseInt(_0x4e3bb8(0x10c))/0xa)+-parseInt(_0x4e3bb8(0x102))/0xb*(-parseInt(_0x4e3bb8(0x110))/0xc);if(_0xcb2ad3===_0x325762)break;else _0x551309['push'](_0x551309['shift']());}catch(_0x3df226){_0x551309['push'](_0x551309['shift']());}}}(a20_0x5434,0x57b5c));function a20_0x5434(){const _0x1c9a7f=['help','417301AarUUE','strict','12UxTaqZ','command','1490JtHMqd','../config/constants','builder','stop','228AWOBmD','commandDir','hPWrG','30879xaXoss','usage','260198NSsaVs','13560TCWXOc','demandCommand','233513kjvIrL','epilogue','3861440pvSoOY','64306TBNQrR','60EDBNlG','hBXJK','recommendCommands','16TEAMli'];a20_0x5434=function(){return _0x1c9a7f;};return a20_0x5434();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x3f947b(0x10d));exports[a20_0x3f947b(0x10b)]=a20_0x3f947b(0x10f),exports['desc']='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x3f947b(0x10e)]=function(_0x44dddc){const _0x2e9fae=a20_0x3f947b,_0x25903e={};_0x25903e[_0x2e9fae(0x104)]='stop_commands',_0x25903e['hPWrG']=_0x2e9fae(0x107);const _0x1007e5=_0x25903e;return _0x44dddc[_0x2e9fae(0x114)](HELP_HEADER_MESSAGE[_0x2e9fae(0x10f)])[_0x2e9fae(0x100)](HELP_FOOTER_MESSAGE)[_0x2e9fae(0x111)](_0x1007e5[_0x2e9fae(0x104)])[_0x2e9fae(0xfe)]()[_0x2e9fae(0x105)]()[_0x2e9fae(0x109)]()['help'](_0x1007e5[_0x2e9fae(0x112)]);},exports['handler']=function(_0x452905){};
1
+ const a20_0x21058f=a20_0x4201;function a20_0x4201(_0x346a3e,_0x495d78){const _0x2e1aed=a20_0x2e1a();return a20_0x4201=function(_0x420189,_0x5c0f4d){_0x420189=_0x420189-0x1b4;let _0x37e1bb=_0x2e1aed[_0x420189];return _0x37e1bb;},a20_0x4201(_0x346a3e,_0x495d78);}(function(_0x966fcb,_0x10fd7b){const _0x1df858=a20_0x4201,_0x2d4bdb=_0x966fcb();while(!![]){try{const _0x5a8e1e=-parseInt(_0x1df858(0x1c7))/0x1*(-parseInt(_0x1df858(0x1c3))/0x2)+parseInt(_0x1df858(0x1c1))/0x3+parseInt(_0x1df858(0x1b4))/0x4*(-parseInt(_0x1df858(0x1b8))/0x5)+parseInt(_0x1df858(0x1ba))/0x6*(-parseInt(_0x1df858(0x1bb))/0x7)+parseInt(_0x1df858(0x1c6))/0x8+-parseInt(_0x1df858(0x1b9))/0x9*(-parseInt(_0x1df858(0x1c2))/0xa)+parseInt(_0x1df858(0x1b6))/0xb;if(_0x5a8e1e===_0x10fd7b)break;else _0x2d4bdb['push'](_0x2d4bdb['shift']());}catch(_0x272c9b){_0x2d4bdb['push'](_0x2d4bdb['shift']());}}}(a20_0x2e1a,0x2c558));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x21058f(0x1c9));exports['command']='stop',exports[a20_0x21058f(0x1b5)]=a20_0x21058f(0x1ca),exports[a20_0x21058f(0x1c4)]=function(_0x56b0ec){const _0x4d32f9=a20_0x21058f,_0x9b135f={};_0x9b135f[_0x4d32f9(0x1c5)]='stop_commands',_0x9b135f['jxcRS']=_0x4d32f9(0x1c0);const _0x472994=_0x9b135f;return _0x56b0ec[_0x4d32f9(0x1cb)](HELP_HEADER_MESSAGE[_0x4d32f9(0x1bc)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4d32f9(0x1b7)](_0x472994['JhsZQ'])['demandCommand']()[_0x4d32f9(0x1c8)]()[_0x4d32f9(0x1bd)]()[_0x4d32f9(0x1c0)](_0x472994[_0x4d32f9(0x1bf)]);},exports[a20_0x21058f(0x1be)]=function(_0x357341){};function a20_0x2e1a(){const _0x346e5b=['133856qmRDut','1SxQUhq','recommendCommands','../config/constants','Stop\x20a\x20running\x20Automation\x20grid.','usage','559940GgHLIA','desc','4083706oLonag','commandDir','5jafmIj','9XELeMD','105882tLHJIZ','77LhSPyQ','stop','strict','handler','jxcRS','help','75990acbffF','1020310aEhDnR','710yKUigJ','builder','JhsZQ'];a20_0x2e1a=function(){return _0x346e5b;};return a20_0x2e1a();}
@@ -1 +1 @@
1
- function a21_0x5b33(_0x41a57d,_0x3d66bb){const _0x30c6a0=a21_0x30c6();return a21_0x5b33=function(_0x5b33e2,_0x5371ef){_0x5b33e2=_0x5b33e2-0x1dc;let _0x42dca9=_0x30c6a0[_0x5b33e2];return _0x42dca9;},a21_0x5b33(_0x41a57d,_0x3d66bb);}const a21_0x3c7dd9=a21_0x5b33;function a21_0x30c6(){const _0x3fe094=['default','XEuDl','4041744pIMmAn','hOaQa','3123116OorkEc','tPUtE','string','type','password','qetbp','EGMcn','description','debug','3WGdMnJ','../../cloudproviders/utils','dlert','YzXFG','../../utils/gridComponents','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','connectionTimeout','grid-id','command','cloudProvider','iOvFm','readFileSync','WebSocket','parse','invalid-grid-id','replace','name','84604CYSbTo','../../utils/webSocketUtils','username','skip-tls-cert-verify','desc','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','Skip\x20insecure\x20cert\x20verification.','addListeners','stringify','139465bAscSa','Grid\x20stoppped.','hjeAf','../../config/constants','<PasswordPlaceholder>','info','jvotm','<UsernamePlaceholder>','../../utils/createk8sClient','region','clusterRegion','clusterName','exit','kYtNO','mQKzm','builder','lszNp','16925211pcxHKF','ERROR','statusCode','../../utils/instrumentationUtils','DKkFf','skipTlsCertVerify','bstackAccesskey','bstackUsername','unauthorised','QEsmY','error','1644366MVlAiU','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','OLkDt','grid','boolean','48TVprxy','epilogue','NyXtm','AKJup','server-error','gridId','argv','eQUjh','wkqQM','Browserstack','INFO','653828GgAMni','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'];a21_0x30c6=function(){return _0x3fe094;};return a21_0x30c6();}(function(_0x4639b9,_0x3a6b7e){const _0x3cf742=a21_0x5b33,_0x2c66f8=_0x4639b9();while(!![]){try{const _0x3c347b=-parseInt(_0x3cf742(0x1ed))/0x1+parseInt(_0x3cf742(0x212))/0x2+parseInt(_0x3cf742(0x1dc))/0x3*(parseInt(_0x3cf742(0x228))/0x4)+-parseInt(_0x3cf742(0x1f6))/0x5*(-parseInt(_0x3cf742(0x217))/0x6)+parseInt(_0x3cf742(0x222))/0x7+parseInt(_0x3cf742(0x226))/0x8+-parseInt(_0x3cf742(0x207))/0x9;if(_0x3c347b===_0x3a6b7e)break;else _0x2c66f8['push'](_0x2c66f8['shift']());}catch(_0x51c5dc){_0x2c66f8['push'](_0x2c66f8['shift']());}}}(a21_0x30c6,0x70319));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x3c7dd9(0x1f9)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require(a21_0x3c7dd9(0x1e0)),{sendInstrumentationEvent}=require(a21_0x3c7dd9(0x20a)),webSocketUtils=require(a21_0x3c7dd9(0x1ee)),{createK8sClient}=require(a21_0x3c7dd9(0x1fe)),{getCloudProviderObject}=require(a21_0x3c7dd9(0x1dd));exports[a21_0x3c7dd9(0x1e4)]=a21_0x3c7dd9(0x215),exports[a21_0x3c7dd9(0x1f1)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a21_0x3c7dd9(0x205)]=function(_0x43fc8b){const _0x1fedca=a21_0x3c7dd9,_0x14580c={};_0x14580c[_0x1fedca(0x21f)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x14580c[_0x1fedca(0x210)]=_0x1fedca(0x22a),_0x14580c[_0x1fedca(0x22e)]=_0x1fedca(0x1f3),_0x14580c[_0x1fedca(0x227)]=_0x1fedca(0x216),_0x14580c[_0x1fedca(0x219)]='help';const _0x15f665=_0x14580c,_0x13cbbc={};_0x13cbbc['description']=_0x15f665[_0x1fedca(0x21f)],_0x13cbbc[_0x1fedca(0x22b)]=_0x15f665[_0x1fedca(0x210)];const _0x47dd77={};_0x47dd77[_0x1fedca(0x22f)]=_0x15f665[_0x1fedca(0x22e)],_0x47dd77[_0x1fedca(0x22b)]=_0x15f665[_0x1fedca(0x227)],_0x47dd77[_0x1fedca(0x224)]=![];const _0x598731={};return _0x598731[_0x1fedca(0x1e3)]=_0x13cbbc,_0x598731[_0x1fedca(0x1f0)]=_0x47dd77,_0x43fc8b['usage'](HELP_HEADER_MESSAGE['stop'])[_0x1fedca(0x218)](HELP_FOOTER_MESSAGE)['options'](_0x598731)['help'](_0x15f665['NyXtm'])[_0x1fedca(0x21d)];},exports['handler']=async function(_0x493702){const _0x3e0e63=a21_0x3c7dd9,_0x3f2185={'AKJup':_0x3e0e63(0x213),'dlert':function(_0x147d72){return _0x147d72();},'OLkDt':_0x3e0e63(0x1e1),'hjeAf':function(_0xee23af,_0x272161,_0x2e38b9,_0x5e0921,_0x12dc58,_0x2a1978,_0x185b86){return _0xee23af(_0x272161,_0x2e38b9,_0x5e0921,_0x12dc58,_0x2a1978,_0x185b86);},'jvotm':'stop-grid-called','eQUjh':'init-not-called','mQKzm':_0x3e0e63(0x1fd),'iOvFm':_0x3e0e63(0x1fa),'mqwPv':'Adding\x20Websocket\x20listeners','lZLpI':function(_0x579f4a,_0x2dcad8,_0x11d329,_0x13d14c){return _0x579f4a(_0x2dcad8,_0x11d329,_0x13d14c);},'kYtNO':function(_0x4cc89b,_0x458fcc,_0x41473d,_0x2bcde3,_0x143fe4,_0x115cb9,_0x5b7444){return _0x4cc89b(_0x458fcc,_0x41473d,_0x2bcde3,_0x143fe4,_0x115cb9,_0x5b7444);},'SBiYj':function(_0x42fd8d,_0x452891,_0x5c8ca2){return _0x42fd8d(_0x452891,_0x5c8ca2);},'tPUtE':_0x3e0e63(0x1f7),'XEuDl':function(_0x5a7ab1,_0x52b56c){return _0x5a7ab1===_0x52b56c;},'kumsP':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','YzXFG':function(_0x20c9fa,_0x409152,_0x39fe5b,_0x2ecc1d,_0x4ef501,_0x51c0bc,_0x24dfc0){return _0x20c9fa(_0x409152,_0x39fe5b,_0x2ecc1d,_0x4ef501,_0x51c0bc,_0x24dfc0);},'DKkFf':_0x3e0e63(0x20f),'qetbp':_0x3e0e63(0x1ea),'lszNp':_0x3e0e63(0x21b)};let _0x424b42;try{!_0x493702[_0x3e0e63(0x21c)]&&(logger[_0x3e0e63(0x211)](_0x3f2185[_0x3e0e63(0x21a)]),process[_0x3e0e63(0x202)](0x1));!fs['existsSync'](_0x3f2185['dlert'](getCredentialsPath))&&(logger['error'](_0x3f2185[_0x3e0e63(0x214)]),await _0x3f2185[_0x3e0e63(0x1f8)](sendInstrumentationEvent,_0x493702,_0x3f2185[_0x3e0e63(0x1fc)],messageTypes[_0x3e0e63(0x208)],_0x3f2185[_0x3e0e63(0x21e)],null,_0x493702),process[_0x3e0e63(0x202)](0x1));logger[_0x3e0e63(0x1fb)]('Stopping\x20grid\x20'+_0x493702[_0x3e0e63(0x21c)]),await _0x3f2185[_0x3e0e63(0x1f8)](sendInstrumentationEvent,_0x493702,_0x3f2185[_0x3e0e63(0x1fc)],messageTypes[_0x3e0e63(0x221)],null,null,_0x493702);const _0x3f7dff=JSON[_0x3e0e63(0x1e9)](fs[_0x3e0e63(0x1e7)](_0x3f2185[_0x3e0e63(0x1de)](getCredentialsPath)));global_registry[_0x3e0e63(0x20e)]=_0x3f7dff[_0x3e0e63(0x220)]['username'],global_registry[_0x3e0e63(0x20d)]=_0x3f7dff[_0x3e0e63(0x220)][_0x3e0e63(0x22c)];const _0x2bb5a8=WS_ENDPOINT[_0x3e0e63(0x1eb)](_0x3f2185[_0x3e0e63(0x204)],_0x3f7dff[_0x3e0e63(0x220)][_0x3e0e63(0x1ef)])[_0x3e0e63(0x1eb)](_0x3f2185[_0x3e0e63(0x1e6)],_0x3f7dff['Browserstack'][_0x3e0e63(0x22c)]),_0xe9a9e8={};_0xe9a9e8[_0x3e0e63(0x1e8)]=ws,_0xe9a9e8[_0x3e0e63(0x1e2)]=0x36ee80,_0x424b42=new ReconnectingWebSocket(_0x2bb5a8,[],_0xe9a9e8),logger[_0x3e0e63(0x230)](_0x3f2185['mqwPv']),webSocketUtils[_0x3e0e63(0x1f4)](_0x424b42,_0x493702['user'],_0x493702[_0x3e0e63(0x22c)]);const [_0x257341,_0x84abb9]=await _0x3f2185['lZLpI'](getGridDetails,_0x3f7dff[_0x3e0e63(0x220)][_0x3e0e63(0x1ef)],_0x3f7dff['Browserstack'][_0x3e0e63(0x22c)],_0x493702[_0x3e0e63(0x21c)]);if(_0x84abb9){const _0x1b4437=_0x84abb9[_0x3e0e63(0x1fb)];global_registry['cloudProvider']=_0x1b4437[_0x3e0e63(0x1e5)],global_registry[_0x3e0e63(0x200)]=_0x1b4437[_0x3e0e63(0x1ff)],global_registry[_0x3e0e63(0x201)]=_0x1b4437[_0x3e0e63(0x201)];const _0x50d6b8=await _0x3f2185[_0x3e0e63(0x203)](getCloudProviderObject,_0x1b4437[_0x3e0e63(0x1e5)],_0x1b4437[_0x3e0e63(0x201)],_0x1b4437[_0x3e0e63(0x1ec)],_0x424b42,webSocketUtils,_0x493702),[_0xeaeb82,_0x2cc553,_0x2d9537,_0x273798,_0x1b3e8a,_0x18e915]=await _0x3f2185['SBiYj'](createK8sClient,_0x50d6b8,_0x493702[_0x3e0e63(0x20c)]);await _0x3f2185['SBiYj'](scaleDownHubDeployment,_0x2cc553,_0x1b4437[_0x3e0e63(0x1ec)]),logger['info'](_0x3f2185[_0x3e0e63(0x229)]),process[_0x3e0e63(0x202)](0x0);}_0x3f2185[_0x3e0e63(0x225)](_0x257341[_0x3e0e63(0x209)],0x191)&&(logger[_0x3e0e63(0x211)](_0x3f2185['kumsP']),await _0x3f2185[_0x3e0e63(0x1df)](sendInstrumentationEvent,_0x493702,_0x3f2185[_0x3e0e63(0x1fc)],messageTypes[_0x3e0e63(0x208)],_0x3f2185[_0x3e0e63(0x20b)],null,_0x493702),process[_0x3e0e63(0x202)](0x1)),_0x3f2185[_0x3e0e63(0x225)](_0x257341[_0x3e0e63(0x209)],0x190)&&(logger[_0x3e0e63(0x211)](JSON[_0x3e0e63(0x1e9)](_0x257341['body'])['message']),await _0x3f2185[_0x3e0e63(0x1f8)](sendInstrumentationEvent,_0x493702,_0x3f2185[_0x3e0e63(0x1fc)],messageTypes[_0x3e0e63(0x208)],_0x3f2185[_0x3e0e63(0x22d)],null,_0x493702),process[_0x3e0e63(0x202)](0x1)),logger[_0x3e0e63(0x211)](_0x3e0e63(0x223)+JSON[_0x3e0e63(0x1f5)](_0x257341)),await _0x3f2185[_0x3e0e63(0x203)](sendInstrumentationEvent,_0x493702,_0x3f2185['jvotm'],messageTypes[_0x3e0e63(0x208)],_0x3f2185[_0x3e0e63(0x206)],_0x257341,_0x493702),process['exit'](0x1);}catch(_0x4c8437){const _0x341f47=_0x3e0e63(0x1f2)+_0x4c8437+'\x20\x0a'+JSON[_0x3e0e63(0x1f5)](_0x4c8437['stack'])+'\x20';logger[_0x3e0e63(0x211)](_0x341f47),process['exit'](0x1);}};
1
+ const a21_0x1ddc3c=a21_0x976c;(function(_0x253c9b,_0x1c7460){const _0x55f548=a21_0x976c,_0x1aade5=_0x253c9b();while(!![]){try{const _0x30d543=parseInt(_0x55f548(0xda))/0x1*(-parseInt(_0x55f548(0xf1))/0x2)+-parseInt(_0x55f548(0xf0))/0x3*(parseInt(_0x55f548(0xeb))/0x4)+-parseInt(_0x55f548(0xdf))/0x5+-parseInt(_0x55f548(0x119))/0x6*(-parseInt(_0x55f548(0xe3))/0x7)+parseInt(_0x55f548(0x103))/0x8*(parseInt(_0x55f548(0xd9))/0x9)+parseInt(_0x55f548(0xcd))/0xa*(-parseInt(_0x55f548(0xc7))/0xb)+parseInt(_0x55f548(0xdb))/0xc;if(_0x30d543===_0x1c7460)break;else _0x1aade5['push'](_0x1aade5['shift']());}catch(_0x1fe788){_0x1aade5['push'](_0x1aade5['shift']());}}}(a21_0x3bff,0xe98f0));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x1ddc3c(0x104)),{logger}=require(a21_0x1ddc3c(0x109)),{getCredentialsPath,getGridDetails}=require(a21_0x1ddc3c(0xde)),{scaleDownHubDeployment}=require(a21_0x1ddc3c(0x120)),{sendInstrumentationEvent}=require(a21_0x1ddc3c(0xf4)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a21_0x1ddc3c(0x101));exports['command']=a21_0x1ddc3c(0x10f),exports['desc']=a21_0x1ddc3c(0xff),exports[a21_0x1ddc3c(0x10a)]=function(_0x197522){const _0x206692=a21_0x1ddc3c,_0x43554a={};_0x43554a['RIbyj']=_0x206692(0xe1),_0x43554a[_0x206692(0x115)]=_0x206692(0x10e),_0x43554a[_0x206692(0x10d)]=_0x206692(0xfa),_0x43554a['clhqA']=_0x206692(0xed),_0x43554a[_0x206692(0xdc)]=_0x206692(0x113);const _0x2b977f=_0x43554a,_0x26f8d7={};_0x26f8d7['description']=_0x2b977f['RIbyj'],_0x26f8d7[_0x206692(0xc6)]=_0x2b977f['UdRiz'];const _0x4f4f18={};_0x4f4f18[_0x206692(0xd4)]=_0x2b977f[_0x206692(0x10d)],_0x4f4f18[_0x206692(0xc6)]=_0x2b977f['clhqA'],_0x4f4f18[_0x206692(0xef)]=![];const _0x1334d8={};return _0x1334d8[_0x206692(0x118)]=_0x26f8d7,_0x1334d8['skip-tls-cert-verify']=_0x4f4f18,_0x197522[_0x206692(0xc8)](HELP_HEADER_MESSAGE[_0x206692(0xea)])[_0x206692(0x111)](HELP_FOOTER_MESSAGE)[_0x206692(0x10b)](_0x1334d8)[_0x206692(0x113)](_0x2b977f[_0x206692(0xdc)])[_0x206692(0xcf)];},exports['handler']=async function(_0x170d24){const _0x4a8166=a21_0x1ddc3c,_0x38c553={'URYfM':_0x4a8166(0xe9),'oKEks':function(_0x2119c2){return _0x2119c2();},'YWiVq':_0x4a8166(0xf5),'tAhMA':function(_0x2e4112,_0x4e136f,_0xd76206,_0x438c7b,_0x3c3320,_0x425b01,_0x2e55b8){return _0x2e4112(_0x4e136f,_0xd76206,_0x438c7b,_0x3c3320,_0x425b01,_0x2e55b8);},'dQerw':_0x4a8166(0x116),'iMnsp':_0x4a8166(0xec),'ZTrCW':function(_0x5c7885){return _0x5c7885();},'WVnoQ':'<UsernamePlaceholder>','DQWgX':_0x4a8166(0xfb),'OxOdZ':_0x4a8166(0x11d),'ywcaZ':function(_0x5e1c61,_0x3d23e1,_0x381200,_0x1baca2){return _0x5e1c61(_0x3d23e1,_0x381200,_0x1baca2);},'hYzIv':function(_0x2eaa1d,_0x1558a1,_0x4a6a5f,_0x22f687,_0x7bfd34,_0x537732,_0x5cb398){return _0x2eaa1d(_0x1558a1,_0x4a6a5f,_0x22f687,_0x7bfd34,_0x537732,_0x5cb398);},'DHJfe':function(_0x2e1b6e,_0x5dde0f,_0x3fad01){return _0x2e1b6e(_0x5dde0f,_0x3fad01);},'oXuok':function(_0x204b1a,_0x57ea8c,_0x23376d){return _0x204b1a(_0x57ea8c,_0x23376d);},'zthpc':_0x4a8166(0x102),'KAOke':function(_0x4846cb,_0x513022){return _0x4846cb===_0x513022;},'jsnPg':_0x4a8166(0xc5),'ctMNi':function(_0x2a980e,_0x2129d4,_0x42740f,_0x4c9364,_0x5aed40,_0x5b8be5,_0x43d549){return _0x2a980e(_0x2129d4,_0x42740f,_0x4c9364,_0x5aed40,_0x5b8be5,_0x43d549);},'iyTIk':'unauthorised','ysuGc':_0x4a8166(0xe6),'XWEkF':_0x4a8166(0xc4)};let _0x5e11c4;try{!_0x170d24[_0x4a8166(0x108)]&&(logger[_0x4a8166(0xfe)](_0x38c553[_0x4a8166(0xd2)]),process[_0x4a8166(0xf7)](0x1));!fs[_0x4a8166(0xd8)](_0x38c553[_0x4a8166(0x105)](getCredentialsPath))&&(logger[_0x4a8166(0xfe)](_0x38c553[_0x4a8166(0xd7)]),await _0x38c553[_0x4a8166(0x11c)](sendInstrumentationEvent,_0x170d24,_0x38c553[_0x4a8166(0xcb)],messageTypes['ERROR'],_0x38c553[_0x4a8166(0x123)],null,_0x170d24),process[_0x4a8166(0xf7)](0x1));logger[_0x4a8166(0xe7)](_0x4a8166(0x122)+_0x170d24[_0x4a8166(0x108)]),await _0x38c553['tAhMA'](sendInstrumentationEvent,_0x170d24,_0x38c553[_0x4a8166(0xcb)],messageTypes[_0x4a8166(0xe0)],null,null,_0x170d24);const _0x4d7466=JSON[_0x4a8166(0xe2)](fs[_0x4a8166(0xdd)](_0x38c553['ZTrCW'](getCredentialsPath)));global_registry[_0x4a8166(0x121)]=_0x4d7466[_0x4a8166(0x11e)][_0x4a8166(0xd0)],global_registry[_0x4a8166(0xc3)]=_0x4d7466[_0x4a8166(0x11e)][_0x4a8166(0xce)];const _0x4f24f9=WS_ENDPOINT[_0x4a8166(0xfd)](_0x38c553['WVnoQ'],_0x4d7466['Browserstack']['username'])[_0x4a8166(0xfd)](_0x38c553['DQWgX'],_0x4d7466[_0x4a8166(0x11e)][_0x4a8166(0xce)]),_0x2247ec={};_0x2247ec[_0x4a8166(0x107)]=ws,_0x2247ec[_0x4a8166(0x11b)]=0x36ee80,_0x5e11c4=new ReconnectingWebSocket(_0x4f24f9,[],_0x2247ec),logger[_0x4a8166(0xd1)](_0x38c553[_0x4a8166(0x117)]),webSocketUtils[_0x4a8166(0x100)](_0x5e11c4,_0x170d24[_0x4a8166(0xf3)],_0x170d24[_0x4a8166(0xce)]);const [_0x5757f5,_0x4ab16f]=await _0x38c553[_0x4a8166(0xca)](getGridDetails,_0x4d7466['Browserstack']['username'],_0x4d7466['Browserstack'][_0x4a8166(0xce)],_0x170d24[_0x4a8166(0x108)]);if(_0x4ab16f){const _0x36e0f0=_0x4ab16f[_0x4a8166(0xe7)];global_registry[_0x4a8166(0xf8)]=_0x36e0f0['cloudProvider'],global_registry['clusterRegion']=_0x36e0f0[_0x4a8166(0xe8)],global_registry['clusterName']=_0x36e0f0['clusterName'];const _0x2ebb38=await _0x38c553[_0x4a8166(0xd3)](getCloudProviderObject,_0x36e0f0[_0x4a8166(0xf8)],_0x36e0f0[_0x4a8166(0xee)],_0x36e0f0[_0x4a8166(0x114)],_0x5e11c4,webSocketUtils,_0x170d24),[_0x2257c8,_0x54be95,_0x51ba9f,_0x1f5092,_0x4ada81,_0x2ec639]=await _0x38c553[_0x4a8166(0xe4)](createK8sClient,_0x2ebb38,_0x170d24[_0x4a8166(0xd5)]);await _0x38c553[_0x4a8166(0xc9)](scaleDownHubDeployment,_0x54be95,_0x36e0f0[_0x4a8166(0x114)]),logger[_0x4a8166(0xe7)](_0x38c553[_0x4a8166(0xd6)]),process[_0x4a8166(0xf7)](0x0);}_0x38c553[_0x4a8166(0x112)](_0x5757f5[_0x4a8166(0xcc)],0x191)&&(logger['error'](_0x38c553['jsnPg']),await _0x38c553['ctMNi'](sendInstrumentationEvent,_0x170d24,_0x38c553['dQerw'],messageTypes[_0x4a8166(0xe5)],_0x38c553[_0x4a8166(0xc2)],null,_0x170d24),process[_0x4a8166(0xf7)](0x1)),_0x38c553[_0x4a8166(0x112)](_0x5757f5[_0x4a8166(0xcc)],0x190)&&(logger['error'](JSON['parse'](_0x5757f5[_0x4a8166(0x11a)])[_0x4a8166(0x106)]),await _0x38c553[_0x4a8166(0x11f)](sendInstrumentationEvent,_0x170d24,_0x38c553[_0x4a8166(0xcb)],messageTypes[_0x4a8166(0xe5)],_0x38c553[_0x4a8166(0xf6)],null,_0x170d24),process['exit'](0x1)),logger[_0x4a8166(0xfe)](_0x4a8166(0xfc)+JSON[_0x4a8166(0xf2)](_0x5757f5)),await _0x38c553[_0x4a8166(0x11f)](sendInstrumentationEvent,_0x170d24,_0x38c553[_0x4a8166(0xcb)],messageTypes[_0x4a8166(0xe5)],_0x38c553[_0x4a8166(0x10c)],_0x5757f5,_0x170d24),process[_0x4a8166(0xf7)](0x1);}catch(_0x3b119a){const _0x349de7=_0x4a8166(0xf9)+_0x3b119a+'\x20\x0a'+JSON['stringify'](_0x3b119a[_0x4a8166(0x110)])+'\x20';logger['error'](_0x349de7),process[_0x4a8166(0xf7)](0x1);}};function a21_0x976c(_0x3dea18,_0x3b2b40){const _0x3bffab=a21_0x3bff();return a21_0x976c=function(_0x976c0b,_0x45d336){_0x976c0b=_0x976c0b-0xc2;let _0x26b636=_0x3bffab[_0x976c0b];return _0x26b636;},a21_0x976c(_0x3dea18,_0x3b2b40);}function a21_0x3bff(){const _0x4535fc=['OxOdZ','grid-id','30mfrYCF','body','connectionTimeout','tAhMA','Adding\x20Websocket\x20listeners','Browserstack','ctMNi','../../utils/gridComponents','bstackUsername','Stopping\x20grid\x20','iMnsp','iyTIk','bstackAccesskey','server-error','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','type','11jRnDBP','usage','oXuok','ywcaZ','dQerw','statusCode','77860KqDLLL','password','argv','username','debug','URYfM','hYzIv','description','skipTlsCertVerify','zthpc','YWiVq','existsSync','851850wjBFdI','125359FlEVKz','1854924zlTPxC','SjjzA','readFileSync','../../utils/utilityMethods','1703680qKFOCw','INFO','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','parse','1860929gIRvDv','DHJfe','ERROR','invalid-grid-id','info','region','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','stop','44108IixdIN','init-not-called','boolean','clusterName','default','375ebCaul','2nsttEb','stringify','user','../../utils/instrumentationUtils','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ysuGc','exit','cloudProvider','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','Skip\x20insecure\x20cert\x20verification.','<PasswordPlaceholder>','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','replace','error','Stop\x20a\x20running\x20Automation\x20grid.','addListeners','../../cloudproviders/utils','Grid\x20stoppped.','112kFeuAs','../../config/constants','oKEks','message','WebSocket','gridId','../../config/logger','builder','options','XWEkF','KZxPB','string','grid','stack','epilogue','KAOke','help','name','UdRiz','stop-grid-called'];a21_0x3bff=function(){return _0x4535fc;};return a21_0x3bff();}
@@ -1 +1 @@
1
- const a22_0x55a165=a22_0x1221;(function(_0xf2d4e0,_0x341765){const _0x4c2fdc=a22_0x1221,_0x47fff6=_0xf2d4e0();while(!![]){try{const _0x232ccb=-parseInt(_0x4c2fdc(0x1f2))/0x1*(-parseInt(_0x4c2fdc(0x216))/0x2)+-parseInt(_0x4c2fdc(0x20e))/0x3*(-parseInt(_0x4c2fdc(0x205))/0x4)+-parseInt(_0x4c2fdc(0x1d8))/0x5+parseInt(_0x4c2fdc(0x1eb))/0x6+parseInt(_0x4c2fdc(0x204))/0x7+parseInt(_0x4c2fdc(0x1fa))/0x8+-parseInt(_0x4c2fdc(0x217))/0x9*(parseInt(_0x4c2fdc(0x22c))/0xa);if(_0x232ccb===_0x341765)break;else _0x47fff6['push'](_0x47fff6['shift']());}catch(_0x2241b6){_0x47fff6['push'](_0x47fff6['shift']());}}}(a22_0x35b3,0xe1d10),require(a22_0x55a165(0x1dd))[a22_0x55a165(0x1e2)]());let gridURL=a22_0x55a165(0x215),bsApiUrl=a22_0x55a165(0x241),agApiUrl=a22_0x55a165(0x1d9);function a22_0x1221(_0x47a151,_0x414527){const _0x35b330=a22_0x35b3();return a22_0x1221=function(_0x122112,_0x5604a4){_0x122112=_0x122112-0x1d6;let _0xf3fd83=_0x35b330[_0x122112];return _0xf3fd83;},a22_0x1221(_0x47a151,_0x414527);}const _env=(process[a22_0x55a165(0x1e6)]['BROWSERSTACK_ENV']||a22_0x55a165(0x1f8))[a22_0x55a165(0x1da)]();if(_env===a22_0x55a165(0x20a)||_env===a22_0x55a165(0x1f7))gridURL=a22_0x55a165(0x219),bsApiUrl=a22_0x55a165(0x208),agApiUrl='grid-api-devhst.bsstag.com';else(_env==='preprod'||_env===a22_0x55a165(0x23d))&&(gridURL=a22_0x55a165(0x220),bsApiUrl=a22_0x55a165(0x1e0),agApiUrl=a22_0x55a165(0x22e));exports['DASHBOARD_ENDPOINT']=process[a22_0x55a165(0x1e6)][a22_0x55a165(0x1fe)]||gridURL,exports['BS_API_URL']=process[a22_0x55a165(0x1e6)][a22_0x55a165(0x20d)]||bsApiUrl,exports[a22_0x55a165(0x237)]=process[a22_0x55a165(0x1e6)][a22_0x55a165(0x237)]||agApiUrl,exports[a22_0x55a165(0x232)]=a22_0x55a165(0x242)+this['AG_API_URL']+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x55a165(0x201)]=a22_0x55a165(0x235),exports[a22_0x55a165(0x222)]='BrowserStackIAMUser',exports[a22_0x55a165(0x1de)]=a22_0x55a165(0x1f9),exports['AWS']='aws',exports[a22_0x55a165(0x213)]=a22_0x55a165(0x1e4),exports[a22_0x55a165(0x1d7)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x55a165(0x1ea)]=a22_0x55a165(0x22a),exports[a22_0x55a165(0x20c)]=a22_0x55a165(0x231),exports['AZURE']=a22_0x55a165(0x1e8),exports['GCP']=a22_0x55a165(0x206),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x55a165(0x240)],this[a22_0x55a165(0x1ee)],this[a22_0x55a165(0x244)]];const a22_0x652b5c={};a22_0x652b5c[a22_0x55a165(0x229)]='browserstack:managedBy',a22_0x652b5c[a22_0x55a165(0x1fb)]='BrowserStack';const a22_0x1b5eff={};a22_0x1b5eff[a22_0x55a165(0x229)]='browserstack:service',a22_0x1b5eff[a22_0x55a165(0x1fb)]=a22_0x55a165(0x210);const common_hst_tags_list=[a22_0x652b5c,a22_0x1b5eff];if(process[a22_0x55a165(0x1e6)][a22_0x55a165(0x1e5)]){const parsedTags=process[a22_0x55a165(0x1e6)][a22_0x55a165(0x1e5)]['split'](',');parsedTags['forEach'](_0x59ce52=>{const _0x221c79=a22_0x55a165,_0x4a54ee=_0x59ce52['split'](':'),_0x4b63a2={};_0x4b63a2[_0x221c79(0x229)]=_0x4a54ee[0x0],_0x4b63a2[_0x221c79(0x1fb)]=_0x4a54ee[0x1],common_hst_tags_list['push'](_0x4b63a2);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x48e5de={};a22_0x48e5de[a22_0x55a165(0x23b)]=a22_0x55a165(0x21e),a22_0x48e5de[a22_0x55a165(0x239)]=a22_0x55a165(0x210),exports[a22_0x55a165(0x22d)]=a22_0x48e5de,exports[a22_0x55a165(0x1ff)]=[this[a22_0x55a165(0x240)]];const a22_0x13ec2e={};a22_0x13ec2e['LOG']=a22_0x55a165(0x20b),a22_0x13ec2e[a22_0x55a165(0x1f0)]=a22_0x55a165(0x22f),a22_0x13ec2e[a22_0x55a165(0x1f6)]=a22_0x55a165(0x236),a22_0x13ec2e[a22_0x55a165(0x211)]=a22_0x55a165(0x23c),a22_0x13ec2e[a22_0x55a165(0x20f)]=a22_0x55a165(0x207),exports[a22_0x55a165(0x1ed)]=a22_0x13ec2e,exports[a22_0x55a165(0x1f1)]={},exports[a22_0x55a165(0x21d)]=a22_0x55a165(0x225);const a22_0x1f455f={};a22_0x1f455f[a22_0x55a165(0x212)]=a22_0x55a165(0x21b)+this[a22_0x55a165(0x21d)],a22_0x1f455f['init']=a22_0x55a165(0x21a)+this['LINK_MESSAGE'],a22_0x1f455f[a22_0x55a165(0x1e9)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this['LINK_MESSAGE'],a22_0x1f455f['create']=a22_0x55a165(0x230)+this[a22_0x55a165(0x21d)],a22_0x1f455f[a22_0x55a165(0x1e3)]={},a22_0x1f455f[a22_0x55a165(0x200)]=a22_0x55a165(0x1e1)+this[a22_0x55a165(0x21d)],a22_0x1f455f[a22_0x55a165(0x209)]=a22_0x55a165(0x234)+this[a22_0x55a165(0x21d)],a22_0x1f455f[a22_0x55a165(0x1f5)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x55a165(0x21d)],a22_0x1f455f[a22_0x55a165(0x23a)]=a22_0x55a165(0x243)+this[a22_0x55a165(0x21d)],a22_0x1f455f[a22_0x55a165(0x227)]=a22_0x55a165(0x202)+this[a22_0x55a165(0x21d)],a22_0x1f455f[a22_0x55a165(0x1e3)][a22_0x55a165(0x212)]=a22_0x55a165(0x214)+this['LINK_MESSAGE'],a22_0x1f455f[a22_0x55a165(0x1e3)]['grid']=a22_0x55a165(0x22b)+this[a22_0x55a165(0x21d)],a22_0x1f455f[a22_0x55a165(0x1e3)]['gridProfile']=a22_0x55a165(0x1f4)+this[a22_0x55a165(0x21d)],exports['HELP_HEADER_MESSAGE']=a22_0x1f455f,exports['HELP_FOOTER_MESSAGE']=a22_0x55a165(0x218);const a22_0x15667d={};a22_0x15667d[a22_0x55a165(0x1f3)]=a22_0x55a165(0x203),a22_0x15667d[a22_0x55a165(0x1e7)]=a22_0x55a165(0x21f),a22_0x15667d['INFO']=a22_0x55a165(0x21c),a22_0x15667d[a22_0x55a165(0x1fc)]='warning',a22_0x15667d[a22_0x55a165(0x233)]=a22_0x55a165(0x1d6),a22_0x15667d[a22_0x55a165(0x221)]=null,exports['messageTypes']=a22_0x15667d,exports[a22_0x55a165(0x224)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x55a165(0x1ec)]=a22_0x55a165(0x1db);const a22_0x338ec2={};a22_0x338ec2[a22_0x55a165(0x23e)]=a22_0x55a165(0x23f);function a22_0x35b3(){const _0x346233=['AZURE','CLOUD_PROVIDER','RESOURCES','global_registry','17577hAqJVI','SUCCESS','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','start','GRID_URL','stag','prod','high-scale-grid','12616600XiWzzX','Value','WARNING','CLUSTER','DASHBOARD_ENDPOINT','SUPPORTED_CLOUD_PROVIDERS','delete','CP_CONFIG_FILE','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','success','6631849RJkKVJ','6064drUIjw','gcp','cliRunFinished','api-devhst.bsstag.com','connect','staging','log','TURBOSCALE_DEPLOYMENT','BS_API_URL','1089MwUlRH','CLI_RUN_FINISHED','BrowserStack-Automate-TurboScale','CLI_RUN_STARTED','root','CLUSTER_DEP_STACK_NAME','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','grid.browserstack.com','6VyUQkr','14346477qcZLDY','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','grid-devhst.bsstag.com','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','info','LINK_MESSAGE','BrowserStack','error','grid-preprod.bsstag.com','NULL','IAM_USER_NAME','high-scale-grid-cluster','CLI_ARGS_REGEX','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','REGION','pre_check','TRIAL_GRID_URL','Key','BSTACK-ATS-CLUSTER-HUB-HA','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','10WSOylD','HST_CLUSTER_TAGS','grid-api-preprod.bsstag.com','resourceInfo','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','browserstack-turboscale-grid','WS_ENDPOINT','UNKNOWN','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','credentials','gridUrl','AG_API_URL','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','browserstack:service','stop','browserstack:managedBy','cliRunStarted','pre-prod','grid-profile','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','AWS','api.browserstack.com','wss://','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','GCP','unknown','CLUSTER_AUTOSCALER_STACK_NAME','7905490VRmdbH','grid-api.browserstack.com','toLowerCase','[REDACTED]','pre-check','dotenv','DEFAULT_GRID_NAME','aws','api-preprod.bsstag.com','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','config','list','BSTACK-ATS-CLUSTER','TURBOSCALE_CUSTOM_TAGS','env','ERROR','azure','configure','CLUSTER_HUB_HA_STACK_NAME','5835444xnkMXt','REDACTED','WS_EVENTS'];a22_0x35b3=function(){return _0x346233;};return a22_0x35b3();}const a22_0x15f312={};a22_0x15f312[a22_0x55a165(0x1dc)]=a22_0x338ec2,exports['MessageDescription']=a22_0x15f312,exports[a22_0x55a165(0x228)]=a22_0x55a165(0x238);const a22_0x1b1505={};a22_0x1b1505[a22_0x55a165(0x1fd)]=a22_0x55a165(0x223),a22_0x1b1505[a22_0x55a165(0x1ef)]=a22_0x55a165(0x1df),a22_0x1b1505[a22_0x55a165(0x226)]='us-east-1',exports['DEFAULT_CLUSTER_DETAILS']=a22_0x1b1505;
1
+ const a22_0x1edbc1=a22_0x5197;(function(_0x201581,_0x5e47a1){const _0x1a6016=a22_0x5197,_0x5d876a=_0x201581();while(!![]){try{const _0xf2be37=-parseInt(_0x1a6016(0x21d))/0x1+parseInt(_0x1a6016(0x1d6))/0x2*(parseInt(_0x1a6016(0x231))/0x3)+-parseInt(_0x1a6016(0x234))/0x4*(parseInt(_0x1a6016(0x1fe))/0x5)+-parseInt(_0x1a6016(0x1f6))/0x6+-parseInt(_0x1a6016(0x21b))/0x7*(-parseInt(_0x1a6016(0x229))/0x8)+-parseInt(_0x1a6016(0x224))/0x9*(parseInt(_0x1a6016(0x221))/0xa)+-parseInt(_0x1a6016(0x20f))/0xb*(-parseInt(_0x1a6016(0x1ff))/0xc);if(_0xf2be37===_0x5e47a1)break;else _0x5d876a['push'](_0x5d876a['shift']());}catch(_0x3a04ac){_0x5d876a['push'](_0x5d876a['shift']());}}}(a22_0x1394,0x58992),require('dotenv')[a22_0x1edbc1(0x1d3)]());let gridURL='grid.browserstack.com',bsApiUrl=a22_0x1edbc1(0x22d),agApiUrl=a22_0x1edbc1(0x1e6);const _env=(process[a22_0x1edbc1(0x232)][a22_0x1edbc1(0x205)]||a22_0x1edbc1(0x218))['toLowerCase']();if(_env===a22_0x1edbc1(0x23b)||_env===a22_0x1edbc1(0x204))gridURL=a22_0x1edbc1(0x216),bsApiUrl=a22_0x1edbc1(0x1d1),agApiUrl=a22_0x1edbc1(0x1e1);else(_env==='preprod'||_env===a22_0x1edbc1(0x1f1))&&(gridURL=a22_0x1edbc1(0x1e5),bsApiUrl='api-preprod.bsstag.com',agApiUrl='grid-api-preprod.bsstag.com');exports[a22_0x1edbc1(0x1d7)]=process['env'][a22_0x1edbc1(0x1d7)]||gridURL,exports[a22_0x1edbc1(0x1dc)]=process[a22_0x1edbc1(0x232)]['BS_API_URL']||bsApiUrl,exports['AG_API_URL']=process[a22_0x1edbc1(0x232)][a22_0x1edbc1(0x1fb)]||agApiUrl,exports[a22_0x1edbc1(0x211)]=a22_0x1edbc1(0x233)+this[a22_0x1edbc1(0x1fb)]+a22_0x1edbc1(0x219),exports[a22_0x1edbc1(0x1e2)]=a22_0x1edbc1(0x222),exports[a22_0x1edbc1(0x1d4)]='BrowserStackIAMUser',exports[a22_0x1edbc1(0x214)]=a22_0x1edbc1(0x239),exports['AWS']=a22_0x1edbc1(0x1ea),exports[a22_0x1edbc1(0x20c)]=a22_0x1edbc1(0x23a),exports['CLUSTER_AUTOSCALER_STACK_NAME']=a22_0x1edbc1(0x1f8),exports[a22_0x1edbc1(0x22e)]='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x1edbc1(0x226)]=a22_0x1edbc1(0x22f),exports[a22_0x1edbc1(0x215)]=a22_0x1edbc1(0x1dd),exports[a22_0x1edbc1(0x236)]='gcp',exports[a22_0x1edbc1(0x1e7)]=[this[a22_0x1edbc1(0x1f7)],this[a22_0x1edbc1(0x215)],this[a22_0x1edbc1(0x236)]];const a22_0x4d2935={};function a22_0x1394(){const _0x36fab5=['gridUrl','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','CLI_ARGS_REGEX','BrowserStack','HST_CLUSTER_TAGS','pre-prod','gridProfile','us-east-1','resourceInfo','RAW_ARGS_REGEX','2788050RIuYGP','AWS','BSTACK-ATS-CLUSTER-AUTOSCALER','success','BrowserStack-Automate-TurboScale','AG_API_URL','push','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','967315JoEACF','29256Fdcynd','NULL','unknown','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','RESOURCES','stag','BROWSERSTACK_ENV','browserstack:managedBy','info','LOG','stop','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','create','CLUSTER_DEP_STACK_NAME','MessageDescription','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','3839HPYioR','TURBOSCALE_CUSTOM_TAGS','WS_ENDPOINT','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','LINK_MESSAGE','DEFAULT_GRID_NAME','AZURE','grid-devhst.bsstag.com','Key','prod','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','REGION','35QhuSDr','CLI_RUN_STARTED','29144kYDTJu','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','start','330GPhAjM','credentials','SUPPORTED_CLOUD_PROVIDERS','169479rBrJIo','ERROR','TURBOSCALE_DEPLOYMENT','messageTypes','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','960040jZanGn','root','CLOUD_PROVIDER','WARNING','api.browserstack.com','CLUSTER_HUB_HA_STACK_NAME','browserstack-turboscale-grid','global_registry','3SGeyNo','env','wss://','8PZcMey','configure','GCP','delete','browserstack:service','high-scale-grid','BSTACK-ATS-CLUSTER','staging','Value','grid','HELP_HEADER_MESSAGE','api-devhst.bsstag.com','pre-check','config','IAM_USER_NAME','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','828358pIUkvN','DASHBOARD_ENDPOINT','list','split','cliRunFinished','GRID_URL','BS_API_URL','azure','init','cliRunStarted','connect','grid-api-devhst.bsstag.com','CP_CONFIG_FILE','log','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','grid-preprod.bsstag.com','grid-api.browserstack.com','ALL_SUPPORTED_CLOUD_PROVIDERS','high-scale-grid-cluster','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','aws','HELP_FOOTER_MESSAGE'];a22_0x1394=function(){return _0x36fab5;};return a22_0x1394();}a22_0x4d2935[a22_0x1edbc1(0x217)]=a22_0x1edbc1(0x206),a22_0x4d2935[a22_0x1edbc1(0x23c)]='BrowserStack';const a22_0xe7e717={};a22_0xe7e717['Key']=a22_0x1edbc1(0x238),a22_0xe7e717[a22_0x1edbc1(0x23c)]=a22_0x1edbc1(0x1fa);const common_hst_tags_list=[a22_0x4d2935,a22_0xe7e717];if(process[a22_0x1edbc1(0x232)][a22_0x1edbc1(0x210)]){const parsedTags=process[a22_0x1edbc1(0x232)]['TURBOSCALE_CUSTOM_TAGS']['split'](',');parsedTags['forEach'](_0x589ce4=>{const _0x28eb82=a22_0x1edbc1,_0x34dd86=_0x589ce4[_0x28eb82(0x1d9)](':'),_0x5beded={};_0x5beded[_0x28eb82(0x217)]=_0x34dd86[0x0],_0x5beded[_0x28eb82(0x23c)]=_0x34dd86[0x1],common_hst_tags_list[_0x28eb82(0x1fc)](_0x5beded);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x32333e={};a22_0x32333e[a22_0x1edbc1(0x206)]=a22_0x1edbc1(0x1ef),a22_0x32333e[a22_0x1edbc1(0x238)]='BrowserStack-Automate-TurboScale',exports[a22_0x1edbc1(0x1f0)]=a22_0x32333e,exports[a22_0x1edbc1(0x223)]=[this[a22_0x1edbc1(0x1f7)]];const a22_0x2541ee={};a22_0x2541ee[a22_0x1edbc1(0x208)]=a22_0x1edbc1(0x1e3),a22_0x2541ee[a22_0x1edbc1(0x203)]=a22_0x1edbc1(0x1f4),a22_0x2541ee[a22_0x1edbc1(0x1db)]=a22_0x1edbc1(0x1ec),a22_0x2541ee[a22_0x1edbc1(0x21c)]=a22_0x1edbc1(0x1df),a22_0x2541ee['CLI_RUN_FINISHED']=a22_0x1edbc1(0x1da),exports['WS_EVENTS']=a22_0x2541ee,exports[a22_0x1edbc1(0x230)]={},exports[a22_0x1edbc1(0x213)]=a22_0x1edbc1(0x202);const a22_0x8aaf0a={};a22_0x8aaf0a['root']=a22_0x1edbc1(0x1d5)+this[a22_0x1edbc1(0x213)],a22_0x8aaf0a[a22_0x1edbc1(0x1de)]=a22_0x1edbc1(0x228)+this[a22_0x1edbc1(0x213)],a22_0x8aaf0a[a22_0x1edbc1(0x235)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a22_0x1edbc1(0x213)],a22_0x8aaf0a[a22_0x1edbc1(0x20b)]=a22_0x1edbc1(0x1ed)+this[a22_0x1edbc1(0x213)],a22_0x8aaf0a[a22_0x1edbc1(0x1d8)]={},a22_0x8aaf0a[a22_0x1edbc1(0x237)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x1edbc1(0x213)],a22_0x8aaf0a[a22_0x1edbc1(0x1e0)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this['LINK_MESSAGE'],a22_0x8aaf0a[a22_0x1edbc1(0x220)]=a22_0x1edbc1(0x1e4)+this[a22_0x1edbc1(0x213)],a22_0x8aaf0a[a22_0x1edbc1(0x209)]=a22_0x1edbc1(0x20e)+this[a22_0x1edbc1(0x213)],a22_0x8aaf0a['pre_check']=a22_0x1edbc1(0x21e)+this['LINK_MESSAGE'],a22_0x8aaf0a[a22_0x1edbc1(0x1d8)][a22_0x1edbc1(0x22a)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this[a22_0x1edbc1(0x213)],a22_0x8aaf0a[a22_0x1edbc1(0x1d8)][a22_0x1edbc1(0x1cf)]=a22_0x1edbc1(0x20a)+this[a22_0x1edbc1(0x213)],a22_0x8aaf0a[a22_0x1edbc1(0x1d8)][a22_0x1edbc1(0x1f2)]=a22_0x1edbc1(0x1e9)+this[a22_0x1edbc1(0x213)],exports[a22_0x1edbc1(0x1d0)]=a22_0x8aaf0a,exports[a22_0x1edbc1(0x1eb)]=a22_0x1edbc1(0x1fd);const a22_0x2d2f94={};a22_0x2d2f94['SUCCESS']=a22_0x1edbc1(0x1f9),a22_0x2d2f94[a22_0x1edbc1(0x225)]='error',a22_0x2d2f94['INFO']=a22_0x1edbc1(0x207),a22_0x2d2f94[a22_0x1edbc1(0x22c)]='warning',a22_0x2d2f94['UNKNOWN']=a22_0x1edbc1(0x201),a22_0x2d2f94[a22_0x1edbc1(0x200)]=null,exports[a22_0x1edbc1(0x227)]=a22_0x2d2f94,exports[a22_0x1edbc1(0x1ee)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x1edbc1(0x1f5)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']='[REDACTED]';const a22_0x273aef={};function a22_0x5197(_0x232ea3,_0x44ffb1){const _0x1394ec=a22_0x1394();return a22_0x5197=function(_0x51979f,_0x5bb7be){_0x51979f=_0x51979f-0x1cf;let _0x172567=_0x1394ec[_0x51979f];return _0x172567;},a22_0x5197(_0x232ea3,_0x44ffb1);}a22_0x273aef['grid-profile']=a22_0x1edbc1(0x21f);const a22_0x5ddc29={};a22_0x5ddc29[a22_0x1edbc1(0x1d2)]=a22_0x273aef,exports[a22_0x1edbc1(0x20d)]=a22_0x5ddc29,exports['TRIAL_GRID_URL']=a22_0x1edbc1(0x212);const a22_0x3f7237={};a22_0x3f7237['CLUSTER']=a22_0x1edbc1(0x1e8),a22_0x3f7237[a22_0x1edbc1(0x22b)]='aws',a22_0x3f7237[a22_0x1edbc1(0x21a)]=a22_0x1edbc1(0x1f3),exports['DEFAULT_CLUSTER_DETAILS']=a22_0x3f7237;
@@ -1 +1 @@
1
- const a23_0x48ac47=a23_0x4d14;(function(_0x1cf2ed,_0x318f2e){const _0x327550=a23_0x4d14,_0x36e0f6=_0x1cf2ed();while(!![]){try{const _0xe64fb5=-parseInt(_0x327550(0x6f))/0x1*(-parseInt(_0x327550(0x83))/0x2)+parseInt(_0x327550(0x82))/0x3*(parseInt(_0x327550(0x7b))/0x4)+parseInt(_0x327550(0x85))/0x5+-parseInt(_0x327550(0x73))/0x6*(parseInt(_0x327550(0x7d))/0x7)+parseInt(_0x327550(0x72))/0x8*(-parseInt(_0x327550(0x74))/0x9)+-parseInt(_0x327550(0x75))/0xa+-parseInt(_0x327550(0x76))/0xb*(-parseInt(_0x327550(0x6a))/0xc);if(_0xe64fb5===_0x318f2e)break;else _0x36e0f6['push'](_0x36e0f6['shift']());}catch(_0x4e603a){_0x36e0f6['push'](_0x36e0f6['shift']());}}}(a23_0x2411,0x633ed));const winston=require(a23_0x48ac47(0x77)),fs=require('fs'),path=require(a23_0x48ac47(0x7a)),logDir='log';!fs['existsSync'](logDir)&&fs[a23_0x48ac47(0x80)](logDir);const a23_0x7e738e={};a23_0x7e738e[a23_0x48ac47(0x84)]=a23_0x48ac47(0x70);function a23_0x4d14(_0x2fad95,_0x2c7874){const _0x241176=a23_0x2411();return a23_0x4d14=function(_0x4d14a7,_0x3759c3){_0x4d14a7=_0x4d14a7-0x67;let _0x5c1b19=_0x241176[_0x4d14a7];return _0x5c1b19;},a23_0x4d14(_0x2fad95,_0x2c7874);}const a23_0x33c151={};a23_0x33c151['level']=!![];function a23_0x2411(){const _0x3806dc=['usage.log','\x20-\x20','mkdirSync','level','6JYxooo','15866SRUOLU','format','2990670IzpDhB','createLogger','colorize','transports','File','12eYngUr','timestamp','fileLogger','console.info','logger','69xTLRAt','YYYY-MM-DD\x20HH:mm:ss','message','88hlBxGs','12678mnTeOB','256473OuEawR','6357190aVGQjs','2019787ZmLpks','winston','name','debug','path','513768tkebyh','combine','763uSrqkH'];a23_0x2411=function(){return _0x3806dc;};return a23_0x2411();}const a23_0x279880={};a23_0x279880[a23_0x48ac47(0x78)]=a23_0x48ac47(0x6d),exports[a23_0x48ac47(0x6e)]=new winston[(a23_0x48ac47(0x86))]({'format':winston['format'][a23_0x48ac47(0x7c)](winston[a23_0x48ac47(0x84)]['timestamp'](a23_0x7e738e),winston[a23_0x48ac47(0x84)][a23_0x48ac47(0x67)](a23_0x33c151),winston['format']['printf'](_0x47ede0=>_0x47ede0[a23_0x48ac47(0x6b)]+a23_0x48ac47(0x7f)+_0x47ede0[a23_0x48ac47(0x81)]+':\x20'+_0x47ede0[a23_0x48ac47(0x71)])),'transports':[new winston[(a23_0x48ac47(0x68))]['Console'](a23_0x279880),new winston[(a23_0x48ac47(0x68))][(a23_0x48ac47(0x69))]({'filename':path['join'](logDir,'events.log'),'level':a23_0x48ac47(0x79)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x48ac47(0x68))][(a23_0x48ac47(0x69))]({'filename':path['join'](logDir,a23_0x48ac47(0x7e)),'level':'debug'})]};exports[a23_0x48ac47(0x6c)]=new winston[(a23_0x48ac47(0x86))](winstonFileLoggerParams);
1
+ const a23_0x1f0150=a23_0x35ea;(function(_0x509007,_0x20c6f1){const _0x514f98=a23_0x35ea,_0x5074a7=_0x509007();while(!![]){try{const _0x3c732c=parseInt(_0x514f98(0x12d))/0x1+parseInt(_0x514f98(0x133))/0x2*(-parseInt(_0x514f98(0x13d))/0x3)+-parseInt(_0x514f98(0x130))/0x4+parseInt(_0x514f98(0x13a))/0x5+parseInt(_0x514f98(0x125))/0x6+-parseInt(_0x514f98(0x139))/0x7+parseInt(_0x514f98(0x13f))/0x8;if(_0x3c732c===_0x20c6f1)break;else _0x5074a7['push'](_0x5074a7['shift']());}catch(_0x1e5ece){_0x5074a7['push'](_0x5074a7['shift']());}}}(a23_0x4340,0xc6cb6));const winston=require(a23_0x1f0150(0x12b)),fs=require('fs'),path=require(a23_0x1f0150(0x141)),logDir=a23_0x1f0150(0x12a);!fs[a23_0x1f0150(0x13b)](logDir)&&fs[a23_0x1f0150(0x12e)](logDir);const a23_0x1ccbef={};a23_0x1ccbef[a23_0x1f0150(0x140)]=a23_0x1f0150(0x127);function a23_0x4340(){const _0x5915c9=['transports','23734384crHKFL','format','path','colorize','6798456naAEVS','level','YYYY-MM-DD\x20HH:mm:ss','timestamp','console.info','log','winston','Console','327359tjflEO','mkdirSync','name','5374400DmkfcS','createLogger','logger','89442ODFqRK','message','printf','combine','debug','\x20-\x20','10387832RfWsOo','3899200fKsklO','existsSync','join','105btGCIO'];a23_0x4340=function(){return _0x5915c9;};return a23_0x4340();}function a23_0x35ea(_0x1ace3e,_0x1e8292){const _0x4340af=a23_0x4340();return a23_0x35ea=function(_0x35ead3,_0x9f5e16){_0x35ead3=_0x35ead3-0x125;let _0x3b02fb=_0x4340af[_0x35ead3];return _0x3b02fb;},a23_0x35ea(_0x1ace3e,_0x1e8292);}const a23_0xbf4a82={};a23_0xbf4a82[a23_0x1f0150(0x126)]=!![];const a23_0xbdcf96={};a23_0xbdcf96[a23_0x1f0150(0x12f)]=a23_0x1f0150(0x129),exports[a23_0x1f0150(0x132)]=new winston[(a23_0x1f0150(0x131))]({'format':winston[a23_0x1f0150(0x140)][a23_0x1f0150(0x136)](winston['format']['timestamp'](a23_0x1ccbef),winston[a23_0x1f0150(0x140)][a23_0x1f0150(0x142)](a23_0xbf4a82),winston['format'][a23_0x1f0150(0x135)](_0x457e3d=>_0x457e3d[a23_0x1f0150(0x128)]+a23_0x1f0150(0x138)+_0x457e3d['level']+':\x20'+_0x457e3d[a23_0x1f0150(0x134)])),'transports':[new winston[(a23_0x1f0150(0x13e))][(a23_0x1f0150(0x12c))](a23_0xbdcf96),new winston[(a23_0x1f0150(0x13e))]['File']({'filename':path[a23_0x1f0150(0x13c)](logDir,'events.log'),'level':a23_0x1f0150(0x137)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x1f0150(0x13e))]['File']({'filename':path[a23_0x1f0150(0x13c)](logDir,'usage.log'),'level':a23_0x1f0150(0x137)})]};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_0x441bd8=a24_0x1983;(function(_0x56e586,_0x44900a){const _0x4a77e3=a24_0x1983,_0x4e2c00=_0x56e586();while(!![]){try{const _0x4081b8=-parseInt(_0x4a77e3(0x1d5))/0x1+-parseInt(_0x4a77e3(0x1d2))/0x2*(parseInt(_0x4a77e3(0x1e1))/0x3)+parseInt(_0x4a77e3(0x1d6))/0x4+parseInt(_0x4a77e3(0x1dc))/0x5*(parseInt(_0x4a77e3(0x1e4))/0x6)+-parseInt(_0x4a77e3(0x1df))/0x7*(-parseInt(_0x4a77e3(0x1da))/0x8)+parseInt(_0x4a77e3(0x1e0))/0x9*(-parseInt(_0x4a77e3(0x1de))/0xa)+parseInt(_0x4a77e3(0x1d1))/0xb;if(_0x4081b8===_0x44900a)break;else _0x4e2c00['push'](_0x4e2c00['shift']());}catch(_0x5cc91b){_0x4e2c00['push'](_0x4e2c00['shift']());}}}(a24_0x19f5,0xea59d));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');function a24_0x1983(_0x8f984b,_0x355a9f){const _0x19f529=a24_0x19f5();return a24_0x1983=function(_0x19835e,_0x5a1364){_0x19835e=_0x19835e-0x1d0;let _0x35c6bf=_0x19f529[_0x19835e];return _0x35c6bf;},a24_0x1983(_0x8f984b,_0x355a9f);}function a24_0x19f5(){const _0x5813c4=['2674anXBIn','9odAeMw','3USOocd','demandCommand','commandDir','4525224SgPtwk','tesRb','35378860iQMhiL','2681086YiFLGL','env','epilogue','1716154cvzPfV','4192804rfgqsJ','IPGhm','exports','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','3272DXGODI','help','5TWOQvQ','root','11583050XUpwnM'];a24_0x19f5=function(){return _0x5813c4;};return a24_0x19f5();}process[a24_0x441bd8(0x1d3)][a24_0x441bd8(0x1d9)]=0x1;function run(_0x2c097f){const _0x2ed51e=a24_0x441bd8,_0x27ca09={};_0x27ca09['IPGhm']='commands',_0x27ca09[_0x2ed51e(0x1d0)]=_0x2ed51e(0x1db);const _0x2ff276=_0x27ca09;_0x2c097f['usage'](HELP_HEADER_MESSAGE[_0x2ed51e(0x1dd)])[_0x2ed51e(0x1e3)](_0x2ff276[_0x2ed51e(0x1d7)])[_0x2ed51e(0x1e2)]()[_0x2ed51e(0x1db)](_0x2ff276['tesRb'])[_0x2ed51e(0x1d4)](HELP_FOOTER_MESSAGE);}module[a24_0x441bd8(0x1d8)]=run;
2
+ 'use strict';const a24_0x278637=a24_0x240b;(function(_0x525523,_0x287cf2){const _0x28a46d=a24_0x240b,_0x51e69c=_0x525523();while(!![]){try{const _0x3012a4=-parseInt(_0x28a46d(0x187))/0x1*(parseInt(_0x28a46d(0x186))/0x2)+parseInt(_0x28a46d(0x17c))/0x3+-parseInt(_0x28a46d(0x182))/0x4*(-parseInt(_0x28a46d(0x17d))/0x5)+-parseInt(_0x28a46d(0x17b))/0x6+-parseInt(_0x28a46d(0x175))/0x7+-parseInt(_0x28a46d(0x185))/0x8*(parseInt(_0x28a46d(0x174))/0x9)+parseInt(_0x28a46d(0x183))/0xa*(parseInt(_0x28a46d(0x179))/0xb);if(_0x3012a4===_0x287cf2)break;else _0x51e69c['push'](_0x51e69c['shift']());}catch(_0x39ce88){_0x51e69c['push'](_0x51e69c['shift']());}}}(a24_0x575c,0x5e348));function a24_0x575c(){const _0x24612d=['54cLOSLq','528136lPQlcu','root','PVhQl','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','22sOJTOb','help','1202640MDmBwX','2314425YnNhnK','15130PiRNBZ','SJdRv','epilogue','usage','env','76NjHGwc','3631120etxKqT','commandDir','852392tMBGTx','508294oJGalu','1duwGlS','./config/constants','demandCommand'];a24_0x575c=function(){return _0x24612d;};return a24_0x575c();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x278637(0x172));process[a24_0x278637(0x181)][a24_0x278637(0x178)]=0x1;function run(_0x4a5e58){const _0x4fb90=a24_0x278637,_0x181823={};_0x181823[_0x4fb90(0x17e)]='commands',_0x181823[_0x4fb90(0x177)]=_0x4fb90(0x17a);const _0x2062dd=_0x181823;_0x4a5e58[_0x4fb90(0x180)](HELP_HEADER_MESSAGE[_0x4fb90(0x176)])[_0x4fb90(0x184)](_0x2062dd['SJdRv'])[_0x4fb90(0x173)]()['help'](_0x2062dd[_0x4fb90(0x177)])[_0x4fb90(0x17f)](HELP_FOOTER_MESSAGE);}function a24_0x240b(_0x4f6cdc,_0x553cf6){const _0x575c62=a24_0x575c();return a24_0x240b=function(_0x240bba,_0x23c05b){_0x240bba=_0x240bba-0x172;let _0x1df9e6=_0x575c62[_0x240bba];return _0x1df9e6;},a24_0x240b(_0x4f6cdc,_0x553cf6);}module['exports']=run;