browserstack-node-sdk 1.34.51 → 1.34.52

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_0x40272c=a15_0x343a;(function(_0x50703e,_0x48076a){const _0x2c0772=a15_0x343a,_0xe59747=_0x50703e();while(!![]){try{const _0x512e6b=-parseInt(_0x2c0772(0x13f))/0x1*(-parseInt(_0x2c0772(0x160))/0x2)+-parseInt(_0x2c0772(0x143))/0x3*(parseInt(_0x2c0772(0x15c))/0x4)+parseInt(_0x2c0772(0x150))/0x5+-parseInt(_0x2c0772(0x15d))/0x6+-parseInt(_0x2c0772(0x162))/0x7+parseInt(_0x2c0772(0x136))/0x8+parseInt(_0x2c0772(0x161))/0x9;if(_0x512e6b===_0x48076a)break;else _0xe59747['push'](_0xe59747['shift']());}catch(_0x5e53c3){_0xe59747['push'](_0xe59747['shift']());}}}(a15_0x3d7c,0xa546d));const fs=require('fs'),got=require('got'),{table}=require(a15_0x40272c(0x123)),{v4:uuidv4}=require(a15_0x40272c(0x14e)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x40272c(0x135)),{getCredentialsPath,getAuthHeader}=require(a15_0x40272c(0x139)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a15_0x3d7c(){const _0x20d9cc=['builder','uuid','maHze','2502440UnzqhB','handler','UrWRB','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','unauthorised','list','grids','boolean','username','running','yrSGD','status','1539356mrqYmU','6828492LdCuUC','FmlXN','grid-id','134XFWeZg','26587818yylcZJ','5576893kAWgzk','server-error','unknown-error','lyhvC','Failed\x20to\x20list\x20resources!\x20Error:\x20','eCqIW','DRjCj','fXaYe','Browserstack','bstackAccesskey','https://','ERROR','WqBTk','error','VMwtY','VkiDf','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','push','EEuST','CRqLO','table','DVJoS','zQhey','zLMGR','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','exit','UCfdU','ecWAO','clusterName','password','parse','hodCo','forEach','bstackUsername','epilogue','init-not-called','stack','requestId','../../config/constants','2051520SgmPay','options','cluster-name','../../utils/utilityMethods','list-grids-called','help','/packages/cli/get-all-grids','eJzaF','command','823ZyumcO','ZOiDS','jBKpu','aiGyE','9RjYTjG','allGrids','log','rMlzk','/packages/cli/get-grids','all-grids','queued','PFlqn','KcpbO','body'];a15_0x3d7c=function(){return _0x20d9cc;};return a15_0x3d7c();}function a15_0x343a(_0x4f12f9,_0x217253){const _0x3d7c03=a15_0x3d7c();return a15_0x343a=function(_0x343a08,_0x1be597){_0x343a08=_0x343a08-0x122;let _0x2dc1d7=_0x3d7c03[_0x343a08];return _0x2dc1d7;},a15_0x343a(_0x4f12f9,_0x217253);}exports[a15_0x40272c(0x13e)]=a15_0x40272c(0x156),exports['desc']=a15_0x40272c(0x127),exports[a15_0x40272c(0x14d)]=function(_0x576bac){const _0x96b61c=a15_0x40272c,_0x2a1714={};_0x2a1714[_0x96b61c(0x14f)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x2a1714[_0x96b61c(0x14a)]=_0x96b61c(0x157),_0x2a1714[_0x96b61c(0x140)]=_0x96b61c(0x13b);const _0x78f335=_0x2a1714,_0x28eea8={};_0x28eea8['description']=_0x78f335[_0x96b61c(0x14f)],_0x28eea8['type']=_0x78f335[_0x96b61c(0x14a)];const _0x4fb78c={};return _0x4fb78c[_0x96b61c(0x148)]=_0x28eea8,_0x576bac['usage'](HELP_HEADER_MESSAGE[_0x96b61c(0x155)]['grid'])[_0x96b61c(0x131)](HELP_FOOTER_MESSAGE)[_0x96b61c(0x137)](_0x4fb78c)[_0x96b61c(0x13b)](_0x78f335['ZOiDS'])['argv'];},exports[a15_0x40272c(0x151)]=async function(_0x2ad418){const _0x3d94b4=a15_0x40272c,_0x4d65d3={'EEuST':function(_0x1a92db){return _0x1a92db();},'yrSGD':_0x3d94b4(0x172),'zLMGR':function(_0x31c533,_0x38c38a,_0x256c4f,_0xbfa34e,_0x67f86b,_0x176337,_0x511b2d){return _0x31c533(_0x38c38a,_0x256c4f,_0xbfa34e,_0x67f86b,_0x176337,_0x511b2d);},'zQhey':_0x3d94b4(0x13a),'FmlXN':_0x3d94b4(0x132),'hodCo':'GET','DRjCj':function(_0x97f1ae,_0x51fe78,_0xb1ab3e){return _0x97f1ae(_0x51fe78,_0xb1ab3e);},'VMwtY':function(_0x19cd05,_0x40477a,_0x2687af){return _0x19cd05(_0x40477a,_0x2687af);},'WqBTk':function(_0x45f3ab,_0x44286b){return _0x45f3ab!==_0x44286b;},'bqwKE':function(_0x39fe16,_0x197441){return _0x39fe16!==_0x197441;},'CRqLO':function(_0x269d6c,_0x4c188c){return _0x269d6c===_0x4c188c;},'lyhvC':'\x0aFound\x20the\x20following\x20grids:\x0a','ecWAO':_0x3d94b4(0x15f),'KcpbO':'grid-name','wNaAZ':_0x3d94b4(0x15b),'tJUbn':_0x3d94b4(0x159),'eCqIW':_0x3d94b4(0x149),'UrWRB':_0x3d94b4(0x138),'jBKpu':function(_0x4ed4cf,_0x3780c9){return _0x4ed4cf(_0x3780c9);},'aiGyE':function(_0x3cb2ce,_0x107532){return _0x3cb2ce===_0x107532;},'eJzaF':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','fXaYe':function(_0x4a5aa6,_0x34ef61,_0x115734,_0x5ea065,_0x3f508f,_0x3d6044,_0x302f53){return _0x4a5aa6(_0x34ef61,_0x115734,_0x5ea065,_0x3f508f,_0x3d6044,_0x302f53);},'VkiDf':_0x3d94b4(0x154),'UCfdU':function(_0x543528,_0x565532,_0xf8afdb,_0x1abdd2,_0xffbea4,_0x141901,_0x31c57f){return _0x543528(_0x565532,_0xf8afdb,_0x1abdd2,_0xffbea4,_0x141901,_0x31c57f);},'rMlzk':_0x3d94b4(0x163),'DVJoS':_0x3d94b4(0x164)};try{global_registry[_0x3d94b4(0x134)]=_0x4d65d3[_0x3d94b4(0x174)](uuidv4);!fs['existsSync'](_0x4d65d3['EEuST'](getCredentialsPath))&&(console[_0x3d94b4(0x16f)](_0x4d65d3[_0x3d94b4(0x15a)]),await _0x4d65d3[_0x3d94b4(0x126)](sendInstrumentationEvent,_0x2ad418,_0x4d65d3['zQhey'],messageTypes[_0x3d94b4(0x16d)],_0x4d65d3[_0x3d94b4(0x15e)],null,_0x2ad418),process[_0x3d94b4(0x128)](0x1));const _0x37aed0=JSON[_0x3d94b4(0x12d)](fs['readFileSync'](_0x4d65d3[_0x3d94b4(0x174)](getCredentialsPath)));let _0x32b662=_0x3d94b4(0x16c)+AG_API_URL+_0x3d94b4(0x147);_0x2ad418[_0x3d94b4(0x144)]&&(_0x32b662=_0x3d94b4(0x16c)+AG_API_URL+_0x3d94b4(0x13c));const _0x534fa7={'method':_0x4d65d3[_0x3d94b4(0x12e)],'headers':_0x4d65d3[_0x3d94b4(0x168)](getAuthHeader,_0x37aed0[_0x3d94b4(0x16a)]['username'],_0x37aed0[_0x3d94b4(0x16a)][_0x3d94b4(0x12c)]),'throwHttpErrors':![]};global_registry[_0x3d94b4(0x130)]=_0x37aed0['Browserstack'][_0x3d94b4(0x158)],global_registry[_0x3d94b4(0x16b)]=_0x37aed0[_0x3d94b4(0x16a)]['password'],_0x4d65d3[_0x3d94b4(0x126)](sendInstrumentationEvent,_0x2ad418,_0x4d65d3[_0x3d94b4(0x125)],messageTypes['INFO'],null,null,_0x2ad418);const _0x3a3ad6=await _0x4d65d3[_0x3d94b4(0x170)](got,_0x32b662,_0x534fa7);if(_0x4d65d3[_0x3d94b4(0x16e)](_0x3a3ad6,null)&&_0x4d65d3['bqwKE'](_0x3a3ad6,undefined)&&_0x4d65d3[_0x3d94b4(0x122)](_0x3a3ad6['statusCode'],0xc8)){const _0x3e51c5=JSON[_0x3d94b4(0x12d)](_0x3a3ad6[_0x3d94b4(0x14c)]);console[_0x3d94b4(0x145)](_0x4d65d3[_0x3d94b4(0x165)]);const _0x58e8cd=[];_0x58e8cd['push']([_0x4d65d3[_0x3d94b4(0x12a)],_0x4d65d3[_0x3d94b4(0x14b)],_0x4d65d3['wNaAZ'],_0x4d65d3['tJUbn'],_0x4d65d3[_0x3d94b4(0x167)],_0x4d65d3[_0x3d94b4(0x152)]]),_0x3e51c5[_0x3d94b4(0x12f)](_0x532984=>{const _0x460a18=_0x3d94b4;_0x58e8cd[_0x460a18(0x173)]([_0x532984['id'],_0x532984['name'],_0x532984['status'],_0x532984[_0x460a18(0x159)],_0x532984[_0x460a18(0x149)],_0x532984[_0x460a18(0x12b)]]);}),console[_0x3d94b4(0x145)](_0x4d65d3[_0x3d94b4(0x141)](table,_0x58e8cd)),process[_0x3d94b4(0x128)](0x0);}_0x4d65d3[_0x3d94b4(0x142)](_0x3a3ad6['statusCode'],0x191)&&(console[_0x3d94b4(0x16f)](_0x4d65d3[_0x3d94b4(0x13d)]),await _0x4d65d3[_0x3d94b4(0x169)](sendInstrumentationEvent,_0x2ad418,_0x4d65d3[_0x3d94b4(0x125)],messageTypes[_0x3d94b4(0x16d)],_0x4d65d3[_0x3d94b4(0x171)],null,_0x2ad418),process['exit'](0x1)),console[_0x3d94b4(0x16f)](_0x3d94b4(0x153)+JSON['stringify'](_0x3a3ad6)),await _0x4d65d3[_0x3d94b4(0x129)](sendInstrumentationEvent,_0x2ad418,_0x4d65d3[_0x3d94b4(0x125)],messageTypes[_0x3d94b4(0x16d)],_0x4d65d3[_0x3d94b4(0x146)],_0x3a3ad6,_0x2ad418),process[_0x3d94b4(0x128)](0x1);}catch(_0x36fc96){console[_0x3d94b4(0x16f)](_0x3d94b4(0x166)+_0x36fc96[_0x3d94b4(0x133)]),await _0x4d65d3[_0x3d94b4(0x129)](sendInstrumentationEvent,_0x2ad418,_0x4d65d3['zQhey'],messageTypes['ERROR'],_0x4d65d3[_0x3d94b4(0x124)],_0x36fc96,_0x2ad418),process[_0x3d94b4(0x128)](0x1);}};
1
+ const a15_0x1f26fc=a15_0x28f0;function a15_0x445f(){const _0x9d7f1c=['GVxiO','existsSync','bstackAccesskey','uPDZX','uBzuf','7796qkVjWT','desc','437110lAThuB','status','parse','list-grids-called','all-grids','list','wHljf','GET','init-not-called','push','eqJAB','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','argv','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','WXtav','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','GjCXt','pLHZZ','options','allGrids','description','HGqXe','username','name','statusCode','8pNBlvP','grid-id','https://','38460qEtets','clusterName','zdrOG','grid','exit','177cWexou','grids','log','command','SktMx','cluster-name','../../utils/instrumentationUtils','/packages/cli/get-all-grids','unauthorised','qBtiH','1347030rvYhBq','482391lMCQkF','ERROR','1224KTirya','password','WHPjV','BiYgT','../../utils/utilityMethods','stringify','Browserstack','error','yFxSK','readFileSync','running','queued','got','uuid','INFO','boolean','czmZu','epilogue','DOSHZ','forEach','usage','36783IBWtna','DVXKb','\x0aFound\x20the\x20following\x20grids:\x0a','requestId','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../config/constants','2824640PwiRmE','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','builder','HlXjh','GjwPw','stack','2035LdfKAk','kilFE','handler','help','Hmdov','izigA','grid-name','Failed\x20to\x20list\x20resources!\x20Error:\x20'];a15_0x445f=function(){return _0x9d7f1c;};return a15_0x445f();}(function(_0x2020d0,_0x4294bc){const _0x280bff=a15_0x28f0,_0xdb0932=_0x2020d0();while(!![]){try{const _0x2e104d=-parseInt(_0x280bff(0xfb))/0x1*(parseInt(_0x280bff(0xd8))/0x2)+parseInt(_0x280bff(0x106))/0x3+parseInt(_0x280bff(0xf3))/0x4*(parseInt(_0x280bff(0xda))/0x5)+parseInt(_0x280bff(0x105))/0x6+parseInt(_0x280bff(0x123))/0x7+parseInt(_0x280bff(0x108))/0x8*(-parseInt(_0x280bff(0x11d))/0x9)+-parseInt(_0x280bff(0xf6))/0xa*(-parseInt(_0x280bff(0xcb))/0xb);if(_0x2e104d===_0x4294bc)break;else _0xdb0932['push'](_0xdb0932['shift']());}catch(_0x5981ef){_0xdb0932['push'](_0xdb0932['shift']());}}}(a15_0x445f,0x57def));const fs=require('fs'),got=require(a15_0x1f26fc(0x114)),{table}=require('table'),{v4:uuidv4}=require(a15_0x1f26fc(0x115)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x1f26fc(0x122)),{getCredentialsPath,getAuthHeader}=require(a15_0x1f26fc(0x10c)),{sendInstrumentationEvent}=require(a15_0x1f26fc(0x101));function a15_0x28f0(_0x29336d,_0x378695){const _0x445f69=a15_0x445f();return a15_0x28f0=function(_0x28f0c3,_0x22c00a){_0x28f0c3=_0x28f0c3-0xc8;let _0x1251fe=_0x445f69[_0x28f0c3];return _0x1251fe;},a15_0x28f0(_0x29336d,_0x378695);}exports[a15_0x1f26fc(0xfe)]=a15_0x1f26fc(0xfc),exports[a15_0x1f26fc(0xd9)]=a15_0x1f26fc(0xe7),exports[a15_0x1f26fc(0x125)]=function(_0x136718){const _0x13c369=a15_0x1f26fc,_0x7c3a60={};_0x7c3a60[_0x13c369(0xf8)]=_0x13c369(0xe9),_0x7c3a60['BiYgT']=_0x13c369(0x117),_0x7c3a60['czmZu']=_0x13c369(0xce);const _0x2a7f32=_0x7c3a60,_0xeda6b1={};_0xeda6b1[_0x13c369(0xee)]=_0x2a7f32[_0x13c369(0xf8)],_0xeda6b1['type']=_0x2a7f32[_0x13c369(0x10b)];const _0xabe34a={};return _0xabe34a[_0x13c369(0xde)]=_0xeda6b1,_0x136718[_0x13c369(0x11c)](HELP_HEADER_MESSAGE[_0x13c369(0xdf)][_0x13c369(0xf9)])[_0x13c369(0x119)](HELP_FOOTER_MESSAGE)[_0x13c369(0xec)](_0xabe34a)['help'](_0x2a7f32[_0x13c369(0x118)])[_0x13c369(0xe6)];},exports[a15_0x1f26fc(0xcd)]=async function(_0x214541){const _0x1b66e4=a15_0x1f26fc,_0x99bf73={'WXtav':function(_0x2a674a){return _0x2a674a();},'HGqXe':function(_0x4176ee){return _0x4176ee();},'Hmdov':_0x1b66e4(0x121),'pLHZZ':function(_0x479ce7,_0x3ac168,_0x5ae213,_0x499681,_0x23369c,_0x4fa1e8,_0x1dc2e1){return _0x479ce7(_0x3ac168,_0x5ae213,_0x499681,_0x23369c,_0x4fa1e8,_0x1dc2e1);},'qBtiH':_0x1b66e4(0xdd),'DVXKb':_0x1b66e4(0xe2),'GVxiO':_0x1b66e4(0xe1),'GRkqd':function(_0x39626b,_0x5f09bc,_0x1a2d04){return _0x39626b(_0x5f09bc,_0x1a2d04);},'yFxSK':function(_0x239c63,_0x23a3cb,_0x538e83,_0xeb3cf8,_0x3fbd15,_0x4f7dc4,_0x23b706){return _0x239c63(_0x23a3cb,_0x538e83,_0xeb3cf8,_0x3fbd15,_0x4f7dc4,_0x23b706);},'kilFE':function(_0x7c8bba,_0x318a41,_0x31173e){return _0x7c8bba(_0x318a41,_0x31173e);},'mDIAe':function(_0x397f09,_0x44cc50){return _0x397f09!==_0x44cc50;},'izigA':function(_0xef553,_0x39ae1a){return _0xef553!==_0x39ae1a;},'eIDOK':function(_0x9dc557,_0x436bce){return _0x9dc557===_0x436bce;},'GjCXt':_0x1b66e4(0x11f),'WHPjV':_0x1b66e4(0xf4),'eqJAB':_0x1b66e4(0xd1),'Xfrbc':_0x1b66e4(0xdb),'GjwPw':'running','uPDZX':_0x1b66e4(0x113),'uBzuf':_0x1b66e4(0x100),'DOSHZ':function(_0x46ad15,_0x47d41c){return _0x46ad15(_0x47d41c);},'gixpW':_0x1b66e4(0x124),'HlXjh':_0x1b66e4(0x103),'SktMx':'server-error','wHljf':'unknown-error'};try{global_registry[_0x1b66e4(0x120)]=_0x99bf73[_0x1b66e4(0xe8)](uuidv4);!fs[_0x1b66e4(0xd4)](_0x99bf73[_0x1b66e4(0xef)](getCredentialsPath))&&(console[_0x1b66e4(0x10f)](_0x99bf73[_0x1b66e4(0xcf)]),await _0x99bf73[_0x1b66e4(0xeb)](sendInstrumentationEvent,_0x214541,_0x99bf73[_0x1b66e4(0x104)],messageTypes['ERROR'],_0x99bf73[_0x1b66e4(0x11e)],null,_0x214541),process['exit'](0x1));const _0x2b0f3d=JSON[_0x1b66e4(0xdc)](fs[_0x1b66e4(0x111)](_0x99bf73[_0x1b66e4(0xef)](getCredentialsPath)));let _0x5d3437=_0x1b66e4(0xf5)+AG_API_URL+'/packages/cli/get-grids';_0x214541[_0x1b66e4(0xed)]&&(_0x5d3437=_0x1b66e4(0xf5)+AG_API_URL+_0x1b66e4(0x102));const _0x5ba6c1={'method':_0x99bf73[_0x1b66e4(0xd3)],'headers':_0x99bf73['GRkqd'](getAuthHeader,_0x2b0f3d['Browserstack']['username'],_0x2b0f3d['Browserstack'][_0x1b66e4(0x109)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x2b0f3d['Browserstack'][_0x1b66e4(0xf0)],global_registry[_0x1b66e4(0xd5)]=_0x2b0f3d[_0x1b66e4(0x10e)]['password'],_0x99bf73[_0x1b66e4(0x110)](sendInstrumentationEvent,_0x214541,_0x99bf73[_0x1b66e4(0x104)],messageTypes[_0x1b66e4(0x116)],null,null,_0x214541);const _0x582281=await _0x99bf73[_0x1b66e4(0xcc)](got,_0x5d3437,_0x5ba6c1);if(_0x99bf73['mDIAe'](_0x582281,null)&&_0x99bf73[_0x1b66e4(0xd0)](_0x582281,undefined)&&_0x99bf73['eIDOK'](_0x582281[_0x1b66e4(0xf2)],0xc8)){const _0x52823e=JSON[_0x1b66e4(0xdc)](_0x582281['body']);console[_0x1b66e4(0xfd)](_0x99bf73[_0x1b66e4(0xea)]);const _0x2a7e15=[];_0x2a7e15['push']([_0x99bf73[_0x1b66e4(0x10a)],_0x99bf73[_0x1b66e4(0xe4)],_0x99bf73['Xfrbc'],_0x99bf73[_0x1b66e4(0xc9)],_0x99bf73[_0x1b66e4(0xd6)],_0x99bf73[_0x1b66e4(0xd7)]]),_0x52823e[_0x1b66e4(0x11b)](_0x584590=>{const _0x10cb0c=_0x1b66e4;_0x2a7e15[_0x10cb0c(0xe3)]([_0x584590['id'],_0x584590[_0x10cb0c(0xf1)],_0x584590['status'],_0x584590[_0x10cb0c(0x112)],_0x584590[_0x10cb0c(0x113)],_0x584590[_0x10cb0c(0xf7)]]);}),console['log'](_0x99bf73[_0x1b66e4(0x11a)](table,_0x2a7e15)),process[_0x1b66e4(0xfa)](0x0);}_0x99bf73['eIDOK'](_0x582281['statusCode'],0x191)&&(console[_0x1b66e4(0x10f)](_0x99bf73['gixpW']),await _0x99bf73[_0x1b66e4(0x110)](sendInstrumentationEvent,_0x214541,_0x99bf73[_0x1b66e4(0x104)],messageTypes['ERROR'],_0x99bf73[_0x1b66e4(0xc8)],null,_0x214541),process['exit'](0x1)),console[_0x1b66e4(0x10f)](_0x1b66e4(0xe5)+JSON[_0x1b66e4(0x10d)](_0x582281)),await _0x99bf73[_0x1b66e4(0xeb)](sendInstrumentationEvent,_0x214541,_0x99bf73[_0x1b66e4(0x104)],messageTypes[_0x1b66e4(0x107)],_0x99bf73[_0x1b66e4(0xff)],_0x582281,_0x214541),process[_0x1b66e4(0xfa)](0x1);}catch(_0x31d4dd){console[_0x1b66e4(0x10f)](_0x1b66e4(0xd2)+_0x31d4dd[_0x1b66e4(0xca)]),await _0x99bf73['pLHZZ'](sendInstrumentationEvent,_0x214541,_0x99bf73[_0x1b66e4(0x104)],messageTypes[_0x1b66e4(0x107)],_0x99bf73[_0x1b66e4(0xe0)],_0x31d4dd,_0x214541),process[_0x1b66e4(0xfa)](0x1);}};
@@ -1 +1 @@
1
- function a16_0x5670(_0x2ff304,_0x3ffaeb){const _0xffe3ee=a16_0xffe3();return a16_0x5670=function(_0x56702b,_0x230d5e){_0x56702b=_0x56702b-0x1b0;let _0x2947ed=_0xffe3ee[_0x56702b];return _0x2947ed;},a16_0x5670(_0x2ff304,_0x3ffaeb);}const a16_0xc7a414=a16_0x5670;(function(_0x354eed,_0x163e69){const _0x3d28ff=a16_0x5670,_0x5f1c14=_0x354eed();while(!![]){try{const _0x29fc27=parseInt(_0x3d28ff(0x1bf))/0x1+parseInt(_0x3d28ff(0x1b1))/0x2+parseInt(_0x3d28ff(0x1b9))/0x3+-parseInt(_0x3d28ff(0x1ba))/0x4*(parseInt(_0x3d28ff(0x1c6))/0x5)+parseInt(_0x3d28ff(0x1c7))/0x6*(-parseInt(_0x3d28ff(0x1bc))/0x7)+-parseInt(_0x3d28ff(0x1b6))/0x8*(-parseInt(_0x3d28ff(0x1b2))/0x9)+-parseInt(_0x3d28ff(0x1c3))/0xa;if(_0x29fc27===_0x163e69)break;else _0x5f1c14['push'](_0x5f1c14['shift']());}catch(_0x8ab04b){_0x5f1c14['push'](_0x5f1c14['shift']());}}}(a16_0xffe3,0x9faae));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a16_0xffe3(){const _0x391538=['usage','1878741FqHCAX','15816tyxuZn','strict','56TIhweY','handler','epilogue','1056947kOvnAY','pOanH','demandCommand','precheck_commands','4375930mIEcMr','builder','CHiLz','865BFEppp','742974STpRIA','command','commandDir','1500766sUtwqN','124758yIvTnQ','pre_check','help','recommendCommands','192FayyIH','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup'];a16_0xffe3=function(){return _0x391538;};return a16_0xffe3();}exports[a16_0xc7a414(0x1c8)]='pre-check',exports['desc']=a16_0xc7a414(0x1b7),exports[a16_0xc7a414(0x1c4)]=function(_0x19a594){const _0x4928e6=a16_0xc7a414,_0x1cff1b={};_0x1cff1b[_0x4928e6(0x1c0)]=_0x4928e6(0x1c2),_0x1cff1b[_0x4928e6(0x1c5)]='help';const _0x22b64f=_0x1cff1b;return _0x19a594[_0x4928e6(0x1b8)](HELP_HEADER_MESSAGE[_0x4928e6(0x1b3)])[_0x4928e6(0x1be)](HELP_FOOTER_MESSAGE)[_0x4928e6(0x1b0)](_0x22b64f[_0x4928e6(0x1c0)])[_0x4928e6(0x1c1)]()[_0x4928e6(0x1b5)]()[_0x4928e6(0x1bb)]()[_0x4928e6(0x1b4)](_0x22b64f[_0x4928e6(0x1c5)]);},exports[a16_0xc7a414(0x1bd)]=function(_0x15923c){};
1
+ const a16_0x868081=a16_0x450a;(function(_0x24077b,_0xad2166){const _0x216801=a16_0x450a,_0x70fa80=_0x24077b();while(!![]){try{const _0x311f72=parseInt(_0x216801(0xb3))/0x1+-parseInt(_0x216801(0xb7))/0x2*(-parseInt(_0x216801(0xab))/0x3)+-parseInt(_0x216801(0xc2))/0x4*(-parseInt(_0x216801(0xaf))/0x5)+-parseInt(_0x216801(0xb5))/0x6*(-parseInt(_0x216801(0xc0))/0x7)+parseInt(_0x216801(0xbe))/0x8*(-parseInt(_0x216801(0xc4))/0x9)+-parseInt(_0x216801(0xb9))/0xa*(-parseInt(_0x216801(0xbd))/0xb)+-parseInt(_0x216801(0xb4))/0xc*(parseInt(_0x216801(0xba))/0xd);if(_0x311f72===_0xad2166)break;else _0x70fa80['push'](_0x70fa80['shift']());}catch(_0x5e8aed){_0x70fa80['push'](_0x70fa80['shift']());}}}(a16_0x5cbc,0x411ac));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x868081(0xb0));function a16_0x450a(_0x412b59,_0x14fcd0){const _0x5cbc13=a16_0x5cbc();return a16_0x450a=function(_0x450ac9,_0x15b6b1){_0x450ac9=_0x450ac9-0xaa;let _0x1ab8d4=_0x5cbc13[_0x450ac9];return _0x1ab8d4;},a16_0x450a(_0x412b59,_0x14fcd0);}exports['command']='pre-check',exports[a16_0x868081(0xbf)]=a16_0x868081(0xb2),exports['builder']=function(_0x4840ef){const _0x4c9bfb=a16_0x868081,_0x462bea={};_0x462bea[_0x4c9bfb(0xb6)]=_0x4c9bfb(0xc1),_0x462bea[_0x4c9bfb(0xbc)]='help';const _0x5f0c26=_0x462bea;return _0x4840ef['usage'](HELP_HEADER_MESSAGE[_0x4c9bfb(0xad)])[_0x4c9bfb(0xb1)](HELP_FOOTER_MESSAGE)[_0x4c9bfb(0xbb)](_0x5f0c26[_0x4c9bfb(0xb6)])[_0x4c9bfb(0xc3)]()[_0x4c9bfb(0xaa)]()[_0x4c9bfb(0xac)]()[_0x4c9bfb(0xae)](_0x5f0c26[_0x4c9bfb(0xbc)]);},exports[a16_0x868081(0xb8)]=function(_0x5c3d39){};function a16_0x5cbc(){const _0x4a37fa=['176077AXworJ','1163024GRbboR','desc','7DatXeV','precheck_commands','24XFQAeP','demandCommand','9HZNxKX','recommendCommands','3AvAprr','strict','pre_check','help','2135xoJqxk','../config/constants','epilogue','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','299792vPgYPk','228NfQgYb','2825052iYUCEX','sWQzv','709966DysDvL','handler','80vyznUn','577603WVfOgq','commandDir','bsMmi'];a16_0x5cbc=function(){return _0x4a37fa;};return a16_0x5cbc();}
@@ -1 +1 @@
1
- function a17_0x575b(_0x5e6823,_0x43437c){const _0x5729ee=a17_0x5729();return a17_0x575b=function(_0x575bb8,_0x36721c){_0x575bb8=_0x575bb8-0x12e;let _0x3e81b6=_0x5729ee[_0x575bb8];return _0x3e81b6;},a17_0x575b(_0x5e6823,_0x43437c);}const a17_0xc3a04a=a17_0x575b;(function(_0x59f2fc,_0x21c697){const _0x5c0a85=a17_0x575b,_0x552ddf=_0x59f2fc();while(!![]){try{const _0x7e019e=parseInt(_0x5c0a85(0x17b))/0x1*(parseInt(_0x5c0a85(0x183))/0x2)+parseInt(_0x5c0a85(0x145))/0x3+parseInt(_0x5c0a85(0x18b))/0x4+parseInt(_0x5c0a85(0x215))/0x5*(-parseInt(_0x5c0a85(0x170))/0x6)+parseInt(_0x5c0a85(0x223))/0x7*(-parseInt(_0x5c0a85(0x158))/0x8)+-parseInt(_0x5c0a85(0x1ba))/0x9+parseInt(_0x5c0a85(0x1ac))/0xa*(-parseInt(_0x5c0a85(0x192))/0xb);if(_0x7e019e===_0x21c697)break;else _0x552ddf['push'](_0x552ddf['shift']());}catch(_0x1f503f){_0x552ddf['push'](_0x552ddf['shift']());}}}(a17_0x5729,0xf0f83));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0xc3a04a(0x1b2)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0xc3a04a(0x19f)),{logger}=require(a17_0xc3a04a(0x1d9)),{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_0xc3a04a(0x1e3)),webSocketUtils=require(a17_0xc3a04a(0x176)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0xc3a04a(0x1d2)]='grid',exports[a17_0xc3a04a(0x1ee)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a17_0xc3a04a(0x203)]=function(_0x1127b4){const _0x1558b5=a17_0xc3a04a,_0x22aee7={};_0x22aee7[_0x1558b5(0x12e)]=_0x1558b5(0x169),_0x22aee7[_0x1558b5(0x130)]='string',_0x22aee7['sHwmK']=_0x1558b5(0x204),_0x22aee7[_0x1558b5(0x15b)]=_0x1558b5(0x13b),_0x22aee7[_0x1558b5(0x18c)]=_0x1558b5(0x182),_0x22aee7['tQUjS']=_0x1558b5(0x15a);const _0x47b6b9=_0x22aee7,_0x3f522e={};_0x3f522e[_0x1558b5(0x148)]=_0x47b6b9[_0x1558b5(0x12e)],_0x3f522e['type']=_0x47b6b9['ZFnvc'];const _0x3dbcbc={};_0x3dbcbc[_0x1558b5(0x148)]=_0x47b6b9['sHwmK'],_0x3dbcbc[_0x1558b5(0x178)]=_0x47b6b9[_0x1558b5(0x130)];const _0x140c25={};_0x140c25[_0x1558b5(0x148)]=_0x47b6b9[_0x1558b5(0x15b)],_0x140c25[_0x1558b5(0x178)]=_0x47b6b9[_0x1558b5(0x130)];const _0x2b1f57={};_0x2b1f57[_0x1558b5(0x148)]=_0x47b6b9[_0x1558b5(0x18c)],_0x2b1f57[_0x1558b5(0x178)]=_0x47b6b9['ZFnvc'];const _0x3a6ad5={};return _0x3a6ad5[_0x1558b5(0x1a3)]=_0x3f522e,_0x3a6ad5[_0x1558b5(0x1e4)]=_0x3dbcbc,_0x3a6ad5[_0x1558b5(0x21e)]=_0x140c25,_0x3a6ad5[_0x1558b5(0x136)]=_0x2b1f57,_0x1127b4['usage'](HELP_HEADER_MESSAGE['pre_check'])[_0x1558b5(0x155)](HELP_FOOTER_MESSAGE)[_0x1558b5(0x221)](_0x3a6ad5)[_0x1558b5(0x15a)](_0x47b6b9[_0x1558b5(0x19d)])[_0x1558b5(0x188)];};async function inputValidation(_0x556abc,_0x1147af){const _0x1c579f=a17_0xc3a04a,_0x4b869c={'VuHVV':_0x1c579f(0x200),'XDeJJ':_0x1c579f(0x169),'gmFTS':_0x1c579f(0x1c0),'eLxbD':_0x1c579f(0x204),'YeMDG':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','xfCmn':_0x1c579f(0x182),'KbZXV':_0x1c579f(0x15a),'GlrSi':'cloud-provider','ybWSH':_0x1c579f(0x1a3),'NxywT':_0x1c579f(0x1a5),'tpxTZ':'will\x20be\x20created','FBeKE':_0x1c579f(0x1b0),'bOkwo':function(_0x4f5d78,_0x2a67a9){return _0x4f5d78+_0x2a67a9;},'MujbY':'Success','StLnY':_0x1c579f(0x139),'hPXcu':function(_0x3adb30,_0x21ac46){return _0x3adb30||_0x21ac46;},'fFJiR':_0x1c579f(0x1b3),'LBLAU':_0x1c579f(0x15d),'jtpdo':_0x1c579f(0x21e),'kcAwX':function(_0x4110cc,_0x21fc99){return _0x4110cc!==_0x21fc99;},'EiVXl':_0x1c579f(0x1fa),'CFKSP':function(_0x3ab741,_0x2e8086){return _0x3ab741===_0x2e8086;},'SNqli':_0x1c579f(0x140),'aXQqy':'RuFVW','bOTVT':function(_0x1cd351,_0x44170f){return _0x1cd351!==_0x44170f;},'wfNBK':_0x1c579f(0x1dc),'YkoPQ':function(_0x2e7d32,_0x3ca289){return _0x2e7d32===_0x3ca289;},'AnASV':_0x1c579f(0x19e),'DsrIz':_0x1c579f(0x143),'bocpi':_0x1c579f(0x1da),'GreQq':function(_0x2fc12f,_0x12b4f8){return _0x2fc12f>_0x12b4f8;},'saApV':function(_0x3ff798,_0x2c9015){return _0x3ff798===_0x2c9015;},'XvesV':_0x1c579f(0x1f8),'sRxlU':_0x1c579f(0x1b4),'gNhuU':function(_0x1c81ac,_0xadbee8,_0xa5afb0,_0xb5698d,_0x4ad801,_0x10ab8,_0x1b0abd,_0x27af40){return _0x1c81ac(_0xadbee8,_0xa5afb0,_0xb5698d,_0x4ad801,_0x10ab8,_0x1b0abd,_0x27af40);},'VdarW':_0x1c579f(0x1c7),'vnGJQ':'pre-check-cluster-args-not-passed','MTBwW':'kqMcA','shjCC':_0x1c579f(0x1db),'NkJiR':function(_0xf59d7e,_0x9c7e82,_0x417467,_0x1ce9ad,_0x3e7b17,_0x71bc4d,_0x191738,_0x463a28){return _0xf59d7e(_0x9c7e82,_0x417467,_0x1ce9ad,_0x3e7b17,_0x71bc4d,_0x191738,_0x463a28);},'TIWkU':'cloud-provider-not-supported','QRlUM':function(_0x4d622f,_0x3095a0){return _0x4d622f!==_0x3095a0;},'XACbs':_0x1c579f(0x1e8),'VnKVz':_0x1c579f(0x16c),'zRwty':_0x1c579f(0x1b7),'FsMvN':'GET','wfcBR':function(_0x179482,_0x1246c8,_0x4d182f){return _0x179482(_0x1246c8,_0x4d182f);},'ZceZk':function(_0x507db1,_0x3650c9,_0x41231f,_0x57372f,_0x1366cb,_0x4a46b1){return _0x507db1(_0x3650c9,_0x41231f,_0x57372f,_0x1366cb,_0x4a46b1);},'xgxrF':_0x1c579f(0x147),'UXsnG':_0x1c579f(0x136),'XKnOm':function(_0x14c5b0,_0x591437){return _0x14c5b0===_0x591437;},'YAZDd':function(_0x248452,_0x10d2e5){return _0x248452===_0x10d2e5;},'Dkwfh':_0x1c579f(0x225),'CqiFv':'wgjOT','BYBVP':function(_0x4267f7,_0x1915bf){return _0x4267f7(_0x1915bf);},'AxNBO':function(_0x1b739f,_0x2a25f7){return _0x1b739f!==_0x2a25f7;},'pWkIx':_0x1c579f(0x193),'HhuOd':_0x1c579f(0x198),'HmhvR':function(_0x3a57da,_0x2d6205){return _0x3a57da!==_0x2d6205;},'wjgCV':_0x1c579f(0x16a),'NBRse':_0x1c579f(0x1bb),'FLLUR':_0x1c579f(0x13d),'nYCRp':_0x1c579f(0x18f),'ETHiU':_0x1c579f(0x1bd),'DiiAW':_0x1c579f(0x21d)};let _0x3b5803;try{if(_0x4b869c[_0x1c579f(0x1bc)](_0x4b869c[_0x1c579f(0x180)],_0x4b869c[_0x1c579f(0x180)]))_0x16ad37['error'](_0x4b869c[_0x1c579f(0x1e2)]),_0x2ce6f6[_0x1c579f(0x1ca)](0x1);else{if(_0x556abc[_0x1c579f(0x17c)]||_0x556abc[_0x1c579f(0x1a8)]||_0x556abc[_0x1c579f(0x21e)]){if(_0x4b869c[_0x1c579f(0x17e)](_0x4b869c[_0x1c579f(0x1ef)],_0x4b869c[_0x1c579f(0x1ff)])){const _0x30d0c3={};_0x30d0c3['description']=_0x4b869c[_0x1c579f(0x1e7)],_0x30d0c3['type']=_0x4b869c[_0x1c579f(0x16b)];const _0x2158fd={};_0x2158fd[_0x1c579f(0x148)]=_0x4b869c['eLxbD'],_0x2158fd['type']=_0x4b869c[_0x1c579f(0x16b)];const _0x4a99f6={};_0x4a99f6['description']=_0x4b869c[_0x1c579f(0x1fe)],_0x4a99f6[_0x1c579f(0x178)]=_0x4b869c[_0x1c579f(0x16b)];const _0x2ba73c={};_0x2ba73c[_0x1c579f(0x148)]=_0x4b869c[_0x1c579f(0x1c5)],_0x2ba73c['type']=_0x4b869c[_0x1c579f(0x16b)];const _0x32167e={};return _0x32167e[_0x1c579f(0x1a3)]=_0x30d0c3,_0x32167e[_0x1c579f(0x1e4)]=_0x2158fd,_0x32167e[_0x1c579f(0x21e)]=_0x4a99f6,_0x32167e[_0x1c579f(0x136)]=_0x2ba73c,_0x3af6e1['usage'](_0x18b998[_0x1c579f(0x14b)])['epilogue'](_0x5d97f4)[_0x1c579f(0x221)](_0x32167e)[_0x1c579f(0x15a)](_0x4b869c[_0x1c579f(0x179)])[_0x1c579f(0x188)];}else{const _0x3601ff=[];!_0x556abc[_0x1c579f(0x17c)]&&(_0x4b869c['bOTVT'](_0x4b869c[_0x1c579f(0x160)],_0x4b869c[_0x1c579f(0x160)])?_0x5d72c5[_0x1c579f(0x15e)](_0x4b869c[_0x1c579f(0x218)]):_0x3601ff['push'](_0x4b869c[_0x1c579f(0x14c)]));;!_0x556abc[_0x1c579f(0x1a8)]&&(_0x4b869c['YkoPQ'](_0x4b869c[_0x1c579f(0x1eb)],_0x4b869c['AnASV'])?_0x3601ff[_0x1c579f(0x15e)](_0x4b869c[_0x1c579f(0x218)]):_0x5b49ec[_0x1c579f(0x15e)](_0x4b869c['ybWSH']));;!_0x556abc[_0x1c579f(0x21e)]&&(_0x4b869c[_0x1c579f(0x1a7)](_0x4b869c[_0x1c579f(0x1c3)],_0x4b869c[_0x1c579f(0x21c)])?_0x523224['info'](_0x1c579f(0x161)+_0x16ea46['clusterName']+'`\x20already\x20exists'):_0x3601ff[_0x1c579f(0x15e)](_0x4b869c['jtpdo']));;_0x4b869c[_0x1c579f(0x1fc)](_0x3601ff['length'],0x0)&&(_0x4b869c[_0x1c579f(0x138)](_0x4b869c[_0x1c579f(0x14d)],_0x4b869c[_0x1c579f(0x165)])?_0x42ff2c+=_0x1c579f(0x1dd)+_0x2affad[_0x1c579f(0x17c)]+'\x20'+(_0x2fafe1?_0x4b869c['NxywT']:_0x4b869c['tpxTZ'])+'\x0a\x0a':(_0x3b5803=_0x1c579f(0x17f)+_0x3601ff[_0x1c579f(0x15f)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x4b869c[_0x1c579f(0x1b5)](reportToGalactusAndSendToEDS,_0x556abc,_0x1147af,_0x3b5803,messageTypes[_0x1c579f(0x1fd)],_0x4b869c['VdarW'],_0x4b869c[_0x1c579f(0x1de)],_0x4b869c[_0x1c579f(0x185)]),logger[_0x1c579f(0x1b0)](_0x3b5803),process[_0x1c579f(0x1ca)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x1c579f(0x177)](_0x556abc[_0x1c579f(0x1a8)][_0x1c579f(0x1cf)]())&&(_0x4b869c[_0x1c579f(0x138)](_0x4b869c[_0x1c579f(0x13c)],_0x4b869c[_0x1c579f(0x13c)])?(_0x3b5803=_0x4b869c[_0x1c579f(0x214)],await _0x4b869c[_0x1c579f(0x134)](reportToGalactusAndSendToEDS,_0x556abc,_0x1147af,_0x3b5803,messageTypes[_0x1c579f(0x1fd)],_0x4b869c[_0x1c579f(0x202)],_0x4b869c['TIWkU'],_0x4b869c['FBeKE']),logger['error'](_0x3b5803),!_0x556abc[_0x1c579f(0x1a8)]&&(_0x4b869c['QRlUM'](_0x4b869c['XACbs'],_0x4b869c['VnKVz'])?(logger[_0x1c579f(0x1af)](_0x1c579f(0x1f9)+DEFAULT_CLUSTER_DETAILS[_0x1c579f(0x133)]+'\x20'),_0x556abc[_0x1c579f(0x1a8)]=DEFAULT_CLUSTER_DETAILS[_0x1c579f(0x133)]):_0x3f7d43+=_0x1c579f(0x1dd)+_0x3b9183[_0x1c579f(0x17c)]+_0x1c579f(0x21a))):(_0x276276[_0x1c579f(0x1af)]('['+_0x459ae5+_0x1c579f(0x15c)+_0x1ab5db[_0x1c579f(0x142)]+_0x1c579f(0x1c1)+_0x1b6bf8['data']+_0x1c579f(0x186)+_0x3edae9['error']),_0x335ffd['error']&&_0x39f841[_0x1c579f(0x1b0)](_0x1c579f(0x1c2)+_0x40ea86[_0x1c579f(0x1b0)][_0x1c579f(0x1bf)]))),global_registry[_0x1c579f(0x17c)]=_0x556abc[_0x1c579f(0x17c)],global_registry[_0x1c579f(0x1a8)]=_0x556abc[_0x1c579f(0x1a8)],global_registry['clusterRegion']=_0x556abc[_0x1c579f(0x21e)];}}else{if(_0x556abc['gridProfile']){if(_0x4b869c[_0x1c579f(0x17e)](_0x4b869c[_0x1c579f(0x1b9)],_0x4b869c[_0x1c579f(0x1b9)])){global_registry[_0x1c579f(0x184)]=_0x556abc[_0x1c579f(0x184)],logger['debug']('grid\x20profile\x20flow\x20'+_0x556abc[_0x1c579f(0x184)]);const _0x410b41='https://'+AG_API_URL+_0x1c579f(0x189),_0x66aa5a={};_0x66aa5a[_0x1c579f(0x141)]=_0x4b869c[_0x1c579f(0x172)],_0x66aa5a['headers']=global_registry['authHeader'],_0x66aa5a['throwHttpErrors']=![];const _0x5c45e6=_0x66aa5a,_0x32402a=await _0x4b869c['wfcBR'](got,_0x410b41,_0x5c45e6),_0x32e1c7=await _0x4b869c['ZceZk'](responseValidation,_0x32402a,_0x4b869c[_0x1c579f(0x1a2)],_0x4b869c[_0x1c579f(0x174)],_0x556abc,_0x1147af);let _0x1045a6={};if(_0x4b869c[_0x1c579f(0x1c8)](_0x32e1c7,0xc8)){if(_0x4b869c[_0x1c579f(0x18e)](_0x4b869c['Dkwfh'],_0x4b869c[_0x1c579f(0x1f4)])){const _0x301695={};_0x301695['type']=_0x5374ca[_0x1c579f(0x1d1)],_0x301695['message']=_0x499f44,_0x13cdc4[_0x1c579f(0x13a)](_0x31b38d,_0x301695,_0x4b869c[_0x1c579f(0x185)],!![]);}else{const _0x4b6aed=JSON['parse'](_0x32402a[_0x1c579f(0x144)]),_0x1f7b7a=_0x4b6aed[_0x1c579f(0x20c)](_0x72de97=>_0x72de97[_0x1c579f(0x212)]===_0x556abc[_0x1c579f(0x184)])||null;if(_0x4b869c['BYBVP'](isUndefined,_0x1f7b7a))_0x4b869c[_0x1c579f(0x1c4)](_0x4b869c[_0x1c579f(0x1f3)],_0x4b869c[_0x1c579f(0x1f3)])?_0x52d4f1=_0xfeea88:(_0x3b5803=_0x1c579f(0x194)+_0x556abc[_0x1c579f(0x184)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x4b869c[_0x1c579f(0x1b5)](reportToGalactusAndSendToEDS,_0x556abc,_0x1147af,_0x3b5803,messageTypes[_0x1c579f(0x1fd)],_0x4b869c[_0x1c579f(0x202)],_0x4b869c[_0x1c579f(0x1d8)],_0x4b869c[_0x1c579f(0x185)]),logger['error'](_0x3b5803),process[_0x1c579f(0x1ca)](0x1));else{if(_0x4b869c[_0x1c579f(0x149)](_0x4b869c[_0x1c579f(0x19a)],_0x4b869c[_0x1c579f(0x21b)]))_0x1045a6=_0x1f7b7a;else{const {header:_0x1368c1,response:_0x4e673c}=_0xa73339,{status:_0x481397,data:_0x3b0fa6,error:_0x19b6a4}=_0x4e673c;_0x57e3cb+=_0x1368c1+'\x20#'+_0x4b869c[_0x1c579f(0x1d6)](_0x5d759b,0x1)+'\x0a',_0x47d611+='Status:\x20'+(_0x481397?_0x4b869c[_0x1c579f(0x1a4)]:_0x4b869c[_0x1c579f(0x14f)])+'\x0a',_0x28b165+=_0x1c579f(0x197)+_0x4b869c['hPXcu'](_0x3b0fa6,_0x4b869c[_0x1c579f(0x191)])+'\x0a',_0x19b6a4&&(_0x1ef089+=_0x4b869c[_0x1c579f(0x1e0)],_0xe12189+=_0x1c579f(0x220)+(_0x19b6a4[_0x1c579f(0x135)]||_0x4b869c[_0x1c579f(0x191)])+'\x0a',_0x4da97c+='\x20\x20Code:\x20'+(_0x19b6a4[_0x1c579f(0x168)]||_0x4b869c['fFJiR'])+'\x0a',_0x495d8d+=_0x1c579f(0x171)+(_0x19b6a4['stack']||_0x4b869c[_0x1c579f(0x191)])+'\x0a'),_0x525440+='\x0a\x0a';}}}}else _0x4b869c[_0x1c579f(0x17e)](_0x4b869c[_0x1c579f(0x217)],_0x4b869c['FLLUR'])?process[_0x1c579f(0x1ca)](0x1):_0x3d6cb7[_0x1c579f(0x1b0)](_0x1c579f(0x1c2)+_0x5ede14['error'][_0x1c579f(0x1bf)]);const _0x5aaf26={};_0x5aaf26[_0x1c579f(0x178)]=WS_EVENTS[_0x1c579f(0x1d1)],_0x5aaf26[_0x1c579f(0x135)]=_0x4b869c['nYCRp'],webSocketUtils[_0x1c579f(0x13a)](_0x1147af,_0x5aaf26),global_registry[_0x1c579f(0x1a8)]=_0x1045a6['cloudProvider'],global_registry[_0x1c579f(0x1d7)]=_0x1045a6['region'],global_registry[_0x1c579f(0x17c)]=_0x1045a6[_0x1c579f(0x17c)];}else _0x1b607a[_0x1c579f(0x1ca)](0x1);}else _0x4b869c[_0x1c579f(0x149)](_0x4b869c[_0x1c579f(0x181)],_0x4b869c[_0x1c579f(0x181)])?_0x5a79c9[_0x1c579f(0x15e)](_0x4b869c[_0x1c579f(0x20f)]):(logger[_0x1c579f(0x1b0)](_0x4b869c[_0x1c579f(0x1e2)]),process[_0x1c579f(0x1ca)](0x1));}}}catch(_0x384585){_0x4b869c[_0x1c579f(0x18e)](_0x4b869c['DiiAW'],_0x4b869c['DiiAW'])?(_0x3b5803=_0x1c579f(0x175)+_0x384585+':\x20'+_0x384585[_0x1c579f(0x1bf)],logger['error'](_0x3b5803),await _0x4b869c['gNhuU'](reportToGalactusAndSendToEDS,_0x556abc,_0x1147af,_0x3b5803,messageTypes[_0x1c579f(0x1fd)],_0x4b869c[_0x1c579f(0x202)],_0x4b869c[_0x1c579f(0x1fb)],_0x4b869c[_0x1c579f(0x185)]),process['exit'](0x1)):(_0x58c5c8+=_0x4b869c[_0x1c579f(0x1e0)],_0x5cb68c+='\x20\x20Message:\x20'+(_0x5034f5[_0x1c579f(0x135)]||_0x4b869c['fFJiR'])+'\x0a',_0x4c1369+=_0x1c579f(0x18a)+(_0x50d008[_0x1c579f(0x168)]||_0x4b869c['fFJiR'])+'\x0a',_0x302019+=_0x1c579f(0x171)+(_0xf57211[_0x1c579f(0x1bf)]||_0x4b869c['fFJiR'])+'\x0a');}}function printResponse(_0x43e20b,_0x1a9f73){const _0x4f621a=a17_0xc3a04a,_0x4f5115={};_0x4f5115[_0x4f621a(0x20d)]=function(_0x46d109,_0x429fb5){return _0x46d109===_0x429fb5;},_0x4f5115[_0x4f621a(0x1df)]=_0x4f621a(0x166),_0x4f5115[_0x4f621a(0x222)]=_0x4f621a(0x16e);const _0x1bc1cf=_0x4f5115;logger[_0x4f621a(0x1af)]('['+_0x43e20b+']\x20status\x20:\x20'+_0x1a9f73[_0x4f621a(0x142)]+'\x20data\x20:\x20'+_0x1a9f73[_0x4f621a(0x14a)]+_0x4f621a(0x186)+_0x1a9f73[_0x4f621a(0x1b0)]),_0x1a9f73[_0x4f621a(0x1b0)]&&(_0x1bc1cf[_0x4f621a(0x20d)](_0x1bc1cf['gpoYQ'],_0x1bc1cf['AWHFf'])?(_0x25ff35[_0x4f621a(0x1af)]('Setting\x20cloud\x20provider\x20as\x20'+_0x3fd951[_0x4f621a(0x133)]+'\x20'),_0x4ceb54[_0x4f621a(0x1a8)]=_0x49f6eb[_0x4f621a(0x133)]):logger['error'](_0x4f621a(0x1c2)+_0x1a9f73[_0x4f621a(0x1b0)][_0x4f621a(0x1bf)]));}async function generateReport(_0x4faff6,_0x43bb83){const _0x42faca=a17_0xc3a04a,_0x4f4dde={'VqPDM':function(_0x35b4bf,_0x427aa5){return _0x35b4bf+_0x427aa5;},'mGboC':'Success','NerYc':_0x42faca(0x139),'pbpqV':function(_0x7853ac,_0x216448){return _0x7853ac||_0x216448;},'IWYVZ':_0x42faca(0x1b3),'ZhvLg':_0x42faca(0x15d),'TAWuK':_0x42faca(0x1b8),'GrYJo':function(_0x4bf882,_0x546ffa){return _0x4bf882!=_0x546ffa;},'glmzg':'is\x20already\x20present','oqsew':'will\x20be\x20created','gXgNi':function(_0x42dd16){return _0x42dd16();}};let _0x5aedc3=_0x42faca(0x1ad)+global_registry[_0x42faca(0x1a8)]+_0x42faca(0x1e6);return _0x4faff6['forEach']((_0x2161df,_0x493992)=>{const _0x57f69c=_0x42faca,{header:_0x3634b3,response:_0x405064}=_0x2161df,{status:_0x1b5b54,data:_0xad2f4e,error:_0x42a17f}=_0x405064;_0x5aedc3+=_0x3634b3+'\x20#'+_0x4f4dde[_0x57f69c(0x1e5)](_0x493992,0x1)+'\x0a',_0x5aedc3+=_0x57f69c(0x14e)+(_0x1b5b54?_0x4f4dde[_0x57f69c(0x1a6)]:_0x4f4dde[_0x57f69c(0x196)])+'\x0a',_0x5aedc3+=_0x57f69c(0x197)+_0x4f4dde[_0x57f69c(0x1e9)](_0xad2f4e,_0x4f4dde[_0x57f69c(0x1be)])+'\x0a',_0x42a17f&&(_0x5aedc3+=_0x4f4dde[_0x57f69c(0x201)],_0x5aedc3+=_0x57f69c(0x220)+(_0x42a17f[_0x57f69c(0x135)]||_0x4f4dde[_0x57f69c(0x1be)])+'\x0a',_0x5aedc3+=_0x57f69c(0x18a)+(_0x42a17f[_0x57f69c(0x168)]||_0x4f4dde[_0x57f69c(0x1be)])+'\x0a',_0x5aedc3+='\x20\x20Stack:\x20'+(_0x42a17f[_0x57f69c(0x1bf)]||_0x4f4dde['IWYVZ'])+'\x0a'),_0x5aedc3+='\x0a\x0a';}),_0x5aedc3+=_0x4f4dde['TAWuK'],_0x4f4dde[_0x42faca(0x219)](_0x43bb83,null)?_0x5aedc3+='Cluster\x20'+global_registry[_0x42faca(0x17c)]+'\x20'+(_0x43bb83?_0x4f4dde[_0x42faca(0x1b6)]:_0x4f4dde[_0x42faca(0x159)])+'\x0a\x0a':_0x5aedc3+=_0x42faca(0x1dd)+global_registry[_0x42faca(0x17c)]+_0x42faca(0x21a),_0x5aedc3+=_0x4f4dde[_0x42faca(0x1ce)](getSystemMetaData),_0x5aedc3;}function a17_0x5729(){const _0x732187=['Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','ZhvLg','VdarW','builder','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','<UsernamePlaceholder>','replace','kIeAY','boVFn','Whitelisted\x20browserstack','Browserstack','toolInstalledResp','find','BjEzy','0|1|3|2|4','jtpdo','existsSync','credential-not-found','name','authHeader','shjCC','2815WBwJFz','dummy-grid','FLLUR','GlrSi','GrYJo','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','NBRse','bocpi','glSMv','region','EiCcL','\x20\x20Message:\x20','options','AWHFf','736141qbmJdN','mKpVV','mtDLA','pre-check-failed','WebSocket','WPagk','cluster-check-failed-','ZFnvc','delay','connectionTimeout','CLOUD_PROVIDER','NkJiR','message','grid-profile','gRKQv','saApV','Failure','sendEventToBackend','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','MTBwW','JGkJM','bstackAccesskey','\x20region\x20-\x20','rhDBM','method','status','UgeKk','body','5068725tCSKYM','eeeRQ','pre-check','description','HmhvR','data','pre_check','ybWSH','XvesV','Status:\x20','StLnY','ObkAw','MWbjy','stringify','getUTCHours','fTWWw','epilogue','Pre-check\x20running\x20for\x20Cloud\x20-\x20','`\x20,error\x20:\x20','104tKhDtP','oqsew','help','JkoPE',']\x20status\x20:\x20','Error\x20Details:\x0a','push','join','wfNBK','Cluster\x20`','split','KSAtL','isClusterPresent','sRxlU','txZAI','Failed\x20in\x20pre-check!\x20Error:\x20','code','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','BkKsB','gmFTS','jDRNN','response','LAeMD','Vlrvu','18498uTGCMJ','\x20\x20Stack:\x20','FsMvN','header','UXsnG','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','../../utils/webSocketUtils','includes','type','KbZXV','getUTCDate','17846cIxMyt','clusterName','XYQfE','CFKSP','Missing\x20required\x20arguments:\x20','EiVXl','ETHiU','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','214IWQqXC','gridProfile','FBeKE','\x20error\x20:\x20','abAAw','argv','/packages/cli/get-all-grid-profiles','\x20\x20Code:\x20','6633052kSSwQt','MVmtm','ZfkLD','YAZDd','Grid\x20profile\x20fetched\x20for\x20pre-check','ZGcRr','fFJiR','11ljGWYZ','UXiEn','Invalid\x20input.\x20grid\x20profiles:\x20','getUTCFullYear','NerYc','Message:\x20','pre-check-grid-profile-empty','debug','wjgCV','utf-8','isTls1_2_SUPPORTED','tQUjS','cPsri','../../utils/utilityMethods','<PasswordPlaceholder>','JEJQn','xgxrF','cluster-name','MujbY','is\x20already\x20present','mGboC','YkoPQ','cloudProvider','parse','username','isTrialGridAccessible','6415670KZNAWn','===\x20Precheck\x20Report\x20-\x20','atOfc','info','error','accessResp','reconnecting-websocket','N/A','WmFYk','gNhuU','glmzg','lvEcA','Cluster\x20details\x0a-----------------------\x0a','zRwty','4733406WTAfcM','VCmOz','kcAwX','sqOrv','IWYVZ','stack','string','\x20data\x20:\x20','error\x20stack\x20:\x20','DsrIz','AxNBO','xfCmn','AKjEl','pre-check-grid-called','XKnOm','Report\x20saved\x20in\x20','exit','handler','pyLoZ','bstackUsername','gXgNi','toLowerCase','Tool\x20Installed','LOG','command','unable\x20to\x20verify\x20if\x20cluster\x20`','User\x20Access','TLSv1_2_client_method','bOkwo','clusterRegion','HhuOd','../../config/logger','XPfHt','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','jnoVG','Cluster\x20','vnGJQ','gpoYQ','LBLAU','bGwnq','VuHVV','../../cloudproviders/utils','cloud-provider','VqPDM','\x20===\x0a\x0a','XDeJJ','SCgCg','pbpqV','password','AnASV','isCliToolInstalled','drgmm','desc','SNqli','readFileSync','TWDcV','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','pWkIx','CqiFv','ULzFz','HlCXZ','EaZhw','KcZaf','Setting\x20cloud\x20provider\x20as\x20','QvkfX','TIWkU','GreQq','ERROR','YeMDG','aXQqy'];a17_0x5729=function(){return _0x732187;};return a17_0x5729();};exports[a17_0xc3a04a(0x1cb)]=async function(_0x29775b){const _0x1b8aaf=a17_0xc3a04a,_0x41570c={'Vlrvu':function(_0x56b39e){return _0x56b39e();},'wZzov':_0x1b8aaf(0x1f2),'HlCXZ':function(_0x5e1e9e,_0x342a2d,_0x5ee178,_0x35c277,_0x54177b,_0x2d1e8d,_0x4ac652,_0x1e2a2f){return _0x5e1e9e(_0x342a2d,_0x5ee178,_0x35c277,_0x54177b,_0x2d1e8d,_0x4ac652,_0x1e2a2f);},'fTWWw':_0x1b8aaf(0x1c7),'EaZhw':_0x1b8aaf(0x211),'atOfc':'error','AKjEl':function(_0x332f8c,_0x46c195,_0x41ef69,_0x208260,_0x393a31,_0x35680c,_0x44e8e4){return _0x332f8c(_0x46c195,_0x41ef69,_0x208260,_0x393a31,_0x35680c,_0x44e8e4);},'abAAw':function(_0x2895d4){return _0x2895d4();},'MWbjy':_0x1b8aaf(0x205),'TWDcV':_0x1b8aaf(0x1a0),'mKpVV':function(_0x11530a,_0x479940,_0x46e81c){return _0x11530a(_0x479940,_0x46e81c);},'WIrcB':function(_0x2639e6,_0x25b716,_0x30f1cc,_0x4d5140,_0x5fc3f2,_0x4a9552,_0x521bd0){return _0x2639e6(_0x25b716,_0x30f1cc,_0x4d5140,_0x5fc3f2,_0x4a9552,_0x521bd0);},'ObkAw':_0x1b8aaf(0x216),'bGwnq':function(_0x230693,_0x28745c,_0x53b6ef){return _0x230693(_0x28745c,_0x53b6ef);},'ZfkLD':_0x1b8aaf(0x20b),'kIeAY':_0x1b8aaf(0x20e),'EiCcL':function(_0x4bb4fc,_0x405200,_0x389748,_0x5d20c7,_0x17b45a,_0x3f4c28,_0x428beb,_0x446df2){return _0x4bb4fc(_0x405200,_0x389748,_0x5d20c7,_0x17b45a,_0x3f4c28,_0x428beb,_0x446df2);},'eeeRQ':_0x1b8aaf(0x1b1),'YhLfe':function(_0x135ddb,_0x33597f,_0x32c8cf){return _0x135ddb(_0x33597f,_0x32c8cf);},'drgmm':_0x1b8aaf(0x1ab),'gRKQv':function(_0x4c9be4,_0x32c406){return _0x4c9be4(_0x32c406);},'XYQfE':_0x1b8aaf(0x1d5),'pyLoZ':_0x1b8aaf(0x19c),'KSAtL':_0x1b8aaf(0x1d0),'ZGcRr':_0x1b8aaf(0x1d4),'AZXjU':_0x1b8aaf(0x209),'ULzFz':'SSL\x20Configured','QowAt':function(_0x37a8f0,_0x15f5a3){return _0x37a8f0+_0x15f5a3;},'JEJQn':_0x1b8aaf(0x19b),'boVFn':_0x1b8aaf(0x226)};let _0x4ec4c1,_0x46d46a;try{global_registry['requestId']=_0x41570c[_0x1b8aaf(0x16f)](uuidv4);!fs[_0x1b8aaf(0x210)](_0x41570c['Vlrvu'](getCredentialsPath))&&(_0x46d46a=_0x41570c['wZzov'],logger[_0x1b8aaf(0x1b0)](_0x46d46a),await _0x41570c[_0x1b8aaf(0x1f6)](reportToGalactusAndSendToEDS,_0x29775b,_0x4ec4c1,_0x46d46a,messageTypes[_0x1b8aaf(0x1fd)],_0x41570c[_0x1b8aaf(0x154)],_0x41570c[_0x1b8aaf(0x1f7)],_0x41570c[_0x1b8aaf(0x1ae)]),process[_0x1b8aaf(0x1ca)](0x1));_0x41570c['AKjEl'](sendInstrumentationEvent,_0x29775b,_0x41570c['fTWWw'],messageTypes['INFO'],null,null,_0x29775b);const _0x59cc67=JSON[_0x1b8aaf(0x1a9)](fs[_0x1b8aaf(0x1f0)](_0x41570c[_0x1b8aaf(0x187)](getCredentialsPath)));global_registry[_0x1b8aaf(0x1cd)]=_0x59cc67[_0x1b8aaf(0x20a)][_0x1b8aaf(0x1aa)],global_registry[_0x1b8aaf(0x13e)]=_0x59cc67[_0x1b8aaf(0x20a)][_0x1b8aaf(0x1ea)];const _0x174eb1=WS_ENDPOINT[_0x1b8aaf(0x206)](_0x41570c[_0x1b8aaf(0x151)],_0x59cc67[_0x1b8aaf(0x20a)]['username'])[_0x1b8aaf(0x206)](_0x41570c[_0x1b8aaf(0x1f1)],_0x59cc67[_0x1b8aaf(0x20a)]['password']),_0x1a6d51={};_0x1a6d51[_0x1b8aaf(0x227)]=ws,_0x1a6d51[_0x1b8aaf(0x132)]=0x36ee80,_0x4ec4c1=new ReconnectingWebSocket(_0x174eb1,[],_0x1a6d51),global_registry[_0x1b8aaf(0x213)]=_0x41570c[_0x1b8aaf(0x224)](getAuthHeader,global_registry[_0x1b8aaf(0x1cd)],global_registry['bstackAccesskey']),await _0x41570c['mKpVV'](inputValidation,_0x29775b,_0x4ec4c1),logger[_0x1b8aaf(0x1af)](_0x1b8aaf(0x156)+global_registry[_0x1b8aaf(0x1a8)]+_0x1b8aaf(0x13f)+global_registry[_0x1b8aaf(0x1d7)]);let _0x5b7479=await _0x41570c['WIrcB'](getCloudProviderObjectWithOutInit,global_registry[_0x1b8aaf(0x1a8)],global_registry['clusterName'],_0x41570c[_0x1b8aaf(0x150)],_0x4ec4c1,webSocketUtils,_0x29775b);const _0x339eba=await _0x5b7479[_0x1b8aaf(0x1ec)]();_0x41570c[_0x1b8aaf(0x1e1)](printResponse,_0x41570c[_0x1b8aaf(0x18d)],_0x339eba),_0x5b7479=await _0x5b7479['init']();let _0x2aeff5=![];try{_0x2aeff5=await _0x5b7479[_0x1b8aaf(0x164)]();}catch(_0x2a7cd9){const _0x3e17dc=_0x41570c[_0x1b8aaf(0x207)][_0x1b8aaf(0x162)]('|');let _0x18d2f6=0x0;while(!![]){switch(_0x3e17dc[_0x18d2f6++]){case'0':_0x46d46a=_0x1b8aaf(0x1d3)+global_registry[_0x1b8aaf(0x17c)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x1b8aaf(0x1d7)]+_0x1b8aaf(0x157)+_0x2a7cd9;continue;case'1':_0x2aeff5=null;continue;case'2':_0x46d46a+='\x0a'+JSON[_0x1b8aaf(0x152)](_0x2a7cd9[_0x1b8aaf(0x1bf)]);continue;case'3':logger[_0x1b8aaf(0x1b0)](_0x46d46a);continue;case'4':await _0x41570c[_0x1b8aaf(0x21f)](reportToGalactusAndSendToEDS,_0x29775b,_0x4ec4c1,_0x46d46a,messageTypes[_0x1b8aaf(0x1fd)],_0x41570c['fTWWw'],_0x1b8aaf(0x12f)+global_registry['cloudProvider'],_0x41570c[_0x1b8aaf(0x1ae)]);continue;}break;}}_0x2aeff5&&logger[_0x1b8aaf(0x1af)](_0x1b8aaf(0x161)+global_registry[_0x1b8aaf(0x17c)]+'`\x20already\x20exists');const _0x5159a2=await _0x5b7479['checkAccess']();_0x41570c[_0x1b8aaf(0x224)](printResponse,_0x41570c[_0x1b8aaf(0x146)],_0x5159a2);const _0x59498b=await _0x41570c['abAAw'](curlRequest);_0x41570c['YhLfe'](printResponse,_0x41570c[_0x1b8aaf(0x1ed)],_0x59498b);const _0x119732=await _0x41570c[_0x1b8aaf(0x137)](isTlsSupported,_0x41570c[_0x1b8aaf(0x17d)]);_0x41570c[_0x1b8aaf(0x1e1)](printResponse,_0x41570c[_0x1b8aaf(0x1cc)],_0x119732);const _0x459ee6={};_0x459ee6['header']=_0x41570c[_0x1b8aaf(0x163)],_0x459ee6[_0x1b8aaf(0x16d)]=_0x339eba;const _0xdec933={};_0xdec933['header']=_0x41570c[_0x1b8aaf(0x190)],_0xdec933[_0x1b8aaf(0x16d)]=_0x5159a2;const _0x58c9b8={};_0x58c9b8[_0x1b8aaf(0x173)]=_0x41570c['AZXjU'],_0x58c9b8[_0x1b8aaf(0x16d)]=_0x59498b;const _0xdb415b={};_0xdb415b['header']=_0x41570c[_0x1b8aaf(0x1f5)],_0xdb415b[_0x1b8aaf(0x16d)]=_0x119732;const _0x2f0778=[_0x459ee6,_0xdec933,_0x58c9b8,_0xdb415b],_0x14be4d=await _0x41570c[_0x1b8aaf(0x1e1)](generateReport,_0x2f0778,_0x2aeff5),_0x113db6=new Date(),_0x4df0a9=_0x113db6[_0x1b8aaf(0x195)]()+'_'+_0x41570c['QowAt'](_0x113db6['getUTCMonth'](),0x1)+'_'+_0x113db6[_0x1b8aaf(0x17a)]()+'_'+_0x113db6[_0x1b8aaf(0x153)]()+'_'+_0x113db6['getUTCMinutes'](),_0x12dbe7='log/report_'+_0x4df0a9+'.txt';fs['writeFileSync'](_0x12dbe7,_0x14be4d,_0x41570c[_0x1b8aaf(0x1a1)]),logger['info'](_0x1b8aaf(0x1c9)+_0x12dbe7),process['exit'](0x0);}catch(_0x3e5aff){let _0x1624f2=_0x1b8aaf(0x167)+_0x3e5aff+'\x20';logger[_0x1b8aaf(0x1b0)](_0x1624f2),_0x1624f2+='\x0a'+JSON[_0x1b8aaf(0x152)](_0x3e5aff[_0x1b8aaf(0x1bf)]),logger[_0x1b8aaf(0x199)]('stack\x20trace\x20'+_0x3e5aff[_0x1b8aaf(0x1bf)]);if(_0x4ec4c1){const _0x4d537c={};_0x4d537c[_0x1b8aaf(0x178)]=WS_EVENTS[_0x1b8aaf(0x1d1)],_0x4d537c[_0x1b8aaf(0x135)]=_0x1624f2,webSocketUtils[_0x1b8aaf(0x13a)](_0x4ec4c1,_0x4d537c,_0x41570c['atOfc'],!![]);}await webSocketUtils[_0x1b8aaf(0x131)](0x7d0);const _0x1d5fcd={};_0x1d5fcd[_0x1b8aaf(0x1b0)]=_0x1624f2,await _0x41570c[_0x1b8aaf(0x1c6)](sendInstrumentationEvent,_0x29775b,_0x41570c[_0x1b8aaf(0x154)],messageTypes['ERROR'],_0x41570c[_0x1b8aaf(0x208)],_0x1d5fcd,_0x29775b),process['exit'](0x1);}};
1
+ const a17_0x145cd4=a17_0x1a88;(function(_0x29e310,_0x683593){const _0x51d620=a17_0x1a88,_0x239abb=_0x29e310();while(!![]){try{const _0x17615c=-parseInt(_0x51d620(0x207))/0x1+-parseInt(_0x51d620(0x1b9))/0x2*(parseInt(_0x51d620(0x268))/0x3)+parseInt(_0x51d620(0x1f2))/0x4*(-parseInt(_0x51d620(0x1dd))/0x5)+parseInt(_0x51d620(0x21e))/0x6+-parseInt(_0x51d620(0x276))/0x7*(parseInt(_0x51d620(0x1a1))/0x8)+parseInt(_0x51d620(0x1dc))/0x9*(-parseInt(_0x51d620(0x184))/0xa)+parseInt(_0x51d620(0x1d0))/0xb*(parseInt(_0x51d620(0x1ed))/0xc);if(_0x17615c===_0x683593)break;else _0x239abb['push'](_0x239abb['shift']());}catch(_0x78732a){_0x239abb['push'](_0x239abb['shift']());}}}(a17_0x5800,0x5f09d));function a17_0x5800(){const _0x5a1ba6=['rjvkb','RDEcL','vbTzQ','Invalid\x20input.\x20grid\x20profiles:\x20','Tool\x20Installed','XyuEt','forEach','2092092aCSUDt','../../utils/webSocketUtils','\x20region\x20-\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','UfQBB','toolInstalledResp','GET','RdwRp','`\x20already\x20exists','coIzP','YpYfh','fFUln','options','pre_check','jcrPH','kkrSK','Whitelisted\x20browserstack','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','nQoAY','ICbQs','rpgnm','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','lqRDV','pUFsZ','yCvmV','iaeTP','olGWN','TaUlg','clusterName','throwHttpErrors','help','JWJrl','ZVvzI','readFileSync','DRMTD','status','bstackAccesskey','vvUBp','SSL\x20Configured','`\x20,error\x20:\x20','epilogue','DffnC','osdpY','hhRMT','usage','region','bstackUsername','WbnJg','.txt','fffjE','wIxZc','code','type','getUTCHours','writeFileSync','checkAccess','getUTCFullYear','PITnw','kdNhL','EvCqs','MczQR','lRRog','grid\x20profile\x20flow\x20','<PasswordPlaceholder>','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','cloudProvider','debug','ykxmi','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','command','ukJSF','SVdNH','ivnNh','PrQpL','41958JncJQb','body','SbrUe','zUIcW','zwFIl','find','replace','qqjFw','dQlif','Browserstack','qUgNt','qSbuj','UCxaQ','getUTCMonth','13111IgVJiJ','xEiFV','handler','jwzck','User\x20Access','will\x20be\x20created','Setting\x20cloud\x20provider\x20as\x20','GQGMA','QRnZH','headers','AqScU','/packages/cli/get-all-grid-profiles','UaQza','`\x20is\x20present\x20in\x20region\x20`','YZqWg','2240BTcsgC','Failure','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','parse','../../config/constants','\x20\x20Code:\x20','includes','../../utils/instrumentationUtils','ZxWFg','xxoth','LOG','split','Cluster\x20','WebSocket','getUTCMinutes','getUTCDate','vEhxj','YUTjX','tCgHh','quqqQ','uuid','response','muIhh','KspEG','eizDd','pre-check-failed','HJqAH','tyEFL','HHscG','1648jKcBKo','FsqqP','tVijO','length','Fuiyt',']\x20status\x20:\x20','argv','===\x20Precheck\x20Report\x20-\x20','stack','jvVDc','cluster-name','error','UbDqi','UufZP','ROsFF','message','EFIgc','join','string','<UsernamePlaceholder>','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','reconnecting-websocket','Message:\x20','DeOAk','94YLMoiF','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','grid-profile','Status:\x20','EPGCb','existsSync','rpfJx','eXPBS','YKkdp','\x20data\x20:\x20','unable\x20to\x20verify\x20if\x20cluster\x20`','utf-8','cSXgU','bJWAf','KgNCu','isTls1_2_SUPPORTED','ycxyY','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','zqaZb','iolpb','\x20\x20Stack:\x20','CLOUD_PROVIDER','header','3456376ahZAmG','ixMUn','EiuEZ','ArFCq','AIQFy','bHCQm','4|3|0|2|1','lKiXB','EZOIW','\x20===\x0a\x0a','stringify','log/report_','13410LsVLrq','5Mcsquf','tjGGL','Pre-check\x20running\x20for\x20Cloud\x20-\x20','clusterRegion','N/A','uzqzT','isTrialGridAccessible','dummy-grid','zivnH','sendEventToBackend','pre-check-grid-called','pnNAQ','TdbWw','tiCyF','jjAOS','uXQFT','96aTcGgN','accessResp','ERROR','JrkPl','push','2522452TmxFCb','Samin','info','\x20error\x20:\x20','ldZoQ','cloud-provider','pre-check','Cluster\x20`','gridProfile','username','description','name','password','GJfMg','grid','requestId','error\x20stack\x20:\x20','is\x20already\x20present','authHeader','wezZC','BKfzT','465580wUZIYg','Success','pre-check-grid-profile-empty','init','credential-not-found','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','bolbe','OkdVZ','rxmCJ','exit','Error\x20Details:\x0a','nCmzm','QBUCF','tONXF','lvZPf','prtui'];a17_0x5800=function(){return _0x5a1ba6;};return a17_0x5800();}const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x145cd4(0x198)),ReconnectingWebSocket=require(a17_0x145cd4(0x1b6)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{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_0x145cd4(0x188)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x145cd4(0x21f)),{sendInstrumentationEvent}=require(a17_0x145cd4(0x18b));function a17_0x1a88(_0x50f7eb,_0x492313){const _0x5800ea=a17_0x5800();return a17_0x1a88=function(_0x1a8816,_0x907cd0){_0x1a8816=_0x1a8816-0x177;let _0x500a1e=_0x5800ea[_0x1a8816];return _0x500a1e;},a17_0x1a88(_0x50f7eb,_0x492313);}exports[a17_0x145cd4(0x263)]=a17_0x145cd4(0x200),exports['desc']='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports['builder']=function(_0x2860dc){const _0x4a086e=a17_0x145cd4,_0xea8c97={};_0xea8c97[_0x4a086e(0x1cb)]=_0x4a086e(0x22f),_0xea8c97[_0x4a086e(0x213)]=_0x4a086e(0x1b3),_0xea8c97[_0x4a086e(0x1b8)]=_0x4a086e(0x1ba),_0xea8c97[_0x4a086e(0x228)]=_0x4a086e(0x20c),_0xea8c97['prtui']='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0xea8c97[_0x4a086e(0x17f)]=_0x4a086e(0x23c);const _0x40a885=_0xea8c97,_0xc64e27={};_0xc64e27[_0x4a086e(0x1fc)]=_0x40a885[_0x4a086e(0x1cb)],_0xc64e27['type']=_0x40a885['QBUCF'];const _0x3eb3b2={};_0x3eb3b2['description']=_0x40a885['DeOAk'],_0x3eb3b2['type']=_0x40a885[_0x4a086e(0x213)];const _0x28135f={};_0x28135f[_0x4a086e(0x1fc)]=_0x40a885[_0x4a086e(0x228)],_0x28135f['type']=_0x40a885[_0x4a086e(0x213)];const _0x646e6e={};_0x646e6e[_0x4a086e(0x1fc)]=_0x40a885[_0x4a086e(0x216)],_0x646e6e[_0x4a086e(0x252)]=_0x40a885[_0x4a086e(0x213)];const _0x4576e8={};return _0x4576e8[_0x4a086e(0x1ab)]=_0xc64e27,_0x4576e8[_0x4a086e(0x1f7)]=_0x3eb3b2,_0x4576e8[_0x4a086e(0x24b)]=_0x28135f,_0x4576e8[_0x4a086e(0x1bb)]=_0x646e6e,_0x2860dc[_0x4a086e(0x24a)](HELP_HEADER_MESSAGE[_0x4a086e(0x22b)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4a086e(0x22a)](_0x4576e8)[_0x4a086e(0x23c)](_0x40a885['AqScU'])[_0x4a086e(0x1a7)];};async function inputValidation(_0x178202,_0x17ae08){const _0x58f127=a17_0x145cd4,_0x53e932={'EvCqs':_0x58f127(0x1ab),'qSbuj':_0x58f127(0x22f),'rjvkb':_0x58f127(0x1b3),'OkdVZ':_0x58f127(0x1ba),'BBsPw':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','jvVDc':_0x58f127(0x262),'QEYMs':_0x58f127(0x23c),'tCgHh':'cloud-provider','lKiXB':_0x58f127(0x1ac),'eizDd':_0x58f127(0x1b5),'Fuiyt':_0x58f127(0x211),'muIhh':_0x58f127(0x1e1),'RdwRp':'is\x20already\x20present','iaeTP':_0x58f127(0x17a),'wezZC':function(_0x44139d,_0x3a49a4){return _0x44139d+_0x3a49a4;},'coIzP':_0x58f127(0x208),'TaUlg':_0x58f127(0x185),'BKfzT':function(_0xbe66c3,_0x37fe8f){return _0xbe66c3||_0x37fe8f;},'tiCyF':function(_0x5e3efb,_0x2a199d){return _0x5e3efb===_0x2a199d;},'UaQza':_0x58f127(0x264),'DffnC':'VMtwj','rpfJx':function(_0x185172,_0x5a9c00){return _0x185172!==_0x5a9c00;},'ArFCq':_0x58f127(0x266),'tyEFL':_0x58f127(0x1c0),'QRnZH':function(_0x3412b5,_0x5b60cb){return _0x3412b5===_0x5b60cb;},'quqqQ':_0x58f127(0x1d8),'tVijO':_0x58f127(0x1ff),'KgNCu':'nfBNq','ldZoQ':_0x58f127(0x26b),'jwzck':function(_0x5cc4d5,_0x175061){return _0x5cc4d5===_0x175061;},'EPGCb':_0x58f127(0x261),'fxRuI':_0x58f127(0x235),'vbTzQ':_0x58f127(0x24b),'pnNAQ':function(_0x55f56e,_0x4a46b8){return _0x55f56e>_0x4a46b8;},'WbnJg':function(_0x5501d6,_0xfc7bb9){return _0x5501d6===_0xfc7bb9;},'dQlif':_0x58f127(0x1f3),'RDEcL':function(_0x26975d,_0x3825d6,_0x5b3f6d,_0x20a818,_0x17145d,_0x16c36c,_0x4fadfd,_0x6c6ea7){return _0x26975d(_0x3825d6,_0x5b3f6d,_0x20a818,_0x17145d,_0x16c36c,_0x4fadfd,_0x6c6ea7);},'hhRMT':_0x58f127(0x1e7),'MczQR':'pre-check-cluster-args-not-passed','EiuEZ':_0x58f127(0x22d),'tONXF':_0x58f127(0x1ca),'eAWah':'cloud-provider-not-supported','iolpb':function(_0x43f46d,_0x473280){return _0x43f46d===_0x473280;},'TXtoZ':'NQyZC','umDUw':_0x58f127(0x1ad),'PITnw':_0x58f127(0x26c),'qUgNt':_0x58f127(0x277),'uzqzT':_0x58f127(0x224),'nQoAY':function(_0x8554d5,_0x42e226,_0x5cce86){return _0x8554d5(_0x42e226,_0x5cce86);},'fAdGF':function(_0x2221fa,_0x2d2e73,_0x4ae5cd,_0x377273,_0x59dfef,_0x47c91d){return _0x2221fa(_0x2d2e73,_0x4ae5cd,_0x377273,_0x59dfef,_0x47c91d);},'jjAOS':_0x58f127(0x1f8),'GQGMA':'grid-profile','YKkdp':function(_0x1c43e3,_0x39aa10){return _0x1c43e3===_0x39aa10;},'DHycX':_0x58f127(0x231),'BMcKC':_0x58f127(0x1af),'UfQBB':function(_0x5a6f62,_0x1ede23){return _0x5a6f62(_0x1ede23);},'tjGGL':_0x58f127(0x19e),'jcrPH':_0x58f127(0x212),'sNkfc':_0x58f127(0x209),'UCxaQ':function(_0x44c461,_0x55169d){return _0x44c461===_0x55169d;},'vEhxj':_0x58f127(0x1e9),'olGWN':function(_0x3c077d,_0x423609){return _0x3c077d===_0x423609;},'zaJiK':_0x58f127(0x23e),'sqYuc':_0x58f127(0x267),'hQOlh':'Grid\x20profile\x20fetched\x20for\x20pre-check','JrkPl':function(_0x56cd07,_0x459747){return _0x56cd07!==_0x459747;},'xxoth':_0x58f127(0x1c5),'UufZP':'IBDZY'};let _0x1eb326;try{if(_0x53e932[_0x58f127(0x1ea)](_0x53e932[_0x58f127(0x181)],_0x53e932[_0x58f127(0x247)]))_0x413b89[_0x58f127(0x1f1)](_0x53e932[_0x58f127(0x259)]);else{if(_0x178202[_0x58f127(0x23a)]||_0x178202[_0x58f127(0x25f)]||_0x178202[_0x58f127(0x24b)]){if(_0x53e932[_0x58f127(0x1bf)](_0x53e932[_0x58f127(0x1d3)],_0x53e932[_0x58f127(0x19f)])){const _0xe50c07=[];!_0x178202['clusterName']&&(_0x53e932[_0x58f127(0x17d)](_0x53e932[_0x58f127(0x197)],_0x53e932[_0x58f127(0x1a3)])?_0x659d94+=_0x58f127(0x190)+_0x9bcb60[_0x58f127(0x23a)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':_0xe50c07['push'](_0x53e932[_0x58f127(0x259)]));;if(!_0x178202['cloudProvider']){if(_0x53e932[_0x58f127(0x1bf)](_0x53e932[_0x58f127(0x1c7)],_0x53e932[_0x58f127(0x1f6)]))_0xe50c07['push'](_0x53e932['tCgHh']);else{const _0x5ce9b6={};_0x5ce9b6[_0x58f127(0x1fc)]=_0x53e932[_0x58f127(0x273)],_0x5ce9b6[_0x58f127(0x252)]=_0x53e932[_0x58f127(0x217)];const _0x2ec968={};_0x2ec968[_0x58f127(0x1fc)]=_0x53e932[_0x58f127(0x20e)],_0x2ec968['type']=_0x53e932[_0x58f127(0x217)];const _0x2880b3={};_0x2880b3[_0x58f127(0x1fc)]=_0x53e932['BBsPw'],_0x2880b3['type']=_0x53e932[_0x58f127(0x217)];const _0x165e75={};_0x165e75['description']=_0x53e932[_0x58f127(0x1aa)],_0x165e75['type']=_0x53e932['rjvkb'];const _0x19a5dc={};return _0x19a5dc[_0x58f127(0x1ab)]=_0x5ce9b6,_0x19a5dc[_0x58f127(0x1f7)]=_0x2ec968,_0x19a5dc[_0x58f127(0x24b)]=_0x2880b3,_0x19a5dc[_0x58f127(0x1bb)]=_0x165e75,_0x357e6e[_0x58f127(0x24a)](_0x23849a[_0x58f127(0x22b)])[_0x58f127(0x246)](_0x53d68c)[_0x58f127(0x22a)](_0x19a5dc)[_0x58f127(0x23c)](_0x53e932['QEYMs'])[_0x58f127(0x1a7)];}};!_0x178202[_0x58f127(0x24b)]&&(_0x53e932[_0x58f127(0x178)](_0x53e932[_0x58f127(0x1bd)],_0x53e932['fxRuI'])?_0x67fabf=_0x49fb8d:_0xe50c07[_0x58f127(0x1f1)](_0x53e932[_0x58f127(0x219)]));;_0x53e932[_0x58f127(0x1e8)](_0xe50c07[_0x58f127(0x1a4)],0x0)&&(_0x53e932[_0x58f127(0x24d)](_0x53e932['dQlif'],_0x53e932[_0x58f127(0x270)])?(_0x1eb326='Missing\x20required\x20arguments:\x20'+_0xe50c07[_0x58f127(0x1b2)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x53e932[_0x58f127(0x218)](reportToGalactusAndSendToEDS,_0x178202,_0x17ae08,_0x1eb326,messageTypes['ERROR'],_0x53e932[_0x58f127(0x249)],_0x53e932[_0x58f127(0x25a)],_0x53e932[_0x58f127(0x1d7)]),logger[_0x58f127(0x1ac)](_0x1eb326),process[_0x58f127(0x210)](0x1)):_0x3e8afc[_0x58f127(0x1f1)](_0x53e932[_0x58f127(0x196)]));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x58f127(0x18a)](_0x178202[_0x58f127(0x25f)]['toLowerCase']())){if(_0x53e932['rpfJx'](_0x53e932[_0x58f127(0x1d2)],_0x53e932[_0x58f127(0x1d2)])){const _0x3375dc={};_0x3375dc[_0x58f127(0x252)]=_0x2d57b[_0x58f127(0x18e)],_0x3375dc[_0x58f127(0x1b0)]=_0x26d95e,_0x28fe80[_0x58f127(0x1e6)](_0x152b61,_0x3375dc,_0x53e932['lKiXB'],!![]);}else _0x1eb326=_0x53e932[_0x58f127(0x214)],await _0x53e932[_0x58f127(0x218)](reportToGalactusAndSendToEDS,_0x178202,_0x17ae08,_0x1eb326,messageTypes[_0x58f127(0x1ef)],_0x53e932['hhRMT'],_0x53e932['eAWah'],_0x53e932['lKiXB']),logger[_0x58f127(0x1ac)](_0x1eb326),!_0x178202[_0x58f127(0x25f)]&&(_0x53e932[_0x58f127(0x1cc)](_0x53e932['TXtoZ'],_0x53e932['umDUw'])?(_0x46b1d9['info']('['+_0x35d81d+']\x20status\x20:\x20'+_0x311e3c['status']+_0x58f127(0x1c2)+_0x36d073['data']+_0x58f127(0x1f5)+_0x5b41d2['error']),_0x220254[_0x58f127(0x1ac)]&&_0x2ce64f[_0x58f127(0x1ac)]('error\x20stack\x20:\x20'+_0x3c6576[_0x58f127(0x1ac)][_0x58f127(0x1a9)])):(logger[_0x58f127(0x1f4)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x178202[_0x58f127(0x25f)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']));}global_registry[_0x58f127(0x23a)]=_0x178202[_0x58f127(0x23a)],global_registry[_0x58f127(0x25f)]=_0x178202[_0x58f127(0x25f)],global_registry[_0x58f127(0x1e0)]=_0x178202[_0x58f127(0x24b)];}else _0x1594fb[_0x58f127(0x210)](0x1);}else{if(_0x178202[_0x58f127(0x1fa)]){if(_0x53e932[_0x58f127(0x1bf)](_0x53e932[_0x58f127(0x257)],_0x53e932[_0x58f127(0x272)])){global_registry[_0x58f127(0x1fa)]=_0x178202[_0x58f127(0x1fa)],logger[_0x58f127(0x260)](_0x58f127(0x25c)+_0x178202[_0x58f127(0x1fa)]);const _0x532141='https://'+AG_API_URL+_0x58f127(0x180),_0x5d1473={};_0x5d1473['method']=_0x53e932[_0x58f127(0x1e2)],_0x5d1473[_0x58f127(0x17e)]=global_registry['authHeader'],_0x5d1473[_0x58f127(0x23b)]=![];const _0x2dbc50=_0x5d1473,_0xcc84b8=await _0x53e932[_0x58f127(0x230)](got,_0x532141,_0x2dbc50),_0x2872e5=await _0x53e932['fAdGF'](responseValidation,_0xcc84b8,_0x53e932[_0x58f127(0x1eb)],_0x53e932[_0x58f127(0x17c)],_0x178202,_0x17ae08);let _0x3ad81b={};if(_0x53e932[_0x58f127(0x1c1)](_0x2872e5,0xc8)){if(_0x53e932[_0x58f127(0x1cc)](_0x53e932['DHycX'],_0x53e932['BMcKC']))_0x55739c['info'](_0x58f127(0x1f9)+_0x237d43['clusterName']+'`\x20already\x20exists');else{const _0x1d5b49=JSON['parse'](_0xcc84b8[_0x58f127(0x269)]),_0x441e88=_0x1d5b49[_0x58f127(0x26d)](_0x286fdd=>_0x286fdd[_0x58f127(0x1fd)]===_0x178202['gridProfile'])||null;_0x53e932[_0x58f127(0x222)](isUndefined,_0x441e88)?_0x53e932['rpfJx'](_0x53e932[_0x58f127(0x1de)],_0x53e932[_0x58f127(0x22c)])?(_0x1eb326=_0x58f127(0x21a)+_0x178202[_0x58f127(0x1fa)]+_0x58f127(0x186),await _0x53e932[_0x58f127(0x218)](reportToGalactusAndSendToEDS,_0x178202,_0x17ae08,_0x1eb326,messageTypes[_0x58f127(0x1ef)],_0x53e932[_0x58f127(0x249)],_0x53e932['sNkfc'],_0x53e932[_0x58f127(0x1d7)]),logger[_0x58f127(0x1ac)](_0x1eb326),process[_0x58f127(0x210)](0x1)):(_0x34b0e4[_0x58f127(0x1ac)](_0x53e932[_0x58f127(0x19c)]),_0x4a918d[_0x58f127(0x210)](0x1)):_0x53e932[_0x58f127(0x274)](_0x53e932[_0x58f127(0x194)],_0x53e932['vEhxj'])?_0x3ad81b=_0x441e88:(_0x45464c[_0x58f127(0x1f4)](_0x58f127(0x17b)+_0x3e430b[_0x58f127(0x1ce)]+'\x20'),_0x55a52f['cloudProvider']=_0x19cb0e[_0x58f127(0x1ce)]);}}else _0x53e932[_0x58f127(0x238)](_0x53e932['zaJiK'],_0x53e932['sqYuc'])?(_0x5b502a+=_0x53e932[_0x58f127(0x1a5)],_0x63f91f+='\x20\x20Message:\x20'+(_0x78611e['message']||_0x53e932[_0x58f127(0x19a)])+'\x0a',_0x2b5025+=_0x58f127(0x189)+(_0x3b733f['code']||_0x53e932['muIhh'])+'\x0a',_0x34c4c8+='\x20\x20Stack:\x20'+(_0x16cdaf['stack']||_0x53e932[_0x58f127(0x19a)])+'\x0a'):process['exit'](0x1);const _0x3b97c1={};_0x3b97c1[_0x58f127(0x252)]=WS_EVENTS[_0x58f127(0x18e)],_0x3b97c1['message']=_0x53e932['hQOlh'],webSocketUtils['sendEventToBackend'](_0x17ae08,_0x3b97c1),global_registry[_0x58f127(0x25f)]=_0x3ad81b['cloudProvider'],global_registry[_0x58f127(0x1e0)]=_0x3ad81b[_0x58f127(0x24b)],global_registry['clusterName']=_0x3ad81b['clusterName'];}else _0x182b2d[_0x58f127(0x1ac)]('error\x20stack\x20:\x20'+_0x19993a[_0x58f127(0x1ac)]['stack']);}else _0x53e932[_0x58f127(0x1f0)](_0x53e932[_0x58f127(0x18d)],_0x53e932[_0x58f127(0x18d)])?_0x5eb388+=_0x58f127(0x190)+_0x4062b7[_0x58f127(0x23a)]+'\x20'+(_0xf14ff2?_0x53e932[_0x58f127(0x225)]:_0x53e932[_0x58f127(0x237)])+'\x0a\x0a':(logger[_0x58f127(0x1ac)](_0x53e932[_0x58f127(0x19c)]),process['exit'](0x1));}}}catch(_0x1a6687){if(_0x53e932[_0x58f127(0x1bf)](_0x53e932[_0x58f127(0x1ae)],_0x53e932[_0x58f127(0x1ae)])){const {header:_0x45f364,response:_0x328db0}=_0x27bdfa,{status:_0x55cd07,data:_0x59e042,error:_0x577834}=_0x328db0;_0x402a95+=_0x45f364+'\x20#'+_0x53e932[_0x58f127(0x205)](_0x3327c2,0x1)+'\x0a',_0x418f4a+=_0x58f127(0x1bc)+(_0x55cd07?_0x53e932[_0x58f127(0x227)]:_0x53e932[_0x58f127(0x239)])+'\x0a',_0x1761ec+='Message:\x20'+_0x53e932[_0x58f127(0x206)](_0x59e042,_0x53e932[_0x58f127(0x19a)])+'\x0a',_0x577834&&(_0x53f58a+=_0x53e932[_0x58f127(0x1a5)],_0x39708a+='\x20\x20Message:\x20'+(_0x577834[_0x58f127(0x1b0)]||_0x53e932[_0x58f127(0x19a)])+'\x0a',_0x15763f+=_0x58f127(0x189)+(_0x577834[_0x58f127(0x251)]||_0x53e932[_0x58f127(0x19a)])+'\x0a',_0x5943a6+='\x20\x20Stack:\x20'+(_0x577834[_0x58f127(0x1a9)]||_0x53e932[_0x58f127(0x19a)])+'\x0a'),_0x2140bf+='\x0a\x0a';}else _0x1eb326=_0x58f127(0x25e)+_0x1a6687+':\x20'+_0x1a6687['stack'],logger[_0x58f127(0x1ac)](_0x1eb326),await _0x53e932[_0x58f127(0x218)](reportToGalactusAndSendToEDS,_0x178202,_0x17ae08,_0x1eb326,messageTypes[_0x58f127(0x1ef)],_0x53e932[_0x58f127(0x249)],_0x53e932['eAWah'],_0x53e932[_0x58f127(0x1d7)]),process[_0x58f127(0x210)](0x1);}}function printResponse(_0x1dff15,_0x4c7c94){const _0xf6a463=a17_0x145cd4,_0x7a2bb4={};_0x7a2bb4['SVdNH']='region',_0x7a2bb4['MkrNr']=function(_0x3a5e0d,_0x5b2f10){return _0x3a5e0d===_0x5b2f10;},_0x7a2bb4[_0xf6a463(0x1d4)]=_0xf6a463(0x18c);const _0x359dae=_0x7a2bb4;logger[_0xf6a463(0x1f4)]('['+_0x1dff15+_0xf6a463(0x1a6)+_0x4c7c94[_0xf6a463(0x241)]+'\x20data\x20:\x20'+_0x4c7c94['data']+'\x20error\x20:\x20'+_0x4c7c94[_0xf6a463(0x1ac)]),_0x4c7c94[_0xf6a463(0x1ac)]&&(_0x359dae['MkrNr'](_0x359dae['AIQFy'],_0x359dae['AIQFy'])?logger[_0xf6a463(0x1ac)](_0xf6a463(0x202)+_0x4c7c94['error']['stack']):_0x1949bb[_0xf6a463(0x1f1)](_0x359dae[_0xf6a463(0x265)]));}async function generateReport(_0x2cd35b,_0x1e3482){const _0x228970=a17_0x145cd4,_0x20ddc7={'fdoDt':function(_0x4f5b84,_0x36fc0c){return _0x4f5b84+_0x36fc0c;},'osdpY':_0x228970(0x208),'lRRog':'Failure','JPdlB':function(_0x46cd8d,_0x3f7d01){return _0x46cd8d||_0x3f7d01;},'SbrUe':'N/A','mzfgu':_0x228970(0x211),'PtfVk':'Cluster\x20details\x0a-----------------------\x0a','YUTjX':function(_0x471626,_0x5b2f16){return _0x471626!=_0x5b2f16;},'JWJrl':_0x228970(0x203),'bJWAf':_0x228970(0x17a),'xrUrv':function(_0x2657be){return _0x2657be();}};let _0xb381a2=_0x228970(0x1a8)+global_registry[_0x228970(0x25f)]+_0x228970(0x1d9);return _0x2cd35b[_0x228970(0x21d)]((_0x346769,_0x51d73b)=>{const _0x21c7ba=_0x228970,{header:_0x44e225,response:_0x2599af}=_0x346769,{status:_0x310474,data:_0x54eb4c,error:_0x25f6b6}=_0x2599af;_0xb381a2+=_0x44e225+'\x20#'+_0x20ddc7['fdoDt'](_0x51d73b,0x1)+'\x0a',_0xb381a2+='Status:\x20'+(_0x310474?_0x20ddc7[_0x21c7ba(0x248)]:_0x20ddc7[_0x21c7ba(0x25b)])+'\x0a',_0xb381a2+=_0x21c7ba(0x1b7)+_0x20ddc7['JPdlB'](_0x54eb4c,_0x20ddc7['SbrUe'])+'\x0a',_0x25f6b6&&(_0xb381a2+=_0x20ddc7['mzfgu'],_0xb381a2+='\x20\x20Message:\x20'+(_0x25f6b6[_0x21c7ba(0x1b0)]||_0x20ddc7[_0x21c7ba(0x26a)])+'\x0a',_0xb381a2+=_0x21c7ba(0x189)+(_0x25f6b6[_0x21c7ba(0x251)]||_0x20ddc7['SbrUe'])+'\x0a',_0xb381a2+=_0x21c7ba(0x1cd)+(_0x25f6b6['stack']||_0x20ddc7[_0x21c7ba(0x26a)])+'\x0a'),_0xb381a2+='\x0a\x0a';}),_0xb381a2+=_0x20ddc7['PtfVk'],_0x20ddc7[_0x228970(0x195)](_0x1e3482,null)?_0xb381a2+=_0x228970(0x190)+global_registry[_0x228970(0x23a)]+'\x20'+(_0x1e3482?_0x20ddc7[_0x228970(0x23d)]:_0x20ddc7[_0x228970(0x1c6)])+'\x0a\x0a':_0xb381a2+=_0x228970(0x190)+global_registry[_0x228970(0x23a)]+_0x228970(0x233),_0xb381a2+=_0x20ddc7['xrUrv'](getSystemMetaData),_0xb381a2;};exports[a17_0x145cd4(0x177)]=async function(_0x2309df){const _0x102ae2=a17_0x145cd4,_0x2de87b={'XyuEt':function(_0x448bb3){return _0x448bb3();},'KefoW':function(_0x30a41d){return _0x30a41d();},'tmzHL':_0x102ae2(0x221),'lvZPf':function(_0x8b8d93,_0x1fb422,_0x5b34b5,_0x310240,_0x3145a3,_0x8917b6,_0x549b68,_0xe4400c){return _0x8b8d93(_0x1fb422,_0x5b34b5,_0x310240,_0x3145a3,_0x8917b6,_0x549b68,_0xe4400c);},'EFIgc':_0x102ae2(0x1e7),'UgAEh':_0x102ae2(0x20b),'qqjFw':_0x102ae2(0x1ac),'FsqqP':function(_0x5b3f6c,_0x53626e,_0x8252f0,_0x3d0bb1,_0x323f13,_0x4e3b22,_0x50c798){return _0x5b3f6c(_0x53626e,_0x8252f0,_0x3d0bb1,_0x323f13,_0x4e3b22,_0x50c798);},'zivnH':function(_0x3a5bb6){return _0x3a5bb6();},'rpgnm':_0x102ae2(0x1b4),'mhEYP':_0x102ae2(0x25d),'ixMUn':function(_0x3057ff,_0x43462f,_0x181e2e){return _0x3057ff(_0x43462f,_0x181e2e);},'rxmCJ':function(_0x54fe68,_0xe2c0aa,_0x4ed3f0){return _0x54fe68(_0xe2c0aa,_0x4ed3f0);},'lqRDV':_0x102ae2(0x1e4),'hgRri':_0x102ae2(0x223),'DRMTD':_0x102ae2(0x1d6),'vvUBp':function(_0x115889,_0x3514b3,_0x586e1b){return _0x115889(_0x3514b3,_0x586e1b);},'GgyNj':_0x102ae2(0x1ee),'wIxZc':function(_0x5eac2d){return _0x5eac2d();},'aCZCN':function(_0x2d34dc,_0x3ae648,_0x43b365){return _0x2d34dc(_0x3ae648,_0x43b365);},'yCvmV':_0x102ae2(0x1e3),'poZcP':function(_0x55e08e,_0x12ef49){return _0x55e08e(_0x12ef49);},'YZqWg':'TLSv1_2_client_method','fffjE':function(_0x3aaa84,_0x53b89e,_0x119c2a){return _0x3aaa84(_0x53b89e,_0x119c2a);},'xPkXw':_0x102ae2(0x1c8),'fFUln':_0x102ae2(0x21b),'ycxyY':_0x102ae2(0x179),'KspEG':_0x102ae2(0x22e),'bolbe':_0x102ae2(0x244),'bHCQm':function(_0x297d80,_0x2d3e09){return _0x297d80+_0x2d3e09;},'uXQFT':_0x102ae2(0x1c4),'kdNhL':function(_0xd1957b,_0x1bca55,_0x333416,_0x34146c,_0x42a3f0,_0x4707a3,_0x3c3471){return _0xd1957b(_0x1bca55,_0x333416,_0x34146c,_0x42a3f0,_0x4707a3,_0x3c3471);},'HHscG':_0x102ae2(0x19d)};let _0x2d08b6,_0x4e74d7;try{global_registry[_0x102ae2(0x201)]=_0x2de87b[_0x102ae2(0x21c)](uuidv4);!fs[_0x102ae2(0x1be)](_0x2de87b['KefoW'](getCredentialsPath))&&(_0x4e74d7=_0x2de87b['tmzHL'],logger[_0x102ae2(0x1ac)](_0x4e74d7),await _0x2de87b[_0x102ae2(0x215)](reportToGalactusAndSendToEDS,_0x2309df,_0x2d08b6,_0x4e74d7,messageTypes[_0x102ae2(0x1ef)],_0x2de87b[_0x102ae2(0x1b1)],_0x2de87b['UgAEh'],_0x2de87b[_0x102ae2(0x26f)]),process[_0x102ae2(0x210)](0x1));_0x2de87b[_0x102ae2(0x1a2)](sendInstrumentationEvent,_0x2309df,_0x2de87b[_0x102ae2(0x1b1)],messageTypes['INFO'],null,null,_0x2309df);const _0x1ce955=JSON[_0x102ae2(0x187)](fs[_0x102ae2(0x23f)](_0x2de87b[_0x102ae2(0x1e5)](getCredentialsPath)));global_registry[_0x102ae2(0x24c)]=_0x1ce955[_0x102ae2(0x271)]['username'],global_registry[_0x102ae2(0x242)]=_0x1ce955[_0x102ae2(0x271)][_0x102ae2(0x1fe)];const _0x3507c3=WS_ENDPOINT[_0x102ae2(0x26e)](_0x2de87b[_0x102ae2(0x232)],_0x1ce955[_0x102ae2(0x271)][_0x102ae2(0x1fb)])[_0x102ae2(0x26e)](_0x2de87b['mhEYP'],_0x1ce955[_0x102ae2(0x271)][_0x102ae2(0x1fe)]),_0x535f24={};_0x535f24[_0x102ae2(0x191)]=ws,_0x535f24['connectionTimeout']=0x36ee80,_0x2d08b6=new ReconnectingWebSocket(_0x3507c3,[],_0x535f24),global_registry[_0x102ae2(0x204)]=_0x2de87b[_0x102ae2(0x1d1)](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),await _0x2de87b[_0x102ae2(0x20f)](inputValidation,_0x2309df,_0x2d08b6),logger[_0x102ae2(0x1f4)](_0x102ae2(0x1df)+global_registry[_0x102ae2(0x25f)]+_0x102ae2(0x220)+global_registry['clusterRegion']);let _0x1a8de3=await _0x2de87b[_0x102ae2(0x1a2)](getCloudProviderObjectWithOutInit,global_registry[_0x102ae2(0x25f)],global_registry[_0x102ae2(0x23a)],_0x2de87b[_0x102ae2(0x234)],_0x2d08b6,webSocketUtils,_0x2309df);const _0x1e4c60=await _0x1a8de3['isCliToolInstalled']();_0x2de87b[_0x102ae2(0x1d1)](printResponse,_0x2de87b['hgRri'],_0x1e4c60),_0x1a8de3=await _0x1a8de3[_0x102ae2(0x20a)]();let _0x3cd411=![];try{_0x3cd411=await _0x1a8de3['isClusterPresent']();}catch(_0x5dbaa0){const _0x3ad2bb=_0x2de87b[_0x102ae2(0x240)][_0x102ae2(0x18f)]('|');let _0x2b6aa0=0x0;while(!![]){switch(_0x3ad2bb[_0x2b6aa0++]){case'0':logger[_0x102ae2(0x1ac)](_0x4e74d7);continue;case'1':await _0x2de87b[_0x102ae2(0x215)](reportToGalactusAndSendToEDS,_0x2309df,_0x2d08b6,_0x4e74d7,messageTypes[_0x102ae2(0x1ef)],_0x2de87b['EFIgc'],'cluster-check-failed-'+global_registry['cloudProvider'],_0x2de87b[_0x102ae2(0x26f)]);continue;case'2':_0x4e74d7+='\x0a'+JSON[_0x102ae2(0x1da)](_0x5dbaa0[_0x102ae2(0x1a9)]);continue;case'3':_0x3cd411=null;continue;case'4':_0x4e74d7=_0x102ae2(0x1c3)+global_registry[_0x102ae2(0x23a)]+_0x102ae2(0x182)+global_registry[_0x102ae2(0x1e0)]+_0x102ae2(0x245)+_0x5dbaa0;continue;}break;}}_0x3cd411&&logger[_0x102ae2(0x1f4)](_0x102ae2(0x1f9)+global_registry['clusterName']+_0x102ae2(0x226));const _0x220bc2=await _0x1a8de3[_0x102ae2(0x255)]();_0x2de87b[_0x102ae2(0x243)](printResponse,_0x2de87b['GgyNj'],_0x220bc2);const _0x244ad0=await _0x2de87b[_0x102ae2(0x250)](curlRequest);_0x2de87b['aCZCN'](printResponse,_0x2de87b[_0x102ae2(0x236)],_0x244ad0);const _0xb7f785=await _0x2de87b['poZcP'](isTlsSupported,_0x2de87b[_0x102ae2(0x183)]);_0x2de87b[_0x102ae2(0x24f)](printResponse,_0x2de87b['xPkXw'],_0xb7f785);const _0x4f3502={};_0x4f3502[_0x102ae2(0x1cf)]=_0x2de87b[_0x102ae2(0x229)],_0x4f3502['response']=_0x1e4c60;const _0x59059f={};_0x59059f[_0x102ae2(0x1cf)]=_0x2de87b[_0x102ae2(0x1c9)],_0x59059f[_0x102ae2(0x199)]=_0x220bc2;const _0x127c38={};_0x127c38[_0x102ae2(0x1cf)]=_0x2de87b[_0x102ae2(0x19b)],_0x127c38['response']=_0x244ad0;const _0x63fd7={};_0x63fd7[_0x102ae2(0x1cf)]=_0x2de87b[_0x102ae2(0x20d)],_0x63fd7['response']=_0xb7f785;const _0x2fc887=[_0x4f3502,_0x59059f,_0x127c38,_0x63fd7],_0x1f837f=await _0x2de87b[_0x102ae2(0x243)](generateReport,_0x2fc887,_0x3cd411),_0xe54da6=new Date(),_0x2b7e63=_0xe54da6[_0x102ae2(0x256)]()+'_'+_0x2de87b[_0x102ae2(0x1d5)](_0xe54da6[_0x102ae2(0x275)](),0x1)+'_'+_0xe54da6[_0x102ae2(0x193)]()+'_'+_0xe54da6[_0x102ae2(0x253)]()+'_'+_0xe54da6[_0x102ae2(0x192)](),_0x27da1b=_0x102ae2(0x1db)+_0x2b7e63+_0x102ae2(0x24e);fs[_0x102ae2(0x254)](_0x27da1b,_0x1f837f,_0x2de87b[_0x102ae2(0x1ec)]),logger[_0x102ae2(0x1f4)]('Report\x20saved\x20in\x20'+_0x27da1b),process[_0x102ae2(0x210)](0x0);}catch(_0x426d4d){let _0x1e2ed3='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x426d4d+'\x20';logger['error'](_0x1e2ed3),_0x1e2ed3+='\x0a'+JSON[_0x102ae2(0x1da)](_0x426d4d[_0x102ae2(0x1a9)]),logger['debug']('stack\x20trace\x20'+_0x426d4d[_0x102ae2(0x1a9)]);if(_0x2d08b6){const _0x1c6dc9={};_0x1c6dc9['type']=WS_EVENTS[_0x102ae2(0x18e)],_0x1c6dc9[_0x102ae2(0x1b0)]=_0x1e2ed3,webSocketUtils[_0x102ae2(0x1e6)](_0x2d08b6,_0x1c6dc9,_0x2de87b[_0x102ae2(0x26f)],!![]);}await webSocketUtils['delay'](0x7d0);const _0xb4c0e4={};_0xb4c0e4[_0x102ae2(0x1ac)]=_0x1e2ed3,await _0x2de87b[_0x102ae2(0x258)](sendInstrumentationEvent,_0x2309df,_0x2de87b[_0x102ae2(0x1b1)],messageTypes['ERROR'],_0x2de87b[_0x102ae2(0x1a0)],_0xb4c0e4,_0x2309df),process[_0x102ae2(0x210)](0x1);}};
@@ -1 +1 @@
1
- function a18_0x4180(){const _0x9ef35c=['709194qdDGcB','../config/constants','yfldJ','start_commands','epilogue','command','tdvdT','builder','commandDir','32596ZwEzCi','start','help','desc','handler','341095HJLBuE','346260EqznNK','195160hkGCJb','2023EJarhY','5568723DWoqvs','3032YyYghE','57XecsaS','Start\x20an\x20existing\x20Automation\x20grid.'];a18_0x4180=function(){return _0x9ef35c;};return a18_0x4180();}const a18_0x163930=a18_0x5a78;(function(_0x540bd0,_0x43e2c0){const _0x383b5c=a18_0x5a78,_0x16a1b9=_0x540bd0();while(!![]){try{const _0x1e9394=-parseInt(_0x383b5c(0x12d))/0x1+-parseInt(_0x383b5c(0x142))/0x2+-parseInt(_0x383b5c(0x131))/0x3*(-parseInt(_0x383b5c(0x13c))/0x4)+-parseInt(_0x383b5c(0x141))/0x5+-parseInt(_0x383b5c(0x133))/0x6+-parseInt(_0x383b5c(0x12e))/0x7*(parseInt(_0x383b5c(0x130))/0x8)+parseInt(_0x383b5c(0x12f))/0x9;if(_0x1e9394===_0x43e2c0)break;else _0x16a1b9['push'](_0x16a1b9['shift']());}catch(_0x24b2d3){_0x16a1b9['push'](_0x16a1b9['shift']());}}}(a18_0x4180,0x1ab1b));function a18_0x5a78(_0x211612,_0x1b3b06){const _0x4180ba=a18_0x4180();return a18_0x5a78=function(_0x5a782d,_0x230bcb){_0x5a782d=_0x5a782d-0x12d;let _0x4bd0e3=_0x4180ba[_0x5a782d];return _0x4bd0e3;},a18_0x5a78(_0x211612,_0x1b3b06);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x163930(0x134));exports[a18_0x163930(0x138)]=a18_0x163930(0x13d),exports[a18_0x163930(0x13f)]=a18_0x163930(0x132),exports[a18_0x163930(0x13a)]=function(_0x597f0b){const _0x17c31e=a18_0x163930,_0x41111a={};_0x41111a['yfldJ']=_0x17c31e(0x136),_0x41111a[_0x17c31e(0x139)]='help';const _0x12ca4e=_0x41111a;return _0x597f0b['usage'](HELP_HEADER_MESSAGE['start'])[_0x17c31e(0x137)](HELP_FOOTER_MESSAGE)[_0x17c31e(0x13b)](_0x12ca4e[_0x17c31e(0x135)])['demandCommand']()['recommendCommands']()['strict']()[_0x17c31e(0x13e)](_0x12ca4e[_0x17c31e(0x139)]);},exports[a18_0x163930(0x140)]=function(_0x4efc05){};
1
+ function a18_0x1f1e(_0x4d4558,_0x513df9){const _0x15e1e7=a18_0x15e1();return a18_0x1f1e=function(_0x1f1e72,_0x4b3d17){_0x1f1e72=_0x1f1e72-0x143;let _0x21cd99=_0x15e1e7[_0x1f1e72];return _0x21cd99;},a18_0x1f1e(_0x4d4558,_0x513df9);}const a18_0x159775=a18_0x1f1e;(function(_0x11d040,_0x343adc){const _0x24e762=a18_0x1f1e,_0x5d6345=_0x11d040();while(!![]){try{const _0x4b3a0c=parseInt(_0x24e762(0x157))/0x1*(parseInt(_0x24e762(0x151))/0x2)+-parseInt(_0x24e762(0x146))/0x3*(-parseInt(_0x24e762(0x147))/0x4)+parseInt(_0x24e762(0x153))/0x5*(-parseInt(_0x24e762(0x148))/0x6)+-parseInt(_0x24e762(0x14b))/0x7*(-parseInt(_0x24e762(0x14a))/0x8)+-parseInt(_0x24e762(0x14c))/0x9*(parseInt(_0x24e762(0x144))/0xa)+-parseInt(_0x24e762(0x152))/0xb*(parseInt(_0x24e762(0x14d))/0xc)+parseInt(_0x24e762(0x15b))/0xd;if(_0x4b3a0c===_0x343adc)break;else _0x5d6345['push'](_0x5d6345['shift']());}catch(_0x52a035){_0x5d6345['push'](_0x5d6345['shift']());}}}(a18_0x15e1,0x6836a));function a18_0x15e1(){const _0x3bb4e9=['commandDir','strict','builder','1ffiHzr','Start\x20an\x20existing\x20Automation\x20grid.','toAyG','usage','10574629MDsYlm','desc','../config/constants','demandCommand','290jXpCTm','help','78MPRIlk','122732mqfgUU','6OapkzS','recommendCommands','483992ybNFgS','7dLOyeU','206253PWCmCG','447012nXHSys','ARbGo','handler','start','202178dwiHAB','99OAFBBV','1730345CmSzgZ'];a18_0x15e1=function(){return _0x3bb4e9;};return a18_0x15e1();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x159775(0x15d));exports['command']=a18_0x159775(0x150),exports[a18_0x159775(0x15c)]=a18_0x159775(0x158),exports[a18_0x159775(0x156)]=function(_0x577e14){const _0x228d65=a18_0x159775,_0x240b78={};_0x240b78['toAyG']='start_commands',_0x240b78[_0x228d65(0x14e)]=_0x228d65(0x145);const _0x14d649=_0x240b78;return _0x577e14[_0x228d65(0x15a)](HELP_HEADER_MESSAGE['start'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x228d65(0x154)](_0x14d649[_0x228d65(0x159)])[_0x228d65(0x143)]()[_0x228d65(0x149)]()[_0x228d65(0x155)]()[_0x228d65(0x145)](_0x14d649[_0x228d65(0x14e)]);},exports[a18_0x159775(0x14f)]=function(_0x5624a7){};
@@ -1 +1 @@
1
- const a19_0x2d6e71=a19_0x2895;(function(_0x14efbc,_0x2a2cef){const _0x4d5ffa=a19_0x2895,_0x295757=_0x14efbc();while(!![]){try{const _0x58ad82=parseInt(_0x4d5ffa(0x18a))/0x1+parseInt(_0x4d5ffa(0x1ba))/0x2+parseInt(_0x4d5ffa(0x1c7))/0x3*(parseInt(_0x4d5ffa(0x1ad))/0x4)+-parseInt(_0x4d5ffa(0x1a0))/0x5*(parseInt(_0x4d5ffa(0x1d5))/0x6)+parseInt(_0x4d5ffa(0x1d3))/0x7*(-parseInt(_0x4d5ffa(0x19f))/0x8)+-parseInt(_0x4d5ffa(0x194))/0x9+parseInt(_0x4d5ffa(0x196))/0xa*(parseInt(_0x4d5ffa(0x1a4))/0xb);if(_0x58ad82===_0x2a2cef)break;else _0x295757['push'](_0x295757['shift']());}catch(_0x49e08a){_0x295757['push'](_0x295757['shift']());}}}(a19_0x3763,0x5d8fd));function a19_0x2895(_0x2b6f16,_0x280e5e){const _0x37634b=a19_0x3763();return a19_0x2895=function(_0x28952c,_0x109392){_0x28952c=_0x28952c-0x17f;let _0x1f0bdf=_0x37634b[_0x28952c];return _0x1f0bdf;},a19_0x2895(_0x2b6f16,_0x280e5e);}function a19_0x3763(){const _0x4ba80c=['user','type','grid','init-not-called','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','16HLPTHL','NvMZv','../../utils/utilityMethods','KjVAZ','KXuPo','ynuQE','string','skip-tls-cert-verify','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','CCsnI','MNUsY','message','qDjnc','1151206gVhovF','body','DrouV','desc','description','TLIoe','region','naULD','reconnecting-websocket','unauthorised','rrhun','skipTlsCertVerify','<PasswordPlaceholder>','188214UkZupe','ZainD','../../utils/gridComponents','HJIVA','bstackUsername','DjvXa','help','clusterRegion','connectionTimeout','DoGDe','Browserstack','info','14UOStuC','gridId','6bzqGew','hPNSV','WebSocket','invalid-grid-id','grid-id','debug','OCdNW','TARWn','INFO','existsSync','xzaLX','cloudProvider','cKduy','default','gQozI','builder','replace','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','ERROR','stack','usage','463045uZnJSo','<UsernamePlaceholder>','Adding\x20Websocket\x20listeners','exit','boolean','error','../../config/constants','statusCode','iehWi','Start\x20an\x20existing\x20Automation\x20grid.','4424139FHmlor','clusterName','10ZOaVpZ','PVObd','start','Grid\x20started','username','addListeners','password','argv','KjTLj','450488sqXhzZ','3420845bkexaR','server-error','parse','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','4201901ojYbwR','bstackAccesskey','command','readFileSync'];a19_0x3763=function(){return _0x4ba80c;};return a19_0x3763();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x2d6e71(0x1c2)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x2d6e71(0x190)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x2d6e71(0x1af)),{scaleUpHubDeployment}=require(a19_0x2d6e71(0x1c9)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x2d6e71(0x1a6)]=a19_0x2d6e71(0x1aa),exports[a19_0x2d6e71(0x1bd)]=a19_0x2d6e71(0x193),exports[a19_0x2d6e71(0x184)]=function(_0x6b9fb0){const _0x5094a6=a19_0x2d6e71,_0x535ee7={};_0x535ee7[_0x5094a6(0x1ae)]=_0x5094a6(0x186),_0x535ee7['TLIoe']=_0x5094a6(0x1b3),_0x535ee7[_0x5094a6(0x1d0)]='Skip\x20insecure\x20cert\x20verification.',_0x535ee7[_0x5094a6(0x197)]=_0x5094a6(0x18e),_0x535ee7[_0x5094a6(0x1b0)]=_0x5094a6(0x1cd);const _0x1629d9=_0x535ee7,_0x4d9721={};_0x4d9721[_0x5094a6(0x1be)]=_0x1629d9[_0x5094a6(0x1ae)],_0x4d9721[_0x5094a6(0x1a9)]=_0x1629d9[_0x5094a6(0x1bf)];const _0x108785={};_0x108785[_0x5094a6(0x1be)]=_0x1629d9[_0x5094a6(0x1d0)],_0x108785[_0x5094a6(0x1a9)]=_0x1629d9['PVObd'],_0x108785[_0x5094a6(0x182)]=![];const _0x5aa3c5={};return _0x5aa3c5[_0x5094a6(0x1d9)]=_0x4d9721,_0x5aa3c5[_0x5094a6(0x1b4)]=_0x108785,_0x6b9fb0[_0x5094a6(0x189)](HELP_HEADER_MESSAGE[_0x5094a6(0x198)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x5aa3c5)[_0x5094a6(0x1cd)](_0x1629d9[_0x5094a6(0x1b0)])[_0x5094a6(0x19d)];},exports['handler']=async function(_0x205744){const _0x59f157=a19_0x2d6e71,_0x469727={'DjvXa':_0x59f157(0x1a3),'cKduy':function(_0x4c5d77){return _0x4c5d77();},'naULD':_0x59f157(0x1ac),'KjTLj':function(_0x2554bc,_0x3414f3,_0x59fd14,_0x319adb,_0x3a0dc2,_0x17b302,_0x40162a){return _0x2554bc(_0x3414f3,_0x59fd14,_0x319adb,_0x3a0dc2,_0x17b302,_0x40162a);},'MNUsY':'start-grid-called','ZainD':_0x59f157(0x1ab),'KXuPo':function(_0xb3bb2a,_0x5c9dcf,_0x67131d,_0x104de6,_0xb4ed33,_0xa26e92,_0x84d768){return _0xb3bb2a(_0x5c9dcf,_0x67131d,_0x104de6,_0xb4ed33,_0xa26e92,_0x84d768);},'OCdNW':function(_0x442ab0){return _0x442ab0();},'teGZl':_0x59f157(0x18b),'TARWn':_0x59f157(0x1c6),'qDjnc':_0x59f157(0x18c),'chORw':function(_0x4ddb71,_0x55c4da,_0x527354,_0x2e2daf){return _0x4ddb71(_0x55c4da,_0x527354,_0x2e2daf);},'gQozI':function(_0x5a4cca,_0x3f7cd5,_0x185f3e,_0x5db994,_0x13cb4e,_0x3294df,_0x1e0449){return _0x5a4cca(_0x3f7cd5,_0x185f3e,_0x5db994,_0x13cb4e,_0x3294df,_0x1e0449);},'ynuQE':function(_0x1e6ed7,_0x5c7f14,_0x54786b){return _0x1e6ed7(_0x5c7f14,_0x54786b);},'HJIVA':_0x59f157(0x199),'rrhun':function(_0x612406,_0x24b956){return _0x612406===_0x24b956;},'xzaLX':_0x59f157(0x1b5),'vjspm':function(_0x5e4e31,_0x55f6e1,_0x264245,_0x5d097d,_0x40c64a,_0x592474,_0x499bea){return _0x5e4e31(_0x55f6e1,_0x264245,_0x5d097d,_0x40c64a,_0x592474,_0x499bea);},'CCsnI':_0x59f157(0x1c3),'qeGaq':function(_0x48d775,_0xde958c){return _0x48d775===_0xde958c;},'DrouV':function(_0x353410,_0x142848,_0x1816a9,_0x5d5d57,_0x125cfe,_0x25a187,_0x58b75c){return _0x353410(_0x142848,_0x1816a9,_0x5d5d57,_0x125cfe,_0x25a187,_0x58b75c);},'CvJSc':_0x59f157(0x1d8),'hPNSV':function(_0xef0df5,_0x57428f,_0x3309fd,_0xe3bd62,_0xc289d9,_0x24efcb,_0x3f468b){return _0xef0df5(_0x57428f,_0x3309fd,_0xe3bd62,_0xc289d9,_0x24efcb,_0x3f468b);},'iehWi':_0x59f157(0x1a1)};let _0x21a8d0;try{!_0x205744[_0x59f157(0x1d4)]&&(logger[_0x59f157(0x18f)](_0x469727[_0x59f157(0x1cc)]),process[_0x59f157(0x18d)](0x1));!fs[_0x59f157(0x1de)](_0x469727[_0x59f157(0x181)](getCredentialsPath))&&(logger['error'](_0x469727[_0x59f157(0x1c1)]),await _0x469727[_0x59f157(0x19e)](sendInstrumentationEvent,_0x205744,_0x469727[_0x59f157(0x1b7)],messageTypes['ERROR'],_0x469727[_0x59f157(0x1c8)],null,_0x205744),process[_0x59f157(0x18d)](0x1));logger[_0x59f157(0x1d2)]('Starting\x20grid\x20'+_0x205744['gridId']),await _0x469727[_0x59f157(0x1b1)](sendInstrumentationEvent,_0x205744,_0x469727['MNUsY'],messageTypes[_0x59f157(0x1dd)],null,null,_0x205744);const _0x36fab7=JSON[_0x59f157(0x1a2)](fs[_0x59f157(0x1a7)](_0x469727[_0x59f157(0x1db)](getCredentialsPath)));global_registry[_0x59f157(0x1cb)]=_0x36fab7['Browserstack'][_0x59f157(0x19a)],global_registry[_0x59f157(0x1a5)]=_0x36fab7[_0x59f157(0x1d1)]['password'];const _0x3a7709=WS_ENDPOINT[_0x59f157(0x185)](_0x469727['teGZl'],_0x36fab7[_0x59f157(0x1d1)][_0x59f157(0x19a)])[_0x59f157(0x185)](_0x469727[_0x59f157(0x1dc)],_0x36fab7[_0x59f157(0x1d1)][_0x59f157(0x19c)]),_0x157c1a={};_0x157c1a[_0x59f157(0x1d7)]=ws,_0x157c1a[_0x59f157(0x1cf)]=0x36ee80,_0x21a8d0=new ReconnectingWebSocket(_0x3a7709,[],_0x157c1a),logger[_0x59f157(0x1da)](_0x469727[_0x59f157(0x1b9)]),webSocketUtils[_0x59f157(0x19b)](_0x21a8d0,_0x205744[_0x59f157(0x1a8)],_0x205744['password']);const [_0x2641de,_0x13c96e]=await _0x469727['chORw'](getGridDetails,_0x36fab7[_0x59f157(0x1d1)][_0x59f157(0x19a)],_0x36fab7[_0x59f157(0x1d1)][_0x59f157(0x19c)],_0x205744[_0x59f157(0x1d4)]);if(_0x13c96e){const _0x392245=_0x13c96e[_0x59f157(0x1d2)];global_registry[_0x59f157(0x180)]=_0x392245[_0x59f157(0x180)],global_registry[_0x59f157(0x1ce)]=_0x392245[_0x59f157(0x1c0)],global_registry[_0x59f157(0x195)]=_0x392245['clusterName'];const _0x317527=await _0x469727[_0x59f157(0x183)](getCloudProviderObject,_0x392245[_0x59f157(0x180)],_0x392245['clusterName'],_0x392245['name'],_0x21a8d0,webSocketUtils,_0x205744),[_0x16ce55,_0x15f7c9,_0x821512,_0x57f7fe,_0x4ae0b7,_0x270c10]=await _0x469727[_0x59f157(0x1b2)](createK8sClient,_0x317527,_0x205744[_0x59f157(0x1c5)]);await _0x469727[_0x59f157(0x1b2)](scaleUpHubDeployment,_0x15f7c9,_0x392245['name']),logger[_0x59f157(0x1d2)](_0x469727[_0x59f157(0x1ca)]),process[_0x59f157(0x18d)](0x0);}_0x469727[_0x59f157(0x1c4)](_0x2641de[_0x59f157(0x191)],0x191)&&(logger[_0x59f157(0x18f)](_0x469727[_0x59f157(0x17f)]),await _0x469727['vjspm'](sendInstrumentationEvent,_0x205744,_0x469727['MNUsY'],messageTypes[_0x59f157(0x187)],_0x469727[_0x59f157(0x1b6)],null,_0x205744),process['exit'](0x1)),_0x469727['qeGaq'](_0x2641de[_0x59f157(0x191)],0x190)&&(logger[_0x59f157(0x18f)](JSON[_0x59f157(0x1a2)](_0x2641de[_0x59f157(0x1bb)])[_0x59f157(0x1b8)]),await _0x469727[_0x59f157(0x1bc)](sendInstrumentationEvent,_0x205744,_0x469727[_0x59f157(0x1b7)],messageTypes[_0x59f157(0x187)],_0x469727['CvJSc'],null,_0x205744),process[_0x59f157(0x18d)](0x1)),logger[_0x59f157(0x18f)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x2641de)),await _0x469727[_0x59f157(0x1d6)](sendInstrumentationEvent,_0x205744,_0x469727[_0x59f157(0x1b7)],messageTypes['ERROR'],_0x469727[_0x59f157(0x192)],_0x2641de,_0x205744),process[_0x59f157(0x18d)](0x1);}catch(_0x495ef5){const _0x49ce9e='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x495ef5+'\x20\x0a'+JSON['stringify'](_0x495ef5[_0x59f157(0x188)])+'\x20';logger['error'](_0x49ce9e),process['exit'](0x1);}};
1
+ const a19_0x2fa2bb=a19_0x493d;function a19_0x493d(_0x2dcb9f,_0x35da4e){const _0x290f6f=a19_0x290f();return a19_0x493d=function(_0x493dfb,_0x3d5f3c){_0x493dfb=_0x493dfb-0x66;let _0x21099b=_0x290f6f[_0x493dfb];return _0x21099b;},a19_0x493d(_0x2dcb9f,_0x35da4e);}(function(_0x153932,_0x1586e6){const _0x3ee35=a19_0x493d,_0x15a6e6=_0x153932();while(!![]){try{const _0x1b279a=-parseInt(_0x3ee35(0xb5))/0x1+-parseInt(_0x3ee35(0x67))/0x2*(-parseInt(_0x3ee35(0x94))/0x3)+parseInt(_0x3ee35(0x7c))/0x4+parseInt(_0x3ee35(0xb0))/0x5+-parseInt(_0x3ee35(0x89))/0x6*(-parseInt(_0x3ee35(0xb6))/0x7)+parseInt(_0x3ee35(0x82))/0x8+-parseInt(_0x3ee35(0x92))/0x9*(parseInt(_0x3ee35(0x69))/0xa);if(_0x1b279a===_0x1586e6)break;else _0x15a6e6['push'](_0x15a6e6['shift']());}catch(_0x35f1ef){_0x15a6e6['push'](_0x15a6e6['shift']());}}}(a19_0x290f,0x1905e));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x2fa2bb(0xb1)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x2fa2bb(0xbb)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x2fa2bb(0x88)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x2fa2bb(0x93)]=a19_0x2fa2bb(0x9c),exports[a19_0x2fa2bb(0x7e)]=a19_0x2fa2bb(0xa3),exports[a19_0x2fa2bb(0xb8)]=function(_0x121f41){const _0x185d45=a19_0x2fa2bb,_0x37099c={};_0x37099c[_0x185d45(0x6d)]=_0x185d45(0x9d),_0x37099c[_0x185d45(0x9a)]='string',_0x37099c[_0x185d45(0xb4)]=_0x185d45(0x66),_0x37099c[_0x185d45(0x99)]=_0x185d45(0x83),_0x37099c[_0x185d45(0x76)]=_0x185d45(0x87);const _0x3e97ca=_0x37099c,_0x6ed43e={};_0x6ed43e[_0x185d45(0x80)]=_0x3e97ca[_0x185d45(0x6d)],_0x6ed43e['type']=_0x3e97ca[_0x185d45(0x9a)];const _0x191859={};_0x191859[_0x185d45(0x80)]=_0x3e97ca['tWZod'],_0x191859[_0x185d45(0x70)]=_0x3e97ca[_0x185d45(0x99)],_0x191859[_0x185d45(0x6e)]=![];const _0x594303={};return _0x594303[_0x185d45(0x75)]=_0x6ed43e,_0x594303[_0x185d45(0xab)]=_0x191859,_0x121f41[_0x185d45(0x71)](HELP_HEADER_MESSAGE['start'])[_0x185d45(0xac)](HELP_FOOTER_MESSAGE)[_0x185d45(0xc0)](_0x594303)[_0x185d45(0x87)](_0x3e97ca['SRcsE'])[_0x185d45(0xbf)];},exports[a19_0x2fa2bb(0xa5)]=async function(_0x42d978){const _0x30c8c8=a19_0x2fa2bb,_0x4f8dda={'bmWqT':_0x30c8c8(0x6b),'SSMgY':function(_0xe6d4de){return _0xe6d4de();},'JMnWh':_0x30c8c8(0x77),'Ohhcl':function(_0x36f583,_0x1993ab,_0x5817f9,_0x25f724,_0x32d8ba,_0xbfda7e,_0x3c2b30){return _0x36f583(_0x1993ab,_0x5817f9,_0x25f724,_0x32d8ba,_0xbfda7e,_0x3c2b30);},'nANyi':'start-grid-called','oJIyr':_0x30c8c8(0x78),'kgacN':function(_0x251c94,_0x5c4e56,_0xdaf1cf,_0x3cb8ef,_0x4fdcce,_0x4a4c19,_0x3fbe81){return _0x251c94(_0x5c4e56,_0xdaf1cf,_0x3cb8ef,_0x4fdcce,_0x4a4c19,_0x3fbe81);},'GgoWu':function(_0x21ad5b){return _0x21ad5b();},'UYAGX':_0x30c8c8(0x8f),'NIgkC':_0x30c8c8(0x98),'XVMeY':'Adding\x20Websocket\x20listeners','IxZnU':function(_0xb89ddc,_0x5a21f1,_0x4c882d,_0x325914){return _0xb89ddc(_0x5a21f1,_0x4c882d,_0x325914);},'NqIqk':function(_0x39ffa2,_0x404e6c,_0x4b36a0){return _0x39ffa2(_0x404e6c,_0x4b36a0);},'xNbeV':_0x30c8c8(0xa0),'PGVtu':function(_0x300b77,_0xedac1d){return _0x300b77===_0xedac1d;},'Lgotk':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','LBNhW':_0x30c8c8(0x8e),'fvJzm':function(_0x5b6730,_0x29d41e){return _0x5b6730===_0x29d41e;},'zDgej':_0x30c8c8(0x73),'rCGtf':function(_0x476727,_0xd7e102,_0x5a5903,_0x2ced86,_0x592d0c,_0x6056ae,_0x352e09){return _0x476727(_0xd7e102,_0x5a5903,_0x2ced86,_0x592d0c,_0x6056ae,_0x352e09);},'DDtIz':'server-error'};let _0x3e8ce4;try{!_0x42d978[_0x30c8c8(0x81)]&&(logger[_0x30c8c8(0x9b)](_0x4f8dda[_0x30c8c8(0x7d)]),process[_0x30c8c8(0xa1)](0x1));!fs[_0x30c8c8(0x9e)](_0x4f8dda[_0x30c8c8(0x9f)](getCredentialsPath))&&(logger['error'](_0x4f8dda[_0x30c8c8(0x84)]),await _0x4f8dda[_0x30c8c8(0x7a)](sendInstrumentationEvent,_0x42d978,_0x4f8dda[_0x30c8c8(0xa9)],messageTypes[_0x30c8c8(0xb9)],_0x4f8dda[_0x30c8c8(0xad)],null,_0x42d978),process[_0x30c8c8(0xa1)](0x1));logger[_0x30c8c8(0x7b)](_0x30c8c8(0x6f)+_0x42d978[_0x30c8c8(0x81)]),await _0x4f8dda[_0x30c8c8(0xaf)](sendInstrumentationEvent,_0x42d978,_0x4f8dda[_0x30c8c8(0xa9)],messageTypes[_0x30c8c8(0xb7)],null,null,_0x42d978);const _0x50b4c3=JSON[_0x30c8c8(0xaa)](fs[_0x30c8c8(0xbe)](_0x4f8dda[_0x30c8c8(0x72)](getCredentialsPath)));global_registry[_0x30c8c8(0x79)]=_0x50b4c3[_0x30c8c8(0x6a)][_0x30c8c8(0x91)],global_registry['bstackAccesskey']=_0x50b4c3[_0x30c8c8(0x6a)][_0x30c8c8(0xa4)];const _0x354e84=WS_ENDPOINT[_0x30c8c8(0xb2)](_0x4f8dda[_0x30c8c8(0xbc)],_0x50b4c3['Browserstack'][_0x30c8c8(0x91)])['replace'](_0x4f8dda['NIgkC'],_0x50b4c3[_0x30c8c8(0x6a)][_0x30c8c8(0xa4)]),_0x1c1ca7={};_0x1c1ca7[_0x30c8c8(0x90)]=ws,_0x1c1ca7[_0x30c8c8(0x68)]=0x36ee80,_0x3e8ce4=new ReconnectingWebSocket(_0x354e84,[],_0x1c1ca7),logger[_0x30c8c8(0xb3)](_0x4f8dda[_0x30c8c8(0x7f)]),webSocketUtils[_0x30c8c8(0xa2)](_0x3e8ce4,_0x42d978[_0x30c8c8(0xa6)],_0x42d978[_0x30c8c8(0xa4)]);const [_0x7ce30c,_0x14119b]=await _0x4f8dda[_0x30c8c8(0x6c)](getGridDetails,_0x50b4c3[_0x30c8c8(0x6a)][_0x30c8c8(0x91)],_0x50b4c3[_0x30c8c8(0x6a)][_0x30c8c8(0xa4)],_0x42d978[_0x30c8c8(0x81)]);if(_0x14119b){const _0x24d02b=_0x14119b[_0x30c8c8(0x7b)];global_registry[_0x30c8c8(0x74)]=_0x24d02b[_0x30c8c8(0x74)],global_registry['clusterRegion']=_0x24d02b[_0x30c8c8(0xa7)],global_registry[_0x30c8c8(0x8b)]=_0x24d02b[_0x30c8c8(0x8b)];const _0x4df65d=await _0x4f8dda[_0x30c8c8(0xaf)](getCloudProviderObject,_0x24d02b[_0x30c8c8(0x74)],_0x24d02b[_0x30c8c8(0x8b)],_0x24d02b[_0x30c8c8(0xc1)],_0x3e8ce4,webSocketUtils,_0x42d978),[_0x204a75,_0x34c1d3,_0x38f8d1,_0x429f78,_0x5280c6,_0x44cb79]=await _0x4f8dda[_0x30c8c8(0x8c)](createK8sClient,_0x4df65d,_0x42d978[_0x30c8c8(0x85)]);await _0x4f8dda[_0x30c8c8(0x8c)](scaleUpHubDeployment,_0x34c1d3,_0x24d02b['name']),logger[_0x30c8c8(0x7b)](_0x4f8dda[_0x30c8c8(0xa8)]),process[_0x30c8c8(0xa1)](0x0);}_0x4f8dda[_0x30c8c8(0x8a)](_0x7ce30c[_0x30c8c8(0x86)],0x191)&&(logger[_0x30c8c8(0x9b)](_0x4f8dda[_0x30c8c8(0x8d)]),await _0x4f8dda[_0x30c8c8(0xaf)](sendInstrumentationEvent,_0x42d978,_0x4f8dda[_0x30c8c8(0xa9)],messageTypes[_0x30c8c8(0xb9)],_0x4f8dda[_0x30c8c8(0x96)],null,_0x42d978),process[_0x30c8c8(0xa1)](0x1)),_0x4f8dda[_0x30c8c8(0xae)](_0x7ce30c['statusCode'],0x190)&&(logger[_0x30c8c8(0x9b)](JSON['parse'](_0x7ce30c['body'])[_0x30c8c8(0xbd)]),await _0x4f8dda['Ohhcl'](sendInstrumentationEvent,_0x42d978,_0x4f8dda['nANyi'],messageTypes['ERROR'],_0x4f8dda[_0x30c8c8(0x95)],null,_0x42d978),process[_0x30c8c8(0xa1)](0x1)),logger[_0x30c8c8(0x9b)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x30c8c8(0xba)](_0x7ce30c)),await _0x4f8dda['rCGtf'](sendInstrumentationEvent,_0x42d978,_0x4f8dda['nANyi'],messageTypes[_0x30c8c8(0xb9)],_0x4f8dda[_0x30c8c8(0xc2)],_0x7ce30c,_0x42d978),process['exit'](0x1);}catch(_0x431db3){const _0x4f53d6='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x431db3+'\x20\x0a'+JSON[_0x30c8c8(0xba)](_0x431db3[_0x30c8c8(0x97)])+'\x20';logger[_0x30c8c8(0x9b)](_0x4f53d6),process[_0x30c8c8(0xa1)](0x1);}};function a19_0x290f(){const _0x74d997=['boolean','JMnWh','skipTlsCertVerify','statusCode','help','../../utils/webSocketUtils','3678BRaoCJ','PGVtu','clusterName','NqIqk','Lgotk','unauthorised','<UsernamePlaceholder>','WebSocket','username','1879749UZAoty','command','201ppQaoM','zDgej','LBNhW','stack','<PasswordPlaceholder>','vtGhq','OqWFu','error','grid','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','existsSync','SSMgY','Grid\x20started','exit','addListeners','Start\x20an\x20existing\x20Automation\x20grid.','password','handler','user','region','xNbeV','nANyi','parse','skip-tls-cert-verify','epilogue','oJIyr','fvJzm','kgacN','789540SgFdzZ','reconnecting-websocket','replace','debug','tWZod','22330mVSagY','1533MCYhUn','INFO','builder','ERROR','stringify','../../utils/utilityMethods','UYAGX','message','readFileSync','argv','options','name','DDtIz','Skip\x20insecure\x20cert\x20verification.','3134JhsqJq','connectionTimeout','30jGfBJl','Browserstack','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','IxZnU','PucCF','default','Starting\x20grid\x20','type','usage','GgoWu','invalid-grid-id','cloudProvider','grid-id','SRcsE','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','init-not-called','bstackUsername','Ohhcl','info','685548mDYhpW','bmWqT','desc','XVMeY','description','gridId','1463008tNSnXG'];a19_0x290f=function(){return _0x74d997;};return a19_0x290f();}
@@ -1 +1 @@
1
- function a20_0x594f(){const _0x511650=['builder','usage','20EGIyHx','329PsXNqU','4SwTDAE','desc','stop','Stop\x20a\x20running\x20Automation\x20grid.','handler','RwYqh','help','3556935AYjsuM','demandCommand','../config/constants','epilogue','527487ndrjcg','718sJShgY','commandDir','6431650MFAkHa','strict','12712458DjkDzs','7648ycrkzp','960702LwalVw','stop_commands','333kaUmQu'];a20_0x594f=function(){return _0x511650;};return a20_0x594f();}const a20_0x34b3a4=a20_0x2245;(function(_0x2f019e,_0x39c8f0){const _0x596bf2=a20_0x2245,_0x4c2483=_0x2f019e();while(!![]){try{const _0x6aaa05=parseInt(_0x596bf2(0xe0))/0x1*(-parseInt(_0x596bf2(0xf1))/0x2)+-parseInt(_0x596bf2(0xf0))/0x3*(parseInt(_0x596bf2(0xe5))/0x4)+parseInt(_0x596bf2(0xe3))/0x5*(parseInt(_0x596bf2(0xde))/0x6)+parseInt(_0x596bf2(0xe4))/0x7*(parseInt(_0x596bf2(0xdd))/0x8)+-parseInt(_0x596bf2(0xec))/0x9+-parseInt(_0x596bf2(0xda))/0xa+parseInt(_0x596bf2(0xdc))/0xb;if(_0x6aaa05===_0x39c8f0)break;else _0x4c2483['push'](_0x4c2483['shift']());}catch(_0x384066){_0x4c2483['push'](_0x4c2483['shift']());}}}(a20_0x594f,0x7bdba));function a20_0x2245(_0x40f4f6,_0x2534c6){const _0x594f27=a20_0x594f();return a20_0x2245=function(_0x224579,_0x4cf4d6){_0x224579=_0x224579-0xda;let _0x596d00=_0x594f27[_0x224579];return _0x596d00;},a20_0x2245(_0x40f4f6,_0x2534c6);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x34b3a4(0xee));exports['command']='stop',exports[a20_0x34b3a4(0xe6)]=a20_0x34b3a4(0xe8),exports[a20_0x34b3a4(0xe1)]=function(_0x45fed9){const _0x2ad939=a20_0x34b3a4,_0x4f9ce3={};_0x4f9ce3['WworY']=_0x2ad939(0xdf),_0x4f9ce3[_0x2ad939(0xea)]=_0x2ad939(0xeb);const _0x4ee793=_0x4f9ce3;return _0x45fed9[_0x2ad939(0xe2)](HELP_HEADER_MESSAGE[_0x2ad939(0xe7)])[_0x2ad939(0xef)](HELP_FOOTER_MESSAGE)[_0x2ad939(0xf2)](_0x4ee793['WworY'])[_0x2ad939(0xed)]()['recommendCommands']()[_0x2ad939(0xdb)]()[_0x2ad939(0xeb)](_0x4ee793[_0x2ad939(0xea)]);},exports[a20_0x34b3a4(0xe9)]=function(_0x15efa6){};
1
+ const a20_0x1a6ca9=a20_0x253e;(function(_0x5b4711,_0x10f683){const _0x591cfa=a20_0x253e,_0x23fd4f=_0x5b4711();while(!![]){try{const _0x37498d=-parseInt(_0x591cfa(0x12c))/0x1+parseInt(_0x591cfa(0x11c))/0x2*(-parseInt(_0x591cfa(0x12d))/0x3)+-parseInt(_0x591cfa(0x120))/0x4+parseInt(_0x591cfa(0x11e))/0x5*(-parseInt(_0x591cfa(0x125))/0x6)+-parseInt(_0x591cfa(0x123))/0x7*(-parseInt(_0x591cfa(0x12a))/0x8)+parseInt(_0x591cfa(0x131))/0x9+parseInt(_0x591cfa(0x126))/0xa;if(_0x37498d===_0x10f683)break;else _0x23fd4f['push'](_0x23fd4f['shift']());}catch(_0x58a0fb){_0x23fd4f['push'](_0x23fd4f['shift']());}}}(a20_0x76ce,0x5241c));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x1a6ca9(0x128));function a20_0x253e(_0x4cbb36,_0x3befb7){const _0x76ce73=a20_0x76ce();return a20_0x253e=function(_0x253e67,_0x17c7e0){_0x253e67=_0x253e67-0x11a;let _0x3b8e48=_0x76ce73[_0x253e67];return _0x3b8e48;},a20_0x253e(_0x4cbb36,_0x3befb7);}exports[a20_0x1a6ca9(0x11d)]=a20_0x1a6ca9(0x12b),exports[a20_0x1a6ca9(0x121)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x1a6ca9(0x129)]=function(_0x1cfe04){const _0x467d6c=a20_0x1a6ca9,_0xc7efcc={};_0xc7efcc['aUxyl']=_0x467d6c(0x11b),_0xc7efcc[_0x467d6c(0x11f)]=_0x467d6c(0x127);const _0x5a3842=_0xc7efcc;return _0x1cfe04[_0x467d6c(0x124)](HELP_HEADER_MESSAGE[_0x467d6c(0x12b)])[_0x467d6c(0x11a)](HELP_FOOTER_MESSAGE)['commandDir'](_0x5a3842[_0x467d6c(0x12f)])[_0x467d6c(0x12e)]()['recommendCommands']()[_0x467d6c(0x122)]()[_0x467d6c(0x127)](_0x5a3842[_0x467d6c(0x11f)]);},exports[a20_0x1a6ca9(0x130)]=function(_0x4684df){};function a20_0x76ce(){const _0x5272bc=['337778CvGulf','1818897mjjfbT','demandCommand','aUxyl','handler','366444uDukcr','epilogue','stop_commands','2ocEBLF','command','834535rKclTa','aZavX','1239912eveOlV','desc','strict','3731021GCMRHf','usage','6jWJfEr','11841670InZdgo','help','../config/constants','builder','8ENOSTV','stop'];a20_0x76ce=function(){return _0x5272bc;};return a20_0x76ce();}
@@ -1 +1 @@
1
- const a21_0x3bf5bc=a21_0x111f;function a21_0x111f(_0x5cc024,_0x21d2f5){const _0xc8ea5f=a21_0xc8ea();return a21_0x111f=function(_0x111f8e,_0x80b9f9){_0x111f8e=_0x111f8e-0x1a7;let _0x3d05d7=_0xc8ea5f[_0x111f8e];return _0x3d05d7;},a21_0x111f(_0x5cc024,_0x21d2f5);}function a21_0xc8ea(){const _0x6685ac=['xMkBg','../../cloudproviders/utils','server-error','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','907497LEOYJF','NRVrI','type','stringify','debug','parse','IWPxO','unauthorised','5238226Bhxhph','password','8998ZvNUSC','bstackUsername','statusCode','epilogue','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','irgkX','skipTlsCertVerify','../../utils/utilityMethods','message','../../utils/instrumentationUtils','invalid-grid-id','argv','qlTvC','<UsernamePlaceholder>','tnZaG','FNRDO','usage','YVHuS','existsSync','uFHBy','Stopping\x20grid\x20','2870mRbEZG','options','info','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','87900YeFZBT','NmZQV','53346jmEyQQ','clusterName','cloudProvider','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','boolean','clusterRegion','stop-grid-called','description','aRgsY','help','IKllR','skip-tls-cert-verify','builder','gridId','afbWW','12BOZwpl','ERROR','exit','1407GsVhac','GiqOH','init-not-called','../../config/constants','MQfYr','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','username','grid-id','stop','WebSocket','../../config/logger','972128XLHEyD','handler','Adding\x20Websocket\x20listeners','Browserstack','error','reconnecting-websocket','command','name','IXUht','addListeners','Stop\x20a\x20running\x20Automation\x20grid.','Grid\x20stoppped.','115XoIEDl','ORALP','string','uMLsA','LkPMI','5416aHOWsy','../../utils/webSocketUtils','user','wLjig'];a21_0xc8ea=function(){return _0x6685ac;};return a21_0xc8ea();}(function(_0x3ccefb,_0x171c47){const _0x4f62ad=a21_0x111f,_0x1002f1=_0x3ccefb();while(!![]){try{const _0x5e5f6d=-parseInt(_0x4f62ad(0x1c5))/0x1*(parseInt(_0x4f62ad(0x1b4))/0x2)+-parseInt(_0x4f62ad(0x1c8))/0x3*(-parseInt(_0x4f62ad(0x1e4))/0x4)+parseInt(_0x4f62ad(0x1df))/0x5*(-parseInt(_0x4f62ad(0x1b6))/0x6)+parseInt(_0x4f62ad(0x1f4))/0x7+parseInt(_0x4f62ad(0x1d3))/0x8+-parseInt(_0x4f62ad(0x1ec))/0x9+-parseInt(_0x4f62ad(0x1b0))/0xa*(parseInt(_0x4f62ad(0x1f6))/0xb);if(_0x5e5f6d===_0x171c47)break;else _0x1002f1['push'](_0x1002f1['shift']());}catch(_0x4a62e9){_0x1002f1['push'](_0x1002f1['shift']());}}}(a21_0xc8ea,0x6ac78));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x3bf5bc(0x1d8)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x3bf5bc(0x1cb)),{logger}=require(a21_0x3bf5bc(0x1d2)),{getCredentialsPath,getGridDetails}=require(a21_0x3bf5bc(0x1fd)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x3bf5bc(0x1ff)),webSocketUtils=require(a21_0x3bf5bc(0x1e5)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a21_0x3bf5bc(0x1e9));exports[a21_0x3bf5bc(0x1d9)]='grid',exports['desc']=a21_0x3bf5bc(0x1dd),exports[a21_0x3bf5bc(0x1c2)]=function(_0x413f0f){const _0x1c01f9=a21_0x3bf5bc,_0x343c16={};_0x343c16[_0x1c01f9(0x1a9)]=_0x1c01f9(0x1b9),_0x343c16['uFHBy']=_0x1c01f9(0x1e1),_0x343c16[_0x1c01f9(0x1e0)]='Skip\x20insecure\x20cert\x20verification.',_0x343c16[_0x1c01f9(0x1be)]=_0x1c01f9(0x1ba),_0x343c16[_0x1c01f9(0x1e7)]='help';const _0x3b7040=_0x343c16,_0x5723bf={};_0x5723bf['description']=_0x3b7040[_0x1c01f9(0x1a9)],_0x5723bf[_0x1c01f9(0x1ee)]=_0x3b7040[_0x1c01f9(0x1ae)];const _0x32bc06={};_0x32bc06[_0x1c01f9(0x1bd)]=_0x3b7040[_0x1c01f9(0x1e0)],_0x32bc06[_0x1c01f9(0x1ee)]=_0x3b7040[_0x1c01f9(0x1be)],_0x32bc06['default']=![];const _0x3c71ec={};return _0x3c71ec[_0x1c01f9(0x1cf)]=_0x5723bf,_0x3c71ec[_0x1c01f9(0x1c1)]=_0x32bc06,_0x413f0f[_0x1c01f9(0x1ab)](HELP_HEADER_MESSAGE[_0x1c01f9(0x1d0)])[_0x1c01f9(0x1f9)](HELP_FOOTER_MESSAGE)[_0x1c01f9(0x1b1)](_0x3c71ec)[_0x1c01f9(0x1bf)](_0x3b7040['wLjig'])[_0x1c01f9(0x201)];},exports[a21_0x3bf5bc(0x1d4)]=async function(_0x1a1d39){const _0x258c66=a21_0x3bf5bc,_0x443abc={'NmZQV':_0x258c66(0x1fa),'YVHuS':function(_0x143034){return _0x143034();},'qlTvC':_0x258c66(0x1cd),'NRVrI':function(_0x5a0658,_0x4ae4d4,_0x26df66,_0x658e3a,_0xcdc096,_0xfc9bb1,_0x30a6d7){return _0x5a0658(_0x4ae4d4,_0x26df66,_0x658e3a,_0xcdc096,_0xfc9bb1,_0x30a6d7);},'IWPxO':_0x258c66(0x1bc),'LkPMI':_0x258c66(0x1ca),'irgkX':function(_0x2f31c,_0x2ff9bd,_0x9f582,_0x4cb080,_0x445d23,_0x1a6d2d,_0x358018){return _0x2f31c(_0x2ff9bd,_0x9f582,_0x4cb080,_0x445d23,_0x1a6d2d,_0x358018);},'GiqOH':function(_0x246005){return _0x246005();},'afbWW':_0x258c66(0x1a8),'xQgZc':'<PasswordPlaceholder>','uMLsA':_0x258c66(0x1d5),'HEjiv':function(_0x2a6177,_0x68a68f,_0x5d6a24,_0x13a00a){return _0x2a6177(_0x68a68f,_0x5d6a24,_0x13a00a);},'xMkBg':function(_0x57bc3d,_0x309a51,_0x317dd6){return _0x57bc3d(_0x309a51,_0x317dd6);},'cOJgo':_0x258c66(0x1de),'ipNTd':function(_0xfef393,_0x28ee44){return _0xfef393===_0x28ee44;},'CkfkL':_0x258c66(0x1b3),'IKllR':function(_0x8d1911,_0x4f7fe0,_0x59a1b7,_0x405fbb,_0x187c4d,_0x81bbc5,_0x29ae3f){return _0x8d1911(_0x4f7fe0,_0x59a1b7,_0x405fbb,_0x187c4d,_0x81bbc5,_0x29ae3f);},'MQfYr':_0x258c66(0x1f3),'oieCS':function(_0x2e9951,_0x435dd0){return _0x2e9951===_0x435dd0;},'IXUht':_0x258c66(0x200),'FNRDO':_0x258c66(0x1ea)};let _0x22a3f0;try{!_0x1a1d39[_0x258c66(0x1c3)]&&(logger[_0x258c66(0x1d7)](_0x443abc[_0x258c66(0x1b5)]),process[_0x258c66(0x1c7)](0x1));!fs[_0x258c66(0x1ad)](_0x443abc[_0x258c66(0x1ac)](getCredentialsPath))&&(logger[_0x258c66(0x1d7)](_0x443abc[_0x258c66(0x1a7)]),await _0x443abc[_0x258c66(0x1ed)](sendInstrumentationEvent,_0x1a1d39,_0x443abc[_0x258c66(0x1f2)],messageTypes[_0x258c66(0x1c6)],_0x443abc[_0x258c66(0x1e3)],null,_0x1a1d39),process['exit'](0x1));logger[_0x258c66(0x1b2)](_0x258c66(0x1af)+_0x1a1d39[_0x258c66(0x1c3)]),await _0x443abc['irgkX'](sendInstrumentationEvent,_0x1a1d39,_0x443abc['IWPxO'],messageTypes['INFO'],null,null,_0x1a1d39);const _0x5860ef=JSON[_0x258c66(0x1f1)](fs['readFileSync'](_0x443abc[_0x258c66(0x1c9)](getCredentialsPath)));global_registry[_0x258c66(0x1f7)]=_0x5860ef['Browserstack'][_0x258c66(0x1ce)],global_registry['bstackAccesskey']=_0x5860ef[_0x258c66(0x1d6)][_0x258c66(0x1f5)];const _0x3d4932=WS_ENDPOINT['replace'](_0x443abc[_0x258c66(0x1c4)],_0x5860ef[_0x258c66(0x1d6)][_0x258c66(0x1ce)])['replace'](_0x443abc['xQgZc'],_0x5860ef[_0x258c66(0x1d6)][_0x258c66(0x1f5)]),_0x13f51d={};_0x13f51d[_0x258c66(0x1d1)]=ws,_0x13f51d['connectionTimeout']=0x36ee80,_0x22a3f0=new ReconnectingWebSocket(_0x3d4932,[],_0x13f51d),logger[_0x258c66(0x1f0)](_0x443abc[_0x258c66(0x1e2)]),webSocketUtils[_0x258c66(0x1dc)](_0x22a3f0,_0x1a1d39[_0x258c66(0x1e6)],_0x1a1d39[_0x258c66(0x1f5)]);const [_0x5e3d6b,_0x2ee0a9]=await _0x443abc['HEjiv'](getGridDetails,_0x5860ef['Browserstack']['username'],_0x5860ef['Browserstack']['password'],_0x1a1d39[_0x258c66(0x1c3)]);if(_0x2ee0a9){const _0x3e8b04=_0x2ee0a9[_0x258c66(0x1b2)];global_registry[_0x258c66(0x1b8)]=_0x3e8b04['cloudProvider'],global_registry[_0x258c66(0x1bb)]=_0x3e8b04['region'],global_registry['clusterName']=_0x3e8b04['clusterName'];const _0x3a7c1a=await _0x443abc[_0x258c66(0x1fb)](getCloudProviderObject,_0x3e8b04[_0x258c66(0x1b8)],_0x3e8b04[_0x258c66(0x1b7)],_0x3e8b04[_0x258c66(0x1da)],_0x22a3f0,webSocketUtils,_0x1a1d39),[_0x1e734e,_0x5b35d4,_0x5f116a,_0x526c77,_0x4b7ada,_0x55b0fc]=await _0x443abc[_0x258c66(0x1e8)](createK8sClient,_0x3a7c1a,_0x1a1d39[_0x258c66(0x1fc)]);await _0x443abc['xMkBg'](scaleDownHubDeployment,_0x5b35d4,_0x3e8b04[_0x258c66(0x1da)]),logger['info'](_0x443abc['cOJgo']),process[_0x258c66(0x1c7)](0x0);}_0x443abc['ipNTd'](_0x5e3d6b['statusCode'],0x191)&&(logger[_0x258c66(0x1d7)](_0x443abc['CkfkL']),await _0x443abc[_0x258c66(0x1c0)](sendInstrumentationEvent,_0x1a1d39,_0x443abc[_0x258c66(0x1f2)],messageTypes[_0x258c66(0x1c6)],_0x443abc[_0x258c66(0x1cc)],null,_0x1a1d39),process['exit'](0x1)),_0x443abc['oieCS'](_0x5e3d6b[_0x258c66(0x1f8)],0x190)&&(logger['error'](JSON[_0x258c66(0x1f1)](_0x5e3d6b['body'])[_0x258c66(0x1fe)]),await _0x443abc['IKllR'](sendInstrumentationEvent,_0x1a1d39,_0x443abc[_0x258c66(0x1f2)],messageTypes['ERROR'],_0x443abc[_0x258c66(0x1db)],null,_0x1a1d39),process[_0x258c66(0x1c7)](0x1)),logger[_0x258c66(0x1d7)](_0x258c66(0x1eb)+JSON[_0x258c66(0x1ef)](_0x5e3d6b)),await _0x443abc['IKllR'](sendInstrumentationEvent,_0x1a1d39,_0x443abc[_0x258c66(0x1f2)],messageTypes[_0x258c66(0x1c6)],_0x443abc[_0x258c66(0x1aa)],_0x5e3d6b,_0x1a1d39),process['exit'](0x1);}catch(_0x2a6a4d){const _0x4d33cc='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x2a6a4d+'\x20\x0a'+JSON[_0x258c66(0x1ef)](_0x2a6a4d['stack'])+'\x20';logger[_0x258c66(0x1d7)](_0x4d33cc),process[_0x258c66(0x1c7)](0x1);}};
1
+ const a21_0x3ab48a=a21_0x46d2;function a21_0x4b5f(){const _0x59d470=['175zPtrAg','INFO','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','command','15855708GxIHVy','Browserstack','qtEsS','10bUIWsT','<UsernamePlaceholder>','skipTlsCertVerify','Grid\x20stoppped.','../../utils/webSocketUtils','329127DoejUh','507339vRtknf','stack','username','nYfew','type','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','../../utils/utilityMethods','ROABU','existsSync','flCGV','error','PSpPD','BgpZN','epilogue','740325SllbAM','dMCjr','../../utils/createk8sClient','gridId','YAcmz','stop','30CVyRot','info','invalid-grid-id','handler','MbRYj','reconnecting-websocket','ERROR','Lyuxp','init-not-called','jvMzZ','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','region','../../utils/gridComponents','<PasswordPlaceholder>','password','description','RVGJf','GnFiK','mhJXI','cloudProvider','parse','clusterRegion','GvVex','builder','skip-tls-cert-verify','SjJkt','clusterName','server-error','10282347nNhFMt','usage','statusCode','jwpyz','connectionTimeout','8TdljJF','WebSocket','string','stringify','Ecfnv','Stop\x20a\x20running\x20Automation\x20grid.','exit','IjVYo','grid-id','IlVsD','../../cloudproviders/utils','body','addListeners','mfpcu','1736676cKiDjv','name','../../config/constants','../../config/logger','help','readFileSync','TVViC','168208knhbwz','message','roDmK','replace','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'];a21_0x4b5f=function(){return _0x59d470;};return a21_0x4b5f();}function a21_0x46d2(_0x13faa0,_0x3c127a){const _0x4b5fe4=a21_0x4b5f();return a21_0x46d2=function(_0x46d2c5,_0x5d5424){_0x46d2c5=_0x46d2c5-0xd2;let _0x18611a=_0x4b5fe4[_0x46d2c5];return _0x18611a;},a21_0x46d2(_0x13faa0,_0x3c127a);}(function(_0x57cfae,_0x731b){const _0xfdcc7e=a21_0x46d2,_0x529b1c=_0x57cfae();while(!![]){try{const _0x1d34a8=-parseInt(_0xfdcc7e(0xe4))/0x1+parseInt(_0xfdcc7e(0x128))/0x2+parseInt(_0xfdcc7e(0xe3))/0x3*(parseInt(_0xfdcc7e(0x11a))/0x4)+parseInt(_0xfdcc7e(0xf3))/0x5*(-parseInt(_0xfdcc7e(0xf9))/0x6)+-parseInt(_0xfdcc7e(0xd7))/0x7*(-parseInt(_0xfdcc7e(0xd2))/0x8)+parseInt(_0xfdcc7e(0x115))/0x9*(-parseInt(_0xfdcc7e(0xde))/0xa)+parseInt(_0xfdcc7e(0xdb))/0xb;if(_0x1d34a8===_0x731b)break;else _0x529b1c['push'](_0x529b1c['shift']());}catch(_0x378cc1){_0x529b1c['push'](_0x529b1c['shift']());}}}(a21_0x4b5f,0xa246f));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x3ab48a(0xfe)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x3ab48a(0x12a)),{logger}=require(a21_0x3ab48a(0x12b)),{getCredentialsPath,getGridDetails}=require(a21_0x3ab48a(0xeb)),{scaleDownHubDeployment}=require(a21_0x3ab48a(0x105)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a21_0x3ab48a(0xe2)),{createK8sClient}=require(a21_0x3ab48a(0xf5)),{getCloudProviderObject}=require(a21_0x3ab48a(0x124));exports[a21_0x3ab48a(0xda)]='grid',exports['desc']=a21_0x3ab48a(0x11f),exports[a21_0x3ab48a(0x110)]=function(_0x3d7d65){const _0x51a076=a21_0x3ab48a,_0x85156e={};_0x85156e['Lyuxp']=_0x51a076(0x103),_0x85156e[_0x51a076(0x112)]=_0x51a076(0x11c),_0x85156e[_0x51a076(0xf1)]='Skip\x20insecure\x20cert\x20verification.',_0x85156e['PSpPD']='boolean',_0x85156e[_0x51a076(0xe7)]=_0x51a076(0x12c);const _0x2a6315=_0x85156e,_0x942818={};_0x942818[_0x51a076(0x108)]=_0x2a6315[_0x51a076(0x100)],_0x942818[_0x51a076(0xe8)]=_0x2a6315[_0x51a076(0x112)];const _0x1b08f8={};_0x1b08f8['description']=_0x2a6315[_0x51a076(0xf1)],_0x1b08f8[_0x51a076(0xe8)]=_0x2a6315[_0x51a076(0xf0)],_0x1b08f8['default']=![];const _0xffb96e={};return _0xffb96e[_0x51a076(0x122)]=_0x942818,_0xffb96e[_0x51a076(0x111)]=_0x1b08f8,_0x3d7d65[_0x51a076(0x116)](HELP_HEADER_MESSAGE[_0x51a076(0xf8)])[_0x51a076(0xf2)](HELP_FOOTER_MESSAGE)['options'](_0xffb96e)['help'](_0x2a6315[_0x51a076(0xe7)])['argv'];},exports[a21_0x3ab48a(0xfc)]=async function(_0x547333){const _0x5347b9=a21_0x3ab48a,_0x318ef8={'roDmK':_0x5347b9(0xe9),'qdIFu':function(_0x5a90f1){return _0x5a90f1();},'mhJXI':_0x5347b9(0xd9),'IjVYo':function(_0x4e2ba0,_0x478da9,_0x159e5e,_0xe29aec,_0xc68975,_0x5645d8,_0x2e1f1e){return _0x4e2ba0(_0x478da9,_0x159e5e,_0xe29aec,_0xc68975,_0x5645d8,_0x2e1f1e);},'YAcmz':'stop-grid-called','qtEsS':_0x5347b9(0x101),'DMJbv':_0x5347b9(0xdf),'IlVsD':_0x5347b9(0x106),'Xteoc':'Adding\x20Websocket\x20listeners','dMCjr':function(_0x41dc9c,_0x782778,_0x50a0d0,_0x14cdb0){return _0x41dc9c(_0x782778,_0x50a0d0,_0x14cdb0);},'GnFiK':function(_0x541e28,_0x176c7d,_0x58bd15,_0x30783b,_0x46f468,_0x8eb820,_0x30c9b8){return _0x541e28(_0x176c7d,_0x58bd15,_0x30783b,_0x46f468,_0x8eb820,_0x30c9b8);},'flCGV':function(_0x46a5ae,_0x27e204,_0x2b30b8){return _0x46a5ae(_0x27e204,_0x2b30b8);},'Ecfnv':function(_0x5021e6,_0x56dc3a,_0x1290c8){return _0x5021e6(_0x56dc3a,_0x1290c8);},'MbRYj':_0x5347b9(0xe1),'TVViC':function(_0x256ca2,_0x10c5a5){return _0x256ca2===_0x10c5a5;},'GvVex':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','jvMzZ':function(_0x20ee0d,_0x4f888f,_0x1f1ee8,_0x1d24df,_0x16dd75,_0x555ba5,_0x4d8525){return _0x20ee0d(_0x4f888f,_0x1f1ee8,_0x1d24df,_0x16dd75,_0x555ba5,_0x4d8525);},'RVGJf':'unauthorised','oGHBN':function(_0x494db6,_0x728c6b,_0x54829f,_0x1ce134,_0x222aa0,_0x1d0d55,_0x3c398d){return _0x494db6(_0x728c6b,_0x54829f,_0x1ce134,_0x222aa0,_0x1d0d55,_0x3c398d);},'jwpyz':_0x5347b9(0xfb),'mfpcu':function(_0x15bf93,_0x54f975,_0xfa3675,_0x5355b6,_0x232101,_0x2db8c5,_0x55ac20){return _0x15bf93(_0x54f975,_0xfa3675,_0x5355b6,_0x232101,_0x2db8c5,_0x55ac20);},'ROABU':_0x5347b9(0x114)};let _0x3daa78;try{!_0x547333[_0x5347b9(0xf6)]&&(logger[_0x5347b9(0xef)](_0x318ef8[_0x5347b9(0xd4)]),process[_0x5347b9(0x120)](0x1));!fs[_0x5347b9(0xed)](_0x318ef8['qdIFu'](getCredentialsPath))&&(logger[_0x5347b9(0xef)](_0x318ef8[_0x5347b9(0x10b)]),await _0x318ef8[_0x5347b9(0x121)](sendInstrumentationEvent,_0x547333,_0x318ef8[_0x5347b9(0xf7)],messageTypes[_0x5347b9(0xff)],_0x318ef8[_0x5347b9(0xdd)],null,_0x547333),process[_0x5347b9(0x120)](0x1));logger['info']('Stopping\x20grid\x20'+_0x547333[_0x5347b9(0xf6)]),await _0x318ef8['IjVYo'](sendInstrumentationEvent,_0x547333,_0x318ef8['YAcmz'],messageTypes[_0x5347b9(0xd8)],null,null,_0x547333);const _0x4dcca7=JSON[_0x5347b9(0x10d)](fs[_0x5347b9(0x12d)](_0x318ef8['qdIFu'](getCredentialsPath)));global_registry['bstackUsername']=_0x4dcca7[_0x5347b9(0xdc)][_0x5347b9(0xe6)],global_registry['bstackAccesskey']=_0x4dcca7['Browserstack'][_0x5347b9(0x107)];const _0x37875e=WS_ENDPOINT['replace'](_0x318ef8['DMJbv'],_0x4dcca7[_0x5347b9(0xdc)][_0x5347b9(0xe6)])[_0x5347b9(0xd5)](_0x318ef8[_0x5347b9(0x123)],_0x4dcca7[_0x5347b9(0xdc)][_0x5347b9(0x107)]),_0x5ae308={};_0x5ae308[_0x5347b9(0x11b)]=ws,_0x5ae308[_0x5347b9(0x119)]=0x36ee80,_0x3daa78=new ReconnectingWebSocket(_0x37875e,[],_0x5ae308),logger['debug'](_0x318ef8['Xteoc']),webSocketUtils[_0x5347b9(0x126)](_0x3daa78,_0x547333['user'],_0x547333[_0x5347b9(0x107)]);const [_0xe4c0aa,_0x46b982]=await _0x318ef8[_0x5347b9(0xf4)](getGridDetails,_0x4dcca7[_0x5347b9(0xdc)][_0x5347b9(0xe6)],_0x4dcca7[_0x5347b9(0xdc)]['password'],_0x547333[_0x5347b9(0xf6)]);if(_0x46b982){const _0x3ac840=_0x46b982[_0x5347b9(0xfa)];global_registry[_0x5347b9(0x10c)]=_0x3ac840[_0x5347b9(0x10c)],global_registry[_0x5347b9(0x10e)]=_0x3ac840[_0x5347b9(0x104)],global_registry[_0x5347b9(0x113)]=_0x3ac840['clusterName'];const _0x1668f9=await _0x318ef8[_0x5347b9(0x10a)](getCloudProviderObject,_0x3ac840['cloudProvider'],_0x3ac840['clusterName'],_0x3ac840['name'],_0x3daa78,webSocketUtils,_0x547333),[_0x228c6b,_0x4a16bf,_0x25d6f6,_0x304dc7,_0x1a1c21,_0x5a94b0]=await _0x318ef8[_0x5347b9(0xee)](createK8sClient,_0x1668f9,_0x547333[_0x5347b9(0xe0)]);await _0x318ef8[_0x5347b9(0x11e)](scaleDownHubDeployment,_0x4a16bf,_0x3ac840[_0x5347b9(0x129)]),logger['info'](_0x318ef8[_0x5347b9(0xfd)]),process[_0x5347b9(0x120)](0x0);}_0x318ef8['TVViC'](_0xe4c0aa[_0x5347b9(0x117)],0x191)&&(logger[_0x5347b9(0xef)](_0x318ef8[_0x5347b9(0x10f)]),await _0x318ef8[_0x5347b9(0x102)](sendInstrumentationEvent,_0x547333,_0x318ef8[_0x5347b9(0xf7)],messageTypes['ERROR'],_0x318ef8[_0x5347b9(0x109)],null,_0x547333),process[_0x5347b9(0x120)](0x1)),_0x318ef8[_0x5347b9(0x12e)](_0xe4c0aa['statusCode'],0x190)&&(logger[_0x5347b9(0xef)](JSON['parse'](_0xe4c0aa[_0x5347b9(0x125)])[_0x5347b9(0xd3)]),await _0x318ef8['oGHBN'](sendInstrumentationEvent,_0x547333,_0x318ef8[_0x5347b9(0xf7)],messageTypes[_0x5347b9(0xff)],_0x318ef8[_0x5347b9(0x118)],null,_0x547333),process[_0x5347b9(0x120)](0x1)),logger['error'](_0x5347b9(0xd6)+JSON[_0x5347b9(0x11d)](_0xe4c0aa)),await _0x318ef8[_0x5347b9(0x127)](sendInstrumentationEvent,_0x547333,_0x318ef8[_0x5347b9(0xf7)],messageTypes['ERROR'],_0x318ef8[_0x5347b9(0xec)],_0xe4c0aa,_0x547333),process[_0x5347b9(0x120)](0x1);}catch(_0x192cea){const _0x3be994=_0x5347b9(0xea)+_0x192cea+'\x20\x0a'+JSON['stringify'](_0x192cea[_0x5347b9(0xe5)])+'\x20';logger[_0x5347b9(0xef)](_0x3be994),process[_0x5347b9(0x120)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x2fa143=a22_0x56cc;(function(_0x4543ed,_0x580231){const _0x5c5c84=a22_0x56cc,_0x5bd968=_0x4543ed();while(!![]){try{const _0x320d16=parseInt(_0x5c5c84(0x174))/0x1*(-parseInt(_0x5c5c84(0x196))/0x2)+-parseInt(_0x5c5c84(0x1b5))/0x3*(parseInt(_0x5c5c84(0x1a0))/0x4)+-parseInt(_0x5c5c84(0x1b7))/0x5+-parseInt(_0x5c5c84(0x18c))/0x6+-parseInt(_0x5c5c84(0x186))/0x7+parseInt(_0x5c5c84(0x15f))/0x8*(-parseInt(_0x5c5c84(0x15b))/0x9)+parseInt(_0x5c5c84(0x1a8))/0xa;if(_0x320d16===_0x580231)break;else _0x5bd968['push'](_0x5bd968['shift']());}catch(_0x17b06c){_0x5bd968['push'](_0x5bd968['shift']());}}}(a22_0x5c17,0x59f7f),require(a22_0x2fa143(0x198))[a22_0x2fa143(0x164)](),exports[a22_0x2fa143(0x18a)]=process['env']['DASHBOARD_ENDPOINT']||'grid.browserstack.com',exports[a22_0x2fa143(0x1a3)]=process[a22_0x2fa143(0x1a9)]['BS_API_URL']||a22_0x2fa143(0x170),exports['AG_API_URL']=process[a22_0x2fa143(0x1a9)][a22_0x2fa143(0x161)]||a22_0x2fa143(0x19a),exports[a22_0x2fa143(0x1bd)]=a22_0x2fa143(0x180)+this[a22_0x2fa143(0x161)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x2fa143(0x195)]=a22_0x2fa143(0x1a4),exports[a22_0x2fa143(0x187)]=a22_0x2fa143(0x173),exports['DEFAULT_GRID_NAME']='high-scale-grid',exports['AWS']=a22_0x2fa143(0x190),exports[a22_0x2fa143(0x16c)]=a22_0x2fa143(0x17b),exports[a22_0x2fa143(0x168)]=a22_0x2fa143(0x1bb),exports['CLUSTER_HUB_HA_STACK_NAME']='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x2fa143(0x18e)]='browserstack-turboscale-grid',exports['AZURE']=a22_0x2fa143(0x191),exports[a22_0x2fa143(0x167)]=a22_0x2fa143(0x178),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this['AWS'],this[a22_0x2fa143(0x17a)],this[a22_0x2fa143(0x167)]]);const a22_0xc85d8a={};a22_0xc85d8a[a22_0x2fa143(0x194)]=a22_0x2fa143(0x1ad),a22_0xc85d8a[a22_0x2fa143(0x16b)]=a22_0x2fa143(0x1ac);const a22_0x25b5dd={};a22_0x25b5dd[a22_0x2fa143(0x194)]='browserstack:service',a22_0x25b5dd[a22_0x2fa143(0x16b)]=a22_0x2fa143(0x1a2);const common_hst_tags_list=[a22_0xc85d8a,a22_0x25b5dd];if(process[a22_0x2fa143(0x1a9)]['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x2fa143(0x1a9)]['TURBOSCALE_CUSTOM_TAGS'][a22_0x2fa143(0x1b4)](',');parsedTags[a22_0x2fa143(0x181)](_0x12e797=>{const _0xeccc34=a22_0x2fa143,_0x10e4fa=_0x12e797['split'](':'),_0x436868={};_0x436868[_0xeccc34(0x194)]=_0x10e4fa[0x0],_0x436868[_0xeccc34(0x16b)]=_0x10e4fa[0x1],common_hst_tags_list['push'](_0x436868);});}exports[a22_0x2fa143(0x193)]=common_hst_tags_list;function a22_0x5c17(){const _0x428ba8=['split','159cbdEdK','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','2590660zzsbIh','high-scale-grid-cluster','list','CLI_ARGS_REGEX','BSTACK-ATS-CLUSTER-AUTOSCALER','NULL','WS_ENDPOINT','configure','[REDACTED]','234iJLOun','grid-profile','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','global_registry','224344IBFcwm','browserstack:service','AG_API_URL','MessageDescription','GRID_URL','config','gridUrl','AWS','GCP','CLUSTER_AUTOSCALER_STACK_NAME','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','Value','CLUSTER_DEP_STACK_NAME','pre-check','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','api.browserstack.com','grid','CLUSTER','BrowserStackIAMUser','17BeOgzC','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','gcp','LOG','AZURE','BSTACK-ATS-CLUSTER','WARNING','warning','ERROR','stop','wss://','forEach','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','cliRunFinished','CLI_RUN_STARTED','CLOUD_PROVIDER','2935695HtIgBS','IAM_USER_NAME','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.','DASHBOARD_ENDPOINT','REGION','1288734CQXReT','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','TURBOSCALE_DEPLOYMENT','CLI_RUN_FINISHED','aws','azure','HELP_HEADER_MESSAGE','COMMON_HST_TAGS','Key','CP_CONFIG_FILE','34022rOTuXD','unknown','dotenv','messageTypes','grid-api.browserstack.com','TRIAL_GRID_URL','pre_check','success','HST_CLUSTER_TAGS','root','19540kpebAc','RESOURCES','BrowserStack-Automate-TurboScale','BS_API_URL','credentials','delete','RAW_ARGS_REGEX','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','27980270cBDfiT','env','create','connect','BrowserStack','browserstack:managedBy','cliRunStarted','LINK_MESSAGE','init','UNKNOWN','error','info'];a22_0x5c17=function(){return _0x428ba8;};return a22_0x5c17();}const a22_0x52c711={};a22_0x52c711['browserstack:managedBy']=a22_0x2fa143(0x1ac),a22_0x52c711[a22_0x2fa143(0x160)]=a22_0x2fa143(0x1a2),exports[a22_0x2fa143(0x19e)]=a22_0x52c711,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x2fa143(0x166)]];const a22_0x57f8bf={};function a22_0x56cc(_0x5db415,_0x1ca93f){const _0x5c172d=a22_0x5c17();return a22_0x56cc=function(_0x56ccb1,_0x56c631){_0x56ccb1=_0x56ccb1-0x15a;let _0x423562=_0x5c172d[_0x56ccb1];return _0x423562;},a22_0x56cc(_0x5db415,_0x1ca93f);}a22_0x57f8bf[a22_0x2fa143(0x179)]='log',a22_0x57f8bf[a22_0x2fa143(0x1a1)]='resourceInfo',a22_0x57f8bf[a22_0x2fa143(0x163)]=a22_0x2fa143(0x165),a22_0x57f8bf[a22_0x2fa143(0x184)]=a22_0x2fa143(0x1ae),a22_0x57f8bf[a22_0x2fa143(0x18f)]=a22_0x2fa143(0x183),exports['WS_EVENTS']=a22_0x57f8bf,exports[a22_0x2fa143(0x15e)]={},exports['LINK_MESSAGE']=a22_0x2fa143(0x16f);const a22_0x30a171={};a22_0x30a171[a22_0x2fa143(0x19f)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a22_0x2fa143(0x1af)],a22_0x30a171[a22_0x2fa143(0x1b0)]=a22_0x2fa143(0x16e)+this[a22_0x2fa143(0x1af)],a22_0x30a171[a22_0x2fa143(0x1be)]=a22_0x2fa143(0x1a7)+this[a22_0x2fa143(0x1af)],a22_0x30a171[a22_0x2fa143(0x1aa)]=a22_0x2fa143(0x18d)+this[a22_0x2fa143(0x1af)],a22_0x30a171[a22_0x2fa143(0x1b9)]={},a22_0x30a171[a22_0x2fa143(0x1a5)]=a22_0x2fa143(0x189)+this[a22_0x2fa143(0x1af)],a22_0x30a171[a22_0x2fa143(0x1ab)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x2fa143(0x1af)],a22_0x30a171['start']=a22_0x2fa143(0x15d)+this[a22_0x2fa143(0x1af)],a22_0x30a171[a22_0x2fa143(0x17f)]=a22_0x2fa143(0x175)+this['LINK_MESSAGE'],a22_0x30a171[a22_0x2fa143(0x19c)]=a22_0x2fa143(0x182)+this['LINK_MESSAGE'],a22_0x30a171[a22_0x2fa143(0x1b9)][a22_0x2fa143(0x19f)]=a22_0x2fa143(0x1b6)+this['LINK_MESSAGE'],a22_0x30a171[a22_0x2fa143(0x1b9)][a22_0x2fa143(0x171)]=a22_0x2fa143(0x176)+this[a22_0x2fa143(0x1af)],a22_0x30a171[a22_0x2fa143(0x1b9)]['gridProfile']=a22_0x2fa143(0x16a)+this['LINK_MESSAGE'],exports[a22_0x2fa143(0x192)]=a22_0x30a171,exports['HELP_FOOTER_MESSAGE']=a22_0x2fa143(0x188);const a22_0x2b3052={};a22_0x2b3052['SUCCESS']=a22_0x2fa143(0x19d),a22_0x2b3052[a22_0x2fa143(0x17e)]=a22_0x2fa143(0x1b2),a22_0x2b3052['INFO']=a22_0x2fa143(0x1b3),a22_0x2b3052[a22_0x2fa143(0x17c)]=a22_0x2fa143(0x17d),a22_0x2b3052[a22_0x2fa143(0x1b1)]=a22_0x2fa143(0x197),a22_0x2b3052[a22_0x2fa143(0x1bc)]=null,exports[a22_0x2fa143(0x199)]=a22_0x2b3052,exports[a22_0x2fa143(0x1ba)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x2fa143(0x1a6)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x2fa143(0x15a);const a22_0x5c0080={};a22_0x5c0080[a22_0x2fa143(0x15c)]=a22_0x2fa143(0x177);const a22_0x1327fc={};a22_0x1327fc[a22_0x2fa143(0x16d)]=a22_0x5c0080,exports[a22_0x2fa143(0x162)]=a22_0x1327fc,exports[a22_0x2fa143(0x19b)]=a22_0x2fa143(0x169);const a22_0x42b7e1={};a22_0x42b7e1[a22_0x2fa143(0x172)]=a22_0x2fa143(0x1b8),a22_0x42b7e1[a22_0x2fa143(0x185)]='aws',a22_0x42b7e1[a22_0x2fa143(0x18b)]='us-east-1',exports['DEFAULT_CLUSTER_DETAILS']=a22_0x42b7e1;
1
+ const a22_0x39399a=a22_0x133c;(function(_0x186067,_0x3d99ba){const _0x463e93=a22_0x133c,_0x55e8e1=_0x186067();while(!![]){try{const _0x4228c5=-parseInt(_0x463e93(0x1b5))/0x1*(parseInt(_0x463e93(0x1ef))/0x2)+-parseInt(_0x463e93(0x20a))/0x3*(parseInt(_0x463e93(0x1b7))/0x4)+-parseInt(_0x463e93(0x1f6))/0x5+parseInt(_0x463e93(0x1fc))/0x6*(-parseInt(_0x463e93(0x1e5))/0x7)+-parseInt(_0x463e93(0x20e))/0x8*(-parseInt(_0x463e93(0x1cc))/0x9)+-parseInt(_0x463e93(0x1f4))/0xa+-parseInt(_0x463e93(0x205))/0xb*(-parseInt(_0x463e93(0x1bb))/0xc);if(_0x4228c5===_0x3d99ba)break;else _0x55e8e1['push'](_0x55e8e1['shift']());}catch(_0x4c68c1){_0x55e8e1['push'](_0x55e8e1['shift']());}}}(a22_0x33d2,0xc80f0),require(a22_0x39399a(0x1e7))[a22_0x39399a(0x1be)](),exports[a22_0x39399a(0x1d7)]=process['env'][a22_0x39399a(0x1d7)]||a22_0x39399a(0x1c0),exports[a22_0x39399a(0x1d2)]=process['env'][a22_0x39399a(0x1d2)]||a22_0x39399a(0x1de),exports[a22_0x39399a(0x20b)]=process[a22_0x39399a(0x1e2)][a22_0x39399a(0x20b)]||'grid-api.browserstack.com',exports[a22_0x39399a(0x1b6)]='wss://'+this[a22_0x39399a(0x20b)]+a22_0x39399a(0x1e0),exports[a22_0x39399a(0x1c9)]='credentials',exports[a22_0x39399a(0x1e3)]=a22_0x39399a(0x1ea),exports[a22_0x39399a(0x216)]='high-scale-grid',exports[a22_0x39399a(0x212)]='aws',exports[a22_0x39399a(0x1f5)]=a22_0x39399a(0x1ed),exports[a22_0x39399a(0x1d0)]=a22_0x39399a(0x1dd),exports[a22_0x39399a(0x1ba)]='BSTACK-ATS-CLUSTER-HUB-HA',exports['TURBOSCALE_DEPLOYMENT']=a22_0x39399a(0x1f7),exports[a22_0x39399a(0x1b8)]=a22_0x39399a(0x1dc),exports[a22_0x39399a(0x20c)]=a22_0x39399a(0x1df),exports[a22_0x39399a(0x1eb)]=[this[a22_0x39399a(0x212)],this[a22_0x39399a(0x1b8)],this[a22_0x39399a(0x20c)]]);const a22_0x469c35={};a22_0x469c35[a22_0x39399a(0x208)]=a22_0x39399a(0x206),a22_0x469c35[a22_0x39399a(0x1ee)]=a22_0x39399a(0x1f0);const a22_0x1be495={};a22_0x1be495[a22_0x39399a(0x208)]=a22_0x39399a(0x1c6),a22_0x1be495[a22_0x39399a(0x1ee)]=a22_0x39399a(0x1d1);const common_hst_tags_list=[a22_0x469c35,a22_0x1be495];if(process[a22_0x39399a(0x1e2)][a22_0x39399a(0x1cb)]){const parsedTags=process[a22_0x39399a(0x1e2)][a22_0x39399a(0x1cb)][a22_0x39399a(0x1c8)](',');parsedTags[a22_0x39399a(0x209)](_0x3c2a63=>{const _0x33ebd3=a22_0x39399a,_0x43b298=_0x3c2a63[_0x33ebd3(0x1c8)](':'),_0x989a56={};_0x989a56[_0x33ebd3(0x208)]=_0x43b298[0x0],_0x989a56['Value']=_0x43b298[0x1],common_hst_tags_list[_0x33ebd3(0x1e4)](_0x989a56);});}exports[a22_0x39399a(0x215)]=common_hst_tags_list;const a22_0x22ba64={};a22_0x22ba64[a22_0x39399a(0x206)]=a22_0x39399a(0x1f0),a22_0x22ba64[a22_0x39399a(0x1c6)]='BrowserStack-Automate-TurboScale',exports['HST_CLUSTER_TAGS']=a22_0x22ba64,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x39399a(0x212)]];const a22_0x1b4947={};a22_0x1b4947['LOG']='log',a22_0x1b4947[a22_0x39399a(0x1e1)]='resourceInfo',a22_0x1b4947[a22_0x39399a(0x1da)]='gridUrl',a22_0x1b4947['CLI_RUN_STARTED']=a22_0x39399a(0x1b9),a22_0x1b4947[a22_0x39399a(0x210)]='cliRunFinished',exports[a22_0x39399a(0x213)]=a22_0x1b4947,exports[a22_0x39399a(0x1f3)]={},exports[a22_0x39399a(0x1c1)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x5c3765={};a22_0x5c3765[a22_0x39399a(0x1d5)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a22_0x39399a(0x1c1)],a22_0x5c3765[a22_0x39399a(0x1c7)]=a22_0x39399a(0x1d3)+this['LINK_MESSAGE'],a22_0x5c3765[a22_0x39399a(0x1fb)]=a22_0x39399a(0x201)+this[a22_0x39399a(0x1c1)],a22_0x5c3765[a22_0x39399a(0x1f2)]=a22_0x39399a(0x1f9)+this[a22_0x39399a(0x1c1)],a22_0x5c3765[a22_0x39399a(0x202)]={},a22_0x5c3765['delete']=a22_0x39399a(0x20f)+this[a22_0x39399a(0x1c1)],a22_0x5c3765['connect']=a22_0x39399a(0x1f1)+this[a22_0x39399a(0x1c1)],a22_0x5c3765['start']=a22_0x39399a(0x1cf)+this[a22_0x39399a(0x1c1)],a22_0x5c3765[a22_0x39399a(0x1c4)]=a22_0x39399a(0x211)+this[a22_0x39399a(0x1c1)],a22_0x5c3765[a22_0x39399a(0x1ec)]=a22_0x39399a(0x1b4)+this['LINK_MESSAGE'],a22_0x5c3765[a22_0x39399a(0x202)][a22_0x39399a(0x1d5)]=a22_0x39399a(0x1fe)+this[a22_0x39399a(0x1c1)],a22_0x5c3765[a22_0x39399a(0x202)][a22_0x39399a(0x1cd)]=a22_0x39399a(0x1c5)+this[a22_0x39399a(0x1c1)],a22_0x5c3765[a22_0x39399a(0x202)][a22_0x39399a(0x214)]=a22_0x39399a(0x1ca)+this[a22_0x39399a(0x1c1)],exports[a22_0x39399a(0x1c3)]=a22_0x5c3765,exports[a22_0x39399a(0x1e9)]=a22_0x39399a(0x1bf);const a22_0x1562cd={};a22_0x1562cd[a22_0x39399a(0x1ff)]='success',a22_0x1562cd[a22_0x39399a(0x1e8)]=a22_0x39399a(0x1ce),a22_0x1562cd[a22_0x39399a(0x204)]=a22_0x39399a(0x1db),a22_0x1562cd[a22_0x39399a(0x1d4)]=a22_0x39399a(0x217),a22_0x1562cd[a22_0x39399a(0x1d6)]=a22_0x39399a(0x203),a22_0x1562cd[a22_0x39399a(0x20d)]=null,exports[a22_0x39399a(0x1bd)]=a22_0x1562cd,exports[a22_0x39399a(0x1c2)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x39399a(0x1d9)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x39399a(0x1f8);const a22_0x3dc28b={};function a22_0x33d2(){const _0x309329=['\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','browserstack:service','init','split','CP_CONFIG_FILE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','TURBOSCALE_CUSTOM_TAGS','576RmHKFb','grid','error','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','CLUSTER_AUTOSCALER_STACK_NAME','BrowserStack-Automate-TurboScale','BS_API_URL','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','WARNING','root','UNKNOWN','DASHBOARD_ENDPOINT','REGION','RAW_ARGS_REGEX','GRID_URL','info','azure','BSTACK-ATS-CLUSTER-AUTOSCALER','api.browserstack.com','gcp','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','RESOURCES','env','IAM_USER_NAME','push','10367pZVHVc','us-east-1','dotenv','ERROR','HELP_FOOTER_MESSAGE','BrowserStackIAMUser','ALL_SUPPORTED_CLOUD_PROVIDERS','pre_check','BSTACK-ATS-CLUSTER','Value','49684DSmaHc','BrowserStack','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','create','global_registry','7584530FcyPNf','CLUSTER_DEP_STACK_NAME','1744695xofIdv','browserstack-turboscale-grid','[REDACTED]','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','pre-check','configure','5124lfHKpu','CLUSTER','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','SUCCESS','CLOUD_PROVIDER','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','list','unknown','INFO','1732390GbJKZx','browserstack:managedBy','TRIAL_GRID_URL','Key','forEach','317838kUHWYO','AG_API_URL','GCP','NULL','11384PZtDnc','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','CLI_RUN_FINISHED','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','AWS','WS_EVENTS','gridProfile','COMMON_HST_TAGS','DEFAULT_GRID_NAME','warning','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','61bgBvpm','WS_ENDPOINT','16exSkMQ','AZURE','cliRunStarted','CLUSTER_HUB_HA_STACK_NAME','384ASKBNj','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','messageTypes','config','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','grid.browserstack.com','LINK_MESSAGE','CLI_ARGS_REGEX','HELP_HEADER_MESSAGE','stop'];a22_0x33d2=function(){return _0x309329;};return a22_0x33d2();}a22_0x3dc28b['grid-profile']='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x210796={};a22_0x210796[a22_0x39399a(0x1fa)]=a22_0x3dc28b,exports['MessageDescription']=a22_0x210796,exports[a22_0x39399a(0x207)]=a22_0x39399a(0x1bc);function a22_0x133c(_0x5c92d5,_0x10e7c4){const _0x33d29a=a22_0x33d2();return a22_0x133c=function(_0x133c2b,_0x3342bf){_0x133c2b=_0x133c2b-0x1b4;let _0x5b4dc1=_0x33d29a[_0x133c2b];return _0x5b4dc1;},a22_0x133c(_0x5c92d5,_0x10e7c4);}const a22_0xf1ae5c={};a22_0xf1ae5c[a22_0x39399a(0x1fd)]='high-scale-grid-cluster',a22_0xf1ae5c[a22_0x39399a(0x200)]='aws',a22_0xf1ae5c[a22_0x39399a(0x1d8)]=a22_0x39399a(0x1e6),exports['DEFAULT_CLUSTER_DETAILS']=a22_0xf1ae5c;
@@ -1 +1 @@
1
- const a23_0x2f4f2b=a23_0x587b;(function(_0x5178cd,_0x11db30){const _0x3b3f5d=a23_0x587b,_0x4c4ec9=_0x5178cd();while(!![]){try{const _0x1b5195=parseInt(_0x3b3f5d(0x17b))/0x1*(-parseInt(_0x3b3f5d(0x18c))/0x2)+-parseInt(_0x3b3f5d(0x175))/0x3*(-parseInt(_0x3b3f5d(0x17c))/0x4)+parseInt(_0x3b3f5d(0x179))/0x5+-parseInt(_0x3b3f5d(0x18a))/0x6*(parseInt(_0x3b3f5d(0x16e))/0x7)+-parseInt(_0x3b3f5d(0x183))/0x8+parseInt(_0x3b3f5d(0x173))/0x9*(parseInt(_0x3b3f5d(0x17f))/0xa)+parseInt(_0x3b3f5d(0x176))/0xb;if(_0x1b5195===_0x11db30)break;else _0x4c4ec9['push'](_0x4c4ec9['shift']());}catch(_0x1bf7c9){_0x4c4ec9['push'](_0x4c4ec9['shift']());}}}(a23_0x3202,0x1b918));function a23_0x3202(){const _0x2a33a7=['20cObpjL','YYYY-MM-DD\x20HH:mm:ss','join','4361CquPuy','colorize','events.log','level','transports','616914yfjaJT','log','165omWOUq','3083113IMYVzw','\x20-\x20','createLogger','613270NNOThO','Console','22251rKooOo','4700xsUagu','message','combine','10XcsfgV','usage.log','path','timestamp','1406064OwTZse','printf','existsSync','name','File','format','winston','240QTlRiY','debug'];a23_0x3202=function(){return _0x2a33a7;};return a23_0x3202();}const winston=require(a23_0x2f4f2b(0x189)),fs=require('fs'),path=require(a23_0x2f4f2b(0x181)),logDir=a23_0x2f4f2b(0x174);!fs[a23_0x2f4f2b(0x185)](logDir)&&fs['mkdirSync'](logDir);const a23_0x52b224={};function a23_0x587b(_0x17da8a,_0x47fa4a){const _0x3202d8=a23_0x3202();return a23_0x587b=function(_0x587b75,_0x469394){_0x587b75=_0x587b75-0x16e;let _0x12b573=_0x3202d8[_0x587b75];return _0x12b573;},a23_0x587b(_0x17da8a,_0x47fa4a);}a23_0x52b224['format']=a23_0x2f4f2b(0x18d);const a23_0x3c5398={};a23_0x3c5398[a23_0x2f4f2b(0x171)]=!![];const a23_0x44e2c8={};a23_0x44e2c8[a23_0x2f4f2b(0x186)]='console.info',exports['logger']=new winston['createLogger']({'format':winston[a23_0x2f4f2b(0x188)][a23_0x2f4f2b(0x17e)](winston[a23_0x2f4f2b(0x188)]['timestamp'](a23_0x52b224),winston[a23_0x2f4f2b(0x188)][a23_0x2f4f2b(0x16f)](a23_0x3c5398),winston[a23_0x2f4f2b(0x188)][a23_0x2f4f2b(0x184)](_0x1405f5=>_0x1405f5[a23_0x2f4f2b(0x182)]+a23_0x2f4f2b(0x177)+_0x1405f5[a23_0x2f4f2b(0x171)]+':\x20'+_0x1405f5[a23_0x2f4f2b(0x17d)])),'transports':[new winston[(a23_0x2f4f2b(0x172))][(a23_0x2f4f2b(0x17a))](a23_0x44e2c8),new winston[(a23_0x2f4f2b(0x172))]['File']({'filename':path[a23_0x2f4f2b(0x18e)](logDir,a23_0x2f4f2b(0x170)),'level':a23_0x2f4f2b(0x18b)})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0x2f4f2b(0x187))]({'filename':path['join'](logDir,a23_0x2f4f2b(0x180)),'level':a23_0x2f4f2b(0x18b)})]};exports['fileLogger']=new winston[(a23_0x2f4f2b(0x178))](winstonFileLoggerParams);
1
+ const a23_0x3c71a1=a23_0x344f;function a23_0x1d27(){const _0x557118=['9385384ECcYKw','winston','createLogger','YYYY-MM-DD\x20HH:mm:ss','message','224115pHsMRX','format','usage.log','console.info','1GUAUeE','existsSync','Console','printf','1135506CuTsNd','colorize','58970HXGQip','619188VoFBTH','level','logger','fileLogger','join','debug','transports','2994220ksopbp','timestamp','mkdirSync','4532367ADyfss','log','9tDzVAj','File'];a23_0x1d27=function(){return _0x557118;};return a23_0x1d27();}(function(_0x568232,_0x59a4f1){const _0xdb34bf=a23_0x344f,_0x43d4b3=_0x568232();while(!![]){try{const _0x26eee8=-parseInt(_0xdb34bf(0xfa))/0x1*(-parseInt(_0xdb34bf(0x100))/0x2)+parseInt(_0xdb34bf(0x101))/0x3+parseInt(_0xdb34bf(0x108))/0x4+parseInt(_0xdb34bf(0xf6))/0x5+parseInt(_0xdb34bf(0xfe))/0x6+parseInt(_0xdb34bf(0x10b))/0x7+parseInt(_0xdb34bf(0xf1))/0x8*(-parseInt(_0xdb34bf(0x10d))/0x9);if(_0x26eee8===_0x59a4f1)break;else _0x43d4b3['push'](_0x43d4b3['shift']());}catch(_0x593488){_0x43d4b3['push'](_0x43d4b3['shift']());}}}(a23_0x1d27,0xa9252));const winston=require(a23_0x3c71a1(0xf2)),fs=require('fs'),path=require('path'),logDir=a23_0x3c71a1(0x10c);!fs[a23_0x3c71a1(0xfb)](logDir)&&fs[a23_0x3c71a1(0x10a)](logDir);const a23_0x39e7a5={};function a23_0x344f(_0x5e1482,_0x512be7){const _0x1d273a=a23_0x1d27();return a23_0x344f=function(_0x344fe1,_0x176a0){_0x344fe1=_0x344fe1-0xf1;let _0x525bf8=_0x1d273a[_0x344fe1];return _0x525bf8;},a23_0x344f(_0x5e1482,_0x512be7);}a23_0x39e7a5[a23_0x3c71a1(0xf7)]=a23_0x3c71a1(0xf4);const a23_0x33191e={};a23_0x33191e[a23_0x3c71a1(0x102)]=!![];const a23_0x535985={};a23_0x535985['name']=a23_0x3c71a1(0xf9),exports[a23_0x3c71a1(0x103)]=new winston['createLogger']({'format':winston[a23_0x3c71a1(0xf7)]['combine'](winston[a23_0x3c71a1(0xf7)][a23_0x3c71a1(0x109)](a23_0x39e7a5),winston[a23_0x3c71a1(0xf7)][a23_0x3c71a1(0xff)](a23_0x33191e),winston[a23_0x3c71a1(0xf7)][a23_0x3c71a1(0xfd)](_0x4a8c67=>_0x4a8c67['timestamp']+'\x20-\x20'+_0x4a8c67[a23_0x3c71a1(0x102)]+':\x20'+_0x4a8c67[a23_0x3c71a1(0xf5)])),'transports':[new winston[(a23_0x3c71a1(0x107))][(a23_0x3c71a1(0xfc))](a23_0x535985),new winston['transports']['File']({'filename':path[a23_0x3c71a1(0x105)](logDir,'events.log'),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x3c71a1(0x107))][(a23_0x3c71a1(0x10e))]({'filename':path[a23_0x3c71a1(0x105)](logDir,a23_0x3c71a1(0xf8)),'level':a23_0x3c71a1(0x106)})]};exports[a23_0x3c71a1(0x104)]=new winston[(a23_0x3c71a1(0xf3))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x390ffa=a24_0x5ce6;(function(_0x2ae3a7,_0x3d2efb){const _0x1ee840=a24_0x5ce6,_0xbb6e87=_0x2ae3a7();while(!![]){try{const _0x1b9f32=parseInt(_0x1ee840(0xfa))/0x1*(-parseInt(_0x1ee840(0x100))/0x2)+parseInt(_0x1ee840(0x101))/0x3+parseInt(_0x1ee840(0xf9))/0x4+parseInt(_0x1ee840(0xfb))/0x5*(parseInt(_0x1ee840(0x106))/0x6)+parseInt(_0x1ee840(0xfc))/0x7+parseInt(_0x1ee840(0x10b))/0x8+-parseInt(_0x1ee840(0x109))/0x9;if(_0x1b9f32===_0x3d2efb)break;else _0xbb6e87['push'](_0xbb6e87['shift']());}catch(_0x2231db){_0xbb6e87['push'](_0xbb6e87['shift']());}}}(a24_0x2f8f,0xa9c13));function a24_0x5ce6(_0x21314c,_0x23f24e){const _0x2f8f8a=a24_0x2f8f();return a24_0x5ce6=function(_0x5ce67b,_0x410389){_0x5ce67b=_0x5ce67b-0xf8;let _0x10be19=_0x2f8f8a[_0x5ce67b];return _0x10be19;},a24_0x5ce6(_0x21314c,_0x23f24e);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x390ffa(0xf8));process['env'][a24_0x390ffa(0x103)]=0x1;function a24_0x2f8f(){const _0x3a1a1a=['3198268ZCzALd','79372VTTuYT','40AZcIPU','1758540BjerKR','commandDir','RfofV','help','28eDUBOX','1296366mPOeHW','root','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','epilogue','demandCommand','650136MDfNCH','jdpQj','usage','7943004qSiNAY','exports','2714576RSRhqc','./config/constants'];a24_0x2f8f=function(){return _0x3a1a1a;};return a24_0x2f8f();}function run(_0x3db940){const _0xc12d5d=a24_0x390ffa,_0x1fe053={};_0x1fe053[_0xc12d5d(0xfe)]='commands',_0x1fe053[_0xc12d5d(0x107)]=_0xc12d5d(0xff);const _0x40f05e=_0x1fe053;_0x3db940[_0xc12d5d(0x108)](HELP_HEADER_MESSAGE[_0xc12d5d(0x102)])[_0xc12d5d(0xfd)](_0x40f05e[_0xc12d5d(0xfe)])[_0xc12d5d(0x105)]()['help'](_0x40f05e[_0xc12d5d(0x107)])[_0xc12d5d(0x104)](HELP_FOOTER_MESSAGE);}module[a24_0x390ffa(0x10a)]=run;
2
+ 'use strict';function a24_0x3158(_0x54e1f4,_0xbda27b){const _0x3f24db=a24_0x3f24();return a24_0x3158=function(_0x315820,_0x533cda){_0x315820=_0x315820-0xf6;let _0x4c7928=_0x3f24db[_0x315820];return _0x4c7928;},a24_0x3158(_0x54e1f4,_0xbda27b);}const a24_0x2afa6b=a24_0x3158;(function(_0x31ede9,_0x2bacb1){const _0x55cb67=a24_0x3158,_0x43a7b5=_0x31ede9();while(!![]){try{const _0x86b9f7=-parseInt(_0x55cb67(0x100))/0x1+-parseInt(_0x55cb67(0xf8))/0x2*(-parseInt(_0x55cb67(0xf6))/0x3)+-parseInt(_0x55cb67(0xff))/0x4+parseInt(_0x55cb67(0x105))/0x5*(parseInt(_0x55cb67(0x102))/0x6)+parseInt(_0x55cb67(0x108))/0x7+parseInt(_0x55cb67(0x107))/0x8*(-parseInt(_0x55cb67(0x106))/0x9)+parseInt(_0x55cb67(0xfa))/0xa;if(_0x86b9f7===_0x2bacb1)break;else _0x43a7b5['push'](_0x43a7b5['shift']());}catch(_0x564a1a){_0x43a7b5['push'](_0x43a7b5['shift']());}}}(a24_0x3f24,0x98d8f));function a24_0x3f24(){const _0x392433=['eqmjq','5091iXccoY','usage','586uFBjgy','commandDir','5436350cccQxO','demandCommand','exports','commands','root','2625072tyfogA','449835YFzjea','help','150nkOFkU','env','vysdw','196125EuOJcU','375705Puevsq','136ntofJo','2942450aGdiED','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','./config/constants'];a24_0x3f24=function(){return _0x392433;};return a24_0x3f24();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x2afa6b(0x10a));process[a24_0x2afa6b(0x103)][a24_0x2afa6b(0x109)]=0x1;function run(_0x2aad11){const _0x2b0414=a24_0x2afa6b,_0x3aea4b={};_0x3aea4b[_0x2b0414(0x10b)]=_0x2b0414(0xfd),_0x3aea4b[_0x2b0414(0x104)]=_0x2b0414(0x101);const _0x115182=_0x3aea4b;_0x2aad11[_0x2b0414(0xf7)](HELP_HEADER_MESSAGE[_0x2b0414(0xfe)])[_0x2b0414(0xf9)](_0x115182[_0x2b0414(0x10b)])[_0x2b0414(0xfb)]()['help'](_0x115182[_0x2b0414(0x104)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x2afa6b(0xfc)]=run;