browserstack-node-sdk 1.36.1 → 1.36.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 (137) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  60. package/src/bin/jest/jest.setup.js +1 -1
  61. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  62. package/src/bin/jest/test-observability/helper.js +1 -1
  63. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  64. package/src/bin/jest/test-observability/test-details.js +1 -1
  65. package/src/bin/jest/test_before.setup.js +1 -1
  66. package/src/bin/launcher/launcher.js +1 -1
  67. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  68. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  69. package/src/bin/mocha/command.js +1 -1
  70. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  71. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  72. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  73. package/src/bin/mocha/test.setup.js +1 -1
  74. package/src/bin/nightwatch/command.js +1 -1
  75. package/src/bin/playwright/accessibility-helper.js +1 -1
  76. package/src/bin/playwright/command.js +1 -1
  77. package/src/bin/playwright/globalSetup.js +1 -1
  78. package/src/bin/playwright/mock-process.js +1 -1
  79. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  80. package/src/bin/playwright/patches.js +1 -1
  81. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  82. package/src/bin/playwright/reporter/reporter.js +1 -1
  83. package/src/bin/playwright/reporter/test-details.js +1 -1
  84. package/src/bin/playwright/sessionDetails.js +1 -1
  85. package/src/bin/runner.js +1 -1
  86. package/src/bin/setup.js +1 -1
  87. package/src/bin/test-runner/index.js +1 -1
  88. package/src/bin/test-runner/runTest.js +1 -1
  89. package/src/bin/test-runner/testWorker.js +1 -1
  90. package/src/bin/utils/constants.js +1 -1
  91. package/src/bin/utils/log4jsAppender.js +1 -1
  92. package/src/bin/utils/logPatcher.js +1 -1
  93. package/src/bin/utils/logReportingAPI.js +1 -1
  94. package/src/bin/vanilla-js/command.js +1 -1
  95. package/src/browserStackSdk.js +1 -1
  96. package/src/helpers/BrowserStackSetup.js +1 -1
  97. package/src/helpers/accessibility-automation/constants.js +1 -1
  98. package/src/helpers/accessibility-automation/helper.js +1 -1
  99. package/src/helpers/accessibility-automation/scripts.js +1 -1
  100. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  101. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  102. package/src/helpers/ats/constants.js +1 -1
  103. package/src/helpers/ats/helper.js +1 -1
  104. package/src/helpers/capsMapping.js +1 -1
  105. package/src/helpers/central-scanner/constants.js +1 -1
  106. package/src/helpers/central-scanner/helpers.js +1 -1
  107. package/src/helpers/globals.js +1 -1
  108. package/src/helpers/helper.js +1 -1
  109. package/src/helpers/logger.js +1 -1
  110. package/src/helpers/metadata.js +1 -1
  111. package/src/helpers/patchHelper.js +1 -1
  112. package/src/helpers/patchHelpers.js +1 -1
  113. package/src/helpers/percy/Percy.js +1 -1
  114. package/src/helpers/percy/PercyBinary.js +1 -1
  115. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  116. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  117. package/src/helpers/percy/PercySDK.js +1 -1
  118. package/src/helpers/percy/index.js +1 -1
  119. package/src/helpers/percy/utils.js +1 -1
  120. package/src/helpers/performance/constants.js +1 -1
  121. package/src/helpers/performance/performance-tester.js +1 -1
  122. package/src/helpers/processHelper.js +1 -1
  123. package/src/helpers/request-spy.js +1 -1
  124. package/src/helpers/setKeepAlive.js +1 -1
  125. package/src/helpers/test-observability/constants.js +1 -1
  126. package/src/helpers/test-observability/error-handler.js +1 -1
  127. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  128. package/src/helpers/test-observability/sessionHandler.js +1 -1
  129. package/src/helpers/test-observability/utils.js +1 -1
  130. package/src/helpers/testhub/constants.js +1 -1
  131. package/src/helpers/testhub/testhubHandler.js +1 -1
  132. package/src/helpers/testhub/utils.js +1 -1
  133. package/src/helpers/timeoutPromise.js +1 -1
  134. package/src/helpers/utilities.js +1 -1
  135. package/src/helpers/w3cMapping.js +1 -1
  136. package/src/hubAllocationMethods.js +1 -1
  137. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x5719ec=a15_0x21da;(function(_0x31ae22,_0x4855ab){const _0x16ee5f=a15_0x21da,_0x3ac697=_0x31ae22();while(!![]){try{const _0x5152ca=-parseInt(_0x16ee5f(0x10c))/0x1+parseInt(_0x16ee5f(0x119))/0x2*(-parseInt(_0x16ee5f(0x12f))/0x3)+parseInt(_0x16ee5f(0x10e))/0x4*(-parseInt(_0x16ee5f(0x11f))/0x5)+-parseInt(_0x16ee5f(0x11c))/0x6*(parseInt(_0x16ee5f(0x106))/0x7)+parseInt(_0x16ee5f(0x128))/0x8+parseInt(_0x16ee5f(0x12e))/0x9*(-parseInt(_0x16ee5f(0x142))/0xa)+parseInt(_0x16ee5f(0x126))/0xb;if(_0x5152ca===_0x4855ab)break;else _0x3ac697['push'](_0x3ac697['shift']());}catch(_0x61db7e){_0x3ac697['push'](_0x3ac697['shift']());}}}(a15_0x467e,0xd0cc0));const fs=require('fs'),got=require(a15_0x5719ec(0x10d)),{table}=require(a15_0x5719ec(0x11e)),{v4:uuidv4}=require(a15_0x5719ec(0x155)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x5719ec(0x15c)),{getCredentialsPath,getAuthHeader}=require(a15_0x5719ec(0x137)),{sendInstrumentationEvent}=require(a15_0x5719ec(0x109));function a15_0x21da(_0x516d27,_0x4dc93f){const _0x467ec5=a15_0x467e();return a15_0x21da=function(_0x21daf3,_0x176df5){_0x21daf3=_0x21daf3-0x101;let _0x51ea67=_0x467ec5[_0x21daf3];return _0x51ea67;},a15_0x21da(_0x516d27,_0x4dc93f);}function a15_0x467e(){const _0xa464fa=['unauthorised','queued','HtFJC','OMnHk','epilogue','statusCode','../../config/constants','bstackUsername','clusterName','grids','QqcaN','beAaC','stringify','readFileSync','35HtsMQM','TaScx','running','../../utils/instrumentationUtils','list','qDVLM','1526197kkQxyq','got','219920FcoWyZ','sbDai','name','type','options','ZbUgw','grid-name','/packages/cli/get-grids','okAAO','LBnTi','parse','52926zqfiIz','eLZiu','fYdRC','1180260ViyVus','init-not-called','table','80TkYgNe','https://','ukvQV','agRcM','qkwgl','grid','ksMNB','68116378mWfKMx','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','10584064YfhgXO','body','boolean','handler','ewTDt','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','243uwgupv','183IGpptl','HeAkC','GZaWF','Browserstack','PmgVR','UJren','ezqCt','/packages/cli/get-all-grids','../../utils/utilityMethods','existsSync','push','INFO','hjbyn','username','password','all-grids','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','allGrids','description','613520XPDpTQ','grid-id','cluster-name','atLsB','exit','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','log','sRDhy','error','command','GET','list-grids-called','server-error','ERROR','status','unknown-error','LnAaq','usage','desc','uuid'];a15_0x467e=function(){return _0xa464fa;};return a15_0x467e();}exports[a15_0x5719ec(0x14b)]=a15_0x5719ec(0x101),exports[a15_0x5719ec(0x154)]=a15_0x5719ec(0x12d),exports['builder']=function(_0x40ecfd){const _0x5c42e5=a15_0x5719ec,_0x45dcd7={};_0x45dcd7[_0x5c42e5(0x11a)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x45dcd7[_0x5c42e5(0x107)]=_0x5c42e5(0x12a),_0x45dcd7['sRDhy']='help';const _0x39b00c=_0x45dcd7,_0x5163ff={};_0x5163ff[_0x5c42e5(0x141)]=_0x39b00c[_0x5c42e5(0x11a)],_0x5163ff[_0x5c42e5(0x111)]=_0x39b00c[_0x5c42e5(0x107)];const _0x2fe7c8={};return _0x2fe7c8[_0x5c42e5(0x13e)]=_0x5163ff,_0x40ecfd[_0x5c42e5(0x153)](HELP_HEADER_MESSAGE[_0x5c42e5(0x10a)][_0x5c42e5(0x124)])[_0x5c42e5(0x15a)](HELP_FOOTER_MESSAGE)[_0x5c42e5(0x112)](_0x2fe7c8)['help'](_0x39b00c[_0x5c42e5(0x149)])['argv'];},exports[a15_0x5719ec(0x12b)]=async function(_0xe06d3a){const _0x317510=a15_0x5719ec,_0x3f2c15={'LBnTi':function(_0x3a9132){return _0x3a9132();},'ukvQV':_0x317510(0x147),'ewTDt':function(_0x59729a,_0x27024b,_0xb8cc9b,_0x4d921f,_0x5c5e48,_0x1fbf75,_0x266f59){return _0x59729a(_0x27024b,_0xb8cc9b,_0x4d921f,_0x5c5e48,_0x1fbf75,_0x266f59);},'qDVLM':_0x317510(0x14d),'LsYFf':_0x317510(0x11d),'UjUMk':function(_0x286f29){return _0x286f29();},'HtFJC':_0x317510(0x14c),'beAaC':function(_0xe5e919,_0x498504,_0x43edd5){return _0xe5e919(_0x498504,_0x43edd5);},'sbDai':function(_0x26cf49,_0x4e4883,_0x2c1452){return _0x26cf49(_0x4e4883,_0x2c1452);},'hjbyn':function(_0x58d8c2,_0x213b2c){return _0x58d8c2!==_0x213b2c;},'OMnHk':function(_0x38bccb,_0x57b5f9){return _0x38bccb===_0x57b5f9;},'HeAkC':'\x0aFound\x20the\x20following\x20grids:\x0a','ezqCt':_0x317510(0x143),'PmgVR':_0x317510(0x114),'UJren':_0x317510(0x150),'QqcaN':'running','ZbUgw':_0x317510(0x157),'GZaWF':_0x317510(0x144),'fYdRC':function(_0x10e211,_0x145617){return _0x10e211(_0x145617);},'atLsB':_0x317510(0x127),'ksMNB':function(_0x293ab3,_0x29d3cd,_0x58c853,_0x1d9cdc,_0x29697f,_0x33bb78,_0x4d59a0){return _0x293ab3(_0x29d3cd,_0x58c853,_0x1d9cdc,_0x29697f,_0x33bb78,_0x4d59a0);},'fykaV':_0x317510(0x156),'agRcM':function(_0x164f8a,_0x176a7e,_0x3a43f2,_0x476b26,_0x544efb,_0x439451,_0x3caa4d){return _0x164f8a(_0x176a7e,_0x3a43f2,_0x476b26,_0x544efb,_0x439451,_0x3caa4d);},'LnAaq':_0x317510(0x14e),'okAAO':function(_0x14cec9,_0x50fadc,_0x385ee1,_0x3d1951,_0x3f4bdc,_0x46ad17,_0x1c401a){return _0x14cec9(_0x50fadc,_0x385ee1,_0x3d1951,_0x3f4bdc,_0x46ad17,_0x1c401a);},'qkwgl':_0x317510(0x151)};try{global_registry['requestId']=_0x3f2c15[_0x317510(0x117)](uuidv4);!fs[_0x317510(0x138)](_0x3f2c15[_0x317510(0x117)](getCredentialsPath))&&(console[_0x317510(0x14a)](_0x3f2c15[_0x317510(0x121)]),await _0x3f2c15[_0x317510(0x12c)](sendInstrumentationEvent,_0xe06d3a,_0x3f2c15['qDVLM'],messageTypes[_0x317510(0x14f)],_0x3f2c15['LsYFf'],null,_0xe06d3a),process[_0x317510(0x146)](0x1));const _0x2982d0=JSON[_0x317510(0x118)](fs[_0x317510(0x105)](_0x3f2c15['UjUMk'](getCredentialsPath)));let _0x398c58=_0x317510(0x120)+AG_API_URL+_0x317510(0x115);_0xe06d3a[_0x317510(0x140)]&&(_0x398c58=_0x317510(0x120)+AG_API_URL+_0x317510(0x136));const _0x57f8e4={'method':_0x3f2c15[_0x317510(0x158)],'headers':_0x3f2c15[_0x317510(0x103)](getAuthHeader,_0x2982d0[_0x317510(0x132)]['username'],_0x2982d0[_0x317510(0x132)][_0x317510(0x13d)]),'throwHttpErrors':![]};global_registry[_0x317510(0x15d)]=_0x2982d0['Browserstack'][_0x317510(0x13c)],global_registry['bstackAccesskey']=_0x2982d0['Browserstack'][_0x317510(0x13d)],_0x3f2c15[_0x317510(0x12c)](sendInstrumentationEvent,_0xe06d3a,_0x3f2c15[_0x317510(0x10b)],messageTypes[_0x317510(0x13a)],null,null,_0xe06d3a);const _0x969975=await _0x3f2c15[_0x317510(0x10f)](got,_0x398c58,_0x57f8e4);if(_0x3f2c15[_0x317510(0x13b)](_0x969975,null)&&_0x3f2c15[_0x317510(0x13b)](_0x969975,undefined)&&_0x3f2c15[_0x317510(0x159)](_0x969975['statusCode'],0xc8)){const _0x22642d=JSON[_0x317510(0x118)](_0x969975[_0x317510(0x129)]);console['log'](_0x3f2c15[_0x317510(0x130)]);const _0x2dbb49=[];_0x2dbb49['push']([_0x3f2c15[_0x317510(0x135)],_0x3f2c15[_0x317510(0x133)],_0x3f2c15[_0x317510(0x134)],_0x3f2c15[_0x317510(0x102)],_0x3f2c15[_0x317510(0x113)],_0x3f2c15[_0x317510(0x131)]]),_0x22642d['forEach'](_0x4d4e06=>{const _0x3c5cc3=_0x317510;_0x2dbb49[_0x3c5cc3(0x139)]([_0x4d4e06['id'],_0x4d4e06[_0x3c5cc3(0x110)],_0x4d4e06[_0x3c5cc3(0x150)],_0x4d4e06[_0x3c5cc3(0x108)],_0x4d4e06[_0x3c5cc3(0x157)],_0x4d4e06[_0x3c5cc3(0x15e)]]);}),console[_0x317510(0x148)](_0x3f2c15[_0x317510(0x11b)](table,_0x2dbb49)),process['exit'](0x0);}_0x3f2c15[_0x317510(0x159)](_0x969975[_0x317510(0x15b)],0x191)&&(console['error'](_0x3f2c15[_0x317510(0x145)]),await _0x3f2c15[_0x317510(0x125)](sendInstrumentationEvent,_0xe06d3a,_0x3f2c15[_0x317510(0x10b)],messageTypes[_0x317510(0x14f)],_0x3f2c15['fykaV'],null,_0xe06d3a),process['exit'](0x1)),console['error'](_0x317510(0x13f)+JSON[_0x317510(0x104)](_0x969975)),await _0x3f2c15[_0x317510(0x122)](sendInstrumentationEvent,_0xe06d3a,_0x3f2c15[_0x317510(0x10b)],messageTypes[_0x317510(0x14f)],_0x3f2c15[_0x317510(0x152)],_0x969975,_0xe06d3a),process[_0x317510(0x146)](0x1);}catch(_0x5b8bbf){console[_0x317510(0x14a)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x5b8bbf['stack']),await _0x3f2c15[_0x317510(0x116)](sendInstrumentationEvent,_0xe06d3a,_0x3f2c15['qDVLM'],messageTypes['ERROR'],_0x3f2c15[_0x317510(0x123)],_0x5b8bbf,_0xe06d3a),process[_0x317510(0x146)](0x1);}};
1
+ function a15_0x278a(){const _0x22555f=['iaKjD','unknown-error','ynXfY','MTLXn','trcSY','requestId','ERROR','2296464Osffsv','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','got','4861314xztdRP','QCjzq','ysXdj','grids','unauthorised','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','OwEpT','bstackUsername','stringify','stack','31390zdmFZv','table','body','vKwRs','https://','INFO','existsSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','bYOsK','8bROAAD','utuaa','status','YYLWY','228sxuoXS','grid-id','init-not-called','command','readFileSync','handler','Browserstack','cluster-name','gcKcF','zmaiA','220032KXseTr','desc','help','bstackAccesskey','ZJwHD','push','42tOJrmB','wLQWX','45436KaUPoo','grid','/packages/cli/get-grids','all-grids','102zRTJRE','argv','builder','121gRQwWe','uuid','usage','zPZrS','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','419910wghYGw','hmgwW','error','options','statusCode','GET','type','password','173981pIXCvf','running','log','Mqgpa','grid-name','../../config/constants','list','parse','exit','username','../../utils/utilityMethods'];a15_0x278a=function(){return _0x22555f;};return a15_0x278a();}const a15_0xc1adc5=a15_0x4ec5;function a15_0x4ec5(_0x5be16b,_0x281cde){const _0x278a6c=a15_0x278a();return a15_0x4ec5=function(_0x4ec5d5,_0xb4c187){_0x4ec5d5=_0x4ec5d5-0xf2;let _0xff232a=_0x278a6c[_0x4ec5d5];return _0xff232a;},a15_0x4ec5(_0x5be16b,_0x281cde);}(function(_0x5e3909,_0x239152){const _0x38510f=a15_0x4ec5,_0x219542=_0x5e3909();while(!![]){try{const _0x34194e=parseInt(_0x38510f(0x13d))/0x1*(-parseInt(_0x38510f(0x113))/0x2)+-parseInt(_0x38510f(0x12d))/0x3*(-parseInt(_0x38510f(0x129))/0x4)+parseInt(_0x38510f(0x10a))/0x5*(parseInt(_0x38510f(0x117))/0x6)+parseInt(_0x38510f(0x127))/0x7*(parseInt(_0x38510f(0x121))/0x8)+parseInt(_0x38510f(0x100))/0x9+-parseInt(_0x38510f(0x135))/0xa*(parseInt(_0x38510f(0x130))/0xb)+parseInt(_0x38510f(0xfd))/0xc;if(_0x34194e===_0x239152)break;else _0x219542['push'](_0x219542['shift']());}catch(_0x2b6581){_0x219542['push'](_0x219542['shift']());}}}(a15_0x278a,0x58bdf));const fs=require('fs'),got=require(a15_0xc1adc5(0xff)),{table}=require(a15_0xc1adc5(0x10b)),{v4:uuidv4}=require(a15_0xc1adc5(0x131)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0xc1adc5(0x142)),{getCredentialsPath,getAuthHeader}=require(a15_0xc1adc5(0xf5)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a15_0xc1adc5(0x11a)]=a15_0xc1adc5(0x103),exports[a15_0xc1adc5(0x122)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0xc1adc5(0x12f)]=function(_0x24731f){const _0x4254e3=a15_0xc1adc5,_0x1cc0c0={};_0x1cc0c0[_0x4254e3(0xf6)]=_0x4254e3(0x105),_0x1cc0c0[_0x4254e3(0x112)]='boolean',_0x1cc0c0[_0x4254e3(0x102)]=_0x4254e3(0x123);const _0x19d691=_0x1cc0c0,_0x4c3a6c={};_0x4c3a6c['description']=_0x19d691[_0x4254e3(0xf6)],_0x4c3a6c[_0x4254e3(0x13b)]=_0x19d691[_0x4254e3(0x112)];const _0x560347={};return _0x560347[_0x4254e3(0x12c)]=_0x4c3a6c,_0x24731f[_0x4254e3(0x132)](HELP_HEADER_MESSAGE[_0x4254e3(0x143)][_0x4254e3(0x12a)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4254e3(0x138)](_0x560347)[_0x4254e3(0x123)](_0x19d691[_0x4254e3(0x102)])[_0x4254e3(0x12e)];},exports[a15_0xc1adc5(0x11c)]=async function(_0x2f4f0f){const _0x107e5a=a15_0xc1adc5,_0x51d67e={'hmgwW':function(_0x4047e6){return _0x4047e6();},'AqILQ':_0x107e5a(0xfe),'vKwRs':function(_0x55453e,_0x57b886,_0x4fad0f,_0xdae82f,_0x58c373,_0xedf150,_0xaa5dd0){return _0x55453e(_0x57b886,_0x4fad0f,_0xdae82f,_0x58c373,_0xedf150,_0xaa5dd0);},'MTLXn':'list-grids-called','OwEpT':_0x107e5a(0x119),'sabje':_0x107e5a(0x13a),'ynXfY':function(_0x13a921,_0x5d30de,_0x372365){return _0x13a921(_0x5d30de,_0x372365);},'Mqgpa':function(_0x1fb4b8,_0x4a50b2,_0x417267,_0x134f7f,_0x31fef5,_0x211648,_0x5372f1){return _0x1fb4b8(_0x4a50b2,_0x417267,_0x134f7f,_0x31fef5,_0x211648,_0x5372f1);},'YYLWY':function(_0x40f91d,_0x155fb1){return _0x40f91d!==_0x155fb1;},'zPZrS':function(_0x1fcb7b,_0x47e457){return _0x1fcb7b===_0x47e457;},'pnSUx':'\x0aFound\x20the\x20following\x20grids:\x0a','wLQWX':_0x107e5a(0x118),'utuaa':_0x107e5a(0x141),'rzWbb':_0x107e5a(0x115),'zmaiA':_0x107e5a(0x13e),'gcKcF':'queued','ZJwHD':_0x107e5a(0x11e),'QCjzq':function(_0x18b7d3,_0x1792e7){return _0x18b7d3(_0x1792e7);},'uUsiP':_0x107e5a(0x111),'trcSY':_0x107e5a(0x104),'UynHS':'server-error','sSiKU':_0x107e5a(0xf7)};try{global_registry[_0x107e5a(0xfb)]=_0x51d67e['hmgwW'](uuidv4);!fs[_0x107e5a(0x110)](_0x51d67e[_0x107e5a(0x136)](getCredentialsPath))&&(console['error'](_0x51d67e['AqILQ']),await _0x51d67e[_0x107e5a(0x10d)](sendInstrumentationEvent,_0x2f4f0f,_0x51d67e[_0x107e5a(0xf9)],messageTypes[_0x107e5a(0xfc)],_0x51d67e[_0x107e5a(0x106)],null,_0x2f4f0f),process[_0x107e5a(0xf3)](0x1));const _0x2754b7=JSON[_0x107e5a(0xf2)](fs[_0x107e5a(0x11b)](_0x51d67e[_0x107e5a(0x136)](getCredentialsPath)));let _0x1dd599=_0x107e5a(0x10e)+AG_API_URL+_0x107e5a(0x12b);_0x2f4f0f['allGrids']&&(_0x1dd599='https://'+AG_API_URL+'/packages/cli/get-all-grids');const _0x33f21f={'method':_0x51d67e['sabje'],'headers':_0x51d67e['ynXfY'](getAuthHeader,_0x2754b7[_0x107e5a(0x11d)][_0x107e5a(0xf4)],_0x2754b7[_0x107e5a(0x11d)][_0x107e5a(0x13c)]),'throwHttpErrors':![]};global_registry[_0x107e5a(0x107)]=_0x2754b7['Browserstack'][_0x107e5a(0xf4)],global_registry[_0x107e5a(0x124)]=_0x2754b7[_0x107e5a(0x11d)][_0x107e5a(0x13c)],_0x51d67e[_0x107e5a(0x140)](sendInstrumentationEvent,_0x2f4f0f,_0x51d67e[_0x107e5a(0xf9)],messageTypes[_0x107e5a(0x10f)],null,null,_0x2f4f0f);const _0x267d0f=await _0x51d67e[_0x107e5a(0xf8)](got,_0x1dd599,_0x33f21f);if(_0x51d67e[_0x107e5a(0x116)](_0x267d0f,null)&&_0x51d67e[_0x107e5a(0x116)](_0x267d0f,undefined)&&_0x51d67e[_0x107e5a(0x133)](_0x267d0f[_0x107e5a(0x139)],0xc8)){const _0x42fd0c=JSON[_0x107e5a(0xf2)](_0x267d0f[_0x107e5a(0x10c)]);console['log'](_0x51d67e['pnSUx']);const _0x31896e=[];_0x31896e[_0x107e5a(0x126)]([_0x51d67e[_0x107e5a(0x128)],_0x51d67e[_0x107e5a(0x114)],_0x51d67e['rzWbb'],_0x51d67e[_0x107e5a(0x120)],_0x51d67e[_0x107e5a(0x11f)],_0x51d67e[_0x107e5a(0x125)]]),_0x42fd0c['forEach'](_0x453413=>{const _0x1b0a6d=_0x107e5a;_0x31896e[_0x1b0a6d(0x126)]([_0x453413['id'],_0x453413['name'],_0x453413['status'],_0x453413['running'],_0x453413['queued'],_0x453413['clusterName']]);}),console[_0x107e5a(0x13f)](_0x51d67e[_0x107e5a(0x101)](table,_0x31896e)),process[_0x107e5a(0xf3)](0x0);}_0x51d67e[_0x107e5a(0x133)](_0x267d0f[_0x107e5a(0x139)],0x191)&&(console[_0x107e5a(0x137)](_0x51d67e['uUsiP']),await _0x51d67e['Mqgpa'](sendInstrumentationEvent,_0x2f4f0f,_0x51d67e[_0x107e5a(0xf9)],messageTypes[_0x107e5a(0xfc)],_0x51d67e[_0x107e5a(0xfa)],null,_0x2f4f0f),process[_0x107e5a(0xf3)](0x1)),console[_0x107e5a(0x137)](_0x107e5a(0x134)+JSON[_0x107e5a(0x108)](_0x267d0f)),await _0x51d67e[_0x107e5a(0x10d)](sendInstrumentationEvent,_0x2f4f0f,_0x51d67e['MTLXn'],messageTypes['ERROR'],_0x51d67e['UynHS'],_0x267d0f,_0x2f4f0f),process[_0x107e5a(0xf3)](0x1);}catch(_0x4e55a7){console['error']('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x4e55a7[_0x107e5a(0x109)]),await _0x51d67e[_0x107e5a(0x140)](sendInstrumentationEvent,_0x2f4f0f,_0x51d67e[_0x107e5a(0xf9)],messageTypes[_0x107e5a(0xfc)],_0x51d67e['sSiKU'],_0x4e55a7,_0x2f4f0f),process['exit'](0x1);}};
@@ -1 +1 @@
1
- function a16_0x12eb(){const _0x32bc54=['58826OPwgbo','15640965uzzpxT','demandCommand','1764995gBsdJU','pre_check','help','3979056BBImqw','pre-check','precheck_commands','desc','520702TDyczk','xXiKx','3226011zyQWOk','../config/constants','command','34PpccOc','2019210vUJaBP','8gRXbVV','PhQmD','builder','epilogue','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','commandDir'];a16_0x12eb=function(){return _0x32bc54;};return a16_0x12eb();}function a16_0xaaca(_0x394d77,_0x5285f8){const _0x12eb41=a16_0x12eb();return a16_0xaaca=function(_0xaaca0c,_0x249997){_0xaaca0c=_0xaaca0c-0xd3;let _0x1c1d7b=_0x12eb41[_0xaaca0c];return _0x1c1d7b;},a16_0xaaca(_0x394d77,_0x5285f8);}const a16_0x486503=a16_0xaaca;(function(_0x3e0c39,_0x43ef38){const _0x1f06cf=a16_0xaaca,_0x1a9aa1=_0x3e0c39();while(!![]){try{const _0x2459fc=parseInt(_0x1f06cf(0xe3))/0x1*(parseInt(_0x1f06cf(0xdb))/0x2)+parseInt(_0x1f06cf(0xd8))/0x3+parseInt(_0x1f06cf(0xe9))/0x4+-parseInt(_0x1f06cf(0xe6))/0x5+-parseInt(_0x1f06cf(0xdc))/0x6+-parseInt(_0x1f06cf(0xd6))/0x7*(parseInt(_0x1f06cf(0xdd))/0x8)+-parseInt(_0x1f06cf(0xe4))/0x9;if(_0x2459fc===_0x43ef38)break;else _0x1a9aa1['push'](_0x1a9aa1['shift']());}catch(_0x30570c){_0x1a9aa1['push'](_0x1a9aa1['shift']());}}}(a16_0x12eb,0x8ac12));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x486503(0xd9));exports[a16_0x486503(0xda)]=a16_0x486503(0xd3),exports[a16_0x486503(0xd5)]=a16_0x486503(0xe1),exports[a16_0x486503(0xdf)]=function(_0x5a4b6b){const _0x321b5a=a16_0x486503,_0x33e521={};_0x33e521['PhQmD']=_0x321b5a(0xd4),_0x33e521[_0x321b5a(0xd7)]=_0x321b5a(0xe8);const _0x167d9f=_0x33e521;return _0x5a4b6b['usage'](HELP_HEADER_MESSAGE[_0x321b5a(0xe7)])[_0x321b5a(0xe0)](HELP_FOOTER_MESSAGE)[_0x321b5a(0xe2)](_0x167d9f[_0x321b5a(0xde)])[_0x321b5a(0xe5)]()['recommendCommands']()['strict']()[_0x321b5a(0xe8)](_0x167d9f[_0x321b5a(0xd7)]);},exports['handler']=function(_0x297a52){};
1
+ const a16_0x2ae34c=a16_0x4fd7;(function(_0x8ea2fe,_0x25fcd1){const _0x4eab67=a16_0x4fd7,_0x42c475=_0x8ea2fe();while(!![]){try{const _0x117b4a=parseInt(_0x4eab67(0x161))/0x1+-parseInt(_0x4eab67(0x152))/0x2+parseInt(_0x4eab67(0x160))/0x3+parseInt(_0x4eab67(0x157))/0x4*(-parseInt(_0x4eab67(0x153))/0x5)+parseInt(_0x4eab67(0x168))/0x6+parseInt(_0x4eab67(0x15d))/0x7+-parseInt(_0x4eab67(0x15c))/0x8*(parseInt(_0x4eab67(0x167))/0x9);if(_0x117b4a===_0x25fcd1)break;else _0x42c475['push'](_0x42c475['shift']());}catch(_0x9f1a02){_0x42c475['push'](_0x42c475['shift']());}}}(a16_0x2436,0x7574b));function a16_0x4fd7(_0x2a1ab3,_0x2fb120){const _0x2436ec=a16_0x2436();return a16_0x4fd7=function(_0x4fd71d,_0x101cd2){_0x4fd71d=_0x4fd71d-0x150;let _0x58e921=_0x2436ec[_0x4fd71d];return _0x58e921;},a16_0x4fd7(_0x2a1ab3,_0x2fb120);}function a16_0x2436(){const _0x879568=['builder','help','../config/constants','strict','3365336pXTCwa','6472039Xbdbzx','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','handler','795597QVgujU','234614CTIBjO','eTQbx','usage','commandDir','command','demandCommand','9IODefx','519528LiChXb','epilogue','recommendCommands','614300uKIugJ','1510310RZKgQI','ELujp','pre-check','precheck_commands','4kqxOfP'];a16_0x2436=function(){return _0x879568;};return a16_0x2436();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x2ae34c(0x15a));exports[a16_0x2ae34c(0x165)]=a16_0x2ae34c(0x155),exports['desc']=a16_0x2ae34c(0x15e),exports[a16_0x2ae34c(0x158)]=function(_0x2d17a7){const _0x32d96c=a16_0x2ae34c,_0x24bc83={};_0x24bc83[_0x32d96c(0x154)]=_0x32d96c(0x156),_0x24bc83[_0x32d96c(0x162)]=_0x32d96c(0x159);const _0x2bf3e8=_0x24bc83;return _0x2d17a7[_0x32d96c(0x163)](HELP_HEADER_MESSAGE['pre_check'])[_0x32d96c(0x150)](HELP_FOOTER_MESSAGE)[_0x32d96c(0x164)](_0x2bf3e8[_0x32d96c(0x154)])[_0x32d96c(0x166)]()[_0x32d96c(0x151)]()[_0x32d96c(0x15b)]()[_0x32d96c(0x159)](_0x2bf3e8['eTQbx']);},exports[a16_0x2ae34c(0x15f)]=function(_0x5bd72e){};
@@ -1 +1 @@
1
- const a17_0x2f2b79=a17_0x418d;function a17_0x418d(_0x37f261,_0x30ac7a){const _0x172d8e=a17_0x172d();return a17_0x418d=function(_0x418d78,_0x54025b){_0x418d78=_0x418d78-0x76;let _0x232322=_0x172d8e[_0x418d78];return _0x232322;},a17_0x418d(_0x37f261,_0x30ac7a);}(function(_0x3ee715,_0x33c61f){const _0x1ea660=a17_0x418d,_0x2b412c=_0x3ee715();while(!![]){try{const _0x352c53=-parseInt(_0x1ea660(0xf4))/0x1+-parseInt(_0x1ea660(0x119))/0x2+-parseInt(_0x1ea660(0xe9))/0x3*(parseInt(_0x1ea660(0x78))/0x4)+parseInt(_0x1ea660(0xf9))/0x5*(-parseInt(_0x1ea660(0x8d))/0x6)+parseInt(_0x1ea660(0xd3))/0x7*(-parseInt(_0x1ea660(0xba))/0x8)+-parseInt(_0x1ea660(0x139))/0x9*(parseInt(_0x1ea660(0xa9))/0xa)+-parseInt(_0x1ea660(0x143))/0xb*(-parseInt(_0x1ea660(0xb0))/0xc);if(_0x352c53===_0x33c61f)break;else _0x2b412c['push'](_0x2b412c['shift']());}catch(_0x1dc88a){_0x2b412c['push'](_0x2b412c['shift']());}}}(a17_0x172d,0x45d33));function a17_0x172d(){const _0x26505a=['RMVSx','https://','desc','EpIAG','iSuuZ','ERROR','AFWln','reconnecting-websocket','../../cloudproviders/utils','is\x20already\x20present','AcemL','info','433326WMXYtd','../../utils/utilityMethods','Cluster\x20details\x0a-----------------------\x0a','BIsud','inEdQ','jiyna','oxTKf','Cluster\x20','zInpG','stack\x20trace\x20','got','EqQeL','rPFot','debug','INrrX','ETioP','npbNB','User\x20Access','gridProfile','grid\x20profile\x20flow\x20','INFO','bstackUsername','YDJRN','nBnvN','EVcTx','VjnhT','getUTCMinutes','exit','10lHVHXT','cloud-provider','\x20region\x20-\x20','Missing\x20required\x20arguments:\x20','PgfhY','<UsernamePlaceholder>','Jmpdp','65988PKMSTP','lEMOj','RKEef','will\x20be\x20created','wDOoC','QtKkD','utf-8','uuid','nQyZq','sEfjz','293144Srifik','toLowerCase','OIGoh','help','SSL\x20Configured','yuyUW','dLAYj','zLfeN','isTrialGridAccessible','RJYOx','zEdok','BEICy','region','type','xHdEV','data','replace','HdHlI','message','response','command','WebSocket','header','gUUpx','pjABe','70bMNvRG','pre-check-failed','THVoU','tOhoo','dIkxk','pre-check-cluster-args-not-passed','<PasswordPlaceholder>','pre-check','Browserstack','status','string','XbzsD','Error\x20Details:\x0a','init','../../utils/instrumentationUtils','dFFTZ','IoPnB','Status:\x20','options','JfpJs','N/A','credential-not-found','3ChhQTL','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','cloud-provider-not-supported','usage','VStnp','UtuDC','parse','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','split','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','../../config/constants','348055SESOBx','/packages/cli/get-all-grid-profiles','\x20\x20Code:\x20','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','tbpjE','35UJmcAo','OeVMB','clusterRegion','username','PKMqw','ABWjR','nFSlW','rzJgh','BkwRw','eQBbe','log/report_','sendEventToBackend','headers','error\x20stack\x20:\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','argv','Cluster\x20`','lvGwx','pre_check',']\x20status\x20:\x20','HrZZR','\x20data\x20:\x20','wnkQy','code','vwLTU','TkWZK','pinhh','NbvmP','\x20\x20Message:\x20','grid','ICNfx','Oygqa','287322bqWtAP','`\x20already\x20exists','mOCCH','clusterName','MQPyx','KcMNc','stack','HIpwB','bstackAccesskey','Message:\x20','getUTCHours','Aovqp','password','\x20\x20Stack:\x20','Pre-check\x20running\x20for\x20Cloud\x20-\x20','requestId','stringify','WxHkX','find','LOG','writeFileSync','yjnNs','pre-check-grid-profile-empty','`\x20,error\x20:\x20','grid-profile','peKsm','jKuRC','nFoLq','bIVub','connectionTimeout','cloudProvider','otCCx','4307652bbCHiv','tLjfP','dTysl','tRxji','WAoWb','HlDDa','cluster-check-failed-','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','cluster-name','Success','4741otCCvu','forEach','fHpuk','GET','CLOUD_PROVIDER','uJxVy','delay','mWcyt','Invalid\x20input.\x20grid\x20profiles:\x20','blUAC','isTls1_2_SUPPORTED','tIfxM','LIomP','ffRmt','authHeader','error','NTviw','readFileSync','fascx','Dmlqk','Whitelisted\x20browserstack','RSTUq','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','ipMOZ','length','.\x20Please\x20provide\x20all\x20required\x20arguments.','ozYHT','description','.txt','isCliToolInstalled','Failed\x20in\x20pre-check!\x20Error:\x20','push','XpfWy','Grid\x20profile\x20fetched\x20for\x20pre-check','Setting\x20cloud\x20provider\x20as\x20','getUTCFullYear','join','PnKrh','`\x20is\x20present\x20in\x20region\x20`','hTwgv','tykoi','UEMGt','TLSv1_2_client_method','../../utils/webSocketUtils','Failure','iXkJd','3|0|2|1|4','aGong','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','yLral','tsXcK','\x20error\x20:\x20','966980KURFTI','Rvrii','Pnvre','body','lPIuO','kQEzJ','getUTCMonth','MpaXg','pre-check-grid-called'];a17_0x172d=function(){return _0x26505a;};return a17_0x172d();}const fs=require('fs'),ws=require('ws'),got=require(a17_0x2f2b79(0x97)),{v4:uuidv4}=require(a17_0x2f2b79(0xb7)),ReconnectingWebSocket=require(a17_0x2f2b79(0x88)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x2f2b79(0x8e)),{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_0x2f2b79(0xf3)),{getCloudProviderObjectWithOutInit}=require(a17_0x2f2b79(0x89)),webSocketUtils=require(a17_0x2f2b79(0x16e)),{sendInstrumentationEvent}=require(a17_0x2f2b79(0xe1));exports[a17_0x2f2b79(0xce)]=a17_0x2f2b79(0x116),exports[a17_0x2f2b79(0x83)]=a17_0x2f2b79(0xf7),exports['builder']=function(_0x36d023){const _0x2c8586=a17_0x2f2b79,_0x2b33d9={};_0x2b33d9['bIVub']=_0x2c8586(0xea),_0x2b33d9[_0x2c8586(0xad)]=_0x2c8586(0xdd),_0x2b33d9[_0x2c8586(0x155)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x2b33d9['yjnNs']=_0x2c8586(0xf2),_0x2b33d9['BEICy']=_0x2c8586(0x107),_0x2b33d9[_0x2c8586(0xfe)]=_0x2c8586(0xbd);const _0x94cf73=_0x2b33d9,_0x43f926={};_0x43f926['description']=_0x94cf73[_0x2c8586(0x135)],_0x43f926[_0x2c8586(0xc7)]=_0x94cf73[_0x2c8586(0xad)];const _0x4f1e08={};_0x4f1e08[_0x2c8586(0x15e)]=_0x94cf73['fascx'],_0x4f1e08[_0x2c8586(0xc7)]=_0x94cf73[_0x2c8586(0xad)];const _0x2ff57d={};_0x2ff57d[_0x2c8586(0x15e)]=_0x94cf73[_0x2c8586(0x12e)],_0x2ff57d[_0x2c8586(0xc7)]=_0x94cf73['PgfhY'];const _0x17b3b1={};_0x17b3b1[_0x2c8586(0x15e)]=_0x94cf73[_0x2c8586(0xc5)],_0x17b3b1['type']=_0x94cf73[_0x2c8586(0xad)];const _0x2d7c7b={};return _0x2d7c7b[_0x2c8586(0x141)]=_0x43f926,_0x2d7c7b['cloud-provider']=_0x4f1e08,_0x2d7c7b[_0x2c8586(0xc6)]=_0x2ff57d,_0x2d7c7b['grid-profile']=_0x17b3b1,_0x36d023[_0x2c8586(0xec)](HELP_HEADER_MESSAGE[_0x2c8586(0x10b)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2c8586(0xe5)](_0x2d7c7b)[_0x2c8586(0xbd)](_0x94cf73[_0x2c8586(0xfe)])['argv'];};async function inputValidation(_0xecc7a8,_0x1c2b78){const _0xd3042a=a17_0x2f2b79,_0x5ec8e7={'RSTUq':_0xd3042a(0xdf),'YDJRN':_0xd3042a(0xe7),'JfpJs':_0xd3042a(0xaa),'BrQAv':_0xd3042a(0xc6),'PnKrh':_0xd3042a(0x152),'fHpuk':_0xd3042a(0x8a),'INrrX':_0xd3042a(0xb3),'pinhh':_0xd3042a(0xea),'tsXcK':_0xd3042a(0xdd),'VStnp':_0xd3042a(0x173),'jzQTp':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Aovqp':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','tZAYw':'help','uJxVy':function(_0xd9f583,_0x48f9cb){return _0xd9f583+_0x48f9cb;},'Pnvre':_0xd3042a(0x142),'BTPuy':_0xd3042a(0x16f),'jiyna':function(_0x34bbaf,_0x380cc0){return _0x34bbaf||_0x380cc0;},'HdHlI':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','zLfeN':function(_0x32fc3d,_0x190665){return _0x32fc3d!==_0x190665;},'uHWFo':'GEEkR','KcMNc':'xFRis','NbvmP':function(_0x44d0ba,_0x3f246e){return _0x44d0ba===_0x3f246e;},'otCCx':_0xd3042a(0x10d),'blUAC':'FpiJs','zHSTX':'wuAxq','ieKav':_0xd3042a(0x141),'ICNfx':'MqCqC','eQBbe':function(_0x552c6c,_0x411258){return _0x552c6c!==_0x411258;},'nFoLq':_0xd3042a(0x14a),'OeVMB':function(_0x98d890,_0x1d6cdd){return _0x98d890>_0x1d6cdd;},'dJoSi':_0xd3042a(0x91),'sEfjz':'ehCkU','yLral':function(_0x4f429f,_0x754ba0,_0x466b75,_0x1fc5c4,_0x137ebd,_0x5dfd4a,_0x34c199,_0x3c26bd){return _0x4f429f(_0x754ba0,_0x466b75,_0x1fc5c4,_0x137ebd,_0x5dfd4a,_0x34c199,_0x3c26bd);},'zbkdT':_0xd3042a(0x80),'RKEef':_0xd3042a(0xd8),'ipMOZ':_0xd3042a(0x16b),'wnkQy':_0xd3042a(0xd2),'iXkJd':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','EpIAG':function(_0x4a26bd,_0x30fccd,_0x355968,_0x30cc65,_0x176320,_0xb28d6a,_0x4e003b,_0x33173e){return _0x4a26bd(_0x30fccd,_0x355968,_0x30cc65,_0x176320,_0xb28d6a,_0x4e003b,_0x33173e);},'RJYOx':_0xd3042a(0xeb),'wDOoC':_0xd3042a(0xd7),'VjnhT':function(_0x35f824,_0x3adbbb){return _0x35f824===_0x3adbbb;},'Jmpdp':'brxlE','sUxpT':_0xd3042a(0x146),'dFFTZ':function(_0x28431a,_0x50174b,_0x1508c4){return _0x28431a(_0x50174b,_0x1508c4);},'THVoU':function(_0x2dfad0,_0x269293,_0x487f0e,_0x1eb7b2,_0x1b771a,_0x6a1b21){return _0x2dfad0(_0x269293,_0x487f0e,_0x1eb7b2,_0x1b771a,_0x6a1b21);},'Rvrii':_0xd3042a(0xda),'peKsm':_0xd3042a(0x131),'RMVSx':_0xd3042a(0x100),'JVIGw':_0xd3042a(0x11d),'HIpwB':function(_0x568066,_0x33520a){return _0x568066(_0x33520a);},'dLAYj':_0xd3042a(0x14f),'AcemL':function(_0x47f132,_0x5a1a57,_0xde2ae2,_0x255315,_0x1f702b,_0x3fdab1,_0x250ef2,_0x25768d){return _0x47f132(_0x5a1a57,_0xde2ae2,_0x255315,_0x1f702b,_0x3fdab1,_0x250ef2,_0x25768d);},'ozYHT':_0xd3042a(0x12f),'rPFot':_0xd3042a(0xb1),'aGong':_0xd3042a(0x14e),'kQEzJ':function(_0x28c686,_0x1d261d){return _0x28c686===_0x1d261d;},'nQyZq':_0xd3042a(0x85),'BIsud':_0xd3042a(0x164),'MpaXg':_0xd3042a(0xee),'reBJW':_0xd3042a(0x13a),'uwtUZ':function(_0x12e97d,_0x5c6934){return _0x12e97d!==_0x5c6934;},'BYEgE':_0xd3042a(0x16a),'oxTKf':function(_0x168f40,_0x1528a2,_0x417458,_0x462513,_0x4b6cf1,_0x18ebad,_0xf7668a,_0x100cce){return _0x168f40(_0x1528a2,_0x417458,_0x462513,_0x4b6cf1,_0x18ebad,_0xf7668a,_0x100cce);}};let _0x480d5a;try{if(_0x5ec8e7['zLfeN'](_0x5ec8e7['uHWFo'],_0x5ec8e7[_0xd3042a(0x11e)])){if(_0xecc7a8[_0xd3042a(0x11c)]||_0xecc7a8[_0xd3042a(0x137)]||_0xecc7a8[_0xd3042a(0xc6)]){if(_0x5ec8e7[_0xd3042a(0x114)](_0x5ec8e7[_0xd3042a(0x138)],_0x5ec8e7['otCCx'])){const _0x3ed52a=[];!_0xecc7a8[_0xd3042a(0x11c)]&&(_0x5ec8e7[_0xd3042a(0x114)](_0x5ec8e7[_0xd3042a(0x14c)],_0x5ec8e7['zHSTX'])?_0x501a47[_0xd3042a(0x8c)](_0xd3042a(0x109)+_0x5ea36d[_0xd3042a(0x11c)]+'`\x20already\x20exists'):_0x3ed52a['push'](_0x5ec8e7['ieKav']));;!_0xecc7a8['cloudProvider']&&(_0x5ec8e7['NbvmP'](_0x5ec8e7[_0xd3042a(0x117)],_0x5ec8e7[_0xd3042a(0x117)])?_0x3ed52a[_0xd3042a(0x162)](_0x5ec8e7[_0xd3042a(0xe6)]):_0x167ec2+='Cluster\x20'+_0x4d172f['clusterName']+_0xd3042a(0xf0));;!_0xecc7a8[_0xd3042a(0xc6)]&&(_0x5ec8e7[_0xd3042a(0x102)](_0x5ec8e7[_0xd3042a(0x134)],_0x5ec8e7[_0xd3042a(0x134)])?(_0x4156fc['info']('['+_0x82c866+_0xd3042a(0x10c)+_0x3460e0[_0xd3042a(0xdc)]+_0xd3042a(0x10e)+_0x4508c3[_0xd3042a(0xc9)]+_0xd3042a(0x77)+_0x16bd30['error']),_0x41314d[_0xd3042a(0x152)]&&_0x4e41aa[_0xd3042a(0x152)]('error\x20stack\x20:\x20'+_0x2ee8cc[_0xd3042a(0x152)][_0xd3042a(0x11f)])):_0x3ed52a[_0xd3042a(0x162)](_0x5ec8e7['BrQAv']));;_0x5ec8e7[_0xd3042a(0xfa)](_0x3ed52a[_0xd3042a(0x15b)],0x0)&&(_0x5ec8e7['zLfeN'](_0x5ec8e7['dJoSi'],_0x5ec8e7[_0xd3042a(0xb9)])?(_0x480d5a=_0xd3042a(0xac)+_0x3ed52a[_0xd3042a(0x167)](',\x20')+_0xd3042a(0x15c),await _0x5ec8e7[_0xd3042a(0x174)](reportToGalactusAndSendToEDS,_0xecc7a8,_0x1c2b78,_0x480d5a,messageTypes[_0xd3042a(0x86)],_0x5ec8e7['zbkdT'],_0x5ec8e7[_0xd3042a(0xb2)],_0x5ec8e7['PnKrh']),logger[_0xd3042a(0x152)](_0x480d5a),process[_0xd3042a(0xa8)](0x1)):(_0x10a9ca+=_0x5ec8e7[_0xd3042a(0x158)],_0x3021e1+=_0xd3042a(0x115)+(_0x5842c6['message']||_0x5ec8e7['YDJRN'])+'\x0a',_0x3f5db2+=_0xd3042a(0xf6)+(_0x2eb128[_0xd3042a(0x110)]||_0x5ec8e7[_0xd3042a(0xa3)])+'\x0a',_0x427065+=_0xd3042a(0x126)+(_0x328119[_0xd3042a(0x11f)]||_0x5ec8e7[_0xd3042a(0xa3)])+'\x0a')),!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0xecc7a8[_0xd3042a(0x137)][_0xd3042a(0xbb)]())&&(_0x5ec8e7[_0xd3042a(0xc1)](_0x5ec8e7[_0xd3042a(0x15a)],_0x5ec8e7[_0xd3042a(0x10f)])?(_0x480d5a=_0x5ec8e7[_0xd3042a(0x170)],await _0x5ec8e7[_0xd3042a(0x84)](reportToGalactusAndSendToEDS,_0xecc7a8,_0x1c2b78,_0x480d5a,messageTypes[_0xd3042a(0x86)],_0x5ec8e7['zbkdT'],_0x5ec8e7['RJYOx'],_0x5ec8e7[_0xd3042a(0x168)]),logger['error'](_0x480d5a),!_0xecc7a8[_0xd3042a(0x137)]&&(_0x5ec8e7['NbvmP'](_0x5ec8e7[_0xd3042a(0xb4)],_0x5ec8e7[_0xd3042a(0xb4)])?(logger['info'](_0xd3042a(0x165)+DEFAULT_CLUSTER_DETAILS[_0xd3042a(0x147)]+'\x20'),_0xecc7a8[_0xd3042a(0x137)]=DEFAULT_CLUSTER_DETAILS[_0xd3042a(0x147)]):_0x4a9fae['push'](_0x5ec8e7[_0xd3042a(0xe6)]))):_0x14017f['error']('error\x20stack\x20:\x20'+_0x2471b6[_0xd3042a(0x152)]['stack'])),global_registry[_0xd3042a(0x11c)]=_0xecc7a8[_0xd3042a(0x11c)],global_registry[_0xd3042a(0x137)]=_0xecc7a8['cloudProvider'],global_registry[_0xd3042a(0xfb)]=_0xecc7a8[_0xd3042a(0xc6)];}else _0x20afe5['push'](_0x5ec8e7['BrQAv']);}else{if(_0xecc7a8[_0xd3042a(0x9f)]){if(_0x5ec8e7[_0xd3042a(0xa6)](_0x5ec8e7[_0xd3042a(0xaf)],_0x5ec8e7[_0xd3042a(0xaf)])){global_registry[_0xd3042a(0x9f)]=_0xecc7a8['gridProfile'],logger['debug'](_0xd3042a(0xa0)+_0xecc7a8[_0xd3042a(0x9f)]);const _0x4086e2=_0xd3042a(0x82)+AG_API_URL+_0xd3042a(0xf5),_0x44dfb9={};_0x44dfb9['method']=_0x5ec8e7['sUxpT'],_0x44dfb9[_0xd3042a(0x105)]=global_registry[_0xd3042a(0x151)],_0x44dfb9['throwHttpErrors']=![];const _0x1c038d=_0x44dfb9,_0x1e8668=await _0x5ec8e7[_0xd3042a(0xe2)](got,_0x4086e2,_0x1c038d),_0xd40de7=await _0x5ec8e7[_0xd3042a(0xd5)](responseValidation,_0x1e8668,_0x5ec8e7[_0xd3042a(0x79)],_0x5ec8e7[_0xd3042a(0x132)],_0xecc7a8,_0x1c2b78);let _0x4db1a2={};if(_0x5ec8e7[_0xd3042a(0x114)](_0xd40de7,0xc8)){if(_0x5ec8e7[_0xd3042a(0xa6)](_0x5ec8e7[_0xd3042a(0x81)],_0x5ec8e7['JVIGw'])){const _0x206251={};_0x206251[_0xd3042a(0xc7)]=_0x4d8489[_0xd3042a(0x12c)],_0x206251[_0xd3042a(0xcc)]=_0x4f4724,_0x5e0472['sendEventToBackend'](_0x3bbd0d,_0x206251,_0x5ec8e7[_0xd3042a(0x168)],!![]);}else{const _0x144487=JSON[_0xd3042a(0xef)](_0x1e8668[_0xd3042a(0x7b)]),_0x4afb3d=_0x144487[_0xd3042a(0x12b)](_0x196ccc=>_0x196ccc['name']===_0xecc7a8[_0xd3042a(0x9f)])||null;if(_0x5ec8e7[_0xd3042a(0x120)](isUndefined,_0x4afb3d))_0x5ec8e7[_0xd3042a(0x114)](_0x5ec8e7[_0xd3042a(0xc0)],_0x5ec8e7['dLAYj'])?(_0x480d5a=_0xd3042a(0x14b)+_0xecc7a8[_0xd3042a(0x9f)]+_0xd3042a(0x159),await _0x5ec8e7[_0xd3042a(0x8b)](reportToGalactusAndSendToEDS,_0xecc7a8,_0x1c2b78,_0x480d5a,messageTypes[_0xd3042a(0x86)],_0x5ec8e7['zbkdT'],_0x5ec8e7[_0xd3042a(0x15d)],_0x5ec8e7['PnKrh']),logger[_0xd3042a(0x152)](_0x480d5a),process[_0xd3042a(0xa8)](0x1)):_0x52a95e+=_0xd3042a(0x94)+_0x540782[_0xd3042a(0x11c)]+'\x20'+(_0x54b473?_0x5ec8e7[_0xd3042a(0x145)]:_0x5ec8e7[_0xd3042a(0x9b)])+'\x0a\x0a';else{if(_0x5ec8e7[_0xd3042a(0xc1)](_0x5ec8e7[_0xd3042a(0x99)],_0x5ec8e7[_0xd3042a(0x172)]))_0x4db1a2=_0x4afb3d;else{const _0xc3bb1={};_0xc3bb1['description']=_0x5ec8e7[_0xd3042a(0x113)],_0xc3bb1['type']=_0x5ec8e7[_0xd3042a(0x76)];const _0x3f5246={};_0x3f5246[_0xd3042a(0x15e)]=_0x5ec8e7[_0xd3042a(0xed)],_0x3f5246[_0xd3042a(0xc7)]=_0x5ec8e7[_0xd3042a(0x76)];const _0x579e82={};_0x579e82[_0xd3042a(0x15e)]=_0x5ec8e7['jzQTp'],_0x579e82[_0xd3042a(0xc7)]=_0x5ec8e7[_0xd3042a(0x76)];const _0x227686={};_0x227686[_0xd3042a(0x15e)]=_0x5ec8e7[_0xd3042a(0x124)],_0x227686[_0xd3042a(0xc7)]=_0x5ec8e7['tsXcK'];const _0x447047={};return _0x447047[_0xd3042a(0x141)]=_0xc3bb1,_0x447047[_0xd3042a(0xaa)]=_0x3f5246,_0x447047['region']=_0x579e82,_0x447047['grid-profile']=_0x227686,_0x39c3dd[_0xd3042a(0xec)](_0x243776['pre_check'])['epilogue'](_0x470f92)['options'](_0x447047)[_0xd3042a(0xbd)](_0x5ec8e7['tZAYw'])[_0xd3042a(0x108)];}}}}else{if(_0x5ec8e7[_0xd3042a(0x7d)](_0x5ec8e7[_0xd3042a(0xb8)],_0x5ec8e7[_0xd3042a(0xb8)]))process['exit'](0x1);else{const {header:_0x598f52,response:_0x3d6a64}=_0x56a6a5,{status:_0x269a09,data:_0x53d340,error:_0x4559d7}=_0x3d6a64;_0x28f12f+=_0x598f52+'\x20#'+_0x5ec8e7[_0xd3042a(0x148)](_0x382510,0x1)+'\x0a',_0x23d5fc+=_0xd3042a(0xe4)+(_0x269a09?_0x5ec8e7[_0xd3042a(0x7a)]:_0x5ec8e7['BTPuy'])+'\x0a',_0x5a651c+=_0xd3042a(0x122)+_0x5ec8e7[_0xd3042a(0x92)](_0x53d340,_0x5ec8e7[_0xd3042a(0xa3)])+'\x0a',_0x4559d7&&(_0x3dd653+=_0x5ec8e7['RSTUq'],_0x2fe2e3+=_0xd3042a(0x115)+(_0x4559d7['message']||_0x5ec8e7['YDJRN'])+'\x0a',_0x2165c3+=_0xd3042a(0xf6)+(_0x4559d7['code']||_0x5ec8e7[_0xd3042a(0xa3)])+'\x0a',_0x297cc0+=_0xd3042a(0x126)+(_0x4559d7[_0xd3042a(0x11f)]||_0x5ec8e7[_0xd3042a(0xa3)])+'\x0a'),_0x4058fa+='\x0a\x0a';}}const _0x398b3a={};_0x398b3a[_0xd3042a(0xc7)]=WS_EVENTS[_0xd3042a(0x12c)],_0x398b3a[_0xd3042a(0xcc)]=_0x5ec8e7[_0xd3042a(0x90)],webSocketUtils[_0xd3042a(0x104)](_0x1c2b78,_0x398b3a),global_registry[_0xd3042a(0x137)]=_0x4db1a2[_0xd3042a(0x137)],global_registry[_0xd3042a(0xfb)]=_0x4db1a2[_0xd3042a(0xc6)],global_registry[_0xd3042a(0x11c)]=_0x4db1a2['clusterName'];}else _0x38a752=_0x183de2;}else _0x5ec8e7[_0xd3042a(0x102)](_0x5ec8e7[_0xd3042a(0x7f)],_0x5ec8e7['reBJW'])?(logger['error'](_0x5ec8e7[_0xd3042a(0xcb)]),process['exit'](0x1)):(_0x14858c[_0xd3042a(0x152)](_0x5ec8e7[_0xd3042a(0xcb)]),_0x5f2d69[_0xd3042a(0xa8)](0x1));}}else _0x596393[_0xd3042a(0x8c)](_0xd3042a(0x165)+_0x448503[_0xd3042a(0x147)]+'\x20'),_0x19f7be[_0xd3042a(0x137)]=_0x5713e5[_0xd3042a(0x147)];}catch(_0x23a401){_0x5ec8e7['uwtUZ'](_0x5ec8e7['BYEgE'],_0x5ec8e7['BYEgE'])?_0x3afffe[_0xd3042a(0xa8)](0x1):(_0x480d5a=_0xd3042a(0x140)+_0x23a401+':\x20'+_0x23a401['stack'],logger['error'](_0x480d5a),await _0x5ec8e7[_0xd3042a(0x93)](reportToGalactusAndSendToEDS,_0xecc7a8,_0x1c2b78,_0x480d5a,messageTypes[_0xd3042a(0x86)],_0x5ec8e7['zbkdT'],_0x5ec8e7[_0xd3042a(0xc3)],_0x5ec8e7['PnKrh']),process[_0xd3042a(0xa8)](0x1));}}function printResponse(_0x2dc43a,_0x284a61){const _0x43fc61=a17_0x2f2b79,_0x3ca0da={};_0x3ca0da[_0x43fc61(0x11b)]=_0x43fc61(0x141),_0x3ca0da[_0x43fc61(0x9c)]=function(_0x2d803f,_0x45d6fc){return _0x2d803f===_0x45d6fc;},_0x3ca0da[_0x43fc61(0x13d)]=_0x43fc61(0x9d),_0x3ca0da[_0x43fc61(0x87)]=_0x43fc61(0x133);const _0x189a4b=_0x3ca0da;logger[_0x43fc61(0x8c)]('['+_0x2dc43a+_0x43fc61(0x10c)+_0x284a61['status']+_0x43fc61(0x10e)+_0x284a61[_0x43fc61(0xc9)]+_0x43fc61(0x77)+_0x284a61[_0x43fc61(0x152)]),_0x284a61['error']&&(_0x189a4b[_0x43fc61(0x9c)](_0x189a4b['WAoWb'],_0x189a4b[_0x43fc61(0x87)])?_0x52d63d[_0x43fc61(0x162)](_0x189a4b[_0x43fc61(0x11b)]):logger[_0x43fc61(0x152)](_0x43fc61(0x106)+_0x284a61[_0x43fc61(0x152)][_0x43fc61(0x11f)]));}async function generateReport(_0x2a3b60,_0x589c0e){const _0x11ae98=a17_0x2f2b79,_0x568f75={'vwLTU':function(_0x449cfe,_0x1722c9){return _0x449cfe+_0x1722c9;},'uUjTN':_0x11ae98(0x142),'EqQeL':_0x11ae98(0x16f),'BkwRw':function(_0x5b387f,_0x47ce02){return _0x5b387f||_0x47ce02;},'lvGwx':'N/A','wvBys':_0x11ae98(0xdf),'epEGh':_0x11ae98(0x8f),'TkWZK':function(_0x4d346e,_0x346150){return _0x4d346e!=_0x346150;},'nBnvN':'is\x20already\x20present','EVcTx':_0x11ae98(0xb3),'HlDDa':function(_0x34cad9){return _0x34cad9();}};let _0xff4be4='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x11ae98(0x137)]+'\x20===\x0a\x0a';return _0x2a3b60[_0x11ae98(0x144)]((_0x3143bb,_0x16137d)=>{const _0x4a1e64=_0x11ae98,{header:_0xc07697,response:_0x12ec8e}=_0x3143bb,{status:_0x189672,data:_0x1827f5,error:_0x5062a8}=_0x12ec8e;_0xff4be4+=_0xc07697+'\x20#'+_0x568f75[_0x4a1e64(0x111)](_0x16137d,0x1)+'\x0a',_0xff4be4+='Status:\x20'+(_0x189672?_0x568f75['uUjTN']:_0x568f75[_0x4a1e64(0x98)])+'\x0a',_0xff4be4+=_0x4a1e64(0x122)+_0x568f75[_0x4a1e64(0x101)](_0x1827f5,_0x568f75[_0x4a1e64(0x10a)])+'\x0a',_0x5062a8&&(_0xff4be4+=_0x568f75['wvBys'],_0xff4be4+=_0x4a1e64(0x115)+(_0x5062a8['message']||_0x568f75[_0x4a1e64(0x10a)])+'\x0a',_0xff4be4+=_0x4a1e64(0xf6)+(_0x5062a8[_0x4a1e64(0x110)]||_0x568f75[_0x4a1e64(0x10a)])+'\x0a',_0xff4be4+=_0x4a1e64(0x126)+(_0x5062a8[_0x4a1e64(0x11f)]||_0x568f75[_0x4a1e64(0x10a)])+'\x0a'),_0xff4be4+='\x0a\x0a';}),_0xff4be4+=_0x568f75['epEGh'],_0x568f75[_0x11ae98(0x112)](_0x589c0e,null)?_0xff4be4+=_0x11ae98(0x94)+global_registry[_0x11ae98(0x11c)]+'\x20'+(_0x589c0e?_0x568f75[_0x11ae98(0xa4)]:_0x568f75[_0x11ae98(0xa5)])+'\x0a\x0a':_0xff4be4+=_0x11ae98(0x94)+global_registry[_0x11ae98(0x11c)]+_0x11ae98(0xf0),_0xff4be4+=_0x568f75[_0x11ae98(0x13e)](getSystemMetaData),_0xff4be4;};exports['handler']=async function(_0x2140de){const _0x25bb4e=a17_0x2f2b79,_0x27df3b={'tOhoo':function(_0x36dde8){return _0x36dde8();},'zInpG':function(_0x37e3c2){return _0x37e3c2();},'nFSlW':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ydXKV':function(_0x3e9cb5,_0x17d0d7,_0x194d73,_0x5492fd,_0x3a3d36,_0x1651af,_0x31c984,_0x5e6147){return _0x3e9cb5(_0x17d0d7,_0x194d73,_0x5492fd,_0x3a3d36,_0x1651af,_0x31c984,_0x5e6147);},'yuyUW':_0x25bb4e(0x80),'Dmlqk':_0x25bb4e(0xe8),'IoPnB':_0x25bb4e(0x152),'VKVWZ':function(_0x29dc1c,_0x548c37,_0x1f4cd7,_0x5e8d3d,_0x204721,_0x295cad,_0x5ee8d4){return _0x29dc1c(_0x548c37,_0x1f4cd7,_0x5e8d3d,_0x204721,_0x295cad,_0x5ee8d4);},'QtKkD':_0x25bb4e(0xae),'UBeOS':_0x25bb4e(0xd9),'XbzsD':function(_0x23bfae,_0x1a7899,_0x13a4a9){return _0x23bfae(_0x1a7899,_0x13a4a9);},'dTysl':function(_0x286272,_0x231202,_0x206ce5){return _0x286272(_0x231202,_0x206ce5);},'lPIuO':'dummy-grid','QFUap':function(_0x289955,_0x14ab29,_0x19e525){return _0x289955(_0x14ab29,_0x19e525);},'tPIUJ':'toolInstalledResp','XpfWy':_0x25bb4e(0x171),'NTviw':'accessResp','tbpjE':function(_0x691f25){return _0x691f25();},'UEMGt':function(_0x163bbd,_0x1daa5e,_0x200399){return _0x163bbd(_0x1daa5e,_0x200399);},'OIGoh':_0x25bb4e(0xc2),'VNhwZ':function(_0x1af6f9,_0xe1c333){return _0x1af6f9(_0xe1c333);},'mTMZf':_0x25bb4e(0x16d),'zEdok':_0x25bb4e(0x14d),'HYYtw':'Tool\x20Installed','gUUpx':_0x25bb4e(0x9e),'Oygqa':_0x25bb4e(0x157),'WxHkX':_0x25bb4e(0xbe),'xHdEV':function(_0x25c280,_0x2bb5e0,_0x20e7e8){return _0x25c280(_0x2bb5e0,_0x20e7e8);},'PKMqw':function(_0x273b67,_0x5d0b78){return _0x273b67+_0x5d0b78;},'tRxji':_0x25bb4e(0xb6),'ffRmt':function(_0x25fde3,_0x13b339,_0x3669c4,_0x3dc08a,_0x55337a,_0x4a99f3,_0x56fbc2){return _0x25fde3(_0x13b339,_0x3669c4,_0x3dc08a,_0x55337a,_0x4a99f3,_0x56fbc2);},'nbCCT':_0x25bb4e(0xd4)};let _0x5c11c0,_0x3cc8f6;try{global_registry[_0x25bb4e(0x128)]=_0x27df3b[_0x25bb4e(0xd6)](uuidv4);!fs['existsSync'](_0x27df3b[_0x25bb4e(0x95)](getCredentialsPath))&&(_0x3cc8f6=_0x27df3b[_0x25bb4e(0xff)],logger[_0x25bb4e(0x152)](_0x3cc8f6),await _0x27df3b['ydXKV'](reportToGalactusAndSendToEDS,_0x2140de,_0x5c11c0,_0x3cc8f6,messageTypes[_0x25bb4e(0x86)],_0x27df3b[_0x25bb4e(0xbf)],_0x27df3b[_0x25bb4e(0x156)],_0x27df3b[_0x25bb4e(0xe3)]),process[_0x25bb4e(0xa8)](0x1));_0x27df3b['VKVWZ'](sendInstrumentationEvent,_0x2140de,_0x27df3b['yuyUW'],messageTypes[_0x25bb4e(0xa1)],null,null,_0x2140de);const _0x564f25=JSON[_0x25bb4e(0xef)](fs[_0x25bb4e(0x154)](_0x27df3b[_0x25bb4e(0xd6)](getCredentialsPath)));global_registry[_0x25bb4e(0xa2)]=_0x564f25[_0x25bb4e(0xdb)][_0x25bb4e(0xfc)],global_registry[_0x25bb4e(0x121)]=_0x564f25[_0x25bb4e(0xdb)][_0x25bb4e(0x125)];const _0x88359=WS_ENDPOINT['replace'](_0x27df3b[_0x25bb4e(0xb5)],_0x564f25[_0x25bb4e(0xdb)][_0x25bb4e(0xfc)])[_0x25bb4e(0xca)](_0x27df3b['UBeOS'],_0x564f25['Browserstack'][_0x25bb4e(0x125)]),_0x397560={};_0x397560[_0x25bb4e(0xcf)]=ws,_0x397560[_0x25bb4e(0x136)]=0x36ee80,_0x5c11c0=new ReconnectingWebSocket(_0x88359,[],_0x397560),global_registry['authHeader']=_0x27df3b[_0x25bb4e(0xde)](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),await _0x27df3b[_0x25bb4e(0x13b)](inputValidation,_0x2140de,_0x5c11c0),logger[_0x25bb4e(0x8c)](_0x25bb4e(0x127)+global_registry[_0x25bb4e(0x137)]+_0x25bb4e(0xab)+global_registry[_0x25bb4e(0xfb)]);let _0xf34c42=await _0x27df3b['VKVWZ'](getCloudProviderObjectWithOutInit,global_registry[_0x25bb4e(0x137)],global_registry['clusterName'],_0x27df3b[_0x25bb4e(0x7c)],_0x5c11c0,webSocketUtils,_0x2140de);const _0x4e2d41=await _0xf34c42[_0x25bb4e(0x160)]();_0x27df3b['QFUap'](printResponse,_0x27df3b['tPIUJ'],_0x4e2d41),_0xf34c42=await _0xf34c42[_0x25bb4e(0xe0)]();let _0x4bcbfc=![];try{_0x4bcbfc=await _0xf34c42['isClusterPresent']();}catch(_0x5f149c){const _0x18e209=_0x27df3b[_0x25bb4e(0x163)][_0x25bb4e(0xf1)]('|');let _0x23dcae=0x0;while(!![]){switch(_0x18e209[_0x23dcae++]){case'0':_0x4bcbfc=null;continue;case'1':_0x3cc8f6+='\x0a'+JSON[_0x25bb4e(0x129)](_0x5f149c['stack']);continue;case'2':logger[_0x25bb4e(0x152)](_0x3cc8f6);continue;case'3':_0x3cc8f6='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry[_0x25bb4e(0x11c)]+_0x25bb4e(0x169)+global_registry[_0x25bb4e(0xfb)]+_0x25bb4e(0x130)+_0x5f149c;continue;case'4':await _0x27df3b['ydXKV'](reportToGalactusAndSendToEDS,_0x2140de,_0x5c11c0,_0x3cc8f6,messageTypes[_0x25bb4e(0x86)],_0x27df3b[_0x25bb4e(0xbf)],_0x25bb4e(0x13f)+global_registry[_0x25bb4e(0x137)],_0x27df3b[_0x25bb4e(0xe3)]);continue;}break;}}_0x4bcbfc&&logger[_0x25bb4e(0x8c)](_0x25bb4e(0x109)+global_registry[_0x25bb4e(0x11c)]+_0x25bb4e(0x11a));const _0x3983e7=await _0xf34c42['checkAccess']();_0x27df3b['QFUap'](printResponse,_0x27df3b[_0x25bb4e(0x153)],_0x3983e7);const _0x54b294=await _0x27df3b[_0x25bb4e(0xf8)](curlRequest);_0x27df3b[_0x25bb4e(0x16c)](printResponse,_0x27df3b[_0x25bb4e(0xbc)],_0x54b294);const _0x3a629a=await _0x27df3b['VNhwZ'](isTlsSupported,_0x27df3b['mTMZf']);_0x27df3b[_0x25bb4e(0x13b)](printResponse,_0x27df3b[_0x25bb4e(0xc4)],_0x3a629a);const _0x2b74e8={};_0x2b74e8[_0x25bb4e(0xd0)]=_0x27df3b['HYYtw'],_0x2b74e8['response']=_0x4e2d41;const _0x5b4f25={};_0x5b4f25[_0x25bb4e(0xd0)]=_0x27df3b[_0x25bb4e(0xd1)],_0x5b4f25[_0x25bb4e(0xcd)]=_0x3983e7;const _0x583220={};_0x583220[_0x25bb4e(0xd0)]=_0x27df3b[_0x25bb4e(0x118)],_0x583220['response']=_0x54b294;const _0x2572e6={};_0x2572e6[_0x25bb4e(0xd0)]=_0x27df3b[_0x25bb4e(0x12a)],_0x2572e6['response']=_0x3a629a;const _0x10b7f2=[_0x2b74e8,_0x5b4f25,_0x583220,_0x2572e6],_0x2f8054=await _0x27df3b[_0x25bb4e(0xc8)](generateReport,_0x10b7f2,_0x4bcbfc),_0x947f63=new Date(),_0xc972bb=_0x947f63[_0x25bb4e(0x166)]()+'_'+_0x27df3b[_0x25bb4e(0xfd)](_0x947f63[_0x25bb4e(0x7e)](),0x1)+'_'+_0x947f63['getUTCDate']()+'_'+_0x947f63[_0x25bb4e(0x123)]()+'_'+_0x947f63[_0x25bb4e(0xa7)](),_0x411afa=_0x25bb4e(0x103)+_0xc972bb+_0x25bb4e(0x15f);fs[_0x25bb4e(0x12d)](_0x411afa,_0x2f8054,_0x27df3b[_0x25bb4e(0x13c)]),logger[_0x25bb4e(0x8c)]('Report\x20saved\x20in\x20'+_0x411afa),process[_0x25bb4e(0xa8)](0x0);}catch(_0x2e3db3){let _0x313b7d=_0x25bb4e(0x161)+_0x2e3db3+'\x20';logger[_0x25bb4e(0x152)](_0x313b7d),_0x313b7d+='\x0a'+JSON[_0x25bb4e(0x129)](_0x2e3db3[_0x25bb4e(0x11f)]),logger[_0x25bb4e(0x9a)](_0x25bb4e(0x96)+_0x2e3db3['stack']);if(_0x5c11c0){const _0xab6a92={};_0xab6a92[_0x25bb4e(0xc7)]=WS_EVENTS[_0x25bb4e(0x12c)],_0xab6a92[_0x25bb4e(0xcc)]=_0x313b7d,webSocketUtils[_0x25bb4e(0x104)](_0x5c11c0,_0xab6a92,_0x27df3b['IoPnB'],!![]);}await webSocketUtils[_0x25bb4e(0x149)](0x7d0);const _0x2c51ad={};_0x2c51ad['error']=_0x313b7d,await _0x27df3b[_0x25bb4e(0x150)](sendInstrumentationEvent,_0x2140de,_0x27df3b[_0x25bb4e(0xbf)],messageTypes[_0x25bb4e(0x86)],_0x27df3b['nbCCT'],_0x2c51ad,_0x2140de),process[_0x25bb4e(0xa8)](0x1);}};
1
+ const a17_0x2c4fda=a17_0x1b4c;function a17_0x1b4c(_0x29cc66,_0x1cb071){const _0xc5680c=a17_0xc568();return a17_0x1b4c=function(_0x1b4cef,_0x288bbe){_0x1b4cef=_0x1b4cef-0xd1;let _0x64208f=_0xc5680c[_0x1b4cef];return _0x64208f;},a17_0x1b4c(_0x29cc66,_0x1cb071);}(function(_0x10581a,_0x42b1c4){const _0x4cb9f0=a17_0x1b4c,_0x153aa2=_0x10581a();while(!![]){try{const _0x369afe=-parseInt(_0x4cb9f0(0x1ac))/0x1*(parseInt(_0x4cb9f0(0xe1))/0x2)+parseInt(_0x4cb9f0(0xd7))/0x3+-parseInt(_0x4cb9f0(0x177))/0x4+parseInt(_0x4cb9f0(0x162))/0x5*(parseInt(_0x4cb9f0(0xfd))/0x6)+parseInt(_0x4cb9f0(0x14a))/0x7*(parseInt(_0x4cb9f0(0x1a1))/0x8)+-parseInt(_0x4cb9f0(0x1c3))/0x9+parseInt(_0x4cb9f0(0x193))/0xa;if(_0x369afe===_0x42b1c4)break;else _0x153aa2['push'](_0x153aa2['shift']());}catch(_0xfc5859){_0x153aa2['push'](_0x153aa2['shift']());}}}(a17_0xc568,0xc6b6f));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x2c4fda(0x15a)),ReconnectingWebSocket=require(a17_0x2c4fda(0x16a)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x2c4fda(0x12f)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require(a17_0x2c4fda(0x1af)),webSocketUtils=require(a17_0x2c4fda(0x140)),{sendInstrumentationEvent}=require(a17_0x2c4fda(0x19c));exports[a17_0x2c4fda(0x1a2)]=a17_0x2c4fda(0x15b),exports[a17_0x2c4fda(0x127)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a17_0x2c4fda(0xeb)]=function(_0x4cdddc){const _0x43ffbe=a17_0x2c4fda,_0xad00f5={};_0xad00f5[_0x43ffbe(0x18b)]=_0x43ffbe(0x101),_0xad00f5[_0x43ffbe(0xd8)]=_0x43ffbe(0x1aa),_0xad00f5['OsQNW']=_0x43ffbe(0x152),_0xad00f5[_0x43ffbe(0x11b)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0xad00f5['zNSeb']=_0x43ffbe(0x129),_0xad00f5[_0x43ffbe(0x113)]=_0x43ffbe(0xf1);const _0x18f278=_0xad00f5,_0x1acdd9={};_0x1acdd9['description']=_0x18f278[_0x43ffbe(0x18b)],_0x1acdd9['type']=_0x18f278['zxUGO'];const _0x17d8e7={};_0x17d8e7[_0x43ffbe(0x161)]=_0x18f278['OsQNW'],_0x17d8e7[_0x43ffbe(0x16d)]=_0x18f278[_0x43ffbe(0xd8)];const _0x4d1316={};_0x4d1316[_0x43ffbe(0x161)]=_0x18f278[_0x43ffbe(0x11b)],_0x4d1316[_0x43ffbe(0x16d)]=_0x18f278[_0x43ffbe(0xd8)];const _0x5e70ea={};_0x5e70ea[_0x43ffbe(0x161)]=_0x18f278['zNSeb'],_0x5e70ea['type']=_0x18f278[_0x43ffbe(0xd8)];const _0x1b4516={};return _0x1b4516[_0x43ffbe(0x12c)]=_0x1acdd9,_0x1b4516[_0x43ffbe(0x163)]=_0x17d8e7,_0x1b4516[_0x43ffbe(0xfa)]=_0x4d1316,_0x1b4516[_0x43ffbe(0x1c4)]=_0x5e70ea,_0x4cdddc[_0x43ffbe(0x11e)](HELP_HEADER_MESSAGE['pre_check'])[_0x43ffbe(0x198)](HELP_FOOTER_MESSAGE)[_0x43ffbe(0x1a7)](_0x1b4516)[_0x43ffbe(0xf1)](_0x18f278['niMUM'])[_0x43ffbe(0x197)];};async function inputValidation(_0x5eb28f,_0x534031){const _0x2ea164=a17_0x2c4fda,_0x3c8b89={'SpXrE':_0x2ea164(0xd2),'HEewH':'will\x20be\x20created','NncOJ':_0x2ea164(0x163),'vyEsK':_0x2ea164(0xf4),'Bmdbw':_0x2ea164(0xfa),'HxjxO':function(_0x853905,_0x380a38){return _0x853905+_0x380a38;},'fggqg':'Success','USFLP':_0x2ea164(0x1ce),'DUoyE':function(_0x1cc888,_0x41b67){return _0x1cc888||_0x41b67;},'fFqfT':_0x2ea164(0x180),'icKcs':'Error\x20Details:\x0a','GQYdZ':_0x2ea164(0x101),'txEOD':_0x2ea164(0x1aa),'FthLT':_0x2ea164(0x152),'rKLAb':_0x2ea164(0x175),'zMZfx':_0x2ea164(0x129),'dMjou':'help','ceysj':_0x2ea164(0x12c),'sTOsC':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','YYQrj':function(_0x6d72c2,_0x567c1e){return _0x6d72c2!==_0x567c1e;},'hWbTF':_0x2ea164(0x15f),'KitJK':function(_0x3288b4,_0x1bdf34){return _0x3288b4===_0x1bdf34;},'MEGQK':_0x2ea164(0x1c9),'NsMWP':_0x2ea164(0x16f),'RNXmk':function(_0x5f17fc,_0x10d83c){return _0x5f17fc!==_0x10d83c;},'aVsXU':_0x2ea164(0xe9),'Qkhmy':'BfVyi','QBamC':function(_0x4250fc,_0x18c365){return _0x4250fc===_0x18c365;},'AUfcm':_0x2ea164(0x176),'xPPlF':_0x2ea164(0xe4),'TtKGJ':_0x2ea164(0x1b9),'qWUTe':_0x2ea164(0x15d),'ZJMiU':function(_0x5f21af,_0x2a0051){return _0x5f21af>_0x2a0051;},'Nocyy':_0x2ea164(0x171),'QPReY':_0x2ea164(0xda),'CEmBW':function(_0x4cd1a0,_0x30d46c,_0x1bfecb,_0x3d3172,_0x1119bf,_0x3f3ad9,_0x17cc46,_0x17173a){return _0x4cd1a0(_0x30d46c,_0x1bfecb,_0x3d3172,_0x1119bf,_0x3f3ad9,_0x17cc46,_0x17173a);},'NdpSy':'pre-check-grid-called','BLAKe':'pre-check-cluster-args-not-passed','zvHiJ':function(_0x580b05,_0x32b4a8){return _0x580b05===_0x32b4a8;},'joVcB':_0x2ea164(0x107),'wlVIh':_0x2ea164(0xe2),'CHafO':function(_0x32dfaf,_0x3ef5b1,_0x56ed99,_0x2e24da,_0x13371a,_0x2a292c,_0x67b143,_0xc9e30b){return _0x32dfaf(_0x3ef5b1,_0x56ed99,_0x2e24da,_0x13371a,_0x2a292c,_0x67b143,_0xc9e30b);},'tsmLb':'cloud-provider-not-supported','jhLWj':_0x2ea164(0x145),'xPktm':_0x2ea164(0x158),'vhMKW':_0x2ea164(0x125),'HtwyG':function(_0x5937f4,_0x4360ba,_0x55cf64){return _0x5937f4(_0x4360ba,_0x55cf64);},'yLqWT':function(_0x237365,_0x4f9821,_0x303270,_0x4e269b,_0x2f1ddf,_0x42a014){return _0x237365(_0x4f9821,_0x303270,_0x4e269b,_0x2f1ddf,_0x42a014);},'LntXq':'pre-check','BlIwc':'grid-profile','tZwoT':function(_0x6868bb,_0x23bccd){return _0x6868bb===_0x23bccd;},'AtBjF':_0x2ea164(0x157),'UfLlv':function(_0x219909,_0x60814c){return _0x219909(_0x60814c);},'sjQni':function(_0x414a80,_0x10ca8b){return _0x414a80!==_0x10ca8b;},'fNnyi':_0x2ea164(0x19a),'RZODy':_0x2ea164(0xf0),'vMeEt':function(_0x23af16,_0xd4baac){return _0x23af16!==_0xd4baac;},'lxvIE':_0x2ea164(0x192),'WNcXA':function(_0x585dd8,_0x3aa232){return _0x585dd8===_0x3aa232;},'ZUcic':_0x2ea164(0xef),'CPgDg':_0x2ea164(0x1b8),'THWNn':_0x2ea164(0x14f),'wpdno':'TCSnT','gqdQv':_0x2ea164(0x1ab),'uPSBA':function(_0x7d47e0,_0x1df2ee,_0x454b66,_0x316e41,_0x24d9fc,_0x4ca935,_0x18d3f9,_0x2852f9){return _0x7d47e0(_0x1df2ee,_0x454b66,_0x316e41,_0x24d9fc,_0x4ca935,_0x18d3f9,_0x2852f9);}};let _0x1bf84d;try{if(_0x3c8b89[_0x2ea164(0x173)](_0x3c8b89[_0x2ea164(0x1b7)],_0x3c8b89[_0x2ea164(0x1b7)]))_0x34db7b[_0x2ea164(0x1be)]('Cluster\x20`'+_0xa09d44[_0x2ea164(0xe3)]+'`\x20already\x20exists');else{if(_0x5eb28f['clusterName']||_0x5eb28f[_0x2ea164(0x110)]||_0x5eb28f['region']){if(_0x3c8b89[_0x2ea164(0x150)](_0x3c8b89[_0x2ea164(0x18d)],_0x3c8b89[_0x2ea164(0x14e)]))_0x58fc78+='Cluster\x20'+_0x577f93[_0x2ea164(0xe3)]+'\x20'+(_0x41e30a?_0x3c8b89[_0x2ea164(0xf9)]:_0x3c8b89[_0x2ea164(0x159)])+'\x0a\x0a';else{const _0x3df82f=[];!_0x5eb28f[_0x2ea164(0xe3)]&&(_0x3c8b89[_0x2ea164(0x1d0)](_0x3c8b89[_0x2ea164(0x119)],_0x3c8b89[_0x2ea164(0x13d)])?_0x3df82f[_0x2ea164(0xec)](_0x3c8b89['ceysj']):_0x419683[_0x2ea164(0xec)](_0x3c8b89[_0x2ea164(0xe5)]));;if(!_0x5eb28f[_0x2ea164(0x110)]){if(_0x3c8b89[_0x2ea164(0x149)](_0x3c8b89[_0x2ea164(0x17c)],_0x3c8b89[_0x2ea164(0x1ae)])){const _0x1b3d25={};_0x1b3d25[_0x2ea164(0x16d)]=_0x49c4b5[_0x2ea164(0x17a)],_0x1b3d25[_0x2ea164(0x16c)]=_0x1c7919,_0x44e452[_0x2ea164(0x168)](_0x1b760c,_0x1b3d25,_0x3c8b89[_0x2ea164(0x184)],!![]);}else _0x3df82f[_0x2ea164(0xec)](_0x3c8b89[_0x2ea164(0xe5)]);};!_0x5eb28f['region']&&(_0x3c8b89[_0x2ea164(0x1d0)](_0x3c8b89[_0x2ea164(0x11c)],_0x3c8b89[_0x2ea164(0x130)])?_0x3df82f[_0x2ea164(0xec)](_0x3c8b89[_0x2ea164(0x18c)]):_0x1227d0['push'](_0x3c8b89['Bmdbw']));;_0x3c8b89[_0x2ea164(0x174)](_0x3df82f[_0x2ea164(0x10f)],0x0)&&(_0x3c8b89[_0x2ea164(0x173)](_0x3c8b89[_0x2ea164(0xf2)],_0x3c8b89['QPReY'])?(_0x1bf84d=_0x2ea164(0x136)+_0x3df82f[_0x2ea164(0xe7)](',\x20')+_0x2ea164(0x18a),await _0x3c8b89['CEmBW'](reportToGalactusAndSendToEDS,_0x5eb28f,_0x534031,_0x1bf84d,messageTypes['ERROR'],_0x3c8b89[_0x2ea164(0x17d)],_0x3c8b89['BLAKe'],_0x3c8b89[_0x2ea164(0x184)]),logger[_0x2ea164(0xf4)](_0x1bf84d),process['exit'](0x1)):_0x5e7ee8[_0x2ea164(0xf4)](_0x2ea164(0x1bd)+_0xd034c4[_0x2ea164(0xf4)]['stack']));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x2ea164(0x189)](_0x5eb28f[_0x2ea164(0x110)][_0x2ea164(0x178)]())){if(_0x3c8b89[_0x2ea164(0x120)](_0x3c8b89['joVcB'],_0x3c8b89['joVcB']))_0x1bf84d=_0x3c8b89[_0x2ea164(0xee)],await _0x3c8b89['CHafO'](reportToGalactusAndSendToEDS,_0x5eb28f,_0x534031,_0x1bf84d,messageTypes[_0x2ea164(0x172)],_0x3c8b89[_0x2ea164(0x17d)],_0x3c8b89[_0x2ea164(0xdc)],_0x3c8b89[_0x2ea164(0x184)]),logger[_0x2ea164(0xf4)](_0x1bf84d),!_0x5eb28f[_0x2ea164(0x110)]&&(_0x3c8b89[_0x2ea164(0x120)](_0x3c8b89[_0x2ea164(0x1a5)],_0x3c8b89['jhLWj'])?(logger[_0x2ea164(0x1be)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x2ea164(0xd5)]+'\x20'),_0x5eb28f[_0x2ea164(0x110)]=DEFAULT_CLUSTER_DETAILS[_0x2ea164(0xd5)]):_0xbcc905+=_0x2ea164(0x137)+_0x32b8fb[_0x2ea164(0xe3)]+_0x2ea164(0x19e));else{const {header:_0x331862,response:_0x2d9e01}=_0x4e5d7f,{status:_0xf1e304,data:_0x12cf69,error:_0x3e5856}=_0x2d9e01;_0x51e645+=_0x331862+'\x20#'+_0x3c8b89[_0x2ea164(0x1cb)](_0x49a014,0x1)+'\x0a',_0x1e32b8+=_0x2ea164(0x19f)+(_0xf1e304?_0x3c8b89['fggqg']:_0x3c8b89[_0x2ea164(0x12d)])+'\x0a',_0x3f1053+=_0x2ea164(0xf7)+_0x3c8b89[_0x2ea164(0x179)](_0x12cf69,_0x3c8b89['fFqfT'])+'\x0a',_0x3e5856&&(_0x44fd69+=_0x3c8b89[_0x2ea164(0x16e)],_0x3f545e+=_0x2ea164(0x165)+(_0x3e5856[_0x2ea164(0x16c)]||_0x3c8b89[_0x2ea164(0x133)])+'\x0a',_0x54e7ba+=_0x2ea164(0x199)+(_0x3e5856[_0x2ea164(0x182)]||_0x3c8b89[_0x2ea164(0x133)])+'\x0a',_0xe371ff+='\x20\x20Stack:\x20'+(_0x3e5856['stack']||_0x3c8b89[_0x2ea164(0x133)])+'\x0a'),_0x52b43d+='\x0a\x0a';}}global_registry['clusterName']=_0x5eb28f[_0x2ea164(0xe3)],global_registry[_0x2ea164(0x110)]=_0x5eb28f[_0x2ea164(0x110)],global_registry['clusterRegion']=_0x5eb28f['region'];}}else{if(_0x5eb28f[_0x2ea164(0x1c7)]){if(_0x3c8b89[_0x2ea164(0x173)](_0x3c8b89[_0x2ea164(0x134)],_0x3c8b89[_0x2ea164(0x134)])){const _0x5f48e1={};_0x5f48e1[_0x2ea164(0x161)]=_0x3c8b89[_0x2ea164(0x155)],_0x5f48e1[_0x2ea164(0x16d)]=_0x3c8b89[_0x2ea164(0x143)];const _0x221e11={};_0x221e11[_0x2ea164(0x161)]=_0x3c8b89[_0x2ea164(0x1c5)],_0x221e11['type']=_0x3c8b89[_0x2ea164(0x143)];const _0x17b3a5={};_0x17b3a5[_0x2ea164(0x161)]=_0x3c8b89[_0x2ea164(0x115)],_0x17b3a5['type']=_0x3c8b89[_0x2ea164(0x143)];const _0x1ce069={};_0x1ce069['description']=_0x3c8b89[_0x2ea164(0x10a)],_0x1ce069[_0x2ea164(0x16d)]=_0x3c8b89[_0x2ea164(0x143)];const _0x3c2dcc={};return _0x3c2dcc['cluster-name']=_0x5f48e1,_0x3c2dcc[_0x2ea164(0x163)]=_0x221e11,_0x3c2dcc[_0x2ea164(0xfa)]=_0x17b3a5,_0x3c2dcc['grid-profile']=_0x1ce069,_0x48918f[_0x2ea164(0x11e)](_0x16d9b0[_0x2ea164(0x1cd)])[_0x2ea164(0x198)](_0x73d4ff)[_0x2ea164(0x1a7)](_0x3c2dcc)[_0x2ea164(0xf1)](_0x3c8b89[_0x2ea164(0x13e)])[_0x2ea164(0x197)];}else{global_registry[_0x2ea164(0x1c7)]=_0x5eb28f['gridProfile'],logger[_0x2ea164(0x17b)](_0x2ea164(0x166)+_0x5eb28f['gridProfile']);const _0x142daf=_0x2ea164(0x160)+AG_API_URL+_0x2ea164(0x164),_0x45c5da={};_0x45c5da[_0x2ea164(0xf8)]=_0x3c8b89[_0x2ea164(0x18f)],_0x45c5da[_0x2ea164(0xf6)]=global_registry[_0x2ea164(0x121)],_0x45c5da['throwHttpErrors']=![];const _0x5f5674=_0x45c5da,_0x2785c9=await _0x3c8b89[_0x2ea164(0x169)](got,_0x142daf,_0x5f5674),_0x2d36bc=await _0x3c8b89['yLqWT'](responseValidation,_0x2785c9,_0x3c8b89['LntXq'],_0x3c8b89['BlIwc'],_0x5eb28f,_0x534031);let _0xb95f65={};if(_0x3c8b89[_0x2ea164(0x146)](_0x2d36bc,0xc8)){if(_0x3c8b89['tZwoT'](_0x3c8b89['AtBjF'],_0x3c8b89['AtBjF'])){const _0x5ef134=JSON['parse'](_0x2785c9[_0x2ea164(0x123)]),_0x239663=_0x5ef134[_0x2ea164(0xf3)](_0x541243=>_0x541243['name']===_0x5eb28f[_0x2ea164(0x1c7)])||null;_0x3c8b89[_0x2ea164(0x10d)](isUndefined,_0x239663)?_0x3c8b89[_0x2ea164(0x14b)](_0x3c8b89[_0x2ea164(0x1c2)],_0x3c8b89['fNnyi'])?_0x498795[_0x2ea164(0xec)](_0x3c8b89[_0x2ea164(0x15e)]):(_0x1bf84d=_0x2ea164(0x142)+_0x5eb28f[_0x2ea164(0x1c7)]+_0x2ea164(0x109),await _0x3c8b89[_0x2ea164(0x17e)](reportToGalactusAndSendToEDS,_0x5eb28f,_0x534031,_0x1bf84d,messageTypes[_0x2ea164(0x172)],_0x3c8b89[_0x2ea164(0x17d)],_0x3c8b89[_0x2ea164(0xd1)],_0x3c8b89['vyEsK']),logger[_0x2ea164(0xf4)](_0x1bf84d),process[_0x2ea164(0x16b)](0x1)):_0x3c8b89[_0x2ea164(0x167)](_0x3c8b89[_0x2ea164(0xd3)],_0x3c8b89[_0x2ea164(0xd3)])?(_0x37f8c1[_0x2ea164(0x1be)]('Setting\x20cloud\x20provider\x20as\x20'+_0x120ea0['CLOUD_PROVIDER']+'\x20'),_0x3da1ad['cloudProvider']=_0x355199[_0x2ea164(0xd5)]):_0xb95f65=_0x239663;}else _0x1b48a8=_0x465613;}else _0x3c8b89['WNcXA'](_0x3c8b89['ZUcic'],_0x3c8b89[_0x2ea164(0xfc)])?(_0x407b18[_0x2ea164(0xf4)](_0x3c8b89[_0x2ea164(0x1cc)]),_0x49984d[_0x2ea164(0x16b)](0x1)):process[_0x2ea164(0x16b)](0x1);const _0xf9e255={};_0xf9e255[_0x2ea164(0x16d)]=WS_EVENTS[_0x2ea164(0x17a)],_0xf9e255[_0x2ea164(0x16c)]=_0x3c8b89[_0x2ea164(0x196)],webSocketUtils[_0x2ea164(0x168)](_0x534031,_0xf9e255),global_registry[_0x2ea164(0x110)]=_0xb95f65['cloudProvider'],global_registry[_0x2ea164(0x104)]=_0xb95f65[_0x2ea164(0xfa)],global_registry[_0x2ea164(0xe3)]=_0xb95f65['clusterName'];}}else _0x3c8b89[_0x2ea164(0x118)](_0x3c8b89['wpdno'],_0x3c8b89[_0x2ea164(0x12e)])?(logger[_0x2ea164(0xf4)](_0x3c8b89[_0x2ea164(0x1cc)]),process[_0x2ea164(0x16b)](0x1)):_0x2b84e3[_0x2ea164(0x16b)](0x1);}}}catch(_0x4deb89){_0x3c8b89[_0x2ea164(0x149)](_0x3c8b89[_0x2ea164(0x103)],_0x3c8b89[_0x2ea164(0x103)])?(_0x1bf84d=_0x2ea164(0x13b)+_0x4deb89+':\x20'+_0x4deb89[_0x2ea164(0x111)],logger[_0x2ea164(0xf4)](_0x1bf84d),await _0x3c8b89[_0x2ea164(0x1cf)](reportToGalactusAndSendToEDS,_0x5eb28f,_0x534031,_0x1bf84d,messageTypes['ERROR'],_0x3c8b89['NdpSy'],_0x3c8b89['tsmLb'],_0x3c8b89[_0x2ea164(0x184)]),process['exit'](0x1)):(_0x419ade[_0x2ea164(0x1be)]('['+_0x1501ce+_0x2ea164(0x139)+_0x47c035[_0x2ea164(0x17f)]+_0x2ea164(0x12b)+_0x5e9582['data']+_0x2ea164(0x13f)+_0x371f95['error']),_0x5239c1[_0x2ea164(0xf4)]&&_0x368ef9[_0x2ea164(0xf4)]('error\x20stack\x20:\x20'+_0x7d0954[_0x2ea164(0xf4)][_0x2ea164(0x111)]));}}function a17_0xc568(){const _0x400a7a=['/packages/cli/get-all-grid-profiles','\x20\x20Message:\x20','grid\x20profile\x20flow\x20','vMeEt','sendEventToBackend','HtwyG','reconnecting-websocket','exit','message','type','icKcs','ZoZUu','Whitelisted\x20browserstack','OjWES','ERROR','YYQrj','ZJMiU','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','ehLLH','3391228CwMILJ','toLowerCase','DUoyE','LOG','debug','AUfcm','NdpSy','CHafO','status','N/A','unable\x20to\x20verify\x20if\x20cluster\x20`','code','dCFpf','vyEsK','sbcsH','<UsernamePlaceholder>','VQtfZ','WebSocket','includes','.\x20Please\x20provide\x20all\x20required\x20arguments.','WnKIL','Bmdbw','MEGQK','Report\x20saved\x20in\x20','vhMKW','WewId','<PasswordPlaceholder>','woHOy','7506420xbpfTG','mJpzv','handler','THWNn','argv','epilogue','\x20\x20Code:\x20','zhjkG','isTrialGridAccessible','../../utils/instrumentationUtils','WxxRV','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','Status:\x20','INFO','1169608QjlxMN','command','username','\x20===\x0a\x0a','jhLWj','accessResp','options','credential-not-found','data','string','dHZCp','7xSYbtz','zVzZq','xPPlF','../../cloudproviders/utils','toolInstalledResp','vsZfM','password','connectionTimeout','pre-check-failed','ZKuSy','uQKqb','hWbTF','hWLHe','CaTlA','Gptyi','XCqYW','getUTCDate','error\x20stack\x20:\x20','info','`\x20already\x20exists','zxiff','writeFileSync','fNnyi','1071711TjItvQ','grid-profile','FthLT','utf-8','gridProfile','existsSync','PjNHz','RZLsF','HxjxO','sTOsC','pre_check','Failure','uPSBA','RNXmk','RZODy','is\x20already\x20present','lxvIE','\x20\x20Stack:\x20','CLOUD_PROVIDER','forEach','971856UrCCjC','zxUGO','OJpYI','XpBqy','getUTCMinutes','tsmLb','cQHDw','split','AYkgn','delay','6418BjObFm','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','clusterName','gOFcM','NncOJ','nPzRO','join','isCliToolInstalled','Nztct','isClusterPresent','builder','push','requestId','wlVIh','BIhCV','pre-check-grid-profile-empty','help','Nocyy','find','error','will\x20be\x20created','headers','Message:\x20','method','SpXrE','region','jsSbJ','CPgDg','3294azbTmW','.txt','bstackAccesskey','\x20region\x20-\x20','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','KgCdq','gqdQv','clusterRegion','pre-check-grid-called','Cluster\x20`','pLWgP','hSRfq','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','zMZfx','SSL\x20Configured','bstackUsername','UfLlv','isTls1_2_SUPPORTED','length','cloudProvider','stack','response','niMUM','vhVuW','rKLAb','getUTCFullYear','VzoQP','WNcXA','aVsXU','parse','cIXeG','TtKGJ','0|4|3|2|1','usage','AlitT','zvHiJ','authHeader','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','body','Cluster\x20details\x0a-----------------------\x0a','GET','cluster-check-failed-','desc','Tool\x20Installed','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Failed\x20in\x20pre-check!\x20Error:\x20','\x20data\x20:\x20','cluster-name','USFLP','wpdno','../../config/logger','qWUTe','Browserstack','zmVEw','fFqfT','xPktm','stack\x20trace\x20','Missing\x20required\x20arguments:\x20','Cluster\x20','TLSv1_2_client_method',']\x20status\x20:\x20','stringify','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','OieEI','Qkhmy','dMjou','\x20error\x20:\x20','../../utils/webSocketUtils','DAlEw','Invalid\x20input.\x20grid\x20profiles:\x20','txEOD','replace','caMrc','tZwoT','Error\x20Details:\x0a','zkJCI','QBamC','7fAqFMF','sjQni','HDsvO','CGttx','NsMWP','Grid\x20profile\x20fetched\x20for\x20pre-check','KitJK','bBIYh','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','header','gBHMm','GQYdZ','===\x20Precheck\x20Report\x20-\x20','noDFq','JSXMO','HEewH','uuid','grid','dummy-grid','RJYRG','ceysj','fqcNs','https://','description','5305rtAjlK','cloud-provider'];a17_0xc568=function(){return _0x400a7a;};return a17_0xc568();}function printResponse(_0x15cf6e,_0x1a9275){const _0x305148=a17_0x2c4fda,_0x758470={};_0x758470['dCFpf']=_0x305148(0x147),_0x758470[_0x305148(0x14d)]=_0x305148(0x180),_0x758470['XCqYW']=function(_0x5c8877,_0x3d90ab){return _0x5c8877!==_0x3d90ab;},_0x758470[_0x305148(0xe6)]='KWEiy';const _0x4cb9c2=_0x758470;logger[_0x305148(0x1be)]('['+_0x15cf6e+']\x20status\x20:\x20'+_0x1a9275['status']+_0x305148(0x12b)+_0x1a9275[_0x305148(0x1a9)]+'\x20error\x20:\x20'+_0x1a9275['error']),_0x1a9275[_0x305148(0xf4)]&&(_0x4cb9c2[_0x305148(0x1bb)](_0x4cb9c2['nPzRO'],_0x4cb9c2['nPzRO'])?(_0x46835b+=_0x4cb9c2[_0x305148(0x183)],_0x29779+='\x20\x20Message:\x20'+(_0x5d15ac['message']||_0x4cb9c2[_0x305148(0x14d)])+'\x0a',_0x22b287+='\x20\x20Code:\x20'+(_0x3e3190['code']||_0x4cb9c2[_0x305148(0x14d)])+'\x0a',_0x5c7c2d+=_0x305148(0xd4)+(_0x43d135['stack']||_0x4cb9c2['CGttx'])+'\x0a'):logger[_0x305148(0xf4)](_0x305148(0x1bd)+_0x1a9275['error']['stack']));}async function generateReport(_0x247e9d,_0x38dbbb){const _0x3f7568=a17_0x2c4fda,_0x40a801={'OJpYI':function(_0x3ad4f6,_0x1d47c6){return _0x3ad4f6+_0x1d47c6;},'OieEI':'Success','zMNdK':_0x3f7568(0x1ce),'uQKqb':function(_0x158609,_0x1fad4b){return _0x158609||_0x1fad4b;},'bBIYh':_0x3f7568(0x180),'cLPGQ':_0x3f7568(0x147),'vhVuW':_0x3f7568(0x124),'AlitT':function(_0x4ff57a,_0x4e781c){return _0x4ff57a!=_0x4e781c;},'zVzZq':_0x3f7568(0xd2),'DAlEw':_0x3f7568(0xf5),'IOEka':function(_0xeaa84e){return _0xeaa84e();}};let _0x49db4a=_0x3f7568(0x156)+global_registry[_0x3f7568(0x110)]+_0x3f7568(0x1a4);return _0x247e9d[_0x3f7568(0xd6)]((_0x336b51,_0x1ceaab)=>{const _0x19b314=_0x3f7568,{header:_0x42d0c0,response:_0x11b6c4}=_0x336b51,{status:_0x2a76cc,data:_0x1e255f,error:_0x8c5bee}=_0x11b6c4;_0x49db4a+=_0x42d0c0+'\x20#'+_0x40a801[_0x19b314(0xd9)](_0x1ceaab,0x1)+'\x0a',_0x49db4a+=_0x19b314(0x19f)+(_0x2a76cc?_0x40a801[_0x19b314(0x13c)]:_0x40a801['zMNdK'])+'\x0a',_0x49db4a+=_0x19b314(0xf7)+_0x40a801[_0x19b314(0x1b6)](_0x1e255f,_0x40a801[_0x19b314(0x151)])+'\x0a',_0x8c5bee&&(_0x49db4a+=_0x40a801['cLPGQ'],_0x49db4a+='\x20\x20Message:\x20'+(_0x8c5bee[_0x19b314(0x16c)]||_0x40a801[_0x19b314(0x151)])+'\x0a',_0x49db4a+=_0x19b314(0x199)+(_0x8c5bee['code']||_0x40a801[_0x19b314(0x151)])+'\x0a',_0x49db4a+=_0x19b314(0xd4)+(_0x8c5bee[_0x19b314(0x111)]||_0x40a801['bBIYh'])+'\x0a'),_0x49db4a+='\x0a\x0a';}),_0x49db4a+=_0x40a801[_0x3f7568(0x114)],_0x40a801[_0x3f7568(0x11f)](_0x38dbbb,null)?_0x49db4a+=_0x3f7568(0x137)+global_registry[_0x3f7568(0xe3)]+'\x20'+(_0x38dbbb?_0x40a801[_0x3f7568(0x1ad)]:_0x40a801[_0x3f7568(0x141)])+'\x0a\x0a':_0x49db4a+=_0x3f7568(0x137)+global_registry[_0x3f7568(0xe3)]+_0x3f7568(0x19e),_0x49db4a+=_0x40a801['IOEka'](getSystemMetaData),_0x49db4a;};exports[a17_0x2c4fda(0x195)]=async function(_0xfd4b79){const _0x521c98=a17_0x2c4fda,_0xed97ea={'zxiff':function(_0xb9b08c){return _0xb9b08c();},'HDsvO':_0x521c98(0x122),'mJpzv':function(_0x473120,_0x3e48ed,_0x402577,_0x59784f,_0x291427,_0x47c50f,_0x4f6c78,_0x1a2733){return _0x473120(_0x3e48ed,_0x402577,_0x59784f,_0x291427,_0x47c50f,_0x4f6c78,_0x1a2733);},'VQtfZ':_0x521c98(0x105),'IBoRc':_0x521c98(0x1a8),'WewId':_0x521c98(0xf4),'POTyz':function(_0x26b4c9,_0x256bb9,_0x1baecc,_0x427e1b,_0x2a88e3,_0xd29716,_0x392ea1){return _0x26b4c9(_0x256bb9,_0x1baecc,_0x427e1b,_0x2a88e3,_0xd29716,_0x392ea1);},'UpsmL':_0x521c98(0x186),'sbcsH':_0x521c98(0x191),'ZKuSy':function(_0x18b95b,_0xd473a7,_0x5719b8){return _0x18b95b(_0xd473a7,_0x5719b8);},'zmVEw':function(_0x1d0fb1,_0x14d9a6,_0x4f4ec2,_0x366f58,_0x22929e,_0x2aee02,_0x39df4c){return _0x1d0fb1(_0x14d9a6,_0x4f4ec2,_0x366f58,_0x22929e,_0x2aee02,_0x39df4c);},'jsSbJ':_0x521c98(0x15c),'vsZfM':function(_0x3263aa,_0x5264ce,_0xb2c2b8){return _0x3263aa(_0x5264ce,_0xb2c2b8);},'Gptyi':_0x521c98(0x1b0),'cQHDw':_0x521c98(0x11d),'WxxRV':function(_0x32ea11,_0x32d753,_0x41ca3d,_0x99327c,_0x474453,_0x4e84be,_0x3790ec,_0x25ddfb){return _0x32ea11(_0x32d753,_0x41ca3d,_0x99327c,_0x474453,_0x4e84be,_0x3790ec,_0x25ddfb);},'PISYY':_0x521c98(0x1a6),'KgCdq':function(_0x307f36){return _0x307f36();},'lHKlC':_0x521c98(0x19b),'pUDEj':function(_0xec17c8,_0x2e0fd6){return _0xec17c8(_0x2e0fd6);},'RZLsF':_0x521c98(0x138),'hSRfq':_0x521c98(0x10e),'zkJCI':_0x521c98(0x128),'VzoQP':'User\x20Access','gtNDb':_0x521c98(0x170),'AYkgn':_0x521c98(0x10b),'sppHw':function(_0xb9c32,_0x259e75){return _0xb9c32+_0x259e75;},'gBHMm':_0x521c98(0x1c6),'uzPBa':_0x521c98(0x1b4)};let _0x3cd7bb,_0x15244a;try{global_registry[_0x521c98(0xed)]=_0xed97ea['zxiff'](uuidv4);!fs[_0x521c98(0x1c8)](_0xed97ea[_0x521c98(0x1c0)](getCredentialsPath))&&(_0x15244a=_0xed97ea[_0x521c98(0x14c)],logger[_0x521c98(0xf4)](_0x15244a),await _0xed97ea[_0x521c98(0x194)](reportToGalactusAndSendToEDS,_0xfd4b79,_0x3cd7bb,_0x15244a,messageTypes['ERROR'],_0xed97ea[_0x521c98(0x187)],_0xed97ea['IBoRc'],_0xed97ea[_0x521c98(0x190)]),process[_0x521c98(0x16b)](0x1));_0xed97ea['POTyz'](sendInstrumentationEvent,_0xfd4b79,_0xed97ea[_0x521c98(0x187)],messageTypes[_0x521c98(0x1a0)],null,null,_0xfd4b79);const _0x18e1b1=JSON[_0x521c98(0x11a)](fs['readFileSync'](_0xed97ea[_0x521c98(0x1c0)](getCredentialsPath)));global_registry[_0x521c98(0x10c)]=_0x18e1b1['Browserstack'][_0x521c98(0x1a3)],global_registry[_0x521c98(0xff)]=_0x18e1b1[_0x521c98(0x131)][_0x521c98(0x1b2)];const _0x4e402a=WS_ENDPOINT[_0x521c98(0x144)](_0xed97ea['UpsmL'],_0x18e1b1['Browserstack'][_0x521c98(0x1a3)])['replace'](_0xed97ea[_0x521c98(0x185)],_0x18e1b1[_0x521c98(0x131)]['password']),_0x1bfa1f={};_0x1bfa1f[_0x521c98(0x188)]=ws,_0x1bfa1f[_0x521c98(0x1b3)]=0x36ee80,_0x3cd7bb=new ReconnectingWebSocket(_0x4e402a,[],_0x1bfa1f),global_registry['authHeader']=_0xed97ea[_0x521c98(0x1b5)](getAuthHeader,global_registry[_0x521c98(0x10c)],global_registry[_0x521c98(0xff)]),await _0xed97ea[_0x521c98(0x1b5)](inputValidation,_0xfd4b79,_0x3cd7bb),logger[_0x521c98(0x1be)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0x521c98(0x110)]+_0x521c98(0x100)+global_registry[_0x521c98(0x104)]);let _0x2c0372=await _0xed97ea['zmVEw'](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry['clusterName'],_0xed97ea[_0x521c98(0xfb)],_0x3cd7bb,webSocketUtils,_0xfd4b79);const _0x3326e1=await _0x2c0372[_0x521c98(0xe8)]();_0xed97ea[_0x521c98(0x1b1)](printResponse,_0xed97ea[_0x521c98(0x1ba)],_0x3326e1),_0x2c0372=await _0x2c0372['init']();let _0x4f1d00=![];try{_0x4f1d00=await _0x2c0372[_0x521c98(0xea)]();}catch(_0x543388){const _0xb4dd9=_0xed97ea[_0x521c98(0xdd)][_0x521c98(0xde)]('|');let _0x3755e5=0x0;while(!![]){switch(_0xb4dd9[_0x3755e5++]){case'0':_0x15244a=_0x521c98(0x181)+global_registry[_0x521c98(0xe3)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x521c98(0x104)]+'`\x20,error\x20:\x20'+_0x543388;continue;case'1':await _0xed97ea[_0x521c98(0x19d)](reportToGalactusAndSendToEDS,_0xfd4b79,_0x3cd7bb,_0x15244a,messageTypes[_0x521c98(0x172)],_0xed97ea[_0x521c98(0x187)],_0x521c98(0x126)+global_registry[_0x521c98(0x110)],_0xed97ea['WewId']);continue;case'2':_0x15244a+='\x0a'+JSON[_0x521c98(0x13a)](_0x543388['stack']);continue;case'3':logger[_0x521c98(0xf4)](_0x15244a);continue;case'4':_0x4f1d00=null;continue;}break;}}_0x4f1d00&&logger['info'](_0x521c98(0x106)+global_registry['clusterName']+_0x521c98(0x1bf));const _0x3aeeda=await _0x2c0372['checkAccess']();_0xed97ea[_0x521c98(0x1b5)](printResponse,_0xed97ea['PISYY'],_0x3aeeda);const _0x35e06e=await _0xed97ea[_0x521c98(0x102)](curlRequest);_0xed97ea[_0x521c98(0x1b5)](printResponse,_0xed97ea['lHKlC'],_0x35e06e);const _0x49741f=await _0xed97ea['pUDEj'](isTlsSupported,_0xed97ea[_0x521c98(0x1ca)]);_0xed97ea[_0x521c98(0x1b1)](printResponse,_0xed97ea[_0x521c98(0x108)],_0x49741f);const _0x1e5626={};_0x1e5626[_0x521c98(0x153)]=_0xed97ea[_0x521c98(0x148)],_0x1e5626[_0x521c98(0x112)]=_0x3326e1;const _0x3b75f0={};_0x3b75f0[_0x521c98(0x153)]=_0xed97ea[_0x521c98(0x117)],_0x3b75f0[_0x521c98(0x112)]=_0x3aeeda;const _0x452ee3={};_0x452ee3['header']=_0xed97ea['gtNDb'],_0x452ee3[_0x521c98(0x112)]=_0x35e06e;const _0x5655ca={};_0x5655ca[_0x521c98(0x153)]=_0xed97ea[_0x521c98(0xdf)],_0x5655ca['response']=_0x49741f;const _0x5628be=[_0x1e5626,_0x3b75f0,_0x452ee3,_0x5655ca],_0x18dc09=await _0xed97ea['ZKuSy'](generateReport,_0x5628be,_0x4f1d00),_0x492f55=new Date(),_0x1fb78c=_0x492f55[_0x521c98(0x116)]()+'_'+_0xed97ea['sppHw'](_0x492f55['getUTCMonth'](),0x1)+'_'+_0x492f55[_0x521c98(0x1bc)]()+'_'+_0x492f55['getUTCHours']()+'_'+_0x492f55[_0x521c98(0xdb)](),_0x5953b9='log/report_'+_0x1fb78c+_0x521c98(0xfe);fs[_0x521c98(0x1c1)](_0x5953b9,_0x18dc09,_0xed97ea[_0x521c98(0x154)]),logger[_0x521c98(0x1be)](_0x521c98(0x18e)+_0x5953b9),process[_0x521c98(0x16b)](0x0);}catch(_0x1c7264){let _0x42846a=_0x521c98(0x12a)+_0x1c7264+'\x20';logger['error'](_0x42846a),_0x42846a+='\x0a'+JSON[_0x521c98(0x13a)](_0x1c7264['stack']),logger[_0x521c98(0x17b)](_0x521c98(0x135)+_0x1c7264[_0x521c98(0x111)]);if(_0x3cd7bb){const _0x279ffb={};_0x279ffb['type']=WS_EVENTS[_0x521c98(0x17a)],_0x279ffb['message']=_0x42846a,webSocketUtils[_0x521c98(0x168)](_0x3cd7bb,_0x279ffb,_0xed97ea[_0x521c98(0x190)],!![]);}await webSocketUtils[_0x521c98(0xe0)](0x7d0);const _0x32e842={};_0x32e842[_0x521c98(0xf4)]=_0x42846a,await _0xed97ea[_0x521c98(0x132)](sendInstrumentationEvent,_0xfd4b79,_0xed97ea['VQtfZ'],messageTypes[_0x521c98(0x172)],_0xed97ea['uzPBa'],_0x32e842,_0xfd4b79),process['exit'](0x1);}};
@@ -1 +1 @@
1
- function a18_0x4fea(_0x53c182,_0x5c9ae5){const _0x1b0bb2=a18_0x1b0b();return a18_0x4fea=function(_0x4fea90,_0x252275){_0x4fea90=_0x4fea90-0xb5;let _0x25ce24=_0x1b0bb2[_0x4fea90];return _0x25ce24;},a18_0x4fea(_0x53c182,_0x5c9ae5);}const a18_0x4a1dd5=a18_0x4fea;(function(_0x39af7d,_0x3ed5c4){const _0x16e6af=a18_0x4fea,_0x496921=_0x39af7d();while(!![]){try{const _0x11a710=-parseInt(_0x16e6af(0xcb))/0x1+-parseInt(_0x16e6af(0xb5))/0x2*(parseInt(_0x16e6af(0xbb))/0x3)+parseInt(_0x16e6af(0xb6))/0x4*(-parseInt(_0x16e6af(0xb9))/0x5)+-parseInt(_0x16e6af(0xcc))/0x6*(-parseInt(_0x16e6af(0xb8))/0x7)+parseInt(_0x16e6af(0xbc))/0x8+parseInt(_0x16e6af(0xc1))/0x9*(-parseInt(_0x16e6af(0xc6))/0xa)+parseInt(_0x16e6af(0xbe))/0xb;if(_0x11a710===_0x3ed5c4)break;else _0x496921['push'](_0x496921['shift']());}catch(_0x2907ed){_0x496921['push'](_0x496921['shift']());}}}(a18_0x1b0b,0x66bf0));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x4a1dd5(0xbd));exports[a18_0x4a1dd5(0xc0)]='start',exports[a18_0x4a1dd5(0xc9)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a18_0x4a1dd5(0xc4)]=function(_0x5828f4){const _0x1d0adf=a18_0x4a1dd5,_0x119cc0={};_0x119cc0[_0x1d0adf(0xc8)]=_0x1d0adf(0xc5),_0x119cc0[_0x1d0adf(0xc2)]=_0x1d0adf(0xbf);const _0xa47919=_0x119cc0;return _0x5828f4[_0x1d0adf(0xb7)](HELP_HEADER_MESSAGE[_0x1d0adf(0xc3)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0xa47919[_0x1d0adf(0xc8)])[_0x1d0adf(0xca)]()[_0x1d0adf(0xba)]()[_0x1d0adf(0xcd)]()[_0x1d0adf(0xbf)](_0xa47919[_0x1d0adf(0xc2)]);},exports[a18_0x4a1dd5(0xc7)]=function(_0x19dceb){};function a18_0x1b0b(){const _0x309dbd=['start','builder','start_commands','1520kemXCc','handler','tjXbI','desc','demandCommand','708188kGKkzU','6IpBNeP','strict','52Oyrgqr','1640036YNueIh','usage','1376711CEZezP','10nRZyVW','recommendCommands','70278fAEXfT','5290192xHsHij','../config/constants','19240397XGKOYH','help','command','2898qQlyJD','pBiDs'];a18_0x1b0b=function(){return _0x309dbd;};return a18_0x1b0b();}
1
+ const a18_0x3726cd=a18_0x47a1;(function(_0x51c5cf,_0xe4170e){const _0x233a19=a18_0x47a1,_0x1790b9=_0x51c5cf();while(!![]){try{const _0x1f6458=parseInt(_0x233a19(0x16e))/0x1*(-parseInt(_0x233a19(0x165))/0x2)+-parseInt(_0x233a19(0x177))/0x3*(-parseInt(_0x233a19(0x176))/0x4)+-parseInt(_0x233a19(0x169))/0x5+-parseInt(_0x233a19(0x175))/0x6+parseInt(_0x233a19(0x16f))/0x7*(-parseInt(_0x233a19(0x166))/0x8)+-parseInt(_0x233a19(0x172))/0x9*(-parseInt(_0x233a19(0x16b))/0xa)+-parseInt(_0x233a19(0x16c))/0xb*(-parseInt(_0x233a19(0x171))/0xc);if(_0x1f6458===_0xe4170e)break;else _0x1790b9['push'](_0x1790b9['shift']());}catch(_0x1f37cc){_0x1790b9['push'](_0x1790b9['shift']());}}}(a18_0x1190,0xc5047));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x3726cd(0x174));function a18_0x47a1(_0x53430e,_0x4be62e){const _0x1190bd=a18_0x1190();return a18_0x47a1=function(_0x47a13c,_0x42a56c){_0x47a13c=_0x47a13c-0x163;let _0x133fce=_0x1190bd[_0x47a13c];return _0x133fce;},a18_0x47a1(_0x53430e,_0x4be62e);}exports[a18_0x3726cd(0x17a)]='start',exports['desc']=a18_0x3726cd(0x173),exports[a18_0x3726cd(0x164)]=function(_0x336b2b){const _0x17b2c4=a18_0x3726cd,_0x587a69={};_0x587a69[_0x17b2c4(0x16d)]=_0x17b2c4(0x16a),_0x587a69['UxCou']=_0x17b2c4(0x163);const _0x2ba671=_0x587a69;return _0x336b2b['usage'](HELP_HEADER_MESSAGE['start'])[_0x17b2c4(0x167)](HELP_FOOTER_MESSAGE)[_0x17b2c4(0x179)](_0x2ba671[_0x17b2c4(0x16d)])[_0x17b2c4(0x170)]()['recommendCommands']()['strict']()[_0x17b2c4(0x163)](_0x2ba671[_0x17b2c4(0x178)]);},exports[a18_0x3726cd(0x168)]=function(_0x564b89){};function a18_0x1190(){const _0x11f426=['start_commands','417590CGXDvc','32743227cDjBIZ','dleAs','43577IBqWYc','33656KYTtmp','demandCommand','12hFpSfT','117HznOus','Start\x20an\x20existing\x20Automation\x20grid.','../config/constants','5513124NasPBv','4GTtArR','1227864OhPrOH','UxCou','commandDir','command','help','builder','4ZZZwRJ','1472HWGZDE','epilogue','handler','6155745anEgbu'];a18_0x1190=function(){return _0x11f426;};return a18_0x1190();}
@@ -1 +1 @@
1
- function a19_0x3bd6(_0x505941,_0x2b1e0f){const _0x208674=a19_0x2086();return a19_0x3bd6=function(_0x3bd6d0,_0xe33c98){_0x3bd6d0=_0x3bd6d0-0xbf;let _0x2ae8e1=_0x208674[_0x3bd6d0];return _0x2ae8e1;},a19_0x3bd6(_0x505941,_0x2b1e0f);}function a19_0x2086(){const _0x4b909c=['message','invalid-grid-id','epilogue','server-error','name','readFileSync','reconnecting-websocket','statusCode','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','info','grid-id','replace','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','Grid\x20started','bstackAccesskey','string','skip-tls-cert-verify','18VwIHln','region','../../utils/webSocketUtils','stack','error','help','wWExS','clusterName','type','IpArR','JfRyZ','connectionTimeout','sjuCY','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','WebSocket','sQvTO','ERROR','VRwoE','LfcDh','10QDHNOv','clusterRegion','grid','body','170HZbqnq','fqGSQ','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/gridComponents','1223382RXIGxW','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','description','../../config/logger','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','INFO','2YONsPx','unauthorised','747CowVoN','Adding\x20Websocket\x20listeners','../../utils/instrumentationUtils','gridId','FbhHr','cloudProvider','RVMgI','parse','13chPvuh','gjHzy','handler','../../cloudproviders/utils','JzUar','Browserstack','exit','debug','scZGs','rwGUQ','jsDJv','124172UuJUdP','KOFvW','1217880chTDNX','75845eLWpOL','nPafD','2798940bxLmtH','stringify','pManH','password','options','AKvGe','builder','bstackUsername','DwngC','start','init-not-called','start-grid-called','addListeners','Starting\x20grid\x20','boolean','Skip\x20insecure\x20cert\x20verification.','username','hxXkD','<PasswordPlaceholder>','desc','899408glsYmC','7vAyYer','QbnUF','PNMPU'];a19_0x2086=function(){return _0x4b909c;};return a19_0x2086();}const a19_0x1ac660=a19_0x3bd6;(function(_0x1eff9e,_0x4dd50b){const _0x2801eb=a19_0x3bd6,_0x42412c=_0x1eff9e();while(!![]){try{const _0x5a0c00=parseInt(_0x2801eb(0xbf))/0x1*(-parseInt(_0x2801eb(0x121))/0x2)+parseInt(_0x2801eb(0x100))/0x3*(parseInt(_0x2801eb(0xd2))/0x4)+parseInt(_0x2801eb(0x113))/0x5*(parseInt(_0x2801eb(0x11b))/0x6)+parseInt(_0x2801eb(0xec))/0x7*(-parseInt(_0x2801eb(0xeb))/0x8)+-parseInt(_0x2801eb(0xd4))/0x9+-parseInt(_0x2801eb(0x117))/0xa*(-parseInt(_0x2801eb(0xd5))/0xb)+parseInt(_0x2801eb(0xd7))/0xc*(-parseInt(_0x2801eb(0xc7))/0xd);if(_0x5a0c00===_0x4dd50b)break;else _0x42412c['push'](_0x42412c['shift']());}catch(_0x5d9639){_0x42412c['push'](_0x42412c['shift']());}}}(a19_0x2086,0x38099));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x1ac660(0xf5)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x1ac660(0x11e)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x1ac660(0x11a)),{sendInstrumentationEvent}=require(a19_0x1ac660(0xc1)),webSocketUtils=require(a19_0x1ac660(0x102)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0x1ac660(0xca));exports['command']=a19_0x1ac660(0x115),exports[a19_0x1ac660(0xea)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a19_0x1ac660(0xdd)]=function(_0x26010a){const _0x36f504=a19_0x1ac660,_0x3f3574={};_0x3f3574[_0x36f504(0xd1)]=_0x36f504(0x10d),_0x3f3574[_0x36f504(0xd3)]=_0x36f504(0xfe),_0x3f3574[_0x36f504(0xdc)]=_0x36f504(0xe6),_0x3f3574['pManH']=_0x36f504(0xe5),_0x3f3574[_0x36f504(0xc5)]='help';const _0xe01cd=_0x3f3574,_0xa79dc6={};_0xa79dc6[_0x36f504(0x11d)]=_0xe01cd[_0x36f504(0xd1)],_0xa79dc6[_0x36f504(0x108)]=_0xe01cd[_0x36f504(0xd3)];const _0x5d5cce={};_0x5d5cce[_0x36f504(0x11d)]=_0xe01cd[_0x36f504(0xdc)],_0x5d5cce['type']=_0xe01cd[_0x36f504(0xd9)],_0x5d5cce['default']=![];const _0x53670a={};return _0x53670a[_0x36f504(0xf9)]=_0xa79dc6,_0x53670a[_0x36f504(0xff)]=_0x5d5cce,_0x26010a['usage'](HELP_HEADER_MESSAGE[_0x36f504(0xe0)])[_0x36f504(0xf1)](HELP_FOOTER_MESSAGE)[_0x36f504(0xdb)](_0x53670a)[_0x36f504(0x105)](_0xe01cd[_0x36f504(0xc5)])['argv'];},exports[a19_0x1ac660(0xc9)]=async function(_0x1cca56){const _0x52d7ff=a19_0x1ac660,_0x1c833e={'PNMPU':_0x52d7ff(0xfb),'IpArR':function(_0x26ae46){return _0x26ae46();},'sjuCY':_0x52d7ff(0x119),'JzUar':function(_0xa68fbc,_0x37fb65,_0x4f5cb5,_0x2bae29,_0x47715a,_0x5f10b0,_0x2e13d6){return _0xa68fbc(_0x37fb65,_0x4f5cb5,_0x2bae29,_0x47715a,_0x5f10b0,_0x2e13d6);},'fqGSQ':_0x52d7ff(0xe2),'FbhHr':_0x52d7ff(0xe1),'QbnUF':function(_0x1de101,_0x2fa43b,_0x58365c,_0xec2f71,_0x245628,_0x133e46,_0x5b2796){return _0x1de101(_0x2fa43b,_0x58365c,_0xec2f71,_0x245628,_0x133e46,_0x5b2796);},'rwGUQ':'<UsernamePlaceholder>','jOVkH':_0x52d7ff(0xe9),'JCZBN':_0x52d7ff(0xc0),'JfRyZ':function(_0x182c54,_0x4bb610,_0x5f4795,_0x544bd9){return _0x182c54(_0x4bb610,_0x5f4795,_0x544bd9);},'wWExS':function(_0x54ed3e,_0x1ca920,_0x3d5759){return _0x54ed3e(_0x1ca920,_0x3d5759);},'hxXkD':_0x52d7ff(0xfc),'LfcDh':function(_0x40fbe5,_0x41af8f){return _0x40fbe5===_0x41af8f;},'DwngC':_0x52d7ff(0x11c),'VRwoE':function(_0x2b328a,_0x44a47b,_0x36e58e,_0x407fa4,_0x1b3475,_0xafbe75,_0x244f95){return _0x2b328a(_0x44a47b,_0x36e58e,_0x407fa4,_0x1b3475,_0xafbe75,_0x244f95);},'sQvTO':_0x52d7ff(0x122),'nPafD':function(_0x2b8011,_0x268b91,_0x19be53,_0x750752,_0x2fac89,_0x1c9414,_0x243a22){return _0x2b8011(_0x268b91,_0x19be53,_0x750752,_0x2fac89,_0x1c9414,_0x243a22);},'scZGs':_0x52d7ff(0xf0),'gjHzy':_0x52d7ff(0xf2)};let _0x762478;try{!_0x1cca56['gridId']&&(logger[_0x52d7ff(0x104)](_0x1c833e[_0x52d7ff(0xee)]),process[_0x52d7ff(0xcd)](0x1));!fs['existsSync'](_0x1c833e[_0x52d7ff(0x109)](getCredentialsPath))&&(logger[_0x52d7ff(0x104)](_0x1c833e[_0x52d7ff(0x10c)]),await _0x1c833e[_0x52d7ff(0xcb)](sendInstrumentationEvent,_0x1cca56,_0x1c833e[_0x52d7ff(0x118)],messageTypes[_0x52d7ff(0x110)],_0x1c833e[_0x52d7ff(0xc3)],null,_0x1cca56),process[_0x52d7ff(0xcd)](0x1));logger[_0x52d7ff(0xf8)](_0x52d7ff(0xe4)+_0x1cca56[_0x52d7ff(0xc2)]),await _0x1c833e[_0x52d7ff(0xed)](sendInstrumentationEvent,_0x1cca56,_0x1c833e['fqGSQ'],messageTypes[_0x52d7ff(0x120)],null,null,_0x1cca56);const _0x30eb12=JSON[_0x52d7ff(0xc6)](fs[_0x52d7ff(0xf4)](_0x1c833e[_0x52d7ff(0x109)](getCredentialsPath)));global_registry[_0x52d7ff(0xde)]=_0x30eb12['Browserstack'][_0x52d7ff(0xe7)],global_registry[_0x52d7ff(0xfd)]=_0x30eb12[_0x52d7ff(0xcc)][_0x52d7ff(0xda)];const _0x1ed903=WS_ENDPOINT[_0x52d7ff(0xfa)](_0x1c833e[_0x52d7ff(0xd0)],_0x30eb12['Browserstack'][_0x52d7ff(0xe7)])['replace'](_0x1c833e['jOVkH'],_0x30eb12['Browserstack'][_0x52d7ff(0xda)]),_0x4548dc={};_0x4548dc[_0x52d7ff(0x10e)]=ws,_0x4548dc[_0x52d7ff(0x10b)]=0x36ee80,_0x762478=new ReconnectingWebSocket(_0x1ed903,[],_0x4548dc),logger[_0x52d7ff(0xce)](_0x1c833e['JCZBN']),webSocketUtils[_0x52d7ff(0xe3)](_0x762478,_0x1cca56['user'],_0x1cca56['password']);const [_0x2b162b,_0x1f181e]=await _0x1c833e[_0x52d7ff(0x10a)](getGridDetails,_0x30eb12['Browserstack']['username'],_0x30eb12[_0x52d7ff(0xcc)][_0x52d7ff(0xda)],_0x1cca56[_0x52d7ff(0xc2)]);if(_0x1f181e){const _0x3e1387=_0x1f181e[_0x52d7ff(0xf8)];global_registry[_0x52d7ff(0xc4)]=_0x3e1387[_0x52d7ff(0xc4)],global_registry[_0x52d7ff(0x114)]=_0x3e1387[_0x52d7ff(0x101)],global_registry[_0x52d7ff(0x107)]=_0x3e1387[_0x52d7ff(0x107)];const _0x505e68=await _0x1c833e[_0x52d7ff(0xcb)](getCloudProviderObject,_0x3e1387[_0x52d7ff(0xc4)],_0x3e1387[_0x52d7ff(0x107)],_0x3e1387['name'],_0x762478,webSocketUtils,_0x1cca56),[_0x1bbf4a,_0x27aabb,_0x3d7a7c,_0x77f88e,_0x28802a,_0x345958]=await _0x1c833e[_0x52d7ff(0x106)](createK8sClient,_0x505e68,_0x1cca56['skipTlsCertVerify']);await _0x1c833e[_0x52d7ff(0x106)](scaleUpHubDeployment,_0x27aabb,_0x3e1387[_0x52d7ff(0xf3)]),logger[_0x52d7ff(0xf8)](_0x1c833e[_0x52d7ff(0xe8)]),process[_0x52d7ff(0xcd)](0x0);}_0x1c833e[_0x52d7ff(0x112)](_0x2b162b[_0x52d7ff(0xf6)],0x191)&&(logger['error'](_0x1c833e[_0x52d7ff(0xdf)]),await _0x1c833e[_0x52d7ff(0x111)](sendInstrumentationEvent,_0x1cca56,_0x1c833e[_0x52d7ff(0x118)],messageTypes['ERROR'],_0x1c833e[_0x52d7ff(0x10f)],null,_0x1cca56),process[_0x52d7ff(0xcd)](0x1)),_0x1c833e['LfcDh'](_0x2b162b[_0x52d7ff(0xf6)],0x190)&&(logger['error'](JSON[_0x52d7ff(0xc6)](_0x2b162b[_0x52d7ff(0x116)])[_0x52d7ff(0xef)]),await _0x1c833e[_0x52d7ff(0xd6)](sendInstrumentationEvent,_0x1cca56,_0x1c833e['fqGSQ'],messageTypes[_0x52d7ff(0x110)],_0x1c833e[_0x52d7ff(0xcf)],null,_0x1cca56),process[_0x52d7ff(0xcd)](0x1)),logger[_0x52d7ff(0x104)](_0x52d7ff(0xf7)+JSON['stringify'](_0x2b162b)),await _0x1c833e[_0x52d7ff(0x111)](sendInstrumentationEvent,_0x1cca56,_0x1c833e[_0x52d7ff(0x118)],messageTypes[_0x52d7ff(0x110)],_0x1c833e[_0x52d7ff(0xc8)],_0x2b162b,_0x1cca56),process[_0x52d7ff(0xcd)](0x1);}catch(_0x14f8f1){const _0x44a426=_0x52d7ff(0x11f)+_0x14f8f1+'\x20\x0a'+JSON[_0x52d7ff(0xd8)](_0x14f8f1[_0x52d7ff(0x103)])+'\x20';logger[_0x52d7ff(0x104)](_0x44a426),process[_0x52d7ff(0xcd)](0x1);}};
1
+ const a19_0x132e1d=a19_0x2761;(function(_0x4c360c,_0x5d21f2){const _0x32a72f=a19_0x2761,_0x9a2c9e=_0x4c360c();while(!![]){try{const _0x4b95aa=-parseInt(_0x32a72f(0xeb))/0x1*(-parseInt(_0x32a72f(0xf7))/0x2)+-parseInt(_0x32a72f(0xf8))/0x3*(-parseInt(_0x32a72f(0xd3))/0x4)+parseInt(_0x32a72f(0x108))/0x5+parseInt(_0x32a72f(0xc5))/0x6*(-parseInt(_0x32a72f(0xd0))/0x7)+-parseInt(_0x32a72f(0xee))/0x8*(parseInt(_0x32a72f(0xe2))/0x9)+parseInt(_0x32a72f(0xc4))/0xa+-parseInt(_0x32a72f(0xcf))/0xb;if(_0x4b95aa===_0x5d21f2)break;else _0x9a2c9e['push'](_0x9a2c9e['shift']());}catch(_0x40d39b){_0x9a2c9e['push'](_0x9a2c9e['shift']());}}}(a19_0x23cc,0x83d30));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x132e1d(0x10a)),{logger}=require(a19_0x132e1d(0xde)),{getCredentialsPath,getGridDetails}=require(a19_0x132e1d(0xd1)),{scaleUpHubDeployment}=require(a19_0x132e1d(0xe5)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x132e1d(0xd8)),{createK8sClient}=require(a19_0x132e1d(0xfb)),{getCloudProviderObject}=require(a19_0x132e1d(0xc0));function a19_0x23cc(){const _0xe412b9=['string','Start\x20an\x20existing\x20Automation\x20grid.','INFO','type','info','debug','ERROR','<PasswordPlaceholder>','XZxXR','../../cloudproviders/utils','Grid\x20started','kyuQl','name','10758290QKxvwo','240lnmxsa','handler','GpxNe','iJXIW','usage','RBmxL','unauthorised','builder','Browserstack','replace','23932579IRfvFF','75523kDzXXJ','../../utils/utilityMethods','username','4DBEazI','readFileSync','Bqvan','CRxVW','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../utils/webSocketUtils','message','stringify','gridId','jPaht','uMpPc','../../config/logger','help','DKtbO','server-error','747ghhyyL','epilogue','KXJgI','../../utils/gridComponents','ZYyoS','WISJi','grid','exit','YEiHg','1LZzxEp','region','zVBVZ','2920VdCkEG','desc','clusterName','skip-tls-cert-verify','start','GnZGS','cHqIx','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','rgYkX','1823020vujSol','1130601WaEZnZ','addListeners','pLbaY','../../utils/createk8sClient','description','argv','start-grid-called','WebSocket','YeKxW','bstackAccesskey','grid-id','cloudProvider','hONPf','parse','Starting\x20grid\x20','existsSync','4066450ZXSAJy','clusterRegion','../../config/constants','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','invalid-grid-id','error','BhBTI','statusCode','mwwDV','stack','password','oUWwN','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'];a19_0x23cc=function(){return _0xe412b9;};return a19_0x23cc();}function a19_0x2761(_0x4d96fe,_0x37ebb2){const _0x23cc08=a19_0x23cc();return a19_0x2761=function(_0x276140,_0x1b5b81){_0x276140=_0x276140-0xbb;let _0x11e88d=_0x23cc08[_0x276140];return _0x11e88d;},a19_0x2761(_0x4d96fe,_0x37ebb2);}exports['command']=a19_0x132e1d(0xe8),exports[a19_0x132e1d(0xef)]=a19_0x132e1d(0x116),exports[a19_0x132e1d(0xcc)]=function(_0x1120f4){const _0x50d377=a19_0x132e1d,_0x544ecf={};_0x544ecf['kyuQl']=_0x50d377(0x10b),_0x544ecf[_0x50d377(0xdd)]=_0x50d377(0x115),_0x544ecf[_0x50d377(0xfa)]='Skip\x20insecure\x20cert\x20verification.',_0x544ecf['mwwDV']='boolean',_0x544ecf[_0x50d377(0xc8)]=_0x50d377(0xdf);const _0x416e41=_0x544ecf,_0x348c6c={};_0x348c6c[_0x50d377(0xfc)]=_0x416e41[_0x50d377(0xc2)],_0x348c6c[_0x50d377(0x118)]=_0x416e41['uMpPc'];const _0x52712b={};_0x52712b['description']=_0x416e41['pLbaY'],_0x52712b[_0x50d377(0x118)]=_0x416e41[_0x50d377(0x110)],_0x52712b['default']=![];const _0x2e9aac={};return _0x2e9aac[_0x50d377(0x102)]=_0x348c6c,_0x2e9aac[_0x50d377(0xf1)]=_0x52712b,_0x1120f4[_0x50d377(0xc9)](HELP_HEADER_MESSAGE[_0x50d377(0xf2)])[_0x50d377(0xe3)](HELP_FOOTER_MESSAGE)['options'](_0x2e9aac)[_0x50d377(0xdf)](_0x416e41[_0x50d377(0xc8)])[_0x50d377(0xfd)];},exports[a19_0x132e1d(0xc6)]=async function(_0x2cef0a){const _0x3abc03=a19_0x132e1d,_0x395fe8={'GpxNe':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','GnZGS':function(_0x28f108){return _0x28f108();},'KXJgI':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','YeKxW':function(_0x5fe78e,_0x455e92,_0x15a95b,_0xc3fb64,_0x1dbf49,_0x1cb07b,_0x54eeb9){return _0x5fe78e(_0x455e92,_0x15a95b,_0xc3fb64,_0x1dbf49,_0x1cb07b,_0x54eeb9);},'RBmxL':_0x3abc03(0xfe),'WISJi':'init-not-called','rgYkX':function(_0x322190,_0x229385,_0x25aaaa,_0x4e2fed,_0x4f8720,_0x3a9b2d,_0x4d9cd6){return _0x322190(_0x229385,_0x25aaaa,_0x4e2fed,_0x4f8720,_0x3a9b2d,_0x4d9cd6);},'ytibx':function(_0xe9a5f6){return _0xe9a5f6();},'hONPf':'<UsernamePlaceholder>','Bqvan':_0x3abc03(0xbe),'BhBTI':'Adding\x20Websocket\x20listeners','XQloy':function(_0x4461d8,_0x42af43,_0x349a85,_0x5b0e18){return _0x4461d8(_0x42af43,_0x349a85,_0x5b0e18);},'jPaht':function(_0x3ccd35,_0x7aa6b9,_0x1abfaa){return _0x3ccd35(_0x7aa6b9,_0x1abfaa);},'YFLDW':function(_0x57a0f4,_0x4f5177,_0x255e68){return _0x57a0f4(_0x4f5177,_0x255e68);},'XZxXR':_0x3abc03(0xc1),'YEiHg':function(_0x23d784,_0x39a9ee){return _0x23d784===_0x39a9ee;},'oUWwN':_0x3abc03(0xd7),'DKtbO':function(_0xaa0497,_0x186e45,_0x3a330e,_0x2ce5ed,_0x947eb9,_0x398496,_0x170737){return _0xaa0497(_0x186e45,_0x3a330e,_0x2ce5ed,_0x947eb9,_0x398496,_0x170737);},'cHqIx':_0x3abc03(0xcb),'ZYyoS':_0x3abc03(0x10c),'CRxVW':function(_0x3dbdbc,_0x4673b2,_0x3f1b33,_0x302362,_0xe1345a,_0x483281,_0x3a702c){return _0x3dbdbc(_0x4673b2,_0x3f1b33,_0x302362,_0xe1345a,_0x483281,_0x3a702c);},'zVBVZ':_0x3abc03(0xe1)};let _0x2cc8f5;try{!_0x2cef0a[_0x3abc03(0xdb)]&&(logger[_0x3abc03(0x10d)](_0x395fe8[_0x3abc03(0xc7)]),process[_0x3abc03(0xe9)](0x1));!fs[_0x3abc03(0x107)](_0x395fe8[_0x3abc03(0xf3)](getCredentialsPath))&&(logger['error'](_0x395fe8[_0x3abc03(0xe4)]),await _0x395fe8[_0x3abc03(0x100)](sendInstrumentationEvent,_0x2cef0a,_0x395fe8[_0x3abc03(0xca)],messageTypes[_0x3abc03(0xbd)],_0x395fe8[_0x3abc03(0xe7)],null,_0x2cef0a),process[_0x3abc03(0xe9)](0x1));logger[_0x3abc03(0xbb)](_0x3abc03(0x106)+_0x2cef0a[_0x3abc03(0xdb)]),await _0x395fe8['rgYkX'](sendInstrumentationEvent,_0x2cef0a,_0x395fe8[_0x3abc03(0xca)],messageTypes[_0x3abc03(0x117)],null,null,_0x2cef0a);const _0x58ad86=JSON[_0x3abc03(0x105)](fs[_0x3abc03(0xd4)](_0x395fe8['ytibx'](getCredentialsPath)));global_registry['bstackUsername']=_0x58ad86[_0x3abc03(0xcd)]['username'],global_registry[_0x3abc03(0x101)]=_0x58ad86[_0x3abc03(0xcd)][_0x3abc03(0x112)];const _0x2b08ff=WS_ENDPOINT[_0x3abc03(0xce)](_0x395fe8[_0x3abc03(0x104)],_0x58ad86[_0x3abc03(0xcd)][_0x3abc03(0xd2)])[_0x3abc03(0xce)](_0x395fe8[_0x3abc03(0xd5)],_0x58ad86[_0x3abc03(0xcd)][_0x3abc03(0x112)]),_0x4392c0={};_0x4392c0[_0x3abc03(0xff)]=ws,_0x4392c0['connectionTimeout']=0x36ee80,_0x2cc8f5=new ReconnectingWebSocket(_0x2b08ff,[],_0x4392c0),logger[_0x3abc03(0xbc)](_0x395fe8[_0x3abc03(0x10e)]),webSocketUtils[_0x3abc03(0xf9)](_0x2cc8f5,_0x2cef0a['user'],_0x2cef0a[_0x3abc03(0x112)]);const [_0x3d5b5c,_0xc4400b]=await _0x395fe8['XQloy'](getGridDetails,_0x58ad86['Browserstack'][_0x3abc03(0xd2)],_0x58ad86[_0x3abc03(0xcd)][_0x3abc03(0x112)],_0x2cef0a[_0x3abc03(0xdb)]);if(_0xc4400b){const _0x2adde7=_0xc4400b['info'];global_registry[_0x3abc03(0x103)]=_0x2adde7[_0x3abc03(0x103)],global_registry[_0x3abc03(0x109)]=_0x2adde7[_0x3abc03(0xec)],global_registry[_0x3abc03(0xf0)]=_0x2adde7[_0x3abc03(0xf0)];const _0x4054e6=await _0x395fe8[_0x3abc03(0xf6)](getCloudProviderObject,_0x2adde7[_0x3abc03(0x103)],_0x2adde7[_0x3abc03(0xf0)],_0x2adde7[_0x3abc03(0xc3)],_0x2cc8f5,webSocketUtils,_0x2cef0a),[_0x5b8c96,_0x163d0f,_0x2ca802,_0x57a947,_0x383e8e,_0x4513fe]=await _0x395fe8[_0x3abc03(0xdc)](createK8sClient,_0x4054e6,_0x2cef0a['skipTlsCertVerify']);await _0x395fe8['YFLDW'](scaleUpHubDeployment,_0x163d0f,_0x2adde7[_0x3abc03(0xc3)]),logger['info'](_0x395fe8[_0x3abc03(0xbf)]),process['exit'](0x0);}_0x395fe8[_0x3abc03(0xea)](_0x3d5b5c[_0x3abc03(0x10f)],0x191)&&(logger['error'](_0x395fe8[_0x3abc03(0x113)]),await _0x395fe8[_0x3abc03(0xe0)](sendInstrumentationEvent,_0x2cef0a,_0x395fe8[_0x3abc03(0xca)],messageTypes[_0x3abc03(0xbd)],_0x395fe8[_0x3abc03(0xf4)],null,_0x2cef0a),process[_0x3abc03(0xe9)](0x1)),_0x395fe8['YEiHg'](_0x3d5b5c[_0x3abc03(0x10f)],0x190)&&(logger['error'](JSON[_0x3abc03(0x105)](_0x3d5b5c['body'])[_0x3abc03(0xd9)]),await _0x395fe8[_0x3abc03(0x100)](sendInstrumentationEvent,_0x2cef0a,_0x395fe8[_0x3abc03(0xca)],messageTypes[_0x3abc03(0xbd)],_0x395fe8[_0x3abc03(0xe6)],null,_0x2cef0a),process[_0x3abc03(0xe9)](0x1)),logger[_0x3abc03(0x10d)](_0x3abc03(0x114)+JSON[_0x3abc03(0xda)](_0x3d5b5c)),await _0x395fe8[_0x3abc03(0xd6)](sendInstrumentationEvent,_0x2cef0a,_0x395fe8[_0x3abc03(0xca)],messageTypes[_0x3abc03(0xbd)],_0x395fe8[_0x3abc03(0xed)],_0x3d5b5c,_0x2cef0a),process[_0x3abc03(0xe9)](0x1);}catch(_0x487bc4){const _0x418dc9=_0x3abc03(0xf5)+_0x487bc4+'\x20\x0a'+JSON[_0x3abc03(0xda)](_0x487bc4[_0x3abc03(0x111)])+'\x20';logger[_0x3abc03(0x10d)](_0x418dc9),process[_0x3abc03(0xe9)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x4118eb=a20_0x430d;(function(_0x315b2d,_0x1242ac){const _0x380cd5=a20_0x430d,_0x50ba8e=_0x315b2d();while(!![]){try{const _0x17d2e5=parseInt(_0x380cd5(0x191))/0x1+-parseInt(_0x380cd5(0x186))/0x2*(-parseInt(_0x380cd5(0x184))/0x3)+-parseInt(_0x380cd5(0x18b))/0x4*(-parseInt(_0x380cd5(0x188))/0x5)+parseInt(_0x380cd5(0x185))/0x6*(parseInt(_0x380cd5(0x183))/0x7)+-parseInt(_0x380cd5(0x196))/0x8+parseInt(_0x380cd5(0x18e))/0x9*(-parseInt(_0x380cd5(0x198))/0xa)+-parseInt(_0x380cd5(0x192))/0xb*(-parseInt(_0x380cd5(0x181))/0xc);if(_0x17d2e5===_0x1242ac)break;else _0x50ba8e['push'](_0x50ba8e['shift']());}catch(_0x1be8bf){_0x50ba8e['push'](_0x50ba8e['shift']());}}}(a20_0x4f55,0x27f07));function a20_0x430d(_0x38af74,_0x52fdbc){const _0x4f5529=a20_0x4f55();return a20_0x430d=function(_0x430d27,_0x9f22d7){_0x430d27=_0x430d27-0x180;let _0x2efbf0=_0x4f5529[_0x430d27];return _0x2efbf0;},a20_0x430d(_0x38af74,_0x52fdbc);}function a20_0x4f55(){const _0x20317f=['4156cLTKbs','473vsTvpE','epilogue','strict','demandCommand','1566784BUpBNd','JzlIA','321350YXxRVU','OjdyC','81516JuzFqk','Stop\x20a\x20running\x20Automation\x20grid.','7931kApVhH','24747kHQayA','270EgVnrp','10DamLjf','../config/constants','15445uBzPbl','help','commandDir','4CotCOy','handler','stop','9wHbRjM','builder','usage'];a20_0x4f55=function(){return _0x20317f;};return a20_0x4f55();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x4118eb(0x187));exports['command']='stop',exports['desc']=a20_0x4118eb(0x182),exports[a20_0x4118eb(0x18f)]=function(_0x2aac0a){const _0x1424eb=a20_0x4118eb,_0x3c50bf={};_0x3c50bf[_0x1424eb(0x180)]='stop_commands',_0x3c50bf[_0x1424eb(0x197)]='help';const _0x246c4b=_0x3c50bf;return _0x2aac0a[_0x1424eb(0x190)](HELP_HEADER_MESSAGE[_0x1424eb(0x18d)])[_0x1424eb(0x193)](HELP_FOOTER_MESSAGE)[_0x1424eb(0x18a)](_0x246c4b['OjdyC'])[_0x1424eb(0x195)]()['recommendCommands']()[_0x1424eb(0x194)]()[_0x1424eb(0x189)](_0x246c4b['JzlIA']);},exports[a20_0x4118eb(0x18c)]=function(_0x3051bf){};
1
+ function a20_0x254f(_0x1b3b00,_0x30456b){const _0x14ad3e=a20_0x14ad();return a20_0x254f=function(_0x254f24,_0x53a3f7){_0x254f24=_0x254f24-0x12d;let _0xe421e3=_0x14ad3e[_0x254f24];return _0xe421e3;},a20_0x254f(_0x1b3b00,_0x30456b);}const a20_0x319cde=a20_0x254f;(function(_0x4215e8,_0x2e1145){const _0x3f18ee=a20_0x254f,_0x489ea4=_0x4215e8();while(!![]){try{const _0x28e2e4=parseInt(_0x3f18ee(0x139))/0x1+-parseInt(_0x3f18ee(0x132))/0x2*(parseInt(_0x3f18ee(0x137))/0x3)+parseInt(_0x3f18ee(0x133))/0x4+-parseInt(_0x3f18ee(0x12e))/0x5+parseInt(_0x3f18ee(0x140))/0x6*(-parseInt(_0x3f18ee(0x136))/0x7)+-parseInt(_0x3f18ee(0x13f))/0x8+-parseInt(_0x3f18ee(0x143))/0x9*(parseInt(_0x3f18ee(0x13a))/0xa);if(_0x28e2e4===_0x2e1145)break;else _0x489ea4['push'](_0x489ea4['shift']());}catch(_0x1e85a8){_0x489ea4['push'](_0x489ea4['shift']());}}}(a20_0x14ad,0xb2352));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x319cde(0x13b));exports[a20_0x319cde(0x13c)]='stop',exports[a20_0x319cde(0x131)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x319cde(0x142)]=function(_0x575fc5){const _0x525305=a20_0x319cde,_0x4ab913={};_0x4ab913[_0x525305(0x13e)]=_0x525305(0x12f),_0x4ab913[_0x525305(0x141)]=_0x525305(0x135);const _0x17fc60=_0x4ab913;return _0x575fc5[_0x525305(0x12d)](HELP_HEADER_MESSAGE[_0x525305(0x138)])[_0x525305(0x130)](HELP_FOOTER_MESSAGE)['commandDir'](_0x17fc60[_0x525305(0x13e)])[_0x525305(0x134)]()[_0x525305(0x13d)]()[_0x525305(0x144)]()['help'](_0x17fc60[_0x525305(0x141)]);},exports['handler']=function(_0x139335){};function a20_0x14ad(){const _0x34dbf8=['../config/constants','command','recommendCommands','LGyVq','2072264lMtkLD','544458JyaFGS','AoUaJ','builder','103482SqBhQx','strict','usage','212125iixJlP','stop_commands','epilogue','desc','4GlJVqp','5526572WUEzMK','demandCommand','help','28EwRMRu','1052034akITRw','stop','771571flhCWD','50KPqAzX'];a20_0x14ad=function(){return _0x34dbf8;};return a20_0x14ad();}
@@ -1 +1 @@
1
- const a21_0x16d6b8=a21_0x488e;function a21_0x9a97(){const _0x4e06b9=['jVYJO','223544zERlCA','replace','parse','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','skipTlsCertVerify','existsSync','error','options','cloudProvider','skip-tls-cert-verify','Stopping\x20grid\x20','GiILi','string','VonyX','Adding\x20Websocket\x20listeners','../../utils/utilityMethods','clusterName','grid','init-not-called','ERROR','471079vKRfiE','gridId','sJrFB','15YRJpZa','clusterRegion','username','Grid\x20stoppped.','<UsernamePlaceholder>','statusCode','DXDOk','description','stringify','invalid-grid-id','debug','JaZhr','Skip\x20insecure\x20cert\x20verification.','pYqaO','teeUC','default','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','9540720Zgkjhq','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','EmqJx','reconnecting-websocket','../../config/constants','152898uIDZgw','exit','1201268NFpQQE','body','AvBzp','ULnpS','info','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','user','rtTxW','kUWAy','argv','WebSocket','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','dQgvG','handler','qmbro','bstackUsername','name','command','<PasswordPlaceholder>','server-error','usage','grid-id','stack','builder','help','hPtPm','jUumQ','178520vbyxJE','../../utils/gridComponents','type','iEAqc','desc','3nQuAyl','INFO','../../utils/createk8sClient','readFileSync','442182IavOVl','password','../../utils/instrumentationUtils','Browserstack','../../cloudproviders/utils','36bfTVku','stop-grid-called'];a21_0x9a97=function(){return _0x4e06b9;};return a21_0x9a97();}(function(_0x4703ef,_0x3151e0){const _0x1aabc1=a21_0x488e,_0x50c7a5=_0x4703ef();while(!![]){try{const _0x217fa1=-parseInt(_0x1aabc1(0xaf))/0x1+parseInt(_0x1aabc1(0xed))/0x2*(parseInt(_0x1aabc1(0xb4))/0x3)+-parseInt(_0x1aabc1(0xef))/0x4+parseInt(_0x1aabc1(0xd7))/0x5*(-parseInt(_0x1aabc1(0xb8))/0x6)+-parseInt(_0x1aabc1(0xd4))/0x7+-parseInt(_0x1aabc1(0xc0))/0x8*(parseInt(_0x1aabc1(0xbd))/0x9)+parseInt(_0x1aabc1(0xe8))/0xa;if(_0x217fa1===_0x3151e0)break;else _0x50c7a5['push'](_0x50c7a5['shift']());}catch(_0x1beda9){_0x50c7a5['push'](_0x50c7a5['shift']());}}}(a21_0x9a97,0x24fe4));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x16d6b8(0xeb)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x16d6b8(0xec)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x16d6b8(0xcf)),{scaleDownHubDeployment}=require(a21_0x16d6b8(0xb0)),{sendInstrumentationEvent}=require(a21_0x16d6b8(0xba)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x16d6b8(0xb6)),{getCloudProviderObject}=require(a21_0x16d6b8(0xbc));function a21_0x488e(_0xe31723,_0x5c9388){const _0x9a9707=a21_0x9a97();return a21_0x488e=function(_0x488e3e,_0x2a19e8){_0x488e3e=_0x488e3e-0x9f;let _0x6d050d=_0x9a9707[_0x488e3e];return _0x6d050d;},a21_0x488e(_0xe31723,_0x5c9388);}exports[a21_0x16d6b8(0xa5)]=a21_0x16d6b8(0xd1),exports[a21_0x16d6b8(0xb3)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a21_0x16d6b8(0xab)]=function(_0x5d6c34){const _0x5a40a7=a21_0x16d6b8,_0xda36ea={};_0xda36ea[_0x5a40a7(0xf2)]=_0x5a40a7(0x9f),_0xda36ea[_0x5a40a7(0xa0)]=_0x5a40a7(0xcc),_0xda36ea[_0x5a40a7(0xad)]=_0x5a40a7(0xe3),_0xda36ea['rtTxW']='boolean',_0xda36ea[_0x5a40a7(0xe2)]='help';const _0x16ee9d=_0xda36ea,_0x429124={};_0x429124[_0x5a40a7(0xde)]=_0x16ee9d['ULnpS'],_0x429124[_0x5a40a7(0xb1)]=_0x16ee9d[_0x5a40a7(0xa0)];const _0x87d45d={};_0x87d45d['description']=_0x16ee9d[_0x5a40a7(0xad)],_0x87d45d[_0x5a40a7(0xb1)]=_0x16ee9d[_0x5a40a7(0xf6)],_0x87d45d[_0x5a40a7(0xe6)]=![];const _0x11c640={};return _0x11c640[_0x5a40a7(0xa9)]=_0x429124,_0x11c640[_0x5a40a7(0xc9)]=_0x87d45d,_0x5d6c34[_0x5a40a7(0xa8)](HELP_HEADER_MESSAGE['stop'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5a40a7(0xc7)](_0x11c640)[_0x5a40a7(0xac)](_0x16ee9d[_0x5a40a7(0xe2)])[_0x5a40a7(0xf8)];},exports[a21_0x16d6b8(0xa1)]=async function(_0x2b6e59){const _0x4f1329=a21_0x16d6b8,_0x185083={'qmbro':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','fKMxq':function(_0x4d87fa){return _0x4d87fa();},'pYqaO':_0x4f1329(0xf4),'uQiMt':function(_0x17cc37,_0x53e001,_0xe7b338,_0x19c95c,_0x398125,_0x37a533,_0x93e03a){return _0x17cc37(_0x53e001,_0xe7b338,_0x19c95c,_0x398125,_0x37a533,_0x93e03a);},'jUumQ':_0x4f1329(0xbe),'sJrFB':_0x4f1329(0xd2),'GiILi':function(_0xfa8819,_0x5ba3cb,_0xb98e76,_0x67326a,_0x1f0161,_0xc5de0a,_0x203b69){return _0xfa8819(_0x5ba3cb,_0xb98e76,_0x67326a,_0x1f0161,_0xc5de0a,_0x203b69);},'irzNC':_0x4f1329(0xdb),'AUzJV':_0x4f1329(0xa6),'LFUaW':_0x4f1329(0xce),'AvBzp':function(_0x420d46,_0x25bba4,_0x1fbc60,_0x2afe99){return _0x420d46(_0x25bba4,_0x1fbc60,_0x2afe99);},'jVYJO':function(_0x3a5148,_0x1b42d9,_0x503e2f){return _0x3a5148(_0x1b42d9,_0x503e2f);},'kUWAy':_0x4f1329(0xda),'iEAqc':function(_0x41cd4d,_0x4c052e){return _0x41cd4d===_0x4c052e;},'PEfus':_0x4f1329(0xc3),'KrgUI':function(_0x4d21c0,_0x51e7d9,_0xf60905,_0x449cfc,_0x591485,_0x1ba455,_0x157747){return _0x4d21c0(_0x51e7d9,_0xf60905,_0x449cfc,_0x591485,_0x1ba455,_0x157747);},'VonyX':'unauthorised','EmqJx':_0x4f1329(0xe0),'teeUC':function(_0x4342d5,_0x434ace,_0x32529e,_0x2fe21e,_0x1f806a,_0x526fc9,_0x1273ad){return _0x4342d5(_0x434ace,_0x32529e,_0x2fe21e,_0x1f806a,_0x526fc9,_0x1273ad);},'DXDOk':_0x4f1329(0xa7)};let _0x1ed276;try{!_0x2b6e59[_0x4f1329(0xd5)]&&(logger[_0x4f1329(0xc6)](_0x185083[_0x4f1329(0xa2)]),process[_0x4f1329(0xee)](0x1));!fs[_0x4f1329(0xc5)](_0x185083['fKMxq'](getCredentialsPath))&&(logger[_0x4f1329(0xc6)](_0x185083[_0x4f1329(0xe4)]),await _0x185083['uQiMt'](sendInstrumentationEvent,_0x2b6e59,_0x185083[_0x4f1329(0xae)],messageTypes[_0x4f1329(0xd3)],_0x185083[_0x4f1329(0xd6)],null,_0x2b6e59),process[_0x4f1329(0xee)](0x1));logger[_0x4f1329(0xf3)](_0x4f1329(0xca)+_0x2b6e59[_0x4f1329(0xd5)]),await _0x185083[_0x4f1329(0xcb)](sendInstrumentationEvent,_0x2b6e59,_0x185083[_0x4f1329(0xae)],messageTypes[_0x4f1329(0xb5)],null,null,_0x2b6e59);const _0x40e922=JSON[_0x4f1329(0xc2)](fs[_0x4f1329(0xb7)](_0x185083['fKMxq'](getCredentialsPath)));global_registry[_0x4f1329(0xa3)]=_0x40e922[_0x4f1329(0xbb)][_0x4f1329(0xd9)],global_registry['bstackAccesskey']=_0x40e922['Browserstack'][_0x4f1329(0xb9)];const _0x4f7da5=WS_ENDPOINT[_0x4f1329(0xc1)](_0x185083['irzNC'],_0x40e922[_0x4f1329(0xbb)]['username'])[_0x4f1329(0xc1)](_0x185083['AUzJV'],_0x40e922[_0x4f1329(0xbb)][_0x4f1329(0xb9)]),_0x279574={};_0x279574[_0x4f1329(0xf9)]=ws,_0x279574['connectionTimeout']=0x36ee80,_0x1ed276=new ReconnectingWebSocket(_0x4f7da5,[],_0x279574),logger[_0x4f1329(0xe1)](_0x185083['LFUaW']),webSocketUtils['addListeners'](_0x1ed276,_0x2b6e59[_0x4f1329(0xf5)],_0x2b6e59[_0x4f1329(0xb9)]);const [_0x400174,_0xa3c6d6]=await _0x185083[_0x4f1329(0xf1)](getGridDetails,_0x40e922['Browserstack'][_0x4f1329(0xd9)],_0x40e922[_0x4f1329(0xbb)][_0x4f1329(0xb9)],_0x2b6e59[_0x4f1329(0xd5)]);if(_0xa3c6d6){const _0x3547a0=_0xa3c6d6['info'];global_registry[_0x4f1329(0xc8)]=_0x3547a0[_0x4f1329(0xc8)],global_registry[_0x4f1329(0xd8)]=_0x3547a0['region'],global_registry[_0x4f1329(0xd0)]=_0x3547a0['clusterName'];const _0x465c5e=await _0x185083['uQiMt'](getCloudProviderObject,_0x3547a0[_0x4f1329(0xc8)],_0x3547a0[_0x4f1329(0xd0)],_0x3547a0[_0x4f1329(0xa4)],_0x1ed276,webSocketUtils,_0x2b6e59),[_0x1bb006,_0x21a2fb,_0x3b1e47,_0x18ee80,_0x38898a,_0x4b719f]=await _0x185083[_0x4f1329(0xbf)](createK8sClient,_0x465c5e,_0x2b6e59[_0x4f1329(0xc4)]);await _0x185083[_0x4f1329(0xbf)](scaleDownHubDeployment,_0x21a2fb,_0x3547a0['name']),logger[_0x4f1329(0xf3)](_0x185083[_0x4f1329(0xf7)]),process[_0x4f1329(0xee)](0x0);}_0x185083[_0x4f1329(0xb2)](_0x400174[_0x4f1329(0xdc)],0x191)&&(logger['error'](_0x185083['PEfus']),await _0x185083['KrgUI'](sendInstrumentationEvent,_0x2b6e59,_0x185083[_0x4f1329(0xae)],messageTypes[_0x4f1329(0xd3)],_0x185083[_0x4f1329(0xcd)],null,_0x2b6e59),process[_0x4f1329(0xee)](0x1)),_0x185083[_0x4f1329(0xb2)](_0x400174[_0x4f1329(0xdc)],0x190)&&(logger[_0x4f1329(0xc6)](JSON[_0x4f1329(0xc2)](_0x400174[_0x4f1329(0xf0)])['message']),await _0x185083[_0x4f1329(0xcb)](sendInstrumentationEvent,_0x2b6e59,_0x185083[_0x4f1329(0xae)],messageTypes[_0x4f1329(0xd3)],_0x185083[_0x4f1329(0xea)],null,_0x2b6e59),process['exit'](0x1)),logger['error'](_0x4f1329(0xe9)+JSON[_0x4f1329(0xdf)](_0x400174)),await _0x185083[_0x4f1329(0xe5)](sendInstrumentationEvent,_0x2b6e59,_0x185083['jUumQ'],messageTypes[_0x4f1329(0xd3)],_0x185083[_0x4f1329(0xdd)],_0x400174,_0x2b6e59),process[_0x4f1329(0xee)](0x1);}catch(_0x42c06f){const _0x2432ff=_0x4f1329(0xe7)+_0x42c06f+'\x20\x0a'+JSON[_0x4f1329(0xdf)](_0x42c06f[_0x4f1329(0xaa)])+'\x20';logger['error'](_0x2432ff),process[_0x4f1329(0xee)](0x1);}};
1
+ const a21_0x10d2af=a21_0x4d76;(function(_0x1c1570,_0x5b1ee0){const _0x598011=a21_0x4d76,_0x327c8e=_0x1c1570();while(!![]){try{const _0x4b547c=-parseInt(_0x598011(0x17d))/0x1*(parseInt(_0x598011(0x169))/0x2)+parseInt(_0x598011(0x1ad))/0x3+parseInt(_0x598011(0x199))/0x4*(-parseInt(_0x598011(0x167))/0x5)+parseInt(_0x598011(0x1ab))/0x6*(parseInt(_0x598011(0x19c))/0x7)+-parseInt(_0x598011(0x1be))/0x8*(-parseInt(_0x598011(0x18b))/0x9)+-parseInt(_0x598011(0x166))/0xa*(-parseInt(_0x598011(0x171))/0xb)+-parseInt(_0x598011(0x17e))/0xc*(parseInt(_0x598011(0x1b2))/0xd);if(_0x4b547c===_0x5b1ee0)break;else _0x327c8e['push'](_0x327c8e['shift']());}catch(_0x41ffc1){_0x327c8e['push'](_0x327c8e['shift']());}}}(a21_0x4c50,0xe49b7));function a21_0x4d76(_0x15e0af,_0x3cede4){const _0x4c5071=a21_0x4c50();return a21_0x4d76=function(_0x4d7686,_0x418abd){_0x4d7686=_0x4d7686-0x164;let _0x1426bf=_0x4c5071[_0x4d7686];return _0x1426bf;},a21_0x4d76(_0x15e0af,_0x3cede4);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x10d2af(0x1b8)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x10d2af(0x1a3)),{logger}=require(a21_0x10d2af(0x16f)),{getCredentialsPath,getGridDetails}=require(a21_0x10d2af(0x1b6)),{scaleDownHubDeployment}=require(a21_0x10d2af(0x1af)),{sendInstrumentationEvent}=require(a21_0x10d2af(0x1c2)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x10d2af(0x194)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a21_0x4c50(){const _0x36e7a9=['statusCode','2247xuEMQe','qFUFN','gridId','Adding\x20Websocket\x20listeners','BQdNq','Grid\x20stoppped.','debug','../../config/constants','message','region','cFIRF','aHrMY','HhOte','jXHHa','<PasswordPlaceholder>','5394vybsdh','handler','2349912upSivK','RPVtW','../../utils/gridComponents','exit','DYWec','979381uwRDOi','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','ERROR','readFileSync','../../utils/utilityMethods','skip-tls-cert-verify','reconnecting-websocket','type','name','username','INFO','GRbFO','56gizgli','boolean','UPoSo','command','../../utils/instrumentationUtils','Skip\x20insecure\x20cert\x20verification.','lunjZ','3404520gAQRvk','30pPJJcv','help','566CZjCeA','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','rVfMi','Stop\x20a\x20running\x20Automation\x20grid.','IhFnN','RrlaW','../../config/logger','stop','11PbDpeZ','replace','skipTlsCertVerify','stop-grid-called','Browserstack','cloudProvider','CLxLm','parse','grid-id','<UsernamePlaceholder>','pfEyB','unauthorised','1445EzNFQi','12eUdJtX','info','usage','dChZQ','WebSocket','stringify','bstackAccesskey','WSasV','error','string','clusterName','pDEHi','init-not-called','2254032euFucT','connectionTimeout','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','existsSync','clusterRegion','user','qDkGb','bstackUsername','description','../../utils/createk8sClient','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','gbcxI','default','epilogue','1163216KItcAh','password'];a21_0x4c50=function(){return _0x36e7a9;};return a21_0x4c50();}exports[a21_0x10d2af(0x1c1)]='grid',exports['desc']=a21_0x10d2af(0x16c),exports['builder']=function(_0x159768){const _0x13d623=a21_0x10d2af,_0x3944a0={};_0x3944a0[_0x13d623(0x191)]=_0x13d623(0x16a),_0x3944a0[_0x13d623(0x1a9)]=_0x13d623(0x187),_0x3944a0[_0x13d623(0x16d)]=_0x13d623(0x164),_0x3944a0['BQdNq']=_0x13d623(0x1bf),_0x3944a0[_0x13d623(0x1a7)]=_0x13d623(0x168);const _0x7edf74=_0x3944a0,_0x5bab30={};_0x5bab30['description']=_0x7edf74[_0x13d623(0x191)],_0x5bab30[_0x13d623(0x1b9)]=_0x7edf74[_0x13d623(0x1a9)];const _0x298d0d={};_0x298d0d[_0x13d623(0x193)]=_0x7edf74['IhFnN'],_0x298d0d[_0x13d623(0x1b9)]=_0x7edf74[_0x13d623(0x1a0)],_0x298d0d[_0x13d623(0x197)]=![];const _0x2432d9={};return _0x2432d9[_0x13d623(0x179)]=_0x5bab30,_0x2432d9[_0x13d623(0x1b7)]=_0x298d0d,_0x159768[_0x13d623(0x180)](HELP_HEADER_MESSAGE[_0x13d623(0x170)])[_0x13d623(0x198)](HELP_FOOTER_MESSAGE)['options'](_0x2432d9)['help'](_0x7edf74[_0x13d623(0x1a7)])['argv'];},exports[a21_0x10d2af(0x1ac)]=async function(_0x16e827){const _0x15286=a21_0x10d2af,_0x5e46c5={'esVlk':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','qFUFN':function(_0x5943ff){return _0x5943ff();},'HhOte':_0x15286(0x195),'dChZQ':function(_0x391ebd,_0x4b1eb7,_0x447769,_0x4bb474,_0x577b80,_0x44e5ec,_0x3e6890){return _0x391ebd(_0x4b1eb7,_0x447769,_0x4bb474,_0x577b80,_0x44e5ec,_0x3e6890);},'RrlaW':_0x15286(0x174),'GRbFO':_0x15286(0x18a),'kYGIH':function(_0x297c8f,_0x55b639,_0xa7fb4b,_0x19463b,_0x30472a,_0xf5e672,_0x57b427){return _0x297c8f(_0x55b639,_0xa7fb4b,_0x19463b,_0x30472a,_0xf5e672,_0x57b427);},'GFMOc':function(_0x5f5278){return _0x5f5278();},'WSasV':_0x15286(0x17a),'GMluy':_0x15286(0x1aa),'pDEHi':_0x15286(0x19f),'UPoSo':function(_0x7df0d8,_0x52e5e8,_0x41de60,_0x500617){return _0x7df0d8(_0x52e5e8,_0x41de60,_0x500617);},'pfEyB':function(_0x38dacd,_0x28966a,_0x1bb0c7){return _0x38dacd(_0x28966a,_0x1bb0c7);},'rVfMi':function(_0x57a32d,_0x3f516f,_0x3e54cf){return _0x57a32d(_0x3f516f,_0x3e54cf);},'CLxLm':_0x15286(0x1a1),'GNUaj':function(_0x5843f8,_0x10bf1e){return _0x5843f8===_0x10bf1e;},'AmGyO':_0x15286(0x1b3),'lunjZ':function(_0x32d0ea,_0xb4ed8c,_0xc62e8c,_0x5cd791,_0x469f5b,_0x56e41e,_0x18db0b){return _0x32d0ea(_0xb4ed8c,_0xc62e8c,_0x5cd791,_0x469f5b,_0x56e41e,_0x18db0b);},'osWoU':_0x15286(0x17c),'gbcxI':function(_0x15704b,_0x33c37a){return _0x15704b===_0x33c37a;},'DYWec':'invalid-grid-id','cFIRF':function(_0x5a1c00,_0x485eed,_0x2ba33c,_0x17ab7b,_0x46518e,_0x81e589,_0x1b9b44){return _0x5a1c00(_0x485eed,_0x2ba33c,_0x17ab7b,_0x46518e,_0x81e589,_0x1b9b44);},'RPVtW':'server-error'};let _0x4435e3;try{!_0x16e827[_0x15286(0x19e)]&&(logger[_0x15286(0x186)](_0x5e46c5['esVlk']),process[_0x15286(0x1b0)](0x1));!fs[_0x15286(0x18e)](_0x5e46c5[_0x15286(0x19d)](getCredentialsPath))&&(logger[_0x15286(0x186)](_0x5e46c5[_0x15286(0x1a8)]),await _0x5e46c5[_0x15286(0x181)](sendInstrumentationEvent,_0x16e827,_0x5e46c5[_0x15286(0x16e)],messageTypes[_0x15286(0x1b4)],_0x5e46c5[_0x15286(0x1bd)],null,_0x16e827),process[_0x15286(0x1b0)](0x1));logger['info']('Stopping\x20grid\x20'+_0x16e827['gridId']),await _0x5e46c5['kYGIH'](sendInstrumentationEvent,_0x16e827,_0x5e46c5[_0x15286(0x16e)],messageTypes[_0x15286(0x1bc)],null,null,_0x16e827);const _0x398d27=JSON[_0x15286(0x178)](fs[_0x15286(0x1b5)](_0x5e46c5['GFMOc'](getCredentialsPath)));global_registry[_0x15286(0x192)]=_0x398d27[_0x15286(0x175)]['username'],global_registry[_0x15286(0x184)]=_0x398d27[_0x15286(0x175)]['password'];const _0x4af253=WS_ENDPOINT[_0x15286(0x172)](_0x5e46c5[_0x15286(0x185)],_0x398d27['Browserstack'][_0x15286(0x1bb)])[_0x15286(0x172)](_0x5e46c5['GMluy'],_0x398d27[_0x15286(0x175)][_0x15286(0x19a)]),_0x56fa6b={};_0x56fa6b[_0x15286(0x182)]=ws,_0x56fa6b[_0x15286(0x18c)]=0x36ee80,_0x4435e3=new ReconnectingWebSocket(_0x4af253,[],_0x56fa6b),logger[_0x15286(0x1a2)](_0x5e46c5[_0x15286(0x189)]),webSocketUtils['addListeners'](_0x4435e3,_0x16e827[_0x15286(0x190)],_0x16e827[_0x15286(0x19a)]);const [_0x22fa8d,_0x58e1ff]=await _0x5e46c5[_0x15286(0x1c0)](getGridDetails,_0x398d27[_0x15286(0x175)]['username'],_0x398d27['Browserstack'][_0x15286(0x19a)],_0x16e827['gridId']);if(_0x58e1ff){const _0x5d98fb=_0x58e1ff[_0x15286(0x17f)];global_registry[_0x15286(0x176)]=_0x5d98fb[_0x15286(0x176)],global_registry[_0x15286(0x18f)]=_0x5d98fb[_0x15286(0x1a5)],global_registry['clusterName']=_0x5d98fb[_0x15286(0x188)];const _0x45dd87=await _0x5e46c5[_0x15286(0x181)](getCloudProviderObject,_0x5d98fb[_0x15286(0x176)],_0x5d98fb[_0x15286(0x188)],_0x5d98fb['name'],_0x4435e3,webSocketUtils,_0x16e827),[_0x1b62fc,_0x36265d,_0x63004c,_0x1d6d92,_0x262b08,_0x10a6f7]=await _0x5e46c5[_0x15286(0x17b)](createK8sClient,_0x45dd87,_0x16e827[_0x15286(0x173)]);await _0x5e46c5[_0x15286(0x16b)](scaleDownHubDeployment,_0x36265d,_0x5d98fb[_0x15286(0x1ba)]),logger[_0x15286(0x17f)](_0x5e46c5[_0x15286(0x177)]),process[_0x15286(0x1b0)](0x0);}_0x5e46c5['GNUaj'](_0x22fa8d[_0x15286(0x19b)],0x191)&&(logger[_0x15286(0x186)](_0x5e46c5['AmGyO']),await _0x5e46c5[_0x15286(0x165)](sendInstrumentationEvent,_0x16e827,_0x5e46c5['RrlaW'],messageTypes['ERROR'],_0x5e46c5['osWoU'],null,_0x16e827),process[_0x15286(0x1b0)](0x1)),_0x5e46c5[_0x15286(0x196)](_0x22fa8d[_0x15286(0x19b)],0x190)&&(logger['error'](JSON[_0x15286(0x178)](_0x22fa8d['body'])[_0x15286(0x1a4)]),await _0x5e46c5[_0x15286(0x165)](sendInstrumentationEvent,_0x16e827,_0x5e46c5[_0x15286(0x16e)],messageTypes['ERROR'],_0x5e46c5[_0x15286(0x1b1)],null,_0x16e827),process['exit'](0x1)),logger['error'](_0x15286(0x18d)+JSON[_0x15286(0x183)](_0x22fa8d)),await _0x5e46c5[_0x15286(0x1a6)](sendInstrumentationEvent,_0x16e827,_0x5e46c5['RrlaW'],messageTypes[_0x15286(0x1b4)],_0x5e46c5[_0x15286(0x1ae)],_0x22fa8d,_0x16e827),process['exit'](0x1);}catch(_0x10c55a){const _0x57923e='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x10c55a+'\x20\x0a'+JSON[_0x15286(0x183)](_0x10c55a['stack'])+'\x20';logger[_0x15286(0x186)](_0x57923e),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a22_0x1d4f43=a22_0x2716;(function(_0x5186e0,_0x51cd98){const _0x2f52e4=a22_0x2716,_0x4e2297=_0x5186e0();while(!![]){try{const _0x2b90dc=-parseInt(_0x2f52e4(0x1cc))/0x1+-parseInt(_0x2f52e4(0x1b7))/0x2+-parseInt(_0x2f52e4(0x1db))/0x3+-parseInt(_0x2f52e4(0x209))/0x4+-parseInt(_0x2f52e4(0x1ea))/0x5*(-parseInt(_0x2f52e4(0x1c7))/0x6)+-parseInt(_0x2f52e4(0x1e2))/0x7+parseInt(_0x2f52e4(0x1bb))/0x8*(parseInt(_0x2f52e4(0x1c8))/0x9);if(_0x2b90dc===_0x51cd98)break;else _0x4e2297['push'](_0x4e2297['shift']());}catch(_0x57d0b2){_0x4e2297['push'](_0x4e2297['shift']());}}}(a22_0x2896,0x98359),require(a22_0x1d4f43(0x1c6))[a22_0x1d4f43(0x20b)](),exports[a22_0x1d4f43(0x213)]=process[a22_0x1d4f43(0x202)][a22_0x1d4f43(0x213)]||a22_0x1d4f43(0x1d9),exports['BS_API_URL']=process[a22_0x1d4f43(0x202)]['BS_API_URL']||'api.browserstack.com',exports[a22_0x1d4f43(0x1f7)]=process['env'][a22_0x1d4f43(0x1f7)]||'grid-api.browserstack.com',exports[a22_0x1d4f43(0x1f9)]=a22_0x1d4f43(0x1f5)+this[a22_0x1d4f43(0x1f7)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports['CP_CONFIG_FILE']='credentials',exports['IAM_USER_NAME']=a22_0x1d4f43(0x1eb),exports[a22_0x1d4f43(0x214)]=a22_0x1d4f43(0x1df),exports[a22_0x1d4f43(0x1f4)]='aws',exports[a22_0x1d4f43(0x1cd)]=a22_0x1d4f43(0x1ec),exports[a22_0x1d4f43(0x1d8)]=a22_0x1d4f43(0x21a),exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x1d4f43(0x1d0),exports[a22_0x1d4f43(0x217)]=a22_0x1d4f43(0x1e8),exports['AZURE']=a22_0x1d4f43(0x212),exports[a22_0x1d4f43(0x1fa)]=a22_0x1d4f43(0x1d5),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x1d4f43(0x1f4)],this[a22_0x1d4f43(0x208)],this[a22_0x1d4f43(0x1fa)]]);const a22_0x556a16={};function a22_0x2716(_0xaadc,_0x25f57c){const _0x289612=a22_0x2896();return a22_0x2716=function(_0x27161c,_0x2e9e1f){_0x27161c=_0x27161c-0x1b7;let _0x270486=_0x289612[_0x27161c];return _0x270486;},a22_0x2716(_0xaadc,_0x25f57c);}a22_0x556a16[a22_0x1d4f43(0x1e1)]=a22_0x1d4f43(0x201),a22_0x556a16[a22_0x1d4f43(0x1dc)]='BrowserStack';const a22_0x501f5e={};a22_0x501f5e[a22_0x1d4f43(0x1e1)]=a22_0x1d4f43(0x1e4),a22_0x501f5e[a22_0x1d4f43(0x1dc)]=a22_0x1d4f43(0x1e7);const common_hst_tags_list=[a22_0x556a16,a22_0x501f5e];if(process['env'][a22_0x1d4f43(0x207)]){const parsedTags=process['env'][a22_0x1d4f43(0x207)][a22_0x1d4f43(0x1da)](',');parsedTags[a22_0x1d4f43(0x210)](_0x3688e8=>{const _0x2772b4=a22_0x1d4f43,_0x435c86=_0x3688e8[_0x2772b4(0x1da)](':'),_0x709d57={};_0x709d57[_0x2772b4(0x1e1)]=_0x435c86[0x0],_0x709d57[_0x2772b4(0x1dc)]=_0x435c86[0x1],common_hst_tags_list[_0x2772b4(0x20f)](_0x709d57);});}exports[a22_0x1d4f43(0x1e5)]=common_hst_tags_list;const a22_0x624f57={};a22_0x624f57[a22_0x1d4f43(0x201)]=a22_0x1d4f43(0x1f6),a22_0x624f57[a22_0x1d4f43(0x1e4)]=a22_0x1d4f43(0x1e7),exports[a22_0x1d4f43(0x20d)]=a22_0x624f57,exports[a22_0x1d4f43(0x1f2)]=[this[a22_0x1d4f43(0x1f4)]];const a22_0x51a942={};a22_0x51a942['LOG']='log',a22_0x51a942[a22_0x1d4f43(0x1fe)]=a22_0x1d4f43(0x206),a22_0x51a942[a22_0x1d4f43(0x1c5)]=a22_0x1d4f43(0x216),a22_0x51a942[a22_0x1d4f43(0x1f8)]=a22_0x1d4f43(0x1c3),a22_0x51a942[a22_0x1d4f43(0x1ba)]=a22_0x1d4f43(0x215),exports[a22_0x1d4f43(0x1bc)]=a22_0x51a942,exports[a22_0x1d4f43(0x1f1)]={},exports['LINK_MESSAGE']=a22_0x1d4f43(0x200);const a22_0x2dae2f={};a22_0x2dae2f['root']=a22_0x1d4f43(0x1dd)+this['LINK_MESSAGE'],a22_0x2dae2f[a22_0x1d4f43(0x1d4)]=a22_0x1d4f43(0x1bf)+this[a22_0x1d4f43(0x203)],a22_0x2dae2f[a22_0x1d4f43(0x1ee)]=a22_0x1d4f43(0x1b8)+this['LINK_MESSAGE'],a22_0x2dae2f[a22_0x1d4f43(0x1d1)]=a22_0x1d4f43(0x205)+this[a22_0x1d4f43(0x203)],a22_0x2dae2f[a22_0x1d4f43(0x1ef)]={},a22_0x2dae2f['delete']=a22_0x1d4f43(0x1d7)+this[a22_0x1d4f43(0x203)],a22_0x2dae2f['connect']='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x1d4f43(0x203)],a22_0x2dae2f['start']='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x1d4f43(0x203)],a22_0x2dae2f['stop']=a22_0x1d4f43(0x1fb)+this['LINK_MESSAGE'],a22_0x2dae2f[a22_0x1d4f43(0x20a)]=a22_0x1d4f43(0x1c1)+this[a22_0x1d4f43(0x203)],a22_0x2dae2f[a22_0x1d4f43(0x1ef)][a22_0x1d4f43(0x1c9)]=a22_0x1d4f43(0x1e9)+this[a22_0x1d4f43(0x203)],a22_0x2dae2f[a22_0x1d4f43(0x1ef)][a22_0x1d4f43(0x1ed)]=a22_0x1d4f43(0x1ff)+this[a22_0x1d4f43(0x203)],a22_0x2dae2f[a22_0x1d4f43(0x1ef)][a22_0x1d4f43(0x1f3)]=a22_0x1d4f43(0x1de)+this[a22_0x1d4f43(0x203)],exports[a22_0x1d4f43(0x1b9)]=a22_0x2dae2f,exports[a22_0x1d4f43(0x218)]=a22_0x1d4f43(0x1d6);function a22_0x2896(){const _0x35112e=['TRIAL_GRID_URL','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','warning','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','DEFAULT_CLUSTER_DETAILS','cliRunStarted','RAW_ARGS_REGEX','GRID_URL','dotenv','96glJByZ','5437017wEOWHo','root','SUCCESS','CLI_ARGS_REGEX','348829aAWZls','CLUSTER_DEP_STACK_NAME','REGION','INFO','BSTACK-ATS-CLUSTER-HUB-HA','create','CLUSTER','pre-check','init','gcp','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','CLUSTER_AUTOSCALER_STACK_NAME','grid.browserstack.com','split','1776666dtbhrV','Value','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','high-scale-grid','unknown','Key','6370336ecmDsF','WARNING','browserstack:service','COMMON_HST_TAGS','CLOUD_PROVIDER','BrowserStack-Automate-TurboScale','browserstack-turboscale-grid','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','291405dWltSL','BrowserStackIAMUser','BSTACK-ATS-CLUSTER','grid','configure','list','success','global_registry','SUPPORTED_CLOUD_PROVIDERS','gridProfile','AWS','wss://','BrowserStack','AG_API_URL','CLI_RUN_STARTED','WS_ENDPOINT','GCP','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','info','error','RESOURCES','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','browserstack:managedBy','env','LINK_MESSAGE','high-scale-grid-cluster','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','resourceInfo','TURBOSCALE_CUSTOM_TAGS','AZURE','1866760pMSfUS','pre_check','config','UNKNOWN','HST_CLUSTER_TAGS','us-east-1','push','forEach','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','azure','DASHBOARD_ENDPOINT','DEFAULT_GRID_NAME','cliRunFinished','gridUrl','TURBOSCALE_DEPLOYMENT','HELP_FOOTER_MESSAGE','NULL','BSTACK-ATS-CLUSTER-AUTOSCALER','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','815420BVqiqi','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','HELP_HEADER_MESSAGE','CLI_RUN_FINISHED','32usJgRf','WS_EVENTS','ERROR'];a22_0x2896=function(){return _0x35112e;};return a22_0x2896();}const a22_0x226190={};a22_0x226190[a22_0x1d4f43(0x1ca)]=a22_0x1d4f43(0x1f0),a22_0x226190[a22_0x1d4f43(0x1bd)]=a22_0x1d4f43(0x1fd),a22_0x226190[a22_0x1d4f43(0x1cf)]=a22_0x1d4f43(0x1fc),a22_0x226190[a22_0x1d4f43(0x1e3)]=a22_0x1d4f43(0x1c0),a22_0x226190[a22_0x1d4f43(0x20c)]=a22_0x1d4f43(0x1e0),a22_0x226190[a22_0x1d4f43(0x219)]=null,exports['messageTypes']=a22_0x226190,exports[a22_0x1d4f43(0x1cb)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x1d4f43(0x1c4)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']='[REDACTED]';const a22_0x424403={};a22_0x424403['grid-profile']=a22_0x1d4f43(0x21b);const a22_0x44dd2c={};a22_0x44dd2c[a22_0x1d4f43(0x1d3)]=a22_0x424403,exports['MessageDescription']=a22_0x44dd2c,exports[a22_0x1d4f43(0x1be)]=a22_0x1d4f43(0x211);const a22_0x541a1b={};a22_0x541a1b[a22_0x1d4f43(0x1d2)]=a22_0x1d4f43(0x204),a22_0x541a1b[a22_0x1d4f43(0x1e6)]='aws',a22_0x541a1b[a22_0x1d4f43(0x1ce)]=a22_0x1d4f43(0x20e),exports[a22_0x1d4f43(0x1c2)]=a22_0x541a1b;
1
+ const a22_0x1ddaa2=a22_0x3476;(function(_0xd73038,_0x331498){const _0x5e6f7a=a22_0x3476,_0x58301b=_0xd73038();while(!![]){try{const _0x144358=-parseInt(_0x5e6f7a(0x12b))/0x1*(parseInt(_0x5e6f7a(0x115))/0x2)+parseInt(_0x5e6f7a(0xf9))/0x3+-parseInt(_0x5e6f7a(0xe9))/0x4+parseInt(_0x5e6f7a(0x13f))/0x5*(-parseInt(_0x5e6f7a(0x136))/0x6)+-parseInt(_0x5e6f7a(0x122))/0x7+-parseInt(_0x5e6f7a(0x129))/0x8+parseInt(_0x5e6f7a(0x120))/0x9*(parseInt(_0x5e6f7a(0x105))/0xa);if(_0x144358===_0x331498)break;else _0x58301b['push'](_0x58301b['shift']());}catch(_0x316767){_0x58301b['push'](_0x58301b['shift']());}}}(a22_0x1850,0xba003),require(a22_0x1ddaa2(0x12f))['config'](),exports['DASHBOARD_ENDPOINT']=process[a22_0x1ddaa2(0xed)][a22_0x1ddaa2(0x13a)]||a22_0x1ddaa2(0xf7),exports[a22_0x1ddaa2(0x11f)]=process[a22_0x1ddaa2(0xed)][a22_0x1ddaa2(0x11f)]||a22_0x1ddaa2(0x10a),exports[a22_0x1ddaa2(0x13c)]=process[a22_0x1ddaa2(0xed)]['AG_API_URL']||a22_0x1ddaa2(0xf1),exports[a22_0x1ddaa2(0xfd)]='wss://'+this['AG_API_URL']+a22_0x1ddaa2(0x138),exports['CP_CONFIG_FILE']=a22_0x1ddaa2(0xf0),exports[a22_0x1ddaa2(0xe1)]=a22_0x1ddaa2(0x11a),exports['DEFAULT_GRID_NAME']='high-scale-grid',exports[a22_0x1ddaa2(0xf4)]=a22_0x1ddaa2(0x135),exports[a22_0x1ddaa2(0x132)]=a22_0x1ddaa2(0xff),exports[a22_0x1ddaa2(0xe0)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x1ddaa2(0xfa),exports['TURBOSCALE_DEPLOYMENT']='browserstack-turboscale-grid',exports[a22_0x1ddaa2(0x121)]=a22_0x1ddaa2(0x119),exports[a22_0x1ddaa2(0x114)]=a22_0x1ddaa2(0x139),exports[a22_0x1ddaa2(0x128)]=[this['AWS'],this['AZURE'],this[a22_0x1ddaa2(0x114)]]);const a22_0x3cd74e={};a22_0x3cd74e[a22_0x1ddaa2(0xee)]='browserstack:managedBy',a22_0x3cd74e['Value']=a22_0x1ddaa2(0xe6);const a22_0x465e4e={};a22_0x465e4e['Key']=a22_0x1ddaa2(0x131),a22_0x465e4e[a22_0x1ddaa2(0xeb)]=a22_0x1ddaa2(0xfb);const common_hst_tags_list=[a22_0x3cd74e,a22_0x465e4e];if(process[a22_0x1ddaa2(0xed)][a22_0x1ddaa2(0xec)]){const parsedTags=process[a22_0x1ddaa2(0xed)][a22_0x1ddaa2(0xec)][a22_0x1ddaa2(0x12c)](',');parsedTags[a22_0x1ddaa2(0xf8)](_0x576a0e=>{const _0x17a239=a22_0x1ddaa2,_0x1e9f35=_0x576a0e[_0x17a239(0x12c)](':'),_0x12b903={};_0x12b903[_0x17a239(0xee)]=_0x1e9f35[0x0],_0x12b903['Value']=_0x1e9f35[0x1],common_hst_tags_list['push'](_0x12b903);});}exports[a22_0x1ddaa2(0x126)]=common_hst_tags_list;const a22_0x475e48={};a22_0x475e48[a22_0x1ddaa2(0x133)]=a22_0x1ddaa2(0xe6),a22_0x475e48['browserstack:service']=a22_0x1ddaa2(0xfb),exports[a22_0x1ddaa2(0x130)]=a22_0x475e48,exports[a22_0x1ddaa2(0x13e)]=[this[a22_0x1ddaa2(0xf4)]];const a22_0x2fee5e={};a22_0x2fee5e[a22_0x1ddaa2(0x11d)]=a22_0x1ddaa2(0xf2),a22_0x2fee5e['RESOURCES']=a22_0x1ddaa2(0x117),a22_0x2fee5e['GRID_URL']=a22_0x1ddaa2(0x12d),a22_0x2fee5e[a22_0x1ddaa2(0xf3)]=a22_0x1ddaa2(0xe4),a22_0x2fee5e[a22_0x1ddaa2(0x111)]=a22_0x1ddaa2(0x12e),exports[a22_0x1ddaa2(0x137)]=a22_0x2fee5e,exports[a22_0x1ddaa2(0x108)]={},exports[a22_0x1ddaa2(0xe5)]=a22_0x1ddaa2(0x11c);const a22_0xd8b232={};a22_0xd8b232['root']=a22_0x1ddaa2(0xe2)+this[a22_0x1ddaa2(0xe5)],a22_0xd8b232[a22_0x1ddaa2(0x10b)]=a22_0x1ddaa2(0xf6)+this[a22_0x1ddaa2(0xe5)],a22_0xd8b232[a22_0x1ddaa2(0x10d)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this['LINK_MESSAGE'],a22_0xd8b232[a22_0x1ddaa2(0x102)]=a22_0x1ddaa2(0x107)+this[a22_0x1ddaa2(0xe5)],a22_0xd8b232[a22_0x1ddaa2(0x134)]={},a22_0xd8b232[a22_0x1ddaa2(0x110)]=a22_0x1ddaa2(0xfe)+this['LINK_MESSAGE'],a22_0xd8b232[a22_0x1ddaa2(0x118)]=a22_0x1ddaa2(0xe7)+this[a22_0x1ddaa2(0xe5)],a22_0xd8b232['start']='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x1ddaa2(0xe5)],a22_0xd8b232[a22_0x1ddaa2(0xf5)]='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this[a22_0x1ddaa2(0xe5)],a22_0xd8b232[a22_0x1ddaa2(0xe3)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0xd8b232[a22_0x1ddaa2(0x134)][a22_0x1ddaa2(0x11e)]=a22_0x1ddaa2(0x124)+this[a22_0x1ddaa2(0xe5)],a22_0xd8b232[a22_0x1ddaa2(0x134)]['grid']=a22_0x1ddaa2(0x104)+this[a22_0x1ddaa2(0xe5)],a22_0xd8b232[a22_0x1ddaa2(0x134)][a22_0x1ddaa2(0x101)]=a22_0x1ddaa2(0x13b)+this[a22_0x1ddaa2(0xe5)],exports[a22_0x1ddaa2(0x140)]=a22_0xd8b232,exports['HELP_FOOTER_MESSAGE']='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x4948ce={};a22_0x4948ce[a22_0x1ddaa2(0x106)]=a22_0x1ddaa2(0x123),a22_0x4948ce['ERROR']=a22_0x1ddaa2(0x10c),a22_0x4948ce[a22_0x1ddaa2(0x141)]=a22_0x1ddaa2(0x10e),a22_0x4948ce['WARNING']=a22_0x1ddaa2(0xea),a22_0x4948ce[a22_0x1ddaa2(0x103)]=a22_0x1ddaa2(0xfc),a22_0x4948ce['NULL']=null,exports[a22_0x1ddaa2(0x125)]=a22_0x4948ce,exports[a22_0x1ddaa2(0x11b)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x1ddaa2(0x109)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x1ddaa2(0x116)]='[REDACTED]';function a22_0x3476(_0x108579,_0x131c3b){const _0x185050=a22_0x1850();return a22_0x3476=function(_0x3476f8,_0x5d7555){_0x3476f8=_0x3476f8-0xe0;let _0x5bd6ee=_0x185050[_0x3476f8];return _0x5bd6ee;},a22_0x3476(_0x108579,_0x131c3b);}const a22_0xe9f96e={};a22_0xe9f96e['grid-profile']='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';function a22_0x1850(){const _0x5aec2d=['BSTACK-ATS-CLUSTER-HUB-HA','BrowserStack-Automate-TurboScale','unknown','WS_ENDPOINT','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','BSTACK-ATS-CLUSTER','CLUSTER','gridProfile','create','UNKNOWN','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','40328630ckBCJA','SUCCESS','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','global_registry','RAW_ARGS_REGEX','api.browserstack.com','init','error','configure','info','high-scale-grid-cluster','delete','CLI_RUN_FINISHED','us-east-1','TRIAL_GRID_URL','GCP','2eseaQd','REDACTED','resourceInfo','connect','azure','BrowserStackIAMUser','CLI_ARGS_REGEX','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','LOG','root','BS_API_URL','9oDxlyq','AZURE','2492854SFQvtm','success','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','messageTypes','COMMON_HST_TAGS','CLOUD_PROVIDER','ALL_SUPPORTED_CLOUD_PROVIDERS','2437432LWALbC','REGION','710108yabMlq','split','gridUrl','cliRunFinished','dotenv','HST_CLUSTER_TAGS','browserstack:service','CLUSTER_DEP_STACK_NAME','browserstack:managedBy','list','aws','815190SnKznL','WS_EVENTS','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','gcp','DASHBOARD_ENDPOINT','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','AG_API_URL','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','SUPPORTED_CLOUD_PROVIDERS','25rozopW','HELP_HEADER_MESSAGE','INFO','DEFAULT_CLUSTER_DETAILS','CLUSTER_AUTOSCALER_STACK_NAME','IAM_USER_NAME','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','pre_check','cliRunStarted','LINK_MESSAGE','BrowserStack','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','pre-check','5394552wsvbnx','warning','Value','TURBOSCALE_CUSTOM_TAGS','env','Key','MessageDescription','credentials','grid-api.browserstack.com','log','CLI_RUN_STARTED','AWS','stop','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','grid.browserstack.com','forEach','383604uzfqqD'];a22_0x1850=function(){return _0x5aec2d;};return a22_0x1850();}const a22_0x4ea45d={};a22_0x4ea45d[a22_0x1ddaa2(0xe8)]=a22_0xe9f96e,exports[a22_0x1ddaa2(0xef)]=a22_0x4ea45d,exports[a22_0x1ddaa2(0x113)]=a22_0x1ddaa2(0x13d);const a22_0x51ef45={};a22_0x51ef45[a22_0x1ddaa2(0x100)]=a22_0x1ddaa2(0x10f),a22_0x51ef45[a22_0x1ddaa2(0x127)]=a22_0x1ddaa2(0x135),a22_0x51ef45[a22_0x1ddaa2(0x12a)]=a22_0x1ddaa2(0x112),exports[a22_0x1ddaa2(0x142)]=a22_0x51ef45;
@@ -1 +1 @@
1
- const a23_0x250590=a23_0x5b6c;(function(_0x11b83d,_0x7c2804){const _0x552ed0=a23_0x5b6c,_0x465649=_0x11b83d();while(!![]){try{const _0x1e7c9e=parseInt(_0x552ed0(0x14a))/0x1+parseInt(_0x552ed0(0x15e))/0x2+-parseInt(_0x552ed0(0x144))/0x3+parseInt(_0x552ed0(0x152))/0x4+parseInt(_0x552ed0(0x15d))/0x5*(-parseInt(_0x552ed0(0x158))/0x6)+parseInt(_0x552ed0(0x159))/0x7*(parseInt(_0x552ed0(0x156))/0x8)+parseInt(_0x552ed0(0x14d))/0x9;if(_0x1e7c9e===_0x7c2804)break;else _0x465649['push'](_0x465649['shift']());}catch(_0x22ad77){_0x465649['push'](_0x465649['shift']());}}}(a23_0xcc31,0x43b7a));const winston=require('winston'),fs=require('fs'),path=require(a23_0x250590(0x157)),logDir='log';!fs[a23_0x250590(0x151)](logDir)&&fs['mkdirSync'](logDir);function a23_0xcc31(){const _0x47f891=['printf','createLogger','24184QSelmS','path','1548eCEZJs','826RRcQMe','YYYY-MM-DD\x20HH:mm:ss','\x20-\x20','level','3710DChDPW','461536VhxmuF','transports','join','1639197jHbHvF','Console','usage.log','timestamp','File','events.log','201353orpkWy','message','format','1169127PXCiBn','debug','logger','fileLogger','existsSync','385868SdgIra','name'];a23_0xcc31=function(){return _0x47f891;};return a23_0xcc31();}const a23_0x4b3c99={};a23_0x4b3c99['format']=a23_0x250590(0x15a);const a23_0x15d4fb={};function a23_0x5b6c(_0x55184f,_0x4d488d){const _0xcc3193=a23_0xcc31();return a23_0x5b6c=function(_0x5b6c5d,_0x43996d){_0x5b6c5d=_0x5b6c5d-0x142;let _0x8bbc92=_0xcc3193[_0x5b6c5d];return _0x8bbc92;},a23_0x5b6c(_0x55184f,_0x4d488d);}a23_0x15d4fb['level']=!![];const a23_0x5895bf={};a23_0x5895bf[a23_0x250590(0x153)]='console.info',exports[a23_0x250590(0x14f)]=new winston[(a23_0x250590(0x155))]({'format':winston[a23_0x250590(0x14c)]['combine'](winston[a23_0x250590(0x14c)]['timestamp'](a23_0x4b3c99),winston[a23_0x250590(0x14c)]['colorize'](a23_0x15d4fb),winston[a23_0x250590(0x14c)][a23_0x250590(0x154)](_0x2556f4=>_0x2556f4[a23_0x250590(0x147)]+a23_0x250590(0x15b)+_0x2556f4[a23_0x250590(0x15c)]+':\x20'+_0x2556f4[a23_0x250590(0x14b)])),'transports':[new winston[(a23_0x250590(0x142))][(a23_0x250590(0x145))](a23_0x5895bf),new winston[(a23_0x250590(0x142))][(a23_0x250590(0x148))]({'filename':path[a23_0x250590(0x143)](logDir,a23_0x250590(0x149)),'level':a23_0x250590(0x14e)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x250590(0x142))][(a23_0x250590(0x148))]({'filename':path['join'](logDir,a23_0x250590(0x146)),'level':a23_0x250590(0x14e)})]};exports[a23_0x250590(0x150)]=new winston[(a23_0x250590(0x155))](winstonFileLoggerParams);
1
+ function a23_0x5cfe(){const _0x453540=['log','events.log','2976770GBMNPX','timestamp','fileLogger','printf','logger','usage.log','existsSync','1273994MZAVCi','debug','createLogger','35043lrdGOD','path','transports','YYYY-MM-DD\x20HH:mm:ss','44668cuWukZ','52vCvKfc','colorize','console.info','message','40IpvieC','\x20-\x20','5536530TGVUKT','mkdirSync','824460EnaboS','File','1063008rEKtkp','level','format','join','combine'];a23_0x5cfe=function(){return _0x453540;};return a23_0x5cfe();}const a23_0x40e264=a23_0x1033;(function(_0x2e80fa,_0x3b2a54){const _0x28f770=a23_0x1033,_0x220cda=_0x2e80fa();while(!![]){try{const _0x1baad0=parseInt(_0x28f770(0x80))/0x1+-parseInt(_0x28f770(0x79))/0x2+-parseInt(_0x28f770(0x7c))/0x3*(-parseInt(_0x28f770(0x81))/0x4)+parseInt(_0x28f770(0x72))/0x5+parseInt(_0x28f770(0x67))/0x6+parseInt(_0x28f770(0x69))/0x7+-parseInt(_0x28f770(0x65))/0x8*(parseInt(_0x28f770(0x6b))/0x9);if(_0x1baad0===_0x3b2a54)break;else _0x220cda['push'](_0x220cda['shift']());}catch(_0x3fa7d0){_0x220cda['push'](_0x220cda['shift']());}}}(a23_0x5cfe,0x93ab5));const winston=require('winston'),fs=require('fs'),path=require(a23_0x40e264(0x7d)),logDir=a23_0x40e264(0x70);!fs[a23_0x40e264(0x78)](logDir)&&fs[a23_0x40e264(0x68)](logDir);const a23_0x572e6c={};a23_0x572e6c[a23_0x40e264(0x6d)]=a23_0x40e264(0x7f);const a23_0x4f426a={};a23_0x4f426a[a23_0x40e264(0x6c)]=!![];const a23_0x5de090={};function a23_0x1033(_0x4d093f,_0x31cde3){const _0x5cfedb=a23_0x5cfe();return a23_0x1033=function(_0x1033e1,_0x21f249){_0x1033e1=_0x1033e1-0x64;let _0x49a364=_0x5cfedb[_0x1033e1];return _0x49a364;},a23_0x1033(_0x4d093f,_0x31cde3);}a23_0x5de090['name']=a23_0x40e264(0x83),exports[a23_0x40e264(0x76)]=new winston[(a23_0x40e264(0x7b))]({'format':winston[a23_0x40e264(0x6d)][a23_0x40e264(0x6f)](winston[a23_0x40e264(0x6d)]['timestamp'](a23_0x572e6c),winston[a23_0x40e264(0x6d)][a23_0x40e264(0x82)](a23_0x4f426a),winston['format'][a23_0x40e264(0x75)](_0x525664=>_0x525664[a23_0x40e264(0x73)]+a23_0x40e264(0x66)+_0x525664[a23_0x40e264(0x6c)]+':\x20'+_0x525664[a23_0x40e264(0x64)])),'transports':[new winston[(a23_0x40e264(0x7e))]['Console'](a23_0x5de090),new winston[(a23_0x40e264(0x7e))][(a23_0x40e264(0x6a))]({'filename':path['join'](logDir,a23_0x40e264(0x71)),'level':a23_0x40e264(0x7a)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x40e264(0x7e))][(a23_0x40e264(0x6a))]({'filename':path[a23_0x40e264(0x6e)](logDir,a23_0x40e264(0x77)),'level':a23_0x40e264(0x7a)})]};exports[a23_0x40e264(0x74)]=new winston[(a23_0x40e264(0x7b))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x45a6ce=a24_0x5022;function a24_0x5022(_0x429825,_0x5eb9e8){const _0x11daa6=a24_0x11da();return a24_0x5022=function(_0x502239,_0x43fcab){_0x502239=_0x502239-0xba;let _0x2055cc=_0x11daa6[_0x502239];return _0x2055cc;},a24_0x5022(_0x429825,_0x5eb9e8);}(function(_0x2d0ea9,_0x345a7f){const _0x2bc45c=a24_0x5022,_0x2d349b=_0x2d0ea9();while(!![]){try{const _0x714ff9=parseInt(_0x2bc45c(0xc6))/0x1+-parseInt(_0x2bc45c(0xbe))/0x2*(parseInt(_0x2bc45c(0xbb))/0x3)+-parseInt(_0x2bc45c(0xc2))/0x4*(parseInt(_0x2bc45c(0xbf))/0x5)+parseInt(_0x2bc45c(0xbc))/0x6+-parseInt(_0x2bc45c(0xc3))/0x7+parseInt(_0x2bc45c(0xcb))/0x8+parseInt(_0x2bc45c(0xbd))/0x9*(parseInt(_0x2bc45c(0xba))/0xa);if(_0x714ff9===_0x345a7f)break;else _0x2d349b['push'](_0x2d349b['shift']());}catch(_0x5270df){_0x2d349b['push'](_0x2d349b['shift']());}}}(a24_0x11da,0x303f5));function a24_0x11da(){const _0x27680b=['604744SGNkwU','./config/constants','demandCommand','2840230UIbxAR','18294tuHoQW','1093242rISupi','9UeACyp','68KELsry','25zULacQ','uUNTB','help','35092rEfHVG','2611595qeHNPB','usage','commands','280080GGkvnj','DuKTI','epilogue','commandDir','exports'];a24_0x11da=function(){return _0x27680b;};return a24_0x11da();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x45a6ce(0xcc));process['env']['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function run(_0x363f8e){const _0x282b79=a24_0x45a6ce,_0x2a80ca={};_0x2a80ca[_0x282b79(0xc0)]=_0x282b79(0xc5),_0x2a80ca[_0x282b79(0xc7)]=_0x282b79(0xc1);const _0x2dcb5b=_0x2a80ca;_0x363f8e[_0x282b79(0xc4)](HELP_HEADER_MESSAGE['root'])[_0x282b79(0xc9)](_0x2dcb5b[_0x282b79(0xc0)])[_0x282b79(0xcd)]()[_0x282b79(0xc1)](_0x2dcb5b['DuKTI'])[_0x282b79(0xc8)](HELP_FOOTER_MESSAGE);}module[a24_0x45a6ce(0xca)]=run;
2
+ 'use strict';function a24_0x1ebb(){const _0x138fe1=['uVjnB','1021494zQaPEU','commands','help','./config/constants','13mmIPUO','4515456SvTLDW','commandDir','QMXnu','2965445ThzgWE','22520tBxDsI','113654hebnSt','root','17841070SRygEX','epilogue','878931qbgRfB','3717vzYrUt','7Xsusva','usage','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE'];a24_0x1ebb=function(){return _0x138fe1;};return a24_0x1ebb();}const a24_0x2fe622=a24_0x1ec9;(function(_0x505fd9,_0x4ce58c){const _0x123665=a24_0x1ec9,_0x14a91e=_0x505fd9();while(!![]){try{const _0x3d9b30=-parseInt(_0x123665(0x1f1))/0x1*(-parseInt(_0x123665(0x1e3))/0x2)+-parseInt(_0x123665(0x1e7))/0x3+-parseInt(_0x123665(0x1f2))/0x4+parseInt(_0x123665(0x1f5))/0x5+parseInt(_0x123665(0x1ed))/0x6*(parseInt(_0x123665(0x1e9))/0x7)+parseInt(_0x123665(0x1e2))/0x8*(-parseInt(_0x123665(0x1e8))/0x9)+parseInt(_0x123665(0x1e5))/0xa;if(_0x3d9b30===_0x4ce58c)break;else _0x14a91e['push'](_0x14a91e['shift']());}catch(_0x3d605f){_0x14a91e['push'](_0x14a91e['shift']());}}}(a24_0x1ebb,0xab540));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x2fe622(0x1f0));function a24_0x1ec9(_0xe128f1,_0x59064f){const _0x1ebb92=a24_0x1ebb();return a24_0x1ec9=function(_0x1ec920,_0x13d94d){_0x1ec920=_0x1ec920-0x1e2;let _0x2c60f9=_0x1ebb92[_0x1ec920];return _0x2c60f9;},a24_0x1ec9(_0xe128f1,_0x59064f);}process['env'][a24_0x2fe622(0x1eb)]=0x1;function run(_0x2611d1){const _0x50640e=a24_0x2fe622,_0x40fdac={};_0x40fdac['QMXnu']=_0x50640e(0x1ee),_0x40fdac[_0x50640e(0x1ec)]=_0x50640e(0x1ef);const _0x58bc9d=_0x40fdac;_0x2611d1[_0x50640e(0x1ea)](HELP_HEADER_MESSAGE[_0x50640e(0x1e4)])[_0x50640e(0x1f3)](_0x58bc9d[_0x50640e(0x1f4)])['demandCommand']()['help'](_0x58bc9d[_0x50640e(0x1ec)])[_0x50640e(0x1e6)](HELP_FOOTER_MESSAGE);}module['exports']=run;