browserstack-node-sdk 1.36.3 → 1.36.4

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
+ const a15_0x3cbe9d=a15_0x4f50;(function(_0x2711f9,_0x500dc1){const _0xc664aa=a15_0x4f50,_0x490d13=_0x2711f9();while(!![]){try{const _0x167105=parseInt(_0xc664aa(0x1e4))/0x1*(parseInt(_0xc664aa(0x1b7))/0x2)+-parseInt(_0xc664aa(0x1ba))/0x3+-parseInt(_0xc664aa(0x1eb))/0x4+-parseInt(_0xc664aa(0x1de))/0x5+-parseInt(_0xc664aa(0x1ae))/0x6+-parseInt(_0xc664aa(0x1bf))/0x7*(parseInt(_0xc664aa(0x1d1))/0x8)+parseInt(_0xc664aa(0x1ab))/0x9;if(_0x167105===_0x500dc1)break;else _0x490d13['push'](_0x490d13['shift']());}catch(_0x56e85b){_0x490d13['push'](_0x490d13['shift']());}}}(a15_0x136b,0xe59d5));function a15_0x4f50(_0x2b09c3,_0x85e853){const _0x136b39=a15_0x136b();return a15_0x4f50=function(_0x4f5099,_0x750f77){_0x4f5099=_0x4f5099-0x1a9;let _0x4e0321=_0x136b39[_0x4f5099];return _0x4e0321;},a15_0x4f50(_0x2b09c3,_0x85e853);}const fs=require('fs'),got=require('got'),{table}=require(a15_0x3cbe9d(0x1e9)),{v4:uuidv4}=require(a15_0x3cbe9d(0x1e2)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x3cbe9d(0x1ea)),{getCredentialsPath,getAuthHeader}=require(a15_0x3cbe9d(0x1e5)),{sendInstrumentationEvent}=require(a15_0x3cbe9d(0x1df));exports['command']=a15_0x3cbe9d(0x1b5),exports[a15_0x3cbe9d(0x1d9)]=a15_0x3cbe9d(0x1b2),exports['builder']=function(_0x549b3c){const _0x4bb646=a15_0x3cbe9d,_0x537929={};_0x537929['oSfwG']=_0x4bb646(0x1af),_0x537929[_0x4bb646(0x1f8)]=_0x4bb646(0x1c2),_0x537929[_0x4bb646(0x1f9)]=_0x4bb646(0x1fd);const _0x32feec=_0x537929,_0x5a974e={};_0x5a974e[_0x4bb646(0x1e3)]=_0x32feec[_0x4bb646(0x1fa)],_0x5a974e['type']=_0x32feec[_0x4bb646(0x1f8)];const _0x3fbf6b={};return _0x3fbf6b[_0x4bb646(0x1d8)]=_0x5a974e,_0x549b3c[_0x4bb646(0x1be)](HELP_HEADER_MESSAGE[_0x4bb646(0x1cc)][_0x4bb646(0x1cf)])[_0x4bb646(0x1f4)](HELP_FOOTER_MESSAGE)[_0x4bb646(0x1f1)](_0x3fbf6b)[_0x4bb646(0x1fd)](_0x32feec['mPSdc'])[_0x4bb646(0x1b9)];},exports['handler']=async function(_0xeadc43){const _0x68cb77=a15_0x3cbe9d,_0x48f5bb={'QTDkV':function(_0x6a4d8c){return _0x6a4d8c();},'HHwmO':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','yXiMZ':function(_0x1aa017,_0x36bca9,_0x4e313b,_0x28a1e4,_0x515bdf,_0x5d9558,_0x14bdec){return _0x1aa017(_0x36bca9,_0x4e313b,_0x28a1e4,_0x515bdf,_0x5d9558,_0x14bdec);},'KgZDD':'list-grids-called','xRKwr':_0x68cb77(0x1b8),'nWIIl':_0x68cb77(0x1f0),'yrpvK':function(_0x288bdf,_0x2a16a7,_0x5c1761){return _0x288bdf(_0x2a16a7,_0x5c1761);},'qMqTy':function(_0x132a07,_0x1c41a7,_0x347fdc,_0x11eea2,_0x4f1f33,_0x20a2d1,_0x18479c){return _0x132a07(_0x1c41a7,_0x347fdc,_0x11eea2,_0x4f1f33,_0x20a2d1,_0x18479c);},'HXZjH':function(_0x2cdb1d,_0x121133){return _0x2cdb1d!==_0x121133;},'VAQgZ':function(_0x2b87ad,_0x569d23){return _0x2b87ad===_0x569d23;},'TlcrN':_0x68cb77(0x1cb),'fNwtW':_0x68cb77(0x1dd),'DlZWP':_0x68cb77(0x1b4),'oNHhe':_0x68cb77(0x1ce),'MBszI':_0x68cb77(0x1aa),'pSfky':_0x68cb77(0x1bd),'ROZgQ':'cluster-name','VInjU':function(_0x10db89,_0x4e4e5e){return _0x10db89(_0x4e4e5e);},'JODfg':_0x68cb77(0x1fc),'nppFA':_0x68cb77(0x1e6),'vQcCN':function(_0x4b0986,_0x4e7f7f,_0x3ada25,_0x2a588b,_0x2f7c20,_0x362c5e,_0x38ec54){return _0x4b0986(_0x4e7f7f,_0x3ada25,_0x2a588b,_0x2f7c20,_0x362c5e,_0x38ec54);},'ZckHO':_0x68cb77(0x1b3),'olQEx':_0x68cb77(0x1c4)};try{global_registry[_0x68cb77(0x1e8)]=_0x48f5bb[_0x68cb77(0x1f5)](uuidv4);!fs[_0x68cb77(0x1f6)](_0x48f5bb[_0x68cb77(0x1f5)](getCredentialsPath))&&(console[_0x68cb77(0x1bb)](_0x48f5bb['HHwmO']),await _0x48f5bb[_0x68cb77(0x1c3)](sendInstrumentationEvent,_0xeadc43,_0x48f5bb[_0x68cb77(0x1c8)],messageTypes['ERROR'],_0x48f5bb['xRKwr'],null,_0xeadc43),process[_0x68cb77(0x1b6)](0x1));const _0x6b1e91=JSON[_0x68cb77(0x1d0)](fs[_0x68cb77(0x1c0)](_0x48f5bb['QTDkV'](getCredentialsPath)));let _0x511d21=_0x68cb77(0x1f2)+AG_API_URL+_0x68cb77(0x1db);_0xeadc43[_0x68cb77(0x1e1)]&&(_0x511d21=_0x68cb77(0x1f2)+AG_API_URL+'/packages/cli/get-all-grids');const _0x57cb64={'method':_0x48f5bb[_0x68cb77(0x1ca)],'headers':_0x48f5bb['yrpvK'](getAuthHeader,_0x6b1e91[_0x68cb77(0x1da)][_0x68cb77(0x1bc)],_0x6b1e91[_0x68cb77(0x1da)][_0x68cb77(0x1ef)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x6b1e91['Browserstack'][_0x68cb77(0x1bc)],global_registry[_0x68cb77(0x1d3)]=_0x6b1e91['Browserstack'][_0x68cb77(0x1ef)],_0x48f5bb[_0x68cb77(0x1b1)](sendInstrumentationEvent,_0xeadc43,_0x48f5bb[_0x68cb77(0x1c8)],messageTypes[_0x68cb77(0x1ec)],null,null,_0xeadc43);const _0x125073=await _0x48f5bb[_0x68cb77(0x1c7)](got,_0x511d21,_0x57cb64);if(_0x48f5bb[_0x68cb77(0x1c6)](_0x125073,null)&&_0x48f5bb[_0x68cb77(0x1c6)](_0x125073,undefined)&&_0x48f5bb[_0x68cb77(0x1d5)](_0x125073[_0x68cb77(0x1e0)],0xc8)){const _0x2d5a9c=JSON['parse'](_0x125073[_0x68cb77(0x1d4)]);console[_0x68cb77(0x1ed)](_0x48f5bb['TlcrN']);const _0x44d674=[];_0x44d674[_0x68cb77(0x1f3)]([_0x48f5bb[_0x68cb77(0x1ad)],_0x48f5bb[_0x68cb77(0x1ac)],_0x48f5bb['oNHhe'],_0x48f5bb[_0x68cb77(0x1d2)],_0x48f5bb[_0x68cb77(0x1d6)],_0x48f5bb[_0x68cb77(0x1c5)]]),_0x2d5a9c[_0x68cb77(0x1f7)](_0x290857=>{const _0x37b7ff=_0x68cb77;_0x44d674['push']([_0x290857['id'],_0x290857['name'],_0x290857['status'],_0x290857[_0x37b7ff(0x1aa)],_0x290857[_0x37b7ff(0x1bd)],_0x290857[_0x37b7ff(0x1c1)]]);}),console['log'](_0x48f5bb[_0x68cb77(0x1cd)](table,_0x44d674)),process[_0x68cb77(0x1b6)](0x0);}_0x48f5bb['VAQgZ'](_0x125073['statusCode'],0x191)&&(console[_0x68cb77(0x1bb)](_0x48f5bb[_0x68cb77(0x1b0)]),await _0x48f5bb['qMqTy'](sendInstrumentationEvent,_0xeadc43,_0x48f5bb[_0x68cb77(0x1c8)],messageTypes[_0x68cb77(0x1e7)],_0x48f5bb[_0x68cb77(0x1dc)],null,_0xeadc43),process[_0x68cb77(0x1b6)](0x1)),console[_0x68cb77(0x1bb)](_0x68cb77(0x1fb)+JSON['stringify'](_0x125073)),await _0x48f5bb[_0x68cb77(0x1d7)](sendInstrumentationEvent,_0xeadc43,_0x48f5bb[_0x68cb77(0x1c8)],messageTypes[_0x68cb77(0x1e7)],_0x48f5bb[_0x68cb77(0x1a9)],_0x125073,_0xeadc43),process['exit'](0x1);}catch(_0x2f3cd2){console['error'](_0x68cb77(0x1ee)+_0x2f3cd2[_0x68cb77(0x1c9)]),await _0x48f5bb[_0x68cb77(0x1b1)](sendInstrumentationEvent,_0xeadc43,_0x48f5bb[_0x68cb77(0x1c8)],messageTypes[_0x68cb77(0x1e7)],_0x48f5bb['olQEx'],_0x2f3cd2,_0xeadc43),process['exit'](0x1);}};function a15_0x136b(){const _0x4c2117=['MBszI','bstackAccesskey','body','VAQgZ','pSfky','vQcCN','all-grids','desc','Browserstack','/packages/cli/get-grids','nppFA','grid-id','4260765SVOrxJ','../../utils/instrumentationUtils','statusCode','allGrids','uuid','description','42073HjESmH','../../utils/utilityMethods','unauthorised','ERROR','requestId','table','../../config/constants','2441884frESBB','INFO','log','Failed\x20to\x20list\x20resources!\x20Error:\x20','password','GET','options','https://','push','epilogue','QTDkV','existsSync','forEach','uYHpy','mPSdc','oSfwG','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','help','ZckHO','running','33740676ikAJGn','DlZWP','fNwtW','2859438FGOWOJ','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','JODfg','qMqTy','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','server-error','grid-name','grids','exit','64MEgbxd','init-not-called','argv','1442634CHyNPF','error','username','queued','usage','7ffYNat','readFileSync','clusterName','boolean','yXiMZ','unknown-error','ROZgQ','HXZjH','yrpvK','KgZDD','stack','nWIIl','\x0aFound\x20the\x20following\x20grids:\x0a','list','VInjU','status','grid','parse','13877792BLFBvI'];a15_0x136b=function(){return _0x4c2117;};return a15_0x136b();}
@@ -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
+ function a16_0x5244(_0x3d73c9,_0x3d0733){const _0x46006a=a16_0x4600();return a16_0x5244=function(_0x5244f4,_0x5f561f){_0x5244f4=_0x5244f4-0x15e;let _0x57f143=_0x46006a[_0x5244f4];return _0x57f143;},a16_0x5244(_0x3d73c9,_0x3d0733);}const a16_0x512fca=a16_0x5244;(function(_0x1f2e02,_0x5332ee){const _0x34feea=a16_0x5244,_0x4d0a54=_0x1f2e02();while(!![]){try{const _0x40a372=parseInt(_0x34feea(0x176))/0x1*(-parseInt(_0x34feea(0x172))/0x2)+-parseInt(_0x34feea(0x16f))/0x3+parseInt(_0x34feea(0x175))/0x4+-parseInt(_0x34feea(0x170))/0x5*(-parseInt(_0x34feea(0x15f))/0x6)+-parseInt(_0x34feea(0x178))/0x7*(-parseInt(_0x34feea(0x16b))/0x8)+parseInt(_0x34feea(0x174))/0x9*(-parseInt(_0x34feea(0x171))/0xa)+-parseInt(_0x34feea(0x15e))/0xb*(-parseInt(_0x34feea(0x16a))/0xc);if(_0x40a372===_0x5332ee)break;else _0x4d0a54['push'](_0x4d0a54['shift']());}catch(_0x11ed19){_0x4d0a54['push'](_0x4d0a54['shift']());}}}(a16_0x4600,0x92853));function a16_0x4600(){const _0x28fe7b=['104YRKlLr','LdzQd','NQqgD','pre-check','97695aFvsyi','5xHDqgs','28110fUuTfy','532QtZFIc','demandCommand','3537UWlopp','483492xIhCfR','2515RrTzai','builder','167538TahXyL','4107631aVmVoU','5124882haUrEt','../config/constants','precheck_commands','help','commandDir','epilogue','pre_check','strict','command','desc','recommendCommands','36nntIpx'];a16_0x4600=function(){return _0x28fe7b;};return a16_0x4600();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x512fca(0x160));exports[a16_0x512fca(0x167)]=a16_0x512fca(0x16e),exports[a16_0x512fca(0x168)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a16_0x512fca(0x177)]=function(_0x5c9a99){const _0x52cab3=a16_0x512fca,_0x4fb96f={};_0x4fb96f[_0x52cab3(0x16d)]=_0x52cab3(0x161),_0x4fb96f[_0x52cab3(0x16c)]=_0x52cab3(0x162);const _0x2a66a8=_0x4fb96f;return _0x5c9a99['usage'](HELP_HEADER_MESSAGE[_0x52cab3(0x165)])[_0x52cab3(0x164)](HELP_FOOTER_MESSAGE)[_0x52cab3(0x163)](_0x2a66a8[_0x52cab3(0x16d)])[_0x52cab3(0x173)]()[_0x52cab3(0x169)]()[_0x52cab3(0x166)]()[_0x52cab3(0x162)](_0x2a66a8[_0x52cab3(0x16c)]);},exports['handler']=function(_0x35042b){};
@@ -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_0x7329e3=a17_0x58c7;(function(_0xc14e35,_0x2cad4e){const _0x503257=a17_0x58c7,_0x2bf0c5=_0xc14e35();while(!![]){try{const _0x598f52=parseInt(_0x503257(0x188))/0x1*(parseInt(_0x503257(0x16b))/0x2)+parseInt(_0x503257(0x19b))/0x3*(parseInt(_0x503257(0x128))/0x4)+-parseInt(_0x503257(0x16f))/0x5+parseInt(_0x503257(0x158))/0x6+parseInt(_0x503257(0x186))/0x7+parseInt(_0x503257(0x1d1))/0x8*(-parseInt(_0x503257(0x1fe))/0x9)+-parseInt(_0x503257(0x1fa))/0xa;if(_0x598f52===_0x2cad4e)break;else _0x2bf0c5['push'](_0x2bf0c5['shift']());}catch(_0x27c242){_0x2bf0c5['push'](_0x2bf0c5['shift']());}}}(a17_0x1545,0x81d0a));const fs=require('fs'),ws=require('ws'),got=require(a17_0x7329e3(0x210)),{v4:uuidv4}=require(a17_0x7329e3(0x167)),ReconnectingWebSocket=require(a17_0x7329e3(0x181)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x7329e3(0x1a4)),{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('../../config/constants'),{getCloudProviderObjectWithOutInit}=require(a17_0x7329e3(0x196)),webSocketUtils=require(a17_0x7329e3(0x222)),{sendInstrumentationEvent}=require(a17_0x7329e3(0x1dc));exports[a17_0x7329e3(0x1e4)]=a17_0x7329e3(0x143),exports[a17_0x7329e3(0x1b2)]=a17_0x7329e3(0x1f1),exports[a17_0x7329e3(0x173)]=function(_0x2f76a9){const _0x46b286=a17_0x7329e3,_0x1b4cfe={};_0x1b4cfe[_0x46b286(0x224)]=_0x46b286(0x183),_0x1b4cfe[_0x46b286(0x155)]=_0x46b286(0x178),_0x1b4cfe[_0x46b286(0x1c4)]=_0x46b286(0x192),_0x1b4cfe[_0x46b286(0x1eb)]=_0x46b286(0x197),_0x1b4cfe[_0x46b286(0x13f)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x1b4cfe[_0x46b286(0x132)]=_0x46b286(0x161);const _0x3e732d=_0x1b4cfe,_0x302653={};_0x302653[_0x46b286(0x13e)]=_0x3e732d['MgVkY'],_0x302653[_0x46b286(0x1c8)]=_0x3e732d['hAawb'];const _0x29cefc={};_0x29cefc['description']=_0x3e732d[_0x46b286(0x1c4)],_0x29cefc[_0x46b286(0x1c8)]=_0x3e732d[_0x46b286(0x155)];const _0x4a4270={};_0x4a4270['description']=_0x3e732d[_0x46b286(0x1eb)],_0x4a4270['type']=_0x3e732d[_0x46b286(0x155)];const _0x199ace={};_0x199ace[_0x46b286(0x13e)]=_0x3e732d[_0x46b286(0x13f)],_0x199ace[_0x46b286(0x1c8)]=_0x3e732d['hAawb'];const _0x29c5b9={};return _0x29c5b9['cluster-name']=_0x302653,_0x29c5b9[_0x46b286(0x1b5)]=_0x29cefc,_0x29c5b9[_0x46b286(0x21b)]=_0x4a4270,_0x29c5b9[_0x46b286(0x205)]=_0x199ace,_0x2f76a9[_0x46b286(0x166)](HELP_HEADER_MESSAGE[_0x46b286(0x1d6)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x46b286(0x15d)](_0x29c5b9)[_0x46b286(0x161)](_0x3e732d[_0x46b286(0x132)])[_0x46b286(0x17e)];};function a17_0x58c7(_0x2df0dc,_0x592f5a){const _0x154584=a17_0x1545();return a17_0x58c7=function(_0x58c704,_0x14b4b0){_0x58c704=_0x58c704-0x127;let _0x25ad17=_0x154584[_0x58c704];return _0x25ad17;},a17_0x58c7(_0x2df0dc,_0x592f5a);}async function inputValidation(_0x1f6fd3,_0x1d60d2){const _0x9ff242=a17_0x7329e3,_0x3e641a={'fObsz':_0x9ff242(0x1cd),'FVlrP':'cluster-name','KyegZ':_0x9ff242(0x1b5),'IfMFV':_0x9ff242(0x183),'JRgco':_0x9ff242(0x178),'VoTsG':_0x9ff242(0x192),'HUVIV':_0x9ff242(0x197),'nhKGT':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','ZUHHs':_0x9ff242(0x161),'iSmVr':_0x9ff242(0x1f5),'qRUps':_0x9ff242(0x156),'ayXyX':'error','lusax':_0x9ff242(0x1d0),'EsQjF':_0x9ff242(0x1db),'AtMAQ':'region','rEUKQ':function(_0x101a64,_0x51e6e5){return _0x101a64+_0x51e6e5;},'cVCRJ':_0x9ff242(0x1ee),'AXwjR':_0x9ff242(0x17d),'fgslF':function(_0x2f6c0b,_0x162b72){return _0x2f6c0b||_0x162b72;},'drSTN':function(_0x59ef12,_0xa12954){return _0x59ef12!==_0xa12954;},'qCLTw':_0x9ff242(0x1f4),'EJzQB':_0x9ff242(0x211),'hcMRj':_0x9ff242(0x17b),'NktUH':function(_0x28a1ce,_0x92141){return _0x28a1ce!==_0x92141;},'oRDdP':_0x9ff242(0x225),'pMjha':_0x9ff242(0x20d),'BbbJk':function(_0x340ae5,_0x2be785){return _0x340ae5!==_0x2be785;},'voUno':_0x9ff242(0x15e),'JOsUP':function(_0x6333b8,_0x51e66d){return _0x6333b8===_0x51e66d;},'wAQau':'aPEqr','TfJad':'esEMK','YLYZC':function(_0x3c79bc,_0x544a30){return _0x3c79bc>_0x544a30;},'thiSf':function(_0x15d903,_0xbf9470){return _0x15d903!==_0xbf9470;},'SJTNK':_0x9ff242(0x170),'lLFdZ':_0x9ff242(0x144),'sbXbD':function(_0x3cf1e1,_0x2ab2af,_0x2c7059,_0x41990a,_0x406316,_0x5579ce,_0x4b9ebb,_0x5ac267){return _0x3cf1e1(_0x2ab2af,_0x2c7059,_0x41990a,_0x406316,_0x5579ce,_0x4b9ebb,_0x5ac267);},'hSBhb':_0x9ff242(0x1a5),'qCAFd':_0x9ff242(0x12a),'oyneF':_0x9ff242(0x223),'NKuDg':'DbwEw','fBlrm':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','MZRDx':_0x9ff242(0x16e),'IDIcr':_0x9ff242(0x1ad),'xrjBo':function(_0x588d70,_0x294c20){return _0x588d70===_0x294c20;},'XQVOn':'dWoCw','IMNbV':_0x9ff242(0x1e5),'rRAOL':_0x9ff242(0x14e),'YRYIn':function(_0x12ee0a,_0x5722cb,_0x2a69a2){return _0x12ee0a(_0x5722cb,_0x2a69a2);},'CoXKU':function(_0x19f240,_0x287609,_0x508801,_0x1ed333,_0x8be365,_0x5638fa){return _0x19f240(_0x287609,_0x508801,_0x1ed333,_0x8be365,_0x5638fa);},'RtYJO':_0x9ff242(0x12b),'xFuAR':'grid-profile','uDJBM':function(_0x478db6,_0x51fdde){return _0x478db6===_0x51fdde;},'sHXyf':function(_0xaa332f,_0x5bb110){return _0xaa332f!==_0x5bb110;},'ETHjV':'wDaFU','UapqK':function(_0x28e2ff,_0x2977a2){return _0x28e2ff(_0x2977a2);},'AKcah':function(_0x26a014,_0x40d298){return _0x26a014!==_0x40d298;},'hvamb':'CmVdF','FFCGZ':function(_0x5ba1f1,_0xeb0564,_0x155c5d,_0x187b0c,_0x3d66a6,_0x26d0ff,_0x43db50,_0x509be8){return _0x5ba1f1(_0xeb0564,_0x155c5d,_0x187b0c,_0x3d66a6,_0x26d0ff,_0x43db50,_0x509be8);},'oYcsw':_0x9ff242(0x1fc),'VSsBA':_0x9ff242(0x163),'kIRDZ':_0x9ff242(0x145),'AwXvN':function(_0xf93089,_0x94aa7f){return _0xf93089===_0x94aa7f;},'cxiHW':'suWMi','tmIjn':_0x9ff242(0x151),'yCHDg':_0x9ff242(0x1bd),'IzfXe':'DejBn','dFMXF':function(_0x2b26e8,_0x39b2ad){return _0x2b26e8!==_0x39b2ad;},'WqTrE':_0x9ff242(0x162),'FdlYj':_0x9ff242(0x1d8)};let _0x29c0d6;try{if(_0x3e641a[_0x9ff242(0x20a)](_0x3e641a[_0x9ff242(0x19a)],_0x3e641a['qCLTw']))_0xbdd599[_0x9ff242(0x199)](_0x3e641a[_0x9ff242(0x1fb)]),_0x5791d6[_0x9ff242(0x160)](0x1);else{if(_0x1f6fd3[_0x9ff242(0x1b6)]||_0x1f6fd3[_0x9ff242(0x1d2)]||_0x1f6fd3[_0x9ff242(0x21b)]){if(_0x3e641a[_0x9ff242(0x20a)](_0x3e641a[_0x9ff242(0x209)],_0x3e641a[_0x9ff242(0x18f)])){const _0x55ed86=[];!_0x1f6fd3['clusterName']&&(_0x3e641a[_0x9ff242(0x21d)](_0x3e641a['oRDdP'],_0x3e641a[_0x9ff242(0x1ec)])?_0x55ed86[_0x9ff242(0x1d3)](_0x3e641a[_0x9ff242(0x203)]):_0xbd040c=_0x25e570);;!_0x1f6fd3['cloudProvider']&&(_0x3e641a[_0x9ff242(0x165)](_0x3e641a['voUno'],_0x3e641a[_0x9ff242(0x16d)])?_0x3b6a08['error'](_0x9ff242(0x198)+_0x23bf38[_0x9ff242(0x199)][_0x9ff242(0x1f0)]):_0x55ed86[_0x9ff242(0x1d3)](_0x3e641a['KyegZ']));;!_0x1f6fd3['region']&&(_0x3e641a['JOsUP'](_0x3e641a[_0x9ff242(0x20e)],_0x3e641a['TfJad'])?_0x1efabd[_0x9ff242(0x1d3)](_0x3e641a['FVlrP']):_0x55ed86[_0x9ff242(0x1d3)](_0x3e641a[_0x9ff242(0x1bf)]));;_0x3e641a[_0x9ff242(0x184)](_0x55ed86[_0x9ff242(0x20b)],0x0)&&(_0x3e641a['thiSf'](_0x3e641a[_0x9ff242(0x212)],_0x3e641a[_0x9ff242(0x19c)])?(_0x29c0d6=_0x9ff242(0x146)+_0x55ed86[_0x9ff242(0x1f6)](',\x20')+_0x9ff242(0x168),await _0x3e641a[_0x9ff242(0x20f)](reportToGalactusAndSendToEDS,_0x1f6fd3,_0x1d60d2,_0x29c0d6,messageTypes[_0x9ff242(0x14c)],_0x3e641a['hSBhb'],_0x3e641a[_0x9ff242(0x12d)],_0x3e641a[_0x9ff242(0x1a0)]),logger[_0x9ff242(0x199)](_0x29c0d6),process[_0x9ff242(0x160)](0x1)):_0xd9f093[_0x9ff242(0x1b4)](_0x9ff242(0x1c0)+_0x34e02f[_0x9ff242(0x1b6)]+_0x9ff242(0x180))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x9ff242(0x149)](_0x1f6fd3[_0x9ff242(0x1d2)][_0x9ff242(0x1e6)]())&&(_0x3e641a[_0x9ff242(0x1b8)](_0x3e641a[_0x9ff242(0x18e)],_0x3e641a[_0x9ff242(0x1f7)])?(_0x29c0d6=_0x3e641a[_0x9ff242(0x1d9)],await _0x3e641a[_0x9ff242(0x20f)](reportToGalactusAndSendToEDS,_0x1f6fd3,_0x1d60d2,_0x29c0d6,messageTypes['ERROR'],_0x3e641a[_0x9ff242(0x14a)],_0x3e641a['MZRDx'],_0x3e641a['ayXyX']),logger[_0x9ff242(0x199)](_0x29c0d6),!_0x1f6fd3[_0x9ff242(0x1d2)]&&(_0x3e641a[_0x9ff242(0x21d)](_0x3e641a[_0x9ff242(0x148)],_0x3e641a[_0x9ff242(0x148)])?_0x3a1946[_0x9ff242(0x1d3)](_0x3e641a[_0x9ff242(0x133)]):(logger[_0x9ff242(0x1b4)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x9ff242(0x17a)]+'\x20'),_0x1f6fd3[_0x9ff242(0x1d2)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']))):(_0x4b5427[_0x9ff242(0x1b4)]('['+_0x383733+_0x9ff242(0x13b)+_0xc70ccb['status']+_0x9ff242(0x15a)+_0x5874b6[_0x9ff242(0x14f)]+_0x9ff242(0x1bc)+_0x596eda[_0x9ff242(0x199)]),_0x26d4b2[_0x9ff242(0x199)]&&_0x724f1b['error'](_0x9ff242(0x198)+_0x10599b[_0x9ff242(0x199)]['stack']))),global_registry[_0x9ff242(0x1b6)]=_0x1f6fd3[_0x9ff242(0x1b6)],global_registry[_0x9ff242(0x1d2)]=_0x1f6fd3[_0x9ff242(0x1d2)],global_registry[_0x9ff242(0x1e0)]=_0x1f6fd3[_0x9ff242(0x21b)];}else{const _0xaa7290={};_0xaa7290[_0x9ff242(0x13e)]=_0x3e641a[_0x9ff242(0x177)],_0xaa7290[_0x9ff242(0x1c8)]=_0x3e641a['JRgco'];const _0x4b25a8={};_0x4b25a8['description']=_0x3e641a['VoTsG'],_0x4b25a8[_0x9ff242(0x1c8)]=_0x3e641a[_0x9ff242(0x159)];const _0x30e5be={};_0x30e5be[_0x9ff242(0x13e)]=_0x3e641a[_0x9ff242(0x157)],_0x30e5be[_0x9ff242(0x1c8)]=_0x3e641a[_0x9ff242(0x159)];const _0xf5eb81={};_0xf5eb81[_0x9ff242(0x13e)]=_0x3e641a[_0x9ff242(0x1ed)],_0xf5eb81[_0x9ff242(0x1c8)]=_0x3e641a[_0x9ff242(0x159)];const _0x2a14eb={};return _0x2a14eb[_0x9ff242(0x1b9)]=_0xaa7290,_0x2a14eb[_0x9ff242(0x1b5)]=_0x4b25a8,_0x2a14eb[_0x9ff242(0x21b)]=_0x30e5be,_0x2a14eb[_0x9ff242(0x205)]=_0xf5eb81,_0x231cb7['usage'](_0x49b490['pre_check'])[_0x9ff242(0x1b7)](_0xa498c2)['options'](_0x2a14eb)[_0x9ff242(0x161)](_0x3e641a['ZUHHs'])[_0x9ff242(0x17e)];}}else{if(_0x1f6fd3[_0x9ff242(0x176)]){if(_0x3e641a[_0x9ff242(0x1a6)](_0x3e641a[_0x9ff242(0x136)],_0x3e641a[_0x9ff242(0x17c)]))_0x43d6d7+=_0x9ff242(0x175)+_0x576658[_0x9ff242(0x1b6)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';else{global_registry[_0x9ff242(0x176)]=_0x1f6fd3['gridProfile'],logger['debug'](_0x9ff242(0x1c7)+_0x1f6fd3[_0x9ff242(0x176)]);const _0x38ae55=_0x9ff242(0x174)+AG_API_URL+_0x9ff242(0x1fd),_0x5b1831={};_0x5b1831[_0x9ff242(0x1be)]=_0x3e641a[_0x9ff242(0x1d4)],_0x5b1831[_0x9ff242(0x1ae)]=global_registry[_0x9ff242(0x194)],_0x5b1831[_0x9ff242(0x228)]=![];const _0x718815=_0x5b1831,_0x20941a=await _0x3e641a['YRYIn'](got,_0x38ae55,_0x718815),_0xfd5d50=await _0x3e641a['CoXKU'](responseValidation,_0x20941a,_0x3e641a[_0x9ff242(0x21a)],_0x3e641a[_0x9ff242(0x191)],_0x1f6fd3,_0x1d60d2);let _0x330eae={};if(_0x3e641a['uDJBM'](_0xfd5d50,0xc8)){if(_0x3e641a[_0x9ff242(0x21f)](_0x3e641a[_0x9ff242(0x1e8)],_0x3e641a[_0x9ff242(0x1e8)]))_0x3c6872+=_0x3e641a[_0x9ff242(0x1c3)],_0x1cb076+=_0x9ff242(0x131)+(_0x44c1df[_0x9ff242(0x1dd)]||_0x3e641a[_0x9ff242(0x17f)])+'\x0a',_0x40f54c+='\x20\x20Code:\x20'+(_0x2e8667[_0x9ff242(0x19f)]||_0x3e641a['qRUps'])+'\x0a',_0x2f8d76+=_0x9ff242(0x1aa)+(_0x1e9088[_0x9ff242(0x1f0)]||_0x3e641a[_0x9ff242(0x17f)])+'\x0a';else{const _0x43b0ef=JSON[_0x9ff242(0x18d)](_0x20941a[_0x9ff242(0x1ff)]),_0x24d98d=_0x43b0ef[_0x9ff242(0x1c2)](_0x4ad4ea=>_0x4ad4ea['name']===_0x1f6fd3[_0x9ff242(0x176)])||null;if(_0x3e641a[_0x9ff242(0x1b0)](isUndefined,_0x24d98d)){if(_0x3e641a['AKcah'](_0x3e641a[_0x9ff242(0x1ab)],_0x3e641a[_0x9ff242(0x1ab)])){const _0x440de1={};_0x440de1[_0x9ff242(0x1c8)]=_0x57b382[_0x9ff242(0x1f3)],_0x440de1[_0x9ff242(0x1dd)]=_0x3fb2d6,_0x5c79fb['sendEventToBackend'](_0x442b7d,_0x440de1,_0x3e641a['ayXyX'],!![]);}else _0x29c0d6=_0x9ff242(0x226)+_0x1f6fd3['gridProfile']+_0x9ff242(0x141),await _0x3e641a[_0x9ff242(0x172)](reportToGalactusAndSendToEDS,_0x1f6fd3,_0x1d60d2,_0x29c0d6,messageTypes[_0x9ff242(0x14c)],_0x3e641a['hSBhb'],_0x3e641a[_0x9ff242(0x213)],_0x3e641a[_0x9ff242(0x1a0)]),logger[_0x9ff242(0x199)](_0x29c0d6),process[_0x9ff242(0x160)](0x1);}else _0x3e641a['drSTN'](_0x3e641a[_0x9ff242(0x15f)],_0x3e641a[_0x9ff242(0x127)])?_0x330eae=_0x24d98d:_0x2e87bb+=_0x9ff242(0x175)+_0x9be643[_0x9ff242(0x1b6)]+'\x20'+(_0x5db94d?_0x3e641a[_0x9ff242(0x139)]:_0x3e641a[_0x9ff242(0x208)])+'\x0a\x0a';}}else _0x3e641a[_0x9ff242(0x207)](_0x3e641a[_0x9ff242(0x1d5)],_0x3e641a[_0x9ff242(0x1d5)])?process[_0x9ff242(0x160)](0x1):_0x369721['push'](_0x3e641a[_0x9ff242(0x1bf)]);const _0xdbba4e={};_0xdbba4e[_0x9ff242(0x1c8)]=WS_EVENTS[_0x9ff242(0x1f3)],_0xdbba4e['message']=_0x3e641a[_0x9ff242(0x12e)],webSocketUtils[_0x9ff242(0x164)](_0x1d60d2,_0xdbba4e),global_registry[_0x9ff242(0x1d2)]=_0x330eae[_0x9ff242(0x1d2)],global_registry[_0x9ff242(0x1e0)]=_0x330eae[_0x9ff242(0x21b)],global_registry[_0x9ff242(0x1b6)]=_0x330eae[_0x9ff242(0x1b6)];}}else _0x3e641a['AwXvN'](_0x3e641a[_0x9ff242(0x219)],_0x3e641a[_0x9ff242(0x187)])?_0xc7f568[_0x9ff242(0x160)](0x1):(logger['error'](_0x3e641a[_0x9ff242(0x1fb)]),process[_0x9ff242(0x160)](0x1));}}}catch(_0x4134bb){if(_0x3e641a['dFMXF'](_0x3e641a[_0x9ff242(0x1ce)],_0x3e641a[_0x9ff242(0x1d7)]))_0x29c0d6='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x4134bb+':\x20'+_0x4134bb['stack'],logger[_0x9ff242(0x199)](_0x29c0d6),await _0x3e641a[_0x9ff242(0x20f)](reportToGalactusAndSendToEDS,_0x1f6fd3,_0x1d60d2,_0x29c0d6,messageTypes[_0x9ff242(0x14c)],_0x3e641a['hSBhb'],_0x3e641a[_0x9ff242(0x16c)],_0x3e641a['ayXyX']),process[_0x9ff242(0x160)](0x1);else{const {header:_0x5c7b68,response:_0xd35e8f}=_0x52c00d,{status:_0x3e5668,data:_0x2c6af5,error:_0x57427f}=_0xd35e8f;_0x52d7e5+=_0x5c7b68+'\x20#'+_0x3e641a['rEUKQ'](_0x2cd163,0x1)+'\x0a',_0x11800c+=_0x9ff242(0x140)+(_0x3e5668?_0x3e641a['cVCRJ']:_0x3e641a[_0x9ff242(0x1cb)])+'\x0a',_0x4050f1+=_0x9ff242(0x18a)+_0x3e641a[_0x9ff242(0x134)](_0x2c6af5,_0x3e641a['qRUps'])+'\x0a',_0x57427f&&(_0x221657+=_0x3e641a[_0x9ff242(0x1c3)],_0xfd501f+='\x20\x20Message:\x20'+(_0x57427f[_0x9ff242(0x1dd)]||_0x3e641a[_0x9ff242(0x17f)])+'\x0a',_0x121196+=_0x9ff242(0x1a1)+(_0x57427f[_0x9ff242(0x19f)]||_0x3e641a[_0x9ff242(0x17f)])+'\x0a',_0x57410e+=_0x9ff242(0x1aa)+(_0x57427f['stack']||_0x3e641a[_0x9ff242(0x17f)])+'\x0a'),_0x5a4759+='\x0a\x0a';}}}function printResponse(_0x1e9748,_0x18474b){const _0x50007a=a17_0x7329e3,_0x2448b6={};_0x2448b6[_0x50007a(0x1c5)]=function(_0x217ea2,_0x131a88){return _0x217ea2!==_0x131a88;},_0x2448b6[_0x50007a(0x1bb)]='TXwgk',_0x2448b6[_0x50007a(0x12c)]='nFdqa';const _0x5801d8=_0x2448b6;logger['info']('['+_0x1e9748+_0x50007a(0x13b)+_0x18474b[_0x50007a(0x142)]+_0x50007a(0x15a)+_0x18474b[_0x50007a(0x14f)]+_0x50007a(0x1bc)+_0x18474b[_0x50007a(0x199)]),_0x18474b[_0x50007a(0x199)]&&(_0x5801d8[_0x50007a(0x1c5)](_0x5801d8[_0x50007a(0x1bb)],_0x5801d8['iRZlu'])?logger['error'](_0x50007a(0x198)+_0x18474b['error'][_0x50007a(0x1f0)]):(_0x1ac11c[_0x50007a(0x1b4)](_0x50007a(0x14d)+_0x7eaa9a[_0x50007a(0x17a)]+'\x20'),_0x12f5c3[_0x50007a(0x1d2)]=_0x208c40[_0x50007a(0x17a)]));}async function generateReport(_0x6deb65,_0x360d91){const _0x4d2e27=a17_0x7329e3,_0x100a05={'fdNLH':function(_0x1e467a,_0x460e4c){return _0x1e467a+_0x460e4c;},'rLtJk':_0x4d2e27(0x1ee),'dmwJs':_0x4d2e27(0x17d),'EMPIw':function(_0x382aea,_0x484a71){return _0x382aea||_0x484a71;},'Yyamw':'N/A','tPVlW':_0x4d2e27(0x1f5),'mlrmN':_0x4d2e27(0x217),'xISkJ':function(_0xa26a5b,_0x3004f2){return _0xa26a5b!=_0x3004f2;},'YIuip':_0x4d2e27(0x1d0),'ONVKY':_0x4d2e27(0x1db),'MsGwk':function(_0x57c726){return _0x57c726();}};let _0x28182f='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x4d2e27(0x1d2)]+'\x20===\x0a\x0a';return _0x6deb65['forEach']((_0x594f9a,_0x5ed7db)=>{const _0x12a3f2=_0x4d2e27,{header:_0x445e2b,response:_0x1fcecb}=_0x594f9a,{status:_0x26a8ea,data:_0xdd9c9f,error:_0x5265eb}=_0x1fcecb;_0x28182f+=_0x445e2b+'\x20#'+_0x100a05[_0x12a3f2(0x1cf)](_0x5ed7db,0x1)+'\x0a',_0x28182f+=_0x12a3f2(0x140)+(_0x26a8ea?_0x100a05[_0x12a3f2(0x20c)]:_0x100a05[_0x12a3f2(0x206)])+'\x0a',_0x28182f+='Message:\x20'+_0x100a05['EMPIw'](_0xdd9c9f,_0x100a05[_0x12a3f2(0x19e)])+'\x0a',_0x5265eb&&(_0x28182f+=_0x100a05[_0x12a3f2(0x1b3)],_0x28182f+='\x20\x20Message:\x20'+(_0x5265eb[_0x12a3f2(0x1dd)]||_0x100a05[_0x12a3f2(0x19e)])+'\x0a',_0x28182f+='\x20\x20Code:\x20'+(_0x5265eb[_0x12a3f2(0x19f)]||_0x100a05['Yyamw'])+'\x0a',_0x28182f+='\x20\x20Stack:\x20'+(_0x5265eb['stack']||_0x100a05[_0x12a3f2(0x19e)])+'\x0a'),_0x28182f+='\x0a\x0a';}),_0x28182f+=_0x100a05['mlrmN'],_0x100a05['xISkJ'](_0x360d91,null)?_0x28182f+=_0x4d2e27(0x175)+global_registry[_0x4d2e27(0x1b6)]+'\x20'+(_0x360d91?_0x100a05[_0x4d2e27(0x171)]:_0x100a05[_0x4d2e27(0x130)])+'\x0a\x0a':_0x28182f+='Cluster\x20'+global_registry[_0x4d2e27(0x1b6)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x28182f+=_0x100a05['MsGwk'](getSystemMetaData),_0x28182f;};function a17_0x1545(){const _0x4917e3=['toLowerCase','SSL\x20Configured','ETHjV','qTssy','2|3|0|1|4','MCqOM','pMjha','nhKGT','Success','isTls1_2_SUPPORTED','stack','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','WebSocket','LOG','cymke','Error\x20Details:\x0a','join','NKuDg','password','isCliToolInstalled','19914180ylvAHW','fObsz','pre-check-grid-profile-empty','/packages/cli/get-all-grid-profiles','936kYVNAX','body','cjrlh','mmkWm','Browserstack','FVlrP','getUTCHours','grid-profile','dmwJs','AwXvN','EsQjF','EJzQB','drSTN','length','rLtJk','Hklkr','wAQau','sbXbD','got','XXBGi','SJTNK','oYcsw','toolInstalledResp','lPBfR','.txt','Cluster\x20details\x0a-----------------------\x0a','pre-check-failed','yCHDg','RtYJO','region','`\x20is\x20present\x20in\x20region\x20`','NktUH','credential-not-found','sHXyf','debug','aQDjr','../../utils/webSocketUtils','ZWZIZ','MgVkY','SQNdt','Invalid\x20input.\x20grid\x20profiles:\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','throwHttpErrors','kIRDZ','3989912QougTv','ENcSs','pre-check-cluster-args-not-passed','pre-check','iRZlu','qCAFd','tmIjn','requestId','ONVKY','\x20\x20Message:\x20','eLLvk','KyegZ','fgslF','xAcPf','XQVOn','`\x20,error\x20:\x20','BPVvz','lusax','bOhzt',']\x20status\x20:\x20','oOXWs','wiCxn','description','NKVEZ','Status:\x20','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','status','grid','KabuD','UDNro','Missing\x20required\x20arguments:\x20','connectionTimeout','IDIcr','includes','hSBhb','replace','ERROR','Setting\x20cloud\x20provider\x20as\x20','GET','data','username','Grid\x20profile\x20fetched\x20for\x20pre-check','XrTmk','Report\x20saved\x20in\x20','UMilG','hAawb','N/A','HUVIV','4392888mGQpRf','JRgco','\x20data\x20:\x20','split','bstackAccesskey','options','aVGIh','VSsBA','exit','help','puGwu','oSmmH','sendEventToBackend','BbbJk','usage','uuid','.\x20Please\x20provide\x20all\x20required\x20arguments.','dummy-grid','PXAbA','822480uFYqdF','MZRDx','voUno','cloud-provider-not-supported','984065AgZrhL','dKVJb','YIuip','FFCGZ','builder','https://','Cluster\x20','gridProfile','IfMFV','string','ijrAS','CLOUD_PROVIDER','jFEHF','IMNbV','Failure','argv','qRUps','`\x20already\x20exists','reconnecting-websocket','nZlGK','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','YLYZC','getUTCMinutes','2073281eSKKGu','IzfXe','2DCSiko','<PasswordPlaceholder>','Message:\x20','isClusterPresent','stack\x20trace\x20','parse','oyneF','hcMRj','SXiWE','xFuAR','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Whitelisted\x20browserstack','authHeader','bstackUsername','../../cloudproviders/utils','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','error\x20stack\x20:\x20','error','qCLTw','3BNwgFs','lLFdZ','response','Yyamw','code','ayXyX','\x20\x20Code:\x20','init','<UsernamePlaceholder>','../../utils/utilityMethods','pre-check-grid-called','xrjBo','getUTCDate','cPipk','stringify','\x20\x20Stack:\x20','hvamb','getUTCFullYear','iCPix','headers','WWVCO','UapqK','KVkoY','desc','tPVlW','info','cloud-provider','clusterName','epilogue','thiSf','cluster-name','vIwfT','zRnBt','\x20error\x20:\x20','xhqHu','method','AtMAQ','Cluster\x20`','INFO','find','iSmVr','ifXtw','GHrPk','zNvtK','grid\x20profile\x20flow\x20','type','handler','aVEdD','AXwjR','unable\x20to\x20verify\x20if\x20cluster\x20`','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','WqTrE','fdNLH','is\x20already\x20present','9872vgxrTr','cloudProvider','push','rRAOL','cxiHW','pre_check','FdlYj','QKEPJ','fBlrm','User\x20Access','will\x20be\x20created','../../utils/instrumentationUtils','message','Failed\x20in\x20pre-check!\x20Error:\x20','header','clusterRegion','delay','cnAun','utf-8','command','YemlK'];a17_0x1545=function(){return _0x4917e3;};return a17_0x1545();}exports[a17_0x7329e3(0x1c9)]=async function(_0x1e463e){const _0x276b38=a17_0x7329e3,_0x3d7f44={'vIwfT':function(_0x2d70bf){return _0x2d70bf();},'XrTmk':_0x276b38(0x227),'oOXWs':function(_0x4d1bd7,_0x3c4be3,_0x278232,_0x1c84ef,_0x37d3a1,_0x2dcca1,_0x23fbb2,_0x5c4ab9){return _0x4d1bd7(_0x3c4be3,_0x278232,_0x1c84ef,_0x37d3a1,_0x2dcca1,_0x23fbb2,_0x5c4ab9);},'xAcPf':_0x276b38(0x1a5),'BPVvz':_0x276b38(0x21e),'PXAbA':_0x276b38(0x199),'KVkoY':function(_0x597798,_0xf9d476,_0x51a68a,_0x59ddb5,_0x31205f,_0x549659,_0x39ed47){return _0x597798(_0xf9d476,_0x51a68a,_0x59ddb5,_0x31205f,_0x549659,_0x39ed47);},'MsLWo':_0x276b38(0x1a3),'bOhzt':_0x276b38(0x189),'cnAun':function(_0x42428d,_0x583d75,_0x67cb3b){return _0x42428d(_0x583d75,_0x67cb3b);},'SXiWE':_0x276b38(0x169),'aVEdD':_0x276b38(0x214),'zlOZa':_0x276b38(0x1ea),'qTssy':'accessResp','cPipk':function(_0x25936f,_0x2bd26a,_0x3498ef){return _0x25936f(_0x2bd26a,_0x3498ef);},'neKZL':'isTrialGridAccessible','lPBfR':function(_0x17722a,_0x1d4cd0){return _0x17722a(_0x1d4cd0);},'UMilG':'TLSv1_2_client_method','mmkWm':function(_0xfe14a3,_0x102b3c,_0x516f39){return _0xfe14a3(_0x102b3c,_0x516f39);},'PRyXz':_0x276b38(0x1ef),'YpmyH':'Tool\x20Installed','zNvtK':_0x276b38(0x1da),'wiCxn':_0x276b38(0x193),'aQDjr':_0x276b38(0x1e7),'nZlGK':function(_0x2d710b,_0x5bc6b9,_0xd1dfbd){return _0x2d710b(_0x5bc6b9,_0xd1dfbd);},'WWVCO':function(_0x5e0f00,_0x552cda){return _0x5e0f00+_0x552cda;},'ijrAS':_0x276b38(0x1e3),'ENcSs':function(_0x207e83,_0x3042d2,_0x4beb24,_0x145ba8,_0x32e322,_0x37ba8e,_0x29be54){return _0x207e83(_0x3042d2,_0x4beb24,_0x145ba8,_0x32e322,_0x37ba8e,_0x29be54);},'cjrlh':_0x276b38(0x218)};let _0x51d464,_0x766148;try{global_registry[_0x276b38(0x12f)]=_0x3d7f44['vIwfT'](uuidv4);!fs['existsSync'](_0x3d7f44[_0x276b38(0x1ba)](getCredentialsPath))&&(_0x766148=_0x3d7f44[_0x276b38(0x152)],logger[_0x276b38(0x199)](_0x766148),await _0x3d7f44[_0x276b38(0x13c)](reportToGalactusAndSendToEDS,_0x1e463e,_0x51d464,_0x766148,messageTypes[_0x276b38(0x14c)],_0x3d7f44[_0x276b38(0x135)],_0x3d7f44[_0x276b38(0x138)],_0x3d7f44[_0x276b38(0x16a)]),process['exit'](0x1));_0x3d7f44[_0x276b38(0x1b1)](sendInstrumentationEvent,_0x1e463e,_0x3d7f44[_0x276b38(0x135)],messageTypes[_0x276b38(0x1c1)],null,null,_0x1e463e);const _0x1fb24a=JSON[_0x276b38(0x18d)](fs['readFileSync'](_0x3d7f44['vIwfT'](getCredentialsPath)));global_registry[_0x276b38(0x195)]=_0x1fb24a[_0x276b38(0x202)][_0x276b38(0x150)],global_registry['bstackAccesskey']=_0x1fb24a['Browserstack'][_0x276b38(0x1f8)];const _0x118e0b=WS_ENDPOINT[_0x276b38(0x14b)](_0x3d7f44['MsLWo'],_0x1fb24a[_0x276b38(0x202)]['username'])[_0x276b38(0x14b)](_0x3d7f44[_0x276b38(0x13a)],_0x1fb24a[_0x276b38(0x202)]['password']),_0x45e87e={};_0x45e87e[_0x276b38(0x1f2)]=ws,_0x45e87e[_0x276b38(0x147)]=0x36ee80,_0x51d464=new ReconnectingWebSocket(_0x118e0b,[],_0x45e87e),global_registry[_0x276b38(0x194)]=_0x3d7f44[_0x276b38(0x1e2)](getAuthHeader,global_registry[_0x276b38(0x195)],global_registry[_0x276b38(0x15c)]),await _0x3d7f44[_0x276b38(0x1e2)](inputValidation,_0x1e463e,_0x51d464),logger[_0x276b38(0x1b4)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0x276b38(0x1d2)]+'\x20region\x20-\x20'+global_registry[_0x276b38(0x1e0)]);let _0x31909c=await _0x3d7f44[_0x276b38(0x1b1)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0x276b38(0x1b6)],_0x3d7f44[_0x276b38(0x190)],_0x51d464,webSocketUtils,_0x1e463e);const _0x4f7128=await _0x31909c[_0x276b38(0x1f9)]();_0x3d7f44['cnAun'](printResponse,_0x3d7f44[_0x276b38(0x1ca)],_0x4f7128),_0x31909c=await _0x31909c[_0x276b38(0x1a2)]();let _0x31e653=![];try{_0x31e653=await _0x31909c[_0x276b38(0x18b)]();}catch(_0x5cdb90){const _0x2d432c=_0x3d7f44['zlOZa'][_0x276b38(0x15b)]('|');let _0x44d71a=0x0;while(!![]){switch(_0x2d432c[_0x44d71a++]){case'0':logger[_0x276b38(0x199)](_0x766148);continue;case'1':_0x766148+='\x0a'+JSON['stringify'](_0x5cdb90['stack']);continue;case'2':_0x766148=_0x276b38(0x1cc)+global_registry[_0x276b38(0x1b6)]+_0x276b38(0x21c)+global_registry['clusterRegion']+_0x276b38(0x137)+_0x5cdb90;continue;case'3':_0x31e653=null;continue;case'4':await _0x3d7f44[_0x276b38(0x13c)](reportToGalactusAndSendToEDS,_0x1e463e,_0x51d464,_0x766148,messageTypes[_0x276b38(0x14c)],_0x3d7f44[_0x276b38(0x135)],'cluster-check-failed-'+global_registry[_0x276b38(0x1d2)],_0x3d7f44['PXAbA']);continue;}break;}}_0x31e653&&logger[_0x276b38(0x1b4)]('Cluster\x20`'+global_registry[_0x276b38(0x1b6)]+'`\x20already\x20exists');const _0x156295=await _0x31909c['checkAccess']();_0x3d7f44[_0x276b38(0x1e2)](printResponse,_0x3d7f44[_0x276b38(0x1e9)],_0x156295);const _0x5895e7=await _0x3d7f44[_0x276b38(0x1ba)](curlRequest);_0x3d7f44[_0x276b38(0x1a8)](printResponse,_0x3d7f44['neKZL'],_0x5895e7);const _0x5784c1=await _0x3d7f44[_0x276b38(0x215)](isTlsSupported,_0x3d7f44[_0x276b38(0x154)]);_0x3d7f44[_0x276b38(0x201)](printResponse,_0x3d7f44['PRyXz'],_0x5784c1);const _0x577db1={};_0x577db1[_0x276b38(0x1df)]=_0x3d7f44['YpmyH'],_0x577db1[_0x276b38(0x19d)]=_0x4f7128;const _0x32bb25={};_0x32bb25[_0x276b38(0x1df)]=_0x3d7f44[_0x276b38(0x1c6)],_0x32bb25[_0x276b38(0x19d)]=_0x156295;const _0x24eeae={};_0x24eeae[_0x276b38(0x1df)]=_0x3d7f44[_0x276b38(0x13d)],_0x24eeae[_0x276b38(0x19d)]=_0x5895e7;const _0x336b00={};_0x336b00[_0x276b38(0x1df)]=_0x3d7f44[_0x276b38(0x221)],_0x336b00[_0x276b38(0x19d)]=_0x5784c1;const _0x74d147=[_0x577db1,_0x32bb25,_0x24eeae,_0x336b00],_0x2ef780=await _0x3d7f44[_0x276b38(0x182)](generateReport,_0x74d147,_0x31e653),_0x267408=new Date(),_0x3f1cdd=_0x267408[_0x276b38(0x1ac)]()+'_'+_0x3d7f44[_0x276b38(0x1af)](_0x267408['getUTCMonth'](),0x1)+'_'+_0x267408[_0x276b38(0x1a7)]()+'_'+_0x267408[_0x276b38(0x204)]()+'_'+_0x267408[_0x276b38(0x185)](),_0xcf4f9a='log/report_'+_0x3f1cdd+_0x276b38(0x216);fs['writeFileSync'](_0xcf4f9a,_0x2ef780,_0x3d7f44[_0x276b38(0x179)]),logger['info'](_0x276b38(0x153)+_0xcf4f9a),process[_0x276b38(0x160)](0x0);}catch(_0x5eeaee){let _0x57b2c3=_0x276b38(0x1de)+_0x5eeaee+'\x20';logger[_0x276b38(0x199)](_0x57b2c3),_0x57b2c3+='\x0a'+JSON[_0x276b38(0x1a9)](_0x5eeaee[_0x276b38(0x1f0)]),logger[_0x276b38(0x220)](_0x276b38(0x18c)+_0x5eeaee[_0x276b38(0x1f0)]);if(_0x51d464){const _0x4eb11c={};_0x4eb11c[_0x276b38(0x1c8)]=WS_EVENTS[_0x276b38(0x1f3)],_0x4eb11c[_0x276b38(0x1dd)]=_0x57b2c3,webSocketUtils[_0x276b38(0x164)](_0x51d464,_0x4eb11c,_0x3d7f44[_0x276b38(0x16a)],!![]);}await webSocketUtils[_0x276b38(0x1e1)](0x7d0);const _0x506569={};_0x506569['error']=_0x57b2c3,await _0x3d7f44[_0x276b38(0x129)](sendInstrumentationEvent,_0x1e463e,_0x3d7f44[_0x276b38(0x135)],messageTypes[_0x276b38(0x14c)],_0x3d7f44[_0x276b38(0x200)],_0x506569,_0x1e463e),process[_0x276b38(0x160)](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_0x4f23a2=a18_0x537b;function a18_0x1426(){const _0xdf6611=['commandDir','handler','epilogue','1496076McKyWj','2402cTJsXj','4990400xgHHWE','recommendCommands','command','help','18TcEtwV','1419410thRdgt','10OapUPy','suvrX','Start\x20an\x20existing\x20Automation\x20grid.','desc','start','63aAAWKI','1400575gSqJSx','usage','strict','60UnonVS','ztnli','10514226vHoZHj','1789736Jlghrs','7rQpcST'];a18_0x1426=function(){return _0xdf6611;};return a18_0x1426();}(function(_0x599e29,_0x3dd51b){const _0x33e0d5=a18_0x537b,_0x69d7a5=_0x599e29();while(!![]){try{const _0x4e493f=parseInt(_0x33e0d5(0x179))/0x1+parseInt(_0x33e0d5(0x17a))/0x2*(-parseInt(_0x33e0d5(0x17f))/0x3)+-parseInt(_0x33e0d5(0x18d))/0x4*(-parseInt(_0x33e0d5(0x181))/0x5)+-parseInt(_0x33e0d5(0x18c))/0x6*(parseInt(_0x33e0d5(0x18e))/0x7)+parseInt(_0x33e0d5(0x17b))/0x8+-parseInt(_0x33e0d5(0x186))/0x9*(parseInt(_0x33e0d5(0x180))/0xa)+parseInt(_0x33e0d5(0x187))/0xb*(parseInt(_0x33e0d5(0x18a))/0xc);if(_0x4e493f===_0x3dd51b)break;else _0x69d7a5['push'](_0x69d7a5['shift']());}catch(_0x2eab97){_0x69d7a5['push'](_0x69d7a5['shift']());}}}(a18_0x1426,0xdb49d));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a18_0x537b(_0x1d89b9,_0x4f42fa){const _0x14266a=a18_0x1426();return a18_0x537b=function(_0x537b18,_0x44147c){_0x537b18=_0x537b18-0x178;let _0x52577e=_0x14266a[_0x537b18];return _0x52577e;},a18_0x537b(_0x1d89b9,_0x4f42fa);}exports[a18_0x4f23a2(0x17d)]=a18_0x4f23a2(0x185),exports[a18_0x4f23a2(0x184)]=a18_0x4f23a2(0x183),exports['builder']=function(_0x2c9153){const _0x370ef1=a18_0x4f23a2,_0x32a952={};_0x32a952['suvrX']='start_commands',_0x32a952['ztnli']=_0x370ef1(0x17e);const _0x39facb=_0x32a952;return _0x2c9153[_0x370ef1(0x188)](HELP_HEADER_MESSAGE[_0x370ef1(0x185)])[_0x370ef1(0x178)](HELP_FOOTER_MESSAGE)[_0x370ef1(0x18f)](_0x39facb[_0x370ef1(0x182)])['demandCommand']()[_0x370ef1(0x17c)]()[_0x370ef1(0x189)]()[_0x370ef1(0x17e)](_0x39facb[_0x370ef1(0x18b)]);},exports[a18_0x4f23a2(0x190)]=function(_0x3e80f7){};
@@ -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_0x5cb12d=a19_0x432a;(function(_0x3037ab,_0x20143c){const _0x263513=a19_0x432a,_0x4dbef1=_0x3037ab();while(!![]){try{const _0x4ac778=parseInt(_0x263513(0x188))/0x1*(parseInt(_0x263513(0x18f))/0x2)+-parseInt(_0x263513(0x16e))/0x3*(parseInt(_0x263513(0x16b))/0x4)+parseInt(_0x263513(0x18a))/0x5+-parseInt(_0x263513(0x15b))/0x6*(parseInt(_0x263513(0x19e))/0x7)+parseInt(_0x263513(0x152))/0x8+-parseInt(_0x263513(0x19c))/0x9*(parseInt(_0x263513(0x1a5))/0xa)+parseInt(_0x263513(0x198))/0xb*(parseInt(_0x263513(0x17a))/0xc);if(_0x4ac778===_0x20143c)break;else _0x4dbef1['push'](_0x4dbef1['shift']());}catch(_0x57c1fb){_0x4dbef1['push'](_0x4dbef1['shift']());}}}(a19_0x3ec3,0x5550b));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x5cb12d(0x17d)),{logger}=require(a19_0x5cb12d(0x180)),{getCredentialsPath,getGridDetails}=require(a19_0x5cb12d(0x15c)),{scaleUpHubDeployment}=require(a19_0x5cb12d(0x1a6)),{sendInstrumentationEvent}=require(a19_0x5cb12d(0x1a9)),webSocketUtils=require(a19_0x5cb12d(0x16a)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0x5cb12d(0x164));function a19_0x432a(_0x5a0ede,_0x411cba){const _0x3ec335=a19_0x3ec3();return a19_0x432a=function(_0x432a43,_0x25ce01){_0x432a43=_0x432a43-0x150;let _0x2baedc=_0x3ec335[_0x432a43];return _0x2baedc;},a19_0x432a(_0x5a0ede,_0x411cba);}exports[a19_0x5cb12d(0x160)]=a19_0x5cb12d(0x1a2),exports['desc']=a19_0x5cb12d(0x178),exports[a19_0x5cb12d(0x19a)]=function(_0x5debd5){const _0x54de1a=a19_0x5cb12d,_0x9e84bb={};_0x9e84bb[_0x54de1a(0x19b)]=_0x54de1a(0x163),_0x9e84bb['rWBMQ']=_0x54de1a(0x17f),_0x9e84bb['wWEUI']=_0x54de1a(0x177),_0x9e84bb[_0x54de1a(0x150)]=_0x54de1a(0x174),_0x9e84bb['PjWDz']=_0x54de1a(0x154);const _0x1de095=_0x9e84bb,_0xcfe49a={};_0xcfe49a['description']=_0x1de095[_0x54de1a(0x19b)],_0xcfe49a[_0x54de1a(0x19f)]=_0x1de095[_0x54de1a(0x184)];const _0x3d7cfd={};_0x3d7cfd[_0x54de1a(0x194)]=_0x1de095['wWEUI'],_0x3d7cfd['type']=_0x1de095[_0x54de1a(0x150)],_0x3d7cfd['default']=![];const _0x3d00c4={};return _0x3d00c4[_0x54de1a(0x166)]=_0xcfe49a,_0x3d00c4[_0x54de1a(0x15d)]=_0x3d7cfd,_0x5debd5[_0x54de1a(0x181)](HELP_HEADER_MESSAGE[_0x54de1a(0x193)])[_0x54de1a(0x15e)](HELP_FOOTER_MESSAGE)['options'](_0x3d00c4)['help'](_0x1de095['PjWDz'])[_0x54de1a(0x1a7)];},exports[a19_0x5cb12d(0x1a3)]=async function(_0x40eb8e){const _0x5541ea=a19_0x5cb12d,_0x55634d={'GoKAp':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','GtwaI':function(_0x5eb95){return _0x5eb95();},'mCgAf':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','QhdyU':function(_0x3f1e2b,_0x165f89,_0x319bdb,_0x34b013,_0x533e60,_0x3dcebf,_0xb54c2){return _0x3f1e2b(_0x165f89,_0x319bdb,_0x34b013,_0x533e60,_0x3dcebf,_0xb54c2);},'evqxW':_0x5541ea(0x168),'AottP':'init-not-called','jnziN':function(_0xe706f3,_0x471b3a,_0x3a7dc8,_0x228808,_0x35abab,_0x5cefec,_0x226a1d){return _0xe706f3(_0x471b3a,_0x3a7dc8,_0x228808,_0x35abab,_0x5cefec,_0x226a1d);},'MgvgT':function(_0x59df1c){return _0x59df1c();},'xZZlw':_0x5541ea(0x16f),'EahKC':_0x5541ea(0x159),'bDsVs':_0x5541ea(0x183),'IKOJb':function(_0x5b5bf5,_0x487216,_0x2bca64,_0x39fa82){return _0x5b5bf5(_0x487216,_0x2bca64,_0x39fa82);},'VIMxY':function(_0x2009f7,_0xe5fd87,_0x507ea7){return _0x2009f7(_0xe5fd87,_0x507ea7);},'kkhps':function(_0x114619,_0x1377f3,_0x5b87f6){return _0x114619(_0x1377f3,_0x5b87f6);},'AqTFI':'Grid\x20started','XMCeC':function(_0x5f1543,_0x54d7ab){return _0x5f1543===_0x54d7ab;},'FdBgp':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','dVtLI':_0x5541ea(0x196),'Uahsg':function(_0x3efda7,_0x213654,_0x2f6de8,_0x403044,_0x527c8f,_0x56998d,_0x372c3f){return _0x3efda7(_0x213654,_0x2f6de8,_0x403044,_0x527c8f,_0x56998d,_0x372c3f);},'VRfvV':_0x5541ea(0x1a8),'cQAhO':'server-error'};let _0x10713c;try{!_0x40eb8e['gridId']&&(logger[_0x5541ea(0x151)](_0x55634d['GoKAp']),process[_0x5541ea(0x16c)](0x1));!fs[_0x5541ea(0x170)](_0x55634d[_0x5541ea(0x16d)](getCredentialsPath))&&(logger[_0x5541ea(0x151)](_0x55634d['mCgAf']),await _0x55634d['QhdyU'](sendInstrumentationEvent,_0x40eb8e,_0x55634d[_0x5541ea(0x18d)],messageTypes[_0x5541ea(0x17b)],_0x55634d[_0x5541ea(0x179)],null,_0x40eb8e),process[_0x5541ea(0x16c)](0x1));logger[_0x5541ea(0x1a4)]('Starting\x20grid\x20'+_0x40eb8e[_0x5541ea(0x1a0)]),await _0x55634d['jnziN'](sendInstrumentationEvent,_0x40eb8e,_0x55634d[_0x5541ea(0x18d)],messageTypes[_0x5541ea(0x192)],null,null,_0x40eb8e);const _0x12e22d=JSON[_0x5541ea(0x185)](fs[_0x5541ea(0x17c)](_0x55634d[_0x5541ea(0x191)](getCredentialsPath)));global_registry[_0x5541ea(0x1a1)]=_0x12e22d[_0x5541ea(0x176)][_0x5541ea(0x165)],global_registry[_0x5541ea(0x162)]=_0x12e22d[_0x5541ea(0x176)]['password'];const _0x3c21e2=WS_ENDPOINT[_0x5541ea(0x156)](_0x55634d[_0x5541ea(0x195)],_0x12e22d[_0x5541ea(0x176)]['username'])[_0x5541ea(0x156)](_0x55634d[_0x5541ea(0x173)],_0x12e22d['Browserstack']['password']),_0xb770da={};_0xb770da[_0x5541ea(0x167)]=ws,_0xb770da['connectionTimeout']=0x36ee80,_0x10713c=new ReconnectingWebSocket(_0x3c21e2,[],_0xb770da),logger[_0x5541ea(0x199)](_0x55634d[_0x5541ea(0x19d)]),webSocketUtils['addListeners'](_0x10713c,_0x40eb8e['user'],_0x40eb8e[_0x5541ea(0x18c)]);const [_0x221095,_0x54cb57]=await _0x55634d[_0x5541ea(0x186)](getGridDetails,_0x12e22d[_0x5541ea(0x176)][_0x5541ea(0x165)],_0x12e22d['Browserstack'][_0x5541ea(0x18c)],_0x40eb8e['gridId']);if(_0x54cb57){const _0x48a7f4=_0x54cb57[_0x5541ea(0x1a4)];global_registry[_0x5541ea(0x169)]=_0x48a7f4[_0x5541ea(0x169)],global_registry[_0x5541ea(0x189)]=_0x48a7f4[_0x5541ea(0x197)],global_registry[_0x5541ea(0x171)]=_0x48a7f4['clusterName'];const _0x26e09d=await _0x55634d[_0x5541ea(0x153)](getCloudProviderObject,_0x48a7f4['cloudProvider'],_0x48a7f4[_0x5541ea(0x171)],_0x48a7f4['name'],_0x10713c,webSocketUtils,_0x40eb8e),[_0x5757c2,_0x45004f,_0x45e17c,_0x3a249d,_0x3535e8,_0x3fda3b]=await _0x55634d[_0x5541ea(0x18e)](createK8sClient,_0x26e09d,_0x40eb8e[_0x5541ea(0x157)]);await _0x55634d['kkhps'](scaleUpHubDeployment,_0x45004f,_0x48a7f4[_0x5541ea(0x155)]),logger[_0x5541ea(0x1a4)](_0x55634d[_0x5541ea(0x172)]),process['exit'](0x0);}_0x55634d[_0x5541ea(0x190)](_0x221095[_0x5541ea(0x158)],0x191)&&(logger['error'](_0x55634d[_0x5541ea(0x161)]),await _0x55634d['QhdyU'](sendInstrumentationEvent,_0x40eb8e,_0x55634d[_0x5541ea(0x18d)],messageTypes[_0x5541ea(0x17b)],_0x55634d[_0x5541ea(0x18b)],null,_0x40eb8e),process[_0x5541ea(0x16c)](0x1)),_0x55634d[_0x5541ea(0x190)](_0x221095['statusCode'],0x190)&&(logger[_0x5541ea(0x151)](JSON['parse'](_0x221095[_0x5541ea(0x15a)])[_0x5541ea(0x175)]),await _0x55634d['Uahsg'](sendInstrumentationEvent,_0x40eb8e,_0x55634d[_0x5541ea(0x18d)],messageTypes[_0x5541ea(0x17b)],_0x55634d['VRfvV'],null,_0x40eb8e),process[_0x5541ea(0x16c)](0x1)),logger[_0x5541ea(0x151)](_0x5541ea(0x182)+JSON[_0x5541ea(0x187)](_0x221095)),await _0x55634d[_0x5541ea(0x17e)](sendInstrumentationEvent,_0x40eb8e,_0x55634d['evqxW'],messageTypes[_0x5541ea(0x17b)],_0x55634d[_0x5541ea(0x15f)],_0x221095,_0x40eb8e),process[_0x5541ea(0x16c)](0x1);}catch(_0x12884f){const _0x627fb7='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x12884f+'\x20\x0a'+JSON[_0x5541ea(0x187)](_0x12884f['stack'])+'\x20';logger['error'](_0x627fb7),process[_0x5541ea(0x16c)](0x1);}};function a19_0x3ec3(){const _0x1e3c82=['VIMxY','473540txiibv','XMCeC','MgvgT','INFO','start','description','xZZlw','unauthorised','region','1177TWknjK','debug','builder','yFuor','27dHvZho','bDsVs','7mcKcmt','type','gridId','bstackUsername','grid','handler','info','388570slqyVl','../../utils/gridComponents','argv','invalid-grid-id','../../utils/instrumentationUtils','rLxqt','error','3483328WbmIKL','QhdyU','help','name','replace','skipTlsCertVerify','statusCode','<PasswordPlaceholder>','body','3019362YEflKY','../../utils/utilityMethods','skip-tls-cert-verify','epilogue','cQAhO','command','FdBgp','bstackAccesskey','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','../../cloudproviders/utils','username','grid-id','WebSocket','start-grid-called','cloudProvider','../../utils/webSocketUtils','500EUuuFF','exit','GtwaI','15819NbkexC','<UsernamePlaceholder>','existsSync','clusterName','AqTFI','EahKC','boolean','message','Browserstack','Skip\x20insecure\x20cert\x20verification.','Start\x20an\x20existing\x20Automation\x20grid.','AottP','80016QbGgHi','ERROR','readFileSync','../../config/constants','Uahsg','string','../../config/logger','usage','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Adding\x20Websocket\x20listeners','rWBMQ','parse','IKOJb','stringify','1OzDaXx','clusterRegion','1213560eDKKvg','dVtLI','password','evqxW'];a19_0x3ec3=function(){return _0x1e3c82;};return a19_0x3ec3();}
@@ -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_0x176cee=a20_0x28c2;function a20_0x28c2(_0x26dda0,_0x55fb77){const _0x5d3a27=a20_0x5d3a();return a20_0x28c2=function(_0x28c2bf,_0x5dd878){_0x28c2bf=_0x28c2bf-0xe1;let _0x4d01d4=_0x5d3a27[_0x28c2bf];return _0x4d01d4;},a20_0x28c2(_0x26dda0,_0x55fb77);}(function(_0x1c4d2d,_0x4c7cdc){const _0x20ecb6=a20_0x28c2,_0x2230e0=_0x1c4d2d();while(!![]){try{const _0x4ee1d3=parseInt(_0x20ecb6(0xe4))/0x1+parseInt(_0x20ecb6(0xe1))/0x2+-parseInt(_0x20ecb6(0xef))/0x3+parseInt(_0x20ecb6(0xee))/0x4*(-parseInt(_0x20ecb6(0xf1))/0x5)+parseInt(_0x20ecb6(0xe5))/0x6+parseInt(_0x20ecb6(0xf6))/0x7+parseInt(_0x20ecb6(0xf8))/0x8*(-parseInt(_0x20ecb6(0xf3))/0x9);if(_0x4ee1d3===_0x4c7cdc)break;else _0x2230e0['push'](_0x2230e0['shift']());}catch(_0x3fe015){_0x2230e0['push'](_0x2230e0['shift']());}}}(a20_0x5d3a,0xe82af));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x176cee(0xe6));exports[a20_0x176cee(0xf4)]=a20_0x176cee(0xe8),exports[a20_0x176cee(0xf7)]=a20_0x176cee(0xe2),exports[a20_0x176cee(0xeb)]=function(_0x441fe9){const _0x1f5070=a20_0x176cee,_0x31e40d={};_0x31e40d[_0x1f5070(0xe7)]=_0x1f5070(0xea),_0x31e40d['HZXhh']=_0x1f5070(0xe9);const _0x170f1e=_0x31e40d;return _0x441fe9[_0x1f5070(0xec)](HELP_HEADER_MESSAGE[_0x1f5070(0xe8)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x170f1e[_0x1f5070(0xe7)])[_0x1f5070(0xed)]()[_0x1f5070(0xf2)]()[_0x1f5070(0xe3)]()[_0x1f5070(0xe9)](_0x170f1e[_0x1f5070(0xf0)]);},exports[a20_0x176cee(0xf5)]=function(_0x4c2f8a){};function a20_0x5d3a(){const _0x4b7e52=['builder','usage','demandCommand','11008NBXZAD','54594UHpqjg','HZXhh','1710pGVzRu','recommendCommands','54rwWDCg','command','handler','11734471dzbQKk','desc','2237672ZJgZDo','2854852haOLWQ','Stop\x20a\x20running\x20Automation\x20grid.','strict','202656Mhbqhp','1692960rlmKAt','../config/constants','oCTDQ','stop','help','stop_commands'];a20_0x5d3a=function(){return _0x4b7e52;};return a20_0x5d3a();}
@@ -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_0x565dfe=a21_0xa877;(function(_0x1536fb,_0x4d73ae){const _0x273829=a21_0xa877,_0xc6a3e0=_0x1536fb();while(!![]){try{const _0x499ec8=parseInt(_0x273829(0x17c))/0x1*(parseInt(_0x273829(0x197))/0x2)+-parseInt(_0x273829(0x18f))/0x3+parseInt(_0x273829(0x175))/0x4*(-parseInt(_0x273829(0x199))/0x5)+-parseInt(_0x273829(0x176))/0x6*(-parseInt(_0x273829(0x191))/0x7)+-parseInt(_0x273829(0x188))/0x8+-parseInt(_0x273829(0x1ac))/0x9+parseInt(_0x273829(0x1a2))/0xa*(parseInt(_0x273829(0x19b))/0xb);if(_0x499ec8===_0x4d73ae)break;else _0xc6a3e0['push'](_0xc6a3e0['shift']());}catch(_0x48773c){_0xc6a3e0['push'](_0xc6a3e0['shift']());}}}(a21_0x3d06,0xc6c18));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x565dfe(0x17f)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x565dfe(0x194)),{getCredentialsPath,getGridDetails}=require(a21_0x565dfe(0x166)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x565dfe(0x17b)),webSocketUtils=require(a21_0x565dfe(0x18e)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a21_0x565dfe(0x1a3));function a21_0xa877(_0x3358d0,_0x2b6e9c){const _0x3d06e6=a21_0x3d06();return a21_0xa877=function(_0xa87713,_0x5797dc){_0xa87713=_0xa87713-0x159;let _0x24488b=_0x3d06e6[_0xa87713];return _0x24488b;},a21_0xa877(_0x3358d0,_0x2b6e9c);}function a21_0x3d06(){const _0x442be8=['readFileSync','init-not-called','WebSocket','MpVNh','gjXle','ERROR','12856896rFguky','default','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','qfoqj','stop','exit','RClPI','Ymbqy','Stopping\x20grid\x20','ilvMu','replace','user','builder','epilogue','stringify','../../utils/utilityMethods','type','<UsernamePlaceholder>','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','BptIO','Stop\x20a\x20running\x20Automation\x20grid.','clusterName','XjUZV','addListeners','gridId','unauthorised','message','NXyrA','stop-grid-called','KNsIi','5075368IyCGFp','24jdOnmg','bbGuG','yViSH','debug','region','../../utils/instrumentationUtils','761PgvkLO','xsJyb','error','reconnecting-websocket','invalid-grid-id','QBCek','cTMnL','server-error','name','UtSbQ','connectionTimeout','gvYxU','10416784BnQwrK','description','cloudProvider','usage','password','Browserstack','../../utils/webSocketUtils','370797YsvKLk','username','634144RHjZjJ','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','body','../../config/logger','PHXZM','hfMiD','1832uJyPPn','jVBjc','5EHYIUI','parse','33gmPKwm','grid','help','statusCode','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','info','12925810PZObJP','../../cloudproviders/utils','bstackUsername','Grid\x20stoppped.'];a21_0x3d06=function(){return _0x442be8;};return a21_0x3d06();}exports['command']=a21_0x565dfe(0x19c),exports['desc']=a21_0x565dfe(0x16b),exports[a21_0x565dfe(0x163)]=function(_0x115e26){const _0x28c276=a21_0x565dfe,_0x3e0942={};_0x3e0942[_0x28c276(0x182)]=_0x28c276(0x19f),_0x3e0942[_0x28c276(0x15d)]='string',_0x3e0942[_0x28c276(0x160)]='Skip\x20insecure\x20cert\x20verification.',_0x3e0942[_0x28c276(0x195)]='boolean',_0x3e0942[_0x28c276(0x196)]=_0x28c276(0x19d);const _0x4e54b4=_0x3e0942,_0x523b86={};_0x523b86[_0x28c276(0x189)]=_0x4e54b4[_0x28c276(0x182)],_0x523b86[_0x28c276(0x167)]=_0x4e54b4[_0x28c276(0x15d)];const _0x45ad3f={};_0x45ad3f['description']=_0x4e54b4['ilvMu'],_0x45ad3f['type']=_0x4e54b4[_0x28c276(0x195)],_0x45ad3f[_0x28c276(0x1ad)]=![];const _0x3a321f={};return _0x3a321f['grid-id']=_0x523b86,_0x3a321f['skip-tls-cert-verify']=_0x45ad3f,_0x115e26[_0x28c276(0x18b)](HELP_HEADER_MESSAGE[_0x28c276(0x15b)])[_0x28c276(0x164)](HELP_FOOTER_MESSAGE)['options'](_0x3a321f)[_0x28c276(0x19d)](_0x4e54b4[_0x28c276(0x196)])['argv'];},exports['handler']=async function(_0x4bd82a){const _0x4060e3=a21_0x565dfe,_0xfc31be={'KNsIi':_0x4060e3(0x169),'NXyrA':function(_0x54fe7c){return _0x54fe7c();},'xsJyb':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','gjXle':function(_0xee6caa,_0x5022df,_0x283d42,_0x4fd21e,_0x2fb48e,_0x67ab6b,_0x2ff7f3){return _0xee6caa(_0x5022df,_0x283d42,_0x4fd21e,_0x2fb48e,_0x67ab6b,_0x2ff7f3);},'qfoqj':_0x4060e3(0x173),'EpPnx':_0x4060e3(0x1a7),'QBCek':function(_0x5d3fa0,_0x5e85b3,_0x2eb827,_0x410dc5,_0x3028cc,_0x3c296a,_0x21b70c){return _0x5d3fa0(_0x5e85b3,_0x2eb827,_0x410dc5,_0x3028cc,_0x3c296a,_0x21b70c);},'MpVNh':function(_0x4f920c){return _0x4f920c();},'UtSbQ':_0x4060e3(0x168),'iFXdV':'<PasswordPlaceholder>','lugJb':'Adding\x20Websocket\x20listeners','bbGuG':function(_0x354e09,_0xe1f5b3,_0x3abfb0,_0x51f0e3){return _0x354e09(_0xe1f5b3,_0x3abfb0,_0x51f0e3);},'BaiIM':function(_0x5f3b8f,_0x3bdaf9,_0x474135){return _0x5f3b8f(_0x3bdaf9,_0x474135);},'BptIO':function(_0x25024c,_0x23ef77,_0x41db18){return _0x25024c(_0x23ef77,_0x41db18);},'gvYxU':_0x4060e3(0x1a5),'XjUZV':function(_0x1cd4b4,_0x1112eb){return _0x1cd4b4===_0x1112eb;},'jRaTb':_0x4060e3(0x159),'jVBjc':_0x4060e3(0x170),'Ymbqy':_0x4060e3(0x180),'yViSH':_0x4060e3(0x183)};let _0x56adeb;try{!_0x4bd82a['gridId']&&(logger['error'](_0xfc31be[_0x4060e3(0x174)]),process[_0x4060e3(0x15c)](0x1));!fs['existsSync'](_0xfc31be[_0x4060e3(0x172)](getCredentialsPath))&&(logger[_0x4060e3(0x17e)](_0xfc31be[_0x4060e3(0x17d)]),await _0xfc31be['gjXle'](sendInstrumentationEvent,_0x4bd82a,_0xfc31be[_0x4060e3(0x15a)],messageTypes[_0x4060e3(0x1ab)],_0xfc31be['EpPnx'],null,_0x4bd82a),process['exit'](0x1));logger[_0x4060e3(0x1a1)](_0x4060e3(0x15f)+_0x4bd82a[_0x4060e3(0x16f)]),await _0xfc31be['QBCek'](sendInstrumentationEvent,_0x4bd82a,_0xfc31be['qfoqj'],messageTypes['INFO'],null,null,_0x4bd82a);const _0x3d83db=JSON[_0x4060e3(0x19a)](fs[_0x4060e3(0x1a6)](_0xfc31be[_0x4060e3(0x1a9)](getCredentialsPath)));global_registry[_0x4060e3(0x1a4)]=_0x3d83db[_0x4060e3(0x18d)][_0x4060e3(0x190)],global_registry['bstackAccesskey']=_0x3d83db[_0x4060e3(0x18d)][_0x4060e3(0x18c)];const _0x381298=WS_ENDPOINT[_0x4060e3(0x161)](_0xfc31be[_0x4060e3(0x185)],_0x3d83db[_0x4060e3(0x18d)][_0x4060e3(0x190)])['replace'](_0xfc31be['iFXdV'],_0x3d83db[_0x4060e3(0x18d)]['password']),_0x3d82f8={};_0x3d82f8[_0x4060e3(0x1a8)]=ws,_0x3d82f8[_0x4060e3(0x186)]=0x36ee80,_0x56adeb=new ReconnectingWebSocket(_0x381298,[],_0x3d82f8),logger[_0x4060e3(0x179)](_0xfc31be['lugJb']),webSocketUtils[_0x4060e3(0x16e)](_0x56adeb,_0x4bd82a[_0x4060e3(0x162)],_0x4bd82a[_0x4060e3(0x18c)]);const [_0x1edae9,_0x5d6021]=await _0xfc31be[_0x4060e3(0x177)](getGridDetails,_0x3d83db[_0x4060e3(0x18d)][_0x4060e3(0x190)],_0x3d83db[_0x4060e3(0x18d)][_0x4060e3(0x18c)],_0x4bd82a[_0x4060e3(0x16f)]);if(_0x5d6021){const _0x34e474=_0x5d6021[_0x4060e3(0x1a1)];global_registry[_0x4060e3(0x18a)]=_0x34e474[_0x4060e3(0x18a)],global_registry['clusterRegion']=_0x34e474[_0x4060e3(0x17a)],global_registry[_0x4060e3(0x16c)]=_0x34e474[_0x4060e3(0x16c)];const _0x31c253=await _0xfc31be[_0x4060e3(0x1aa)](getCloudProviderObject,_0x34e474[_0x4060e3(0x18a)],_0x34e474[_0x4060e3(0x16c)],_0x34e474[_0x4060e3(0x184)],_0x56adeb,webSocketUtils,_0x4bd82a),[_0xade885,_0x1cdf08,_0xf339e4,_0x3315c1,_0x3a35c2,_0x3e3fe7]=await _0xfc31be['BaiIM'](createK8sClient,_0x31c253,_0x4bd82a['skipTlsCertVerify']);await _0xfc31be[_0x4060e3(0x16a)](scaleDownHubDeployment,_0x1cdf08,_0x34e474[_0x4060e3(0x184)]),logger['info'](_0xfc31be[_0x4060e3(0x187)]),process[_0x4060e3(0x15c)](0x0);}_0xfc31be[_0x4060e3(0x16d)](_0x1edae9[_0x4060e3(0x19e)],0x191)&&(logger[_0x4060e3(0x17e)](_0xfc31be['jRaTb']),await _0xfc31be[_0x4060e3(0x1aa)](sendInstrumentationEvent,_0x4bd82a,_0xfc31be[_0x4060e3(0x15a)],messageTypes[_0x4060e3(0x1ab)],_0xfc31be[_0x4060e3(0x198)],null,_0x4bd82a),process[_0x4060e3(0x15c)](0x1)),_0xfc31be[_0x4060e3(0x16d)](_0x1edae9['statusCode'],0x190)&&(logger[_0x4060e3(0x17e)](JSON['parse'](_0x1edae9[_0x4060e3(0x193)])[_0x4060e3(0x171)]),await _0xfc31be[_0x4060e3(0x1aa)](sendInstrumentationEvent,_0x4bd82a,_0xfc31be[_0x4060e3(0x15a)],messageTypes[_0x4060e3(0x1ab)],_0xfc31be[_0x4060e3(0x15e)],null,_0x4bd82a),process[_0x4060e3(0x15c)](0x1)),logger[_0x4060e3(0x17e)](_0x4060e3(0x192)+JSON[_0x4060e3(0x165)](_0x1edae9)),await _0xfc31be[_0x4060e3(0x181)](sendInstrumentationEvent,_0x4bd82a,_0xfc31be['qfoqj'],messageTypes[_0x4060e3(0x1ab)],_0xfc31be[_0x4060e3(0x178)],_0x1edae9,_0x4bd82a),process[_0x4060e3(0x15c)](0x1);}catch(_0x3a11ef){const _0x857626=_0x4060e3(0x1a0)+_0x3a11ef+'\x20\x0a'+JSON[_0x4060e3(0x165)](_0x3a11ef['stack'])+'\x20';logger[_0x4060e3(0x17e)](_0x857626),process[_0x4060e3(0x15c)](0x1);}};
@@ -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_0x5da4c2=a22_0x5c03;(function(_0x11feb6,_0x37bfd0){const _0x309892=a22_0x5c03,_0x48093b=_0x11feb6();while(!![]){try{const _0x1e4034=-parseInt(_0x309892(0x8f))/0x1+parseInt(_0x309892(0xda))/0x2+-parseInt(_0x309892(0xdc))/0x3*(parseInt(_0x309892(0x8a))/0x4)+-parseInt(_0x309892(0xcc))/0x5*(parseInt(_0x309892(0xd1))/0x6)+parseInt(_0x309892(0x9a))/0x7*(parseInt(_0x309892(0xdd))/0x8)+-parseInt(_0x309892(0xc3))/0x9+parseInt(_0x309892(0x97))/0xa*(parseInt(_0x309892(0xbf))/0xb);if(_0x1e4034===_0x37bfd0)break;else _0x48093b['push'](_0x48093b['shift']());}catch(_0xf69af4){_0x48093b['push'](_0x48093b['shift']());}}}(a22_0x500e,0x7dfe9),require(a22_0x5da4c2(0xbe))['config'](),exports[a22_0x5da4c2(0x9f)]=process[a22_0x5da4c2(0xd5)]['DASHBOARD_ENDPOINT']||a22_0x5da4c2(0xc2),exports[a22_0x5da4c2(0x81)]=process[a22_0x5da4c2(0xd5)][a22_0x5da4c2(0x81)]||'api.browserstack.com',exports[a22_0x5da4c2(0x96)]=process[a22_0x5da4c2(0xd5)][a22_0x5da4c2(0x96)]||a22_0x5da4c2(0xaf),exports['WS_ENDPOINT']=a22_0x5da4c2(0x8d)+this[a22_0x5da4c2(0x96)]+a22_0x5da4c2(0xa1),exports['CP_CONFIG_FILE']=a22_0x5da4c2(0x82),exports[a22_0x5da4c2(0xc5)]=a22_0x5da4c2(0x9d),exports[a22_0x5da4c2(0xa2)]=a22_0x5da4c2(0xa3),exports[a22_0x5da4c2(0xa8)]=a22_0x5da4c2(0x8b),exports[a22_0x5da4c2(0x9e)]=a22_0x5da4c2(0x7d),exports[a22_0x5da4c2(0xa4)]=a22_0x5da4c2(0x80),exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x5da4c2(0xc7),exports[a22_0x5da4c2(0xc4)]='browserstack-turboscale-grid',exports[a22_0x5da4c2(0xdf)]=a22_0x5da4c2(0xcf),exports['GCP']=a22_0x5da4c2(0xc9),exports[a22_0x5da4c2(0xb2)]=[this['AWS'],this['AZURE'],this[a22_0x5da4c2(0x9b)]]);const a22_0x38fe86={};a22_0x38fe86[a22_0x5da4c2(0x7c)]=a22_0x5da4c2(0xd3),a22_0x38fe86[a22_0x5da4c2(0xb5)]=a22_0x5da4c2(0x92);const a22_0x548983={};a22_0x548983[a22_0x5da4c2(0x7c)]='browserstack:service',a22_0x548983[a22_0x5da4c2(0xb5)]=a22_0x5da4c2(0xe0);const common_hst_tags_list=[a22_0x38fe86,a22_0x548983];if(process['env'][a22_0x5da4c2(0x89)]){const parsedTags=process[a22_0x5da4c2(0xd5)][a22_0x5da4c2(0x89)][a22_0x5da4c2(0x87)](',');parsedTags[a22_0x5da4c2(0x88)](_0x2bd4c4=>{const _0x319892=a22_0x5da4c2,_0x285397=_0x2bd4c4['split'](':'),_0x2e0873={};_0x2e0873['Key']=_0x285397[0x0],_0x2e0873[_0x319892(0xb5)]=_0x285397[0x1],common_hst_tags_list[_0x319892(0xa5)](_0x2e0873);});}function a22_0x5c03(_0x1f5ae5,_0x2c08fb){const _0x500e3b=a22_0x500e();return a22_0x5c03=function(_0x5c0355,_0x55d10d){_0x5c0355=_0x5c0355-0x7c;let _0x47d45d=_0x500e3b[_0x5c0355];return _0x47d45d;},a22_0x5c03(_0x1f5ae5,_0x2c08fb);}exports[a22_0x5da4c2(0xb7)]=common_hst_tags_list;const a22_0x114697={};a22_0x114697['browserstack:managedBy']='BrowserStack',a22_0x114697[a22_0x5da4c2(0x8c)]='BrowserStack-Automate-TurboScale',exports[a22_0x5da4c2(0xb1)]=a22_0x114697,exports[a22_0x5da4c2(0xb6)]=[this[a22_0x5da4c2(0xa8)]];function a22_0x500e(){const _0x41f4b1=['DEFAULT_GRID_NAME','high-scale-grid','CLUSTER_AUTOSCALER_STACK_NAME','push','resourceInfo','cliRunStarted','AWS','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','cliRunFinished','us-east-1','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','list','create','grid-api.browserstack.com','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','HST_CLUSTER_TAGS','ALL_SUPPORTED_CLOUD_PROVIDERS','GRID_URL','DEFAULT_CLUSTER_DETAILS','Value','SUPPORTED_CLOUD_PROVIDERS','COMMON_HST_TAGS','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','[REDACTED]','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','CLI_RUN_FINISHED','root','dotenv','10272889IIDRmU','gridUrl','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','grid.browserstack.com','217890lJMeHY','TURBOSCALE_DEPLOYMENT','IAM_USER_NAME','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','BSTACK-ATS-CLUSTER-HUB-HA','CLUSTER','gcp','warning','SUCCESS','35CEmTAo','MessageDescription','configure','azure','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','842136nexAxP','WARNING','browserstack:managedBy','WS_EVENTS','env','NULL','HELP_FOOTER_MESSAGE','connect','HELP_HEADER_MESSAGE','873062uQqOlD','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','6342sXVyUb','2733960KFwIlD','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','AZURE','BrowserStack-Automate-TurboScale','error','Key','BSTACK-ATS-CLUSTER','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','REDACTED','BSTACK-ATS-CLUSTER-AUTOSCALER','BS_API_URL','credentials','global_registry','REGION','RAW_ARGS_REGEX','grid-profile','split','forEach','TURBOSCALE_CUSTOM_TAGS','336BytEAg','aws','browserstack:service','wss://','ERROR','945723DIdisA','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','LINK_MESSAGE','BrowserStack','RESOURCES','UNKNOWN','pre-check','AG_API_URL','20IYREEu','success','LOG','7whlROJ','GCP','high-scale-grid-cluster','BrowserStackIAMUser','CLUSTER_DEP_STACK_NAME','DASHBOARD_ENDPOINT','CLOUD_PROVIDER','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>'];a22_0x500e=function(){return _0x41f4b1;};return a22_0x500e();}const a22_0x28719d={};a22_0x28719d[a22_0x5da4c2(0x99)]='log',a22_0x28719d[a22_0x5da4c2(0x93)]=a22_0x5da4c2(0xa6),a22_0x28719d[a22_0x5da4c2(0xb3)]=a22_0x5da4c2(0xc0),a22_0x28719d['CLI_RUN_STARTED']=a22_0x5da4c2(0xa7),a22_0x28719d[a22_0x5da4c2(0xbc)]=a22_0x5da4c2(0xaa),exports[a22_0x5da4c2(0xd4)]=a22_0x28719d,exports[a22_0x5da4c2(0x83)]={},exports[a22_0x5da4c2(0x91)]=a22_0x5da4c2(0xbb);const a22_0x19caad={};a22_0x19caad[a22_0x5da4c2(0xbd)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this['LINK_MESSAGE'],a22_0x19caad['init']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x5da4c2(0x91)],a22_0x19caad[a22_0x5da4c2(0xce)]=a22_0x5da4c2(0xd0)+this[a22_0x5da4c2(0x91)],a22_0x19caad[a22_0x5da4c2(0xae)]=a22_0x5da4c2(0x90)+this[a22_0x5da4c2(0x91)],a22_0x19caad[a22_0x5da4c2(0xad)]={},a22_0x19caad['delete']=a22_0x5da4c2(0xc6)+this[a22_0x5da4c2(0x91)],a22_0x19caad[a22_0x5da4c2(0xd8)]=a22_0x5da4c2(0xb8)+this[a22_0x5da4c2(0x91)],a22_0x19caad['start']=a22_0x5da4c2(0xba)+this['LINK_MESSAGE'],a22_0x19caad['stop']=a22_0x5da4c2(0xa9)+this[a22_0x5da4c2(0x91)],a22_0x19caad['pre_check']=a22_0x5da4c2(0xde)+this['LINK_MESSAGE'],a22_0x19caad[a22_0x5da4c2(0xad)][a22_0x5da4c2(0xbd)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this[a22_0x5da4c2(0x91)],a22_0x19caad[a22_0x5da4c2(0xad)]['grid']=a22_0x5da4c2(0xc1)+this['LINK_MESSAGE'],a22_0x19caad[a22_0x5da4c2(0xad)]['gridProfile']=a22_0x5da4c2(0x7e)+this[a22_0x5da4c2(0x91)],exports[a22_0x5da4c2(0xd9)]=a22_0x19caad,exports[a22_0x5da4c2(0xd7)]=a22_0x5da4c2(0xdb);const a22_0x3737cd={};a22_0x3737cd[a22_0x5da4c2(0xcb)]=a22_0x5da4c2(0x98),a22_0x3737cd[a22_0x5da4c2(0x8e)]=a22_0x5da4c2(0xe1),a22_0x3737cd['INFO']='info',a22_0x3737cd[a22_0x5da4c2(0xd2)]=a22_0x5da4c2(0xca),a22_0x3737cd[a22_0x5da4c2(0x94)]='unknown',a22_0x3737cd[a22_0x5da4c2(0xd6)]=null,exports['messageTypes']=a22_0x3737cd,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x5da4c2(0x85)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x5da4c2(0x7f)]=a22_0x5da4c2(0xb9);const a22_0x3c6a09={};a22_0x3c6a09[a22_0x5da4c2(0x86)]=a22_0x5da4c2(0xb0);const a22_0xd77505={};a22_0xd77505[a22_0x5da4c2(0x95)]=a22_0x3c6a09,exports[a22_0x5da4c2(0xcd)]=a22_0xd77505,exports['TRIAL_GRID_URL']=a22_0x5da4c2(0xac);const a22_0x18506d={};a22_0x18506d[a22_0x5da4c2(0xc8)]=a22_0x5da4c2(0x9c),a22_0x18506d[a22_0x5da4c2(0xa0)]='aws',a22_0x18506d[a22_0x5da4c2(0x84)]=a22_0x5da4c2(0xab),exports[a22_0x5da4c2(0xb4)]=a22_0x18506d;
@@ -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_0x3fb4a0=a23_0x1f7b;(function(_0x55cf8a,_0x3d8a3c){const _0x4fac2f=a23_0x1f7b,_0x49c510=_0x55cf8a();while(!![]){try{const _0x217628=parseInt(_0x4fac2f(0xa5))/0x1*(parseInt(_0x4fac2f(0xba))/0x2)+-parseInt(_0x4fac2f(0x9b))/0x3+parseInt(_0x4fac2f(0xaf))/0x4*(-parseInt(_0x4fac2f(0xb2))/0x5)+-parseInt(_0x4fac2f(0xb9))/0x6+parseInt(_0x4fac2f(0xb8))/0x7*(parseInt(_0x4fac2f(0xb3))/0x8)+-parseInt(_0x4fac2f(0xa6))/0x9+-parseInt(_0x4fac2f(0xab))/0xa*(-parseInt(_0x4fac2f(0xb7))/0xb);if(_0x217628===_0x3d8a3c)break;else _0x49c510['push'](_0x49c510['shift']());}catch(_0x1b324b){_0x49c510['push'](_0x49c510['shift']());}}}(a23_0x35e3,0x488eb));const winston=require(a23_0x3fb4a0(0xa7)),fs=require('fs'),path=require(a23_0x3fb4a0(0x9e)),logDir=a23_0x3fb4a0(0xb4);!fs[a23_0x3fb4a0(0x9f)](logDir)&&fs['mkdirSync'](logDir);function a23_0x35e3(){const _0x46b3f6=['usage.log','logger','join','transports','792wZQZvB','4242555JbzcRT','winston','File','colorize','YYYY-MM-DD\x20HH:mm:ss','710AJgiuy','level','format','timestamp','314476NaGbEt','createLogger','fileLogger','15eTbzfj','56yNaUmU','log','\x20-\x20','events.log','66451lPwfFx','575561HNgvqz','636648eiYpMy','1118PGapLo','printf','Console','1009935gjvAET','debug','name','path','existsSync','message'];a23_0x35e3=function(){return _0x46b3f6;};return a23_0x35e3();}const a23_0x139bc9={};a23_0x139bc9[a23_0x3fb4a0(0xad)]=a23_0x3fb4a0(0xaa);function a23_0x1f7b(_0x98d719,_0x542df8){const _0x35e3dc=a23_0x35e3();return a23_0x1f7b=function(_0x1f7b6a,_0x1016f3){_0x1f7b6a=_0x1f7b6a-0x9b;let _0x1605da=_0x35e3dc[_0x1f7b6a];return _0x1605da;},a23_0x1f7b(_0x98d719,_0x542df8);}const a23_0x1e5304={};a23_0x1e5304[a23_0x3fb4a0(0xac)]=!![];const a23_0x27789a={};a23_0x27789a[a23_0x3fb4a0(0x9d)]='console.info',exports[a23_0x3fb4a0(0xa2)]=new winston[(a23_0x3fb4a0(0xb0))]({'format':winston[a23_0x3fb4a0(0xad)]['combine'](winston['format']['timestamp'](a23_0x139bc9),winston['format'][a23_0x3fb4a0(0xa9)](a23_0x1e5304),winston['format'][a23_0x3fb4a0(0xbb)](_0x3b7feb=>_0x3b7feb[a23_0x3fb4a0(0xae)]+a23_0x3fb4a0(0xb5)+_0x3b7feb[a23_0x3fb4a0(0xac)]+':\x20'+_0x3b7feb[a23_0x3fb4a0(0xa0)])),'transports':[new winston[(a23_0x3fb4a0(0xa4))][(a23_0x3fb4a0(0xbc))](a23_0x27789a),new winston[(a23_0x3fb4a0(0xa4))]['File']({'filename':path[a23_0x3fb4a0(0xa3)](logDir,a23_0x3fb4a0(0xb6)),'level':a23_0x3fb4a0(0x9c)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x3fb4a0(0xa4))][(a23_0x3fb4a0(0xa8))]({'filename':path[a23_0x3fb4a0(0xa3)](logDir,a23_0x3fb4a0(0xa1)),'level':a23_0x3fb4a0(0x9c)})]};exports[a23_0x3fb4a0(0xb1)]=new winston[(a23_0x3fb4a0(0xb0))](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';const a24_0x5867bd=a24_0x6b18;(function(_0x261cec,_0x5594a3){const _0x2f2fbc=a24_0x6b18,_0x4f5f45=_0x261cec();while(!![]){try{const _0x18ccd8=-parseInt(_0x2f2fbc(0xe8))/0x1*(parseInt(_0x2f2fbc(0xf8))/0x2)+parseInt(_0x2f2fbc(0xf3))/0x3*(-parseInt(_0x2f2fbc(0xfb))/0x4)+-parseInt(_0x2f2fbc(0xf0))/0x5+-parseInt(_0x2f2fbc(0xf2))/0x6+parseInt(_0x2f2fbc(0xef))/0x7*(parseInt(_0x2f2fbc(0xf9))/0x8)+parseInt(_0x2f2fbc(0xed))/0x9+parseInt(_0x2f2fbc(0xf4))/0xa;if(_0x18ccd8===_0x5594a3)break;else _0x4f5f45['push'](_0x4f5f45['shift']());}catch(_0x4be562){_0x4f5f45['push'](_0x4f5f45['shift']());}}}(a24_0x4a2c,0x699ae));function a24_0x6b18(_0x394ccf,_0x465d6a){const _0x4a2c80=a24_0x4a2c();return a24_0x6b18=function(_0x6b1852,_0x281872){_0x6b1852=_0x6b1852-0xe8;let _0x201d74=_0x4a2c80[_0x6b1852];return _0x201d74;},a24_0x6b18(_0x394ccf,_0x465d6a);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process[a24_0x5867bd(0xea)][a24_0x5867bd(0xf5)]=0x1;function a24_0x4a2c(){const _0xa4cbe0=['680808QjxQRO','root','20nxqyZb','oRXqk','677947FjHUHM','commands','env','usage','demandCommand','1660968uyMyLm','epilogue','7PgEtCU','2449230ryTWIQ','help','2146530Evvaeb','208005HUSigQ','20351280uJURmS','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','sgNQu','exports','2qDDLwG'];a24_0x4a2c=function(){return _0xa4cbe0;};return a24_0x4a2c();}function run(_0x2f356b){const _0x3b549c=a24_0x5867bd,_0x1a4bbf={};_0x1a4bbf[_0x3b549c(0xf6)]=_0x3b549c(0xe9),_0x1a4bbf[_0x3b549c(0xfc)]='help';const _0x17136d=_0x1a4bbf;_0x2f356b[_0x3b549c(0xeb)](HELP_HEADER_MESSAGE[_0x3b549c(0xfa)])['commandDir'](_0x17136d[_0x3b549c(0xf6)])[_0x3b549c(0xec)]()[_0x3b549c(0xf1)](_0x17136d[_0x3b549c(0xfc)])[_0x3b549c(0xee)](HELP_FOOTER_MESSAGE);}module[a24_0x5867bd(0xf7)]=run;