browserstack-node-sdk 1.36.3 → 1.36.5

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
- function a15_0x278a(){const _0x22555f=['iaKjD','unknown-error','ynXfY','MTLXn','trcSY','requestId','ERROR','2296464Osffsv','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','got','4861314xztdRP','QCjzq','ysXdj','grids','unauthorised','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','OwEpT','bstackUsername','stringify','stack','31390zdmFZv','table','body','vKwRs','https://','INFO','existsSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','bYOsK','8bROAAD','utuaa','status','YYLWY','228sxuoXS','grid-id','init-not-called','command','readFileSync','handler','Browserstack','cluster-name','gcKcF','zmaiA','220032KXseTr','desc','help','bstackAccesskey','ZJwHD','push','42tOJrmB','wLQWX','45436KaUPoo','grid','/packages/cli/get-grids','all-grids','102zRTJRE','argv','builder','121gRQwWe','uuid','usage','zPZrS','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','419910wghYGw','hmgwW','error','options','statusCode','GET','type','password','173981pIXCvf','running','log','Mqgpa','grid-name','../../config/constants','list','parse','exit','username','../../utils/utilityMethods'];a15_0x278a=function(){return _0x22555f;};return a15_0x278a();}const a15_0xc1adc5=a15_0x4ec5;function a15_0x4ec5(_0x5be16b,_0x281cde){const _0x278a6c=a15_0x278a();return a15_0x4ec5=function(_0x4ec5d5,_0xb4c187){_0x4ec5d5=_0x4ec5d5-0xf2;let _0xff232a=_0x278a6c[_0x4ec5d5];return _0xff232a;},a15_0x4ec5(_0x5be16b,_0x281cde);}(function(_0x5e3909,_0x239152){const _0x38510f=a15_0x4ec5,_0x219542=_0x5e3909();while(!![]){try{const _0x34194e=parseInt(_0x38510f(0x13d))/0x1*(-parseInt(_0x38510f(0x113))/0x2)+-parseInt(_0x38510f(0x12d))/0x3*(-parseInt(_0x38510f(0x129))/0x4)+parseInt(_0x38510f(0x10a))/0x5*(parseInt(_0x38510f(0x117))/0x6)+parseInt(_0x38510f(0x127))/0x7*(parseInt(_0x38510f(0x121))/0x8)+parseInt(_0x38510f(0x100))/0x9+-parseInt(_0x38510f(0x135))/0xa*(parseInt(_0x38510f(0x130))/0xb)+parseInt(_0x38510f(0xfd))/0xc;if(_0x34194e===_0x239152)break;else _0x219542['push'](_0x219542['shift']());}catch(_0x2b6581){_0x219542['push'](_0x219542['shift']());}}}(a15_0x278a,0x58bdf));const fs=require('fs'),got=require(a15_0xc1adc5(0xff)),{table}=require(a15_0xc1adc5(0x10b)),{v4:uuidv4}=require(a15_0xc1adc5(0x131)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0xc1adc5(0x142)),{getCredentialsPath,getAuthHeader}=require(a15_0xc1adc5(0xf5)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a15_0xc1adc5(0x11a)]=a15_0xc1adc5(0x103),exports[a15_0xc1adc5(0x122)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0xc1adc5(0x12f)]=function(_0x24731f){const _0x4254e3=a15_0xc1adc5,_0x1cc0c0={};_0x1cc0c0[_0x4254e3(0xf6)]=_0x4254e3(0x105),_0x1cc0c0[_0x4254e3(0x112)]='boolean',_0x1cc0c0[_0x4254e3(0x102)]=_0x4254e3(0x123);const _0x19d691=_0x1cc0c0,_0x4c3a6c={};_0x4c3a6c['description']=_0x19d691[_0x4254e3(0xf6)],_0x4c3a6c[_0x4254e3(0x13b)]=_0x19d691[_0x4254e3(0x112)];const _0x560347={};return _0x560347[_0x4254e3(0x12c)]=_0x4c3a6c,_0x24731f[_0x4254e3(0x132)](HELP_HEADER_MESSAGE[_0x4254e3(0x143)][_0x4254e3(0x12a)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4254e3(0x138)](_0x560347)[_0x4254e3(0x123)](_0x19d691[_0x4254e3(0x102)])[_0x4254e3(0x12e)];},exports[a15_0xc1adc5(0x11c)]=async function(_0x2f4f0f){const _0x107e5a=a15_0xc1adc5,_0x51d67e={'hmgwW':function(_0x4047e6){return _0x4047e6();},'AqILQ':_0x107e5a(0xfe),'vKwRs':function(_0x55453e,_0x57b886,_0x4fad0f,_0xdae82f,_0x58c373,_0xedf150,_0xaa5dd0){return _0x55453e(_0x57b886,_0x4fad0f,_0xdae82f,_0x58c373,_0xedf150,_0xaa5dd0);},'MTLXn':'list-grids-called','OwEpT':_0x107e5a(0x119),'sabje':_0x107e5a(0x13a),'ynXfY':function(_0x13a921,_0x5d30de,_0x372365){return _0x13a921(_0x5d30de,_0x372365);},'Mqgpa':function(_0x1fb4b8,_0x4a50b2,_0x417267,_0x134f7f,_0x31fef5,_0x211648,_0x5372f1){return _0x1fb4b8(_0x4a50b2,_0x417267,_0x134f7f,_0x31fef5,_0x211648,_0x5372f1);},'YYLWY':function(_0x40f91d,_0x155fb1){return _0x40f91d!==_0x155fb1;},'zPZrS':function(_0x1fcb7b,_0x47e457){return _0x1fcb7b===_0x47e457;},'pnSUx':'\x0aFound\x20the\x20following\x20grids:\x0a','wLQWX':_0x107e5a(0x118),'utuaa':_0x107e5a(0x141),'rzWbb':_0x107e5a(0x115),'zmaiA':_0x107e5a(0x13e),'gcKcF':'queued','ZJwHD':_0x107e5a(0x11e),'QCjzq':function(_0x18b7d3,_0x1792e7){return _0x18b7d3(_0x1792e7);},'uUsiP':_0x107e5a(0x111),'trcSY':_0x107e5a(0x104),'UynHS':'server-error','sSiKU':_0x107e5a(0xf7)};try{global_registry[_0x107e5a(0xfb)]=_0x51d67e['hmgwW'](uuidv4);!fs[_0x107e5a(0x110)](_0x51d67e[_0x107e5a(0x136)](getCredentialsPath))&&(console['error'](_0x51d67e['AqILQ']),await _0x51d67e[_0x107e5a(0x10d)](sendInstrumentationEvent,_0x2f4f0f,_0x51d67e[_0x107e5a(0xf9)],messageTypes[_0x107e5a(0xfc)],_0x51d67e[_0x107e5a(0x106)],null,_0x2f4f0f),process[_0x107e5a(0xf3)](0x1));const _0x2754b7=JSON[_0x107e5a(0xf2)](fs[_0x107e5a(0x11b)](_0x51d67e[_0x107e5a(0x136)](getCredentialsPath)));let _0x1dd599=_0x107e5a(0x10e)+AG_API_URL+_0x107e5a(0x12b);_0x2f4f0f['allGrids']&&(_0x1dd599='https://'+AG_API_URL+'/packages/cli/get-all-grids');const _0x33f21f={'method':_0x51d67e['sabje'],'headers':_0x51d67e['ynXfY'](getAuthHeader,_0x2754b7[_0x107e5a(0x11d)][_0x107e5a(0xf4)],_0x2754b7[_0x107e5a(0x11d)][_0x107e5a(0x13c)]),'throwHttpErrors':![]};global_registry[_0x107e5a(0x107)]=_0x2754b7['Browserstack'][_0x107e5a(0xf4)],global_registry[_0x107e5a(0x124)]=_0x2754b7[_0x107e5a(0x11d)][_0x107e5a(0x13c)],_0x51d67e[_0x107e5a(0x140)](sendInstrumentationEvent,_0x2f4f0f,_0x51d67e[_0x107e5a(0xf9)],messageTypes[_0x107e5a(0x10f)],null,null,_0x2f4f0f);const _0x267d0f=await _0x51d67e[_0x107e5a(0xf8)](got,_0x1dd599,_0x33f21f);if(_0x51d67e[_0x107e5a(0x116)](_0x267d0f,null)&&_0x51d67e[_0x107e5a(0x116)](_0x267d0f,undefined)&&_0x51d67e[_0x107e5a(0x133)](_0x267d0f[_0x107e5a(0x139)],0xc8)){const _0x42fd0c=JSON[_0x107e5a(0xf2)](_0x267d0f[_0x107e5a(0x10c)]);console['log'](_0x51d67e['pnSUx']);const _0x31896e=[];_0x31896e[_0x107e5a(0x126)]([_0x51d67e[_0x107e5a(0x128)],_0x51d67e[_0x107e5a(0x114)],_0x51d67e['rzWbb'],_0x51d67e[_0x107e5a(0x120)],_0x51d67e[_0x107e5a(0x11f)],_0x51d67e[_0x107e5a(0x125)]]),_0x42fd0c['forEach'](_0x453413=>{const _0x1b0a6d=_0x107e5a;_0x31896e[_0x1b0a6d(0x126)]([_0x453413['id'],_0x453413['name'],_0x453413['status'],_0x453413['running'],_0x453413['queued'],_0x453413['clusterName']]);}),console[_0x107e5a(0x13f)](_0x51d67e[_0x107e5a(0x101)](table,_0x31896e)),process[_0x107e5a(0xf3)](0x0);}_0x51d67e[_0x107e5a(0x133)](_0x267d0f[_0x107e5a(0x139)],0x191)&&(console[_0x107e5a(0x137)](_0x51d67e['uUsiP']),await _0x51d67e['Mqgpa'](sendInstrumentationEvent,_0x2f4f0f,_0x51d67e[_0x107e5a(0xf9)],messageTypes[_0x107e5a(0xfc)],_0x51d67e[_0x107e5a(0xfa)],null,_0x2f4f0f),process[_0x107e5a(0xf3)](0x1)),console[_0x107e5a(0x137)](_0x107e5a(0x134)+JSON[_0x107e5a(0x108)](_0x267d0f)),await _0x51d67e[_0x107e5a(0x10d)](sendInstrumentationEvent,_0x2f4f0f,_0x51d67e['MTLXn'],messageTypes['ERROR'],_0x51d67e['UynHS'],_0x267d0f,_0x2f4f0f),process[_0x107e5a(0xf3)](0x1);}catch(_0x4e55a7){console['error']('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x4e55a7[_0x107e5a(0x109)]),await _0x51d67e[_0x107e5a(0x140)](sendInstrumentationEvent,_0x2f4f0f,_0x51d67e[_0x107e5a(0xf9)],messageTypes[_0x107e5a(0xfc)],_0x51d67e['sSiKU'],_0x4e55a7,_0x2f4f0f),process['exit'](0x1);}};
1
+ function a15_0x4d1b(){const _0x47881d=['grid-id','https://','desc','YWGkE','1058353Fhqxfa','HzGrV','list-grids-called','password','fezIx','wWqBZ','wcxzJ','OVSYv','grid','vLTdW','789200TnqGcg','UgoHb','/packages/cli/get-all-grids','username','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','grid-name','kZsKk','stringify','options','3642210BEMhXN','status','10JkNRTZ','push','117uLdclt','unauthorised','UXzaF','readFileSync','lIaGM','all-grids','1736172NABckB','server-error','PMIbq','lwQrD','OIxtH','opNrC','Failed\x20to\x20list\x20resources!\x20Error:\x20','bstackAccesskey','argv','help','../../config/constants','table','2970558HsLhiE','135560nExYnf','exit','clusterName','bstackUsername','queued','existsSync','usage','INFO','running','body','got','UioYZ','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','../../utils/utilityMethods','6909021eTBHOr','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','statusCode','error','Browserstack','OjLvq','handler','SDPkS','HRPAS','requestId','epilogue','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','ERROR','YOHzC','unknown-error','hmXMR','name','log','type'];a15_0x4d1b=function(){return _0x47881d;};return a15_0x4d1b();}const a15_0x34641a=a15_0x5c91;(function(_0x474310,_0x6ff0c8){const _0x5053b=a15_0x5c91,_0x20a0c9=_0x474310();while(!![]){try{const _0x233787=-parseInt(_0x5053b(0x1e1))/0x1+-parseInt(_0x5053b(0x1fe))/0x2+parseInt(_0x5053b(0x20a))/0x3+-parseInt(_0x5053b(0x20b))/0x4*(parseInt(_0x5053b(0x1f6))/0x5)+-parseInt(_0x5053b(0x1f4))/0x6+parseInt(_0x5053b(0x1ca))/0x7+-parseInt(_0x5053b(0x1eb))/0x8*(-parseInt(_0x5053b(0x1f8))/0x9);if(_0x233787===_0x6ff0c8)break;else _0x20a0c9['push'](_0x20a0c9['shift']());}catch(_0x46a472){_0x20a0c9['push'](_0x20a0c9['shift']());}}}(a15_0x4d1b,0xa0bd1));const fs=require('fs'),got=require(a15_0x34641a(0x1c6)),{table}=require(a15_0x34641a(0x209)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x34641a(0x208)),{getCredentialsPath,getAuthHeader}=require(a15_0x34641a(0x1c9)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a15_0x5c91(_0x1748d8,_0x5e111c){const _0x4d1b8d=a15_0x4d1b();return a15_0x5c91=function(_0x5c91e2,_0x4b8b27){_0x5c91e2=_0x5c91e2-0x1be;let _0x16f518=_0x4d1b8d[_0x5c91e2];return _0x16f518;},a15_0x5c91(_0x1748d8,_0x5e111c);}exports['command']='grids',exports[a15_0x34641a(0x1df)]=a15_0x34641a(0x1d5),exports['builder']=function(_0x512038){const _0x26642b=a15_0x34641a,_0x1999ff={};_0x1999ff['UioYZ']=_0x26642b(0x1c8),_0x1999ff[_0x26642b(0x1d2)]='boolean',_0x1999ff['CADXx']='help';const _0x246a1e=_0x1999ff,_0x2acac6={};_0x2acac6['description']=_0x246a1e[_0x26642b(0x1c7)],_0x2acac6[_0x26642b(0x1dc)]=_0x246a1e[_0x26642b(0x1d2)];const _0x2e06a5={};return _0x2e06a5[_0x26642b(0x1fd)]=_0x2acac6,_0x512038[_0x26642b(0x1c2)](HELP_HEADER_MESSAGE['list'][_0x26642b(0x1e9)])[_0x26642b(0x1d4)](HELP_FOOTER_MESSAGE)[_0x26642b(0x1f3)](_0x2e06a5)[_0x26642b(0x207)](_0x246a1e['CADXx'])[_0x26642b(0x206)];},exports[a15_0x34641a(0x1d0)]=async function(_0x50efe2){const _0x43d3c3=a15_0x34641a,_0x1d35ec={'fezIx':function(_0x45dd32){return _0x45dd32();},'UgoHb':_0x43d3c3(0x1cb),'OIxtH':function(_0x4fe7ea,_0x56e0df,_0x1d0dc0,_0x51e0b4,_0x149b63,_0x7ad978,_0x259b91){return _0x4fe7ea(_0x56e0df,_0x1d0dc0,_0x51e0b4,_0x149b63,_0x7ad978,_0x259b91);},'PMIbq':_0x43d3c3(0x1e3),'mqcob':'init-not-called','YWGkE':function(_0x224f67){return _0x224f67();},'kZsKk':'GET','sADVY':function(_0x35e139,_0x2b0327,_0x46cec6){return _0x35e139(_0x2b0327,_0x46cec6);},'wcxzJ':function(_0x5671ec,_0x52dc47,_0x1e2f67){return _0x5671ec(_0x52dc47,_0x1e2f67);},'PfQCL':function(_0x414636,_0x167f13){return _0x414636!==_0x167f13;},'OVSYv':function(_0xb85968,_0xf31143){return _0xb85968!==_0xf31143;},'oKvnv':function(_0x243196,_0x2247fc){return _0x243196===_0x2247fc;},'opNrC':'\x0aFound\x20the\x20following\x20grids:\x0a','YOHzC':_0x43d3c3(0x1dd),'ehWsQ':_0x43d3c3(0x1f0),'lIaGM':_0x43d3c3(0x1f5),'UXzaF':_0x43d3c3(0x1c4),'HzGrV':_0x43d3c3(0x1c0),'lwQrD':'cluster-name','wWqBZ':function(_0x13ce6a,_0x3e11e7){return _0x13ce6a(_0x3e11e7);},'aqjRT':function(_0x123d20,_0x2122ee){return _0x123d20===_0x2122ee;},'hmXMR':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','SDPkS':_0x43d3c3(0x1f9),'qHFQB':function(_0x176503,_0x46ac47,_0xa07e2b,_0x1381b9,_0x299321,_0x37a85c,_0x2c365d){return _0x176503(_0x46ac47,_0xa07e2b,_0x1381b9,_0x299321,_0x37a85c,_0x2c365d);},'OjLvq':_0x43d3c3(0x1ff),'vLTdW':function(_0xd8363a,_0x45aa55,_0x1face2,_0x4bb46a,_0x37bafe,_0x26460d,_0x591502){return _0xd8363a(_0x45aa55,_0x1face2,_0x4bb46a,_0x37bafe,_0x26460d,_0x591502);},'WFbgN':_0x43d3c3(0x1d8)};try{global_registry[_0x43d3c3(0x1d3)]=_0x1d35ec[_0x43d3c3(0x1e5)](uuidv4);!fs[_0x43d3c3(0x1c1)](_0x1d35ec['fezIx'](getCredentialsPath))&&(console[_0x43d3c3(0x1cd)](_0x1d35ec[_0x43d3c3(0x1ec)]),await _0x1d35ec[_0x43d3c3(0x202)](sendInstrumentationEvent,_0x50efe2,_0x1d35ec[_0x43d3c3(0x200)],messageTypes[_0x43d3c3(0x1d6)],_0x1d35ec['mqcob'],null,_0x50efe2),process['exit'](0x1));const _0x36ccb6=JSON['parse'](fs[_0x43d3c3(0x1fb)](_0x1d35ec[_0x43d3c3(0x1e0)](getCredentialsPath)));let _0x5326bf=_0x43d3c3(0x1de)+AG_API_URL+'/packages/cli/get-grids';_0x50efe2['allGrids']&&(_0x5326bf=_0x43d3c3(0x1de)+AG_API_URL+_0x43d3c3(0x1ed));const _0x3f83d3={'method':_0x1d35ec[_0x43d3c3(0x1f1)],'headers':_0x1d35ec['sADVY'](getAuthHeader,_0x36ccb6['Browserstack']['username'],_0x36ccb6[_0x43d3c3(0x1ce)][_0x43d3c3(0x1e4)]),'throwHttpErrors':![]};global_registry[_0x43d3c3(0x1bf)]=_0x36ccb6[_0x43d3c3(0x1ce)][_0x43d3c3(0x1ee)],global_registry[_0x43d3c3(0x205)]=_0x36ccb6[_0x43d3c3(0x1ce)][_0x43d3c3(0x1e4)],_0x1d35ec[_0x43d3c3(0x202)](sendInstrumentationEvent,_0x50efe2,_0x1d35ec['PMIbq'],messageTypes[_0x43d3c3(0x1c3)],null,null,_0x50efe2);const _0x456693=await _0x1d35ec[_0x43d3c3(0x1e7)](got,_0x5326bf,_0x3f83d3);if(_0x1d35ec['PfQCL'](_0x456693,null)&&_0x1d35ec[_0x43d3c3(0x1e8)](_0x456693,undefined)&&_0x1d35ec['oKvnv'](_0x456693[_0x43d3c3(0x1cc)],0xc8)){const _0x80c74d=JSON['parse'](_0x456693[_0x43d3c3(0x1c5)]);console[_0x43d3c3(0x1db)](_0x1d35ec[_0x43d3c3(0x203)]);const _0x4bff41=[];_0x4bff41[_0x43d3c3(0x1f7)]([_0x1d35ec[_0x43d3c3(0x1d7)],_0x1d35ec['ehWsQ'],_0x1d35ec[_0x43d3c3(0x1fc)],_0x1d35ec[_0x43d3c3(0x1fa)],_0x1d35ec[_0x43d3c3(0x1e2)],_0x1d35ec[_0x43d3c3(0x201)]]),_0x80c74d['forEach'](_0x178efc=>{const _0x342a20=_0x43d3c3;_0x4bff41[_0x342a20(0x1f7)]([_0x178efc['id'],_0x178efc[_0x342a20(0x1da)],_0x178efc[_0x342a20(0x1f5)],_0x178efc[_0x342a20(0x1c4)],_0x178efc[_0x342a20(0x1c0)],_0x178efc[_0x342a20(0x1be)]]);}),console[_0x43d3c3(0x1db)](_0x1d35ec[_0x43d3c3(0x1e6)](table,_0x4bff41)),process['exit'](0x0);}_0x1d35ec['aqjRT'](_0x456693[_0x43d3c3(0x1cc)],0x191)&&(console[_0x43d3c3(0x1cd)](_0x1d35ec[_0x43d3c3(0x1d9)]),await _0x1d35ec[_0x43d3c3(0x202)](sendInstrumentationEvent,_0x50efe2,_0x1d35ec[_0x43d3c3(0x200)],messageTypes['ERROR'],_0x1d35ec[_0x43d3c3(0x1d1)],null,_0x50efe2),process[_0x43d3c3(0x20c)](0x1)),console[_0x43d3c3(0x1cd)](_0x43d3c3(0x1ef)+JSON[_0x43d3c3(0x1f2)](_0x456693)),await _0x1d35ec['qHFQB'](sendInstrumentationEvent,_0x50efe2,_0x1d35ec[_0x43d3c3(0x200)],messageTypes['ERROR'],_0x1d35ec[_0x43d3c3(0x1cf)],_0x456693,_0x50efe2),process['exit'](0x1);}catch(_0x487cdf){console[_0x43d3c3(0x1cd)](_0x43d3c3(0x204)+_0x487cdf['stack']),await _0x1d35ec[_0x43d3c3(0x1ea)](sendInstrumentationEvent,_0x50efe2,_0x1d35ec[_0x43d3c3(0x200)],messageTypes[_0x43d3c3(0x1d6)],_0x1d35ec['WFbgN'],_0x487cdf,_0x50efe2),process[_0x43d3c3(0x20c)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x2ae34c=a16_0x4fd7;(function(_0x8ea2fe,_0x25fcd1){const _0x4eab67=a16_0x4fd7,_0x42c475=_0x8ea2fe();while(!![]){try{const _0x117b4a=parseInt(_0x4eab67(0x161))/0x1+-parseInt(_0x4eab67(0x152))/0x2+parseInt(_0x4eab67(0x160))/0x3+parseInt(_0x4eab67(0x157))/0x4*(-parseInt(_0x4eab67(0x153))/0x5)+parseInt(_0x4eab67(0x168))/0x6+parseInt(_0x4eab67(0x15d))/0x7+-parseInt(_0x4eab67(0x15c))/0x8*(parseInt(_0x4eab67(0x167))/0x9);if(_0x117b4a===_0x25fcd1)break;else _0x42c475['push'](_0x42c475['shift']());}catch(_0x9f1a02){_0x42c475['push'](_0x42c475['shift']());}}}(a16_0x2436,0x7574b));function a16_0x4fd7(_0x2a1ab3,_0x2fb120){const _0x2436ec=a16_0x2436();return a16_0x4fd7=function(_0x4fd71d,_0x101cd2){_0x4fd71d=_0x4fd71d-0x150;let _0x58e921=_0x2436ec[_0x4fd71d];return _0x58e921;},a16_0x4fd7(_0x2a1ab3,_0x2fb120);}function a16_0x2436(){const _0x879568=['builder','help','../config/constants','strict','3365336pXTCwa','6472039Xbdbzx','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','handler','795597QVgujU','234614CTIBjO','eTQbx','usage','commandDir','command','demandCommand','9IODefx','519528LiChXb','epilogue','recommendCommands','614300uKIugJ','1510310RZKgQI','ELujp','pre-check','precheck_commands','4kqxOfP'];a16_0x2436=function(){return _0x879568;};return a16_0x2436();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x2ae34c(0x15a));exports[a16_0x2ae34c(0x165)]=a16_0x2ae34c(0x155),exports['desc']=a16_0x2ae34c(0x15e),exports[a16_0x2ae34c(0x158)]=function(_0x2d17a7){const _0x32d96c=a16_0x2ae34c,_0x24bc83={};_0x24bc83[_0x32d96c(0x154)]=_0x32d96c(0x156),_0x24bc83[_0x32d96c(0x162)]=_0x32d96c(0x159);const _0x2bf3e8=_0x24bc83;return _0x2d17a7[_0x32d96c(0x163)](HELP_HEADER_MESSAGE['pre_check'])[_0x32d96c(0x150)](HELP_FOOTER_MESSAGE)[_0x32d96c(0x164)](_0x2bf3e8[_0x32d96c(0x154)])[_0x32d96c(0x166)]()[_0x32d96c(0x151)]()[_0x32d96c(0x15b)]()[_0x32d96c(0x159)](_0x2bf3e8['eTQbx']);},exports[a16_0x2ae34c(0x15f)]=function(_0x5bd72e){};
1
+ const a16_0x1b891e=a16_0x5e46;function a16_0x5e46(_0x55c9b7,_0x4aa41c){const _0x48f6bd=a16_0x48f6();return a16_0x5e46=function(_0x5e46ce,_0x3fa181){_0x5e46ce=_0x5e46ce-0x177;let _0x3982fe=_0x48f6bd[_0x5e46ce];return _0x3982fe;},a16_0x5e46(_0x55c9b7,_0x4aa41c);}(function(_0x133100,_0xf07280){const _0x41ec1a=a16_0x5e46,_0x45b95a=_0x133100();while(!![]){try{const _0x300647=parseInt(_0x41ec1a(0x187))/0x1*(parseInt(_0x41ec1a(0x18e))/0x2)+-parseInt(_0x41ec1a(0x184))/0x3+parseInt(_0x41ec1a(0x17f))/0x4*(-parseInt(_0x41ec1a(0x17e))/0x5)+-parseInt(_0x41ec1a(0x18a))/0x6+parseInt(_0x41ec1a(0x188))/0x7+parseInt(_0x41ec1a(0x179))/0x8+parseInt(_0x41ec1a(0x17a))/0x9;if(_0x300647===_0xf07280)break;else _0x45b95a['push'](_0x45b95a['shift']());}catch(_0x1e02f8){_0x45b95a['push'](_0x45b95a['shift']());}}}(a16_0x48f6,0x966a3));function a16_0x48f6(){const _0x2b5803=['10ClPUgC','recommendCommands','pre-check','1171632kICTCB','13795839WwCzxg','handler','strict','PDVlN','10KUShsC','1404776bGQLhV','precheck_commands','epilogue','pre_check','../config/constants','1236801DbTdmx','desc','command','28238ifkmgR','2238306iieZMG','builder','2457114SXNxma','aDLEO','usage','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup'];a16_0x48f6=function(){return _0x2b5803;};return a16_0x48f6();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x1b891e(0x183));exports[a16_0x1b891e(0x186)]=a16_0x1b891e(0x178),exports[a16_0x1b891e(0x185)]=a16_0x1b891e(0x18d),exports[a16_0x1b891e(0x189)]=function(_0x3532ec){const _0x3cb78c=a16_0x1b891e,_0x2d2453={};_0x2d2453[_0x3cb78c(0x18b)]=_0x3cb78c(0x180),_0x2d2453[_0x3cb78c(0x17d)]='help';const _0x445776=_0x2d2453;return _0x3532ec[_0x3cb78c(0x18c)](HELP_HEADER_MESSAGE[_0x3cb78c(0x182)])[_0x3cb78c(0x181)](HELP_FOOTER_MESSAGE)['commandDir'](_0x445776[_0x3cb78c(0x18b)])['demandCommand']()[_0x3cb78c(0x177)]()[_0x3cb78c(0x17c)]()['help'](_0x445776['PDVlN']);},exports[a16_0x1b891e(0x17b)]=function(_0x35588e){};
@@ -1 +1 @@
1
- const a17_0x2c4fda=a17_0x1b4c;function a17_0x1b4c(_0x29cc66,_0x1cb071){const _0xc5680c=a17_0xc568();return a17_0x1b4c=function(_0x1b4cef,_0x288bbe){_0x1b4cef=_0x1b4cef-0xd1;let _0x64208f=_0xc5680c[_0x1b4cef];return _0x64208f;},a17_0x1b4c(_0x29cc66,_0x1cb071);}(function(_0x10581a,_0x42b1c4){const _0x4cb9f0=a17_0x1b4c,_0x153aa2=_0x10581a();while(!![]){try{const _0x369afe=-parseInt(_0x4cb9f0(0x1ac))/0x1*(parseInt(_0x4cb9f0(0xe1))/0x2)+parseInt(_0x4cb9f0(0xd7))/0x3+-parseInt(_0x4cb9f0(0x177))/0x4+parseInt(_0x4cb9f0(0x162))/0x5*(parseInt(_0x4cb9f0(0xfd))/0x6)+parseInt(_0x4cb9f0(0x14a))/0x7*(parseInt(_0x4cb9f0(0x1a1))/0x8)+-parseInt(_0x4cb9f0(0x1c3))/0x9+parseInt(_0x4cb9f0(0x193))/0xa;if(_0x369afe===_0x42b1c4)break;else _0x153aa2['push'](_0x153aa2['shift']());}catch(_0xfc5859){_0x153aa2['push'](_0x153aa2['shift']());}}}(a17_0xc568,0xc6b6f));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x2c4fda(0x15a)),ReconnectingWebSocket=require(a17_0x2c4fda(0x16a)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x2c4fda(0x12f)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require(a17_0x2c4fda(0x1af)),webSocketUtils=require(a17_0x2c4fda(0x140)),{sendInstrumentationEvent}=require(a17_0x2c4fda(0x19c));exports[a17_0x2c4fda(0x1a2)]=a17_0x2c4fda(0x15b),exports[a17_0x2c4fda(0x127)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a17_0x2c4fda(0xeb)]=function(_0x4cdddc){const _0x43ffbe=a17_0x2c4fda,_0xad00f5={};_0xad00f5[_0x43ffbe(0x18b)]=_0x43ffbe(0x101),_0xad00f5[_0x43ffbe(0xd8)]=_0x43ffbe(0x1aa),_0xad00f5['OsQNW']=_0x43ffbe(0x152),_0xad00f5[_0x43ffbe(0x11b)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0xad00f5['zNSeb']=_0x43ffbe(0x129),_0xad00f5[_0x43ffbe(0x113)]=_0x43ffbe(0xf1);const _0x18f278=_0xad00f5,_0x1acdd9={};_0x1acdd9['description']=_0x18f278[_0x43ffbe(0x18b)],_0x1acdd9['type']=_0x18f278['zxUGO'];const _0x17d8e7={};_0x17d8e7[_0x43ffbe(0x161)]=_0x18f278['OsQNW'],_0x17d8e7[_0x43ffbe(0x16d)]=_0x18f278[_0x43ffbe(0xd8)];const _0x4d1316={};_0x4d1316[_0x43ffbe(0x161)]=_0x18f278[_0x43ffbe(0x11b)],_0x4d1316[_0x43ffbe(0x16d)]=_0x18f278[_0x43ffbe(0xd8)];const _0x5e70ea={};_0x5e70ea[_0x43ffbe(0x161)]=_0x18f278['zNSeb'],_0x5e70ea['type']=_0x18f278[_0x43ffbe(0xd8)];const _0x1b4516={};return _0x1b4516[_0x43ffbe(0x12c)]=_0x1acdd9,_0x1b4516[_0x43ffbe(0x163)]=_0x17d8e7,_0x1b4516[_0x43ffbe(0xfa)]=_0x4d1316,_0x1b4516[_0x43ffbe(0x1c4)]=_0x5e70ea,_0x4cdddc[_0x43ffbe(0x11e)](HELP_HEADER_MESSAGE['pre_check'])[_0x43ffbe(0x198)](HELP_FOOTER_MESSAGE)[_0x43ffbe(0x1a7)](_0x1b4516)[_0x43ffbe(0xf1)](_0x18f278['niMUM'])[_0x43ffbe(0x197)];};async function inputValidation(_0x5eb28f,_0x534031){const _0x2ea164=a17_0x2c4fda,_0x3c8b89={'SpXrE':_0x2ea164(0xd2),'HEewH':'will\x20be\x20created','NncOJ':_0x2ea164(0x163),'vyEsK':_0x2ea164(0xf4),'Bmdbw':_0x2ea164(0xfa),'HxjxO':function(_0x853905,_0x380a38){return _0x853905+_0x380a38;},'fggqg':'Success','USFLP':_0x2ea164(0x1ce),'DUoyE':function(_0x1cc888,_0x41b67){return _0x1cc888||_0x41b67;},'fFqfT':_0x2ea164(0x180),'icKcs':'Error\x20Details:\x0a','GQYdZ':_0x2ea164(0x101),'txEOD':_0x2ea164(0x1aa),'FthLT':_0x2ea164(0x152),'rKLAb':_0x2ea164(0x175),'zMZfx':_0x2ea164(0x129),'dMjou':'help','ceysj':_0x2ea164(0x12c),'sTOsC':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','YYQrj':function(_0x6d72c2,_0x567c1e){return _0x6d72c2!==_0x567c1e;},'hWbTF':_0x2ea164(0x15f),'KitJK':function(_0x3288b4,_0x1bdf34){return _0x3288b4===_0x1bdf34;},'MEGQK':_0x2ea164(0x1c9),'NsMWP':_0x2ea164(0x16f),'RNXmk':function(_0x5f17fc,_0x10d83c){return _0x5f17fc!==_0x10d83c;},'aVsXU':_0x2ea164(0xe9),'Qkhmy':'BfVyi','QBamC':function(_0x4250fc,_0x18c365){return _0x4250fc===_0x18c365;},'AUfcm':_0x2ea164(0x176),'xPPlF':_0x2ea164(0xe4),'TtKGJ':_0x2ea164(0x1b9),'qWUTe':_0x2ea164(0x15d),'ZJMiU':function(_0x5f21af,_0x2a0051){return _0x5f21af>_0x2a0051;},'Nocyy':_0x2ea164(0x171),'QPReY':_0x2ea164(0xda),'CEmBW':function(_0x4cd1a0,_0x30d46c,_0x1bfecb,_0x3d3172,_0x1119bf,_0x3f3ad9,_0x17cc46,_0x17173a){return _0x4cd1a0(_0x30d46c,_0x1bfecb,_0x3d3172,_0x1119bf,_0x3f3ad9,_0x17cc46,_0x17173a);},'NdpSy':'pre-check-grid-called','BLAKe':'pre-check-cluster-args-not-passed','zvHiJ':function(_0x580b05,_0x32b4a8){return _0x580b05===_0x32b4a8;},'joVcB':_0x2ea164(0x107),'wlVIh':_0x2ea164(0xe2),'CHafO':function(_0x32dfaf,_0x3ef5b1,_0x56ed99,_0x2e24da,_0x13371a,_0x2a292c,_0x67b143,_0xc9e30b){return _0x32dfaf(_0x3ef5b1,_0x56ed99,_0x2e24da,_0x13371a,_0x2a292c,_0x67b143,_0xc9e30b);},'tsmLb':'cloud-provider-not-supported','jhLWj':_0x2ea164(0x145),'xPktm':_0x2ea164(0x158),'vhMKW':_0x2ea164(0x125),'HtwyG':function(_0x5937f4,_0x4360ba,_0x55cf64){return _0x5937f4(_0x4360ba,_0x55cf64);},'yLqWT':function(_0x237365,_0x4f9821,_0x303270,_0x4e269b,_0x2f1ddf,_0x42a014){return _0x237365(_0x4f9821,_0x303270,_0x4e269b,_0x2f1ddf,_0x42a014);},'LntXq':'pre-check','BlIwc':'grid-profile','tZwoT':function(_0x6868bb,_0x23bccd){return _0x6868bb===_0x23bccd;},'AtBjF':_0x2ea164(0x157),'UfLlv':function(_0x219909,_0x60814c){return _0x219909(_0x60814c);},'sjQni':function(_0x414a80,_0x10ca8b){return _0x414a80!==_0x10ca8b;},'fNnyi':_0x2ea164(0x19a),'RZODy':_0x2ea164(0xf0),'vMeEt':function(_0x23af16,_0xd4baac){return _0x23af16!==_0xd4baac;},'lxvIE':_0x2ea164(0x192),'WNcXA':function(_0x585dd8,_0x3aa232){return _0x585dd8===_0x3aa232;},'ZUcic':_0x2ea164(0xef),'CPgDg':_0x2ea164(0x1b8),'THWNn':_0x2ea164(0x14f),'wpdno':'TCSnT','gqdQv':_0x2ea164(0x1ab),'uPSBA':function(_0x7d47e0,_0x1df2ee,_0x454b66,_0x316e41,_0x24d9fc,_0x4ca935,_0x18d3f9,_0x2852f9){return _0x7d47e0(_0x1df2ee,_0x454b66,_0x316e41,_0x24d9fc,_0x4ca935,_0x18d3f9,_0x2852f9);}};let _0x1bf84d;try{if(_0x3c8b89[_0x2ea164(0x173)](_0x3c8b89[_0x2ea164(0x1b7)],_0x3c8b89[_0x2ea164(0x1b7)]))_0x34db7b[_0x2ea164(0x1be)]('Cluster\x20`'+_0xa09d44[_0x2ea164(0xe3)]+'`\x20already\x20exists');else{if(_0x5eb28f['clusterName']||_0x5eb28f[_0x2ea164(0x110)]||_0x5eb28f['region']){if(_0x3c8b89[_0x2ea164(0x150)](_0x3c8b89[_0x2ea164(0x18d)],_0x3c8b89[_0x2ea164(0x14e)]))_0x58fc78+='Cluster\x20'+_0x577f93[_0x2ea164(0xe3)]+'\x20'+(_0x41e30a?_0x3c8b89[_0x2ea164(0xf9)]:_0x3c8b89[_0x2ea164(0x159)])+'\x0a\x0a';else{const _0x3df82f=[];!_0x5eb28f[_0x2ea164(0xe3)]&&(_0x3c8b89[_0x2ea164(0x1d0)](_0x3c8b89[_0x2ea164(0x119)],_0x3c8b89[_0x2ea164(0x13d)])?_0x3df82f[_0x2ea164(0xec)](_0x3c8b89['ceysj']):_0x419683[_0x2ea164(0xec)](_0x3c8b89[_0x2ea164(0xe5)]));;if(!_0x5eb28f[_0x2ea164(0x110)]){if(_0x3c8b89[_0x2ea164(0x149)](_0x3c8b89[_0x2ea164(0x17c)],_0x3c8b89[_0x2ea164(0x1ae)])){const _0x1b3d25={};_0x1b3d25[_0x2ea164(0x16d)]=_0x49c4b5[_0x2ea164(0x17a)],_0x1b3d25[_0x2ea164(0x16c)]=_0x1c7919,_0x44e452[_0x2ea164(0x168)](_0x1b760c,_0x1b3d25,_0x3c8b89[_0x2ea164(0x184)],!![]);}else _0x3df82f[_0x2ea164(0xec)](_0x3c8b89[_0x2ea164(0xe5)]);};!_0x5eb28f['region']&&(_0x3c8b89[_0x2ea164(0x1d0)](_0x3c8b89[_0x2ea164(0x11c)],_0x3c8b89[_0x2ea164(0x130)])?_0x3df82f[_0x2ea164(0xec)](_0x3c8b89[_0x2ea164(0x18c)]):_0x1227d0['push'](_0x3c8b89['Bmdbw']));;_0x3c8b89[_0x2ea164(0x174)](_0x3df82f[_0x2ea164(0x10f)],0x0)&&(_0x3c8b89[_0x2ea164(0x173)](_0x3c8b89[_0x2ea164(0xf2)],_0x3c8b89['QPReY'])?(_0x1bf84d=_0x2ea164(0x136)+_0x3df82f[_0x2ea164(0xe7)](',\x20')+_0x2ea164(0x18a),await _0x3c8b89['CEmBW'](reportToGalactusAndSendToEDS,_0x5eb28f,_0x534031,_0x1bf84d,messageTypes['ERROR'],_0x3c8b89[_0x2ea164(0x17d)],_0x3c8b89['BLAKe'],_0x3c8b89[_0x2ea164(0x184)]),logger[_0x2ea164(0xf4)](_0x1bf84d),process['exit'](0x1)):_0x5e7ee8[_0x2ea164(0xf4)](_0x2ea164(0x1bd)+_0xd034c4[_0x2ea164(0xf4)]['stack']));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x2ea164(0x189)](_0x5eb28f[_0x2ea164(0x110)][_0x2ea164(0x178)]())){if(_0x3c8b89[_0x2ea164(0x120)](_0x3c8b89['joVcB'],_0x3c8b89['joVcB']))_0x1bf84d=_0x3c8b89[_0x2ea164(0xee)],await _0x3c8b89['CHafO'](reportToGalactusAndSendToEDS,_0x5eb28f,_0x534031,_0x1bf84d,messageTypes[_0x2ea164(0x172)],_0x3c8b89[_0x2ea164(0x17d)],_0x3c8b89[_0x2ea164(0xdc)],_0x3c8b89[_0x2ea164(0x184)]),logger[_0x2ea164(0xf4)](_0x1bf84d),!_0x5eb28f[_0x2ea164(0x110)]&&(_0x3c8b89[_0x2ea164(0x120)](_0x3c8b89[_0x2ea164(0x1a5)],_0x3c8b89['jhLWj'])?(logger[_0x2ea164(0x1be)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x2ea164(0xd5)]+'\x20'),_0x5eb28f[_0x2ea164(0x110)]=DEFAULT_CLUSTER_DETAILS[_0x2ea164(0xd5)]):_0xbcc905+=_0x2ea164(0x137)+_0x32b8fb[_0x2ea164(0xe3)]+_0x2ea164(0x19e));else{const {header:_0x331862,response:_0x2d9e01}=_0x4e5d7f,{status:_0xf1e304,data:_0x12cf69,error:_0x3e5856}=_0x2d9e01;_0x51e645+=_0x331862+'\x20#'+_0x3c8b89[_0x2ea164(0x1cb)](_0x49a014,0x1)+'\x0a',_0x1e32b8+=_0x2ea164(0x19f)+(_0xf1e304?_0x3c8b89['fggqg']:_0x3c8b89[_0x2ea164(0x12d)])+'\x0a',_0x3f1053+=_0x2ea164(0xf7)+_0x3c8b89[_0x2ea164(0x179)](_0x12cf69,_0x3c8b89['fFqfT'])+'\x0a',_0x3e5856&&(_0x44fd69+=_0x3c8b89[_0x2ea164(0x16e)],_0x3f545e+=_0x2ea164(0x165)+(_0x3e5856[_0x2ea164(0x16c)]||_0x3c8b89[_0x2ea164(0x133)])+'\x0a',_0x54e7ba+=_0x2ea164(0x199)+(_0x3e5856[_0x2ea164(0x182)]||_0x3c8b89[_0x2ea164(0x133)])+'\x0a',_0xe371ff+='\x20\x20Stack:\x20'+(_0x3e5856['stack']||_0x3c8b89[_0x2ea164(0x133)])+'\x0a'),_0x52b43d+='\x0a\x0a';}}global_registry['clusterName']=_0x5eb28f[_0x2ea164(0xe3)],global_registry[_0x2ea164(0x110)]=_0x5eb28f[_0x2ea164(0x110)],global_registry['clusterRegion']=_0x5eb28f['region'];}}else{if(_0x5eb28f[_0x2ea164(0x1c7)]){if(_0x3c8b89[_0x2ea164(0x173)](_0x3c8b89[_0x2ea164(0x134)],_0x3c8b89[_0x2ea164(0x134)])){const _0x5f48e1={};_0x5f48e1[_0x2ea164(0x161)]=_0x3c8b89[_0x2ea164(0x155)],_0x5f48e1[_0x2ea164(0x16d)]=_0x3c8b89[_0x2ea164(0x143)];const _0x221e11={};_0x221e11[_0x2ea164(0x161)]=_0x3c8b89[_0x2ea164(0x1c5)],_0x221e11['type']=_0x3c8b89[_0x2ea164(0x143)];const _0x17b3a5={};_0x17b3a5[_0x2ea164(0x161)]=_0x3c8b89[_0x2ea164(0x115)],_0x17b3a5['type']=_0x3c8b89[_0x2ea164(0x143)];const _0x1ce069={};_0x1ce069['description']=_0x3c8b89[_0x2ea164(0x10a)],_0x1ce069[_0x2ea164(0x16d)]=_0x3c8b89[_0x2ea164(0x143)];const _0x3c2dcc={};return _0x3c2dcc['cluster-name']=_0x5f48e1,_0x3c2dcc[_0x2ea164(0x163)]=_0x221e11,_0x3c2dcc[_0x2ea164(0xfa)]=_0x17b3a5,_0x3c2dcc['grid-profile']=_0x1ce069,_0x48918f[_0x2ea164(0x11e)](_0x16d9b0[_0x2ea164(0x1cd)])[_0x2ea164(0x198)](_0x73d4ff)[_0x2ea164(0x1a7)](_0x3c2dcc)[_0x2ea164(0xf1)](_0x3c8b89[_0x2ea164(0x13e)])[_0x2ea164(0x197)];}else{global_registry[_0x2ea164(0x1c7)]=_0x5eb28f['gridProfile'],logger[_0x2ea164(0x17b)](_0x2ea164(0x166)+_0x5eb28f['gridProfile']);const _0x142daf=_0x2ea164(0x160)+AG_API_URL+_0x2ea164(0x164),_0x45c5da={};_0x45c5da[_0x2ea164(0xf8)]=_0x3c8b89[_0x2ea164(0x18f)],_0x45c5da[_0x2ea164(0xf6)]=global_registry[_0x2ea164(0x121)],_0x45c5da['throwHttpErrors']=![];const _0x5f5674=_0x45c5da,_0x2785c9=await _0x3c8b89[_0x2ea164(0x169)](got,_0x142daf,_0x5f5674),_0x2d36bc=await _0x3c8b89['yLqWT'](responseValidation,_0x2785c9,_0x3c8b89['LntXq'],_0x3c8b89['BlIwc'],_0x5eb28f,_0x534031);let _0xb95f65={};if(_0x3c8b89[_0x2ea164(0x146)](_0x2d36bc,0xc8)){if(_0x3c8b89['tZwoT'](_0x3c8b89['AtBjF'],_0x3c8b89['AtBjF'])){const _0x5ef134=JSON['parse'](_0x2785c9[_0x2ea164(0x123)]),_0x239663=_0x5ef134[_0x2ea164(0xf3)](_0x541243=>_0x541243['name']===_0x5eb28f[_0x2ea164(0x1c7)])||null;_0x3c8b89[_0x2ea164(0x10d)](isUndefined,_0x239663)?_0x3c8b89[_0x2ea164(0x14b)](_0x3c8b89[_0x2ea164(0x1c2)],_0x3c8b89['fNnyi'])?_0x498795[_0x2ea164(0xec)](_0x3c8b89[_0x2ea164(0x15e)]):(_0x1bf84d=_0x2ea164(0x142)+_0x5eb28f[_0x2ea164(0x1c7)]+_0x2ea164(0x109),await _0x3c8b89[_0x2ea164(0x17e)](reportToGalactusAndSendToEDS,_0x5eb28f,_0x534031,_0x1bf84d,messageTypes[_0x2ea164(0x172)],_0x3c8b89[_0x2ea164(0x17d)],_0x3c8b89[_0x2ea164(0xd1)],_0x3c8b89['vyEsK']),logger[_0x2ea164(0xf4)](_0x1bf84d),process[_0x2ea164(0x16b)](0x1)):_0x3c8b89[_0x2ea164(0x167)](_0x3c8b89[_0x2ea164(0xd3)],_0x3c8b89[_0x2ea164(0xd3)])?(_0x37f8c1[_0x2ea164(0x1be)]('Setting\x20cloud\x20provider\x20as\x20'+_0x120ea0['CLOUD_PROVIDER']+'\x20'),_0x3da1ad['cloudProvider']=_0x355199[_0x2ea164(0xd5)]):_0xb95f65=_0x239663;}else _0x1b48a8=_0x465613;}else _0x3c8b89['WNcXA'](_0x3c8b89['ZUcic'],_0x3c8b89[_0x2ea164(0xfc)])?(_0x407b18[_0x2ea164(0xf4)](_0x3c8b89[_0x2ea164(0x1cc)]),_0x49984d[_0x2ea164(0x16b)](0x1)):process[_0x2ea164(0x16b)](0x1);const _0xf9e255={};_0xf9e255[_0x2ea164(0x16d)]=WS_EVENTS[_0x2ea164(0x17a)],_0xf9e255[_0x2ea164(0x16c)]=_0x3c8b89[_0x2ea164(0x196)],webSocketUtils[_0x2ea164(0x168)](_0x534031,_0xf9e255),global_registry[_0x2ea164(0x110)]=_0xb95f65['cloudProvider'],global_registry[_0x2ea164(0x104)]=_0xb95f65[_0x2ea164(0xfa)],global_registry[_0x2ea164(0xe3)]=_0xb95f65['clusterName'];}}else _0x3c8b89[_0x2ea164(0x118)](_0x3c8b89['wpdno'],_0x3c8b89[_0x2ea164(0x12e)])?(logger[_0x2ea164(0xf4)](_0x3c8b89[_0x2ea164(0x1cc)]),process[_0x2ea164(0x16b)](0x1)):_0x2b84e3[_0x2ea164(0x16b)](0x1);}}}catch(_0x4deb89){_0x3c8b89[_0x2ea164(0x149)](_0x3c8b89[_0x2ea164(0x103)],_0x3c8b89[_0x2ea164(0x103)])?(_0x1bf84d=_0x2ea164(0x13b)+_0x4deb89+':\x20'+_0x4deb89[_0x2ea164(0x111)],logger[_0x2ea164(0xf4)](_0x1bf84d),await _0x3c8b89[_0x2ea164(0x1cf)](reportToGalactusAndSendToEDS,_0x5eb28f,_0x534031,_0x1bf84d,messageTypes['ERROR'],_0x3c8b89['NdpSy'],_0x3c8b89['tsmLb'],_0x3c8b89[_0x2ea164(0x184)]),process['exit'](0x1)):(_0x419ade[_0x2ea164(0x1be)]('['+_0x1501ce+_0x2ea164(0x139)+_0x47c035[_0x2ea164(0x17f)]+_0x2ea164(0x12b)+_0x5e9582['data']+_0x2ea164(0x13f)+_0x371f95['error']),_0x5239c1[_0x2ea164(0xf4)]&&_0x368ef9[_0x2ea164(0xf4)]('error\x20stack\x20:\x20'+_0x7d0954[_0x2ea164(0xf4)][_0x2ea164(0x111)]));}}function a17_0xc568(){const _0x400a7a=['/packages/cli/get-all-grid-profiles','\x20\x20Message:\x20','grid\x20profile\x20flow\x20','vMeEt','sendEventToBackend','HtwyG','reconnecting-websocket','exit','message','type','icKcs','ZoZUu','Whitelisted\x20browserstack','OjWES','ERROR','YYQrj','ZJMiU','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','ehLLH','3391228CwMILJ','toLowerCase','DUoyE','LOG','debug','AUfcm','NdpSy','CHafO','status','N/A','unable\x20to\x20verify\x20if\x20cluster\x20`','code','dCFpf','vyEsK','sbcsH','<UsernamePlaceholder>','VQtfZ','WebSocket','includes','.\x20Please\x20provide\x20all\x20required\x20arguments.','WnKIL','Bmdbw','MEGQK','Report\x20saved\x20in\x20','vhMKW','WewId','<PasswordPlaceholder>','woHOy','7506420xbpfTG','mJpzv','handler','THWNn','argv','epilogue','\x20\x20Code:\x20','zhjkG','isTrialGridAccessible','../../utils/instrumentationUtils','WxxRV','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','Status:\x20','INFO','1169608QjlxMN','command','username','\x20===\x0a\x0a','jhLWj','accessResp','options','credential-not-found','data','string','dHZCp','7xSYbtz','zVzZq','xPPlF','../../cloudproviders/utils','toolInstalledResp','vsZfM','password','connectionTimeout','pre-check-failed','ZKuSy','uQKqb','hWbTF','hWLHe','CaTlA','Gptyi','XCqYW','getUTCDate','error\x20stack\x20:\x20','info','`\x20already\x20exists','zxiff','writeFileSync','fNnyi','1071711TjItvQ','grid-profile','FthLT','utf-8','gridProfile','existsSync','PjNHz','RZLsF','HxjxO','sTOsC','pre_check','Failure','uPSBA','RNXmk','RZODy','is\x20already\x20present','lxvIE','\x20\x20Stack:\x20','CLOUD_PROVIDER','forEach','971856UrCCjC','zxUGO','OJpYI','XpBqy','getUTCMinutes','tsmLb','cQHDw','split','AYkgn','delay','6418BjObFm','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','clusterName','gOFcM','NncOJ','nPzRO','join','isCliToolInstalled','Nztct','isClusterPresent','builder','push','requestId','wlVIh','BIhCV','pre-check-grid-profile-empty','help','Nocyy','find','error','will\x20be\x20created','headers','Message:\x20','method','SpXrE','region','jsSbJ','CPgDg','3294azbTmW','.txt','bstackAccesskey','\x20region\x20-\x20','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','KgCdq','gqdQv','clusterRegion','pre-check-grid-called','Cluster\x20`','pLWgP','hSRfq','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','zMZfx','SSL\x20Configured','bstackUsername','UfLlv','isTls1_2_SUPPORTED','length','cloudProvider','stack','response','niMUM','vhVuW','rKLAb','getUTCFullYear','VzoQP','WNcXA','aVsXU','parse','cIXeG','TtKGJ','0|4|3|2|1','usage','AlitT','zvHiJ','authHeader','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','body','Cluster\x20details\x0a-----------------------\x0a','GET','cluster-check-failed-','desc','Tool\x20Installed','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Failed\x20in\x20pre-check!\x20Error:\x20','\x20data\x20:\x20','cluster-name','USFLP','wpdno','../../config/logger','qWUTe','Browserstack','zmVEw','fFqfT','xPktm','stack\x20trace\x20','Missing\x20required\x20arguments:\x20','Cluster\x20','TLSv1_2_client_method',']\x20status\x20:\x20','stringify','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','OieEI','Qkhmy','dMjou','\x20error\x20:\x20','../../utils/webSocketUtils','DAlEw','Invalid\x20input.\x20grid\x20profiles:\x20','txEOD','replace','caMrc','tZwoT','Error\x20Details:\x0a','zkJCI','QBamC','7fAqFMF','sjQni','HDsvO','CGttx','NsMWP','Grid\x20profile\x20fetched\x20for\x20pre-check','KitJK','bBIYh','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','header','gBHMm','GQYdZ','===\x20Precheck\x20Report\x20-\x20','noDFq','JSXMO','HEewH','uuid','grid','dummy-grid','RJYRG','ceysj','fqcNs','https://','description','5305rtAjlK','cloud-provider'];a17_0xc568=function(){return _0x400a7a;};return a17_0xc568();}function printResponse(_0x15cf6e,_0x1a9275){const _0x305148=a17_0x2c4fda,_0x758470={};_0x758470['dCFpf']=_0x305148(0x147),_0x758470[_0x305148(0x14d)]=_0x305148(0x180),_0x758470['XCqYW']=function(_0x5c8877,_0x3d90ab){return _0x5c8877!==_0x3d90ab;},_0x758470[_0x305148(0xe6)]='KWEiy';const _0x4cb9c2=_0x758470;logger[_0x305148(0x1be)]('['+_0x15cf6e+']\x20status\x20:\x20'+_0x1a9275['status']+_0x305148(0x12b)+_0x1a9275[_0x305148(0x1a9)]+'\x20error\x20:\x20'+_0x1a9275['error']),_0x1a9275[_0x305148(0xf4)]&&(_0x4cb9c2[_0x305148(0x1bb)](_0x4cb9c2['nPzRO'],_0x4cb9c2['nPzRO'])?(_0x46835b+=_0x4cb9c2[_0x305148(0x183)],_0x29779+='\x20\x20Message:\x20'+(_0x5d15ac['message']||_0x4cb9c2[_0x305148(0x14d)])+'\x0a',_0x22b287+='\x20\x20Code:\x20'+(_0x3e3190['code']||_0x4cb9c2[_0x305148(0x14d)])+'\x0a',_0x5c7c2d+=_0x305148(0xd4)+(_0x43d135['stack']||_0x4cb9c2['CGttx'])+'\x0a'):logger[_0x305148(0xf4)](_0x305148(0x1bd)+_0x1a9275['error']['stack']));}async function generateReport(_0x247e9d,_0x38dbbb){const _0x3f7568=a17_0x2c4fda,_0x40a801={'OJpYI':function(_0x3ad4f6,_0x1d47c6){return _0x3ad4f6+_0x1d47c6;},'OieEI':'Success','zMNdK':_0x3f7568(0x1ce),'uQKqb':function(_0x158609,_0x1fad4b){return _0x158609||_0x1fad4b;},'bBIYh':_0x3f7568(0x180),'cLPGQ':_0x3f7568(0x147),'vhVuW':_0x3f7568(0x124),'AlitT':function(_0x4ff57a,_0x4e781c){return _0x4ff57a!=_0x4e781c;},'zVzZq':_0x3f7568(0xd2),'DAlEw':_0x3f7568(0xf5),'IOEka':function(_0xeaa84e){return _0xeaa84e();}};let _0x49db4a=_0x3f7568(0x156)+global_registry[_0x3f7568(0x110)]+_0x3f7568(0x1a4);return _0x247e9d[_0x3f7568(0xd6)]((_0x336b51,_0x1ceaab)=>{const _0x19b314=_0x3f7568,{header:_0x42d0c0,response:_0x11b6c4}=_0x336b51,{status:_0x2a76cc,data:_0x1e255f,error:_0x8c5bee}=_0x11b6c4;_0x49db4a+=_0x42d0c0+'\x20#'+_0x40a801[_0x19b314(0xd9)](_0x1ceaab,0x1)+'\x0a',_0x49db4a+=_0x19b314(0x19f)+(_0x2a76cc?_0x40a801[_0x19b314(0x13c)]:_0x40a801['zMNdK'])+'\x0a',_0x49db4a+=_0x19b314(0xf7)+_0x40a801[_0x19b314(0x1b6)](_0x1e255f,_0x40a801[_0x19b314(0x151)])+'\x0a',_0x8c5bee&&(_0x49db4a+=_0x40a801['cLPGQ'],_0x49db4a+='\x20\x20Message:\x20'+(_0x8c5bee[_0x19b314(0x16c)]||_0x40a801[_0x19b314(0x151)])+'\x0a',_0x49db4a+=_0x19b314(0x199)+(_0x8c5bee['code']||_0x40a801[_0x19b314(0x151)])+'\x0a',_0x49db4a+=_0x19b314(0xd4)+(_0x8c5bee[_0x19b314(0x111)]||_0x40a801['bBIYh'])+'\x0a'),_0x49db4a+='\x0a\x0a';}),_0x49db4a+=_0x40a801[_0x3f7568(0x114)],_0x40a801[_0x3f7568(0x11f)](_0x38dbbb,null)?_0x49db4a+=_0x3f7568(0x137)+global_registry[_0x3f7568(0xe3)]+'\x20'+(_0x38dbbb?_0x40a801[_0x3f7568(0x1ad)]:_0x40a801[_0x3f7568(0x141)])+'\x0a\x0a':_0x49db4a+=_0x3f7568(0x137)+global_registry[_0x3f7568(0xe3)]+_0x3f7568(0x19e),_0x49db4a+=_0x40a801['IOEka'](getSystemMetaData),_0x49db4a;};exports[a17_0x2c4fda(0x195)]=async function(_0xfd4b79){const _0x521c98=a17_0x2c4fda,_0xed97ea={'zxiff':function(_0xb9b08c){return _0xb9b08c();},'HDsvO':_0x521c98(0x122),'mJpzv':function(_0x473120,_0x3e48ed,_0x402577,_0x59784f,_0x291427,_0x47c50f,_0x4f6c78,_0x1a2733){return _0x473120(_0x3e48ed,_0x402577,_0x59784f,_0x291427,_0x47c50f,_0x4f6c78,_0x1a2733);},'VQtfZ':_0x521c98(0x105),'IBoRc':_0x521c98(0x1a8),'WewId':_0x521c98(0xf4),'POTyz':function(_0x26b4c9,_0x256bb9,_0x1baecc,_0x427e1b,_0x2a88e3,_0xd29716,_0x392ea1){return _0x26b4c9(_0x256bb9,_0x1baecc,_0x427e1b,_0x2a88e3,_0xd29716,_0x392ea1);},'UpsmL':_0x521c98(0x186),'sbcsH':_0x521c98(0x191),'ZKuSy':function(_0x18b95b,_0xd473a7,_0x5719b8){return _0x18b95b(_0xd473a7,_0x5719b8);},'zmVEw':function(_0x1d0fb1,_0x14d9a6,_0x4f4ec2,_0x366f58,_0x22929e,_0x2aee02,_0x39df4c){return _0x1d0fb1(_0x14d9a6,_0x4f4ec2,_0x366f58,_0x22929e,_0x2aee02,_0x39df4c);},'jsSbJ':_0x521c98(0x15c),'vsZfM':function(_0x3263aa,_0x5264ce,_0xb2c2b8){return _0x3263aa(_0x5264ce,_0xb2c2b8);},'Gptyi':_0x521c98(0x1b0),'cQHDw':_0x521c98(0x11d),'WxxRV':function(_0x32ea11,_0x32d753,_0x41ca3d,_0x99327c,_0x474453,_0x4e84be,_0x3790ec,_0x25ddfb){return _0x32ea11(_0x32d753,_0x41ca3d,_0x99327c,_0x474453,_0x4e84be,_0x3790ec,_0x25ddfb);},'PISYY':_0x521c98(0x1a6),'KgCdq':function(_0x307f36){return _0x307f36();},'lHKlC':_0x521c98(0x19b),'pUDEj':function(_0xec17c8,_0x2e0fd6){return _0xec17c8(_0x2e0fd6);},'RZLsF':_0x521c98(0x138),'hSRfq':_0x521c98(0x10e),'zkJCI':_0x521c98(0x128),'VzoQP':'User\x20Access','gtNDb':_0x521c98(0x170),'AYkgn':_0x521c98(0x10b),'sppHw':function(_0xb9c32,_0x259e75){return _0xb9c32+_0x259e75;},'gBHMm':_0x521c98(0x1c6),'uzPBa':_0x521c98(0x1b4)};let _0x3cd7bb,_0x15244a;try{global_registry[_0x521c98(0xed)]=_0xed97ea['zxiff'](uuidv4);!fs[_0x521c98(0x1c8)](_0xed97ea[_0x521c98(0x1c0)](getCredentialsPath))&&(_0x15244a=_0xed97ea[_0x521c98(0x14c)],logger[_0x521c98(0xf4)](_0x15244a),await _0xed97ea[_0x521c98(0x194)](reportToGalactusAndSendToEDS,_0xfd4b79,_0x3cd7bb,_0x15244a,messageTypes['ERROR'],_0xed97ea[_0x521c98(0x187)],_0xed97ea['IBoRc'],_0xed97ea[_0x521c98(0x190)]),process[_0x521c98(0x16b)](0x1));_0xed97ea['POTyz'](sendInstrumentationEvent,_0xfd4b79,_0xed97ea[_0x521c98(0x187)],messageTypes[_0x521c98(0x1a0)],null,null,_0xfd4b79);const _0x18e1b1=JSON[_0x521c98(0x11a)](fs['readFileSync'](_0xed97ea[_0x521c98(0x1c0)](getCredentialsPath)));global_registry[_0x521c98(0x10c)]=_0x18e1b1['Browserstack'][_0x521c98(0x1a3)],global_registry[_0x521c98(0xff)]=_0x18e1b1[_0x521c98(0x131)][_0x521c98(0x1b2)];const _0x4e402a=WS_ENDPOINT[_0x521c98(0x144)](_0xed97ea['UpsmL'],_0x18e1b1['Browserstack'][_0x521c98(0x1a3)])['replace'](_0xed97ea[_0x521c98(0x185)],_0x18e1b1[_0x521c98(0x131)]['password']),_0x1bfa1f={};_0x1bfa1f[_0x521c98(0x188)]=ws,_0x1bfa1f[_0x521c98(0x1b3)]=0x36ee80,_0x3cd7bb=new ReconnectingWebSocket(_0x4e402a,[],_0x1bfa1f),global_registry['authHeader']=_0xed97ea[_0x521c98(0x1b5)](getAuthHeader,global_registry[_0x521c98(0x10c)],global_registry[_0x521c98(0xff)]),await _0xed97ea[_0x521c98(0x1b5)](inputValidation,_0xfd4b79,_0x3cd7bb),logger[_0x521c98(0x1be)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0x521c98(0x110)]+_0x521c98(0x100)+global_registry[_0x521c98(0x104)]);let _0x2c0372=await _0xed97ea['zmVEw'](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry['clusterName'],_0xed97ea[_0x521c98(0xfb)],_0x3cd7bb,webSocketUtils,_0xfd4b79);const _0x3326e1=await _0x2c0372[_0x521c98(0xe8)]();_0xed97ea[_0x521c98(0x1b1)](printResponse,_0xed97ea[_0x521c98(0x1ba)],_0x3326e1),_0x2c0372=await _0x2c0372['init']();let _0x4f1d00=![];try{_0x4f1d00=await _0x2c0372[_0x521c98(0xea)]();}catch(_0x543388){const _0xb4dd9=_0xed97ea[_0x521c98(0xdd)][_0x521c98(0xde)]('|');let _0x3755e5=0x0;while(!![]){switch(_0xb4dd9[_0x3755e5++]){case'0':_0x15244a=_0x521c98(0x181)+global_registry[_0x521c98(0xe3)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x521c98(0x104)]+'`\x20,error\x20:\x20'+_0x543388;continue;case'1':await _0xed97ea[_0x521c98(0x19d)](reportToGalactusAndSendToEDS,_0xfd4b79,_0x3cd7bb,_0x15244a,messageTypes[_0x521c98(0x172)],_0xed97ea[_0x521c98(0x187)],_0x521c98(0x126)+global_registry[_0x521c98(0x110)],_0xed97ea['WewId']);continue;case'2':_0x15244a+='\x0a'+JSON[_0x521c98(0x13a)](_0x543388['stack']);continue;case'3':logger[_0x521c98(0xf4)](_0x15244a);continue;case'4':_0x4f1d00=null;continue;}break;}}_0x4f1d00&&logger['info'](_0x521c98(0x106)+global_registry['clusterName']+_0x521c98(0x1bf));const _0x3aeeda=await _0x2c0372['checkAccess']();_0xed97ea[_0x521c98(0x1b5)](printResponse,_0xed97ea['PISYY'],_0x3aeeda);const _0x35e06e=await _0xed97ea[_0x521c98(0x102)](curlRequest);_0xed97ea[_0x521c98(0x1b5)](printResponse,_0xed97ea['lHKlC'],_0x35e06e);const _0x49741f=await _0xed97ea['pUDEj'](isTlsSupported,_0xed97ea[_0x521c98(0x1ca)]);_0xed97ea[_0x521c98(0x1b1)](printResponse,_0xed97ea[_0x521c98(0x108)],_0x49741f);const _0x1e5626={};_0x1e5626[_0x521c98(0x153)]=_0xed97ea[_0x521c98(0x148)],_0x1e5626[_0x521c98(0x112)]=_0x3326e1;const _0x3b75f0={};_0x3b75f0[_0x521c98(0x153)]=_0xed97ea[_0x521c98(0x117)],_0x3b75f0[_0x521c98(0x112)]=_0x3aeeda;const _0x452ee3={};_0x452ee3['header']=_0xed97ea['gtNDb'],_0x452ee3[_0x521c98(0x112)]=_0x35e06e;const _0x5655ca={};_0x5655ca[_0x521c98(0x153)]=_0xed97ea[_0x521c98(0xdf)],_0x5655ca['response']=_0x49741f;const _0x5628be=[_0x1e5626,_0x3b75f0,_0x452ee3,_0x5655ca],_0x18dc09=await _0xed97ea['ZKuSy'](generateReport,_0x5628be,_0x4f1d00),_0x492f55=new Date(),_0x1fb78c=_0x492f55[_0x521c98(0x116)]()+'_'+_0xed97ea['sppHw'](_0x492f55['getUTCMonth'](),0x1)+'_'+_0x492f55[_0x521c98(0x1bc)]()+'_'+_0x492f55['getUTCHours']()+'_'+_0x492f55[_0x521c98(0xdb)](),_0x5953b9='log/report_'+_0x1fb78c+_0x521c98(0xfe);fs[_0x521c98(0x1c1)](_0x5953b9,_0x18dc09,_0xed97ea[_0x521c98(0x154)]),logger[_0x521c98(0x1be)](_0x521c98(0x18e)+_0x5953b9),process[_0x521c98(0x16b)](0x0);}catch(_0x1c7264){let _0x42846a=_0x521c98(0x12a)+_0x1c7264+'\x20';logger['error'](_0x42846a),_0x42846a+='\x0a'+JSON[_0x521c98(0x13a)](_0x1c7264['stack']),logger[_0x521c98(0x17b)](_0x521c98(0x135)+_0x1c7264[_0x521c98(0x111)]);if(_0x3cd7bb){const _0x279ffb={};_0x279ffb['type']=WS_EVENTS[_0x521c98(0x17a)],_0x279ffb['message']=_0x42846a,webSocketUtils[_0x521c98(0x168)](_0x3cd7bb,_0x279ffb,_0xed97ea[_0x521c98(0x190)],!![]);}await webSocketUtils[_0x521c98(0xe0)](0x7d0);const _0x32e842={};_0x32e842[_0x521c98(0xf4)]=_0x42846a,await _0xed97ea[_0x521c98(0x132)](sendInstrumentationEvent,_0xfd4b79,_0xed97ea['VQtfZ'],messageTypes[_0x521c98(0x172)],_0xed97ea['uzPBa'],_0x32e842,_0xfd4b79),process['exit'](0x1);}};
1
+ const a17_0x5e65ac=a17_0x217a;function a17_0x1344(){const _0x34113e=['`\x20already\x20exists','KtjTI','Missing\x20required\x20arguments:\x20','302660tZTANu','sTOhH','tKlXL','MGnGm','header','message','parse','LYRZx','SjCCp','error','htQqS','`\x20,error\x20:\x20','Zpgsw','48sOiwbf','XgYgO','method','data','QCfIa','error\x20stack\x20:\x20','pre_check','push','status','tkkPx','isTls1_2_SUPPORTED','qaJLC','GClxX','Status:\x20','ubdmR','kXeyS','command','utf-8','clusterRegion','\x20\x20Code:\x20','requestId','region','rwELw','usage','../../utils/webSocketUtils','Browserstack','options','HEIym','ScKZi','UlqZQ','lZKPo','uKyTa','CLOUD_PROVIDER','===\x20Precheck\x20Report\x20-\x20','<PasswordPlaceholder>','../../config/constants','unTlq','JqwNR','../../utils/utilityMethods','getUTCMinutes','string','ERhTi','response','dPxXN','OVuzL','SSL\x20Configured','ZTFuO','cluster-check-failed-','getUTCMonth','GiRSb','136388lJAFnR','118143gXllvP','replace','split','throwHttpErrors','User\x20Access','yUemW','stack\x20trace\x20','nrQlj','Pre-check\x20running\x20for\x20Cloud\x20-\x20','cloudProvider','cloud-provider','qPoSR','wEZuA','PsVzx','QasiA','grid','1016092noptIA','uhHtc','delay','getUTCHours','1220118eTMEhC','voeRi',']\x20status\x20:\x20','pre-check-cluster-args-not-passed','QhwkS','exit','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','OUuLL','GeqLi','gpzxx','sendEventToBackend','pre-check-grid-called','../../utils/instrumentationUtils','ZZbnG','getUTCFullYear','VHlSY','connectionTimeout','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','GQZlC','builder','zroYR','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','WaHAJ','.\x20Please\x20provide\x20all\x20required\x20arguments.','debug','unable\x20to\x20verify\x20if\x20cluster\x20`','isCliToolInstalled','WebSocket','username','cGgfS','eejCA','name','log/report_','BSkzG','qrdNW','TXSvy','bstackAccesskey','ixqTw','oKrtu','Cluster\x20details\x0a-----------------------\x0a','MDxSn','AEvMp','Cluster\x20`','Yxqss','RrqhS','stringify','TMSeg','cuxYG','ZWglR','desc','LcCUs','UGXJb','accessResp','hLqkk','UgJLZ','stack','dsYwg','../../cloudproviders/utils','authHeader','Setting\x20cloud\x20provider\x20as\x20','MxdFG','10015ULidit','getUTCDate','EXTYe','CDDde','yADTC','LLbLN','includes','vjoJP','Whitelisted\x20browserstack','argv','BRagE','cSjcR','rxCKT','pre-check-failed','3QwrfLX','Invalid\x20input.\x20grid\x20profiles:\x20','epilogue','dITqF','880EPglWm','dOMRE','yyqgl','gqYHb','\x20\x20Stack:\x20','seQYc','fxlIK','clusterName','epFWF','grid-profile','1739880ImOhKG','bstackUsername','is\x20already\x20present','<UsernamePlaceholder>','pre-check','\x20===\x0a\x0a','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','MLDGb','uoKOU','join','aKSUn','eqnlo','ZEpPj','ezYBt','iZaTV','toolInstalledResp','wjKAI','BcAOj','DxOXm','N/A','PcnyS','pre-check-grid-profile-empty','wFjnF','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','.txt','writeFileSync','CiICt','TMEdm','Message:\x20','will\x20be\x20created','xlLDe','forEach','Success','guZsQ','eWOcF','awcbF','grfnE','TLSv1_2_client_method','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','faDni','ERROR','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Failure','LOG','Cluster\x20','Error\x20Details:\x0a','hawix','help','kWYTM','info','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','OwcJD','toLowerCase','cluster-name','gridProfile','AIAZt','Tdziv','BrOSk','description','type','BwKPp','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','TYBgX','\x20error\x20:\x20','lFJBN','ZxkJT','\x20region\x20-\x20','WqIpu','\x20\x20Message:\x20','Hadro','tEhDx'];a17_0x1344=function(){return _0x34113e;};return a17_0x1344();}(function(_0x39ae5f,_0x344102){const _0x4bf24a=a17_0x217a,_0x2ec4b7=_0x39ae5f();while(!![]){try{const _0x312783=-parseInt(_0x4bf24a(0x1d8))/0x1+parseInt(_0x4bf24a(0x290))/0x2*(-parseInt(_0x4bf24a(0x238))/0x3)+-parseInt(_0x4bf24a(0x23c))/0x4*(-parseInt(_0x4bf24a(0x22a))/0x5)+parseInt(_0x4bf24a(0x1ed))/0x6+-parseInt(_0x4bf24a(0x1e9))/0x7+parseInt(_0x4bf24a(0x29d))/0x8*(-parseInt(_0x4bf24a(0x1d9))/0x9)+parseInt(_0x4bf24a(0x246))/0xa;if(_0x312783===_0x344102)break;else _0x2ec4b7['push'](_0x2ec4b7['shift']());}catch(_0x15c92b){_0x2ec4b7['push'](_0x2ec4b7['shift']());}}}(a17_0x1344,0x4acbd));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x5e65ac(0x1cc)),{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_0x5e65ac(0x1c9)),{getCloudProviderObjectWithOutInit}=require(a17_0x5e65ac(0x226)),webSocketUtils=require(a17_0x5e65ac(0x1be)),{sendInstrumentationEvent}=require(a17_0x5e65ac(0x1f9));exports[a17_0x5e65ac(0x1b6)]=a17_0x5e65ac(0x1e8),exports[a17_0x5e65ac(0x21e)]=a17_0x5e65ac(0x24c),exports[a17_0x5e65ac(0x200)]=function(_0x3b6bfc){const _0x4c20ed=a17_0x5e65ac,_0x97e6e2={};_0x97e6e2[_0x4c20ed(0x213)]=_0x4c20ed(0x1f3),_0x97e6e2[_0x4c20ed(0x292)]=_0x4c20ed(0x1ce),_0x97e6e2['BcAOj']='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x97e6e2[_0x4c20ed(0x2a8)]=_0x4c20ed(0x26f),_0x97e6e2[_0x4c20ed(0x256)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x97e6e2['MGnGm']=_0x4c20ed(0x275);const _0x58e8ae=_0x97e6e2,_0x45db81={};_0x45db81[_0x4c20ed(0x280)]=_0x58e8ae[_0x4c20ed(0x213)],_0x45db81['type']=_0x58e8ae['tKlXL'];const _0x14db19={};_0x14db19['description']=_0x58e8ae[_0x4c20ed(0x257)],_0x14db19['type']=_0x58e8ae[_0x4c20ed(0x292)];const _0x53af3e={};_0x53af3e[_0x4c20ed(0x280)]=_0x58e8ae[_0x4c20ed(0x2a8)],_0x53af3e[_0x4c20ed(0x281)]=_0x58e8ae[_0x4c20ed(0x292)];const _0x40f3d6={};_0x40f3d6[_0x4c20ed(0x280)]=_0x58e8ae[_0x4c20ed(0x256)],_0x40f3d6[_0x4c20ed(0x281)]=_0x58e8ae[_0x4c20ed(0x292)];const _0x5db068={};return _0x5db068[_0x4c20ed(0x27b)]=_0x45db81,_0x5db068[_0x4c20ed(0x1e3)]=_0x14db19,_0x5db068['region']=_0x53af3e,_0x5db068['grid-profile']=_0x40f3d6,_0x3b6bfc[_0x4c20ed(0x1bd)](HELP_HEADER_MESSAGE[_0x4c20ed(0x2a3)])[_0x4c20ed(0x23a)](HELP_FOOTER_MESSAGE)[_0x4c20ed(0x1c0)](_0x5db068)[_0x4c20ed(0x275)](_0x58e8ae[_0x4c20ed(0x293)])[_0x4c20ed(0x233)];};async function inputValidation(_0x2d4718,_0x2ce5b2){const _0x3a5ff2=a17_0x5e65ac,_0x816f1a={'kjjyW':function(_0x2d19ca,_0x41449b){return _0x2d19ca+_0x41449b;},'Zpgsw':_0x3a5ff2(0x266),'lZKPo':_0x3a5ff2(0x270),'iZaTV':function(_0x27f2f6,_0x24c6ea){return _0x27f2f6||_0x24c6ea;},'PsVzx':_0x3a5ff2(0x259),'Hadro':_0x3a5ff2(0x273),'tkkPx':_0x3a5ff2(0x299),'BrOSk':_0x3a5ff2(0x1bb),'sTOhH':'cloud-provider','tyiYK':_0x3a5ff2(0x1f3),'GClxX':_0x3a5ff2(0x1ce),'uvFlb':_0x3a5ff2(0x283),'BwKPp':_0x3a5ff2(0x26f),'SjCCp':_0x3a5ff2(0x202),'Tdziv':_0x3a5ff2(0x275),'nrQlj':_0x3a5ff2(0x27b),'UlqSO':_0x3a5ff2(0x248),'ZxkJT':_0x3a5ff2(0x263),'UcpFd':function(_0x2cfbee,_0x2eda36){return _0x2cfbee!==_0x2eda36;},'xlLDe':_0x3a5ff2(0x274),'uhHtc':function(_0xc5d043,_0x16c276){return _0xc5d043===_0x16c276;},'Yxqss':_0x3a5ff2(0x26a),'LmlDI':_0x3a5ff2(0x297),'UgJLZ':_0x3a5ff2(0x203),'VHlSY':function(_0x19d501,_0x2d1b34){return _0x19d501!==_0x2d1b34;},'hLqkk':'ZjLpf','LLbLN':'nbHYZ','rwELw':_0x3a5ff2(0x25c),'gtEFz':function(_0x5e438b,_0x3091f4){return _0x5e438b>_0x3091f4;},'aKSUn':function(_0x3fc54b,_0x312907){return _0x3fc54b===_0x312907;},'eqnlo':'AlLNy','OwcJD':_0x3a5ff2(0x212),'guZsQ':function(_0x1c648a,_0x5d5394,_0x40bac0,_0x58ca2a,_0x5eb3b1,_0x4a2f33,_0x5195c5,_0x199de3){return _0x1c648a(_0x5d5394,_0x40bac0,_0x58ca2a,_0x5eb3b1,_0x4a2f33,_0x5195c5,_0x199de3);},'faDni':_0x3a5ff2(0x1f8),'uKyTa':_0x3a5ff2(0x1f0),'cGgfS':function(_0x471189,_0x5afdf7){return _0x471189===_0x5afdf7;},'uoKOU':_0x3a5ff2(0x1ff),'GeqLi':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','dITqF':function(_0x5101c6,_0x42cc65,_0x2f3a45,_0x5b7d33,_0x4cb93c,_0x8e4637,_0xce1b62,_0x426dea){return _0x5101c6(_0x42cc65,_0x2f3a45,_0x5b7d33,_0x4cb93c,_0x8e4637,_0xce1b62,_0x426dea);},'KBHod':'cloud-provider-not-supported','TXSvy':_0x3a5ff2(0x242),'xjGWr':'SbuZF','kXeyS':_0x3a5ff2(0x20b),'yADTC':'GET','UlqZQ':function(_0x51cea8,_0x4629e1,_0x4309ab){return _0x51cea8(_0x4629e1,_0x4309ab);},'UGXJb':function(_0x18b4a1,_0x2e904b,_0x5437ac,_0x53e522,_0x4e93b,_0x463697){return _0x18b4a1(_0x2e904b,_0x5437ac,_0x53e522,_0x4e93b,_0x463697);},'MLDGb':_0x3a5ff2(0x24a),'dsYwg':_0x3a5ff2(0x245),'wEZuA':function(_0x2773e3,_0x16b125){return _0x2773e3===_0x16b125;},'CiICt':'MHNOC','gyslQ':_0x3a5ff2(0x1e4),'BRagE':function(_0x4fce8f,_0xfb7df9){return _0x4fce8f(_0xfb7df9);},'ZTFuO':_0x3a5ff2(0x216),'lFJBN':_0x3a5ff2(0x21f),'OVuzL':_0x3a5ff2(0x25b),'RluQp':function(_0xc6c2c9,_0x4985d1){return _0xc6c2c9!==_0x4985d1;},'ERhTi':_0x3a5ff2(0x231),'MxdFG':function(_0x462d33,_0x40fbcf){return _0x462d33===_0x40fbcf;},'DxOXm':_0x3a5ff2(0x284),'htQqS':'DnKLG','UtBLe':'Grid\x20profile\x20fetched\x20for\x20pre-check','cuxYG':_0x3a5ff2(0x252),'QCfIa':_0x3a5ff2(0x26c),'OUuLL':function(_0x2c720b,_0x405008){return _0x2c720b!==_0x405008;},'KtjTI':_0x3a5ff2(0x1f1),'HEIym':'aFJFH'};let _0x4d0db6;try{if(_0x816f1a['UcpFd'](_0x816f1a['xlLDe'],_0x816f1a[_0x3a5ff2(0x264)])){const {header:_0x2fdf56,response:_0xa8d520}=_0x12f676,{status:_0x3693ac,data:_0x3441af,error:_0x2b7110}=_0xa8d520;_0x3a248e+=_0x2fdf56+'\x20#'+_0x816f1a['kjjyW'](_0x3cf6c6,0x1)+'\x0a',_0x2a57d4+=_0x3a5ff2(0x2aa)+(_0x3693ac?_0x816f1a[_0x3a5ff2(0x29c)]:_0x816f1a[_0x3a5ff2(0x1c4)])+'\x0a',_0x493d57+=_0x3a5ff2(0x262)+_0x816f1a[_0x3a5ff2(0x254)](_0x3441af,_0x816f1a[_0x3a5ff2(0x1e6)])+'\x0a',_0x2b7110&&(_0x32c09f+=_0x816f1a['Hadro'],_0x3c1796+=_0x3a5ff2(0x28a)+(_0x2b7110[_0x3a5ff2(0x295)]||_0x816f1a[_0x3a5ff2(0x1e6)])+'\x0a',_0x142adf+=_0x3a5ff2(0x1b9)+(_0x2b7110['code']||_0x816f1a[_0x3a5ff2(0x1e6)])+'\x0a',_0x56ea63+=_0x3a5ff2(0x240)+(_0x2b7110[_0x3a5ff2(0x224)]||_0x816f1a[_0x3a5ff2(0x1e6)])+'\x0a'),_0x2b2ad5+='\x0a\x0a';}else{if(_0x2d4718[_0x3a5ff2(0x243)]||_0x2d4718[_0x3a5ff2(0x1e2)]||_0x2d4718[_0x3a5ff2(0x1bb)]){if(_0x816f1a[_0x3a5ff2(0x1ea)](_0x816f1a[_0x3a5ff2(0x218)],_0x816f1a['LmlDI'])){const _0x4ee45a={};_0x4ee45a[_0x3a5ff2(0x281)]=_0x2a022f[_0x3a5ff2(0x271)],_0x4ee45a['message']=_0x2ae103,_0x5b1bb2['sendEventToBackend'](_0x31a36d,_0x4ee45a,_0x816f1a[_0x3a5ff2(0x2a6)],!![]);}else{const _0x244158=[];!_0x2d4718['clusterName']&&(_0x816f1a[_0x3a5ff2(0x1ea)](_0x816f1a['UgJLZ'],_0x816f1a[_0x3a5ff2(0x223)])?_0x244158[_0x3a5ff2(0x2a4)](_0x816f1a[_0x3a5ff2(0x1e0)]):_0x38771f=_0x9229bc);;!_0x2d4718[_0x3a5ff2(0x1e2)]&&(_0x816f1a[_0x3a5ff2(0x1fc)](_0x816f1a[_0x3a5ff2(0x222)],_0x816f1a['hLqkk'])?_0x218465[_0x3a5ff2(0x2a4)](_0x816f1a[_0x3a5ff2(0x27f)]):_0x244158[_0x3a5ff2(0x2a4)](_0x816f1a[_0x3a5ff2(0x291)]));;!_0x2d4718[_0x3a5ff2(0x1bb)]&&(_0x816f1a[_0x3a5ff2(0x1fc)](_0x816f1a[_0x3a5ff2(0x22f)],_0x816f1a[_0x3a5ff2(0x1bc)])?_0x244158[_0x3a5ff2(0x2a4)](_0x816f1a['BrOSk']):(_0xfd5c80+=_0x816f1a[_0x3a5ff2(0x28b)],_0x2d8342+=_0x3a5ff2(0x28a)+(_0x4ad143['message']||_0x816f1a[_0x3a5ff2(0x1e6)])+'\x0a',_0x3d7302+=_0x3a5ff2(0x1b9)+(_0x4c8057['code']||_0x816f1a[_0x3a5ff2(0x1e6)])+'\x0a',_0x1fc2b3+='\x20\x20Stack:\x20'+(_0x4bef2f[_0x3a5ff2(0x224)]||_0x816f1a[_0x3a5ff2(0x1e6)])+'\x0a'));;_0x816f1a['gtEFz'](_0x244158['length'],0x0)&&(_0x816f1a[_0x3a5ff2(0x250)](_0x816f1a[_0x3a5ff2(0x251)],_0x816f1a[_0x3a5ff2(0x279)])?_0x75aca6+=_0x3a5ff2(0x272)+_0x23195b[_0x3a5ff2(0x243)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':(_0x4d0db6=_0x3a5ff2(0x28f)+_0x244158[_0x3a5ff2(0x24f)](',\x20')+_0x3a5ff2(0x204),await _0x816f1a[_0x3a5ff2(0x267)](reportToGalactusAndSendToEDS,_0x2d4718,_0x2ce5b2,_0x4d0db6,messageTypes[_0x3a5ff2(0x26e)],_0x816f1a['faDni'],_0x816f1a[_0x3a5ff2(0x1c5)],_0x816f1a[_0x3a5ff2(0x2a6)]),logger[_0x3a5ff2(0x299)](_0x4d0db6),process[_0x3a5ff2(0x1f2)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x3a5ff2(0x230)](_0x2d4718[_0x3a5ff2(0x1e2)][_0x3a5ff2(0x27a)]())&&(_0x816f1a[_0x3a5ff2(0x20a)](_0x816f1a[_0x3a5ff2(0x24e)],_0x816f1a[_0x3a5ff2(0x24e)])?(_0x4d0db6=_0x816f1a[_0x3a5ff2(0x1f5)],await _0x816f1a[_0x3a5ff2(0x23b)](reportToGalactusAndSendToEDS,_0x2d4718,_0x2ce5b2,_0x4d0db6,messageTypes[_0x3a5ff2(0x26e)],_0x816f1a['faDni'],_0x816f1a['KBHod'],_0x816f1a[_0x3a5ff2(0x2a6)]),logger[_0x3a5ff2(0x299)](_0x4d0db6),!_0x2d4718[_0x3a5ff2(0x1e2)]&&(_0x816f1a['aKSUn'](_0x816f1a['TXSvy'],_0x816f1a[_0x3a5ff2(0x210)])?(logger[_0x3a5ff2(0x277)](_0x3a5ff2(0x228)+DEFAULT_CLUSTER_DETAILS[_0x3a5ff2(0x1c6)]+'\x20'),_0x2d4718[_0x3a5ff2(0x1e2)]=DEFAULT_CLUSTER_DETAILS[_0x3a5ff2(0x1c6)]):_0x315ea3[_0x3a5ff2(0x299)](_0x3a5ff2(0x2a2)+_0x23ea9a[_0x3a5ff2(0x299)]['stack']))):_0x507747[_0x3a5ff2(0x2a4)](_0x816f1a[_0x3a5ff2(0x291)])),global_registry[_0x3a5ff2(0x243)]=_0x2d4718['clusterName'],global_registry[_0x3a5ff2(0x1e2)]=_0x2d4718[_0x3a5ff2(0x1e2)],global_registry['clusterRegion']=_0x2d4718[_0x3a5ff2(0x1bb)];}}else{if(_0x2d4718[_0x3a5ff2(0x27c)]){if(_0x816f1a[_0x3a5ff2(0x1fc)](_0x816f1a['xjGWr'],_0x816f1a[_0x3a5ff2(0x1b5)])){global_registry[_0x3a5ff2(0x27c)]=_0x2d4718[_0x3a5ff2(0x27c)],logger[_0x3a5ff2(0x205)]('grid\x20profile\x20flow\x20'+_0x2d4718[_0x3a5ff2(0x27c)]);const _0x2d7a3d='https://'+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x49a428={};_0x49a428[_0x3a5ff2(0x29f)]=_0x816f1a[_0x3a5ff2(0x22e)],_0x49a428['headers']=global_registry[_0x3a5ff2(0x227)],_0x49a428[_0x3a5ff2(0x1dc)]=![];const _0x621fea=_0x49a428,_0x28ca36=await _0x816f1a[_0x3a5ff2(0x1c3)](got,_0x2d7a3d,_0x621fea),_0x3a2d49=await _0x816f1a[_0x3a5ff2(0x220)](responseValidation,_0x28ca36,_0x816f1a[_0x3a5ff2(0x24d)],_0x816f1a[_0x3a5ff2(0x225)],_0x2d4718,_0x2ce5b2);let _0x1bebbd={};if(_0x816f1a[_0x3a5ff2(0x1e5)](_0x3a2d49,0xc8)){if(_0x816f1a[_0x3a5ff2(0x1fc)](_0x816f1a[_0x3a5ff2(0x260)],_0x816f1a['gyslQ'])){const _0x2df260=JSON[_0x3a5ff2(0x296)](_0x28ca36['body']),_0x864715=_0x2df260['find'](_0xeae36c=>_0xeae36c[_0x3a5ff2(0x20c)]===_0x2d4718['gridProfile'])||null;if(_0x816f1a[_0x3a5ff2(0x234)](isUndefined,_0x864715)){if(_0x816f1a['aKSUn'](_0x816f1a[_0x3a5ff2(0x1d4)],_0x816f1a[_0x3a5ff2(0x286)])){const _0x218d98={};_0x218d98['description']=_0x816f1a['tyiYK'],_0x218d98[_0x3a5ff2(0x281)]=_0x816f1a['GClxX'];const _0x1da575={};_0x1da575[_0x3a5ff2(0x280)]=_0x816f1a['uvFlb'],_0x1da575[_0x3a5ff2(0x281)]=_0x816f1a[_0x3a5ff2(0x2a9)];const _0x215425={};_0x215425[_0x3a5ff2(0x280)]=_0x816f1a[_0x3a5ff2(0x282)],_0x215425['type']=_0x816f1a[_0x3a5ff2(0x2a9)];const _0x5b8258={};_0x5b8258['description']=_0x816f1a[_0x3a5ff2(0x298)],_0x5b8258[_0x3a5ff2(0x281)]=_0x816f1a[_0x3a5ff2(0x2a9)];const _0x9018e6={};return _0x9018e6['cluster-name']=_0x218d98,_0x9018e6[_0x3a5ff2(0x1e3)]=_0x1da575,_0x9018e6[_0x3a5ff2(0x1bb)]=_0x215425,_0x9018e6[_0x3a5ff2(0x245)]=_0x5b8258,_0x93d759['usage'](_0x59c3c4[_0x3a5ff2(0x2a3)])[_0x3a5ff2(0x23a)](_0x44abee)['options'](_0x9018e6)[_0x3a5ff2(0x275)](_0x816f1a[_0x3a5ff2(0x27e)])[_0x3a5ff2(0x233)];}else _0x4d0db6=_0x3a5ff2(0x239)+_0x2d4718[_0x3a5ff2(0x27c)]+_0x3a5ff2(0x1fe),await _0x816f1a[_0x3a5ff2(0x267)](reportToGalactusAndSendToEDS,_0x2d4718,_0x2ce5b2,_0x4d0db6,messageTypes[_0x3a5ff2(0x26e)],_0x816f1a[_0x3a5ff2(0x26d)],_0x816f1a[_0x3a5ff2(0x1d2)],_0x816f1a['tkkPx']),logger[_0x3a5ff2(0x299)](_0x4d0db6),process[_0x3a5ff2(0x1f2)](0x1);}else _0x816f1a['RluQp'](_0x816f1a[_0x3a5ff2(0x1cf)],_0x816f1a[_0x3a5ff2(0x1cf)])?_0x32b9b3[_0x3a5ff2(0x277)](_0x3a5ff2(0x217)+_0x403642['clusterName']+_0x3a5ff2(0x28d)):_0x1bebbd=_0x864715;}else _0x42ecd7[_0x3a5ff2(0x1f2)](0x1);}else _0x816f1a[_0x3a5ff2(0x229)](_0x816f1a[_0x3a5ff2(0x258)],_0x816f1a[_0x3a5ff2(0x29a)])?_0x2a8e46[_0x3a5ff2(0x2a4)](_0x816f1a['nrQlj']):process[_0x3a5ff2(0x1f2)](0x1);const _0x1fa9b9={};_0x1fa9b9[_0x3a5ff2(0x281)]=WS_EVENTS[_0x3a5ff2(0x271)],_0x1fa9b9[_0x3a5ff2(0x295)]=_0x816f1a['UtBLe'],webSocketUtils[_0x3a5ff2(0x1f7)](_0x2ce5b2,_0x1fa9b9),global_registry['cloudProvider']=_0x1bebbd[_0x3a5ff2(0x1e2)],global_registry['clusterRegion']=_0x1bebbd[_0x3a5ff2(0x1bb)],global_registry[_0x3a5ff2(0x243)]=_0x1bebbd[_0x3a5ff2(0x243)];}else _0x259b98+=_0x3a5ff2(0x272)+_0x3588fa[_0x3a5ff2(0x243)]+'\x20'+(_0x9eed45?_0x816f1a['UlqSO']:_0x816f1a[_0x3a5ff2(0x287)])+'\x0a\x0a';}else _0x816f1a[_0x3a5ff2(0x1fc)](_0x816f1a[_0x3a5ff2(0x21c)],_0x816f1a[_0x3a5ff2(0x21c)])?(_0x23ef5d[_0x3a5ff2(0x277)](_0x3a5ff2(0x228)+_0x3a453b[_0x3a5ff2(0x1c6)]+'\x20'),_0x418d30[_0x3a5ff2(0x1e2)]=_0x26ad35[_0x3a5ff2(0x1c6)]):(logger[_0x3a5ff2(0x299)](_0x816f1a[_0x3a5ff2(0x2a1)]),process[_0x3a5ff2(0x1f2)](0x1));}}}catch(_0x13a8f4){_0x816f1a[_0x3a5ff2(0x1f4)](_0x816f1a[_0x3a5ff2(0x28e)],_0x816f1a[_0x3a5ff2(0x1c1)])?(_0x4d0db6=_0x3a5ff2(0x25d)+_0x13a8f4+':\x20'+_0x13a8f4['stack'],logger[_0x3a5ff2(0x299)](_0x4d0db6),await _0x816f1a[_0x3a5ff2(0x23b)](reportToGalactusAndSendToEDS,_0x2d4718,_0x2ce5b2,_0x4d0db6,messageTypes[_0x3a5ff2(0x26e)],_0x816f1a[_0x3a5ff2(0x26d)],_0x816f1a['KBHod'],_0x816f1a[_0x3a5ff2(0x2a6)]),process[_0x3a5ff2(0x1f2)](0x1)):(_0x525c17[_0x3a5ff2(0x277)]('['+_0x30a1ad+_0x3a5ff2(0x1ef)+_0xb18289[_0x3a5ff2(0x2a5)]+'\x20data\x20:\x20'+_0x30dbf9[_0x3a5ff2(0x2a0)]+_0x3a5ff2(0x285)+_0x7109b6[_0x3a5ff2(0x299)]),_0x29cdb7[_0x3a5ff2(0x299)]&&_0x7aafcb[_0x3a5ff2(0x299)](_0x3a5ff2(0x2a2)+_0x3911eb[_0x3a5ff2(0x299)][_0x3a5ff2(0x224)]));}}function printResponse(_0x3a992c,_0x4a43d2){const _0x5dc93d=a17_0x5e65ac,_0x4581c2={};_0x4581c2[_0x5dc93d(0x28c)]=_0x5dc93d(0x26c),_0x4581c2['BYjUF']=function(_0x4bbe5e,_0x4d66ef){return _0x4bbe5e===_0x4d66ef;},_0x4581c2['qrdNW']=_0x5dc93d(0x22c);const _0x485459=_0x4581c2;logger[_0x5dc93d(0x277)]('['+_0x3a992c+_0x5dc93d(0x1ef)+_0x4a43d2[_0x5dc93d(0x2a5)]+'\x20data\x20:\x20'+_0x4a43d2['data']+_0x5dc93d(0x285)+_0x4a43d2[_0x5dc93d(0x299)]),_0x4a43d2['error']&&(_0x485459['BYjUF'](_0x485459[_0x5dc93d(0x20f)],_0x485459[_0x5dc93d(0x20f)])?logger[_0x5dc93d(0x299)]('error\x20stack\x20:\x20'+_0x4a43d2['error'][_0x5dc93d(0x224)]):(_0x43dc62[_0x5dc93d(0x299)](_0x485459['tEhDx']),_0x5fa6fe[_0x5dc93d(0x1f2)](0x1)));}function a17_0x217a(_0x93bb1e,_0x5a2aad){const _0x13449b=a17_0x1344();return a17_0x217a=function(_0x217a9e,_0x52b31f){_0x217a9e=_0x217a9e-0x1b4;let _0x5d6238=_0x13449b[_0x217a9e];return _0x5d6238;},a17_0x217a(_0x93bb1e,_0x5a2aad);}async function generateReport(_0xf155fa,_0x180021){const _0x4d78c8=a17_0x5e65ac,_0x2a7672={'cSjcR':function(_0x1cdbd,_0x4c67a6){return _0x1cdbd+_0x4c67a6;},'voeRi':_0x4d78c8(0x266),'tettY':_0x4d78c8(0x270),'dOMRE':function(_0x4a90da,_0x24cf3a){return _0x4a90da||_0x24cf3a;},'MDxSn':_0x4d78c8(0x259),'gpzxx':_0x4d78c8(0x273),'ScKZi':_0x4d78c8(0x214),'itiDI':function(_0x5b5185,_0xb359c6){return _0x5b5185!=_0xb359c6;},'BSkzG':'is\x20already\x20present','ptgkT':_0x4d78c8(0x263),'yUemW':function(_0x9aab2a){return _0x9aab2a();}};let _0x57f120=_0x4d78c8(0x1c7)+global_registry['cloudProvider']+_0x4d78c8(0x24b);return _0xf155fa[_0x4d78c8(0x265)]((_0x1d76b0,_0x54ebd5)=>{const _0x4c2808=_0x4d78c8,{header:_0x1e9b85,response:_0x7d4cc7}=_0x1d76b0,{status:_0x1eb3ae,data:_0x181e06,error:_0x10261a}=_0x7d4cc7;_0x57f120+=_0x1e9b85+'\x20#'+_0x2a7672[_0x4c2808(0x235)](_0x54ebd5,0x1)+'\x0a',_0x57f120+=_0x4c2808(0x2aa)+(_0x1eb3ae?_0x2a7672[_0x4c2808(0x1ee)]:_0x2a7672['tettY'])+'\x0a',_0x57f120+=_0x4c2808(0x262)+_0x2a7672[_0x4c2808(0x23d)](_0x181e06,_0x2a7672[_0x4c2808(0x215)])+'\x0a',_0x10261a&&(_0x57f120+=_0x2a7672[_0x4c2808(0x1f6)],_0x57f120+=_0x4c2808(0x28a)+(_0x10261a[_0x4c2808(0x295)]||_0x2a7672['MDxSn'])+'\x0a',_0x57f120+=_0x4c2808(0x1b9)+(_0x10261a['code']||_0x2a7672[_0x4c2808(0x215)])+'\x0a',_0x57f120+=_0x4c2808(0x240)+(_0x10261a[_0x4c2808(0x224)]||_0x2a7672[_0x4c2808(0x215)])+'\x0a'),_0x57f120+='\x0a\x0a';}),_0x57f120+=_0x2a7672[_0x4d78c8(0x1c2)],_0x2a7672['itiDI'](_0x180021,null)?_0x57f120+=_0x4d78c8(0x272)+global_registry[_0x4d78c8(0x243)]+'\x20'+(_0x180021?_0x2a7672[_0x4d78c8(0x20e)]:_0x2a7672['ptgkT'])+'\x0a\x0a':_0x57f120+=_0x4d78c8(0x272)+global_registry[_0x4d78c8(0x243)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x57f120+=_0x2a7672[_0x4d78c8(0x1de)](getSystemMetaData),_0x57f120;};exports['handler']=async function(_0x4d71dd){const _0x73e54a=a17_0x5e65ac,_0x12ccb1={'epFWF':function(_0x523471){return _0x523471();},'GiRSb':function(_0x529ad2){return _0x529ad2();},'TMSeg':_0x73e54a(0x278),'yyqgl':function(_0x15df3e,_0x2621a7,_0x3ff9a2,_0x2cbb82,_0x276767,_0x3a3073,_0x1a1d67,_0x32fe3c){return _0x15df3e(_0x2621a7,_0x3ff9a2,_0x2cbb82,_0x276767,_0x3a3073,_0x1a1d67,_0x32fe3c);},'CDDde':_0x73e54a(0x1f8),'ZWglR':'credential-not-found','awcbF':_0x73e54a(0x299),'mfOZK':function(_0x5499b1,_0x528697,_0x533922,_0x1b1bdc,_0x11db58,_0x18fa63,_0x339af5){return _0x5499b1(_0x528697,_0x533922,_0x1b1bdc,_0x11db58,_0x18fa63,_0x339af5);},'rxCKT':function(_0x4409e3){return _0x4409e3();},'unTlq':_0x73e54a(0x249),'XgYgO':_0x73e54a(0x1c8),'RrqhS':function(_0x2b2415,_0x4e2b91,_0x3fa53f){return _0x2b2415(_0x4e2b91,_0x3fa53f);},'dPxXN':'dummy-grid','QasiA':function(_0x465c89,_0x3a6a8b,_0x55c8b0){return _0x465c89(_0x3a6a8b,_0x55c8b0);},'kWYTM':_0x73e54a(0x255),'ZZbnG':'3|4|1|2|0','JqwNR':function(_0xbb12da,_0x53c901,_0x40b7a6,_0xa58dd4,_0x39f92a,_0x204e6c,_0x2387e1,_0x43bce4){return _0xbb12da(_0x53c901,_0x40b7a6,_0xa58dd4,_0x39f92a,_0x204e6c,_0x2387e1,_0x43bce4);},'TMEdm':_0x73e54a(0x221),'KMAnw':function(_0x30e4d7,_0x315b03,_0x2c04a9){return _0x30e4d7(_0x315b03,_0x2c04a9);},'seQYc':'isTrialGridAccessible','AIAZt':function(_0x27fed6,_0x1d5b9b){return _0x27fed6(_0x1d5b9b);},'zroYR':_0x73e54a(0x26b),'YsXWG':_0x73e54a(0x2a7),'eWOcF':'Tool\x20Installed','ZMVxR':_0x73e54a(0x1dd),'XoufC':_0x73e54a(0x232),'paXff':_0x73e54a(0x1d3),'WqIpu':function(_0x3b444c,_0x19a0bc,_0x53ab4d){return _0x3b444c(_0x19a0bc,_0x53ab4d);},'gqYHb':function(_0x9cd15b,_0x757580){return _0x9cd15b+_0x757580;},'PcnyS':_0x73e54a(0x1b7),'ubdmR':function(_0x2e8201,_0x39f723,_0x173aef,_0x44136a,_0x58d017,_0x227d7e,_0x10add4){return _0x2e8201(_0x39f723,_0x173aef,_0x44136a,_0x58d017,_0x227d7e,_0x10add4);},'ezYBt':_0x73e54a(0x237)};let _0x31a73,_0x41b428;try{global_registry[_0x73e54a(0x1ba)]=_0x12ccb1[_0x73e54a(0x244)](uuidv4);!fs['existsSync'](_0x12ccb1[_0x73e54a(0x1d7)](getCredentialsPath))&&(_0x41b428=_0x12ccb1[_0x73e54a(0x21b)],logger['error'](_0x41b428),await _0x12ccb1[_0x73e54a(0x23e)](reportToGalactusAndSendToEDS,_0x4d71dd,_0x31a73,_0x41b428,messageTypes['ERROR'],_0x12ccb1[_0x73e54a(0x22d)],_0x12ccb1[_0x73e54a(0x21d)],_0x12ccb1[_0x73e54a(0x269)]),process[_0x73e54a(0x1f2)](0x1));_0x12ccb1['mfOZK'](sendInstrumentationEvent,_0x4d71dd,_0x12ccb1[_0x73e54a(0x22d)],messageTypes['INFO'],null,null,_0x4d71dd);const _0x50ee86=JSON[_0x73e54a(0x296)](fs['readFileSync'](_0x12ccb1[_0x73e54a(0x236)](getCredentialsPath)));global_registry[_0x73e54a(0x247)]=_0x50ee86[_0x73e54a(0x1bf)][_0x73e54a(0x209)],global_registry[_0x73e54a(0x211)]=_0x50ee86['Browserstack']['password'];const _0xe42b16=WS_ENDPOINT['replace'](_0x12ccb1[_0x73e54a(0x1ca)],_0x50ee86['Browserstack'][_0x73e54a(0x209)])[_0x73e54a(0x1da)](_0x12ccb1[_0x73e54a(0x29e)],_0x50ee86[_0x73e54a(0x1bf)]['password']),_0x5ab74d={};_0x5ab74d[_0x73e54a(0x208)]=ws,_0x5ab74d[_0x73e54a(0x1fd)]=0x36ee80,_0x31a73=new ReconnectingWebSocket(_0xe42b16,[],_0x5ab74d),global_registry['authHeader']=_0x12ccb1[_0x73e54a(0x219)](getAuthHeader,global_registry[_0x73e54a(0x247)],global_registry[_0x73e54a(0x211)]),await _0x12ccb1[_0x73e54a(0x219)](inputValidation,_0x4d71dd,_0x31a73),logger[_0x73e54a(0x277)](_0x73e54a(0x1e1)+global_registry[_0x73e54a(0x1e2)]+_0x73e54a(0x288)+global_registry[_0x73e54a(0x1b8)]);let _0x3cb596=await _0x12ccb1['mfOZK'](getCloudProviderObjectWithOutInit,global_registry[_0x73e54a(0x1e2)],global_registry[_0x73e54a(0x243)],_0x12ccb1[_0x73e54a(0x1d1)],_0x31a73,webSocketUtils,_0x4d71dd);const _0x3149f0=await _0x3cb596[_0x73e54a(0x207)]();_0x12ccb1[_0x73e54a(0x1e7)](printResponse,_0x12ccb1[_0x73e54a(0x276)],_0x3149f0),_0x3cb596=await _0x3cb596['init']();let _0x4fd690=![];try{_0x4fd690=await _0x3cb596['isClusterPresent']();}catch(_0x4ece4f){const _0x3f6643=_0x12ccb1[_0x73e54a(0x1fa)][_0x73e54a(0x1db)]('|');let _0xb9c4fd=0x0;while(!![]){switch(_0x3f6643[_0xb9c4fd++]){case'0':await _0x12ccb1[_0x73e54a(0x1cb)](reportToGalactusAndSendToEDS,_0x4d71dd,_0x31a73,_0x41b428,messageTypes[_0x73e54a(0x26e)],_0x12ccb1[_0x73e54a(0x22d)],_0x73e54a(0x1d5)+global_registry[_0x73e54a(0x1e2)],_0x12ccb1['awcbF']);continue;case'1':logger[_0x73e54a(0x299)](_0x41b428);continue;case'2':_0x41b428+='\x0a'+JSON['stringify'](_0x4ece4f[_0x73e54a(0x224)]);continue;case'3':_0x41b428=_0x73e54a(0x206)+global_registry['clusterName']+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x73e54a(0x1b8)]+_0x73e54a(0x29b)+_0x4ece4f;continue;case'4':_0x4fd690=null;continue;}break;}}_0x4fd690&&logger[_0x73e54a(0x277)]('Cluster\x20`'+global_registry[_0x73e54a(0x243)]+_0x73e54a(0x28d));const _0x2b4508=await _0x3cb596['checkAccess']();_0x12ccb1[_0x73e54a(0x219)](printResponse,_0x12ccb1[_0x73e54a(0x261)],_0x2b4508);const _0x3f948f=await _0x12ccb1['epFWF'](curlRequest);_0x12ccb1['KMAnw'](printResponse,_0x12ccb1[_0x73e54a(0x241)],_0x3f948f);const _0x56ab54=await _0x12ccb1[_0x73e54a(0x27d)](isTlsSupported,_0x12ccb1[_0x73e54a(0x201)]);_0x12ccb1[_0x73e54a(0x219)](printResponse,_0x12ccb1['YsXWG'],_0x56ab54);const _0x567579={};_0x567579['header']=_0x12ccb1[_0x73e54a(0x268)],_0x567579[_0x73e54a(0x1d0)]=_0x3149f0;const _0x3cd257={};_0x3cd257['header']=_0x12ccb1['ZMVxR'],_0x3cd257[_0x73e54a(0x1d0)]=_0x2b4508;const _0x377397={};_0x377397[_0x73e54a(0x294)]=_0x12ccb1['XoufC'],_0x377397[_0x73e54a(0x1d0)]=_0x3f948f;const _0xc1673e={};_0xc1673e[_0x73e54a(0x294)]=_0x12ccb1['paXff'],_0xc1673e['response']=_0x56ab54;const _0x31550a=[_0x567579,_0x3cd257,_0x377397,_0xc1673e],_0xedaf9a=await _0x12ccb1[_0x73e54a(0x289)](generateReport,_0x31550a,_0x4fd690),_0xd2a7fd=new Date(),_0x4c1108=_0xd2a7fd[_0x73e54a(0x1fb)]()+'_'+_0x12ccb1[_0x73e54a(0x23f)](_0xd2a7fd[_0x73e54a(0x1d6)](),0x1)+'_'+_0xd2a7fd[_0x73e54a(0x22b)]()+'_'+_0xd2a7fd[_0x73e54a(0x1ec)]()+'_'+_0xd2a7fd[_0x73e54a(0x1cd)](),_0xc3ba3b=_0x73e54a(0x20d)+_0x4c1108+_0x73e54a(0x25e);fs[_0x73e54a(0x25f)](_0xc3ba3b,_0xedaf9a,_0x12ccb1[_0x73e54a(0x25a)]),logger[_0x73e54a(0x277)]('Report\x20saved\x20in\x20'+_0xc3ba3b),process[_0x73e54a(0x1f2)](0x0);}catch(_0x1cc134){let _0x5dff24='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x1cc134+'\x20';logger['error'](_0x5dff24),_0x5dff24+='\x0a'+JSON[_0x73e54a(0x21a)](_0x1cc134['stack']),logger[_0x73e54a(0x205)](_0x73e54a(0x1df)+_0x1cc134['stack']);if(_0x31a73){const _0x11e256={};_0x11e256[_0x73e54a(0x281)]=WS_EVENTS['LOG'],_0x11e256[_0x73e54a(0x295)]=_0x5dff24,webSocketUtils['sendEventToBackend'](_0x31a73,_0x11e256,_0x12ccb1[_0x73e54a(0x269)],!![]);}await webSocketUtils[_0x73e54a(0x1eb)](0x7d0);const _0x13dee5={};_0x13dee5[_0x73e54a(0x299)]=_0x5dff24,await _0x12ccb1[_0x73e54a(0x1b4)](sendInstrumentationEvent,_0x4d71dd,_0x12ccb1[_0x73e54a(0x22d)],messageTypes[_0x73e54a(0x26e)],_0x12ccb1[_0x73e54a(0x253)],_0x13dee5,_0x4d71dd),process[_0x73e54a(0x1f2)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x3726cd=a18_0x47a1;(function(_0x51c5cf,_0xe4170e){const _0x233a19=a18_0x47a1,_0x1790b9=_0x51c5cf();while(!![]){try{const _0x1f6458=parseInt(_0x233a19(0x16e))/0x1*(-parseInt(_0x233a19(0x165))/0x2)+-parseInt(_0x233a19(0x177))/0x3*(-parseInt(_0x233a19(0x176))/0x4)+-parseInt(_0x233a19(0x169))/0x5+-parseInt(_0x233a19(0x175))/0x6+parseInt(_0x233a19(0x16f))/0x7*(-parseInt(_0x233a19(0x166))/0x8)+-parseInt(_0x233a19(0x172))/0x9*(-parseInt(_0x233a19(0x16b))/0xa)+-parseInt(_0x233a19(0x16c))/0xb*(-parseInt(_0x233a19(0x171))/0xc);if(_0x1f6458===_0xe4170e)break;else _0x1790b9['push'](_0x1790b9['shift']());}catch(_0x1f37cc){_0x1790b9['push'](_0x1790b9['shift']());}}}(a18_0x1190,0xc5047));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x3726cd(0x174));function a18_0x47a1(_0x53430e,_0x4be62e){const _0x1190bd=a18_0x1190();return a18_0x47a1=function(_0x47a13c,_0x42a56c){_0x47a13c=_0x47a13c-0x163;let _0x133fce=_0x1190bd[_0x47a13c];return _0x133fce;},a18_0x47a1(_0x53430e,_0x4be62e);}exports[a18_0x3726cd(0x17a)]='start',exports['desc']=a18_0x3726cd(0x173),exports[a18_0x3726cd(0x164)]=function(_0x336b2b){const _0x17b2c4=a18_0x3726cd,_0x587a69={};_0x587a69[_0x17b2c4(0x16d)]=_0x17b2c4(0x16a),_0x587a69['UxCou']=_0x17b2c4(0x163);const _0x2ba671=_0x587a69;return _0x336b2b['usage'](HELP_HEADER_MESSAGE['start'])[_0x17b2c4(0x167)](HELP_FOOTER_MESSAGE)[_0x17b2c4(0x179)](_0x2ba671[_0x17b2c4(0x16d)])[_0x17b2c4(0x170)]()['recommendCommands']()['strict']()[_0x17b2c4(0x163)](_0x2ba671[_0x17b2c4(0x178)]);},exports[a18_0x3726cd(0x168)]=function(_0x564b89){};function a18_0x1190(){const _0x11f426=['start_commands','417590CGXDvc','32743227cDjBIZ','dleAs','43577IBqWYc','33656KYTtmp','demandCommand','12hFpSfT','117HznOus','Start\x20an\x20existing\x20Automation\x20grid.','../config/constants','5513124NasPBv','4GTtArR','1227864OhPrOH','UxCou','commandDir','command','help','builder','4ZZZwRJ','1472HWGZDE','epilogue','handler','6155745anEgbu'];a18_0x1190=function(){return _0x11f426;};return a18_0x1190();}
1
+ const a18_0x1a3cb2=a18_0x3671;function a18_0x3671(_0x43f4d8,_0x25b9e3){const _0xadba30=a18_0xadba();return a18_0x3671=function(_0x36711c,_0x47d501){_0x36711c=_0x36711c-0x12b;let _0x58f467=_0xadba30[_0x36711c];return _0x58f467;},a18_0x3671(_0x43f4d8,_0x25b9e3);}function a18_0xadba(){const _0x27cfa7=['desc','usage','1092UnLeFH','start_commands','start','5047124jnyqPu','9474344oTWrqR','OBswb','18190mHALyM','command','3NICQMi','eEKRi','demandCommand','strict','help','../config/constants','1047348cKZzYC','1669820NPVVFu','epilogue','3412584tXCMiY','3743124EaJzsO'];a18_0xadba=function(){return _0x27cfa7;};return a18_0xadba();}(function(_0x406a1e,_0x1ddc55){const _0xff9e4c=a18_0x3671,_0x951cf2=_0x406a1e();while(!![]){try{const _0x129200=-parseInt(_0xff9e4c(0x13f))/0x1+parseInt(_0xff9e4c(0x12b))/0x2+parseInt(_0xff9e4c(0x139))/0x3*(parseInt(_0xff9e4c(0x134))/0x4)+-parseInt(_0xff9e4c(0x137))/0x5*(parseInt(_0xff9e4c(0x131))/0x6)+-parseInt(_0xff9e4c(0x12e))/0x7+parseInt(_0xff9e4c(0x135))/0x8+-parseInt(_0xff9e4c(0x12d))/0x9;if(_0x129200===_0x1ddc55)break;else _0x951cf2['push'](_0x951cf2['shift']());}catch(_0x727226){_0x951cf2['push'](_0x951cf2['shift']());}}}(a18_0xadba,0xa08cc));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x1a3cb2(0x13e));exports[a18_0x1a3cb2(0x138)]=a18_0x1a3cb2(0x133),exports[a18_0x1a3cb2(0x12f)]='Start\x20an\x20existing\x20Automation\x20grid.',exports['builder']=function(_0x44ef2c){const _0x2f3c5d=a18_0x1a3cb2,_0x2adc7f={};_0x2adc7f[_0x2f3c5d(0x136)]=_0x2f3c5d(0x132),_0x2adc7f[_0x2f3c5d(0x13a)]=_0x2f3c5d(0x13d);const _0x542b50=_0x2adc7f;return _0x44ef2c[_0x2f3c5d(0x130)](HELP_HEADER_MESSAGE[_0x2f3c5d(0x133)])[_0x2f3c5d(0x12c)](HELP_FOOTER_MESSAGE)['commandDir'](_0x542b50[_0x2f3c5d(0x136)])[_0x2f3c5d(0x13b)]()['recommendCommands']()[_0x2f3c5d(0x13c)]()['help'](_0x542b50[_0x2f3c5d(0x13a)]);},exports['handler']=function(_0x271a9e){};
@@ -1 +1 @@
1
- const a19_0x132e1d=a19_0x2761;(function(_0x4c360c,_0x5d21f2){const _0x32a72f=a19_0x2761,_0x9a2c9e=_0x4c360c();while(!![]){try{const _0x4b95aa=-parseInt(_0x32a72f(0xeb))/0x1*(-parseInt(_0x32a72f(0xf7))/0x2)+-parseInt(_0x32a72f(0xf8))/0x3*(-parseInt(_0x32a72f(0xd3))/0x4)+parseInt(_0x32a72f(0x108))/0x5+parseInt(_0x32a72f(0xc5))/0x6*(-parseInt(_0x32a72f(0xd0))/0x7)+-parseInt(_0x32a72f(0xee))/0x8*(parseInt(_0x32a72f(0xe2))/0x9)+parseInt(_0x32a72f(0xc4))/0xa+-parseInt(_0x32a72f(0xcf))/0xb;if(_0x4b95aa===_0x5d21f2)break;else _0x9a2c9e['push'](_0x9a2c9e['shift']());}catch(_0x40d39b){_0x9a2c9e['push'](_0x9a2c9e['shift']());}}}(a19_0x23cc,0x83d30));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x132e1d(0x10a)),{logger}=require(a19_0x132e1d(0xde)),{getCredentialsPath,getGridDetails}=require(a19_0x132e1d(0xd1)),{scaleUpHubDeployment}=require(a19_0x132e1d(0xe5)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x132e1d(0xd8)),{createK8sClient}=require(a19_0x132e1d(0xfb)),{getCloudProviderObject}=require(a19_0x132e1d(0xc0));function a19_0x23cc(){const _0xe412b9=['string','Start\x20an\x20existing\x20Automation\x20grid.','INFO','type','info','debug','ERROR','<PasswordPlaceholder>','XZxXR','../../cloudproviders/utils','Grid\x20started','kyuQl','name','10758290QKxvwo','240lnmxsa','handler','GpxNe','iJXIW','usage','RBmxL','unauthorised','builder','Browserstack','replace','23932579IRfvFF','75523kDzXXJ','../../utils/utilityMethods','username','4DBEazI','readFileSync','Bqvan','CRxVW','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../utils/webSocketUtils','message','stringify','gridId','jPaht','uMpPc','../../config/logger','help','DKtbO','server-error','747ghhyyL','epilogue','KXJgI','../../utils/gridComponents','ZYyoS','WISJi','grid','exit','YEiHg','1LZzxEp','region','zVBVZ','2920VdCkEG','desc','clusterName','skip-tls-cert-verify','start','GnZGS','cHqIx','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','rgYkX','1823020vujSol','1130601WaEZnZ','addListeners','pLbaY','../../utils/createk8sClient','description','argv','start-grid-called','WebSocket','YeKxW','bstackAccesskey','grid-id','cloudProvider','hONPf','parse','Starting\x20grid\x20','existsSync','4066450ZXSAJy','clusterRegion','../../config/constants','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','invalid-grid-id','error','BhBTI','statusCode','mwwDV','stack','password','oUWwN','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'];a19_0x23cc=function(){return _0xe412b9;};return a19_0x23cc();}function a19_0x2761(_0x4d96fe,_0x37ebb2){const _0x23cc08=a19_0x23cc();return a19_0x2761=function(_0x276140,_0x1b5b81){_0x276140=_0x276140-0xbb;let _0x11e88d=_0x23cc08[_0x276140];return _0x11e88d;},a19_0x2761(_0x4d96fe,_0x37ebb2);}exports['command']=a19_0x132e1d(0xe8),exports[a19_0x132e1d(0xef)]=a19_0x132e1d(0x116),exports[a19_0x132e1d(0xcc)]=function(_0x1120f4){const _0x50d377=a19_0x132e1d,_0x544ecf={};_0x544ecf['kyuQl']=_0x50d377(0x10b),_0x544ecf[_0x50d377(0xdd)]=_0x50d377(0x115),_0x544ecf[_0x50d377(0xfa)]='Skip\x20insecure\x20cert\x20verification.',_0x544ecf['mwwDV']='boolean',_0x544ecf[_0x50d377(0xc8)]=_0x50d377(0xdf);const _0x416e41=_0x544ecf,_0x348c6c={};_0x348c6c[_0x50d377(0xfc)]=_0x416e41[_0x50d377(0xc2)],_0x348c6c[_0x50d377(0x118)]=_0x416e41['uMpPc'];const _0x52712b={};_0x52712b['description']=_0x416e41['pLbaY'],_0x52712b[_0x50d377(0x118)]=_0x416e41[_0x50d377(0x110)],_0x52712b['default']=![];const _0x2e9aac={};return _0x2e9aac[_0x50d377(0x102)]=_0x348c6c,_0x2e9aac[_0x50d377(0xf1)]=_0x52712b,_0x1120f4[_0x50d377(0xc9)](HELP_HEADER_MESSAGE[_0x50d377(0xf2)])[_0x50d377(0xe3)](HELP_FOOTER_MESSAGE)['options'](_0x2e9aac)[_0x50d377(0xdf)](_0x416e41[_0x50d377(0xc8)])[_0x50d377(0xfd)];},exports[a19_0x132e1d(0xc6)]=async function(_0x2cef0a){const _0x3abc03=a19_0x132e1d,_0x395fe8={'GpxNe':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','GnZGS':function(_0x28f108){return _0x28f108();},'KXJgI':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','YeKxW':function(_0x5fe78e,_0x455e92,_0x15a95b,_0xc3fb64,_0x1dbf49,_0x1cb07b,_0x54eeb9){return _0x5fe78e(_0x455e92,_0x15a95b,_0xc3fb64,_0x1dbf49,_0x1cb07b,_0x54eeb9);},'RBmxL':_0x3abc03(0xfe),'WISJi':'init-not-called','rgYkX':function(_0x322190,_0x229385,_0x25aaaa,_0x4e2fed,_0x4f8720,_0x3a9b2d,_0x4d9cd6){return _0x322190(_0x229385,_0x25aaaa,_0x4e2fed,_0x4f8720,_0x3a9b2d,_0x4d9cd6);},'ytibx':function(_0xe9a5f6){return _0xe9a5f6();},'hONPf':'<UsernamePlaceholder>','Bqvan':_0x3abc03(0xbe),'BhBTI':'Adding\x20Websocket\x20listeners','XQloy':function(_0x4461d8,_0x42af43,_0x349a85,_0x5b0e18){return _0x4461d8(_0x42af43,_0x349a85,_0x5b0e18);},'jPaht':function(_0x3ccd35,_0x7aa6b9,_0x1abfaa){return _0x3ccd35(_0x7aa6b9,_0x1abfaa);},'YFLDW':function(_0x57a0f4,_0x4f5177,_0x255e68){return _0x57a0f4(_0x4f5177,_0x255e68);},'XZxXR':_0x3abc03(0xc1),'YEiHg':function(_0x23d784,_0x39a9ee){return _0x23d784===_0x39a9ee;},'oUWwN':_0x3abc03(0xd7),'DKtbO':function(_0xaa0497,_0x186e45,_0x3a330e,_0x2ce5ed,_0x947eb9,_0x398496,_0x170737){return _0xaa0497(_0x186e45,_0x3a330e,_0x2ce5ed,_0x947eb9,_0x398496,_0x170737);},'cHqIx':_0x3abc03(0xcb),'ZYyoS':_0x3abc03(0x10c),'CRxVW':function(_0x3dbdbc,_0x4673b2,_0x3f1b33,_0x302362,_0xe1345a,_0x483281,_0x3a702c){return _0x3dbdbc(_0x4673b2,_0x3f1b33,_0x302362,_0xe1345a,_0x483281,_0x3a702c);},'zVBVZ':_0x3abc03(0xe1)};let _0x2cc8f5;try{!_0x2cef0a[_0x3abc03(0xdb)]&&(logger[_0x3abc03(0x10d)](_0x395fe8[_0x3abc03(0xc7)]),process[_0x3abc03(0xe9)](0x1));!fs[_0x3abc03(0x107)](_0x395fe8[_0x3abc03(0xf3)](getCredentialsPath))&&(logger['error'](_0x395fe8[_0x3abc03(0xe4)]),await _0x395fe8[_0x3abc03(0x100)](sendInstrumentationEvent,_0x2cef0a,_0x395fe8[_0x3abc03(0xca)],messageTypes[_0x3abc03(0xbd)],_0x395fe8[_0x3abc03(0xe7)],null,_0x2cef0a),process[_0x3abc03(0xe9)](0x1));logger[_0x3abc03(0xbb)](_0x3abc03(0x106)+_0x2cef0a[_0x3abc03(0xdb)]),await _0x395fe8['rgYkX'](sendInstrumentationEvent,_0x2cef0a,_0x395fe8[_0x3abc03(0xca)],messageTypes[_0x3abc03(0x117)],null,null,_0x2cef0a);const _0x58ad86=JSON[_0x3abc03(0x105)](fs[_0x3abc03(0xd4)](_0x395fe8['ytibx'](getCredentialsPath)));global_registry['bstackUsername']=_0x58ad86[_0x3abc03(0xcd)]['username'],global_registry[_0x3abc03(0x101)]=_0x58ad86[_0x3abc03(0xcd)][_0x3abc03(0x112)];const _0x2b08ff=WS_ENDPOINT[_0x3abc03(0xce)](_0x395fe8[_0x3abc03(0x104)],_0x58ad86[_0x3abc03(0xcd)][_0x3abc03(0xd2)])[_0x3abc03(0xce)](_0x395fe8[_0x3abc03(0xd5)],_0x58ad86[_0x3abc03(0xcd)][_0x3abc03(0x112)]),_0x4392c0={};_0x4392c0[_0x3abc03(0xff)]=ws,_0x4392c0['connectionTimeout']=0x36ee80,_0x2cc8f5=new ReconnectingWebSocket(_0x2b08ff,[],_0x4392c0),logger[_0x3abc03(0xbc)](_0x395fe8[_0x3abc03(0x10e)]),webSocketUtils[_0x3abc03(0xf9)](_0x2cc8f5,_0x2cef0a['user'],_0x2cef0a[_0x3abc03(0x112)]);const [_0x3d5b5c,_0xc4400b]=await _0x395fe8['XQloy'](getGridDetails,_0x58ad86['Browserstack'][_0x3abc03(0xd2)],_0x58ad86[_0x3abc03(0xcd)][_0x3abc03(0x112)],_0x2cef0a[_0x3abc03(0xdb)]);if(_0xc4400b){const _0x2adde7=_0xc4400b['info'];global_registry[_0x3abc03(0x103)]=_0x2adde7[_0x3abc03(0x103)],global_registry[_0x3abc03(0x109)]=_0x2adde7[_0x3abc03(0xec)],global_registry[_0x3abc03(0xf0)]=_0x2adde7[_0x3abc03(0xf0)];const _0x4054e6=await _0x395fe8[_0x3abc03(0xf6)](getCloudProviderObject,_0x2adde7[_0x3abc03(0x103)],_0x2adde7[_0x3abc03(0xf0)],_0x2adde7[_0x3abc03(0xc3)],_0x2cc8f5,webSocketUtils,_0x2cef0a),[_0x5b8c96,_0x163d0f,_0x2ca802,_0x57a947,_0x383e8e,_0x4513fe]=await _0x395fe8[_0x3abc03(0xdc)](createK8sClient,_0x4054e6,_0x2cef0a['skipTlsCertVerify']);await _0x395fe8['YFLDW'](scaleUpHubDeployment,_0x163d0f,_0x2adde7[_0x3abc03(0xc3)]),logger['info'](_0x395fe8[_0x3abc03(0xbf)]),process['exit'](0x0);}_0x395fe8[_0x3abc03(0xea)](_0x3d5b5c[_0x3abc03(0x10f)],0x191)&&(logger['error'](_0x395fe8[_0x3abc03(0x113)]),await _0x395fe8[_0x3abc03(0xe0)](sendInstrumentationEvent,_0x2cef0a,_0x395fe8[_0x3abc03(0xca)],messageTypes[_0x3abc03(0xbd)],_0x395fe8[_0x3abc03(0xf4)],null,_0x2cef0a),process[_0x3abc03(0xe9)](0x1)),_0x395fe8['YEiHg'](_0x3d5b5c[_0x3abc03(0x10f)],0x190)&&(logger['error'](JSON[_0x3abc03(0x105)](_0x3d5b5c['body'])[_0x3abc03(0xd9)]),await _0x395fe8[_0x3abc03(0x100)](sendInstrumentationEvent,_0x2cef0a,_0x395fe8[_0x3abc03(0xca)],messageTypes[_0x3abc03(0xbd)],_0x395fe8[_0x3abc03(0xe6)],null,_0x2cef0a),process[_0x3abc03(0xe9)](0x1)),logger[_0x3abc03(0x10d)](_0x3abc03(0x114)+JSON[_0x3abc03(0xda)](_0x3d5b5c)),await _0x395fe8[_0x3abc03(0xd6)](sendInstrumentationEvent,_0x2cef0a,_0x395fe8[_0x3abc03(0xca)],messageTypes[_0x3abc03(0xbd)],_0x395fe8[_0x3abc03(0xed)],_0x3d5b5c,_0x2cef0a),process[_0x3abc03(0xe9)](0x1);}catch(_0x487bc4){const _0x418dc9=_0x3abc03(0xf5)+_0x487bc4+'\x20\x0a'+JSON[_0x3abc03(0xda)](_0x487bc4[_0x3abc03(0x111)])+'\x20';logger[_0x3abc03(0x10d)](_0x418dc9),process[_0x3abc03(0xe9)](0x1);}};
1
+ const a19_0x5618ee=a19_0x21ec;(function(_0x48e133,_0x5c027d){const _0x2e18da=a19_0x21ec,_0x11ccaa=_0x48e133();while(!![]){try{const _0x16c8e0=parseInt(_0x2e18da(0x160))/0x1+-parseInt(_0x2e18da(0x12d))/0x2+parseInt(_0x2e18da(0x12e))/0x3+-parseInt(_0x2e18da(0x12a))/0x4+parseInt(_0x2e18da(0x163))/0x5+-parseInt(_0x2e18da(0x150))/0x6+-parseInt(_0x2e18da(0x140))/0x7*(-parseInt(_0x2e18da(0x165))/0x8);if(_0x16c8e0===_0x5c027d)break;else _0x11ccaa['push'](_0x11ccaa['shift']());}catch(_0x166b22){_0x11ccaa['push'](_0x11ccaa['shift']());}}}(a19_0x49c6,0x31b79));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x5618ee(0x134)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x5618ee(0x14a)),{logger}=require(a19_0x5618ee(0x117)),{getCredentialsPath,getGridDetails}=require(a19_0x5618ee(0x11f)),{scaleUpHubDeployment}=require(a19_0x5618ee(0x157)),{sendInstrumentationEvent}=require(a19_0x5618ee(0x12f)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x5618ee(0x133)),{getCloudProviderObject}=require(a19_0x5618ee(0x14d));function a19_0x21ec(_0x1ba98c,_0x50b560){const _0x49c6d5=a19_0x49c6();return a19_0x21ec=function(_0x21eceb,_0x59af51){_0x21eceb=_0x21eceb-0x113;let _0x33e6a3=_0x49c6d5[_0x21eceb];return _0x33e6a3;},a19_0x21ec(_0x1ba98c,_0x50b560);}exports['command']=a19_0x5618ee(0x12b),exports[a19_0x5618ee(0x125)]='Start\x20an\x20existing\x20Automation\x20grid.',exports['builder']=function(_0x3b7e09){const _0x590702=a19_0x5618ee,_0x5ac5d1={};_0x5ac5d1[_0x590702(0x162)]='Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.',_0x5ac5d1['kQbGV']='string',_0x5ac5d1[_0x590702(0x13f)]='Skip\x20insecure\x20cert\x20verification.',_0x5ac5d1['LxjxE']=_0x590702(0x143),_0x5ac5d1[_0x590702(0x161)]=_0x590702(0x146);const _0x1211a1=_0x5ac5d1,_0x3def16={};_0x3def16[_0x590702(0x15e)]=_0x1211a1[_0x590702(0x162)],_0x3def16['type']=_0x1211a1[_0x590702(0x126)];const _0x28abf9={};_0x28abf9['description']=_0x1211a1[_0x590702(0x13f)],_0x28abf9[_0x590702(0x13c)]=_0x1211a1[_0x590702(0x11a)],_0x28abf9[_0x590702(0x15f)]=![];const _0x22ce6a={};return _0x22ce6a[_0x590702(0x124)]=_0x3def16,_0x22ce6a['skip-tls-cert-verify']=_0x28abf9,_0x3b7e09['usage'](HELP_HEADER_MESSAGE[_0x590702(0x166)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x590702(0x138)](_0x22ce6a)[_0x590702(0x146)](_0x1211a1[_0x590702(0x161)])['argv'];},exports[a19_0x5618ee(0x123)]=async function(_0x443237){const _0x4d32c7=a19_0x5618ee,_0xf51de7={'RjxJY':_0x4d32c7(0x120),'FtMcR':function(_0x6fa588){return _0x6fa588();},'SMdTo':_0x4d32c7(0x13d),'yGVXn':function(_0x22de17,_0x45455f,_0x377ab0,_0x2fec22,_0x13094a,_0x402fa7,_0x1e0587){return _0x22de17(_0x45455f,_0x377ab0,_0x2fec22,_0x13094a,_0x402fa7,_0x1e0587);},'ZORKr':_0x4d32c7(0x11e),'FGMzc':'init-not-called','TNDZl':'<UsernamePlaceholder>','fcylp':_0x4d32c7(0x15a),'iKueb':'Adding\x20Websocket\x20listeners','PgDGS':function(_0x282145,_0x454a0a,_0x25235e,_0x374601){return _0x282145(_0x454a0a,_0x25235e,_0x374601);},'MlEqW':function(_0x39f21e,_0x466593,_0x1ed5d5,_0x2b711f,_0x25f6bf,_0x18efa2,_0x38addb){return _0x39f21e(_0x466593,_0x1ed5d5,_0x2b711f,_0x25f6bf,_0x18efa2,_0x38addb);},'PTCHg':function(_0x46c99e,_0x6757c7,_0x28c76f){return _0x46c99e(_0x6757c7,_0x28c76f);},'RjQBF':'Grid\x20started','hkXlV':function(_0x561c11,_0x123072){return _0x561c11===_0x123072;},'jmzlm':_0x4d32c7(0x154),'QBuCc':_0x4d32c7(0x12c),'mMjPg':function(_0x342bbe,_0x3127b8){return _0x342bbe===_0x3127b8;},'oVXlV':_0x4d32c7(0x129),'JvlUz':function(_0x26e04f,_0x1bbcdc,_0x3e5782,_0x505f72,_0x34ada6,_0x4a977e,_0x46477c){return _0x26e04f(_0x1bbcdc,_0x3e5782,_0x505f72,_0x34ada6,_0x4a977e,_0x46477c);},'hyLGu':'server-error'};let _0x290097;try{!_0x443237[_0x4d32c7(0x119)]&&(logger[_0x4d32c7(0x131)](_0xf51de7[_0x4d32c7(0x127)]),process[_0x4d32c7(0x14f)](0x1));!fs[_0x4d32c7(0x132)](_0xf51de7[_0x4d32c7(0x142)](getCredentialsPath))&&(logger['error'](_0xf51de7['SMdTo']),await _0xf51de7['yGVXn'](sendInstrumentationEvent,_0x443237,_0xf51de7[_0x4d32c7(0x15b)],messageTypes['ERROR'],_0xf51de7['FGMzc'],null,_0x443237),process['exit'](0x1));logger[_0x4d32c7(0x11d)](_0x4d32c7(0x137)+_0x443237[_0x4d32c7(0x119)]),await _0xf51de7[_0x4d32c7(0x136)](sendInstrumentationEvent,_0x443237,_0xf51de7[_0x4d32c7(0x15b)],messageTypes['INFO'],null,null,_0x443237);const _0x48a5e4=JSON[_0x4d32c7(0x158)](fs['readFileSync'](_0xf51de7[_0x4d32c7(0x142)](getCredentialsPath)));global_registry[_0x4d32c7(0x128)]=_0x48a5e4['Browserstack'][_0x4d32c7(0x14c)],global_registry[_0x4d32c7(0x13b)]=_0x48a5e4[_0x4d32c7(0x151)][_0x4d32c7(0x135)];const _0x11aa70=WS_ENDPOINT['replace'](_0xf51de7[_0x4d32c7(0x156)],_0x48a5e4[_0x4d32c7(0x151)][_0x4d32c7(0x14c)])[_0x4d32c7(0x164)](_0xf51de7[_0x4d32c7(0x118)],_0x48a5e4[_0x4d32c7(0x151)][_0x4d32c7(0x135)]),_0x4dce1d={};_0x4dce1d[_0x4d32c7(0x15c)]=ws,_0x4dce1d[_0x4d32c7(0x11c)]=0x36ee80,_0x290097=new ReconnectingWebSocket(_0x11aa70,[],_0x4dce1d),logger[_0x4d32c7(0x139)](_0xf51de7[_0x4d32c7(0x144)]),webSocketUtils['addListeners'](_0x290097,_0x443237[_0x4d32c7(0x14b)],_0x443237[_0x4d32c7(0x135)]);const [_0x45aa5f,_0x4ddf5d]=await _0xf51de7[_0x4d32c7(0x114)](getGridDetails,_0x48a5e4[_0x4d32c7(0x151)][_0x4d32c7(0x14c)],_0x48a5e4['Browserstack'][_0x4d32c7(0x135)],_0x443237['gridId']);if(_0x4ddf5d){const _0x9fd887=_0x4ddf5d['info'];global_registry[_0x4d32c7(0x159)]=_0x9fd887['cloudProvider'],global_registry[_0x4d32c7(0x15d)]=_0x9fd887[_0x4d32c7(0x153)],global_registry[_0x4d32c7(0x152)]=_0x9fd887['clusterName'];const _0x3f9f31=await _0xf51de7[_0x4d32c7(0x113)](getCloudProviderObject,_0x9fd887[_0x4d32c7(0x159)],_0x9fd887[_0x4d32c7(0x152)],_0x9fd887[_0x4d32c7(0x148)],_0x290097,webSocketUtils,_0x443237),[_0x12c16e,_0x58bc51,_0xb848f6,_0x4d969a,_0x442d18,_0x5e7096]=await _0xf51de7[_0x4d32c7(0x116)](createK8sClient,_0x3f9f31,_0x443237[_0x4d32c7(0x122)]);await _0xf51de7[_0x4d32c7(0x116)](scaleUpHubDeployment,_0x58bc51,_0x9fd887['name']),logger[_0x4d32c7(0x11d)](_0xf51de7['RjQBF']),process['exit'](0x0);}_0xf51de7[_0x4d32c7(0x145)](_0x45aa5f[_0x4d32c7(0x14e)],0x191)&&(logger[_0x4d32c7(0x131)](_0xf51de7['jmzlm']),await _0xf51de7[_0x4d32c7(0x113)](sendInstrumentationEvent,_0x443237,_0xf51de7[_0x4d32c7(0x15b)],messageTypes['ERROR'],_0xf51de7[_0x4d32c7(0x147)],null,_0x443237),process[_0x4d32c7(0x14f)](0x1)),_0xf51de7[_0x4d32c7(0x115)](_0x45aa5f[_0x4d32c7(0x14e)],0x190)&&(logger[_0x4d32c7(0x131)](JSON[_0x4d32c7(0x158)](_0x45aa5f[_0x4d32c7(0x149)])[_0x4d32c7(0x130)]),await _0xf51de7[_0x4d32c7(0x113)](sendInstrumentationEvent,_0x443237,_0xf51de7['ZORKr'],messageTypes[_0x4d32c7(0x121)],_0xf51de7['oVXlV'],null,_0x443237),process[_0x4d32c7(0x14f)](0x1)),logger[_0x4d32c7(0x131)](_0x4d32c7(0x13e)+JSON[_0x4d32c7(0x11b)](_0x45aa5f)),await _0xf51de7[_0x4d32c7(0x141)](sendInstrumentationEvent,_0x443237,_0xf51de7[_0x4d32c7(0x15b)],messageTypes['ERROR'],_0xf51de7[_0x4d32c7(0x13a)],_0x45aa5f,_0x443237),process['exit'](0x1);}catch(_0xd63550){const _0x48f6b9='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0xd63550+'\x20\x0a'+JSON[_0x4d32c7(0x11b)](_0xd63550[_0x4d32c7(0x155)])+'\x20';logger['error'](_0x48f6b9),process[_0x4d32c7(0x14f)](0x1);}};function a19_0x49c6(){const _0x31902b=['connectionTimeout','info','start-grid-called','../../utils/utilityMethods','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','ERROR','skipTlsCertVerify','handler','grid-id','desc','kQbGV','RjxJY','bstackUsername','invalid-grid-id','1349308jSTqGi','grid','unauthorised','517452PwNRQl','904560xPoUHL','../../utils/instrumentationUtils','message','error','existsSync','../../utils/createk8sClient','reconnecting-websocket','password','yGVXn','Starting\x20grid\x20','options','debug','hyLGu','bstackAccesskey','type','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','XrWxN','406MjOElh','JvlUz','FtMcR','boolean','iKueb','hkXlV','help','QBuCc','name','body','../../config/constants','user','username','../../cloudproviders/utils','statusCode','exit','1499532VynlaA','Browserstack','clusterName','region','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','stack','TNDZl','../../utils/gridComponents','parse','cloudProvider','<PasswordPlaceholder>','ZORKr','WebSocket','clusterRegion','description','default','177810jOQaJG','pLDFi','kbAZj','1031970oeARrh','replace','50192dEwBVK','start','MlEqW','PgDGS','mMjPg','PTCHg','../../config/logger','fcylp','gridId','LxjxE','stringify'];a19_0x49c6=function(){return _0x31902b;};return a19_0x49c6();}
@@ -1 +1 @@
1
- function a20_0x254f(_0x1b3b00,_0x30456b){const _0x14ad3e=a20_0x14ad();return a20_0x254f=function(_0x254f24,_0x53a3f7){_0x254f24=_0x254f24-0x12d;let _0xe421e3=_0x14ad3e[_0x254f24];return _0xe421e3;},a20_0x254f(_0x1b3b00,_0x30456b);}const a20_0x319cde=a20_0x254f;(function(_0x4215e8,_0x2e1145){const _0x3f18ee=a20_0x254f,_0x489ea4=_0x4215e8();while(!![]){try{const _0x28e2e4=parseInt(_0x3f18ee(0x139))/0x1+-parseInt(_0x3f18ee(0x132))/0x2*(parseInt(_0x3f18ee(0x137))/0x3)+parseInt(_0x3f18ee(0x133))/0x4+-parseInt(_0x3f18ee(0x12e))/0x5+parseInt(_0x3f18ee(0x140))/0x6*(-parseInt(_0x3f18ee(0x136))/0x7)+-parseInt(_0x3f18ee(0x13f))/0x8+-parseInt(_0x3f18ee(0x143))/0x9*(parseInt(_0x3f18ee(0x13a))/0xa);if(_0x28e2e4===_0x2e1145)break;else _0x489ea4['push'](_0x489ea4['shift']());}catch(_0x1e85a8){_0x489ea4['push'](_0x489ea4['shift']());}}}(a20_0x14ad,0xb2352));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x319cde(0x13b));exports[a20_0x319cde(0x13c)]='stop',exports[a20_0x319cde(0x131)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x319cde(0x142)]=function(_0x575fc5){const _0x525305=a20_0x319cde,_0x4ab913={};_0x4ab913[_0x525305(0x13e)]=_0x525305(0x12f),_0x4ab913[_0x525305(0x141)]=_0x525305(0x135);const _0x17fc60=_0x4ab913;return _0x575fc5[_0x525305(0x12d)](HELP_HEADER_MESSAGE[_0x525305(0x138)])[_0x525305(0x130)](HELP_FOOTER_MESSAGE)['commandDir'](_0x17fc60[_0x525305(0x13e)])[_0x525305(0x134)]()[_0x525305(0x13d)]()[_0x525305(0x144)]()['help'](_0x17fc60[_0x525305(0x141)]);},exports['handler']=function(_0x139335){};function a20_0x14ad(){const _0x34dbf8=['../config/constants','command','recommendCommands','LGyVq','2072264lMtkLD','544458JyaFGS','AoUaJ','builder','103482SqBhQx','strict','usage','212125iixJlP','stop_commands','epilogue','desc','4GlJVqp','5526572WUEzMK','demandCommand','help','28EwRMRu','1052034akITRw','stop','771571flhCWD','50KPqAzX'];a20_0x14ad=function(){return _0x34dbf8;};return a20_0x14ad();}
1
+ const a20_0x5aa796=a20_0x3a04;(function(_0x10b8e1,_0x56a246){const _0x51e709=a20_0x3a04,_0x547547=_0x10b8e1();while(!![]){try{const _0x4434c9=-parseInt(_0x51e709(0x127))/0x1+-parseInt(_0x51e709(0x112))/0x2*(-parseInt(_0x51e709(0x11e))/0x3)+parseInt(_0x51e709(0x125))/0x4*(parseInt(_0x51e709(0x121))/0x5)+parseInt(_0x51e709(0x113))/0x6+parseInt(_0x51e709(0x11d))/0x7+parseInt(_0x51e709(0x12a))/0x8*(-parseInt(_0x51e709(0x123))/0x9)+-parseInt(_0x51e709(0x116))/0xa*(parseInt(_0x51e709(0x111))/0xb);if(_0x4434c9===_0x56a246)break;else _0x547547['push'](_0x547547['shift']());}catch(_0x4489b3){_0x547547['push'](_0x547547['shift']());}}}(a20_0x15c0,0x283c4));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a20_0x5aa796(0x11a)]=a20_0x5aa796(0x114),exports[a20_0x5aa796(0x120)]=a20_0x5aa796(0x129),exports[a20_0x5aa796(0x119)]=function(_0xc5dcbd){const _0x456438=a20_0x5aa796,_0x505b79={};_0x505b79[_0x456438(0x11f)]=_0x456438(0x117),_0x505b79[_0x456438(0x115)]=_0x456438(0x11b);const _0x2a67d2=_0x505b79;return _0xc5dcbd[_0x456438(0x12b)](HELP_HEADER_MESSAGE[_0x456438(0x114)])[_0x456438(0x11c)](HELP_FOOTER_MESSAGE)[_0x456438(0x128)](_0x2a67d2['WLOTF'])[_0x456438(0x118)]()[_0x456438(0x126)]()[_0x456438(0x122)]()[_0x456438(0x11b)](_0x2a67d2[_0x456438(0x115)]);},exports[a20_0x5aa796(0x124)]=function(_0x139fde){};function a20_0x3a04(_0x4092da,_0x2629bb){const _0x15c061=a20_0x15c0();return a20_0x3a04=function(_0x3a04f3,_0x84df4c){_0x3a04f3=_0x3a04f3-0x111;let _0x135fd6=_0x15c061[_0x3a04f3];return _0x135fd6;},a20_0x3a04(_0x4092da,_0x2629bb);}function a20_0x15c0(){const _0x4d9182=['stop','EnuXm','30wtRYYY','stop_commands','demandCommand','builder','command','help','epilogue','892724oOEeBx','18eDlaim','WLOTF','desc','10IhybEM','strict','22329NNJoyL','handler','129972IlNRka','recommendCommands','210668PqhwsD','commandDir','Stop\x20a\x20running\x20Automation\x20grid.','528CnUEXf','usage','522335bWZPJi','82002wagfhX','1458894PoySve'];a20_0x15c0=function(){return _0x4d9182;};return a20_0x15c0();}
@@ -1 +1 @@
1
- const a21_0x10d2af=a21_0x4d76;(function(_0x1c1570,_0x5b1ee0){const _0x598011=a21_0x4d76,_0x327c8e=_0x1c1570();while(!![]){try{const _0x4b547c=-parseInt(_0x598011(0x17d))/0x1*(parseInt(_0x598011(0x169))/0x2)+parseInt(_0x598011(0x1ad))/0x3+parseInt(_0x598011(0x199))/0x4*(-parseInt(_0x598011(0x167))/0x5)+parseInt(_0x598011(0x1ab))/0x6*(parseInt(_0x598011(0x19c))/0x7)+-parseInt(_0x598011(0x1be))/0x8*(-parseInt(_0x598011(0x18b))/0x9)+-parseInt(_0x598011(0x166))/0xa*(-parseInt(_0x598011(0x171))/0xb)+-parseInt(_0x598011(0x17e))/0xc*(parseInt(_0x598011(0x1b2))/0xd);if(_0x4b547c===_0x5b1ee0)break;else _0x327c8e['push'](_0x327c8e['shift']());}catch(_0x41ffc1){_0x327c8e['push'](_0x327c8e['shift']());}}}(a21_0x4c50,0xe49b7));function a21_0x4d76(_0x15e0af,_0x3cede4){const _0x4c5071=a21_0x4c50();return a21_0x4d76=function(_0x4d7686,_0x418abd){_0x4d7686=_0x4d7686-0x164;let _0x1426bf=_0x4c5071[_0x4d7686];return _0x1426bf;},a21_0x4d76(_0x15e0af,_0x3cede4);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x10d2af(0x1b8)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x10d2af(0x1a3)),{logger}=require(a21_0x10d2af(0x16f)),{getCredentialsPath,getGridDetails}=require(a21_0x10d2af(0x1b6)),{scaleDownHubDeployment}=require(a21_0x10d2af(0x1af)),{sendInstrumentationEvent}=require(a21_0x10d2af(0x1c2)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x10d2af(0x194)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a21_0x4c50(){const _0x36e7a9=['statusCode','2247xuEMQe','qFUFN','gridId','Adding\x20Websocket\x20listeners','BQdNq','Grid\x20stoppped.','debug','../../config/constants','message','region','cFIRF','aHrMY','HhOte','jXHHa','<PasswordPlaceholder>','5394vybsdh','handler','2349912upSivK','RPVtW','../../utils/gridComponents','exit','DYWec','979381uwRDOi','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','ERROR','readFileSync','../../utils/utilityMethods','skip-tls-cert-verify','reconnecting-websocket','type','name','username','INFO','GRbFO','56gizgli','boolean','UPoSo','command','../../utils/instrumentationUtils','Skip\x20insecure\x20cert\x20verification.','lunjZ','3404520gAQRvk','30pPJJcv','help','566CZjCeA','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','rVfMi','Stop\x20a\x20running\x20Automation\x20grid.','IhFnN','RrlaW','../../config/logger','stop','11PbDpeZ','replace','skipTlsCertVerify','stop-grid-called','Browserstack','cloudProvider','CLxLm','parse','grid-id','<UsernamePlaceholder>','pfEyB','unauthorised','1445EzNFQi','12eUdJtX','info','usage','dChZQ','WebSocket','stringify','bstackAccesskey','WSasV','error','string','clusterName','pDEHi','init-not-called','2254032euFucT','connectionTimeout','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','existsSync','clusterRegion','user','qDkGb','bstackUsername','description','../../utils/createk8sClient','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','gbcxI','default','epilogue','1163216KItcAh','password'];a21_0x4c50=function(){return _0x36e7a9;};return a21_0x4c50();}exports[a21_0x10d2af(0x1c1)]='grid',exports['desc']=a21_0x10d2af(0x16c),exports['builder']=function(_0x159768){const _0x13d623=a21_0x10d2af,_0x3944a0={};_0x3944a0[_0x13d623(0x191)]=_0x13d623(0x16a),_0x3944a0[_0x13d623(0x1a9)]=_0x13d623(0x187),_0x3944a0[_0x13d623(0x16d)]=_0x13d623(0x164),_0x3944a0['BQdNq']=_0x13d623(0x1bf),_0x3944a0[_0x13d623(0x1a7)]=_0x13d623(0x168);const _0x7edf74=_0x3944a0,_0x5bab30={};_0x5bab30['description']=_0x7edf74[_0x13d623(0x191)],_0x5bab30[_0x13d623(0x1b9)]=_0x7edf74[_0x13d623(0x1a9)];const _0x298d0d={};_0x298d0d[_0x13d623(0x193)]=_0x7edf74['IhFnN'],_0x298d0d[_0x13d623(0x1b9)]=_0x7edf74[_0x13d623(0x1a0)],_0x298d0d[_0x13d623(0x197)]=![];const _0x2432d9={};return _0x2432d9[_0x13d623(0x179)]=_0x5bab30,_0x2432d9[_0x13d623(0x1b7)]=_0x298d0d,_0x159768[_0x13d623(0x180)](HELP_HEADER_MESSAGE[_0x13d623(0x170)])[_0x13d623(0x198)](HELP_FOOTER_MESSAGE)['options'](_0x2432d9)['help'](_0x7edf74[_0x13d623(0x1a7)])['argv'];},exports[a21_0x10d2af(0x1ac)]=async function(_0x16e827){const _0x15286=a21_0x10d2af,_0x5e46c5={'esVlk':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','qFUFN':function(_0x5943ff){return _0x5943ff();},'HhOte':_0x15286(0x195),'dChZQ':function(_0x391ebd,_0x4b1eb7,_0x447769,_0x4bb474,_0x577b80,_0x44e5ec,_0x3e6890){return _0x391ebd(_0x4b1eb7,_0x447769,_0x4bb474,_0x577b80,_0x44e5ec,_0x3e6890);},'RrlaW':_0x15286(0x174),'GRbFO':_0x15286(0x18a),'kYGIH':function(_0x297c8f,_0x55b639,_0xa7fb4b,_0x19463b,_0x30472a,_0xf5e672,_0x57b427){return _0x297c8f(_0x55b639,_0xa7fb4b,_0x19463b,_0x30472a,_0xf5e672,_0x57b427);},'GFMOc':function(_0x5f5278){return _0x5f5278();},'WSasV':_0x15286(0x17a),'GMluy':_0x15286(0x1aa),'pDEHi':_0x15286(0x19f),'UPoSo':function(_0x7df0d8,_0x52e5e8,_0x41de60,_0x500617){return _0x7df0d8(_0x52e5e8,_0x41de60,_0x500617);},'pfEyB':function(_0x38dacd,_0x28966a,_0x1bb0c7){return _0x38dacd(_0x28966a,_0x1bb0c7);},'rVfMi':function(_0x57a32d,_0x3f516f,_0x3e54cf){return _0x57a32d(_0x3f516f,_0x3e54cf);},'CLxLm':_0x15286(0x1a1),'GNUaj':function(_0x5843f8,_0x10bf1e){return _0x5843f8===_0x10bf1e;},'AmGyO':_0x15286(0x1b3),'lunjZ':function(_0x32d0ea,_0xb4ed8c,_0xc62e8c,_0x5cd791,_0x469f5b,_0x56e41e,_0x18db0b){return _0x32d0ea(_0xb4ed8c,_0xc62e8c,_0x5cd791,_0x469f5b,_0x56e41e,_0x18db0b);},'osWoU':_0x15286(0x17c),'gbcxI':function(_0x15704b,_0x33c37a){return _0x15704b===_0x33c37a;},'DYWec':'invalid-grid-id','cFIRF':function(_0x5a1c00,_0x485eed,_0x2ba33c,_0x17ab7b,_0x46518e,_0x81e589,_0x1b9b44){return _0x5a1c00(_0x485eed,_0x2ba33c,_0x17ab7b,_0x46518e,_0x81e589,_0x1b9b44);},'RPVtW':'server-error'};let _0x4435e3;try{!_0x16e827[_0x15286(0x19e)]&&(logger[_0x15286(0x186)](_0x5e46c5['esVlk']),process[_0x15286(0x1b0)](0x1));!fs[_0x15286(0x18e)](_0x5e46c5[_0x15286(0x19d)](getCredentialsPath))&&(logger[_0x15286(0x186)](_0x5e46c5[_0x15286(0x1a8)]),await _0x5e46c5[_0x15286(0x181)](sendInstrumentationEvent,_0x16e827,_0x5e46c5[_0x15286(0x16e)],messageTypes[_0x15286(0x1b4)],_0x5e46c5[_0x15286(0x1bd)],null,_0x16e827),process[_0x15286(0x1b0)](0x1));logger['info']('Stopping\x20grid\x20'+_0x16e827['gridId']),await _0x5e46c5['kYGIH'](sendInstrumentationEvent,_0x16e827,_0x5e46c5[_0x15286(0x16e)],messageTypes[_0x15286(0x1bc)],null,null,_0x16e827);const _0x398d27=JSON[_0x15286(0x178)](fs[_0x15286(0x1b5)](_0x5e46c5['GFMOc'](getCredentialsPath)));global_registry[_0x15286(0x192)]=_0x398d27[_0x15286(0x175)]['username'],global_registry[_0x15286(0x184)]=_0x398d27[_0x15286(0x175)]['password'];const _0x4af253=WS_ENDPOINT[_0x15286(0x172)](_0x5e46c5[_0x15286(0x185)],_0x398d27['Browserstack'][_0x15286(0x1bb)])[_0x15286(0x172)](_0x5e46c5['GMluy'],_0x398d27[_0x15286(0x175)][_0x15286(0x19a)]),_0x56fa6b={};_0x56fa6b[_0x15286(0x182)]=ws,_0x56fa6b[_0x15286(0x18c)]=0x36ee80,_0x4435e3=new ReconnectingWebSocket(_0x4af253,[],_0x56fa6b),logger[_0x15286(0x1a2)](_0x5e46c5[_0x15286(0x189)]),webSocketUtils['addListeners'](_0x4435e3,_0x16e827[_0x15286(0x190)],_0x16e827[_0x15286(0x19a)]);const [_0x22fa8d,_0x58e1ff]=await _0x5e46c5[_0x15286(0x1c0)](getGridDetails,_0x398d27[_0x15286(0x175)]['username'],_0x398d27['Browserstack'][_0x15286(0x19a)],_0x16e827['gridId']);if(_0x58e1ff){const _0x5d98fb=_0x58e1ff[_0x15286(0x17f)];global_registry[_0x15286(0x176)]=_0x5d98fb[_0x15286(0x176)],global_registry[_0x15286(0x18f)]=_0x5d98fb[_0x15286(0x1a5)],global_registry['clusterName']=_0x5d98fb[_0x15286(0x188)];const _0x45dd87=await _0x5e46c5[_0x15286(0x181)](getCloudProviderObject,_0x5d98fb[_0x15286(0x176)],_0x5d98fb[_0x15286(0x188)],_0x5d98fb['name'],_0x4435e3,webSocketUtils,_0x16e827),[_0x1b62fc,_0x36265d,_0x63004c,_0x1d6d92,_0x262b08,_0x10a6f7]=await _0x5e46c5[_0x15286(0x17b)](createK8sClient,_0x45dd87,_0x16e827[_0x15286(0x173)]);await _0x5e46c5[_0x15286(0x16b)](scaleDownHubDeployment,_0x36265d,_0x5d98fb[_0x15286(0x1ba)]),logger[_0x15286(0x17f)](_0x5e46c5[_0x15286(0x177)]),process[_0x15286(0x1b0)](0x0);}_0x5e46c5['GNUaj'](_0x22fa8d[_0x15286(0x19b)],0x191)&&(logger[_0x15286(0x186)](_0x5e46c5['AmGyO']),await _0x5e46c5[_0x15286(0x165)](sendInstrumentationEvent,_0x16e827,_0x5e46c5['RrlaW'],messageTypes['ERROR'],_0x5e46c5['osWoU'],null,_0x16e827),process[_0x15286(0x1b0)](0x1)),_0x5e46c5[_0x15286(0x196)](_0x22fa8d[_0x15286(0x19b)],0x190)&&(logger['error'](JSON[_0x15286(0x178)](_0x22fa8d['body'])[_0x15286(0x1a4)]),await _0x5e46c5[_0x15286(0x165)](sendInstrumentationEvent,_0x16e827,_0x5e46c5[_0x15286(0x16e)],messageTypes['ERROR'],_0x5e46c5[_0x15286(0x1b1)],null,_0x16e827),process['exit'](0x1)),logger['error'](_0x15286(0x18d)+JSON[_0x15286(0x183)](_0x22fa8d)),await _0x5e46c5[_0x15286(0x1a6)](sendInstrumentationEvent,_0x16e827,_0x5e46c5['RrlaW'],messageTypes[_0x15286(0x1b4)],_0x5e46c5[_0x15286(0x1ae)],_0x22fa8d,_0x16e827),process['exit'](0x1);}catch(_0x10c55a){const _0x57923e='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x10c55a+'\x20\x0a'+JSON[_0x15286(0x183)](_0x10c55a['stack'])+'\x20';logger[_0x15286(0x186)](_0x57923e),process['exit'](0x1);}};
1
+ const a21_0x53c08e=a21_0x2b91;(function(_0x465326,_0x39c591){const _0x9717f3=a21_0x2b91,_0x4f349b=_0x465326();while(!![]){try{const _0x27105b=-parseInt(_0x9717f3(0xbb))/0x1*(-parseInt(_0x9717f3(0xb0))/0x2)+parseInt(_0x9717f3(0xf6))/0x3+-parseInt(_0x9717f3(0xec))/0x4+parseInt(_0x9717f3(0xc6))/0x5+-parseInt(_0x9717f3(0xcd))/0x6*(parseInt(_0x9717f3(0xea))/0x7)+parseInt(_0x9717f3(0xb8))/0x8+-parseInt(_0x9717f3(0xb4))/0x9;if(_0x27105b===_0x39c591)break;else _0x4f349b['push'](_0x4f349b['shift']());}catch(_0x4ac6ae){_0x4f349b['push'](_0x4f349b['shift']());}}}(a21_0x239a,0xcb094));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x53c08e(0xd0)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x53c08e(0xcf)),{getCredentialsPath,getGridDetails}=require(a21_0x53c08e(0xc3)),{scaleDownHubDeployment}=require(a21_0x53c08e(0xf5)),{sendInstrumentationEvent}=require(a21_0x53c08e(0xb5)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x53c08e(0xf8)),{getCloudProviderObject}=require(a21_0x53c08e(0xe4));exports[a21_0x53c08e(0xf7)]=a21_0x53c08e(0xb6),exports[a21_0x53c08e(0xdf)]=a21_0x53c08e(0xd4),exports[a21_0x53c08e(0xe1)]=function(_0x4b9a89){const _0x38828e=a21_0x53c08e,_0x7e836c={};_0x7e836c[_0x38828e(0xad)]=_0x38828e(0xb9),_0x7e836c['nAsvL']='string',_0x7e836c[_0x38828e(0xd9)]='Skip\x20insecure\x20cert\x20verification.',_0x7e836c[_0x38828e(0xc2)]=_0x38828e(0xc1),_0x7e836c['KeSbL']='help';const _0x3266b0=_0x7e836c,_0x46508e={};_0x46508e[_0x38828e(0xd1)]=_0x3266b0[_0x38828e(0xad)],_0x46508e['type']=_0x3266b0[_0x38828e(0xaa)];const _0x59ae17={};_0x59ae17[_0x38828e(0xd1)]=_0x3266b0[_0x38828e(0xd9)],_0x59ae17[_0x38828e(0xeb)]=_0x3266b0['OyuHR'],_0x59ae17[_0x38828e(0xd2)]=![];const _0x3b73d8={};return _0x3b73d8['grid-id']=_0x46508e,_0x3b73d8[_0x38828e(0xc8)]=_0x59ae17,_0x4b9a89[_0x38828e(0xbd)](HELP_HEADER_MESSAGE[_0x38828e(0xe9)])[_0x38828e(0xda)](HELP_FOOTER_MESSAGE)['options'](_0x3b73d8)[_0x38828e(0xb2)](_0x3266b0[_0x38828e(0xbc)])[_0x38828e(0xdc)];},exports[a21_0x53c08e(0xfc)]=async function(_0x6f64d6){const _0x2d9203=a21_0x53c08e,_0x4fde5f={'qzUYz':_0x2d9203(0xcc),'DdYMR':function(_0x220cc0){return _0x220cc0();},'ApEIQ':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','fLlnL':function(_0x499f00,_0x118dc6,_0x2e1f51,_0x1f4176,_0x2855af,_0x749e9,_0xf9529a){return _0x499f00(_0x118dc6,_0x2e1f51,_0x1f4176,_0x2855af,_0x749e9,_0xf9529a);},'DNkqi':_0x2d9203(0xfe),'HzwyG':_0x2d9203(0xf4),'kbqFK':function(_0x130844){return _0x130844();},'ePgRW':_0x2d9203(0xff),'cfTzG':_0x2d9203(0xd7),'bzcRI':_0x2d9203(0xc5),'dZLfc':function(_0x3e2813,_0x331b43,_0x1eca74,_0x2951cc){return _0x3e2813(_0x331b43,_0x1eca74,_0x2951cc);},'sEbrA':function(_0x428f91,_0x2018f1,_0x5d017c,_0x78ecca,_0x31b36d,_0x161261,_0x46eebe){return _0x428f91(_0x2018f1,_0x5d017c,_0x78ecca,_0x31b36d,_0x161261,_0x46eebe);},'NZAhw':function(_0x11e5c6,_0x28d42b,_0x980ae9){return _0x11e5c6(_0x28d42b,_0x980ae9);},'bgXeZ':function(_0x4c5bae,_0x6da17d,_0x5b7015){return _0x4c5bae(_0x6da17d,_0x5b7015);},'bPvWd':_0x2d9203(0xaf),'TxEfc':function(_0x40483a,_0x109252){return _0x40483a===_0x109252;},'jpyxx':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','qLyaP':function(_0x588d82,_0x10768e,_0x4eca2a,_0x201f5f,_0x2aecd5,_0x3ba6d9,_0x1cfa49){return _0x588d82(_0x10768e,_0x4eca2a,_0x201f5f,_0x2aecd5,_0x3ba6d9,_0x1cfa49);},'ntNBf':'unauthorised','ojoMu':function(_0x54174c,_0x38f927){return _0x54174c===_0x38f927;},'pbQIq':_0x2d9203(0xac),'OOFxE':_0x2d9203(0xf1)};let _0x441f23;try{!_0x6f64d6['gridId']&&(logger[_0x2d9203(0xbe)](_0x4fde5f[_0x2d9203(0xfd)]),process[_0x2d9203(0xf0)](0x1));!fs['existsSync'](_0x4fde5f[_0x2d9203(0xc7)](getCredentialsPath))&&(logger[_0x2d9203(0xbe)](_0x4fde5f[_0x2d9203(0xbf)]),await _0x4fde5f['fLlnL'](sendInstrumentationEvent,_0x6f64d6,_0x4fde5f['DNkqi'],messageTypes[_0x2d9203(0xe7)],_0x4fde5f['HzwyG'],null,_0x6f64d6),process[_0x2d9203(0xf0)](0x1));logger[_0x2d9203(0xf2)](_0x2d9203(0xc0)+_0x6f64d6[_0x2d9203(0xd5)]),await _0x4fde5f[_0x2d9203(0xde)](sendInstrumentationEvent,_0x6f64d6,_0x4fde5f[_0x2d9203(0xa7)],messageTypes[_0x2d9203(0xae)],null,null,_0x6f64d6);const _0x5648b4=JSON['parse'](fs['readFileSync'](_0x4fde5f[_0x2d9203(0xd6)](getCredentialsPath)));global_registry[_0x2d9203(0xe0)]=_0x5648b4[_0x2d9203(0xb1)]['username'],global_registry[_0x2d9203(0xf9)]=_0x5648b4[_0x2d9203(0xb1)][_0x2d9203(0xcb)];const _0x60baa5=WS_ENDPOINT['replace'](_0x4fde5f[_0x2d9203(0xee)],_0x5648b4[_0x2d9203(0xb1)]['username'])[_0x2d9203(0xef)](_0x4fde5f['cfTzG'],_0x5648b4[_0x2d9203(0xb1)][_0x2d9203(0xcb)]),_0x1b31b0={};_0x1b31b0[_0x2d9203(0xf3)]=ws,_0x1b31b0['connectionTimeout']=0x36ee80,_0x441f23=new ReconnectingWebSocket(_0x60baa5,[],_0x1b31b0),logger['debug'](_0x4fde5f[_0x2d9203(0xdd)]),webSocketUtils[_0x2d9203(0xd3)](_0x441f23,_0x6f64d6[_0x2d9203(0xce)],_0x6f64d6[_0x2d9203(0xcb)]);const [_0xd19690,_0x2b5bbb]=await _0x4fde5f['dZLfc'](getGridDetails,_0x5648b4[_0x2d9203(0xb1)][_0x2d9203(0xe2)],_0x5648b4[_0x2d9203(0xb1)][_0x2d9203(0xcb)],_0x6f64d6[_0x2d9203(0xd5)]);if(_0x2b5bbb){const _0x99118c=_0x2b5bbb[_0x2d9203(0xf2)];global_registry[_0x2d9203(0xb7)]=_0x99118c[_0x2d9203(0xb7)],global_registry[_0x2d9203(0xfa)]=_0x99118c[_0x2d9203(0xab)],global_registry[_0x2d9203(0xed)]=_0x99118c[_0x2d9203(0xed)];const _0x2817c2=await _0x4fde5f[_0x2d9203(0xba)](getCloudProviderObject,_0x99118c[_0x2d9203(0xb7)],_0x99118c['clusterName'],_0x99118c['name'],_0x441f23,webSocketUtils,_0x6f64d6),[_0xf39445,_0x429072,_0x319b62,_0x5a132d,_0x525ef1,_0x2e4d22]=await _0x4fde5f[_0x2d9203(0xe6)](createK8sClient,_0x2817c2,_0x6f64d6[_0x2d9203(0xe8)]);await _0x4fde5f[_0x2d9203(0xc4)](scaleDownHubDeployment,_0x429072,_0x99118c['name']),logger[_0x2d9203(0xf2)](_0x4fde5f[_0x2d9203(0xb3)]),process['exit'](0x0);}_0x4fde5f[_0x2d9203(0xe5)](_0xd19690['statusCode'],0x191)&&(logger['error'](_0x4fde5f[_0x2d9203(0xd8)]),await _0x4fde5f['qLyaP'](sendInstrumentationEvent,_0x6f64d6,_0x4fde5f[_0x2d9203(0xa7)],messageTypes[_0x2d9203(0xe7)],_0x4fde5f[_0x2d9203(0xdb)],null,_0x6f64d6),process[_0x2d9203(0xf0)](0x1)),_0x4fde5f[_0x2d9203(0xfb)](_0xd19690[_0x2d9203(0x100)],0x190)&&(logger['error'](JSON['parse'](_0xd19690[_0x2d9203(0xa8)])[_0x2d9203(0xe3)]),await _0x4fde5f['qLyaP'](sendInstrumentationEvent,_0x6f64d6,_0x4fde5f[_0x2d9203(0xa7)],messageTypes[_0x2d9203(0xe7)],_0x4fde5f[_0x2d9203(0xca)],null,_0x6f64d6),process[_0x2d9203(0xf0)](0x1)),logger[_0x2d9203(0xbe)](_0x2d9203(0xa9)+JSON['stringify'](_0xd19690)),await _0x4fde5f[_0x2d9203(0xde)](sendInstrumentationEvent,_0x6f64d6,_0x4fde5f[_0x2d9203(0xa7)],messageTypes[_0x2d9203(0xe7)],_0x4fde5f[_0x2d9203(0xc9)],_0xd19690,_0x6f64d6),process[_0x2d9203(0xf0)](0x1);}catch(_0x223172){const _0xa7aff0='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x223172+'\x20\x0a'+JSON['stringify'](_0x223172['stack'])+'\x20';logger[_0x2d9203(0xbe)](_0xa7aff0),process['exit'](0x1);}};function a21_0x2b91(_0x3c6471,_0x353bdd){const _0x239a8f=a21_0x239a();return a21_0x2b91=function(_0x2b918a,_0x1df73b){_0x2b918a=_0x2b918a-0xa7;let _0x42d44d=_0x239a8f[_0x2b918a];return _0x42d44d;},a21_0x2b91(_0x3c6471,_0x353bdd);}function a21_0x239a(){const _0x5061f2=['7446030ApCuUr','DdYMR','skip-tls-cert-verify','OOFxE','pbQIq','password','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','282WmuXJd','user','../../config/logger','reconnecting-websocket','description','default','addListeners','Stop\x20a\x20running\x20Automation\x20grid.','gridId','kbqFK','<PasswordPlaceholder>','jpyxx','nvjCC','epilogue','ntNBf','argv','bzcRI','fLlnL','desc','bstackUsername','builder','username','message','../../cloudproviders/utils','TxEfc','NZAhw','ERROR','skipTlsCertVerify','stop','87878eSeDaJ','type','854084xWxZjZ','clusterName','ePgRW','replace','exit','server-error','info','WebSocket','init-not-called','../../utils/gridComponents','2471913aQIXFh','command','../../utils/createk8sClient','bstackAccesskey','clusterRegion','ojoMu','handler','qzUYz','stop-grid-called','<UsernamePlaceholder>','statusCode','DNkqi','body','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','nAsvL','region','invalid-grid-id','rNkol','INFO','Grid\x20stoppped.','32fRWDzV','Browserstack','help','bPvWd','18488493heVmBw','../../utils/instrumentationUtils','grid','cloudProvider','1240504pQZhvy','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','sEbrA','76327BWeRwZ','KeSbL','usage','error','ApEIQ','Stopping\x20grid\x20','boolean','OyuHR','../../utils/utilityMethods','bgXeZ','Adding\x20Websocket\x20listeners'];a21_0x239a=function(){return _0x5061f2;};return a21_0x239a();}
@@ -1 +1 @@
1
- const a22_0x1ddaa2=a22_0x3476;(function(_0xd73038,_0x331498){const _0x5e6f7a=a22_0x3476,_0x58301b=_0xd73038();while(!![]){try{const _0x144358=-parseInt(_0x5e6f7a(0x12b))/0x1*(parseInt(_0x5e6f7a(0x115))/0x2)+parseInt(_0x5e6f7a(0xf9))/0x3+-parseInt(_0x5e6f7a(0xe9))/0x4+parseInt(_0x5e6f7a(0x13f))/0x5*(-parseInt(_0x5e6f7a(0x136))/0x6)+-parseInt(_0x5e6f7a(0x122))/0x7+-parseInt(_0x5e6f7a(0x129))/0x8+parseInt(_0x5e6f7a(0x120))/0x9*(parseInt(_0x5e6f7a(0x105))/0xa);if(_0x144358===_0x331498)break;else _0x58301b['push'](_0x58301b['shift']());}catch(_0x316767){_0x58301b['push'](_0x58301b['shift']());}}}(a22_0x1850,0xba003),require(a22_0x1ddaa2(0x12f))['config'](),exports['DASHBOARD_ENDPOINT']=process[a22_0x1ddaa2(0xed)][a22_0x1ddaa2(0x13a)]||a22_0x1ddaa2(0xf7),exports[a22_0x1ddaa2(0x11f)]=process[a22_0x1ddaa2(0xed)][a22_0x1ddaa2(0x11f)]||a22_0x1ddaa2(0x10a),exports[a22_0x1ddaa2(0x13c)]=process[a22_0x1ddaa2(0xed)]['AG_API_URL']||a22_0x1ddaa2(0xf1),exports[a22_0x1ddaa2(0xfd)]='wss://'+this['AG_API_URL']+a22_0x1ddaa2(0x138),exports['CP_CONFIG_FILE']=a22_0x1ddaa2(0xf0),exports[a22_0x1ddaa2(0xe1)]=a22_0x1ddaa2(0x11a),exports['DEFAULT_GRID_NAME']='high-scale-grid',exports[a22_0x1ddaa2(0xf4)]=a22_0x1ddaa2(0x135),exports[a22_0x1ddaa2(0x132)]=a22_0x1ddaa2(0xff),exports[a22_0x1ddaa2(0xe0)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x1ddaa2(0xfa),exports['TURBOSCALE_DEPLOYMENT']='browserstack-turboscale-grid',exports[a22_0x1ddaa2(0x121)]=a22_0x1ddaa2(0x119),exports[a22_0x1ddaa2(0x114)]=a22_0x1ddaa2(0x139),exports[a22_0x1ddaa2(0x128)]=[this['AWS'],this['AZURE'],this[a22_0x1ddaa2(0x114)]]);const a22_0x3cd74e={};a22_0x3cd74e[a22_0x1ddaa2(0xee)]='browserstack:managedBy',a22_0x3cd74e['Value']=a22_0x1ddaa2(0xe6);const a22_0x465e4e={};a22_0x465e4e['Key']=a22_0x1ddaa2(0x131),a22_0x465e4e[a22_0x1ddaa2(0xeb)]=a22_0x1ddaa2(0xfb);const common_hst_tags_list=[a22_0x3cd74e,a22_0x465e4e];if(process[a22_0x1ddaa2(0xed)][a22_0x1ddaa2(0xec)]){const parsedTags=process[a22_0x1ddaa2(0xed)][a22_0x1ddaa2(0xec)][a22_0x1ddaa2(0x12c)](',');parsedTags[a22_0x1ddaa2(0xf8)](_0x576a0e=>{const _0x17a239=a22_0x1ddaa2,_0x1e9f35=_0x576a0e[_0x17a239(0x12c)](':'),_0x12b903={};_0x12b903[_0x17a239(0xee)]=_0x1e9f35[0x0],_0x12b903['Value']=_0x1e9f35[0x1],common_hst_tags_list['push'](_0x12b903);});}exports[a22_0x1ddaa2(0x126)]=common_hst_tags_list;const a22_0x475e48={};a22_0x475e48[a22_0x1ddaa2(0x133)]=a22_0x1ddaa2(0xe6),a22_0x475e48['browserstack:service']=a22_0x1ddaa2(0xfb),exports[a22_0x1ddaa2(0x130)]=a22_0x475e48,exports[a22_0x1ddaa2(0x13e)]=[this[a22_0x1ddaa2(0xf4)]];const a22_0x2fee5e={};a22_0x2fee5e[a22_0x1ddaa2(0x11d)]=a22_0x1ddaa2(0xf2),a22_0x2fee5e['RESOURCES']=a22_0x1ddaa2(0x117),a22_0x2fee5e['GRID_URL']=a22_0x1ddaa2(0x12d),a22_0x2fee5e[a22_0x1ddaa2(0xf3)]=a22_0x1ddaa2(0xe4),a22_0x2fee5e[a22_0x1ddaa2(0x111)]=a22_0x1ddaa2(0x12e),exports[a22_0x1ddaa2(0x137)]=a22_0x2fee5e,exports[a22_0x1ddaa2(0x108)]={},exports[a22_0x1ddaa2(0xe5)]=a22_0x1ddaa2(0x11c);const a22_0xd8b232={};a22_0xd8b232['root']=a22_0x1ddaa2(0xe2)+this[a22_0x1ddaa2(0xe5)],a22_0xd8b232[a22_0x1ddaa2(0x10b)]=a22_0x1ddaa2(0xf6)+this[a22_0x1ddaa2(0xe5)],a22_0xd8b232[a22_0x1ddaa2(0x10d)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this['LINK_MESSAGE'],a22_0xd8b232[a22_0x1ddaa2(0x102)]=a22_0x1ddaa2(0x107)+this[a22_0x1ddaa2(0xe5)],a22_0xd8b232[a22_0x1ddaa2(0x134)]={},a22_0xd8b232[a22_0x1ddaa2(0x110)]=a22_0x1ddaa2(0xfe)+this['LINK_MESSAGE'],a22_0xd8b232[a22_0x1ddaa2(0x118)]=a22_0x1ddaa2(0xe7)+this[a22_0x1ddaa2(0xe5)],a22_0xd8b232['start']='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x1ddaa2(0xe5)],a22_0xd8b232[a22_0x1ddaa2(0xf5)]='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this[a22_0x1ddaa2(0xe5)],a22_0xd8b232[a22_0x1ddaa2(0xe3)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0xd8b232[a22_0x1ddaa2(0x134)][a22_0x1ddaa2(0x11e)]=a22_0x1ddaa2(0x124)+this[a22_0x1ddaa2(0xe5)],a22_0xd8b232[a22_0x1ddaa2(0x134)]['grid']=a22_0x1ddaa2(0x104)+this[a22_0x1ddaa2(0xe5)],a22_0xd8b232[a22_0x1ddaa2(0x134)][a22_0x1ddaa2(0x101)]=a22_0x1ddaa2(0x13b)+this[a22_0x1ddaa2(0xe5)],exports[a22_0x1ddaa2(0x140)]=a22_0xd8b232,exports['HELP_FOOTER_MESSAGE']='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x4948ce={};a22_0x4948ce[a22_0x1ddaa2(0x106)]=a22_0x1ddaa2(0x123),a22_0x4948ce['ERROR']=a22_0x1ddaa2(0x10c),a22_0x4948ce[a22_0x1ddaa2(0x141)]=a22_0x1ddaa2(0x10e),a22_0x4948ce['WARNING']=a22_0x1ddaa2(0xea),a22_0x4948ce[a22_0x1ddaa2(0x103)]=a22_0x1ddaa2(0xfc),a22_0x4948ce['NULL']=null,exports[a22_0x1ddaa2(0x125)]=a22_0x4948ce,exports[a22_0x1ddaa2(0x11b)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x1ddaa2(0x109)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x1ddaa2(0x116)]='[REDACTED]';function a22_0x3476(_0x108579,_0x131c3b){const _0x185050=a22_0x1850();return a22_0x3476=function(_0x3476f8,_0x5d7555){_0x3476f8=_0x3476f8-0xe0;let _0x5bd6ee=_0x185050[_0x3476f8];return _0x5bd6ee;},a22_0x3476(_0x108579,_0x131c3b);}const a22_0xe9f96e={};a22_0xe9f96e['grid-profile']='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';function a22_0x1850(){const _0x5aec2d=['BSTACK-ATS-CLUSTER-HUB-HA','BrowserStack-Automate-TurboScale','unknown','WS_ENDPOINT','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','BSTACK-ATS-CLUSTER','CLUSTER','gridProfile','create','UNKNOWN','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','40328630ckBCJA','SUCCESS','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','global_registry','RAW_ARGS_REGEX','api.browserstack.com','init','error','configure','info','high-scale-grid-cluster','delete','CLI_RUN_FINISHED','us-east-1','TRIAL_GRID_URL','GCP','2eseaQd','REDACTED','resourceInfo','connect','azure','BrowserStackIAMUser','CLI_ARGS_REGEX','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','LOG','root','BS_API_URL','9oDxlyq','AZURE','2492854SFQvtm','success','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','messageTypes','COMMON_HST_TAGS','CLOUD_PROVIDER','ALL_SUPPORTED_CLOUD_PROVIDERS','2437432LWALbC','REGION','710108yabMlq','split','gridUrl','cliRunFinished','dotenv','HST_CLUSTER_TAGS','browserstack:service','CLUSTER_DEP_STACK_NAME','browserstack:managedBy','list','aws','815190SnKznL','WS_EVENTS','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','gcp','DASHBOARD_ENDPOINT','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','AG_API_URL','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','SUPPORTED_CLOUD_PROVIDERS','25rozopW','HELP_HEADER_MESSAGE','INFO','DEFAULT_CLUSTER_DETAILS','CLUSTER_AUTOSCALER_STACK_NAME','IAM_USER_NAME','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','pre_check','cliRunStarted','LINK_MESSAGE','BrowserStack','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','pre-check','5394552wsvbnx','warning','Value','TURBOSCALE_CUSTOM_TAGS','env','Key','MessageDescription','credentials','grid-api.browserstack.com','log','CLI_RUN_STARTED','AWS','stop','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','grid.browserstack.com','forEach','383604uzfqqD'];a22_0x1850=function(){return _0x5aec2d;};return a22_0x1850();}const a22_0x4ea45d={};a22_0x4ea45d[a22_0x1ddaa2(0xe8)]=a22_0xe9f96e,exports[a22_0x1ddaa2(0xef)]=a22_0x4ea45d,exports[a22_0x1ddaa2(0x113)]=a22_0x1ddaa2(0x13d);const a22_0x51ef45={};a22_0x51ef45[a22_0x1ddaa2(0x100)]=a22_0x1ddaa2(0x10f),a22_0x51ef45[a22_0x1ddaa2(0x127)]=a22_0x1ddaa2(0x135),a22_0x51ef45[a22_0x1ddaa2(0x12a)]=a22_0x1ddaa2(0x112),exports[a22_0x1ddaa2(0x142)]=a22_0x51ef45;
1
+ const a22_0x57df00=a22_0x4242;(function(_0xddab4f,_0x1d0756){const _0x22dd63=a22_0x4242,_0xcfc768=_0xddab4f();while(!![]){try{const _0x592fce=parseInt(_0x22dd63(0xd5))/0x1+-parseInt(_0x22dd63(0xc1))/0x2*(-parseInt(_0x22dd63(0xc5))/0x3)+parseInt(_0x22dd63(0xbf))/0x4*(-parseInt(_0x22dd63(0xdc))/0x5)+parseInt(_0x22dd63(0xcc))/0x6*(parseInt(_0x22dd63(0xb4))/0x7)+parseInt(_0x22dd63(0xcd))/0x8*(-parseInt(_0x22dd63(0xb3))/0x9)+parseInt(_0x22dd63(0xfa))/0xa+parseInt(_0x22dd63(0x113))/0xb*(-parseInt(_0x22dd63(0xdb))/0xc);if(_0x592fce===_0x1d0756)break;else _0xcfc768['push'](_0xcfc768['shift']());}catch(_0x567a24){_0xcfc768['push'](_0xcfc768['shift']());}}}(a22_0x1c9a,0xcdf55),require('dotenv')[a22_0x57df00(0xc8)](),exports[a22_0x57df00(0x107)]=process[a22_0x57df00(0xd2)]['DASHBOARD_ENDPOINT']||'grid.browserstack.com',exports[a22_0x57df00(0xe8)]=process[a22_0x57df00(0xd2)][a22_0x57df00(0xe8)]||a22_0x57df00(0xef),exports[a22_0x57df00(0xe7)]=process['env'][a22_0x57df00(0xe7)]||'grid-api.browserstack.com',exports[a22_0x57df00(0xd1)]=a22_0x57df00(0xb5)+this[a22_0x57df00(0xe7)]+a22_0x57df00(0xb2),exports['CP_CONFIG_FILE']=a22_0x57df00(0xe0),exports[a22_0x57df00(0xec)]=a22_0x57df00(0xb7),exports[a22_0x57df00(0xf1)]=a22_0x57df00(0x105),exports[a22_0x57df00(0x10f)]=a22_0x57df00(0xd9),exports['CLUSTER_DEP_STACK_NAME']=a22_0x57df00(0xde),exports[a22_0x57df00(0x106)]=a22_0x57df00(0x104),exports[a22_0x57df00(0x103)]=a22_0x57df00(0x112),exports[a22_0x57df00(0xab)]='browserstack-turboscale-grid',exports[a22_0x57df00(0xc9)]='azure',exports[a22_0x57df00(0xc2)]=a22_0x57df00(0xf4),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x57df00(0x10f)],this[a22_0x57df00(0xc9)],this[a22_0x57df00(0xc2)]]);const a22_0x5e3f47={};a22_0x5e3f47[a22_0x57df00(0x108)]=a22_0x57df00(0xe2),a22_0x5e3f47[a22_0x57df00(0x102)]=a22_0x57df00(0x10e);const a22_0x5d8a83={};a22_0x5d8a83[a22_0x57df00(0x108)]=a22_0x57df00(0xcf),a22_0x5d8a83[a22_0x57df00(0x102)]=a22_0x57df00(0x109);const common_hst_tags_list=[a22_0x5e3f47,a22_0x5d8a83];if(process[a22_0x57df00(0xd2)]['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x57df00(0xd2)][a22_0x57df00(0xac)][a22_0x57df00(0xb1)](',');parsedTags['forEach'](_0x5bdd62=>{const _0x4ef662=a22_0x57df00,_0x4ebc5c=_0x5bdd62['split'](':'),_0x54360c={};_0x54360c[_0x4ef662(0x108)]=_0x4ebc5c[0x0],_0x54360c[_0x4ef662(0x102)]=_0x4ebc5c[0x1],common_hst_tags_list[_0x4ef662(0xf8)](_0x54360c);});}exports[a22_0x57df00(0xf6)]=common_hst_tags_list;const a22_0x513172={};function a22_0x4242(_0x33492a,_0x59bae8){const _0x1c9aeb=a22_0x1c9a();return a22_0x4242=function(_0x4242c2,_0x3589f7){_0x4242c2=_0x4242c2-0xab;let _0x4199b5=_0x1c9aeb[_0x4242c2];return _0x4199b5;},a22_0x4242(_0x33492a,_0x59bae8);}a22_0x513172[a22_0x57df00(0xe2)]=a22_0x57df00(0x10e),a22_0x513172[a22_0x57df00(0xcf)]=a22_0x57df00(0x109),exports[a22_0x57df00(0xfd)]=a22_0x513172,exports[a22_0x57df00(0xbe)]=[this[a22_0x57df00(0x10f)]];const a22_0x55cb1b={};a22_0x55cb1b[a22_0x57df00(0xe1)]=a22_0x57df00(0xc4),a22_0x55cb1b[a22_0x57df00(0xba)]=a22_0x57df00(0xda),a22_0x55cb1b[a22_0x57df00(0xc3)]=a22_0x57df00(0x100),a22_0x55cb1b['CLI_RUN_STARTED']=a22_0x57df00(0xaf),a22_0x55cb1b[a22_0x57df00(0xf0)]='cliRunFinished',exports[a22_0x57df00(0x101)]=a22_0x55cb1b,exports[a22_0x57df00(0xd4)]={},exports['LINK_MESSAGE']=a22_0x57df00(0x10d);const a22_0x26613={};function a22_0x1c9a(){const _0x2646b6=['high-scale-grid-cluster','BSTACK-ATS-CLUSTER','pre-check','credentials','LOG','browserstack:managedBy','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','success','AG_API_URL','BS_API_URL','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','stop','unknown','IAM_USER_NAME','grid','grid-profile','api.browserstack.com','CLI_RUN_FINISHED','DEFAULT_GRID_NAME','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','gcp','CLUSTER','COMMON_HST_TAGS','CLOUD_PROVIDER','push','CLI_ARGS_REGEX','9526800eTItHC','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','HST_CLUSTER_TAGS','root','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','gridUrl','WS_EVENTS','Value','CLUSTER_HUB_HA_STACK_NAME','BSTACK-ATS-CLUSTER-AUTOSCALER','high-scale-grid','CLUSTER_AUTOSCALER_STACK_NAME','DASHBOARD_ENDPOINT','Key','BrowserStack-Automate-TurboScale','start','pre_check','TRIAL_GRID_URL','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','BrowserStack','AWS','HELP_FOOTER_MESSAGE','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','BSTACK-ATS-CLUSTER-HUB-HA','233882WDzwOx','TURBOSCALE_DEPLOYMENT','TURBOSCALE_CUSTOM_TAGS','LINK_MESSAGE','[REDACTED]','cliRunStarted','us-east-1','split','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','269469xTgLED','4760371JXvFdw','wss://','DEFAULT_CLUSTER_DETAILS','BrowserStackIAMUser','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','RESOURCES','connect','init','gridProfile','SUPPORTED_CLOUD_PROVIDERS','4312236BSthLG','info','2ftcrdA','GCP','GRID_URL','log','2314749LXtNCn','INFO','NULL','config','AZURE','SUCCESS','error','12nVLeul','152XgoDfv','configure','browserstack:service','messageTypes','WS_ENDPOINT','env','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','global_registry','256654aEQOzF','list','WARNING','MessageDescription','aws','resourceInfo','480zlxPUU','5Tdfswa'];a22_0x1c9a=function(){return _0x2646b6;};return a22_0x1c9a();}a22_0x26613[a22_0x57df00(0xfe)]=a22_0x57df00(0xf2)+this[a22_0x57df00(0xad)],a22_0x26613[a22_0x57df00(0xbc)]=a22_0x57df00(0xb9)+this['LINK_MESSAGE'],a22_0x26613[a22_0x57df00(0xce)]=a22_0x57df00(0xf3)+this['LINK_MESSAGE'],a22_0x26613['create']=a22_0x57df00(0xe4)+this['LINK_MESSAGE'],a22_0x26613[a22_0x57df00(0xd6)]={},a22_0x26613['delete']=a22_0x57df00(0x111)+this[a22_0x57df00(0xad)],a22_0x26613[a22_0x57df00(0xbb)]=a22_0x57df00(0xd3)+this[a22_0x57df00(0xad)],a22_0x26613[a22_0x57df00(0x10a)]=a22_0x57df00(0xe9)+this[a22_0x57df00(0xad)],a22_0x26613[a22_0x57df00(0xea)]=a22_0x57df00(0xe3)+this[a22_0x57df00(0xad)],a22_0x26613[a22_0x57df00(0x10b)]=a22_0x57df00(0xfb)+this[a22_0x57df00(0xad)],a22_0x26613[a22_0x57df00(0xd6)]['root']=a22_0x57df00(0xff)+this[a22_0x57df00(0xad)],a22_0x26613[a22_0x57df00(0xd6)][a22_0x57df00(0xed)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a22_0x57df00(0xad)],a22_0x26613[a22_0x57df00(0xd6)][a22_0x57df00(0xbd)]=a22_0x57df00(0xe5)+this[a22_0x57df00(0xad)],exports['HELP_HEADER_MESSAGE']=a22_0x26613,exports[a22_0x57df00(0x110)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x36abeb={};a22_0x36abeb[a22_0x57df00(0xca)]=a22_0x57df00(0xe6),a22_0x36abeb['ERROR']=a22_0x57df00(0xcb),a22_0x36abeb[a22_0x57df00(0xc6)]=a22_0x57df00(0xc0),a22_0x36abeb[a22_0x57df00(0xd7)]='warning',a22_0x36abeb['UNKNOWN']=a22_0x57df00(0xeb),a22_0x36abeb[a22_0x57df00(0xc7)]=null,exports[a22_0x57df00(0xd0)]=a22_0x36abeb,exports[a22_0x57df00(0xf9)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x57df00(0xae);const a22_0x19bc60={};a22_0x19bc60[a22_0x57df00(0xee)]=a22_0x57df00(0xb8);const a22_0x34dee6={};a22_0x34dee6[a22_0x57df00(0xdf)]=a22_0x19bc60,exports[a22_0x57df00(0xd8)]=a22_0x34dee6,exports[a22_0x57df00(0x10c)]=a22_0x57df00(0xfc);const a22_0xc187d8={};a22_0xc187d8[a22_0x57df00(0xf5)]=a22_0x57df00(0xdd),a22_0xc187d8[a22_0x57df00(0xf7)]=a22_0x57df00(0xd9),a22_0xc187d8['REGION']=a22_0x57df00(0xb0),exports[a22_0x57df00(0xb6)]=a22_0xc187d8;
@@ -1 +1 @@
1
- function a23_0x5cfe(){const _0x453540=['log','events.log','2976770GBMNPX','timestamp','fileLogger','printf','logger','usage.log','existsSync','1273994MZAVCi','debug','createLogger','35043lrdGOD','path','transports','YYYY-MM-DD\x20HH:mm:ss','44668cuWukZ','52vCvKfc','colorize','console.info','message','40IpvieC','\x20-\x20','5536530TGVUKT','mkdirSync','824460EnaboS','File','1063008rEKtkp','level','format','join','combine'];a23_0x5cfe=function(){return _0x453540;};return a23_0x5cfe();}const a23_0x40e264=a23_0x1033;(function(_0x2e80fa,_0x3b2a54){const _0x28f770=a23_0x1033,_0x220cda=_0x2e80fa();while(!![]){try{const _0x1baad0=parseInt(_0x28f770(0x80))/0x1+-parseInt(_0x28f770(0x79))/0x2+-parseInt(_0x28f770(0x7c))/0x3*(-parseInt(_0x28f770(0x81))/0x4)+parseInt(_0x28f770(0x72))/0x5+parseInt(_0x28f770(0x67))/0x6+parseInt(_0x28f770(0x69))/0x7+-parseInt(_0x28f770(0x65))/0x8*(parseInt(_0x28f770(0x6b))/0x9);if(_0x1baad0===_0x3b2a54)break;else _0x220cda['push'](_0x220cda['shift']());}catch(_0x3fa7d0){_0x220cda['push'](_0x220cda['shift']());}}}(a23_0x5cfe,0x93ab5));const winston=require('winston'),fs=require('fs'),path=require(a23_0x40e264(0x7d)),logDir=a23_0x40e264(0x70);!fs[a23_0x40e264(0x78)](logDir)&&fs[a23_0x40e264(0x68)](logDir);const a23_0x572e6c={};a23_0x572e6c[a23_0x40e264(0x6d)]=a23_0x40e264(0x7f);const a23_0x4f426a={};a23_0x4f426a[a23_0x40e264(0x6c)]=!![];const a23_0x5de090={};function a23_0x1033(_0x4d093f,_0x31cde3){const _0x5cfedb=a23_0x5cfe();return a23_0x1033=function(_0x1033e1,_0x21f249){_0x1033e1=_0x1033e1-0x64;let _0x49a364=_0x5cfedb[_0x1033e1];return _0x49a364;},a23_0x1033(_0x4d093f,_0x31cde3);}a23_0x5de090['name']=a23_0x40e264(0x83),exports[a23_0x40e264(0x76)]=new winston[(a23_0x40e264(0x7b))]({'format':winston[a23_0x40e264(0x6d)][a23_0x40e264(0x6f)](winston[a23_0x40e264(0x6d)]['timestamp'](a23_0x572e6c),winston[a23_0x40e264(0x6d)][a23_0x40e264(0x82)](a23_0x4f426a),winston['format'][a23_0x40e264(0x75)](_0x525664=>_0x525664[a23_0x40e264(0x73)]+a23_0x40e264(0x66)+_0x525664[a23_0x40e264(0x6c)]+':\x20'+_0x525664[a23_0x40e264(0x64)])),'transports':[new winston[(a23_0x40e264(0x7e))]['Console'](a23_0x5de090),new winston[(a23_0x40e264(0x7e))][(a23_0x40e264(0x6a))]({'filename':path['join'](logDir,a23_0x40e264(0x71)),'level':a23_0x40e264(0x7a)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x40e264(0x7e))][(a23_0x40e264(0x6a))]({'filename':path[a23_0x40e264(0x6e)](logDir,a23_0x40e264(0x77)),'level':a23_0x40e264(0x7a)})]};exports[a23_0x40e264(0x74)]=new winston[(a23_0x40e264(0x7b))](winstonFileLoggerParams);
1
+ const a23_0x4c5549=a23_0x1a91;(function(_0x1df351,_0x423251){const _0x161ca6=a23_0x1a91,_0x34712b=_0x1df351();while(!![]){try{const _0x44f01d=-parseInt(_0x161ca6(0x1f0))/0x1+-parseInt(_0x161ca6(0x1dd))/0x2*(parseInt(_0x161ca6(0x1e2))/0x3)+-parseInt(_0x161ca6(0x1e4))/0x4*(-parseInt(_0x161ca6(0x1fa))/0x5)+-parseInt(_0x161ca6(0x1e7))/0x6+-parseInt(_0x161ca6(0x1f6))/0x7+parseInt(_0x161ca6(0x1df))/0x8+parseInt(_0x161ca6(0x1e3))/0x9;if(_0x44f01d===_0x423251)break;else _0x34712b['push'](_0x34712b['shift']());}catch(_0x541a1e){_0x34712b['push'](_0x34712b['shift']());}}}(a23_0x2330,0xa9e03));const winston=require(a23_0x4c5549(0x1ed)),fs=require('fs'),path=require(a23_0x4c5549(0x1f7)),logDir=a23_0x4c5549(0x1fb);!fs[a23_0x4c5549(0x1f5)](logDir)&&fs['mkdirSync'](logDir);const a23_0x3b33c6={};a23_0x3b33c6[a23_0x4c5549(0x1ee)]=a23_0x4c5549(0x1de);function a23_0x1a91(_0x528260,_0x4200b9){const _0x2330f5=a23_0x2330();return a23_0x1a91=function(_0x1a912c,_0x58e432){_0x1a912c=_0x1a912c-0x1dd;let _0x9c1839=_0x2330f5[_0x1a912c];return _0x9c1839;},a23_0x1a91(_0x528260,_0x4200b9);}const a23_0x2be898={};a23_0x2be898[a23_0x4c5549(0x1e9)]=!![];const a23_0x1ae438={};a23_0x1ae438[a23_0x4c5549(0x1e5)]=a23_0x4c5549(0x1f8),exports[a23_0x4c5549(0x1f3)]=new winston[(a23_0x4c5549(0x1f1))]({'format':winston['format'][a23_0x4c5549(0x1ea)](winston[a23_0x4c5549(0x1ee)][a23_0x4c5549(0x1ef)](a23_0x3b33c6),winston[a23_0x4c5549(0x1ee)][a23_0x4c5549(0x1e0)](a23_0x2be898),winston[a23_0x4c5549(0x1ee)]['printf'](_0x202c0a=>_0x202c0a[a23_0x4c5549(0x1ef)]+a23_0x4c5549(0x1ec)+_0x202c0a[a23_0x4c5549(0x1e9)]+':\x20'+_0x202c0a[a23_0x4c5549(0x1e6)])),'transports':[new winston[(a23_0x4c5549(0x1eb))][(a23_0x4c5549(0x1e8))](a23_0x1ae438),new winston[(a23_0x4c5549(0x1eb))][(a23_0x4c5549(0x1e1))]({'filename':path['join'](logDir,'events.log'),'level':'debug'})]});function a23_0x2330(){const _0x2d43f6=['6799284ojvANk','Console','level','combine','transports','\x20-\x20','winston','format','timestamp','292080UvnmZr','createLogger','debug','logger','usage.log','existsSync','2306395kPRnJO','path','console.info','join','3243725JTDkwx','log','6386wIWxrA','YYYY-MM-DD\x20HH:mm:ss','10366200KKQllc','colorize','File','9uOxoup','4640841wrvniF','4nqwKNZ','name','message'];a23_0x2330=function(){return _0x2d43f6;};return a23_0x2330();}const winstonFileLoggerParams={'transports':[new winston[(a23_0x4c5549(0x1eb))][(a23_0x4c5549(0x1e1))]({'filename':path[a23_0x4c5549(0x1f9)](logDir,a23_0x4c5549(0x1f4)),'level':a23_0x4c5549(0x1f2)})]};exports['fileLogger']=new winston['createLogger'](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function a24_0x1ebb(){const _0x138fe1=['uVjnB','1021494zQaPEU','commands','help','./config/constants','13mmIPUO','4515456SvTLDW','commandDir','QMXnu','2965445ThzgWE','22520tBxDsI','113654hebnSt','root','17841070SRygEX','epilogue','878931qbgRfB','3717vzYrUt','7Xsusva','usage','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE'];a24_0x1ebb=function(){return _0x138fe1;};return a24_0x1ebb();}const a24_0x2fe622=a24_0x1ec9;(function(_0x505fd9,_0x4ce58c){const _0x123665=a24_0x1ec9,_0x14a91e=_0x505fd9();while(!![]){try{const _0x3d9b30=-parseInt(_0x123665(0x1f1))/0x1*(-parseInt(_0x123665(0x1e3))/0x2)+-parseInt(_0x123665(0x1e7))/0x3+-parseInt(_0x123665(0x1f2))/0x4+parseInt(_0x123665(0x1f5))/0x5+parseInt(_0x123665(0x1ed))/0x6*(parseInt(_0x123665(0x1e9))/0x7)+parseInt(_0x123665(0x1e2))/0x8*(-parseInt(_0x123665(0x1e8))/0x9)+parseInt(_0x123665(0x1e5))/0xa;if(_0x3d9b30===_0x4ce58c)break;else _0x14a91e['push'](_0x14a91e['shift']());}catch(_0x3d605f){_0x14a91e['push'](_0x14a91e['shift']());}}}(a24_0x1ebb,0xab540));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x2fe622(0x1f0));function a24_0x1ec9(_0xe128f1,_0x59064f){const _0x1ebb92=a24_0x1ebb();return a24_0x1ec9=function(_0x1ec920,_0x13d94d){_0x1ec920=_0x1ec920-0x1e2;let _0x2c60f9=_0x1ebb92[_0x1ec920];return _0x2c60f9;},a24_0x1ec9(_0xe128f1,_0x59064f);}process['env'][a24_0x2fe622(0x1eb)]=0x1;function run(_0x2611d1){const _0x50640e=a24_0x2fe622,_0x40fdac={};_0x40fdac['QMXnu']=_0x50640e(0x1ee),_0x40fdac[_0x50640e(0x1ec)]=_0x50640e(0x1ef);const _0x58bc9d=_0x40fdac;_0x2611d1[_0x50640e(0x1ea)](HELP_HEADER_MESSAGE[_0x50640e(0x1e4)])[_0x50640e(0x1f3)](_0x58bc9d[_0x50640e(0x1f4)])['demandCommand']()['help'](_0x58bc9d[_0x50640e(0x1ec)])[_0x50640e(0x1e6)](HELP_FOOTER_MESSAGE);}module['exports']=run;
2
+ 'use strict';function a24_0x53ed(){const _0x298ef9=['OaXCy','demandCommand','10630gYypRU','commands','help','7232561HflluK','1756420BrRkGW','root','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','1966968vFobOZ','116stRgWN','env','3iPvguJ','25483440wIesoQ','826565wOsVmQ','eMRKq','10323180YMALLL','8NeIIgo'];a24_0x53ed=function(){return _0x298ef9;};return a24_0x53ed();}const a24_0x5999d7=a24_0x316d;(function(_0x5a8115,_0x4d60ea){const _0x2e727e=a24_0x316d,_0x227204=_0x5a8115();while(!![]){try{const _0x819e68=-parseInt(_0x2e727e(0x8e))/0x1*(-parseInt(_0x2e727e(0x84))/0x2)+parseInt(_0x2e727e(0x86))/0x3*(parseInt(_0x2e727e(0x92))/0x4)+-parseInt(_0x2e727e(0x88))/0x5+-parseInt(_0x2e727e(0x8a))/0x6+parseInt(_0x2e727e(0x91))/0x7*(-parseInt(_0x2e727e(0x8b))/0x8)+parseInt(_0x2e727e(0x83))/0x9+parseInt(_0x2e727e(0x87))/0xa;if(_0x819e68===_0x4d60ea)break;else _0x227204['push'](_0x227204['shift']());}catch(_0x94fd72){_0x227204['push'](_0x227204['shift']());}}}(a24_0x53ed,0xdc933));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process[a24_0x5999d7(0x85)][a24_0x5999d7(0x82)]=0x1;function run(_0x3e82c1){const _0x2e96c6=a24_0x5999d7,_0x3ca4b8={};_0x3ca4b8[_0x2e96c6(0x8c)]=_0x2e96c6(0x8f),_0x3ca4b8[_0x2e96c6(0x89)]=_0x2e96c6(0x90);const _0x2a9139=_0x3ca4b8;_0x3e82c1['usage'](HELP_HEADER_MESSAGE[_0x2e96c6(0x81)])['commandDir'](_0x2a9139[_0x2e96c6(0x8c)])[_0x2e96c6(0x8d)]()[_0x2e96c6(0x90)](_0x2a9139[_0x2e96c6(0x89)])['epilogue'](HELP_FOOTER_MESSAGE);}function a24_0x316d(_0x4cf2cd,_0x39f611){const _0x53eda0=a24_0x53ed();return a24_0x316d=function(_0x316d50,_0xfcd97b){_0x316d50=_0x316d50-0x81;let _0x3f3ec9=_0x53eda0[_0x316d50];return _0x3f3ec9;},a24_0x316d(_0x4cf2cd,_0x39f611);}module['exports']=run;