browserstack-node-sdk 1.35.6 → 1.35.7

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 +60 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  60. package/src/bin/jest/jest.setup.js +1 -1
  61. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  62. package/src/bin/jest/test-observability/helper.js +1 -1
  63. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  64. package/src/bin/jest/test-observability/test-details.js +1 -1
  65. package/src/bin/jest/test_before.setup.js +1 -1
  66. package/src/bin/launcher/launcher.js +1 -1
  67. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  68. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  69. package/src/bin/mocha/command.js +1 -1
  70. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  71. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  72. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  73. package/src/bin/mocha/test.setup.js +1 -1
  74. package/src/bin/nightwatch/command.js +1 -1
  75. package/src/bin/playwright/accessibility-helper.js +1 -1
  76. package/src/bin/playwright/command.js +1 -1
  77. package/src/bin/playwright/globalSetup.js +1 -1
  78. package/src/bin/playwright/mock-process.js +1 -1
  79. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  80. package/src/bin/playwright/patches.js +1 -1
  81. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  82. package/src/bin/playwright/reporter/reporter.js +1 -1
  83. package/src/bin/playwright/reporter/test-details.js +1 -1
  84. package/src/bin/playwright/sessionDetails.js +1 -1
  85. package/src/bin/runner.js +1 -1
  86. package/src/bin/setup.js +1 -1
  87. package/src/bin/test-runner/index.js +1 -1
  88. package/src/bin/test-runner/runTest.js +1 -1
  89. package/src/bin/test-runner/testWorker.js +1 -1
  90. package/src/bin/utils/constants.js +1 -1
  91. package/src/bin/utils/log4jsAppender.js +1 -1
  92. package/src/bin/utils/logPatcher.js +1 -1
  93. package/src/bin/utils/logReportingAPI.js +1 -1
  94. package/src/bin/vanilla-js/command.js +1 -1
  95. package/src/browserStackSdk.js +1 -1
  96. package/src/helpers/BrowserStackSetup.js +1 -1
  97. package/src/helpers/accessibility-automation/constants.js +1 -1
  98. package/src/helpers/accessibility-automation/helper.js +1 -1
  99. package/src/helpers/accessibility-automation/scripts.js +1 -1
  100. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  101. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  102. package/src/helpers/ats/constants.js +1 -1
  103. package/src/helpers/ats/helper.js +1 -1
  104. package/src/helpers/capsMapping.js +1 -1
  105. package/src/helpers/central-scanner/constants.js +1 -1
  106. package/src/helpers/central-scanner/helpers.js +1 -1
  107. package/src/helpers/globals.js +1 -1
  108. package/src/helpers/helper.js +1 -1
  109. package/src/helpers/logger.js +1 -1
  110. package/src/helpers/metadata.js +1 -1
  111. package/src/helpers/patchHelper.js +1 -1
  112. package/src/helpers/patchHelpers.js +1 -1
  113. package/src/helpers/percy/Percy.js +1 -1
  114. package/src/helpers/percy/PercyBinary.js +1 -1
  115. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  116. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  117. package/src/helpers/percy/PercySDK.js +1 -1
  118. package/src/helpers/percy/index.js +1 -1
  119. package/src/helpers/percy/utils.js +1 -1
  120. package/src/helpers/performance/constants.js +1 -1
  121. package/src/helpers/performance/performance-tester.js +1 -1
  122. package/src/helpers/processHelper.js +1 -1
  123. package/src/helpers/request-spy.js +1 -1
  124. package/src/helpers/setKeepAlive.js +1 -1
  125. package/src/helpers/test-observability/constants.js +1 -1
  126. package/src/helpers/test-observability/error-handler.js +1 -1
  127. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  128. package/src/helpers/test-observability/sessionHandler.js +1 -1
  129. package/src/helpers/test-observability/utils.js +1 -1
  130. package/src/helpers/testhub/constants.js +1 -1
  131. package/src/helpers/testhub/testhubHandler.js +1 -1
  132. package/src/helpers/testhub/utils.js +1 -1
  133. package/src/helpers/timeoutPromise.js +1 -1
  134. package/src/helpers/utilities.js +1 -1
  135. package/src/helpers/w3cMapping.js +1 -1
  136. package/src/hubAllocationMethods.js +1 -1
  137. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x46c58b=a15_0x3367;(function(_0x3bf9a1,_0x3445a5){const _0x10d4b7=a15_0x3367,_0x3edb21=_0x3bf9a1();while(!![]){try{const _0x2b230e=parseInt(_0x10d4b7(0x18d))/0x1+parseInt(_0x10d4b7(0x15b))/0x2*(-parseInt(_0x10d4b7(0x18c))/0x3)+parseInt(_0x10d4b7(0x160))/0x4*(-parseInt(_0x10d4b7(0x176))/0x5)+-parseInt(_0x10d4b7(0x1a6))/0x6+parseInt(_0x10d4b7(0x198))/0x7+parseInt(_0x10d4b7(0x16d))/0x8*(parseInt(_0x10d4b7(0x17b))/0x9)+parseInt(_0x10d4b7(0x191))/0xa;if(_0x2b230e===_0x3445a5)break;else _0x3edb21['push'](_0x3edb21['shift']());}catch(_0x1ee3f3){_0x3edb21['push'](_0x3edb21['shift']());}}}(a15_0x2f4a,0xec95c));const fs=require('fs'),got=require(a15_0x46c58b(0x190)),{table}=require('table'),{v4:uuidv4}=require(a15_0x46c58b(0x18b)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x46c58b(0x182)),{getCredentialsPath,getAuthHeader}=require(a15_0x46c58b(0x18e)),{sendInstrumentationEvent}=require(a15_0x46c58b(0x17e));exports['command']=a15_0x46c58b(0x180),exports[a15_0x46c58b(0x185)]=a15_0x46c58b(0x171),exports['builder']=function(_0x3d38bb){const _0x6ca71a=a15_0x46c58b,_0x270a2e={};_0x270a2e[_0x6ca71a(0x172)]=_0x6ca71a(0x157),_0x270a2e['wwqdA']='boolean',_0x270a2e[_0x6ca71a(0x169)]='help';const _0x10b65a=_0x270a2e,_0x5d0136={};_0x5d0136[_0x6ca71a(0x15f)]=_0x10b65a['vmddQ'],_0x5d0136[_0x6ca71a(0x1a1)]=_0x10b65a[_0x6ca71a(0x19d)];const _0x17babb={};return _0x17babb[_0x6ca71a(0x186)]=_0x5d0136,_0x3d38bb[_0x6ca71a(0x189)](HELP_HEADER_MESSAGE[_0x6ca71a(0x166)][_0x6ca71a(0x178)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x6ca71a(0x196)](_0x17babb)['help'](_0x10b65a[_0x6ca71a(0x169)])[_0x6ca71a(0x1a5)];},exports[a15_0x46c58b(0x1ac)]=async function(_0x3c1b9a){const _0x11c93d=a15_0x46c58b,_0x1da256={'IHGMc':function(_0x4e6f6c){return _0x4e6f6c();},'vXwnY':function(_0x1982b9){return _0x1982b9();},'xjbav':_0x11c93d(0x156),'dBwsb':function(_0x3c1a1d,_0x59c9fd,_0x37ee03,_0x1ec6d3,_0x4ed80a,_0x38d9b0,_0x4d9dce){return _0x3c1a1d(_0x59c9fd,_0x37ee03,_0x1ec6d3,_0x4ed80a,_0x38d9b0,_0x4d9dce);},'jXqOV':'list-grids-called','VaBaH':'init-not-called','wubuM':_0x11c93d(0x1a2),'rVhfs':function(_0x132005,_0x2705f2,_0x3fbb3f){return _0x132005(_0x2705f2,_0x3fbb3f);},'Vnzbm':function(_0x4a0cd9,_0x25d155){return _0x4a0cd9!==_0x25d155;},'efELm':function(_0x50fd3b,_0x557ab2){return _0x50fd3b===_0x557ab2;},'zaZTP':_0x11c93d(0x193),'JGFMh':_0x11c93d(0x16c),'ERNlz':_0x11c93d(0x16b),'TEkiE':'status','USQfH':_0x11c93d(0x187),'mkHRX':_0x11c93d(0x177),'dWrIx':'cluster-name','oHcvB':function(_0x101edf,_0x4a5baa){return _0x101edf(_0x4a5baa);},'NRdNI':function(_0x4dc164,_0x1f7b40){return _0x4dc164===_0x1f7b40;},'BRaMb':_0x11c93d(0x159),'bofUI':_0x11c93d(0x1a3),'IuqiE':_0x11c93d(0x163),'BziMh':_0x11c93d(0x1a4)};try{global_registry[_0x11c93d(0x16f)]=_0x1da256[_0x11c93d(0x165)](uuidv4);!fs[_0x11c93d(0x15e)](_0x1da256[_0x11c93d(0x181)](getCredentialsPath))&&(console[_0x11c93d(0x168)](_0x1da256['xjbav']),await _0x1da256['dBwsb'](sendInstrumentationEvent,_0x3c1b9a,_0x1da256[_0x11c93d(0x158)],messageTypes[_0x11c93d(0x18f)],_0x1da256[_0x11c93d(0x16a)],null,_0x3c1b9a),process[_0x11c93d(0x174)](0x1));const _0x21ccb5=JSON['parse'](fs[_0x11c93d(0x16e)](_0x1da256['IHGMc'](getCredentialsPath)));let _0x1755ff=_0x11c93d(0x18a)+AG_API_URL+_0x11c93d(0x19e);_0x3c1b9a[_0x11c93d(0x162)]&&(_0x1755ff=_0x11c93d(0x18a)+AG_API_URL+_0x11c93d(0x184));const _0x4a50ed={'method':_0x1da256[_0x11c93d(0x19f)],'headers':_0x1da256[_0x11c93d(0x1a0)](getAuthHeader,_0x21ccb5[_0x11c93d(0x194)][_0x11c93d(0x192)],_0x21ccb5['Browserstack'][_0x11c93d(0x199)]),'throwHttpErrors':![]};global_registry[_0x11c93d(0x1a8)]=_0x21ccb5[_0x11c93d(0x194)]['username'],global_registry[_0x11c93d(0x167)]=_0x21ccb5['Browserstack'][_0x11c93d(0x199)],_0x1da256[_0x11c93d(0x1aa)](sendInstrumentationEvent,_0x3c1b9a,_0x1da256[_0x11c93d(0x158)],messageTypes[_0x11c93d(0x164)],null,null,_0x3c1b9a);const _0x82544e=await _0x1da256[_0x11c93d(0x1a0)](got,_0x1755ff,_0x4a50ed);if(_0x1da256[_0x11c93d(0x15c)](_0x82544e,null)&&_0x1da256['Vnzbm'](_0x82544e,undefined)&&_0x1da256[_0x11c93d(0x197)](_0x82544e[_0x11c93d(0x19b)],0xc8)){const _0x3a6e03=JSON[_0x11c93d(0x188)](_0x82544e[_0x11c93d(0x19a)]);console['log'](_0x1da256[_0x11c93d(0x17d)]);const _0x1f5700=[];_0x1f5700['push']([_0x1da256[_0x11c93d(0x173)],_0x1da256[_0x11c93d(0x179)],_0x1da256[_0x11c93d(0x1a9)],_0x1da256[_0x11c93d(0x19c)],_0x1da256['mkHRX'],_0x1da256[_0x11c93d(0x1a7)]]),_0x3a6e03[_0x11c93d(0x1ab)](_0x42d36a=>{const _0x4936c9=_0x11c93d;_0x1f5700[_0x4936c9(0x15a)]([_0x42d36a['id'],_0x42d36a['name'],_0x42d36a[_0x4936c9(0x161)],_0x42d36a[_0x4936c9(0x187)],_0x42d36a[_0x4936c9(0x177)],_0x42d36a[_0x4936c9(0x17f)]]);}),console[_0x11c93d(0x17c)](_0x1da256['oHcvB'](table,_0x1f5700)),process[_0x11c93d(0x174)](0x0);}_0x1da256[_0x11c93d(0x175)](_0x82544e['statusCode'],0x191)&&(console[_0x11c93d(0x168)](_0x1da256[_0x11c93d(0x195)]),await _0x1da256['dBwsb'](sendInstrumentationEvent,_0x3c1b9a,_0x1da256[_0x11c93d(0x158)],messageTypes['ERROR'],_0x1da256['bofUI'],null,_0x3c1b9a),process[_0x11c93d(0x174)](0x1)),console['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x11c93d(0x15d)](_0x82544e)),await _0x1da256[_0x11c93d(0x1aa)](sendInstrumentationEvent,_0x3c1b9a,_0x1da256[_0x11c93d(0x158)],messageTypes['ERROR'],_0x1da256[_0x11c93d(0x170)],_0x82544e,_0x3c1b9a),process['exit'](0x1);}catch(_0x37ae75){console[_0x11c93d(0x168)](_0x11c93d(0x17a)+_0x37ae75[_0x11c93d(0x1ad)]),await _0x1da256[_0x11c93d(0x1aa)](sendInstrumentationEvent,_0x3c1b9a,_0x1da256[_0x11c93d(0x158)],messageTypes['ERROR'],_0x1da256[_0x11c93d(0x183)],_0x37ae75,_0x3c1b9a),process[_0x11c93d(0x174)](0x1);}};function a15_0x3367(_0x43aca6,_0x141684){const _0x2f4a8b=a15_0x2f4a();return a15_0x3367=function(_0x33672e,_0x1f2130){_0x33672e=_0x33672e-0x156;let _0x4658c7=_0x2f4a8b[_0x33672e];return _0x4658c7;},a15_0x3367(_0x43aca6,_0x141684);}function a15_0x2f4a(){const _0x53274c=['https://','uuid','27mMHYMp','1838992WoGpAe','../../utils/utilityMethods','ERROR','got','7065550uaKAke','username','\x0aFound\x20the\x20following\x20grids:\x0a','Browserstack','BRaMb','options','efELm','2010778UEpVFP','password','body','statusCode','USQfH','wwqdA','/packages/cli/get-grids','wubuM','rVhfs','type','GET','unauthorised','unknown-error','argv','2904498kZxlYW','dWrIx','bstackUsername','TEkiE','dBwsb','forEach','handler','stack','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','jXqOV','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','push','166412LpyqkA','Vnzbm','stringify','existsSync','description','12juhJsI','status','allGrids','server-error','INFO','IHGMc','list','bstackAccesskey','error','nCaci','VaBaH','grid-name','grid-id','536VHDFiE','readFileSync','requestId','IuqiE','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','vmddQ','JGFMh','exit','NRdNI','3107025eGFzaZ','queued','grid','ERNlz','Failed\x20to\x20list\x20resources!\x20Error:\x20','165681htlYpe','log','zaZTP','../../utils/instrumentationUtils','clusterName','grids','vXwnY','../../config/constants','BziMh','/packages/cli/get-all-grids','desc','all-grids','running','parse','usage'];a15_0x2f4a=function(){return _0x53274c;};return a15_0x2f4a();}
1
+ function a15_0x4329(_0x1f8c03,_0x2a4991){const _0x3a6e7a=a15_0x3a6e();return a15_0x4329=function(_0x432988,_0x1e5ff9){_0x432988=_0x432988-0xca;let _0x332b7a=_0x3a6e7a[_0x432988];return _0x332b7a;},a15_0x4329(_0x1f8c03,_0x2a4991);}const a15_0x4bcea1=a15_0x4329;(function(_0x10f5b8,_0x3486c5){const _0x3e3dd2=a15_0x4329,_0x346dfa=_0x10f5b8();while(!![]){try{const _0x3426c5=parseInt(_0x3e3dd2(0xf5))/0x1+-parseInt(_0x3e3dd2(0x112))/0x2*(parseInt(_0x3e3dd2(0xf9))/0x3)+-parseInt(_0x3e3dd2(0x10a))/0x4+parseInt(_0x3e3dd2(0xf8))/0x5+-parseInt(_0x3e3dd2(0x11c))/0x6+parseInt(_0x3e3dd2(0x102))/0x7*(-parseInt(_0x3e3dd2(0xe0))/0x8)+parseInt(_0x3e3dd2(0xe3))/0x9*(parseInt(_0x3e3dd2(0x103))/0xa);if(_0x3426c5===_0x3486c5)break;else _0x346dfa['push'](_0x346dfa['shift']());}catch(_0x955a79){_0x346dfa['push'](_0x346dfa['shift']());}}}(a15_0x3a6e,0x51a38));const fs=require('fs'),got=require('got'),{table}=require(a15_0x4bcea1(0x107)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x4bcea1(0xdf)),{sendInstrumentationEvent}=require(a15_0x4bcea1(0x104));function a15_0x3a6e(){const _0x5f01dd=['qLhsV','3685722mtcREX','description','push','exit','error','help','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','pcOCK','grid-name','Mwarp','ERROR','PpvlU','/packages/cli/get-grids','wwBJO','eWzJP','aOIRa','ZGPLE','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','list','zeYnP','Browserstack','running','../../utils/utilityMethods','1240Orwnko','Cxuxs','argv','9RxWABR','hCZMD','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','stack','UTDuB','existsSync','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','parse','server-error','Failed\x20to\x20list\x20resources!\x20Error:\x20','all-grids','status','DRxly','KCfIS','username','LRhiR','statusCode','handler','344136vhDonK','/packages/cli/get-all-grids','queued','690990KCulcg','6843CSLaTv','log','https://','readFileSync','body','GET','command','grids','bstackUsername','8967OkZkvS','12076790sYpqNt','../../utils/instrumentationUtils','\x0aFound\x20the\x20following\x20grids:\x0a','usage','table','bstackAccesskey','password','218580yRTGAT','name','LiGdD','hiipM','INFO','forEach','requestId','zXMVA','428FuDswO','ggruy','epilogue','allGrids','unauthorised','hCitK','unknown-error','TanqD','twdxW'];a15_0x3a6e=function(){return _0x5f01dd;};return a15_0x3a6e();}exports[a15_0x4bcea1(0xff)]=a15_0x4bcea1(0x100),exports['desc']='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x2dd46f){const _0x1fee92=a15_0x4bcea1,_0xffd588={};_0xffd588[_0x1fee92(0xe4)]=_0x1fee92(0xe5),_0xffd588[_0x1fee92(0xd4)]='boolean',_0xffd588[_0x1fee92(0x119)]='help';const _0x1359d3=_0xffd588,_0x4ce197={};_0x4ce197[_0x1fee92(0xca)]=_0x1359d3[_0x1fee92(0xe4)],_0x4ce197['type']=_0x1359d3[_0x1fee92(0xd4)];const _0x178189={};return _0x178189[_0x1fee92(0xed)]=_0x4ce197,_0x2dd46f[_0x1fee92(0x106)](HELP_HEADER_MESSAGE[_0x1fee92(0xdb)]['grid'])[_0x1fee92(0x114)](HELP_FOOTER_MESSAGE)['options'](_0x178189)[_0x1fee92(0xce)](_0x1359d3[_0x1fee92(0x119)])[_0x1fee92(0xe2)];},exports[a15_0x4bcea1(0xf4)]=async function(_0x448fdd){const _0x6757bb=a15_0x4bcea1,_0x29c747={'hiipM':function(_0x567dd4){return _0x567dd4();},'eWzJP':_0x6757bb(0xe9),'Cxuxs':function(_0x1c15d3,_0x265e53,_0x1f9275,_0x45ca16,_0x3e79ea,_0x23b5f7,_0x300df0){return _0x1c15d3(_0x265e53,_0x1f9275,_0x45ca16,_0x3e79ea,_0x23b5f7,_0x300df0);},'wwBJO':'list-grids-called','ggruy':'init-not-called','hCitK':_0x6757bb(0xfe),'Mwarp':function(_0x395b02,_0x50689c,_0x287d4c){return _0x395b02(_0x50689c,_0x287d4c);},'UYHCf':function(_0x4b7195,_0x53d61a){return _0x4b7195!==_0x53d61a;},'twdxW':function(_0x11edad,_0x15ee05){return _0x11edad!==_0x15ee05;},'DRxly':function(_0x3ab1f1,_0x4d7e61){return _0x3ab1f1===_0x4d7e61;},'zeYnP':_0x6757bb(0x105),'qLhsV':'grid-id','kkIMI':_0x6757bb(0xd1),'LRhiR':_0x6757bb(0xee),'UTDuB':_0x6757bb(0xde),'zXMVA':_0x6757bb(0xf7),'ZGPLE':'cluster-name','aOIRa':function(_0xd363a0,_0x112375){return _0xd363a0(_0x112375);},'LiGdD':_0x6757bb(0xda),'KCfIS':function(_0x485ff0,_0x55968d,_0xf4f9fb,_0x3e0747,_0x41c53f,_0x1a349a,_0x302031){return _0x485ff0(_0x55968d,_0xf4f9fb,_0x3e0747,_0x41c53f,_0x1a349a,_0x302031);},'nyCOH':_0x6757bb(0x116),'vGkiZ':function(_0xb6609b,_0x25a8cc,_0x1b7391,_0x57d12c,_0x281af1,_0x22fe06,_0x129817){return _0xb6609b(_0x25a8cc,_0x1b7391,_0x57d12c,_0x281af1,_0x22fe06,_0x129817);},'EdoLP':_0x6757bb(0xeb),'pcOCK':function(_0x176329,_0x5b7399,_0x3f9404,_0x47ebed,_0x3a2690,_0x555a12,_0x64bc09){return _0x176329(_0x5b7399,_0x3f9404,_0x47ebed,_0x3a2690,_0x555a12,_0x64bc09);},'vdGyF':_0x6757bb(0x118)};try{global_registry[_0x6757bb(0x110)]=_0x29c747[_0x6757bb(0x10d)](uuidv4);!fs[_0x6757bb(0xe8)](_0x29c747[_0x6757bb(0x10d)](getCredentialsPath))&&(console[_0x6757bb(0xcd)](_0x29c747[_0x6757bb(0xd7)]),await _0x29c747[_0x6757bb(0xe1)](sendInstrumentationEvent,_0x448fdd,_0x29c747[_0x6757bb(0xd6)],messageTypes[_0x6757bb(0xd3)],_0x29c747[_0x6757bb(0x113)],null,_0x448fdd),process[_0x6757bb(0xcc)](0x1));const _0x2e1410=JSON['parse'](fs[_0x6757bb(0xfc)](_0x29c747[_0x6757bb(0x10d)](getCredentialsPath)));let _0x32cb16=_0x6757bb(0xfb)+AG_API_URL+_0x6757bb(0xd5);_0x448fdd[_0x6757bb(0x115)]&&(_0x32cb16=_0x6757bb(0xfb)+AG_API_URL+_0x6757bb(0xf6));const _0x6497b5={'method':_0x29c747[_0x6757bb(0x117)],'headers':_0x29c747[_0x6757bb(0xd2)](getAuthHeader,_0x2e1410['Browserstack'][_0x6757bb(0xf1)],_0x2e1410[_0x6757bb(0xdd)][_0x6757bb(0x109)]),'throwHttpErrors':![]};global_registry[_0x6757bb(0x101)]=_0x2e1410[_0x6757bb(0xdd)][_0x6757bb(0xf1)],global_registry[_0x6757bb(0x108)]=_0x2e1410[_0x6757bb(0xdd)][_0x6757bb(0x109)],_0x29c747['Cxuxs'](sendInstrumentationEvent,_0x448fdd,_0x29c747['wwBJO'],messageTypes[_0x6757bb(0x10e)],null,null,_0x448fdd);const _0x404b04=await _0x29c747[_0x6757bb(0xd2)](got,_0x32cb16,_0x6497b5);if(_0x29c747['UYHCf'](_0x404b04,null)&&_0x29c747[_0x6757bb(0x11a)](_0x404b04,undefined)&&_0x29c747['DRxly'](_0x404b04['statusCode'],0xc8)){const _0x34a6aa=JSON[_0x6757bb(0xea)](_0x404b04[_0x6757bb(0xfd)]);console[_0x6757bb(0xfa)](_0x29c747[_0x6757bb(0xdc)]);const _0x256b6b=[];_0x256b6b[_0x6757bb(0xcb)]([_0x29c747[_0x6757bb(0x11b)],_0x29c747['kkIMI'],_0x29c747[_0x6757bb(0xf2)],_0x29c747[_0x6757bb(0xe7)],_0x29c747[_0x6757bb(0x111)],_0x29c747[_0x6757bb(0xd9)]]),_0x34a6aa[_0x6757bb(0x10f)](_0x27add5=>{const _0xce34f=_0x6757bb;_0x256b6b[_0xce34f(0xcb)]([_0x27add5['id'],_0x27add5[_0xce34f(0x10b)],_0x27add5[_0xce34f(0xee)],_0x27add5[_0xce34f(0xde)],_0x27add5[_0xce34f(0xf7)],_0x27add5['clusterName']]);}),console['log'](_0x29c747[_0x6757bb(0xd8)](table,_0x256b6b)),process['exit'](0x0);}_0x29c747[_0x6757bb(0xef)](_0x404b04[_0x6757bb(0xf3)],0x191)&&(console[_0x6757bb(0xcd)](_0x29c747[_0x6757bb(0x10c)]),await _0x29c747[_0x6757bb(0xf0)](sendInstrumentationEvent,_0x448fdd,_0x29c747[_0x6757bb(0xd6)],messageTypes['ERROR'],_0x29c747['nyCOH'],null,_0x448fdd),process[_0x6757bb(0xcc)](0x1)),console[_0x6757bb(0xcd)](_0x6757bb(0xcf)+JSON['stringify'](_0x404b04)),await _0x29c747['vGkiZ'](sendInstrumentationEvent,_0x448fdd,_0x29c747[_0x6757bb(0xd6)],messageTypes['ERROR'],_0x29c747['EdoLP'],_0x404b04,_0x448fdd),process[_0x6757bb(0xcc)](0x1);}catch(_0x4fdae8){console[_0x6757bb(0xcd)](_0x6757bb(0xec)+_0x4fdae8[_0x6757bb(0xe6)]),await _0x29c747[_0x6757bb(0xd0)](sendInstrumentationEvent,_0x448fdd,_0x29c747['wwBJO'],messageTypes[_0x6757bb(0xd3)],_0x29c747['vdGyF'],_0x4fdae8,_0x448fdd),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a16_0x251f9b=a16_0x29db;function a16_0x29db(_0x18fc8c,_0x2e49e7){const _0x3cefb5=a16_0x3cef();return a16_0x29db=function(_0x29db1d,_0x4c1ab6){_0x29db1d=_0x29db1d-0x1cd;let _0x29e545=_0x3cefb5[_0x29db1d];return _0x29e545;},a16_0x29db(_0x18fc8c,_0x2e49e7);}function a16_0x3cef(){const _0xed8ef=['strict','42823YqrkIU','2270fVItSw','command','28297RKgWjN','oTPfx','help','6998740bjxCFU','builder','532XyZlDn','pre_check','demandCommand','26LTJeoS','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','2385072Kskbfc','78MhiCrI','commandDir','pre-check','HUKtd','8GhEyoT','22035eJgLBI','6577362QYOaJh','handler','../config/constants','epilogue','recommendCommands','272705BzLCuX','precheck_commands','desc'];a16_0x3cef=function(){return _0xed8ef;};return a16_0x3cef();}(function(_0x31c882,_0x125361){const _0x278b92=a16_0x29db,_0x410b5b=_0x31c882();while(!![]){try{const _0x14cc8f=-parseInt(_0x278b92(0x1cd))/0x1*(parseInt(_0x278b92(0x1d5))/0x2)+parseInt(_0x278b92(0x1dd))/0x3*(parseInt(_0x278b92(0x1d2))/0x4)+parseInt(_0x278b92(0x1e3))/0x5*(parseInt(_0x278b92(0x1d8))/0x6)+-parseInt(_0x278b92(0x1d0))/0x7*(-parseInt(_0x278b92(0x1dc))/0x8)+-parseInt(_0x278b92(0x1de))/0x9+parseInt(_0x278b92(0x1e8))/0xa*(-parseInt(_0x278b92(0x1e7))/0xb)+-parseInt(_0x278b92(0x1d7))/0xc;if(_0x14cc8f===_0x125361)break;else _0x410b5b['push'](_0x410b5b['shift']());}catch(_0x4393b7){_0x410b5b['push'](_0x410b5b['shift']());}}}(a16_0x3cef,0x7b310));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x251f9b(0x1e0));exports[a16_0x251f9b(0x1e9)]=a16_0x251f9b(0x1da),exports[a16_0x251f9b(0x1e5)]=a16_0x251f9b(0x1d6),exports[a16_0x251f9b(0x1d1)]=function(_0x44a06e){const _0x219bc5=a16_0x251f9b,_0x54f98a={};_0x54f98a[_0x219bc5(0x1ce)]=_0x219bc5(0x1e4),_0x54f98a[_0x219bc5(0x1db)]=_0x219bc5(0x1cf);const _0x541dc9=_0x54f98a;return _0x44a06e['usage'](HELP_HEADER_MESSAGE[_0x219bc5(0x1d3)])[_0x219bc5(0x1e1)](HELP_FOOTER_MESSAGE)[_0x219bc5(0x1d9)](_0x541dc9[_0x219bc5(0x1ce)])[_0x219bc5(0x1d4)]()[_0x219bc5(0x1e2)]()[_0x219bc5(0x1e6)]()[_0x219bc5(0x1cf)](_0x541dc9[_0x219bc5(0x1db)]);},exports[a16_0x251f9b(0x1df)]=function(_0x35b82f){};
1
+ const a16_0xe69c9e=a16_0x3c99;(function(_0x1bc8fa,_0x2d77e2){const _0x27e804=a16_0x3c99,_0x277998=_0x1bc8fa();while(!![]){try{const _0x6570c2=-parseInt(_0x27e804(0x1e0))/0x1*(parseInt(_0x27e804(0x1f1))/0x2)+-parseInt(_0x27e804(0x1db))/0x3+parseInt(_0x27e804(0x1de))/0x4+parseInt(_0x27e804(0x1f0))/0x5+parseInt(_0x27e804(0x1e7))/0x6+-parseInt(_0x27e804(0x1e9))/0x7*(parseInt(_0x27e804(0x1e5))/0x8)+-parseInt(_0x27e804(0x1ec))/0x9*(parseInt(_0x27e804(0x1dc))/0xa);if(_0x6570c2===_0x2d77e2)break;else _0x277998['push'](_0x277998['shift']());}catch(_0x41c8a0){_0x277998['push'](_0x277998['shift']());}}}(a16_0xe8b2,0x6a660));function a16_0x3c99(_0x185b65,_0x1f9273){const _0xe8b2b2=a16_0xe8b2();return a16_0x3c99=function(_0x3c9999,_0x45c20a){_0x3c9999=_0x3c9999-0x1db;let _0x16a6ed=_0xe8b2b2[_0x3c9999];return _0x16a6ed;},a16_0x3c99(_0x185b65,_0x1f9273);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0xe69c9e(0x1e2));function a16_0xe8b2(){const _0x5a1420=['357265DrJyzj','handler','../config/constants','epilogue','usage','4536168LjkZBf','builder','3677544WdSaiT','demandCommand','7HAhFWV','strict','desc','153iPjisS','recommendCommands','command','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','3269640irQbfR','2MkzDgR','Yctup','gyVzS','118866AZGidN','181130yfOBkK','commandDir','1763140zDRptV','help'];a16_0xe8b2=function(){return _0x5a1420;};return a16_0xe8b2();}exports[a16_0xe69c9e(0x1ee)]='pre-check',exports[a16_0xe69c9e(0x1eb)]=a16_0xe69c9e(0x1ef),exports[a16_0xe69c9e(0x1e6)]=function(_0x251f33){const _0x420166=a16_0xe69c9e,_0x2733d7={};_0x2733d7['gyVzS']='precheck_commands',_0x2733d7[_0x420166(0x1f2)]=_0x420166(0x1df);const _0x24afec=_0x2733d7;return _0x251f33[_0x420166(0x1e4)](HELP_HEADER_MESSAGE['pre_check'])[_0x420166(0x1e3)](HELP_FOOTER_MESSAGE)[_0x420166(0x1dd)](_0x24afec[_0x420166(0x1f3)])[_0x420166(0x1e8)]()[_0x420166(0x1ed)]()[_0x420166(0x1ea)]()[_0x420166(0x1df)](_0x24afec['Yctup']);},exports[a16_0xe69c9e(0x1e1)]=function(_0x4fbc93){};
@@ -1 +1 @@
1
- const a17_0x3f5cf6=a17_0x3b5f;function a17_0x3b5f(_0xdd15bc,_0x325a3c){const _0x4177cd=a17_0x4177();return a17_0x3b5f=function(_0x3b5f3c,_0x49924e){_0x3b5f3c=_0x3b5f3c-0x9e;let _0x28c0ee=_0x4177cd[_0x3b5f3c];return _0x28c0ee;},a17_0x3b5f(_0xdd15bc,_0x325a3c);}(function(_0x578993,_0xb870fd){const _0xf22255=a17_0x3b5f,_0x566a71=_0x578993();while(!![]){try{const _0x28bf49=-parseInt(_0xf22255(0x195))/0x1+-parseInt(_0xf22255(0x9f))/0x2+-parseInt(_0xf22255(0xa6))/0x3+parseInt(_0xf22255(0x12a))/0x4*(parseInt(_0xf22255(0x130))/0x5)+-parseInt(_0xf22255(0x18e))/0x6+-parseInt(_0xf22255(0x10d))/0x7+parseInt(_0xf22255(0xde))/0x8;if(_0x28bf49===_0xb870fd)break;else _0x566a71['push'](_0x566a71['shift']());}catch(_0x3fabdd){_0x566a71['push'](_0x566a71['shift']());}}}(a17_0x4177,0x3edd1));function a17_0x4177(){const _0x16c3f9=['tanLj','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','https://','length','includes','WTQdg','FZLNX','YFvCS','existsSync','\x20error\x20:\x20','GLPPB','stack\x20trace\x20','/packages/cli/get-all-grid-profiles','`\x20,error\x20:\x20','sfcLn','QxYfE','TLSv1_2_client_method','connectionTimeout','GbWnn','`\x20is\x20present\x20in\x20region\x20`','tKUbt','pre-check-grid-called','ZQwJM','replace','4|0|3|1|2','IfIgJ','stringify','description','cluster-name','LOG','pre-check-failed','gridProfile','cloud-provider','GpkHJ','`\x20already\x20exists','Dvzfp','NjRBH','oHlIb','Failure','vPtuh','options','JhuMj','../../utils/webSocketUtils','isTls1_2_SUPPORTED','Report\x20saved\x20in\x20','User\x20Access','PCWPn','grid\x20profile\x20flow\x20','EFffS','Missing\x20required\x20arguments:\x20','pre-check-cluster-args-not-passed','headers','Mwmba','readFileSync','\x20\x20Message:\x20','\x20data\x20:\x20','HtCSb','eZOph','ZeMOz','delay','nYtRG','hLhEw','Cluster\x20','gadvJ','AYCFc','Kuwrh','vZMfY','UnVOW','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','xKGVd','../../utils/utilityMethods','epilogue','ERROR','code','Failed\x20in\x20pre-check!\x20Error:\x20','\x20\x20Stack:\x20','find','desc','Whitelisted\x20browserstack','Cluster\x20details\x0a-----------------------\x0a','error','edSUC','tdMBg','Xxddl','ZTygb','VYVGu','dPZDG','Tool\x20Installed','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','2134992sEprka','method','INFO','KWOwA','checkAccess','usage','dpmpR','326485tEaMSD','isTrialGridAccessible','DcDfw','weuQx','\x20region\x20-\x20','ZPIEX','xjFrb','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','sAyuj','credential-not-found','53578znwBlo','.txt','XgRqw','tscfS','Dtcow','===\x20Precheck\x20Report\x20-\x20','odbVc','66120IAaMJH','string','Uhbtu','pre-check-grid-profile-empty','debug','isClusterPresent','gSLus','TpSWF','.\x20Please\x20provide\x20all\x20required\x20arguments.','Qrbxk','requestId','THsyn','uGbGu','../../config/logger','Setting\x20cloud\x20provider\x20as\x20','CPUxY','name','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','MiImq','BVgWt','bstackAccesskey','vnZpA','log/report_','dummy-grid','cluster-check-failed-','header','bUIow','init','XnVVd','Browserstack','wAeIi','koubH','KcuyY','PUQoJ','RIGfe','error\x20stack\x20:\x20','jdpra','throwHttpErrors','username','password','BXnds','uMSoW','Status:\x20','sendEventToBackend','WebSocket','pre_check','status','isCliToolInstalled','MOday','VuuKe','DiTSe','getUTCHours','Bfdbl','zHPSs','stack','cloud-provider-not-supported','8758400SEseFY','lfHSL','fggpF','btSLb','exit','<UsernamePlaceholder>','yHLTD','\x20\x20Code:\x20','toLowerCase','grid-profile','NhajF','HxJVw','data','kKOaA','unable\x20to\x20verify\x20if\x20cluster\x20`','Message:\x20','clusterName','bstackUsername','gaGqw','piPIw','WChNr','NOLtf','cloudProvider','region','hHiji','SgEhA','Error\x20Details:\x0a','body','RdyLn','type','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','YxhLo','push','is\x20already\x20present','parse','KgBNr','jXPnA','builder','MEsHa','akjUF','../../config/constants','accessResp','xFfNn','LChBa','help','pwLyl','XQQUt','2495493jdNbXX','N/A','message','xVKml','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','nBoXQ','FADHU','SlXIU','FJBTf','MkQqE','PSbBg','GET','ispUK','ZuqPG','VEdGr','XVkXi','will\x20be\x20created',']\x20status\x20:\x20','<PasswordPlaceholder>','grid','response','oZfAw','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','forEach','SSL\x20Configured','rCsWA','handler','Cluster\x20`','71524lweUUt','clusterRegion','info','eTCiL','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','CLOUD_PROVIDER','70rfaFHX','RJlJT','dCQjd','SEgHu','TXQXO'];a17_0x4177=function(){return _0x16c3f9;};return a17_0x4177();}const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x3f5cf6(0x17b)),{logger}=require(a17_0x3f5cf6(0xb3)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x3f5cf6(0x106)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x3f5cf6(0x15f)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports['command']=a17_0x3f5cf6(0x120),exports[a17_0x3f5cf6(0x182)]=a17_0x3f5cf6(0x12e),exports[a17_0x3f5cf6(0x103)]=function(_0x2b176b){const _0x5a1fad=a17_0x3f5cf6,_0x5ec5e0={};_0x5ec5e0[_0x5a1fad(0xfa)]=_0x5a1fad(0x19c),_0x5ec5e0[_0x5a1fad(0xa3)]=_0x5a1fad(0xa7),_0x5ec5e0[_0x5a1fad(0xa2)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x5ec5e0[_0x5a1fad(0xf7)]=_0x5a1fad(0x123),_0x5ec5e0[_0x5a1fad(0x11c)]=_0x5a1fad(0xfc),_0x5ec5e0[_0x5a1fad(0xf6)]='help';const _0x3936df=_0x5ec5e0,_0x23df89={};_0x23df89[_0x5a1fad(0x150)]=_0x3936df['RdyLn'],_0x23df89[_0x5a1fad(0xfb)]=_0x3936df[_0x5a1fad(0xa3)];const _0x412f7e={};_0x412f7e['description']=_0x3936df[_0x5a1fad(0xa2)],_0x412f7e[_0x5a1fad(0xfb)]=_0x3936df[_0x5a1fad(0xa3)];const _0x49e9f9={};_0x49e9f9[_0x5a1fad(0x150)]=_0x3936df[_0x5a1fad(0xf7)],_0x49e9f9[_0x5a1fad(0xfb)]=_0x3936df[_0x5a1fad(0xa3)];const _0x49c0de={};_0x49c0de[_0x5a1fad(0x150)]=_0x3936df['XVkXi'],_0x49c0de[_0x5a1fad(0xfb)]=_0x3936df[_0x5a1fad(0xa3)];const _0x5eb907={};return _0x5eb907['cluster-name']=_0x23df89,_0x5eb907['cloud-provider']=_0x412f7e,_0x5eb907[_0x5a1fad(0xf5)]=_0x49e9f9,_0x5eb907[_0x5a1fad(0xe7)]=_0x49c0de,_0x2b176b[_0x5a1fad(0x193)](HELP_HEADER_MESSAGE[_0x5a1fad(0xd3)])[_0x5a1fad(0x17c)](HELP_FOOTER_MESSAGE)[_0x5a1fad(0x15d)](_0x5eb907)[_0x5a1fad(0x10a)](_0x3936df[_0x5a1fad(0xf6)])['argv'];};async function inputValidation(_0x171680,_0x4ed89d){const _0x1f07c8=a17_0x3f5cf6,_0x3a4ba2={'pwLyl':_0x1f07c8(0xf8),'PCWPn':_0x1f07c8(0x10e),'THsyn':'cloud-provider','RJlJT':function(_0x468c7a,_0x5d3031){return _0x468c7a+_0x5d3031;},'hLhEw':'Success','iSaMT':'Failure','wgetJ':function(_0x5c580c,_0x2841a9){return _0x5c580c||_0x2841a9;},'ZPIEX':'region','weuQx':_0x1f07c8(0x19c),'ZTygb':'string','Bfdbl':_0x1f07c8(0xb7),'GpkHJ':_0x1f07c8(0x123),'AYCFc':_0x1f07c8(0xfc),'KWOwA':_0x1f07c8(0x10a),'odbVc':_0x1f07c8(0x136),'piPIw':_0x1f07c8(0x151),'MkQqE':_0x1f07c8(0x185),'fvbkW':_0x1f07c8(0xff),'WChNr':_0x1f07c8(0x11d),'IfIgJ':function(_0x5a77a4,_0x1eeb2d){return _0x5a77a4!==_0x1eeb2d;},'dPZDG':_0x1f07c8(0xe9),'XnVVd':_0x1f07c8(0x14b),'TXQXO':_0x1f07c8(0x187),'GbWnn':_0x1f07c8(0x122),'gSLus':function(_0x38c416,_0x21b3c1){return _0x38c416===_0x21b3c1;},'rcBiC':_0x1f07c8(0x13c),'XgRqw':'jKsTw','uMSoW':_0x1f07c8(0x165),'wAeIi':function(_0x3b4ac7,_0x1af27d){return _0x3b4ac7>_0x1af27d;},'QVRzO':function(_0x5d0a1f,_0x5d0bf8){return _0x5d0a1f!==_0x5d0bf8;},'dpmpR':_0x1f07c8(0x19b),'xVKml':_0x1f07c8(0x149),'WTQdg':function(_0x59b0a4,_0x2f2e7e,_0x48ecd9,_0x1fce3f,_0x4c121c,_0x20eb28,_0x1586f7,_0x5a37ed){return _0x59b0a4(_0x2f2e7e,_0x48ecd9,_0x1fce3f,_0x4c121c,_0x20eb28,_0x1586f7,_0x5a37ed);},'vPtuh':_0x1f07c8(0x14a),'uaZOH':_0x1f07c8(0x167),'btSLb':function(_0x16b8f1,_0x36503a){return _0x16b8f1===_0x36503a;},'CPUxY':_0x1f07c8(0x186),'AsERp':_0x1f07c8(0xca),'HtCSb':_0x1f07c8(0x18d),'zHPSs':function(_0x427b9b,_0x4845d9,_0x1db9ae,_0x1c56e2,_0x1fc48a,_0x551a56,_0x1e6d5f,_0x775f2a){return _0x427b9b(_0x4845d9,_0x1db9ae,_0x1c56e2,_0x1fc48a,_0x551a56,_0x1e6d5f,_0x775f2a);},'rCsWA':_0x1f07c8(0xdd),'xFfNn':function(_0x4a1258,_0x402514){return _0x4a1258!==_0x402514;},'ARiAK':_0x1f07c8(0xe0),'oHlIb':_0x1f07c8(0x169),'yHLTD':_0x1f07c8(0x118),'ispUK':function(_0x405371,_0x4f5d68,_0x388a9e){return _0x405371(_0x4f5d68,_0x388a9e);},'KcuyY':function(_0x2df2b4,_0x1777f3,_0x402d42,_0x53a6b8,_0x2a2a49,_0xe9535){return _0x2df2b4(_0x1777f3,_0x402d42,_0x53a6b8,_0x2a2a49,_0xe9535);},'JmNDX':'pre-check','akjUF':_0x1f07c8(0xe7),'sAyuj':function(_0x49beb6,_0x3bf9bf){return _0x49beb6===_0x3bf9bf;},'QxYfE':function(_0x4882e6,_0x8be741){return _0x4882e6===_0x8be741;},'Uhbtu':_0x1f07c8(0x143),'vZMfY':function(_0x362915,_0x5e5c4a){return _0x362915(_0x5e5c4a);},'YxhLo':_0x1f07c8(0x102),'Xxddl':_0x1f07c8(0xd7),'eZOph':function(_0x14c0a7,_0x3b1545,_0x57322b,_0x1fe937,_0x4e284b,_0x1d51bc,_0x454d2d,_0x57dd93){return _0x14c0a7(_0x3b1545,_0x57322b,_0x1fe937,_0x4e284b,_0x1d51bc,_0x454d2d,_0x57dd93);},'MiImq':_0x1f07c8(0xa9),'ZuqPG':function(_0x10c65d,_0xf37f90){return _0x10c65d!==_0xf37f90;},'UdvkX':_0x1f07c8(0xdf),'RIGfe':'ZlFIY','EvOun':function(_0x16059f,_0x5b0469){return _0x16059f===_0x5b0469;},'SlXIU':_0x1f07c8(0xeb),'Qrbxk':'vfmKr','gaGqw':'Grid\x20profile\x20fetched\x20for\x20pre-check','YRvHP':function(_0x1a73c9,_0x57c5f9){return _0x1a73c9!==_0x57c5f9;},'DZCbf':_0x1f07c8(0x117),'SEgHu':'raNMD'};let _0x2e833f;try{if(_0x3a4ba2[_0x1f07c8(0x14e)](_0x3a4ba2[_0x1f07c8(0x18b)],_0x3a4ba2[_0x1f07c8(0x18b)]))_0x2697f0['info']('['+_0x49d8f9+_0x1f07c8(0x11e)+_0x48d929[_0x1f07c8(0xd4)]+_0x1f07c8(0x16c)+_0xa3d578['data']+_0x1f07c8(0x13e)+_0x5136d5[_0x1f07c8(0x185)]),_0x7b77fa[_0x1f07c8(0x185)]&&_0x1cc73d[_0x1f07c8(0x185)](_0x1f07c8(0xc9)+_0xdf934f[_0x1f07c8(0x185)][_0x1f07c8(0xdc)]);else{if(_0x171680['clusterName']||_0x171680[_0x1f07c8(0xf4)]||_0x171680[_0x1f07c8(0xf5)]){if(_0x3a4ba2['IfIgJ'](_0x3a4ba2[_0x1f07c8(0xc2)],_0x3a4ba2[_0x1f07c8(0x134)])){const _0x473c17=[];!_0x171680[_0x1f07c8(0xee)]&&(_0x3a4ba2['IfIgJ'](_0x3a4ba2[_0x1f07c8(0x147)],_0x3a4ba2['GbWnn'])?(_0xe5d655+=_0x3a4ba2[_0x1f07c8(0x10b)],_0x287cde+='\x20\x20Message:\x20'+(_0x306ed8[_0x1f07c8(0x10f)]||_0x3a4ba2[_0x1f07c8(0x163)])+'\x0a',_0x5c9f89+=_0x1f07c8(0xe5)+(_0x4787bf['code']||_0x3a4ba2[_0x1f07c8(0x163)])+'\x0a',_0x623a82+=_0x1f07c8(0x180)+(_0x16c63e['stack']||_0x3a4ba2[_0x1f07c8(0x163)])+'\x0a'):_0x473c17[_0x1f07c8(0xfe)](_0x3a4ba2[_0x1f07c8(0xf1)]));;!_0x171680[_0x1f07c8(0xf4)]&&(_0x3a4ba2[_0x1f07c8(0xac)](_0x3a4ba2['rcBiC'],_0x3a4ba2['rcBiC'])?_0x473c17[_0x1f07c8(0xfe)](_0x3a4ba2['THsyn']):_0x124a88[_0x1f07c8(0x12c)](_0x1f07c8(0x129)+_0xa4f796[_0x1f07c8(0xee)]+_0x1f07c8(0x157)));;!_0x171680[_0x1f07c8(0xf5)]&&(_0x3a4ba2[_0x1f07c8(0xac)](_0x3a4ba2[_0x1f07c8(0xa1)],_0x3a4ba2[_0x1f07c8(0xcf)])?_0x58b395=_0x56a948:_0x473c17[_0x1f07c8(0xfe)](_0x3a4ba2[_0x1f07c8(0x19a)]));;_0x3a4ba2[_0x1f07c8(0xc4)](_0x473c17[_0x1f07c8(0x138)],0x0)&&(_0x3a4ba2['QVRzO'](_0x3a4ba2[_0x1f07c8(0x194)],_0x3a4ba2[_0x1f07c8(0x110)])?(_0x2e833f=_0x1f07c8(0x166)+_0x473c17['join'](',\x20')+_0x1f07c8(0xae),await _0x3a4ba2[_0x1f07c8(0x13a)](reportToGalactusAndSendToEDS,_0x171680,_0x4ed89d,_0x2e833f,messageTypes[_0x1f07c8(0x17d)],_0x3a4ba2['vPtuh'],_0x3a4ba2['uaZOH'],_0x3a4ba2['MkQqE']),logger[_0x1f07c8(0x185)](_0x2e833f),process[_0x1f07c8(0xe2)](0x1)):_0x40f5d1['push'](_0x3a4ba2[_0x1f07c8(0xb1)]));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x1f07c8(0x139)](_0x171680[_0x1f07c8(0xf4)][_0x1f07c8(0xe6)]())){if(_0x3a4ba2[_0x1f07c8(0xe1)](_0x3a4ba2[_0x1f07c8(0xb5)],_0x3a4ba2['AsERp'])){const {header:_0x2587b8,response:_0x580449}=_0x337e0a,{status:_0x15ee27,data:_0x55aee6,error:_0x42f80d}=_0x580449;_0x445b0c+=_0x2587b8+'\x20#'+_0x3a4ba2[_0x1f07c8(0x131)](_0xe215b6,0x1)+'\x0a',_0x3ff29b+=_0x1f07c8(0xd0)+(_0x15ee27?_0x3a4ba2[_0x1f07c8(0x172)]:_0x3a4ba2['iSaMT'])+'\x0a',_0xaf7560+=_0x1f07c8(0xed)+_0x3a4ba2['wgetJ'](_0x55aee6,_0x3a4ba2[_0x1f07c8(0x163)])+'\x0a',_0x42f80d&&(_0x5e6870+=_0x3a4ba2[_0x1f07c8(0x10b)],_0xec9d4d+=_0x1f07c8(0x16b)+(_0x42f80d['message']||_0x3a4ba2[_0x1f07c8(0x163)])+'\x0a',_0x548f6e+=_0x1f07c8(0xe5)+(_0x42f80d[_0x1f07c8(0x17e)]||_0x3a4ba2[_0x1f07c8(0x163)])+'\x0a',_0x532460+='\x20\x20Stack:\x20'+(_0x42f80d['stack']||_0x3a4ba2[_0x1f07c8(0x163)])+'\x0a'),_0x2c104b+='\x0a\x0a';}else _0x2e833f=_0x3a4ba2[_0x1f07c8(0x16d)],await _0x3a4ba2[_0x1f07c8(0xdb)](reportToGalactusAndSendToEDS,_0x171680,_0x4ed89d,_0x2e833f,messageTypes[_0x1f07c8(0x17d)],_0x3a4ba2[_0x1f07c8(0x15c)],_0x3a4ba2['rCsWA'],_0x3a4ba2[_0x1f07c8(0x116)]),logger[_0x1f07c8(0x185)](_0x2e833f),!_0x171680[_0x1f07c8(0xf4)]&&(_0x3a4ba2[_0x1f07c8(0x108)](_0x3a4ba2['ARiAK'],_0x3a4ba2['ARiAK'])?_0xec4f63[_0x1f07c8(0xfe)](_0x3a4ba2[_0x1f07c8(0x19a)]):(logger['info'](_0x1f07c8(0xb4)+DEFAULT_CLUSTER_DETAILS[_0x1f07c8(0x12f)]+'\x20'),_0x171680['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x1f07c8(0x12f)]));}global_registry['clusterName']=_0x171680[_0x1f07c8(0xee)],global_registry[_0x1f07c8(0xf4)]=_0x171680[_0x1f07c8(0xf4)],global_registry['clusterRegion']=_0x171680[_0x1f07c8(0xf5)];}else _0x4319b1[_0x1f07c8(0x185)](_0x1f07c8(0xc9)+_0x34200f[_0x1f07c8(0x185)][_0x1f07c8(0xdc)]);}else{if(_0x171680[_0x1f07c8(0x154)]){if(_0x3a4ba2[_0x1f07c8(0xe1)](_0x3a4ba2[_0x1f07c8(0x15a)],_0x3a4ba2[_0x1f07c8(0x15a)])){global_registry[_0x1f07c8(0x154)]=_0x171680[_0x1f07c8(0x154)],logger[_0x1f07c8(0xaa)](_0x1f07c8(0x164)+_0x171680['gridProfile']);const _0x3df625=_0x1f07c8(0x137)+AG_API_URL+_0x1f07c8(0x141),_0x5b136a={};_0x5b136a[_0x1f07c8(0x18f)]=_0x3a4ba2[_0x1f07c8(0xe4)],_0x5b136a[_0x1f07c8(0x168)]=global_registry['authHeader'],_0x5b136a[_0x1f07c8(0xcb)]=![];const _0x3eda5e=_0x5b136a,_0x1c7300=await _0x3a4ba2[_0x1f07c8(0x119)](got,_0x3df625,_0x3eda5e),_0xea6f3d=await _0x3a4ba2[_0x1f07c8(0xc6)](responseValidation,_0x1c7300,_0x3a4ba2['JmNDX'],_0x3a4ba2[_0x1f07c8(0x105)],_0x171680,_0x4ed89d);let _0x5dc594={};if(_0x3a4ba2[_0x1f07c8(0x19d)](_0xea6f3d,0xc8)){if(_0x3a4ba2[_0x1f07c8(0x144)](_0x3a4ba2[_0x1f07c8(0xa8)],_0x3a4ba2['Uhbtu'])){const _0x548f5a=JSON[_0x1f07c8(0x100)](_0x1c7300[_0x1f07c8(0xf9)]),_0x40e2c0=_0x548f5a[_0x1f07c8(0x181)](_0x597568=>_0x597568[_0x1f07c8(0xb6)]===_0x171680[_0x1f07c8(0x154)])||null;if(_0x3a4ba2[_0x1f07c8(0x177)](isUndefined,_0x40e2c0))_0x3a4ba2[_0x1f07c8(0x14e)](_0x3a4ba2[_0x1f07c8(0xfd)],_0x3a4ba2[_0x1f07c8(0x188)])?(_0x2e833f='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x171680[_0x1f07c8(0x154)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x3a4ba2[_0x1f07c8(0x16e)](reportToGalactusAndSendToEDS,_0x171680,_0x4ed89d,_0x2e833f,messageTypes['ERROR'],_0x3a4ba2[_0x1f07c8(0x15c)],_0x3a4ba2[_0x1f07c8(0xb8)],_0x3a4ba2[_0x1f07c8(0x116)]),logger['error'](_0x2e833f),process[_0x1f07c8(0xe2)](0x1)):(_0x30bbf7[_0x1f07c8(0x12c)](_0x1f07c8(0xb4)+_0x1b8e1b[_0x1f07c8(0x12f)]+'\x20'),_0x16a26b[_0x1f07c8(0xf4)]=_0x755ba7[_0x1f07c8(0x12f)]);else{if(_0x3a4ba2[_0x1f07c8(0x11a)](_0x3a4ba2['UdvkX'],_0x3a4ba2[_0x1f07c8(0xc8)]))_0x5dc594=_0x40e2c0;else{const _0x35d591={};_0x35d591[_0x1f07c8(0x150)]=_0x3a4ba2[_0x1f07c8(0x198)],_0x35d591[_0x1f07c8(0xfb)]=_0x3a4ba2[_0x1f07c8(0x189)];const _0x272110={};_0x272110[_0x1f07c8(0x150)]=_0x3a4ba2[_0x1f07c8(0xda)],_0x272110[_0x1f07c8(0xfb)]=_0x3a4ba2[_0x1f07c8(0x189)];const _0x3999ae={};_0x3999ae[_0x1f07c8(0x150)]=_0x3a4ba2[_0x1f07c8(0x156)],_0x3999ae[_0x1f07c8(0xfb)]=_0x3a4ba2[_0x1f07c8(0x189)];const _0xeec6c3={};_0xeec6c3['description']=_0x3a4ba2[_0x1f07c8(0x175)],_0xeec6c3[_0x1f07c8(0xfb)]=_0x3a4ba2[_0x1f07c8(0x189)];const _0x49fd6a={};return _0x49fd6a[_0x1f07c8(0x151)]=_0x35d591,_0x49fd6a[_0x1f07c8(0x155)]=_0x272110,_0x49fd6a[_0x1f07c8(0xf5)]=_0x3999ae,_0x49fd6a['grid-profile']=_0xeec6c3,_0x4ced3b[_0x1f07c8(0x193)](_0x532ee7[_0x1f07c8(0xd3)])['epilogue'](_0x1979f9)[_0x1f07c8(0x15d)](_0x49fd6a)[_0x1f07c8(0x10a)](_0x3a4ba2[_0x1f07c8(0x191)])['argv'];}}}else _0x4a382d['error'](_0x3a4ba2[_0x1f07c8(0xa5)]),_0x463853['exit'](0x1);}else _0x3a4ba2['EvOun'](_0x3a4ba2[_0x1f07c8(0x114)],_0x3a4ba2[_0x1f07c8(0xaf)])?_0x4a37be[_0x1f07c8(0xfe)](_0x3a4ba2[_0x1f07c8(0xf1)]):process[_0x1f07c8(0xe2)](0x1);const _0x37b33d={};_0x37b33d[_0x1f07c8(0xfb)]=WS_EVENTS[_0x1f07c8(0x152)],_0x37b33d[_0x1f07c8(0x10f)]=_0x3a4ba2[_0x1f07c8(0xf0)],webSocketUtils[_0x1f07c8(0xd1)](_0x4ed89d,_0x37b33d),global_registry[_0x1f07c8(0xf4)]=_0x5dc594['cloudProvider'],global_registry[_0x1f07c8(0x12b)]=_0x5dc594[_0x1f07c8(0xf5)],global_registry[_0x1f07c8(0xee)]=_0x5dc594[_0x1f07c8(0xee)];}else{const _0x3c790e={};_0x3c790e['type']=_0x1e6d74[_0x1f07c8(0x152)],_0x3c790e[_0x1f07c8(0x10f)]=_0x3441d6,_0x3b7eba[_0x1f07c8(0xd1)](_0x56649c,_0x3c790e,_0x3a4ba2[_0x1f07c8(0x116)],!![]);}}else _0x3a4ba2['YRvHP'](_0x3a4ba2['DZCbf'],_0x3a4ba2['DZCbf'])?_0x3d435b[_0x1f07c8(0xe2)](0x1):(logger[_0x1f07c8(0x185)](_0x3a4ba2[_0x1f07c8(0xa5)]),process[_0x1f07c8(0xe2)](0x1));}}}catch(_0x710b8e){_0x3a4ba2[_0x1f07c8(0x14e)](_0x3a4ba2[_0x1f07c8(0x133)],_0x3a4ba2[_0x1f07c8(0x133)])?_0x449d71+=_0x1f07c8(0x173)+_0x1c18ca[_0x1f07c8(0xee)]+'\x20'+(_0xd307e3?_0x3a4ba2['fvbkW']:_0x3a4ba2[_0x1f07c8(0xf2)])+'\x0a\x0a':(_0x2e833f=_0x1f07c8(0x179)+_0x710b8e+':\x20'+_0x710b8e[_0x1f07c8(0xdc)],logger[_0x1f07c8(0x185)](_0x2e833f),await _0x3a4ba2['WTQdg'](reportToGalactusAndSendToEDS,_0x171680,_0x4ed89d,_0x2e833f,messageTypes['ERROR'],_0x3a4ba2[_0x1f07c8(0x15c)],_0x3a4ba2[_0x1f07c8(0x127)],_0x3a4ba2[_0x1f07c8(0x116)]),process[_0x1f07c8(0xe2)](0x1));}}function printResponse(_0xea542d,_0x230243){const _0x11c372=a17_0x3f5cf6,_0x156fb4={};_0x156fb4['NOLtf']=function(_0x102780,_0x26e7c0){return _0x102780===_0x26e7c0;},_0x156fb4[_0x11c372(0x112)]=_0x11c372(0x13f),_0x156fb4[_0x11c372(0xb9)]=_0x11c372(0x17a);const _0x5d1bff=_0x156fb4;logger[_0x11c372(0x12c)]('['+_0xea542d+']\x20status\x20:\x20'+_0x230243[_0x11c372(0xd4)]+_0x11c372(0x16c)+_0x230243[_0x11c372(0xea)]+_0x11c372(0x13e)+_0x230243['error']),_0x230243['error']&&(_0x5d1bff[_0x11c372(0xf3)](_0x5d1bff[_0x11c372(0x112)],_0x5d1bff[_0x11c372(0xb9)])?_0x4e128a+=_0x11c372(0x173)+_0xc6bfac[_0x11c372(0xee)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':logger['error'](_0x11c372(0xc9)+_0x230243[_0x11c372(0x185)][_0x11c372(0xdc)]));}async function generateReport(_0x4be490,_0x466685){const _0x2865ae=a17_0x3f5cf6,_0x59f045={'NhajF':function(_0x3593db,_0x26063b){return _0x3593db+_0x26063b;},'navbF':'Success','Dvzfp':_0x2865ae(0x15b),'XQQUt':function(_0x4c141b,_0x26d143){return _0x4c141b||_0x26d143;},'koubH':_0x2865ae(0x10e),'FADHU':_0x2865ae(0xf8),'dCQjd':_0x2865ae(0x184),'TLCCl':function(_0x807824,_0x2e71f6){return _0x807824!=_0x2e71f6;},'tanLj':_0x2865ae(0xff),'vnZpA':_0x2865ae(0x11d),'nYtRG':function(_0x102f18){return _0x102f18();}};let _0x328f25=_0x2865ae(0xa4)+global_registry[_0x2865ae(0xf4)]+'\x20===\x0a\x0a';return _0x4be490[_0x2865ae(0x125)]((_0x563f34,_0x15c766)=>{const _0x18ed9=_0x2865ae,{header:_0x514b7d,response:_0x18d9d2}=_0x563f34,{status:_0x3420ee,data:_0x85a54f,error:_0x4a0cc8}=_0x18d9d2;_0x328f25+=_0x514b7d+'\x20#'+_0x59f045[_0x18ed9(0xe8)](_0x15c766,0x1)+'\x0a',_0x328f25+='Status:\x20'+(_0x3420ee?_0x59f045['navbF']:_0x59f045[_0x18ed9(0x158)])+'\x0a',_0x328f25+='Message:\x20'+_0x59f045[_0x18ed9(0x10c)](_0x85a54f,_0x59f045[_0x18ed9(0xc5)])+'\x0a',_0x4a0cc8&&(_0x328f25+=_0x59f045[_0x18ed9(0x113)],_0x328f25+=_0x18ed9(0x16b)+(_0x4a0cc8[_0x18ed9(0x10f)]||_0x59f045[_0x18ed9(0xc5)])+'\x0a',_0x328f25+='\x20\x20Code:\x20'+(_0x4a0cc8['code']||_0x59f045[_0x18ed9(0xc5)])+'\x0a',_0x328f25+=_0x18ed9(0x180)+(_0x4a0cc8['stack']||_0x59f045['koubH'])+'\x0a'),_0x328f25+='\x0a\x0a';}),_0x328f25+=_0x59f045[_0x2865ae(0x132)],_0x59f045['TLCCl'](_0x466685,null)?_0x328f25+=_0x2865ae(0x173)+global_registry[_0x2865ae(0xee)]+'\x20'+(_0x466685?_0x59f045[_0x2865ae(0x135)]:_0x59f045[_0x2865ae(0xbb)])+'\x0a\x0a':_0x328f25+=_0x2865ae(0x173)+global_registry[_0x2865ae(0xee)]+_0x2865ae(0x124),_0x328f25+=_0x59f045[_0x2865ae(0x171)](getSystemMetaData),_0x328f25;};exports[a17_0x3f5cf6(0x128)]=async function(_0x494a64){const _0x1c7c83=a17_0x3f5cf6,_0x205968={'gadvJ':function(_0x56098c){return _0x56098c();},'ZeMOz':_0x1c7c83(0x111),'UnVOW':function(_0x53870e,_0xca3015,_0x2d3b2c,_0x1fb1dd,_0x39942a,_0x30471b,_0x2e5e9,_0x319284){return _0x53870e(_0xca3015,_0x2d3b2c,_0x1fb1dd,_0x39942a,_0x30471b,_0x2e5e9,_0x319284);},'KgBNr':_0x1c7c83(0x14a),'BXnds':_0x1c7c83(0x9e),'MOday':_0x1c7c83(0x185),'LChBa':function(_0x53296c,_0x2760de,_0x31c988,_0x4a3c26,_0x1ac3b3,_0xc5eb69,_0x1bc655){return _0x53296c(_0x2760de,_0x31c988,_0x4a3c26,_0x1ac3b3,_0xc5eb69,_0x1bc655);},'ohrfE':_0x1c7c83(0xe3),'iKTZF':_0x1c7c83(0x11f),'Kuwrh':function(_0x7483ff,_0x3bfe97,_0x3d6770){return _0x7483ff(_0x3bfe97,_0x3d6770);},'bUIow':function(_0x2d0d7d,_0x305e5e,_0x48337d,_0x46d416,_0x1f4085,_0x38c17b,_0x1fdd2f){return _0x2d0d7d(_0x305e5e,_0x48337d,_0x46d416,_0x1f4085,_0x38c17b,_0x1fdd2f);},'FZLNX':_0x1c7c83(0xbd),'TpSWF':'toolInstalledResp','VQbzg':_0x1c7c83(0x14d),'uGbGu':function(_0x2f3211,_0x552f6a,_0x36cb70,_0x3783d2,_0x1970dd,_0x17c9cc,_0x416054,_0x6c9ea5){return _0x2f3211(_0x552f6a,_0x36cb70,_0x3783d2,_0x1970dd,_0x17c9cc,_0x416054,_0x6c9ea5);},'NjRBH':function(_0x15af1f,_0x62eac2,_0x20c57a){return _0x15af1f(_0x62eac2,_0x20c57a);},'MEsHa':_0x1c7c83(0x107),'DcDfw':function(_0x3429b1){return _0x3429b1();},'tqsCk':_0x1c7c83(0x196),'SUxSk':function(_0x1bf628,_0x644e1f){return _0x1bf628(_0x644e1f);},'VYVGu':_0x1c7c83(0x145),'FJBTf':function(_0x385c80,_0x3de2b7,_0x2d0723){return _0x385c80(_0x3de2b7,_0x2d0723);},'PUQoJ':_0x1c7c83(0x160),'eTCiL':_0x1c7c83(0x18c),'qFpOT':_0x1c7c83(0x162),'UgkMO':_0x1c7c83(0x183),'DiTSe':_0x1c7c83(0x126),'cyZbl':function(_0x126271,_0x79a9e1){return _0x126271+_0x79a9e1;},'JhuMj':'utf-8','iKIpP':function(_0x36536d,_0x44ee74,_0x4399e7,_0x409aba,_0xb2edc,_0x234745,_0x430abc){return _0x36536d(_0x44ee74,_0x4399e7,_0x409aba,_0xb2edc,_0x234745,_0x430abc);},'VEdGr':_0x1c7c83(0x153)};let _0x1d5fbb,_0x48251c;try{global_registry[_0x1c7c83(0xb0)]=_0x205968[_0x1c7c83(0x174)](uuidv4);!fs[_0x1c7c83(0x13d)](_0x205968[_0x1c7c83(0x174)](getCredentialsPath))&&(_0x48251c=_0x205968[_0x1c7c83(0x16f)],logger[_0x1c7c83(0x185)](_0x48251c),await _0x205968[_0x1c7c83(0x178)](reportToGalactusAndSendToEDS,_0x494a64,_0x1d5fbb,_0x48251c,messageTypes[_0x1c7c83(0x17d)],_0x205968[_0x1c7c83(0x101)],_0x205968[_0x1c7c83(0xce)],_0x205968[_0x1c7c83(0xd6)]),process[_0x1c7c83(0xe2)](0x1));_0x205968[_0x1c7c83(0x109)](sendInstrumentationEvent,_0x494a64,_0x205968[_0x1c7c83(0x101)],messageTypes[_0x1c7c83(0x190)],null,null,_0x494a64);const _0x372f84=JSON[_0x1c7c83(0x100)](fs[_0x1c7c83(0x16a)](_0x205968['gadvJ'](getCredentialsPath)));global_registry['bstackUsername']=_0x372f84[_0x1c7c83(0xc3)][_0x1c7c83(0xcc)],global_registry[_0x1c7c83(0xba)]=_0x372f84[_0x1c7c83(0xc3)][_0x1c7c83(0xcd)];const _0x2d75dc=WS_ENDPOINT['replace'](_0x205968['ohrfE'],_0x372f84[_0x1c7c83(0xc3)][_0x1c7c83(0xcc)])[_0x1c7c83(0x14c)](_0x205968['iKTZF'],_0x372f84['Browserstack'][_0x1c7c83(0xcd)]),_0x188aca={};_0x188aca[_0x1c7c83(0xd2)]=ws,_0x188aca[_0x1c7c83(0x146)]=0x36ee80,_0x1d5fbb=new ReconnectingWebSocket(_0x2d75dc,[],_0x188aca),global_registry['authHeader']=_0x205968[_0x1c7c83(0x176)](getAuthHeader,global_registry[_0x1c7c83(0xef)],global_registry[_0x1c7c83(0xba)]),await _0x205968['Kuwrh'](inputValidation,_0x494a64,_0x1d5fbb),logger['info']('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0x1c7c83(0xf4)]+_0x1c7c83(0x199)+global_registry[_0x1c7c83(0x12b)]);let _0x554b5a=await _0x205968[_0x1c7c83(0xc0)](getCloudProviderObjectWithOutInit,global_registry[_0x1c7c83(0xf4)],global_registry[_0x1c7c83(0xee)],_0x205968[_0x1c7c83(0x13b)],_0x1d5fbb,webSocketUtils,_0x494a64);const _0x4758da=await _0x554b5a[_0x1c7c83(0xd5)]();_0x205968['Kuwrh'](printResponse,_0x205968[_0x1c7c83(0xad)],_0x4758da),_0x554b5a=await _0x554b5a[_0x1c7c83(0xc1)]();let _0x14c693=![];try{_0x14c693=await _0x554b5a[_0x1c7c83(0xab)]();}catch(_0x53f639){const _0x50ddb0=_0x205968['VQbzg']['split']('|');let _0xc3f844=0x0;while(!![]){switch(_0x50ddb0[_0xc3f844++]){case'0':_0x14c693=null;continue;case'1':_0x48251c+='\x0a'+JSON[_0x1c7c83(0x14f)](_0x53f639[_0x1c7c83(0xdc)]);continue;case'2':await _0x205968[_0x1c7c83(0xb2)](reportToGalactusAndSendToEDS,_0x494a64,_0x1d5fbb,_0x48251c,messageTypes['ERROR'],_0x205968['KgBNr'],_0x1c7c83(0xbe)+global_registry[_0x1c7c83(0xf4)],_0x205968[_0x1c7c83(0xd6)]);continue;case'3':logger[_0x1c7c83(0x185)](_0x48251c);continue;case'4':_0x48251c=_0x1c7c83(0xec)+global_registry[_0x1c7c83(0xee)]+_0x1c7c83(0x148)+global_registry[_0x1c7c83(0x12b)]+_0x1c7c83(0x142)+_0x53f639;continue;}break;}}_0x14c693&&logger[_0x1c7c83(0x12c)](_0x1c7c83(0x129)+global_registry[_0x1c7c83(0xee)]+'`\x20already\x20exists');const _0x22ad66=await _0x554b5a[_0x1c7c83(0x192)]();_0x205968[_0x1c7c83(0x159)](printResponse,_0x205968[_0x1c7c83(0x104)],_0x22ad66);const _0x38b42c=await _0x205968[_0x1c7c83(0x197)](curlRequest);_0x205968[_0x1c7c83(0x159)](printResponse,_0x205968['tqsCk'],_0x38b42c);const _0x2d6fbf=await _0x205968['SUxSk'](isTlsSupported,_0x205968[_0x1c7c83(0x18a)]);_0x205968[_0x1c7c83(0x115)](printResponse,_0x205968[_0x1c7c83(0xc7)],_0x2d6fbf);const _0x373dba={};_0x373dba[_0x1c7c83(0xbf)]=_0x205968[_0x1c7c83(0x12d)],_0x373dba[_0x1c7c83(0x121)]=_0x4758da;const _0x58ffe8={};_0x58ffe8[_0x1c7c83(0xbf)]=_0x205968['qFpOT'],_0x58ffe8[_0x1c7c83(0x121)]=_0x22ad66;const _0xb4220e={};_0xb4220e[_0x1c7c83(0xbf)]=_0x205968['UgkMO'],_0xb4220e[_0x1c7c83(0x121)]=_0x38b42c;const _0x32631a={};_0x32631a[_0x1c7c83(0xbf)]=_0x205968[_0x1c7c83(0xd8)],_0x32631a[_0x1c7c83(0x121)]=_0x2d6fbf;const _0x31074f=[_0x373dba,_0x58ffe8,_0xb4220e,_0x32631a],_0x4002cb=await _0x205968['FJBTf'](generateReport,_0x31074f,_0x14c693),_0x24dc11=new Date(),_0x23dfa0=_0x24dc11['getUTCFullYear']()+'_'+_0x205968['cyZbl'](_0x24dc11['getUTCMonth'](),0x1)+'_'+_0x24dc11['getUTCDate']()+'_'+_0x24dc11[_0x1c7c83(0xd9)]()+'_'+_0x24dc11['getUTCMinutes'](),_0x203f56=_0x1c7c83(0xbc)+_0x23dfa0+_0x1c7c83(0xa0);fs['writeFileSync'](_0x203f56,_0x4002cb,_0x205968[_0x1c7c83(0x15e)]),logger[_0x1c7c83(0x12c)](_0x1c7c83(0x161)+_0x203f56),process['exit'](0x0);}catch(_0x8e5919){let _0x3d23cd=_0x1c7c83(0x17f)+_0x8e5919+'\x20';logger['error'](_0x3d23cd),_0x3d23cd+='\x0a'+JSON[_0x1c7c83(0x14f)](_0x8e5919[_0x1c7c83(0xdc)]),logger[_0x1c7c83(0xaa)](_0x1c7c83(0x140)+_0x8e5919[_0x1c7c83(0xdc)]);if(_0x1d5fbb){const _0x1496af={};_0x1496af['type']=WS_EVENTS[_0x1c7c83(0x152)],_0x1496af[_0x1c7c83(0x10f)]=_0x3d23cd,webSocketUtils[_0x1c7c83(0xd1)](_0x1d5fbb,_0x1496af,_0x205968[_0x1c7c83(0xd6)],!![]);}await webSocketUtils[_0x1c7c83(0x170)](0x7d0);const _0xfb34cd={};_0xfb34cd[_0x1c7c83(0x185)]=_0x3d23cd,await _0x205968['iKIpP'](sendInstrumentationEvent,_0x494a64,_0x205968[_0x1c7c83(0x101)],messageTypes['ERROR'],_0x205968[_0x1c7c83(0x11b)],_0xfb34cd,_0x494a64),process[_0x1c7c83(0xe2)](0x1);}};
1
+ const a17_0x479262=a17_0x4232;(function(_0x5a7c77,_0x5d6e38){const _0x42452e=a17_0x4232,_0x191f63=_0x5a7c77();while(!![]){try{const _0xdc9662=parseInt(_0x42452e(0xd4))/0x1+parseInt(_0x42452e(0xca))/0x2*(-parseInt(_0x42452e(0xe5))/0x3)+parseInt(_0x42452e(0x179))/0x4+parseInt(_0x42452e(0x166))/0x5*(-parseInt(_0x42452e(0x190))/0x6)+parseInt(_0x42452e(0x117))/0x7+-parseInt(_0x42452e(0x157))/0x8*(parseInt(_0x42452e(0xe4))/0x9)+-parseInt(_0x42452e(0x19c))/0xa*(-parseInt(_0x42452e(0x118))/0xb);if(_0xdc9662===_0x5d6e38)break;else _0x191f63['push'](_0x191f63['shift']());}catch(_0x51fda9){_0x191f63['push'](_0x191f63['shift']());}}}(a17_0x4ec6,0x7c604));const fs=require('fs'),ws=require('ws'),got=require(a17_0x479262(0xfd)),{v4:uuidv4}=require(a17_0x479262(0x13f)),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x479262(0x165)),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x479262(0x154)),{getCloudProviderObjectWithOutInit}=require(a17_0x479262(0x155)),webSocketUtils=require(a17_0x479262(0xf5)),{sendInstrumentationEvent}=require(a17_0x479262(0x147));function a17_0x4232(_0x4cc3c3,_0x1a198d){const _0x4ec6af=a17_0x4ec6();return a17_0x4232=function(_0x423202,_0x5571ca){_0x423202=_0x423202-0xa5;let _0x12389c=_0x4ec6af[_0x423202];return _0x12389c;},a17_0x4232(_0x4cc3c3,_0x1a198d);}function a17_0x4ec6(){const _0x2dd790=['uiYGj','getUTCHours','vcEsj','pSryl','hodfi','yUmHK','ibenZ','eaDXL','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','string','../../utils/utilityMethods','153005eNKmFX','\x20===\x0a\x0a','qWaSo','wWrcg','MVFKl','Pre-check\x20running\x20for\x20Cloud\x20-\x20','options','cloudProvider','description','oKJlp','Status:\x20','clusterRegion','XPEat','uvFcd','kjKyQ','ZiRza','SafEB','hsTOz','bstackAccesskey','693040TMaUuD','Jcixo','NFFMw','xwxJA','jVMaD','\x20\x20Code:\x20','init','qNXaz','push','kPJPJ','Cluster\x20details\x0a-----------------------\x0a','region','gridProfile','isTls1_2_SUPPORTED','neaOx','status','tDmRo','xooSn','wPTGX','response','qtAsa','dpzxN','INFO','198sRNpHP','error\x20stack\x20:\x20','QiUhx','method','BDykd','dHIae','CxFoA','HixzE','UGrYe','JPKeV','name','pre-check-grid-profile-empty','200Ircpig','Yonet','swSgS','JGqJM','DSnNW','ERROR','getUTCFullYear','help','xHzJw','gfYAL','xkMjV','LKszo','xRGJC','utf-8','\x20region\x20-\x20','JsjoL','stack','pre-check','\x20error\x20:\x20','fEXrc','IvmHe','NSrRr','hwRLB','TLSv1_2_client_method','bdiSI','getUTCMonth','DZIAW','code','QbmOf','info','authHeader','requestId','Cluster\x20','ORkaj','PgFuc','pVwlj','unable\x20to\x20verify\x20if\x20cluster\x20`','Failure','pre-check-cluster-args-not-passed','\x20data\x20:\x20','header','rDaiH','4GsSagT','Failed\x20in\x20pre-check!\x20Error:\x20','exit','log/report_','IcuoU','delay','FjYZM','hERZh','RSlfl','Invalid\x20input.\x20grid\x20profiles:\x20','680844jeevGH','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','Setting\x20cloud\x20provider\x20as\x20','`\x20,error\x20:\x20','clusterName','isClusterPresent','`\x20already\x20exists','qfZns','ESkFh','sNEIM','`\x20is\x20present\x20in\x20region\x20`','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','jDbgw','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','grid-profile','usage','2294667epvhUI','58566dgBCuo','.\x20Please\x20provide\x20all\x20required\x20arguments.','wGoLQ','pre-check-failed','<UsernamePlaceholder>','TMZTB','stringify','UKTsZ','Message:\x20','bstackUsername','hRuaO','Cluster\x20`','VToYe','TxUtv','type','connectionTimeout','../../utils/webSocketUtils','jIhFO','LOG','cloud-provider','Error\x20Details:\x0a','4|3|1|2|0','eGAYh','GET','got','\x20\x20Message:\x20','Missing\x20required\x20arguments:\x20','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','toLowerCase','ERmql','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','OLAhD','toolInstalledResp','cAqBZ','debug','sjhxH','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','lGjUK','split','qAeOq','smckO','LaAmo','cloud-provider-not-supported','bwCCy','dummy-grid','WXJJK','User\x20Access','SeTav','ZaMAT','writeFileSync','6508040OVwgHy','16203kgudoI','tIQyX','credential-not-found','.txt','cmsEC','Browserstack','GwVkT','checkAccess','yFeWc','gySZT','PwFDE','bheAD','includes','gSatY','existsSync','aowks','Grid\x20profile\x20fetched\x20for\x20pre-check','waBFt','isTrialGridAccessible','will\x20be\x20created','Zaddh','IvPhe','pre_check','rGVFw','Report\x20saved\x20in\x20','PaTAQ','SRyzh','N/A','abWkR','message','Success','grid\x20profile\x20flow\x20','isCliToolInstalled','cluster-name','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region',']\x20status\x20:\x20','RwlXo','is\x20already\x20present','uuid','mGBln','uQvkm','lqpdg','desc','stack\x20trace\x20','\x20\x20Stack:\x20','Whitelisted\x20browserstack','../../utils/instrumentationUtils','throwHttpErrors','WebSocket','password','wYVBK','lNMAX','JmBhV','CLOUD_PROVIDER','bikak','sendEventToBackend','LVlzA','MRWSn','pre-check-grid-called','../../config/constants','../../cloudproviders/utils','UrkuM','8uqJEGm','IIAlX','epilogue','error'];a17_0x4ec6=function(){return _0x2dd790;};return a17_0x4ec6();}exports['command']='grid',exports[a17_0x479262(0x143)]=a17_0x479262(0x109),exports['builder']=function(_0x7ed2eb){const _0x55fdf9=a17_0x479262,_0x3073b={};_0x3073b['sNEIM']=_0x55fdf9(0x103),_0x3073b[_0x55fdf9(0x177)]=_0x55fdf9(0x164),_0x3073b[_0x55fdf9(0xe7)]=_0x55fdf9(0x13a),_0x3073b[_0x55fdf9(0xb3)]=_0x55fdf9(0xe1),_0x3073b['ILasU']=_0x55fdf9(0x163),_0x3073b[_0x55fdf9(0x152)]=_0x55fdf9(0xa7);const _0x162a7c=_0x3073b,_0x1b7fa8={};_0x1b7fa8['description']=_0x162a7c[_0x55fdf9(0xdd)],_0x1b7fa8['type']=_0x162a7c[_0x55fdf9(0x177)];const _0x21af8d={};_0x21af8d[_0x55fdf9(0x16e)]=_0x162a7c[_0x55fdf9(0xe7)],_0x21af8d[_0x55fdf9(0xf3)]=_0x162a7c[_0x55fdf9(0x177)];const _0x81ab95={};_0x81ab95[_0x55fdf9(0x16e)]=_0x162a7c[_0x55fdf9(0xb3)],_0x81ab95['type']=_0x162a7c['hsTOz'];const _0x404cf2={};_0x404cf2['description']=_0x162a7c['ILasU'],_0x404cf2[_0x55fdf9(0xf3)]=_0x162a7c['hsTOz'];const _0x28564e={};return _0x28564e[_0x55fdf9(0x139)]=_0x1b7fa8,_0x28564e[_0x55fdf9(0xf8)]=_0x21af8d,_0x28564e['region']=_0x81ab95,_0x28564e[_0x55fdf9(0xe2)]=_0x404cf2,_0x7ed2eb['usage'](HELP_HEADER_MESSAGE[_0x55fdf9(0x12e)])[_0x55fdf9(0x159)](HELP_FOOTER_MESSAGE)[_0x55fdf9(0x16c)](_0x28564e)[_0x55fdf9(0xa7)](_0x162a7c[_0x55fdf9(0x152)])['argv'];};async function inputValidation(_0x46893e,_0xa45ad5){const _0x34b049=a17_0x479262,_0x3de3c8={'gfYAL':'region','TxUtv':_0x34b049(0xf9),'HixzE':_0x34b049(0x133),'JPKeV':_0x34b049(0x139),'wFBhq':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','bheAD':'string','NFFMw':_0x34b049(0x13a),'mGBln':_0x34b049(0xe1),'xooSn':_0x34b049(0x163),'GwVkT':_0x34b049(0xa7),'PwFDE':_0x34b049(0x13e),'lNMAX':_0x34b049(0x12b),'xRGJC':_0x34b049(0x15a),'pSryl':_0x34b049(0x13b),'smckO':_0x34b049(0xf8),'TMZTB':function(_0x5bb9ad,_0x1b0dfb){return _0x5bb9ad+_0x1b0dfb;},'XDgvV':_0x34b049(0x136),'pVwlj':_0x34b049(0xc5),'qNXaz':function(_0x411431,_0x126399){return _0x411431||_0x126399;},'swSgS':function(_0x537e25,_0x561fab){return _0x537e25!==_0x561fab;},'ZRTyK':'HdxyR','BlhEY':'oXZkK','SafEB':_0x34b049(0x16a),'vcEsj':_0x34b049(0x17c),'PgFuc':function(_0x14d349,_0x23842e){return _0x14d349!==_0x23842e;},'tDmRo':_0x34b049(0x162),'waBFt':_0x34b049(0x18b),'jIhFO':_0x34b049(0x12c),'jKDhC':function(_0x1d9609,_0x1e3cb4){return _0x1d9609!==_0x1e3cb4;},'uQvkm':_0x34b049(0xba),'RcYNH':'GPWaw','bikak':function(_0x108e3d,_0x510957){return _0x108e3d>_0x510957;},'IzYAF':'zIUno','lGjUK':function(_0xa093c8,_0x53132b,_0x4ab9da,_0x296049,_0x2cdddd,_0x11f731,_0x3050b2,_0xc1a396){return _0xa093c8(_0x53132b,_0x4ab9da,_0x296049,_0x2cdddd,_0x11f731,_0x3050b2,_0xc1a396);},'Jcixo':_0x34b049(0x153),'VToYe':_0x34b049(0xc6),'ORkaj':function(_0x270f1a,_0x52875f){return _0x270f1a===_0x52875f;},'abWkR':_0x34b049(0x142),'mfwOs':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','qAeOq':_0x34b049(0x10f),'qtAsa':function(_0x553d27,_0x3a8fe7){return _0x553d27===_0x3a8fe7;},'cAqBZ':_0x34b049(0x16f),'dHIae':_0x34b049(0x132),'IvPhe':_0x34b049(0xd0),'PaTAQ':_0x34b049(0x102),'IIAlX':_0x34b049(0xfc),'hALbA':function(_0xd106ab,_0x3e5dab,_0x35a171){return _0xd106ab(_0x3e5dab,_0x35a171);},'QiUhx':function(_0x541ad8,_0x46c9be,_0x4dc2c5,_0x1ecc9c,_0x53fa13,_0x51da29){return _0x541ad8(_0x46c9be,_0x4dc2c5,_0x1ecc9c,_0x53fa13,_0x51da29);},'hodfi':_0x34b049(0xb1),'XPEat':_0x34b049(0xe2),'UrkuM':function(_0x4fd68c,_0x3e8c2c){return _0x4fd68c===_0x3e8c2c;},'bdiSI':_0x34b049(0x194),'Yonet':function(_0x4ae207,_0xdc0870){return _0x4ae207(_0xdc0870);},'inwbB':function(_0x3215f8,_0x4953af){return _0x3215f8===_0x4953af;},'CxFoA':_0x34b049(0xb6),'UGrYe':_0x34b049(0x19b),'uiYGj':_0x34b049(0x121),'kjKyQ':_0x34b049(0x173),'wYVBK':'ITglz','JGqJM':_0x34b049(0x128),'rDaiH':_0x34b049(0xdc),'rPTAR':_0x34b049(0x182),'yFeWc':'ucXwY'};let _0x320a5a;try{if(_0x3de3c8[_0x34b049(0x19e)](_0x3de3c8['ZRTyK'],_0x3de3c8['BlhEY'])){if(_0x46893e[_0x34b049(0xd8)]||_0x46893e[_0x34b049(0x16d)]||_0x46893e[_0x34b049(0x184)]){if(_0x3de3c8[_0x34b049(0x19e)](_0x3de3c8[_0x34b049(0x176)],_0x3de3c8[_0x34b049(0x15d)])){const _0xe312e5=[];!_0x46893e[_0x34b049(0xd8)]&&(_0x3de3c8['PgFuc'](_0x3de3c8[_0x34b049(0x189)],_0x3de3c8[_0x34b049(0x189)])?_0x44477e['push'](_0x3de3c8['gfYAL']):_0xe312e5[_0x34b049(0x181)](_0x3de3c8[_0x34b049(0x199)]));;!_0x46893e[_0x34b049(0x16d)]&&(_0x3de3c8[_0x34b049(0x19e)](_0x3de3c8[_0x34b049(0x129)],_0x3de3c8[_0x34b049(0xf6)])?_0xe312e5['push'](_0x3de3c8['smckO']):(_0x4451b5+=_0x3de3c8[_0x34b049(0xf2)],_0x5daa51+=_0x34b049(0xfe)+(_0x457216['message']||_0x3de3c8[_0x34b049(0x197)])+'\x0a',_0x41eb0b+=_0x34b049(0x17e)+(_0x5054c0[_0x34b049(0xbb)]||_0x3de3c8['HixzE'])+'\x0a',_0x501abd+=_0x34b049(0x145)+(_0x509212[_0x34b049(0xb0)]||_0x3de3c8[_0x34b049(0x197)])+'\x0a'));;!_0x46893e[_0x34b049(0x184)]&&(_0x3de3c8['jKDhC'](_0x3de3c8[_0x34b049(0x141)],_0x3de3c8['RcYNH'])?_0xe312e5[_0x34b049(0x181)](_0x3de3c8[_0x34b049(0xa9)]):_0x2e1e53[_0x34b049(0x181)](_0x3de3c8[_0x34b049(0x199)]));;_0x3de3c8[_0x34b049(0x14f)](_0xe312e5['length'],0x0)&&(_0x3de3c8[_0x34b049(0xc2)](_0x3de3c8['IzYAF'],_0x3de3c8['IzYAF'])?_0x2b6b5a+=_0x34b049(0xc0)+_0x2dae5f['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':(_0x320a5a=_0x34b049(0xff)+_0xe312e5['join'](',\x20')+_0x34b049(0xe6),await _0x3de3c8[_0x34b049(0x10a)](reportToGalactusAndSendToEDS,_0x46893e,_0xa45ad5,_0x320a5a,messageTypes[_0x34b049(0xa5)],_0x3de3c8[_0x34b049(0x17a)],_0x3de3c8[_0x34b049(0xf1)],_0x3de3c8[_0x34b049(0xac)]),logger[_0x34b049(0x15a)](_0x320a5a),process[_0x34b049(0xcc)](0x1)));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x34b049(0x124)](_0x46893e['cloudProvider'][_0x34b049(0x101)]())){if(_0x3de3c8[_0x34b049(0xc1)](_0x3de3c8[_0x34b049(0x134)],_0x3de3c8[_0x34b049(0x134)])){_0x320a5a=_0x3de3c8['mfwOs'],await _0x3de3c8[_0x34b049(0x10a)](reportToGalactusAndSendToEDS,_0x46893e,_0xa45ad5,_0x320a5a,messageTypes[_0x34b049(0xa5)],_0x3de3c8[_0x34b049(0x17a)],_0x3de3c8[_0x34b049(0x10c)],_0x3de3c8['xRGJC']),logger[_0x34b049(0x15a)](_0x320a5a);if(!_0x46893e[_0x34b049(0x16d)]){if(_0x3de3c8[_0x34b049(0x18d)](_0x3de3c8[_0x34b049(0x106)],_0x3de3c8[_0x34b049(0x195)])){const _0x8d34ba={};_0x8d34ba[_0x34b049(0x16e)]=_0x3de3c8['wFBhq'],_0x8d34ba[_0x34b049(0xf3)]=_0x3de3c8[_0x34b049(0x123)];const _0x175130={};_0x175130['description']=_0x3de3c8[_0x34b049(0x17b)],_0x175130[_0x34b049(0xf3)]=_0x3de3c8['bheAD'];const _0x4a6844={};_0x4a6844[_0x34b049(0x16e)]=_0x3de3c8[_0x34b049(0x140)],_0x4a6844['type']=_0x3de3c8[_0x34b049(0x123)];const _0x66e85f={};_0x66e85f['description']=_0x3de3c8[_0x34b049(0x18a)],_0x66e85f[_0x34b049(0xf3)]=_0x3de3c8[_0x34b049(0x123)];const _0x33a336={};return _0x33a336[_0x34b049(0x139)]=_0x8d34ba,_0x33a336[_0x34b049(0xf8)]=_0x175130,_0x33a336['region']=_0x4a6844,_0x33a336[_0x34b049(0xe2)]=_0x66e85f,_0x3038d2[_0x34b049(0xe3)](_0xa37a99[_0x34b049(0x12e)])[_0x34b049(0x159)](_0x4b1fa2)['options'](_0x33a336)[_0x34b049(0xa7)](_0x3de3c8[_0x34b049(0x11e)])['argv'];}else logger[_0x34b049(0xbd)](_0x34b049(0xd6)+DEFAULT_CLUSTER_DETAILS[_0x34b049(0x14e)]+'\x20'),_0x46893e[_0x34b049(0x16d)]=DEFAULT_CLUSTER_DETAILS[_0x34b049(0x14e)];}}else _0x4f30d0[_0x34b049(0x15a)](_0x34b049(0x191)+_0x15b311[_0x34b049(0x15a)][_0x34b049(0xb0)]);}global_registry['clusterName']=_0x46893e[_0x34b049(0xd8)],global_registry[_0x34b049(0x16d)]=_0x46893e[_0x34b049(0x16d)],global_registry[_0x34b049(0x171)]=_0x46893e[_0x34b049(0x184)];}else _0x58a081+=_0x34b049(0xc0)+_0x271c69['clusterName']+'\x20'+(_0x1755d9?_0x3de3c8[_0x34b049(0x122)]:_0x3de3c8[_0x34b049(0x14c)])+'\x0a\x0a';}else{if(_0x46893e[_0x34b049(0x185)]){if(_0x3de3c8['swSgS'](_0x3de3c8[_0x34b049(0x12d)],_0x3de3c8[_0x34b049(0x131)])){global_registry[_0x34b049(0x185)]=_0x46893e[_0x34b049(0x185)],logger[_0x34b049(0x107)](_0x34b049(0x137)+_0x46893e[_0x34b049(0x185)]);const _0x258f6c='https://'+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x111995={};_0x111995[_0x34b049(0x193)]=_0x3de3c8[_0x34b049(0x158)],_0x111995['headers']=global_registry[_0x34b049(0xbe)],_0x111995[_0x34b049(0x148)]=![];const _0x1a05b5=_0x111995,_0xd5e6b0=await _0x3de3c8['hALbA'](got,_0x258f6c,_0x1a05b5),_0x20e383=await _0x3de3c8[_0x34b049(0x192)](responseValidation,_0xd5e6b0,_0x3de3c8[_0x34b049(0x15f)],_0x3de3c8[_0x34b049(0x172)],_0x46893e,_0xa45ad5);let _0x511f7b={};if(_0x3de3c8[_0x34b049(0x156)](_0x20e383,0xc8)){if(_0x3de3c8[_0x34b049(0xc2)](_0x3de3c8[_0x34b049(0xb8)],_0x3de3c8[_0x34b049(0xb8)])){const _0x18787e={};_0x18787e[_0x34b049(0xf3)]=_0x328463['LOG'],_0x18787e[_0x34b049(0x135)]=_0xd84dd7,_0x5f09f7[_0x34b049(0x150)](_0x58f83e,_0x18787e,_0x3de3c8[_0x34b049(0xac)],!![]);}else{const _0xbbfbf7=JSON['parse'](_0xd5e6b0['body']),_0x53e231=_0xbbfbf7['find'](_0x2fb8e5=>_0x2fb8e5[_0x34b049(0x19a)]===_0x46893e[_0x34b049(0x185)])||null;_0x3de3c8[_0x34b049(0x19d)](isUndefined,_0x53e231)?_0x3de3c8['inwbB'](_0x3de3c8[_0x34b049(0x196)],_0x3de3c8[_0x34b049(0x196)])?(_0x320a5a=_0x34b049(0xd3)+_0x46893e['gridProfile']+_0x34b049(0xdf),await _0x3de3c8[_0x34b049(0x10a)](reportToGalactusAndSendToEDS,_0x46893e,_0xa45ad5,_0x320a5a,messageTypes[_0x34b049(0xa5)],_0x3de3c8[_0x34b049(0x17a)],_0x3de3c8[_0x34b049(0x198)],_0x3de3c8['xRGJC']),logger[_0x34b049(0x15a)](_0x320a5a),process[_0x34b049(0xcc)](0x1)):(_0x2fca80[_0x34b049(0x15a)](_0x3de3c8[_0x34b049(0x15e)]),_0x2157b6[_0x34b049(0xcc)](0x1)):_0x3de3c8['inwbB'](_0x3de3c8[_0x34b049(0x15b)],_0x3de3c8[_0x34b049(0x15b)])?_0x511f7b=_0x53e231:(_0x5a2b16[_0x34b049(0xbd)]('Setting\x20cloud\x20provider\x20as\x20'+_0x374fb2['CLOUD_PROVIDER']+'\x20'),_0x49362d[_0x34b049(0x16d)]=_0x22ebe6['CLOUD_PROVIDER']);}}else _0x3de3c8[_0x34b049(0x156)](_0x3de3c8[_0x34b049(0x174)],_0x3de3c8[_0x34b049(0x14b)])?_0x213866[_0x34b049(0x181)](_0x3de3c8[_0x34b049(0x10d)]):process[_0x34b049(0xcc)](0x1);const _0x19a438={};_0x19a438[_0x34b049(0xf3)]=WS_EVENTS[_0x34b049(0xf7)],_0x19a438[_0x34b049(0x135)]=_0x3de3c8[_0x34b049(0x19f)],webSocketUtils[_0x34b049(0x150)](_0xa45ad5,_0x19a438),global_registry[_0x34b049(0x16d)]=_0x511f7b['cloudProvider'],global_registry['clusterRegion']=_0x511f7b[_0x34b049(0x184)],global_registry[_0x34b049(0xd8)]=_0x511f7b[_0x34b049(0xd8)];}else _0x339ad9=_0x19d8a0;}else _0x3de3c8['jKDhC'](_0x3de3c8[_0x34b049(0xc9)],_0x3de3c8['rPTAR'])?(logger['error'](_0x3de3c8['pSryl']),process['exit'](0x1)):(_0x3bb6eb[_0x34b049(0xbd)]('['+_0x4e52a0+_0x34b049(0x13c)+_0x4c03a7[_0x34b049(0x188)]+_0x34b049(0xc7)+_0x580b99['data']+_0x34b049(0xb2)+_0x423500['error']),_0x1e1ff7['error']&&_0x51608f[_0x34b049(0x15a)](_0x34b049(0x191)+_0x178330['error'][_0x34b049(0xb0)]));}}else _0xb2dca6[_0x34b049(0xbd)]('Cluster\x20`'+_0xc04eae[_0x34b049(0xd8)]+'`\x20already\x20exists');}catch(_0x5166b0){if(_0x3de3c8[_0x34b049(0x19e)](_0x3de3c8[_0x34b049(0x120)],_0x3de3c8[_0x34b049(0x120)])){const {header:_0x5d7562,response:_0x200902}=_0x58d2e6,{status:_0x1588bf,data:_0x367ecb,error:_0x5e9319}=_0x200902;_0x200f8e+=_0x5d7562+'\x20#'+_0x3de3c8[_0x34b049(0xea)](_0x1cc6ae,0x1)+'\x0a',_0x561c4f+=_0x34b049(0x170)+(_0x1588bf?_0x3de3c8['XDgvV']:_0x3de3c8[_0x34b049(0xc3)])+'\x0a',_0x4694e9+='Message:\x20'+_0x3de3c8[_0x34b049(0x180)](_0x367ecb,_0x3de3c8[_0x34b049(0x197)])+'\x0a',_0x5e9319&&(_0x4ad7a5+=_0x3de3c8[_0x34b049(0xf2)],_0x2bd68e+=_0x34b049(0xfe)+(_0x5e9319[_0x34b049(0x135)]||_0x3de3c8['HixzE'])+'\x0a',_0x51a3b4+='\x20\x20Code:\x20'+(_0x5e9319[_0x34b049(0xbb)]||_0x3de3c8[_0x34b049(0x197)])+'\x0a',_0x3ea343+=_0x34b049(0x145)+(_0x5e9319['stack']||_0x3de3c8[_0x34b049(0x197)])+'\x0a'),_0xbb9b57+='\x0a\x0a';}else _0x320a5a=_0x34b049(0xd5)+_0x5166b0+':\x20'+_0x5166b0[_0x34b049(0xb0)],logger[_0x34b049(0x15a)](_0x320a5a),await _0x3de3c8[_0x34b049(0x10a)](reportToGalactusAndSendToEDS,_0x46893e,_0xa45ad5,_0x320a5a,messageTypes[_0x34b049(0xa5)],_0x3de3c8[_0x34b049(0x17a)],_0x3de3c8[_0x34b049(0x10c)],_0x3de3c8[_0x34b049(0xac)]),process[_0x34b049(0xcc)](0x1);}}function printResponse(_0x5512a8,_0x311753){const _0x322c86=a17_0x479262,_0x4cd493={};_0x4cd493[_0x322c86(0xa8)]=function(_0x22abee,_0x2ca017){return _0x22abee===_0x2ca017;},_0x4cd493['RSlfl']=_0x322c86(0xb5),_0x4cd493[_0x322c86(0x115)]='PYBfP';const _0x13397b=_0x4cd493;logger[_0x322c86(0xbd)]('['+_0x5512a8+']\x20status\x20:\x20'+_0x311753[_0x322c86(0x188)]+_0x322c86(0xc7)+_0x311753['data']+'\x20error\x20:\x20'+_0x311753[_0x322c86(0x15a)]),_0x311753[_0x322c86(0x15a)]&&(_0x13397b['xHzJw'](_0x13397b[_0x322c86(0xd2)],_0x13397b[_0x322c86(0x115)])?_0x137840[_0x322c86(0xcc)](0x1):logger[_0x322c86(0x15a)](_0x322c86(0x191)+_0x311753['error']['stack']));}async function generateReport(_0x31833e,_0x4daf80){const _0x2e9d30=a17_0x479262,_0x50c82e={'hRuaO':function(_0x37ee0f,_0x433083){return _0x37ee0f+_0x433083;},'JmBhV':_0x2e9d30(0x136),'ibenZ':_0x2e9d30(0xc5),'tIQyX':function(_0x4af4fb,_0x323021){return _0x4af4fb||_0x323021;},'qWaSo':_0x2e9d30(0x133),'UKTsZ':_0x2e9d30(0xf9),'bwCCy':_0x2e9d30(0x183),'rIgMC':function(_0x4a7995,_0x51ba5a){return _0x4a7995!=_0x51ba5a;},'gSatY':_0x2e9d30(0x13e),'ZiRza':'will\x20be\x20created','QbmOf':function(_0x5b7f5f){return _0x5b7f5f();}};let _0x4fc9e4='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x2e9d30(0x16d)]+_0x2e9d30(0x167);return _0x31833e['forEach']((_0x5e5724,_0x5ebac8)=>{const _0x5b6fd9=_0x2e9d30,{header:_0x16bf5d,response:_0x1c5de1}=_0x5e5724,{status:_0x57cf08,data:_0x2ec218,error:_0x26c1cc}=_0x1c5de1;_0x4fc9e4+=_0x16bf5d+'\x20#'+_0x50c82e[_0x5b6fd9(0xef)](_0x5ebac8,0x1)+'\x0a',_0x4fc9e4+=_0x5b6fd9(0x170)+(_0x57cf08?_0x50c82e[_0x5b6fd9(0x14d)]:_0x50c82e[_0x5b6fd9(0x161)])+'\x0a',_0x4fc9e4+=_0x5b6fd9(0xed)+_0x50c82e[_0x5b6fd9(0x119)](_0x2ec218,_0x50c82e[_0x5b6fd9(0x168)])+'\x0a',_0x26c1cc&&(_0x4fc9e4+=_0x50c82e[_0x5b6fd9(0xec)],_0x4fc9e4+='\x20\x20Message:\x20'+(_0x26c1cc[_0x5b6fd9(0x135)]||_0x50c82e[_0x5b6fd9(0x168)])+'\x0a',_0x4fc9e4+=_0x5b6fd9(0x17e)+(_0x26c1cc[_0x5b6fd9(0xbb)]||_0x50c82e[_0x5b6fd9(0x168)])+'\x0a',_0x4fc9e4+=_0x5b6fd9(0x145)+(_0x26c1cc[_0x5b6fd9(0xb0)]||_0x50c82e[_0x5b6fd9(0x168)])+'\x0a'),_0x4fc9e4+='\x0a\x0a';}),_0x4fc9e4+=_0x50c82e[_0x2e9d30(0x110)],_0x50c82e['rIgMC'](_0x4daf80,null)?_0x4fc9e4+=_0x2e9d30(0xc0)+global_registry[_0x2e9d30(0xd8)]+'\x20'+(_0x4daf80?_0x50c82e[_0x2e9d30(0x125)]:_0x50c82e[_0x2e9d30(0x175)])+'\x0a\x0a':_0x4fc9e4+=_0x2e9d30(0xc0)+global_registry['clusterName']+_0x2e9d30(0x100),_0x4fc9e4+=_0x50c82e[_0x2e9d30(0xbc)](getSystemMetaData),_0x4fc9e4;};exports['handler']=async function(_0x43de4b){const _0x12c247=a17_0x479262,_0x30cc1b={'cmsEC':function(_0x30bef9){return _0x30bef9();},'eGAYh':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','dpzxN':function(_0x356fc8,_0x4c7dab,_0x5189a1,_0x240e1e,_0x395d70,_0x42c259,_0x4ab3d6,_0xe15e30){return _0x356fc8(_0x4c7dab,_0x5189a1,_0x240e1e,_0x395d70,_0x42c259,_0x4ab3d6,_0xe15e30);},'hERZh':_0x12c247(0x153),'xkMjV':_0x12c247(0x11a),'sjhxH':'error','jDbgw':function(_0x2cc32e,_0x383734,_0x1ff781,_0x3f80f8,_0x54e716,_0x5e30e5,_0x453b69){return _0x2cc32e(_0x383734,_0x1ff781,_0x3f80f8,_0x54e716,_0x5e30e5,_0x453b69);},'jVMaD':function(_0x132540){return _0x132540();},'RwlXo':_0x12c247(0xe9),'LKszo':'<PasswordPlaceholder>','aowks':function(_0xacd7d2,_0xe7e75d,_0x5d0759){return _0xacd7d2(_0xe7e75d,_0x5d0759);},'DSnNW':function(_0x4a1845,_0x1c8370,_0x22b4b8,_0x405f7d,_0x5dd85d,_0x2a0342,_0x3374d9){return _0x4a1845(_0x1c8370,_0x22b4b8,_0x405f7d,_0x5dd85d,_0x2a0342,_0x3374d9);},'rGVFw':_0x12c247(0x111),'qfZns':_0x12c247(0x105),'JsjoL':_0x12c247(0xfa),'LaAmo':function(_0x3b3a5f,_0x50ebbc,_0x40965f,_0x49b93e,_0x256adc,_0x312f77,_0x2a64b9,_0x2ef9d6){return _0x3b3a5f(_0x50ebbc,_0x40965f,_0x49b93e,_0x256adc,_0x312f77,_0x2a64b9,_0x2ef9d6);},'PQCRM':function(_0x41fc78,_0x2fa587,_0x3e33ef){return _0x41fc78(_0x2fa587,_0x3e33ef);},'Sgfda':'accessResp','Wxlek':_0x12c247(0x12a),'OLAhD':function(_0xee2de5,_0x149b4d){return _0xee2de5(_0x149b4d);},'IcuoU':_0x12c247(0xb7),'yUmHK':function(_0x10c0cd,_0x104b69,_0x25cdb7){return _0x10c0cd(_0x104b69,_0x25cdb7);},'WXJJK':_0x12c247(0x186),'LVlzA':'Tool\x20Installed','IvmHe':_0x12c247(0x113),'SeTav':_0x12c247(0x146),'iKcxL':'SSL\x20Configured','PMiAZ':function(_0xf19277,_0x4e581b){return _0xf19277+_0x4e581b;},'neaOx':_0x12c247(0xad),'wWrcg':_0x12c247(0xe8)};let _0x4bd858,_0x3c6e7a;try{global_registry[_0x12c247(0xbf)]=_0x30cc1b[_0x12c247(0x11c)](uuidv4);!fs[_0x12c247(0x126)](_0x30cc1b[_0x12c247(0x11c)](getCredentialsPath))&&(_0x3c6e7a=_0x30cc1b[_0x12c247(0xfb)],logger[_0x12c247(0x15a)](_0x3c6e7a),await _0x30cc1b[_0x12c247(0x18e)](reportToGalactusAndSendToEDS,_0x43de4b,_0x4bd858,_0x3c6e7a,messageTypes[_0x12c247(0xa5)],_0x30cc1b['hERZh'],_0x30cc1b[_0x12c247(0xaa)],_0x30cc1b[_0x12c247(0x108)]),process[_0x12c247(0xcc)](0x1));_0x30cc1b[_0x12c247(0xe0)](sendInstrumentationEvent,_0x43de4b,_0x30cc1b[_0x12c247(0xd1)],messageTypes[_0x12c247(0x18f)],null,null,_0x43de4b);const _0x38ce22=JSON['parse'](fs['readFileSync'](_0x30cc1b[_0x12c247(0x17d)](getCredentialsPath)));global_registry[_0x12c247(0xee)]=_0x38ce22['Browserstack']['username'],global_registry[_0x12c247(0x178)]=_0x38ce22['Browserstack'][_0x12c247(0x14a)];const _0x26be09=WS_ENDPOINT['replace'](_0x30cc1b[_0x12c247(0x13d)],_0x38ce22[_0x12c247(0x11d)]['username'])['replace'](_0x30cc1b[_0x12c247(0xab)],_0x38ce22[_0x12c247(0x11d)][_0x12c247(0x14a)]),_0x521f19={};_0x521f19[_0x12c247(0x149)]=ws,_0x521f19[_0x12c247(0xf4)]=0x36ee80,_0x4bd858=new ReconnectingWebSocket(_0x26be09,[],_0x521f19),global_registry[_0x12c247(0xbe)]=_0x30cc1b[_0x12c247(0x127)](getAuthHeader,global_registry[_0x12c247(0xee)],global_registry[_0x12c247(0x178)]),await _0x30cc1b[_0x12c247(0x127)](inputValidation,_0x43de4b,_0x4bd858),logger[_0x12c247(0xbd)](_0x12c247(0x16b)+global_registry[_0x12c247(0x16d)]+_0x12c247(0xae)+global_registry['clusterRegion']);let _0x435e28=await _0x30cc1b[_0x12c247(0x1a0)](getCloudProviderObjectWithOutInit,global_registry[_0x12c247(0x16d)],global_registry[_0x12c247(0xd8)],_0x30cc1b[_0x12c247(0x12f)],_0x4bd858,webSocketUtils,_0x43de4b);const _0x25aa11=await _0x435e28[_0x12c247(0x138)]();_0x30cc1b[_0x12c247(0x127)](printResponse,_0x30cc1b[_0x12c247(0xdb)],_0x25aa11),_0x435e28=await _0x435e28[_0x12c247(0x17f)]();let _0x280734=![];try{_0x280734=await _0x435e28[_0x12c247(0xd9)]();}catch(_0x68a410){const _0x2d78f5=_0x30cc1b[_0x12c247(0xaf)][_0x12c247(0x10b)]('|');let _0x3f2d3c=0x0;while(!![]){switch(_0x2d78f5[_0x3f2d3c++]){case'0':await _0x30cc1b[_0x12c247(0x10e)](reportToGalactusAndSendToEDS,_0x43de4b,_0x4bd858,_0x3c6e7a,messageTypes['ERROR'],_0x30cc1b['hERZh'],'cluster-check-failed-'+global_registry['cloudProvider'],_0x30cc1b['sjhxH']);continue;case'1':logger['error'](_0x3c6e7a);continue;case'2':_0x3c6e7a+='\x0a'+JSON['stringify'](_0x68a410[_0x12c247(0xb0)]);continue;case'3':_0x280734=null;continue;case'4':_0x3c6e7a=_0x12c247(0xc4)+global_registry[_0x12c247(0xd8)]+_0x12c247(0xde)+global_registry['clusterRegion']+_0x12c247(0xd7)+_0x68a410;continue;}break;}}_0x280734&&logger['info'](_0x12c247(0xf0)+global_registry['clusterName']+_0x12c247(0xda));const _0x52d905=await _0x435e28[_0x12c247(0x11f)]();_0x30cc1b['PQCRM'](printResponse,_0x30cc1b['Sgfda'],_0x52d905);const _0x394552=await _0x30cc1b[_0x12c247(0x11c)](curlRequest);_0x30cc1b['aowks'](printResponse,_0x30cc1b['Wxlek'],_0x394552);const _0x34b84e=await _0x30cc1b[_0x12c247(0x104)](isTlsSupported,_0x30cc1b[_0x12c247(0xce)]);_0x30cc1b['yUmHK'](printResponse,_0x30cc1b[_0x12c247(0x112)],_0x34b84e);const _0x14c6a0={};_0x14c6a0['header']=_0x30cc1b[_0x12c247(0x151)],_0x14c6a0[_0x12c247(0x18c)]=_0x25aa11;const _0x1be203={};_0x1be203[_0x12c247(0xc8)]=_0x30cc1b[_0x12c247(0xb4)],_0x1be203[_0x12c247(0x18c)]=_0x52d905;const _0x565f4f={};_0x565f4f[_0x12c247(0xc8)]=_0x30cc1b[_0x12c247(0x114)],_0x565f4f[_0x12c247(0x18c)]=_0x394552;const _0xa4227d={};_0xa4227d[_0x12c247(0xc8)]=_0x30cc1b['iKcxL'],_0xa4227d['response']=_0x34b84e;const _0x46f03a=[_0x14c6a0,_0x1be203,_0x565f4f,_0xa4227d],_0x524025=await _0x30cc1b[_0x12c247(0x160)](generateReport,_0x46f03a,_0x280734),_0x52344f=new Date(),_0x4d772e=_0x52344f[_0x12c247(0xa6)]()+'_'+_0x30cc1b['PMiAZ'](_0x52344f[_0x12c247(0xb9)](),0x1)+'_'+_0x52344f['getUTCDate']()+'_'+_0x52344f[_0x12c247(0x15c)]()+'_'+_0x52344f['getUTCMinutes'](),_0x1341a7=_0x12c247(0xcd)+_0x4d772e+_0x12c247(0x11b);fs[_0x12c247(0x116)](_0x1341a7,_0x524025,_0x30cc1b[_0x12c247(0x187)]),logger[_0x12c247(0xbd)](_0x12c247(0x130)+_0x1341a7),process['exit'](0x0);}catch(_0x10bfe1){let _0x367cfa=_0x12c247(0xcb)+_0x10bfe1+'\x20';logger['error'](_0x367cfa),_0x367cfa+='\x0a'+JSON[_0x12c247(0xeb)](_0x10bfe1[_0x12c247(0xb0)]),logger[_0x12c247(0x107)](_0x12c247(0x144)+_0x10bfe1[_0x12c247(0xb0)]);if(_0x4bd858){const _0x377073={};_0x377073[_0x12c247(0xf3)]=WS_EVENTS['LOG'],_0x377073[_0x12c247(0x135)]=_0x367cfa,webSocketUtils[_0x12c247(0x150)](_0x4bd858,_0x377073,_0x30cc1b[_0x12c247(0x108)],!![]);}await webSocketUtils[_0x12c247(0xcf)](0x7d0);const _0x267f28={};_0x267f28['error']=_0x367cfa,await _0x30cc1b[_0x12c247(0xe0)](sendInstrumentationEvent,_0x43de4b,_0x30cc1b[_0x12c247(0xd1)],messageTypes[_0x12c247(0xa5)],_0x30cc1b[_0x12c247(0x169)],_0x267f28,_0x43de4b),process[_0x12c247(0xcc)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x1af90f=a18_0x5bf4;(function(_0x148bbc,_0x5b86d3){const _0x30eef9=a18_0x5bf4,_0x4100f5=_0x148bbc();while(!![]){try{const _0x14dfc7=-parseInt(_0x30eef9(0xdb))/0x1+-parseInt(_0x30eef9(0xeb))/0x2+-parseInt(_0x30eef9(0xdd))/0x3*(-parseInt(_0x30eef9(0xea))/0x4)+parseInt(_0x30eef9(0xec))/0x5+-parseInt(_0x30eef9(0xdc))/0x6*(parseInt(_0x30eef9(0xf2))/0x7)+parseInt(_0x30eef9(0xe9))/0x8+parseInt(_0x30eef9(0xe7))/0x9*(parseInt(_0x30eef9(0xee))/0xa);if(_0x14dfc7===_0x5b86d3)break;else _0x4100f5['push'](_0x4100f5['shift']());}catch(_0x2638e4){_0x4100f5['push'](_0x4100f5['shift']());}}}(a18_0x5986,0xd4531));function a18_0x5986(){const _0x1c8f02=['command','Start\x20an\x20existing\x20Automation\x20grid.','start','recommendCommands','builder','strict','help','demandCommand','243FuTyHc','desc','1944664HapZkL','20KKPELY','3164978uGKHit','8361565zNoIfC','kVFWX','268050XPsxFm','usage','../config/constants','start_commands','7Xmeexc','999829uFYMbf','1684182qGFtBS','656139dLAhHl','VXQWR'];a18_0x5986=function(){return _0x1c8f02;};return a18_0x5986();}function a18_0x5bf4(_0x3d0209,_0x175886){const _0x5986b6=a18_0x5986();return a18_0x5bf4=function(_0x5bf45f,_0x318580){_0x5bf45f=_0x5bf45f-0xdb;let _0x146df2=_0x5986b6[_0x5bf45f];return _0x146df2;},a18_0x5bf4(_0x3d0209,_0x175886);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x1af90f(0xf0));exports[a18_0x1af90f(0xdf)]=a18_0x1af90f(0xe1),exports[a18_0x1af90f(0xe8)]=a18_0x1af90f(0xe0),exports[a18_0x1af90f(0xe3)]=function(_0x4c0b29){const _0x23d09a=a18_0x1af90f,_0xe360d6={};_0xe360d6[_0x23d09a(0xed)]=_0x23d09a(0xf1),_0xe360d6[_0x23d09a(0xde)]=_0x23d09a(0xe5);const _0x46e0c2=_0xe360d6;return _0x4c0b29[_0x23d09a(0xef)](HELP_HEADER_MESSAGE[_0x23d09a(0xe1)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x46e0c2['kVFWX'])[_0x23d09a(0xe6)]()[_0x23d09a(0xe2)]()[_0x23d09a(0xe4)]()['help'](_0x46e0c2['VXQWR']);},exports['handler']=function(_0x139fdf){};
1
+ function a18_0x6a77(_0xe1b58a,_0x28087c){const _0x51807d=a18_0x5180();return a18_0x6a77=function(_0x6a77ac,_0x476c5a){_0x6a77ac=_0x6a77ac-0xac;let _0x5d0aad=_0x51807d[_0x6a77ac];return _0x5d0aad;},a18_0x6a77(_0xe1b58a,_0x28087c);}const a18_0x5d1af9=a18_0x6a77;(function(_0x330b97,_0x3ae7e6){const _0x52b553=a18_0x6a77,_0x5c91c5=_0x330b97();while(!![]){try{const _0x3cda31=-parseInt(_0x52b553(0xb1))/0x1+parseInt(_0x52b553(0xae))/0x2+parseInt(_0x52b553(0xbe))/0x3+-parseInt(_0x52b553(0xbb))/0x4*(-parseInt(_0x52b553(0xb4))/0x5)+parseInt(_0x52b553(0xb3))/0x6*(parseInt(_0x52b553(0xb6))/0x7)+parseInt(_0x52b553(0xba))/0x8+-parseInt(_0x52b553(0xaf))/0x9;if(_0x3cda31===_0x3ae7e6)break;else _0x5c91c5['push'](_0x5c91c5['shift']());}catch(_0x3653d5){_0x5c91c5['push'](_0x5c91c5['shift']());}}}(a18_0x5180,0x4f879));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a18_0x5180(){const _0x121474=['548832PmJTvM','6657165YTMqYY','JWjqu','467811XbXDFD','builder','1698PhHBHl','2585gqVJyW','strict','16009mmdSZu','demandCommand','desc','start','1732360dbJaXL','2308pWzHQs','help','commandDir','290274Arprwm','usage','nODkD','start_commands','Start\x20an\x20existing\x20Automation\x20grid.'];a18_0x5180=function(){return _0x121474;};return a18_0x5180();}exports['command']=a18_0x5d1af9(0xb9),exports[a18_0x5d1af9(0xb8)]=a18_0x5d1af9(0xad),exports[a18_0x5d1af9(0xb2)]=function(_0x4497ae){const _0x4ed430=a18_0x5d1af9,_0x502a48={};_0x502a48[_0x4ed430(0xb0)]=_0x4ed430(0xac),_0x502a48[_0x4ed430(0xc0)]=_0x4ed430(0xbc);const _0x553015=_0x502a48;return _0x4497ae[_0x4ed430(0xbf)](HELP_HEADER_MESSAGE[_0x4ed430(0xb9)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4ed430(0xbd)](_0x553015[_0x4ed430(0xb0)])[_0x4ed430(0xb7)]()['recommendCommands']()[_0x4ed430(0xb5)]()[_0x4ed430(0xbc)](_0x553015['nODkD']);},exports['handler']=function(_0x2b5844){};
@@ -1 +1 @@
1
- const a19_0x22cc28=a19_0x4cbb;(function(_0xb0853c,_0x467fc8){const _0x3f4c73=a19_0x4cbb,_0x194e55=_0xb0853c();while(!![]){try{const _0x5840bb=parseInt(_0x3f4c73(0xee))/0x1+-parseInt(_0x3f4c73(0xe1))/0x2+parseInt(_0x3f4c73(0xf9))/0x3*(-parseInt(_0x3f4c73(0x128))/0x4)+-parseInt(_0x3f4c73(0xe3))/0x5*(-parseInt(_0x3f4c73(0xfb))/0x6)+parseInt(_0x3f4c73(0x102))/0x7+parseInt(_0x3f4c73(0xde))/0x8+-parseInt(_0x3f4c73(0x11b))/0x9;if(_0x5840bb===_0x467fc8)break;else _0x194e55['push'](_0x194e55['shift']());}catch(_0x3a1ae5){_0x194e55['push'](_0x194e55['shift']());}}}(a19_0x5281,0x538c6));function a19_0x5281(){const _0x25b2d1=['BryZL','Grid\x20started','error','argv','Starting\x20grid\x20','user','start-grid-called','dabFO','server-error','SdVwY','3876876iElNAg','reconnecting-websocket','invalid-grid-id','start','parse','help','VLcri','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','addListeners','replace','QydyW','info','../../config/constants','130708aTnwTR','unauthorised','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','gridId','../../utils/instrumentationUtils','region','IbMaf','cloudProvider','init-not-called','skipTlsCertVerify','clusterName','YUxOy','INFO','boolean','1982760fDmvKJ','<PasswordPlaceholder>','lPCOW','608510dduvnP','name','2320cGwKPn','exit','existsSync','Browserstack','WebSocket','grid','desc','password','VEETu','../../utils/createk8sClient','epilogue','643165oQWCTE','Adding\x20Websocket\x20listeners','imQoa','Start\x20an\x20existing\x20Automation\x20grid.','kZnha','../../config/logger','readFileSync','ERROR','username','description','zSKSR','27bmAYiE','string','1122LWPPjm','TNXin','yhBoa','builder','statusCode','LyrpZ','ctbJe','2754836bMnhEB','handler','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','BVmLt','UNCIN','../../cloudproviders/utils','fmwRd','HRgeR','../../utils/webSocketUtils','options','JBgNa','wDEBm','clusterRegion','usage','type'];a19_0x5281=function(){return _0x25b2d1;};return a19_0x5281();}function a19_0x4cbb(_0x2a56ab,_0x5e58a5){const _0x5281a7=a19_0x5281();return a19_0x4cbb=function(_0x4cbbed,_0x222b4e){_0x4cbbed=_0x4cbbed-0xd2;let _0x311017=_0x5281a7[_0x4cbbed];return _0x311017;},a19_0x4cbb(_0x2a56ab,_0x5e58a5);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x22cc28(0x11c)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x22cc28(0x127)),{logger}=require(a19_0x22cc28(0xf3)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a19_0x22cc28(0xd4)),webSocketUtils=require(a19_0x22cc28(0x10a)),{createK8sClient}=require(a19_0x22cc28(0xec)),{getCloudProviderObject}=require(a19_0x22cc28(0x107));exports['command']=a19_0x22cc28(0xe8),exports[a19_0x22cc28(0xe9)]=a19_0x22cc28(0xf1),exports[a19_0x22cc28(0xfe)]=function(_0x199960){const _0x4bddad=a19_0x22cc28,_0x5a8086={};_0x5a8086['kdtQQ']=_0x4bddad(0x104),_0x5a8086[_0x4bddad(0x10c)]=_0x4bddad(0xfa),_0x5a8086[_0x4bddad(0xd6)]='Skip\x20insecure\x20cert\x20verification.',_0x5a8086[_0x4bddad(0x100)]=_0x4bddad(0xdd),_0x5a8086['SdVwY']=_0x4bddad(0x120);const _0x11bcd1=_0x5a8086,_0x4df59b={};_0x4df59b[_0x4bddad(0xf7)]=_0x11bcd1['kdtQQ'],_0x4df59b[_0x4bddad(0x110)]=_0x11bcd1['JBgNa'];const _0x3439da={};_0x3439da[_0x4bddad(0xf7)]=_0x11bcd1[_0x4bddad(0xd6)],_0x3439da[_0x4bddad(0x110)]=_0x11bcd1[_0x4bddad(0x100)],_0x3439da['default']=![];const _0x3532f9={};return _0x3532f9['grid-id']=_0x4df59b,_0x3532f9['skip-tls-cert-verify']=_0x3439da,_0x199960[_0x4bddad(0x10f)](HELP_HEADER_MESSAGE[_0x4bddad(0x11e)])[_0x4bddad(0xed)](HELP_FOOTER_MESSAGE)[_0x4bddad(0x10b)](_0x3532f9)[_0x4bddad(0x120)](_0x11bcd1[_0x4bddad(0x11a)])[_0x4bddad(0x114)];},exports[a19_0x22cc28(0x103)]=async function(_0x177383){const _0x2354fa=a19_0x22cc28,_0x4665d5={'wDEBm':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','BryZL':function(_0x5ca637){return _0x5ca637();},'lPCOW':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','mUmif':function(_0x8a0c5b,_0x505ca2,_0x147b70,_0x15a492,_0x4b41d0,_0x3e5bfb,_0x3a79d6){return _0x8a0c5b(_0x505ca2,_0x147b70,_0x15a492,_0x4b41d0,_0x3e5bfb,_0x3a79d6);},'UNCIN':_0x2354fa(0x117),'xpPlu':_0x2354fa(0xd8),'HRgeR':function(_0x189e00,_0x3eebfe,_0x16b231,_0x241f91,_0xddbe,_0x38ec9c,_0x531bb0){return _0x189e00(_0x3eebfe,_0x16b231,_0x241f91,_0xddbe,_0x38ec9c,_0x531bb0);},'BVmLt':function(_0x595dac){return _0x595dac();},'TNXin':'<UsernamePlaceholder>','yhBoa':_0x2354fa(0xdf),'ctbJe':_0x2354fa(0xef),'dabFO':function(_0x1e2a13,_0x5ed04a,_0x9d5108,_0x2dcd70){return _0x1e2a13(_0x5ed04a,_0x9d5108,_0x2dcd70);},'ALxsj':function(_0x491129,_0x9aad95,_0x3a9732){return _0x491129(_0x9aad95,_0x3a9732);},'QydyW':function(_0x5932a1,_0x4a112a,_0x60d43c){return _0x5932a1(_0x4a112a,_0x60d43c);},'VLcri':_0x2354fa(0x112),'fmwRd':function(_0x3d4c4f,_0x486ee7){return _0x3d4c4f===_0x486ee7;},'imQoa':_0x2354fa(0xd2),'jsjRE':function(_0x2d2354,_0x2c83de,_0x56306b,_0x2113a9,_0x36a08f,_0x39def2,_0x4b3970){return _0x2d2354(_0x2c83de,_0x56306b,_0x2113a9,_0x36a08f,_0x39def2,_0x4b3970);},'ufIfU':_0x2354fa(0x129),'zSKSR':function(_0x38a3c1,_0x40630,_0x4e5eee,_0x408a12,_0x11bd79,_0x1f6dc9,_0x51679e){return _0x38a3c1(_0x40630,_0x4e5eee,_0x408a12,_0x11bd79,_0x1f6dc9,_0x51679e);},'kZnha':_0x2354fa(0x11d),'YUxOy':function(_0x51acc5,_0x554b0c,_0x5f4b80,_0xd98b77,_0x325d6a,_0x5b3780,_0x562619){return _0x51acc5(_0x554b0c,_0x5f4b80,_0xd98b77,_0x325d6a,_0x5b3780,_0x562619);},'VEETu':_0x2354fa(0x119)};let _0x58f48f;try{!_0x177383['gridId']&&(logger['error'](_0x4665d5[_0x2354fa(0x10d)]),process[_0x2354fa(0xe4)](0x1));!fs[_0x2354fa(0xe5)](_0x4665d5[_0x2354fa(0x111)](getCredentialsPath))&&(logger[_0x2354fa(0x113)](_0x4665d5[_0x2354fa(0xe0)]),await _0x4665d5['mUmif'](sendInstrumentationEvent,_0x177383,_0x4665d5['UNCIN'],messageTypes[_0x2354fa(0xf5)],_0x4665d5['xpPlu'],null,_0x177383),process[_0x2354fa(0xe4)](0x1));logger[_0x2354fa(0x126)](_0x2354fa(0x115)+_0x177383[_0x2354fa(0xd3)]),await _0x4665d5[_0x2354fa(0x109)](sendInstrumentationEvent,_0x177383,_0x4665d5[_0x2354fa(0x106)],messageTypes[_0x2354fa(0xdc)],null,null,_0x177383);const _0x9b86ec=JSON[_0x2354fa(0x11f)](fs[_0x2354fa(0xf4)](_0x4665d5[_0x2354fa(0x105)](getCredentialsPath)));global_registry['bstackUsername']=_0x9b86ec[_0x2354fa(0xe6)][_0x2354fa(0xf6)],global_registry['bstackAccesskey']=_0x9b86ec[_0x2354fa(0xe6)][_0x2354fa(0xea)];const _0x43fbf2=WS_ENDPOINT[_0x2354fa(0x124)](_0x4665d5[_0x2354fa(0xfc)],_0x9b86ec['Browserstack'][_0x2354fa(0xf6)])[_0x2354fa(0x124)](_0x4665d5[_0x2354fa(0xfd)],_0x9b86ec[_0x2354fa(0xe6)][_0x2354fa(0xea)]),_0x26732b={};_0x26732b[_0x2354fa(0xe7)]=ws,_0x26732b['connectionTimeout']=0x36ee80,_0x58f48f=new ReconnectingWebSocket(_0x43fbf2,[],_0x26732b),logger['debug'](_0x4665d5[_0x2354fa(0x101)]),webSocketUtils[_0x2354fa(0x123)](_0x58f48f,_0x177383[_0x2354fa(0x116)],_0x177383[_0x2354fa(0xea)]);const [_0x3cca14,_0x351923]=await _0x4665d5[_0x2354fa(0x118)](getGridDetails,_0x9b86ec[_0x2354fa(0xe6)]['username'],_0x9b86ec[_0x2354fa(0xe6)][_0x2354fa(0xea)],_0x177383[_0x2354fa(0xd3)]);if(_0x351923){const _0x1121e9=_0x351923['info'];global_registry[_0x2354fa(0xd7)]=_0x1121e9[_0x2354fa(0xd7)],global_registry[_0x2354fa(0x10e)]=_0x1121e9[_0x2354fa(0xd5)],global_registry[_0x2354fa(0xda)]=_0x1121e9[_0x2354fa(0xda)];const _0xd81cae=await _0x4665d5[_0x2354fa(0x109)](getCloudProviderObject,_0x1121e9[_0x2354fa(0xd7)],_0x1121e9[_0x2354fa(0xda)],_0x1121e9[_0x2354fa(0xe2)],_0x58f48f,webSocketUtils,_0x177383),[_0x36cbdc,_0x28d802,_0x365435,_0xa1139f,_0x559d7b,_0x503a47]=await _0x4665d5['ALxsj'](createK8sClient,_0xd81cae,_0x177383[_0x2354fa(0xd9)]);await _0x4665d5[_0x2354fa(0x125)](scaleUpHubDeployment,_0x28d802,_0x1121e9[_0x2354fa(0xe2)]),logger[_0x2354fa(0x126)](_0x4665d5[_0x2354fa(0x121)]),process['exit'](0x0);}_0x4665d5[_0x2354fa(0x108)](_0x3cca14[_0x2354fa(0xff)],0x191)&&(logger[_0x2354fa(0x113)](_0x4665d5[_0x2354fa(0xf0)]),await _0x4665d5['jsjRE'](sendInstrumentationEvent,_0x177383,_0x4665d5[_0x2354fa(0x106)],messageTypes[_0x2354fa(0xf5)],_0x4665d5['ufIfU'],null,_0x177383),process[_0x2354fa(0xe4)](0x1)),_0x4665d5[_0x2354fa(0x108)](_0x3cca14[_0x2354fa(0xff)],0x190)&&(logger[_0x2354fa(0x113)](JSON[_0x2354fa(0x11f)](_0x3cca14['body'])['message']),await _0x4665d5[_0x2354fa(0xf8)](sendInstrumentationEvent,_0x177383,_0x4665d5[_0x2354fa(0x106)],messageTypes[_0x2354fa(0xf5)],_0x4665d5[_0x2354fa(0xf2)],null,_0x177383),process[_0x2354fa(0xe4)](0x1)),logger[_0x2354fa(0x113)](_0x2354fa(0x122)+JSON['stringify'](_0x3cca14)),await _0x4665d5[_0x2354fa(0xdb)](sendInstrumentationEvent,_0x177383,_0x4665d5[_0x2354fa(0x106)],messageTypes[_0x2354fa(0xf5)],_0x4665d5[_0x2354fa(0xeb)],_0x3cca14,_0x177383),process['exit'](0x1);}catch(_0x268f62){const _0xe4beb3='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x268f62+'\x20\x0a'+JSON['stringify'](_0x268f62['stack'])+'\x20';logger[_0x2354fa(0x113)](_0xe4beb3),process[_0x2354fa(0xe4)](0x1);}};
1
+ const a19_0x22d33d=a19_0x2cae;function a19_0x3efb(){const _0x50f47a=['help','15182544hjFmHk','../../cloudproviders/utils','connectionTimeout','type','2143696gIhJfY','nrdmV','epilogue','rchnw','qKgaI','pmEFx','dqAvC','1188luugWy','reconnecting-websocket','info','debug','../../config/logger','ERROR','nyoOG','desc','10hipmmQ','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','Skip\x20insecure\x20cert\x20verification.','22708aUQDra','464192uxXLlS','luWrS','start','server-error','sscVm','Browserstack','Start\x20an\x20existing\x20Automation\x20grid.','GCyJh','unauthorised','cloudProvider','elpVr','username','body','usage','1519869XJnucJ','kUZaG','message','../../utils/gridComponents','GyaBY','password','name','boolean','baBUS','<UsernamePlaceholder>','exit','Grid\x20started','KMBJF','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Adding\x20Websocket\x20listeners','53950xYINaS','start-grid-called','stack','error','readFileSync','Duhev','INFO','clusterName','options','KXMVj','grid-id','../../utils/utilityMethods','2tbmWvj','WebSocket','400Ildfao','region','statusCode','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../utils/createk8sClient','default','replace','Starting\x20grid\x20','gridId','existsSync','kKuXQ','description','clusterRegion','invalid-grid-id','parse','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','../../utils/instrumentationUtils','skipTlsCertVerify','22MhSqQM','string','uTAEe','<PasswordPlaceholder>','DWoyj','1999302NfDYNt','bstackAccesskey','bstackUsername'];a19_0x3efb=function(){return _0x50f47a;};return a19_0x3efb();}(function(_0x1eeeff,_0x2390fa){const _0x52c5e2=a19_0x2cae,_0x11007d=_0x1eeeff();while(!![]){try{const _0x324ba7=-parseInt(_0x52c5e2(0x82))/0x1+parseInt(_0x52c5e2(0xab))/0x2*(parseInt(_0x52c5e2(0x90))/0x3)+-parseInt(_0x52c5e2(0xcc))/0x4+parseInt(_0x52c5e2(0x7e))/0x5*(-parseInt(_0x52c5e2(0xc4))/0x6)+-parseInt(_0x52c5e2(0x81))/0x7*(parseInt(_0x52c5e2(0xad))/0x8)+-parseInt(_0x52c5e2(0x76))/0x9*(parseInt(_0x52c5e2(0x9f))/0xa)+-parseInt(_0x52c5e2(0xbf))/0xb*(-parseInt(_0x52c5e2(0xc8))/0xc);if(_0x324ba7===_0x2390fa)break;else _0x11007d['push'](_0x11007d['shift']());}catch(_0x520ae0){_0x11007d['push'](_0x11007d['shift']());}}}(a19_0x3efb,0x7921d));function a19_0x2cae(_0x37e8a9,_0x360a5d){const _0x3efbc3=a19_0x3efb();return a19_0x2cae=function(_0x2cae26,_0x4b3c1e){_0x2cae26=_0x2cae26-0x75;let _0x3b075b=_0x3efbc3[_0x2cae26];return _0x3b075b;},a19_0x2cae(_0x37e8a9,_0x360a5d);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x22d33d(0x77)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x22d33d(0x7a)),{getCredentialsPath,getGridDetails}=require(a19_0x22d33d(0xaa)),{scaleUpHubDeployment}=require(a19_0x22d33d(0x93)),{sendInstrumentationEvent}=require(a19_0x22d33d(0xbd)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x22d33d(0xb1)),{getCloudProviderObject}=require(a19_0x22d33d(0xc9));exports['command']='grid',exports[a19_0x22d33d(0x7d)]=a19_0x22d33d(0x88),exports['builder']=function(_0xc43732){const _0x3fb2fb=a19_0x22d33d,_0x14bf7a={};_0x14bf7a[_0x3fb2fb(0xa4)]='Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.',_0x14bf7a[_0x3fb2fb(0x83)]=_0x3fb2fb(0xc0),_0x14bf7a[_0x3fb2fb(0x86)]=_0x3fb2fb(0x80),_0x14bf7a[_0x3fb2fb(0x89)]=_0x3fb2fb(0x97),_0x14bf7a['elpVr']=_0x3fb2fb(0xc7);const _0x5bf740=_0x14bf7a,_0xaf23ab={};_0xaf23ab[_0x3fb2fb(0xb8)]=_0x5bf740['Duhev'],_0xaf23ab[_0x3fb2fb(0xcb)]=_0x5bf740[_0x3fb2fb(0x83)];const _0x204f6e={};_0x204f6e[_0x3fb2fb(0xb8)]=_0x5bf740[_0x3fb2fb(0x86)],_0x204f6e[_0x3fb2fb(0xcb)]=_0x5bf740['GCyJh'],_0x204f6e[_0x3fb2fb(0xb2)]=![];const _0x3a7d0d={};return _0x3a7d0d[_0x3fb2fb(0xa9)]=_0xaf23ab,_0x3a7d0d['skip-tls-cert-verify']=_0x204f6e,_0xc43732[_0x3fb2fb(0x8f)](HELP_HEADER_MESSAGE[_0x3fb2fb(0x84)])[_0x3fb2fb(0xce)](HELP_FOOTER_MESSAGE)[_0x3fb2fb(0xa7)](_0x3a7d0d)[_0x3fb2fb(0xc7)](_0x5bf740[_0x3fb2fb(0x8c)])['argv'];},exports['handler']=async function(_0x24865a){const _0x4f20db=a19_0x22d33d,_0x44809c={'rchnw':_0x4f20db(0x7f),'dqAvC':function(_0x342c66){return _0x342c66();},'uTAEe':_0x4f20db(0x9d),'kUZaG':function(_0x126234,_0x1138a5,_0x2393e0,_0x2fc71b,_0x3ede69,_0x3ef64d,_0x38418e){return _0x126234(_0x1138a5,_0x2393e0,_0x2fc71b,_0x3ede69,_0x3ef64d,_0x38418e);},'pmEFx':_0x4f20db(0xa0),'RonJK':'init-not-called','KMBJF':function(_0x3ab921,_0x532a85,_0x32c66b,_0x3e1d63,_0x7cb14f,_0x238dc6,_0x55d0e7){return _0x3ab921(_0x532a85,_0x32c66b,_0x3e1d63,_0x7cb14f,_0x238dc6,_0x55d0e7);},'GyaBY':function(_0x41c84f){return _0x41c84f();},'qKgaI':_0x4f20db(0x99),'kKuXQ':_0x4f20db(0xc2),'KvklD':_0x4f20db(0x9e),'IVOPB':function(_0x30db3e,_0x1fd876,_0x5e7a98,_0x4ca028){return _0x30db3e(_0x1fd876,_0x5e7a98,_0x4ca028);},'KXMVj':function(_0x7db68,_0x4c675d,_0xbef366){return _0x7db68(_0x4c675d,_0xbef366);},'nrdmV':function(_0x25b164,_0x36f0be,_0x1277ed){return _0x25b164(_0x36f0be,_0x1277ed);},'nyoOG':_0x4f20db(0x9b),'IKkZj':function(_0x2a5efb,_0x1e01a3){return _0x2a5efb===_0x1e01a3;},'BDGyb':_0x4f20db(0xb0),'Zoqsx':function(_0x1669e0,_0x129305,_0x2dc328,_0x40f22b,_0x1dc04b,_0x4431c4,_0x383f49){return _0x1669e0(_0x129305,_0x2dc328,_0x40f22b,_0x1dc04b,_0x4431c4,_0x383f49);},'yPFBF':_0x4f20db(0x8a),'paIwC':function(_0x4b550f,_0x37c936,_0x33d871,_0x30b884,_0x690bb4,_0x47d0c1,_0x235e97){return _0x4b550f(_0x37c936,_0x33d871,_0x30b884,_0x690bb4,_0x47d0c1,_0x235e97);},'DWoyj':_0x4f20db(0xba),'baBUS':function(_0x3e9d3d,_0x409521,_0x6b1e75,_0x517baf,_0xffa0c5,_0x491ddb,_0xe0fafc){return _0x3e9d3d(_0x409521,_0x6b1e75,_0x517baf,_0xffa0c5,_0x491ddb,_0xe0fafc);},'bGHeV':_0x4f20db(0x85)};let _0xb0ba7c;try{!_0x24865a[_0x4f20db(0xb5)]&&(logger[_0x4f20db(0xa2)](_0x44809c[_0x4f20db(0xcf)]),process[_0x4f20db(0x9a)](0x1));!fs[_0x4f20db(0xb6)](_0x44809c[_0x4f20db(0x75)](getCredentialsPath))&&(logger[_0x4f20db(0xa2)](_0x44809c[_0x4f20db(0xc1)]),await _0x44809c[_0x4f20db(0x91)](sendInstrumentationEvent,_0x24865a,_0x44809c[_0x4f20db(0xd1)],messageTypes[_0x4f20db(0x7b)],_0x44809c['RonJK'],null,_0x24865a),process[_0x4f20db(0x9a)](0x1));logger[_0x4f20db(0x78)](_0x4f20db(0xb4)+_0x24865a[_0x4f20db(0xb5)]),await _0x44809c[_0x4f20db(0x9c)](sendInstrumentationEvent,_0x24865a,_0x44809c['pmEFx'],messageTypes[_0x4f20db(0xa5)],null,null,_0x24865a);const _0x3860f5=JSON[_0x4f20db(0xbb)](fs[_0x4f20db(0xa3)](_0x44809c[_0x4f20db(0x94)](getCredentialsPath)));global_registry[_0x4f20db(0xc6)]=_0x3860f5[_0x4f20db(0x87)]['username'],global_registry[_0x4f20db(0xc5)]=_0x3860f5[_0x4f20db(0x87)][_0x4f20db(0x95)];const _0x23cde8=WS_ENDPOINT[_0x4f20db(0xb3)](_0x44809c[_0x4f20db(0xd0)],_0x3860f5['Browserstack'][_0x4f20db(0x8d)])[_0x4f20db(0xb3)](_0x44809c[_0x4f20db(0xb7)],_0x3860f5[_0x4f20db(0x87)][_0x4f20db(0x95)]),_0x190040={};_0x190040[_0x4f20db(0xac)]=ws,_0x190040[_0x4f20db(0xca)]=0x36ee80,_0xb0ba7c=new ReconnectingWebSocket(_0x23cde8,[],_0x190040),logger[_0x4f20db(0x79)](_0x44809c['KvklD']),webSocketUtils['addListeners'](_0xb0ba7c,_0x24865a['user'],_0x24865a[_0x4f20db(0x95)]);const [_0x46cd48,_0x4d1769]=await _0x44809c['IVOPB'](getGridDetails,_0x3860f5[_0x4f20db(0x87)][_0x4f20db(0x8d)],_0x3860f5[_0x4f20db(0x87)][_0x4f20db(0x95)],_0x24865a['gridId']);if(_0x4d1769){const _0x4f6833=_0x4d1769['info'];global_registry[_0x4f20db(0x8b)]=_0x4f6833['cloudProvider'],global_registry[_0x4f20db(0xb9)]=_0x4f6833[_0x4f20db(0xae)],global_registry['clusterName']=_0x4f6833[_0x4f20db(0xa6)];const _0x575511=await _0x44809c[_0x4f20db(0x9c)](getCloudProviderObject,_0x4f6833[_0x4f20db(0x8b)],_0x4f6833[_0x4f20db(0xa6)],_0x4f6833[_0x4f20db(0x96)],_0xb0ba7c,webSocketUtils,_0x24865a),[_0x4d23bf,_0x5a858e,_0xb65233,_0x40bbfe,_0xd68c92,_0x57d6fb]=await _0x44809c[_0x4f20db(0xa8)](createK8sClient,_0x575511,_0x24865a[_0x4f20db(0xbe)]);await _0x44809c[_0x4f20db(0xcd)](scaleUpHubDeployment,_0x5a858e,_0x4f6833[_0x4f20db(0x96)]),logger[_0x4f20db(0x78)](_0x44809c[_0x4f20db(0x7c)]),process[_0x4f20db(0x9a)](0x0);}_0x44809c['IKkZj'](_0x46cd48[_0x4f20db(0xaf)],0x191)&&(logger[_0x4f20db(0xa2)](_0x44809c['BDGyb']),await _0x44809c['Zoqsx'](sendInstrumentationEvent,_0x24865a,_0x44809c[_0x4f20db(0xd1)],messageTypes[_0x4f20db(0x7b)],_0x44809c['yPFBF'],null,_0x24865a),process[_0x4f20db(0x9a)](0x1)),_0x44809c['IKkZj'](_0x46cd48[_0x4f20db(0xaf)],0x190)&&(logger[_0x4f20db(0xa2)](JSON[_0x4f20db(0xbb)](_0x46cd48[_0x4f20db(0x8e)])[_0x4f20db(0x92)]),await _0x44809c['paIwC'](sendInstrumentationEvent,_0x24865a,_0x44809c['pmEFx'],messageTypes[_0x4f20db(0x7b)],_0x44809c[_0x4f20db(0xc3)],null,_0x24865a),process[_0x4f20db(0x9a)](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x46cd48)),await _0x44809c[_0x4f20db(0x98)](sendInstrumentationEvent,_0x24865a,_0x44809c[_0x4f20db(0xd1)],messageTypes[_0x4f20db(0x7b)],_0x44809c['bGHeV'],_0x46cd48,_0x24865a),process[_0x4f20db(0x9a)](0x1);}catch(_0x48560f){const _0x5e3e66=_0x4f20db(0xbc)+_0x48560f+'\x20\x0a'+JSON['stringify'](_0x48560f[_0x4f20db(0xa1)])+'\x20';logger['error'](_0x5e3e66),process[_0x4f20db(0x9a)](0x1);}};
@@ -1 +1 @@
1
- const a20_0xa22ecf=a20_0x1f1d;(function(_0x22de49,_0x56fbc0){const _0x461bc0=a20_0x1f1d,_0x5c9f79=_0x22de49();while(!![]){try{const _0x426d86=-parseInt(_0x461bc0(0xe2))/0x1*(-parseInt(_0x461bc0(0xe6))/0x2)+parseInt(_0x461bc0(0xec))/0x3+parseInt(_0x461bc0(0xee))/0x4+parseInt(_0x461bc0(0xe1))/0x5*(-parseInt(_0x461bc0(0xe9))/0x6)+-parseInt(_0x461bc0(0xe4))/0x7*(-parseInt(_0x461bc0(0xea))/0x8)+parseInt(_0x461bc0(0xf0))/0x9*(-parseInt(_0x461bc0(0xdb))/0xa)+parseInt(_0x461bc0(0xd9))/0xb;if(_0x426d86===_0x56fbc0)break;else _0x5c9f79['push'](_0x5c9f79['shift']());}catch(_0x393261){_0x5c9f79['push'](_0x5c9f79['shift']());}}}(a20_0x27f3,0xf0826));function a20_0x1f1d(_0xd2879a,_0x9e5d35){const _0x27f33b=a20_0x27f3();return a20_0x1f1d=function(_0x1f1de7,_0x47eef6){_0x1f1de7=_0x1f1de7-0xd9;let _0x23d617=_0x27f33b[_0x1f1de7];return _0x23d617;},a20_0x1f1d(_0xd2879a,_0x9e5d35);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0xa22ecf(0xdf));exports[a20_0xa22ecf(0xf1)]=a20_0xa22ecf(0xe7),exports['desc']=a20_0xa22ecf(0xed),exports[a20_0xa22ecf(0xe8)]=function(_0x5022f7){const _0x3e21e3=a20_0xa22ecf,_0x57cd4a={};_0x57cd4a[_0x3e21e3(0xdc)]='stop_commands',_0x57cd4a['HUmGd']=_0x3e21e3(0xdd);const _0x433d44=_0x57cd4a;return _0x5022f7[_0x3e21e3(0xeb)](HELP_HEADER_MESSAGE[_0x3e21e3(0xe7)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x3e21e3(0xda)](_0x433d44[_0x3e21e3(0xdc)])[_0x3e21e3(0xef)]()[_0x3e21e3(0xe3)]()[_0x3e21e3(0xe0)]()[_0x3e21e3(0xdd)](_0x433d44[_0x3e21e3(0xe5)]);},exports[a20_0xa22ecf(0xde)]=function(_0x12a72e){};function a20_0x27f3(){const _0x5b052d=['20fzXzrH','1gykMDj','recommendCommands','588721ngEATk','HUmGd','277966AUCxwj','stop','builder','2138496NxcUDs','112xjDoIe','usage','907620CrHqro','Stop\x20a\x20running\x20Automation\x20grid.','57532DyyAJg','demandCommand','4590mFlSBK','command','24815252lKgXGv','commandDir','28990QlsRbF','vMCNv','help','handler','../config/constants','strict'];a20_0x27f3=function(){return _0x5b052d;};return a20_0x27f3();}
1
+ function a20_0x4278(){const _0x3f2765=['Stop\x20a\x20running\x20Automation\x20grid.','../config/constants','oqHDl','handler','stop_commands','1982103CYLQZW','stop','builder','help','946758TVqysj','689202xKNzrX','2594315HUDsJw','baZPh','strict','recommendCommands','epilogue','usage','629512MaRopq','demandCommand','1893861sIawrG','88MPCJXx','35IEttlR','2421388YHNUie'];a20_0x4278=function(){return _0x3f2765;};return a20_0x4278();}function a20_0x2b51(_0x39adb6,_0x18db6b){const _0x42789f=a20_0x4278();return a20_0x2b51=function(_0x2b5186,_0xff84db){_0x2b5186=_0x2b5186-0x93;let _0x54538d=_0x42789f[_0x2b5186];return _0x54538d;},a20_0x2b51(_0x39adb6,_0x18db6b);}const a20_0x1333e1=a20_0x2b51;(function(_0x1517ee,_0x42b8ba){const _0x3d511c=a20_0x2b51,_0x3f5bf4=_0x1517ee();while(!![]){try{const _0x1fcc7a=parseInt(_0x3d511c(0xa7))/0x1+-parseInt(_0x3d511c(0x9c))/0x2+parseInt(_0x3d511c(0xa2))/0x3+-parseInt(_0x3d511c(0x97))/0x4+-parseInt(_0x3d511c(0xa8))/0x5+parseInt(_0x3d511c(0xa6))/0x6*(-parseInt(_0x3d511c(0x9b))/0x7)+parseInt(_0x3d511c(0x9a))/0x8*(parseInt(_0x3d511c(0x99))/0x9);if(_0x1fcc7a===_0x42b8ba)break;else _0x3f5bf4['push'](_0x3f5bf4['shift']());}catch(_0x5692ef){_0x3f5bf4['push'](_0x3f5bf4['shift']());}}}(a20_0x4278,0xf1632));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x1333e1(0x9e));exports['command']=a20_0x1333e1(0xa3),exports['desc']=a20_0x1333e1(0x9d),exports[a20_0x1333e1(0xa4)]=function(_0xa72c07){const _0x593bf6=a20_0x1333e1,_0x5c1095={};_0x5c1095[_0x593bf6(0x9f)]=_0x593bf6(0xa1),_0x5c1095[_0x593bf6(0xa9)]=_0x593bf6(0xa5);const _0x413571=_0x5c1095;return _0xa72c07[_0x593bf6(0x96)](HELP_HEADER_MESSAGE[_0x593bf6(0xa3)])[_0x593bf6(0x95)](HELP_FOOTER_MESSAGE)['commandDir'](_0x413571[_0x593bf6(0x9f)])[_0x593bf6(0x98)]()[_0x593bf6(0x94)]()[_0x593bf6(0x93)]()[_0x593bf6(0xa5)](_0x413571[_0x593bf6(0xa9)]);},exports[a20_0x1333e1(0xa0)]=function(_0x2252b2){};
@@ -1 +1 @@
1
- const a21_0x3bb6c4=a21_0x3b8a;function a21_0x3b8a(_0x2d1d6b,_0x4d1823){const _0x2ca86f=a21_0x2ca8();return a21_0x3b8a=function(_0x3b8ad4,_0x4f75aa){_0x3b8ad4=_0x3b8ad4-0xc0;let _0x55af42=_0x2ca86f[_0x3b8ad4];return _0x55af42;},a21_0x3b8a(_0x2d1d6b,_0x4d1823);}function a21_0x2ca8(){const _0x263fbd=['TyhVM','string','20aAMnzA','<PasswordPlaceholder>','goPLk','grid','help','924888mQQefW','633747erbFWN','username','sZRYk','server-error','builder','options','clusterName','init-not-called','stop-grid-called','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','replace','bQDFu','../../config/constants','Grid\x20stoppped.','../../utils/gridComponents','skipTlsCertVerify','vQsWD','KFRrW','default','user','connectionTimeout','statusCode','readFileSync','2TtgKCd','info','usage','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','15844190ZUTKKx','grid-id','635604mTkwXc','WTUsX','CFDAP','error','lltFH','cloudProvider','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','stop','handler','bstackAccesskey','exit','eZJcI','sPeHl','reconnecting-websocket','dNOjh','HzWJM','169913eNbqVq','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','stack','parse','argv','password','OpANO','stringify','message','desc','INFO','epilogue','Adding\x20Websocket\x20listeners','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Eqqsi','12976722iWHgmp','FSYna','yYUCr','yuSlz','Stop\x20a\x20running\x20Automation\x20grid.','8kUxnGo','KrNWR','region','WebSocket','../../utils/utilityMethods','Browserstack','../../utils/createk8sClient','existsSync','Skip\x20insecure\x20cert\x20verification.','uXffG','addListeners','../../config/logger','command','Stopping\x20grid\x20','WjIFT','bwHnO','2138549HZUuLK','type','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','bstackUsername','gridId','boolean','../../utils/instrumentationUtils','LPByw','ERROR','name','mVXOW','lkkvM'];a21_0x2ca8=function(){return _0x263fbd;};return a21_0x2ca8();}(function(_0x30f35f,_0x15a6a6){const _0x401537=a21_0x3b8a,_0x53b544=_0x30f35f();while(!![]){try{const _0x45e0cf=-parseInt(_0x401537(0xe1))/0x1*(parseInt(_0x401537(0xcb))/0x2)+-parseInt(_0x401537(0x119))/0x3+parseInt(_0x401537(0x118))/0x4+-parseInt(_0x401537(0x113))/0x5*(-parseInt(_0x401537(0xd1))/0x6)+parseInt(_0x401537(0x105))/0x7+parseInt(_0x401537(0xf5))/0x8*(-parseInt(_0x401537(0xf0))/0x9)+parseInt(_0x401537(0xcf))/0xa;if(_0x45e0cf===_0x15a6a6)break;else _0x53b544['push'](_0x53b544['shift']());}catch(_0x509c2e){_0x53b544['push'](_0x53b544['shift']());}}}(a21_0x2ca8,0xb03c8));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x3bb6c4(0xde)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x3bb6c4(0xc0)),{logger}=require(a21_0x3bb6c4(0x100)),{getCredentialsPath,getGridDetails}=require(a21_0x3bb6c4(0xf9)),{scaleDownHubDeployment}=require(a21_0x3bb6c4(0xc2)),{sendInstrumentationEvent}=require(a21_0x3bb6c4(0x10b)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x3bb6c4(0xfb)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a21_0x3bb6c4(0x101)]=a21_0x3bb6c4(0x116),exports[a21_0x3bb6c4(0xea)]=a21_0x3bb6c4(0xf4),exports[a21_0x3bb6c4(0x11d)]=function(_0x5469e1){const _0x2dbc53=a21_0x3bb6c4,_0x6ac579={};_0x6ac579[_0x2dbc53(0xfe)]=_0x2dbc53(0xe2),_0x6ac579[_0x2dbc53(0x110)]=_0x2dbc53(0x112),_0x6ac579[_0x2dbc53(0x103)]=_0x2dbc53(0xfd),_0x6ac579[_0x2dbc53(0x124)]=_0x2dbc53(0x10a),_0x6ac579[_0x2dbc53(0xdd)]=_0x2dbc53(0x117);const _0x1315d6=_0x6ac579,_0x571a17={};_0x571a17['description']=_0x1315d6['uXffG'],_0x571a17[_0x2dbc53(0x106)]=_0x1315d6[_0x2dbc53(0x110)];const _0x2dbe7e={};_0x2dbe7e['description']=_0x1315d6[_0x2dbc53(0x103)],_0x2dbe7e['type']=_0x1315d6['bQDFu'],_0x2dbe7e[_0x2dbc53(0xc6)]=![];const _0x37f468={};return _0x37f468[_0x2dbc53(0xd0)]=_0x571a17,_0x37f468['skip-tls-cert-verify']=_0x2dbe7e,_0x5469e1[_0x2dbc53(0xcd)](HELP_HEADER_MESSAGE[_0x2dbc53(0xd8)])[_0x2dbc53(0xec)](HELP_FOOTER_MESSAGE)[_0x2dbc53(0x11e)](_0x37f468)['help'](_0x1315d6[_0x2dbc53(0xdd)])[_0x2dbc53(0xe5)];},exports[a21_0x3bb6c4(0xd9)]=async function(_0x4b262c){const _0x364777=a21_0x3bb6c4,_0x3b10f3={'tbJVM':_0x364777(0x107),'WTUsX':function(_0x592ab4){return _0x592ab4();},'OpANO':_0x364777(0xee),'Eqqsi':function(_0x1da891,_0x4e9d53,_0x5d41e7,_0xe17130,_0x39f20c,_0x10ca28,_0xfa5b36){return _0x1da891(_0x4e9d53,_0x5d41e7,_0xe17130,_0x39f20c,_0x10ca28,_0xfa5b36);},'goPLk':_0x364777(0x121),'KrNWR':_0x364777(0x120),'eZJcI':function(_0x5c2933){return _0x5c2933();},'lltFH':'<UsernamePlaceholder>','HzWJM':_0x364777(0x114),'vQsWD':_0x364777(0xed),'CFDAP':function(_0x11245f,_0x20cace,_0x56894a,_0x13b342){return _0x11245f(_0x20cace,_0x56894a,_0x13b342);},'LPByw':function(_0x5c1465,_0x7904b2,_0x1714d8,_0x466e15,_0x9e315a,_0x4d8756,_0x4a0eb2){return _0x5c1465(_0x7904b2,_0x1714d8,_0x466e15,_0x9e315a,_0x4d8756,_0x4a0eb2);},'mVXOW':function(_0x50ad5d,_0x2bd7ab,_0x3924ad){return _0x50ad5d(_0x2bd7ab,_0x3924ad);},'sZRYk':function(_0x2556c7,_0x1fda1f,_0x11c99d){return _0x2556c7(_0x1fda1f,_0x11c99d);},'yuSlz':_0x364777(0xc1),'TyhVM':function(_0x35df5b,_0x47b9d5){return _0x35df5b===_0x47b9d5;},'bVpUE':_0x364777(0xce),'tGkkh':function(_0x4f66b4,_0x90bb42,_0x4f9f70,_0x2a77c5,_0x33ae6f,_0xfa234c,_0x1ef80d){return _0x4f66b4(_0x90bb42,_0x4f9f70,_0x2a77c5,_0x33ae6f,_0xfa234c,_0x1ef80d);},'mUzMj':'unauthorised','KFRrW':function(_0x38fbfa,_0x3e407f){return _0x38fbfa===_0x3e407f;},'FSYna':function(_0xc825ff,_0x2597fc,_0x4400fc,_0x12413a,_0x110b85,_0x313e35,_0x3dbab7){return _0xc825ff(_0x2597fc,_0x4400fc,_0x12413a,_0x110b85,_0x313e35,_0x3dbab7);},'bwHnO':'invalid-grid-id','dNOjh':function(_0x5e7714,_0x24b456,_0x12ac1a,_0x561754,_0x3f8969,_0x55c982,_0x27bf8e){return _0x5e7714(_0x24b456,_0x12ac1a,_0x561754,_0x3f8969,_0x55c982,_0x27bf8e);},'yYUCr':_0x364777(0x11c)};let _0x500d42;try{!_0x4b262c[_0x364777(0x109)]&&(logger[_0x364777(0xd4)](_0x3b10f3['tbJVM']),process[_0x364777(0xdb)](0x1));!fs[_0x364777(0xfc)](_0x3b10f3[_0x364777(0xd2)](getCredentialsPath))&&(logger[_0x364777(0xd4)](_0x3b10f3[_0x364777(0xe7)]),await _0x3b10f3[_0x364777(0xef)](sendInstrumentationEvent,_0x4b262c,_0x3b10f3[_0x364777(0x115)],messageTypes[_0x364777(0x10d)],_0x3b10f3[_0x364777(0xf6)],null,_0x4b262c),process[_0x364777(0xdb)](0x1));logger['info'](_0x364777(0x102)+_0x4b262c[_0x364777(0x109)]),await _0x3b10f3['Eqqsi'](sendInstrumentationEvent,_0x4b262c,_0x3b10f3[_0x364777(0x115)],messageTypes[_0x364777(0xeb)],null,null,_0x4b262c);const _0xddf2ff=JSON[_0x364777(0xe4)](fs[_0x364777(0xca)](_0x3b10f3[_0x364777(0xdc)](getCredentialsPath)));global_registry[_0x364777(0x108)]=_0xddf2ff[_0x364777(0xfa)][_0x364777(0x11a)],global_registry[_0x364777(0xda)]=_0xddf2ff[_0x364777(0xfa)]['password'];const _0x465de3=WS_ENDPOINT['replace'](_0x3b10f3[_0x364777(0xd5)],_0xddf2ff[_0x364777(0xfa)][_0x364777(0x11a)])[_0x364777(0x123)](_0x3b10f3[_0x364777(0xe0)],_0xddf2ff[_0x364777(0xfa)][_0x364777(0xe6)]),_0x2560a1={};_0x2560a1[_0x364777(0xf8)]=ws,_0x2560a1[_0x364777(0xc8)]=0x36ee80,_0x500d42=new ReconnectingWebSocket(_0x465de3,[],_0x2560a1),logger['debug'](_0x3b10f3[_0x364777(0xc4)]),webSocketUtils[_0x364777(0xff)](_0x500d42,_0x4b262c[_0x364777(0xc7)],_0x4b262c[_0x364777(0xe6)]);const [_0x5b235e,_0x566ff7]=await _0x3b10f3[_0x364777(0xd3)](getGridDetails,_0xddf2ff[_0x364777(0xfa)][_0x364777(0x11a)],_0xddf2ff['Browserstack'][_0x364777(0xe6)],_0x4b262c[_0x364777(0x109)]);if(_0x566ff7){const _0x5ba7a0=_0x566ff7['info'];global_registry[_0x364777(0xd6)]=_0x5ba7a0[_0x364777(0xd6)],global_registry['clusterRegion']=_0x5ba7a0[_0x364777(0xf7)],global_registry[_0x364777(0x11f)]=_0x5ba7a0[_0x364777(0x11f)];const _0x3da368=await _0x3b10f3[_0x364777(0x10c)](getCloudProviderObject,_0x5ba7a0[_0x364777(0xd6)],_0x5ba7a0[_0x364777(0x11f)],_0x5ba7a0[_0x364777(0x10e)],_0x500d42,webSocketUtils,_0x4b262c),[_0x506877,_0x4b8269,_0x361775,_0x30813b,_0x8b1dc0,_0x476fda]=await _0x3b10f3[_0x364777(0x10f)](createK8sClient,_0x3da368,_0x4b262c[_0x364777(0xc3)]);await _0x3b10f3[_0x364777(0x11b)](scaleDownHubDeployment,_0x4b8269,_0x5ba7a0[_0x364777(0x10e)]),logger[_0x364777(0xcc)](_0x3b10f3[_0x364777(0xf3)]),process[_0x364777(0xdb)](0x0);}_0x3b10f3[_0x364777(0x111)](_0x5b235e[_0x364777(0xc9)],0x191)&&(logger[_0x364777(0xd4)](_0x3b10f3['bVpUE']),await _0x3b10f3['tGkkh'](sendInstrumentationEvent,_0x4b262c,_0x3b10f3['goPLk'],messageTypes[_0x364777(0x10d)],_0x3b10f3['mUzMj'],null,_0x4b262c),process[_0x364777(0xdb)](0x1)),_0x3b10f3[_0x364777(0xc5)](_0x5b235e[_0x364777(0xc9)],0x190)&&(logger[_0x364777(0xd4)](JSON[_0x364777(0xe4)](_0x5b235e['body'])[_0x364777(0xe9)]),await _0x3b10f3[_0x364777(0xf1)](sendInstrumentationEvent,_0x4b262c,_0x3b10f3[_0x364777(0x115)],messageTypes[_0x364777(0x10d)],_0x3b10f3[_0x364777(0x104)],null,_0x4b262c),process['exit'](0x1)),logger['error'](_0x364777(0x122)+JSON[_0x364777(0xe8)](_0x5b235e)),await _0x3b10f3[_0x364777(0xdf)](sendInstrumentationEvent,_0x4b262c,_0x3b10f3['goPLk'],messageTypes['ERROR'],_0x3b10f3[_0x364777(0xf2)],_0x5b235e,_0x4b262c),process[_0x364777(0xdb)](0x1);}catch(_0x330c6a){const _0x31c5b2=_0x364777(0xd7)+_0x330c6a+'\x20\x0a'+JSON[_0x364777(0xe8)](_0x330c6a[_0x364777(0xe3)])+'\x20';logger['error'](_0x31c5b2),process[_0x364777(0xdb)](0x1);}};
1
+ const a21_0x5e0a6e=a21_0x4a8f;(function(_0x16dada,_0x55474b){const _0xbf1c68=a21_0x4a8f,_0x2843b9=_0x16dada();while(!![]){try{const _0x33a2b7=-parseInt(_0xbf1c68(0xec))/0x1*(-parseInt(_0xbf1c68(0xf5))/0x2)+parseInt(_0xbf1c68(0xf4))/0x3+-parseInt(_0xbf1c68(0xd4))/0x4+-parseInt(_0xbf1c68(0xdd))/0x5*(parseInt(_0xbf1c68(0xc4))/0x6)+parseInt(_0xbf1c68(0xee))/0x7*(parseInt(_0xbf1c68(0xca))/0x8)+-parseInt(_0xbf1c68(0xf0))/0x9*(parseInt(_0xbf1c68(0xcc))/0xa)+parseInt(_0xbf1c68(0xcf))/0xb;if(_0x33a2b7===_0x55474b)break;else _0x2843b9['push'](_0x2843b9['shift']());}catch(_0x165a19){_0x2843b9['push'](_0x2843b9['shift']());}}}(a21_0x293c,0x98595));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x5e0a6e(0xf3)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x5e0a6e(0xa2)),{logger}=require(a21_0x5e0a6e(0xc9)),{getCredentialsPath,getGridDetails}=require(a21_0x5e0a6e(0xed)),{scaleDownHubDeployment}=require(a21_0x5e0a6e(0xb5)),{sendInstrumentationEvent}=require(a21_0x5e0a6e(0xd3)),webSocketUtils=require(a21_0x5e0a6e(0xc8)),{createK8sClient}=require(a21_0x5e0a6e(0xe4)),{getCloudProviderObject}=require(a21_0x5e0a6e(0xd5));function a21_0x293c(){const _0x382422=['4TcJlRY','OofsA','fkaiw','grid','stop','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','GkWhi','UPEDV','../../config/constants','mRmOZ','error','Browserstack','stringify','body','description','region','skipTlsCertVerify','pAYAL','cloudProvider','Skip\x20insecure\x20cert\x20verification.','message','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','giZrq','JPOqA','addListeners','INFO','grid-id','../../utils/gridComponents','BOewC','HpvaH','help','debug','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','nJunA','clusterName','password','user','DqOeM','username','stack','parse','epilogue','6bgciXg','usage','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','boolean','../../utils/webSocketUtils','../../config/logger','152sjElBT','argv','6610GIHWlW','zyNtp','gridId','26209722AKjKfx','init-not-called','ERROR','command','../../utils/instrumentationUtils','4952352AUqKBn','../../cloudproviders/utils','handler','clusterRegion','bstackAccesskey','XKVPn','existsSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','info','5472330WXSPBr','Stop\x20a\x20running\x20Automation\x20grid.','statusCode','azmUQ','AFeIt','qMLii','Adding\x20Websocket\x20listeners','../../utils/createk8sClient','fDgyd','WebSocket','exit','bstackUsername','name','default','HdDXg','288049JdRZQS','../../utils/utilityMethods','68047psvOTX','EnsAF','16749IhbUHf','replace','type','reconnecting-websocket','3129591bmtoOX'];a21_0x293c=function(){return _0x382422;};return a21_0x293c();}function a21_0x4a8f(_0x1c1c2f,_0x27bfb2){const _0x293c46=a21_0x293c();return a21_0x4a8f=function(_0x4a8fb1,_0x3f217d){_0x4a8fb1=_0x4a8fb1-0xa1;let _0x8c8e3f=_0x293c46[_0x4a8fb1];return _0x8c8e3f;},a21_0x4a8f(_0x1c1c2f,_0x27bfb2);}exports[a21_0x5e0a6e(0xd2)]=a21_0x5e0a6e(0xf8),exports['desc']=a21_0x5e0a6e(0xde),exports['builder']=function(_0x19630a){const _0x42625d=a21_0x5e0a6e,_0xe0eafa={};_0xe0eafa[_0x42625d(0xd9)]=_0x42625d(0xba),_0xe0eafa[_0x42625d(0xf6)]='string',_0xe0eafa[_0x42625d(0xb0)]=_0x42625d(0xad),_0xe0eafa[_0x42625d(0xe5)]=_0x42625d(0xc7),_0xe0eafa[_0x42625d(0xb1)]=_0x42625d(0xb8);const _0x4f30a5=_0xe0eafa,_0x57c5d9={};_0x57c5d9[_0x42625d(0xa8)]=_0x4f30a5[_0x42625d(0xd9)],_0x57c5d9[_0x42625d(0xf2)]=_0x4f30a5[_0x42625d(0xf6)];const _0x118c28={};_0x118c28[_0x42625d(0xa8)]=_0x4f30a5[_0x42625d(0xb0)],_0x118c28[_0x42625d(0xf2)]=_0x4f30a5[_0x42625d(0xe5)],_0x118c28[_0x42625d(0xea)]=![];const _0x2195df={};return _0x2195df[_0x42625d(0xb4)]=_0x57c5d9,_0x2195df['skip-tls-cert-verify']=_0x118c28,_0x19630a[_0x42625d(0xc5)](HELP_HEADER_MESSAGE[_0x42625d(0xf9)])[_0x42625d(0xc3)](HELP_FOOTER_MESSAGE)['options'](_0x2195df)[_0x42625d(0xb8)](_0x4f30a5['JPOqA'])[_0x42625d(0xcb)];},exports[a21_0x5e0a6e(0xd6)]=async function(_0x4f2eed){const _0xe2ecfb=a21_0x5e0a6e,_0x100413={'gyaWm':_0xe2ecfb(0xaf),'AFeIt':function(_0x3e424d){return _0x3e424d();},'EnsAF':_0xe2ecfb(0xfa),'azmUQ':function(_0x478f41,_0x491229,_0x319b7d,_0x359c7f,_0x5c7fde,_0x9f87b1,_0x39d9dd){return _0x478f41(_0x491229,_0x319b7d,_0x359c7f,_0x5c7fde,_0x9f87b1,_0x39d9dd);},'UPEDV':'stop-grid-called','nJunA':_0xe2ecfb(0xd0),'HdDXg':'<UsernamePlaceholder>','jLJSl':'<PasswordPlaceholder>','FIwuT':_0xe2ecfb(0xe3),'pAYAL':function(_0x340d9b,_0x561221,_0x2f0508,_0xafc542){return _0x340d9b(_0x561221,_0x2f0508,_0xafc542);},'GkWhi':function(_0x3bb257,_0xe034f6,_0x7b5e41,_0xd29c51,_0x39508b,_0x19362f,_0xaa96bf){return _0x3bb257(_0xe034f6,_0x7b5e41,_0xd29c51,_0x39508b,_0x19362f,_0xaa96bf);},'DqOeM':function(_0x1ae6a8,_0x1f227b,_0x5bb09d){return _0x1ae6a8(_0x1f227b,_0x5bb09d);},'HpvaH':'Grid\x20stoppped.','fkaiw':function(_0x426204,_0x46baee){return _0x426204===_0x46baee;},'BOewC':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','VxdwP':'unauthorised','qMLii':function(_0x4b8209,_0x449022){return _0x4b8209===_0x449022;},'mRmOZ':'invalid-grid-id','zyNtp':'server-error'};let _0x4f407e;try{!_0x4f2eed[_0xe2ecfb(0xce)]&&(logger[_0xe2ecfb(0xa4)](_0x100413['gyaWm']),process[_0xe2ecfb(0xe7)](0x1));!fs[_0xe2ecfb(0xda)](_0x100413[_0xe2ecfb(0xe1)](getCredentialsPath))&&(logger[_0xe2ecfb(0xa4)](_0x100413[_0xe2ecfb(0xef)]),await _0x100413[_0xe2ecfb(0xe0)](sendInstrumentationEvent,_0x4f2eed,_0x100413[_0xe2ecfb(0xa1)],messageTypes[_0xe2ecfb(0xd1)],_0x100413[_0xe2ecfb(0xbb)],null,_0x4f2eed),process[_0xe2ecfb(0xe7)](0x1));logger[_0xe2ecfb(0xdc)]('Stopping\x20grid\x20'+_0x4f2eed[_0xe2ecfb(0xce)]),await _0x100413[_0xe2ecfb(0xe0)](sendInstrumentationEvent,_0x4f2eed,_0x100413['UPEDV'],messageTypes[_0xe2ecfb(0xb3)],null,null,_0x4f2eed);const _0x7a3eda=JSON['parse'](fs['readFileSync'](_0x100413[_0xe2ecfb(0xe1)](getCredentialsPath)));global_registry[_0xe2ecfb(0xe8)]=_0x7a3eda[_0xe2ecfb(0xa5)][_0xe2ecfb(0xc0)],global_registry[_0xe2ecfb(0xd8)]=_0x7a3eda[_0xe2ecfb(0xa5)][_0xe2ecfb(0xbd)];const _0x335bed=WS_ENDPOINT['replace'](_0x100413[_0xe2ecfb(0xeb)],_0x7a3eda[_0xe2ecfb(0xa5)][_0xe2ecfb(0xc0)])[_0xe2ecfb(0xf1)](_0x100413['jLJSl'],_0x7a3eda[_0xe2ecfb(0xa5)][_0xe2ecfb(0xbd)]),_0x5d52fc={};_0x5d52fc[_0xe2ecfb(0xe6)]=ws,_0x5d52fc['connectionTimeout']=0x36ee80,_0x4f407e=new ReconnectingWebSocket(_0x335bed,[],_0x5d52fc),logger[_0xe2ecfb(0xb9)](_0x100413['FIwuT']),webSocketUtils[_0xe2ecfb(0xb2)](_0x4f407e,_0x4f2eed[_0xe2ecfb(0xbe)],_0x4f2eed[_0xe2ecfb(0xbd)]);const [_0x2d99f9,_0x53abc3]=await _0x100413[_0xe2ecfb(0xab)](getGridDetails,_0x7a3eda['Browserstack'][_0xe2ecfb(0xc0)],_0x7a3eda[_0xe2ecfb(0xa5)][_0xe2ecfb(0xbd)],_0x4f2eed[_0xe2ecfb(0xce)]);if(_0x53abc3){const _0x49ed07=_0x53abc3[_0xe2ecfb(0xdc)];global_registry[_0xe2ecfb(0xac)]=_0x49ed07[_0xe2ecfb(0xac)],global_registry[_0xe2ecfb(0xd7)]=_0x49ed07[_0xe2ecfb(0xa9)],global_registry[_0xe2ecfb(0xbc)]=_0x49ed07[_0xe2ecfb(0xbc)];const _0x19e2c4=await _0x100413['GkWhi'](getCloudProviderObject,_0x49ed07['cloudProvider'],_0x49ed07[_0xe2ecfb(0xbc)],_0x49ed07[_0xe2ecfb(0xe9)],_0x4f407e,webSocketUtils,_0x4f2eed),[_0x2a52ab,_0x2c785e,_0x1e5f05,_0x5c0b02,_0x317055,_0x3bdaba]=await _0x100413[_0xe2ecfb(0xbf)](createK8sClient,_0x19e2c4,_0x4f2eed[_0xe2ecfb(0xaa)]);await _0x100413['DqOeM'](scaleDownHubDeployment,_0x2c785e,_0x49ed07['name']),logger[_0xe2ecfb(0xdc)](_0x100413[_0xe2ecfb(0xb7)]),process[_0xe2ecfb(0xe7)](0x0);}_0x100413[_0xe2ecfb(0xf7)](_0x2d99f9['statusCode'],0x191)&&(logger[_0xe2ecfb(0xa4)](_0x100413[_0xe2ecfb(0xb6)]),await _0x100413[_0xe2ecfb(0xe0)](sendInstrumentationEvent,_0x4f2eed,_0x100413[_0xe2ecfb(0xa1)],messageTypes['ERROR'],_0x100413['VxdwP'],null,_0x4f2eed),process[_0xe2ecfb(0xe7)](0x1)),_0x100413[_0xe2ecfb(0xe2)](_0x2d99f9[_0xe2ecfb(0xdf)],0x190)&&(logger[_0xe2ecfb(0xa4)](JSON[_0xe2ecfb(0xc2)](_0x2d99f9[_0xe2ecfb(0xa7)])[_0xe2ecfb(0xae)]),await _0x100413[_0xe2ecfb(0xfb)](sendInstrumentationEvent,_0x4f2eed,_0x100413[_0xe2ecfb(0xa1)],messageTypes[_0xe2ecfb(0xd1)],_0x100413[_0xe2ecfb(0xa3)],null,_0x4f2eed),process['exit'](0x1)),logger['error'](_0xe2ecfb(0xdb)+JSON[_0xe2ecfb(0xa6)](_0x2d99f9)),await _0x100413[_0xe2ecfb(0xfb)](sendInstrumentationEvent,_0x4f2eed,_0x100413[_0xe2ecfb(0xa1)],messageTypes[_0xe2ecfb(0xd1)],_0x100413[_0xe2ecfb(0xcd)],_0x2d99f9,_0x4f2eed),process['exit'](0x1);}catch(_0x1153bf){const _0x25b683=_0xe2ecfb(0xc6)+_0x1153bf+'\x20\x0a'+JSON[_0xe2ecfb(0xa6)](_0x1153bf[_0xe2ecfb(0xc1)])+'\x20';logger[_0xe2ecfb(0xa4)](_0x25b683),process[_0xe2ecfb(0xe7)](0x1);}};
@@ -1 +1 @@
1
- function a22_0x33c3(){const _0x58e923=['CLUSTER_DEP_STACK_NAME','credentials','grid-api.browserstack.com','CLI_RUN_STARTED','start','1402010CoMVRw','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','NULL','high-scale-grid','wss://','MessageDescription','root','aws','DEFAULT_GRID_NAME','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','ALL_SUPPORTED_CLOUD_PROVIDERS','messageTypes','unknown','resourceInfo','SUPPORTED_CLOUD_PROVIDERS','init','connect','forEach','CLUSTER_AUTOSCALER_STACK_NAME','318FMDkLB','REGION','grid.browserstack.com','configure','AG_API_URL','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','BrowserStack','42lDmcyE','CP_CONFIG_FILE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','success','browserstack:managedBy','CLOUD_PROVIDER','stop','31998RUUjuE','grid-profile','464YeuWTx','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','TURBOSCALE_CUSTOM_TAGS','AZURE','split','LOG','BSTACK-ATS-CLUSTER','CLI_RUN_FINISHED','gridProfile','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','list','browserstack:service','REDACTED','UNKNOWN','env','azure','CLI_ARGS_REGEX','CLUSTER_HUB_HA_STACK_NAME','LINK_MESSAGE','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','1077360UOdyjB','create','191097qBgKBi','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','ERROR','Value','high-scale-grid-cluster','push','WS_EVENTS','HELP_HEADER_MESSAGE','[REDACTED]','Key','4228744PadRWV','pre_check','GCP','gcp','BrowserStack-Automate-TurboScale','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','SUCCESS','1919988HreTfs','DASHBOARD_ENDPOINT','HST_CLUSTER_TAGS','WS_ENDPOINT','GRID_URL','pre-check','grid','RAW_ARGS_REGEX','AWS','28216060DRyksR','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','log','BSTACK-ATS-CLUSTER-AUTOSCALER','RESOURCES','BSTACK-ATS-CLUSTER-HUB-HA','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','BS_API_URL','HELP_FOOTER_MESSAGE'];a22_0x33c3=function(){return _0x58e923;};return a22_0x33c3();}const a22_0x48238c=a22_0x53d5;(function(_0x3f007f,_0x4f99b5){const _0x50e8b5=a22_0x53d5,_0x2db89c=_0x3f007f();while(!![]){try{const _0x35f576=-parseInt(_0x50e8b5(0xdd))/0x1+-parseInt(_0x50e8b5(0xf0))/0x2*(-parseInt(_0x50e8b5(0xfe))/0x3)+parseInt(_0x50e8b5(0xbf))/0x4+-parseInt(_0x50e8b5(0xb3))/0x5*(-parseInt(_0x50e8b5(0xf7))/0x6)+-parseInt(_0x50e8b5(0xc6))/0x7+parseInt(_0x50e8b5(0x100))/0x8*(parseInt(_0x50e8b5(0xb5))/0x9)+-parseInt(_0x50e8b5(0xcf))/0xa;if(_0x35f576===_0x4f99b5)break;else _0x2db89c['push'](_0x2db89c['shift']());}catch(_0x561cba){_0x2db89c['push'](_0x2db89c['shift']());}}}(a22_0x33c3,0xf2eb6),require('dotenv')['config'](),exports[a22_0x48238c(0xc7)]=process[a22_0x48238c(0xad)][a22_0x48238c(0xc7)]||a22_0x48238c(0xf2),exports['BS_API_URL']=process[a22_0x48238c(0xad)][a22_0x48238c(0xd6)]||'api.browserstack.com',exports[a22_0x48238c(0xf4)]=process['env'][a22_0x48238c(0xf4)]||a22_0x48238c(0xda),exports[a22_0x48238c(0xc9)]=a22_0x48238c(0xe1)+this[a22_0x48238c(0xf4)]+a22_0x48238c(0xe6),exports[a22_0x48238c(0xf8)]=a22_0x48238c(0xd9),exports['IAM_USER_NAME']='BrowserStackIAMUser',exports[a22_0x48238c(0xe5)]=a22_0x48238c(0xe0),exports[a22_0x48238c(0xce)]=a22_0x48238c(0xe4),exports[a22_0x48238c(0xd8)]=a22_0x48238c(0x106),exports[a22_0x48238c(0xef)]=a22_0x48238c(0xd2),exports[a22_0x48238c(0xb0)]=a22_0x48238c(0xd4),exports['TURBOSCALE_DEPLOYMENT']='browserstack-turboscale-grid',exports[a22_0x48238c(0x103)]=a22_0x48238c(0xae),exports[a22_0x48238c(0xc1)]=a22_0x48238c(0xc2),exports[a22_0x48238c(0xe7)]=[this[a22_0x48238c(0xce)],this[a22_0x48238c(0x103)],this[a22_0x48238c(0xc1)]]);function a22_0x53d5(_0x2f351c,_0x27eabb){const _0x33c3a2=a22_0x33c3();return a22_0x53d5=function(_0x53d523,_0x336fb3){_0x53d523=_0x53d523-0xa8;let _0x57f98d=_0x33c3a2[_0x53d523];return _0x57f98d;},a22_0x53d5(_0x2f351c,_0x27eabb);}const a22_0x319508={};a22_0x319508[a22_0x48238c(0xbe)]=a22_0x48238c(0xfb),a22_0x319508[a22_0x48238c(0xb8)]=a22_0x48238c(0xf6);const a22_0x366cbd={};a22_0x366cbd[a22_0x48238c(0xbe)]=a22_0x48238c(0xaa),a22_0x366cbd[a22_0x48238c(0xb8)]=a22_0x48238c(0xc3);const common_hst_tags_list=[a22_0x319508,a22_0x366cbd];if(process['env']['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x48238c(0xad)][a22_0x48238c(0x102)][a22_0x48238c(0x104)](',');parsedTags[a22_0x48238c(0xee)](_0x2e173c=>{const _0x34bae3=a22_0x48238c,_0x53f5e0=_0x2e173c['split'](':'),_0x4481b9={};_0x4481b9[_0x34bae3(0xbe)]=_0x53f5e0[0x0],_0x4481b9[_0x34bae3(0xb8)]=_0x53f5e0[0x1],common_hst_tags_list[_0x34bae3(0xba)](_0x4481b9);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x274505={};a22_0x274505[a22_0x48238c(0xfb)]=a22_0x48238c(0xf6),a22_0x274505['browserstack:service']=a22_0x48238c(0xc3),exports[a22_0x48238c(0xc8)]=a22_0x274505,exports[a22_0x48238c(0xeb)]=[this[a22_0x48238c(0xce)]];const a22_0x221878={};a22_0x221878[a22_0x48238c(0x105)]=a22_0x48238c(0xd1),a22_0x221878[a22_0x48238c(0xd3)]=a22_0x48238c(0xea),a22_0x221878[a22_0x48238c(0xca)]='gridUrl',a22_0x221878[a22_0x48238c(0xdb)]='cliRunStarted',a22_0x221878[a22_0x48238c(0x107)]='cliRunFinished',exports[a22_0x48238c(0xbb)]=a22_0x221878,exports['global_registry']={},exports[a22_0x48238c(0xb1)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x3bd536={};a22_0x3bd536[a22_0x48238c(0xe3)]=a22_0x48238c(0xd0)+this[a22_0x48238c(0xb1)],a22_0x3bd536[a22_0x48238c(0xec)]=a22_0x48238c(0xb6)+this[a22_0x48238c(0xb1)],a22_0x3bd536[a22_0x48238c(0xf3)]=a22_0x48238c(0xb2)+this['LINK_MESSAGE'],a22_0x3bd536[a22_0x48238c(0xb4)]=a22_0x48238c(0xa8)+this['LINK_MESSAGE'],a22_0x3bd536[a22_0x48238c(0xa9)]={},a22_0x3bd536['delete']='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x48238c(0xb1)],a22_0x3bd536[a22_0x48238c(0xed)]=a22_0x48238c(0x101)+this[a22_0x48238c(0xb1)],a22_0x3bd536[a22_0x48238c(0xdc)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x3bd536[a22_0x48238c(0xfd)]=a22_0x48238c(0xf5)+this[a22_0x48238c(0xb1)],a22_0x3bd536[a22_0x48238c(0xc0)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this[a22_0x48238c(0xb1)],a22_0x3bd536[a22_0x48238c(0xa9)][a22_0x48238c(0xe3)]=a22_0x48238c(0xc4)+this[a22_0x48238c(0xb1)],a22_0x3bd536[a22_0x48238c(0xa9)][a22_0x48238c(0xcc)]=a22_0x48238c(0xf9)+this['LINK_MESSAGE'],a22_0x3bd536[a22_0x48238c(0xa9)][a22_0x48238c(0x108)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x48238c(0xb1)],exports[a22_0x48238c(0xbc)]=a22_0x3bd536,exports[a22_0x48238c(0xd7)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x7aa48a={};a22_0x7aa48a[a22_0x48238c(0xc5)]=a22_0x48238c(0xfa),a22_0x7aa48a[a22_0x48238c(0xb7)]='error',a22_0x7aa48a['INFO']='info',a22_0x7aa48a['WARNING']='warning',a22_0x7aa48a[a22_0x48238c(0xac)]=a22_0x48238c(0xe9),a22_0x7aa48a[a22_0x48238c(0xdf)]=null,exports[a22_0x48238c(0xe8)]=a22_0x7aa48a,exports[a22_0x48238c(0xaf)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x48238c(0xcd)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x48238c(0xab)]=a22_0x48238c(0xbd);const a22_0x130dbe={};a22_0x130dbe[a22_0x48238c(0xff)]=a22_0x48238c(0xde);const a22_0x24a776={};a22_0x24a776[a22_0x48238c(0xcb)]=a22_0x130dbe,exports[a22_0x48238c(0xe2)]=a22_0x24a776,exports['TRIAL_GRID_URL']=a22_0x48238c(0xd5);const a22_0x4e7c2b={};a22_0x4e7c2b['CLUSTER']=a22_0x48238c(0xb9),a22_0x4e7c2b[a22_0x48238c(0xfc)]=a22_0x48238c(0xe4),a22_0x4e7c2b[a22_0x48238c(0xf1)]='us-east-1',exports['DEFAULT_CLUSTER_DETAILS']=a22_0x4e7c2b;
1
+ function a22_0x25c1(_0x5503d9,_0x3740e7){const _0x3bbcc3=a22_0x3bbc();return a22_0x25c1=function(_0x25c177,_0x40f7e7){_0x25c177=_0x25c177-0x1df;let _0x52934d=_0x3bbcc3[_0x25c177];return _0x52934d;},a22_0x25c1(_0x5503d9,_0x3740e7);}const a22_0x341c82=a22_0x25c1;(function(_0x55e9f8,_0x17d1d5){const _0x1464a2=a22_0x25c1,_0x33eafe=_0x55e9f8();while(!![]){try{const _0xe2489b=parseInt(_0x1464a2(0x1e1))/0x1+parseInt(_0x1464a2(0x20f))/0x2*(parseInt(_0x1464a2(0x216))/0x3)+parseInt(_0x1464a2(0x233))/0x4+parseInt(_0x1464a2(0x228))/0x5+-parseInt(_0x1464a2(0x1f4))/0x6*(parseInt(_0x1464a2(0x21b))/0x7)+-parseInt(_0x1464a2(0x201))/0x8*(parseInt(_0x1464a2(0x235))/0x9)+parseInt(_0x1464a2(0x20b))/0xa;if(_0xe2489b===_0x17d1d5)break;else _0x33eafe['push'](_0x33eafe['shift']());}catch(_0x3f1a98){_0x33eafe['push'](_0x33eafe['shift']());}}}(a22_0x3bbc,0xcf4ff),require('dotenv')[a22_0x341c82(0x22f)](),exports[a22_0x341c82(0x202)]=process[a22_0x341c82(0x22e)][a22_0x341c82(0x202)]||a22_0x341c82(0x215),exports['BS_API_URL']=process['env']['BS_API_URL']||a22_0x341c82(0x1fd),exports[a22_0x341c82(0x1df)]=process[a22_0x341c82(0x22e)][a22_0x341c82(0x1df)]||a22_0x341c82(0x1e9),exports[a22_0x341c82(0x227)]=a22_0x341c82(0x206)+this['AG_API_URL']+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x341c82(0x243)]=a22_0x341c82(0x222),exports[a22_0x341c82(0x1e7)]='BrowserStackIAMUser',exports[a22_0x341c82(0x223)]=a22_0x341c82(0x23c),exports[a22_0x341c82(0x23f)]='aws',exports[a22_0x341c82(0x22c)]=a22_0x341c82(0x242),exports[a22_0x341c82(0x200)]=a22_0x341c82(0x1fb),exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x341c82(0x1fa),exports[a22_0x341c82(0x209)]=a22_0x341c82(0x21e),exports[a22_0x341c82(0x1f3)]=a22_0x341c82(0x240),exports[a22_0x341c82(0x20e)]=a22_0x341c82(0x23b),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x341c82(0x23f)],this['AZURE'],this[a22_0x341c82(0x20e)]]);const a22_0x174c86={};a22_0x174c86[a22_0x341c82(0x22d)]=a22_0x341c82(0x226),a22_0x174c86[a22_0x341c82(0x229)]=a22_0x341c82(0x1f0);const a22_0x485ec9={};a22_0x485ec9['Key']='browserstack:service',a22_0x485ec9[a22_0x341c82(0x229)]=a22_0x341c82(0x224);const common_hst_tags_list=[a22_0x174c86,a22_0x485ec9];if(process[a22_0x341c82(0x22e)]['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x341c82(0x22e)][a22_0x341c82(0x1fc)][a22_0x341c82(0x1f1)](',');parsedTags[a22_0x341c82(0x1eb)](_0x2701ac=>{const _0x4d1a43=a22_0x341c82,_0x16e996=_0x2701ac['split'](':'),_0x1cd5b0={};_0x1cd5b0[_0x4d1a43(0x22d)]=_0x16e996[0x0],_0x1cd5b0[_0x4d1a43(0x229)]=_0x16e996[0x1],common_hst_tags_list[_0x4d1a43(0x1e6)](_0x1cd5b0);});}exports[a22_0x341c82(0x22a)]=common_hst_tags_list;const a22_0x104f6e={};a22_0x104f6e[a22_0x341c82(0x226)]=a22_0x341c82(0x1f0),a22_0x104f6e[a22_0x341c82(0x203)]=a22_0x341c82(0x224),exports['HST_CLUSTER_TAGS']=a22_0x104f6e,exports[a22_0x341c82(0x1ff)]=[this['AWS']];const a22_0x14ffbc={};a22_0x14ffbc[a22_0x341c82(0x225)]=a22_0x341c82(0x1e8),a22_0x14ffbc[a22_0x341c82(0x21a)]=a22_0x341c82(0x1f2),a22_0x14ffbc[a22_0x341c82(0x1ea)]=a22_0x341c82(0x217),a22_0x14ffbc[a22_0x341c82(0x1ee)]=a22_0x341c82(0x246),a22_0x14ffbc['CLI_RUN_FINISHED']='cliRunFinished',exports[a22_0x341c82(0x1f6)]=a22_0x14ffbc,exports['global_registry']={},exports[a22_0x341c82(0x230)]=a22_0x341c82(0x239);function a22_0x3bbc(){const _0x1b6cf7=['DASHBOARD_ENDPOINT','browserstack:service','[REDACTED]','CLOUD_PROVIDER','wss://','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','unknown','TURBOSCALE_DEPLOYMENT','init','924220sjKRVf','CLUSTER','CLI_ARGS_REGEX','GCP','954pEJgjz','warning','TRIAL_GRID_URL','HELP_HEADER_MESSAGE','grid-profile','pre-check','grid.browserstack.com','7845qKByMj','gridUrl','delete','ERROR','RESOURCES','4682111TserYI','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','success','browserstack-turboscale-grid','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','messageTypes','INFO','credentials','DEFAULT_GRID_NAME','BrowserStack-Automate-TurboScale','LOG','browserstack:managedBy','WS_ENDPOINT','1910405HlJHBN','Value','COMMON_HST_TAGS','aws','CLUSTER_DEP_STACK_NAME','Key','env','config','LINK_MESSAGE','REDACTED','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','444024ecKCuk','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','45qROeln','NULL','root','us-east-1','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','MessageDescription','gcp','high-scale-grid','RAW_ARGS_REGEX','WARNING','AWS','azure','REGION','BSTACK-ATS-CLUSTER','CP_CONFIG_FILE','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','error','cliRunStarted','create','AG_API_URL','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','1219575Qksnmr','pre_check','configure','stop','list','push','IAM_USER_NAME','log','grid-api.browserstack.com','GRID_URL','forEach','gridProfile','start','CLI_RUN_STARTED','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','BrowserStack','split','resourceInfo','AZURE','6fvznAB','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','WS_EVENTS','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','BSTACK-ATS-CLUSTER-HUB-HA','BSTACK-ATS-CLUSTER-AUTOSCALER','TURBOSCALE_CUSTOM_TAGS','api.browserstack.com','HELP_FOOTER_MESSAGE','SUPPORTED_CLOUD_PROVIDERS','CLUSTER_AUTOSCALER_STACK_NAME','2455064PMWxiX'];a22_0x3bbc=function(){return _0x1b6cf7;};return a22_0x3bbc();}const a22_0x257067={};a22_0x257067[a22_0x341c82(0x237)]=a22_0x341c82(0x232)+this[a22_0x341c82(0x230)],a22_0x257067[a22_0x341c82(0x20a)]=a22_0x341c82(0x1e0)+this[a22_0x341c82(0x230)],a22_0x257067[a22_0x341c82(0x1e3)]=a22_0x341c82(0x244)+this['LINK_MESSAGE'],a22_0x257067[a22_0x341c82(0x247)]=a22_0x341c82(0x21f)+this[a22_0x341c82(0x230)],a22_0x257067[a22_0x341c82(0x1e5)]={},a22_0x257067[a22_0x341c82(0x218)]=a22_0x341c82(0x1f8)+this[a22_0x341c82(0x230)],a22_0x257067['connect']=a22_0x341c82(0x234)+this[a22_0x341c82(0x230)],a22_0x257067[a22_0x341c82(0x1ed)]=a22_0x341c82(0x1ef)+this[a22_0x341c82(0x230)],a22_0x257067[a22_0x341c82(0x1e4)]=a22_0x341c82(0x1f9)+this['LINK_MESSAGE'],a22_0x257067[a22_0x341c82(0x1e2)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this[a22_0x341c82(0x230)],a22_0x257067[a22_0x341c82(0x1e5)][a22_0x341c82(0x237)]=a22_0x341c82(0x1f7)+this[a22_0x341c82(0x230)],a22_0x257067[a22_0x341c82(0x1e5)]['grid']=a22_0x341c82(0x1f5)+this[a22_0x341c82(0x230)],a22_0x257067[a22_0x341c82(0x1e5)][a22_0x341c82(0x1ec)]=a22_0x341c82(0x207)+this[a22_0x341c82(0x230)],exports[a22_0x341c82(0x212)]=a22_0x257067,exports[a22_0x341c82(0x1fe)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x4d5eb6={};a22_0x4d5eb6['SUCCESS']=a22_0x341c82(0x21d),a22_0x4d5eb6[a22_0x341c82(0x219)]=a22_0x341c82(0x245),a22_0x4d5eb6[a22_0x341c82(0x221)]='info',a22_0x4d5eb6[a22_0x341c82(0x23e)]=a22_0x341c82(0x210),a22_0x4d5eb6['UNKNOWN']=a22_0x341c82(0x208),a22_0x4d5eb6[a22_0x341c82(0x236)]=null,exports[a22_0x341c82(0x220)]=a22_0x4d5eb6,exports[a22_0x341c82(0x20d)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x341c82(0x23d)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x341c82(0x231)]=a22_0x341c82(0x204);const a22_0xdde16d={};a22_0xdde16d[a22_0x341c82(0x213)]=a22_0x341c82(0x21c);const a22_0xc2949d={};a22_0xc2949d[a22_0x341c82(0x214)]=a22_0xdde16d,exports[a22_0x341c82(0x23a)]=a22_0xc2949d,exports[a22_0x341c82(0x211)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x5cd652={};a22_0x5cd652[a22_0x341c82(0x20c)]='high-scale-grid-cluster',a22_0x5cd652[a22_0x341c82(0x205)]=a22_0x341c82(0x22b),a22_0x5cd652[a22_0x341c82(0x241)]=a22_0x341c82(0x238),exports['DEFAULT_CLUSTER_DETAILS']=a22_0x5cd652;
@@ -1 +1 @@
1
- const a23_0x47c8f4=a23_0xd64c;(function(_0x2638bb,_0x3167dd){const _0x4b28af=a23_0xd64c,_0x3d490d=_0x2638bb();while(!![]){try{const _0x37476b=parseInt(_0x4b28af(0x1cf))/0x1+parseInt(_0x4b28af(0x1cd))/0x2+-parseInt(_0x4b28af(0x1d6))/0x3+parseInt(_0x4b28af(0x1c2))/0x4*(-parseInt(_0x4b28af(0x1ce))/0x5)+-parseInt(_0x4b28af(0x1c0))/0x6*(-parseInt(_0x4b28af(0x1ca))/0x7)+parseInt(_0x4b28af(0x1d4))/0x8+-parseInt(_0x4b28af(0x1d8))/0x9*(parseInt(_0x4b28af(0x1d5))/0xa);if(_0x37476b===_0x3167dd)break;else _0x3d490d['push'](_0x3d490d['shift']());}catch(_0x51fcf8){_0x3d490d['push'](_0x3d490d['shift']());}}}(a23_0x471c,0x36427));const winston=require(a23_0x47c8f4(0x1cc)),fs=require('fs'),path=require(a23_0x47c8f4(0x1c3)),logDir='log';!fs[a23_0x47c8f4(0x1c7)](logDir)&&fs[a23_0x47c8f4(0x1bc)](logDir);function a23_0x471c(){const _0x4d76d3=['396091pPEWKr','debug','timestamp','File','transports','1654032fetPHi','190PErFLv','17907LXRkAI','createLogger','210051PuESIA','format','message','mkdirSync','combine','level','printf','78DuErWI','join','4vxrEMW','path','\x20-\x20','usage.log','YYYY-MM-DD\x20HH:mm:ss','existsSync','colorize','console.info','124593czYgPF','logger','winston','216468LguNhw','1354045VLwXcd'];a23_0x471c=function(){return _0x4d76d3;};return a23_0x471c();}const a23_0x3bd6b4={};function a23_0xd64c(_0x3ceaa6,_0x490e5c){const _0x471ccb=a23_0x471c();return a23_0xd64c=function(_0xd64c26,_0x36ad23){_0xd64c26=_0xd64c26-0x1bc;let _0x162016=_0x471ccb[_0xd64c26];return _0x162016;},a23_0xd64c(_0x3ceaa6,_0x490e5c);}a23_0x3bd6b4['format']=a23_0x47c8f4(0x1c6);const a23_0x10e5c6={};a23_0x10e5c6['level']=!![];const a23_0x5d399c={};a23_0x5d399c['name']=a23_0x47c8f4(0x1c9),exports[a23_0x47c8f4(0x1cb)]=new winston[(a23_0x47c8f4(0x1d7))]({'format':winston[a23_0x47c8f4(0x1d9)][a23_0x47c8f4(0x1bd)](winston[a23_0x47c8f4(0x1d9)][a23_0x47c8f4(0x1d1)](a23_0x3bd6b4),winston[a23_0x47c8f4(0x1d9)][a23_0x47c8f4(0x1c8)](a23_0x10e5c6),winston[a23_0x47c8f4(0x1d9)][a23_0x47c8f4(0x1bf)](_0x212d0a=>_0x212d0a[a23_0x47c8f4(0x1d1)]+a23_0x47c8f4(0x1c4)+_0x212d0a[a23_0x47c8f4(0x1be)]+':\x20'+_0x212d0a[a23_0x47c8f4(0x1da)])),'transports':[new winston[(a23_0x47c8f4(0x1d3))]['Console'](a23_0x5d399c),new winston['transports'][(a23_0x47c8f4(0x1d2))]({'filename':path['join'](logDir,'events.log'),'level':a23_0x47c8f4(0x1d0)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x47c8f4(0x1d3))][(a23_0x47c8f4(0x1d2))]({'filename':path[a23_0x47c8f4(0x1c1)](logDir,a23_0x47c8f4(0x1c5)),'level':a23_0x47c8f4(0x1d0)})]};exports['fileLogger']=new winston[(a23_0x47c8f4(0x1d7))](winstonFileLoggerParams);
1
+ const a23_0x4b1c78=a23_0x4ece;(function(_0x3123cb,_0x27a266){const _0x89882f=a23_0x4ece,_0x205f68=_0x3123cb();while(!![]){try{const _0x3813d0=-parseInt(_0x89882f(0xfa))/0x1+-parseInt(_0x89882f(0x100))/0x2+-parseInt(_0x89882f(0xf9))/0x3+parseInt(_0x89882f(0x10d))/0x4*(-parseInt(_0x89882f(0x110))/0x5)+parseInt(_0x89882f(0x111))/0x6+parseInt(_0x89882f(0x108))/0x7+-parseInt(_0x89882f(0x10b))/0x8*(-parseInt(_0x89882f(0x118))/0x9);if(_0x3813d0===_0x27a266)break;else _0x205f68['push'](_0x205f68['shift']());}catch(_0x4733d2){_0x205f68['push'](_0x205f68['shift']());}}}(a23_0x1e50,0xc2d30));function a23_0x1e50(){const _0x1a6408=['mkdirSync','YYYY-MM-DD\x20HH:mm:ss','transports','5993190OOJlqT','timestamp','format','5408FdvXpw','name','4ccCgjF','File','events.log','2141270iLlbSL','737046aYENkd','usage.log','path','\x20-\x20','log','existsSync','debug','25173WtJSRK','823029CyiNAq','37933tLRfdE','createLogger','colorize','winston','combine','join','2662506BWSRFn','logger','level','console.info','message'];a23_0x1e50=function(){return _0x1a6408;};return a23_0x1e50();}const winston=require(a23_0x4b1c78(0xfd)),fs=require('fs'),path=require(a23_0x4b1c78(0x113)),logDir=a23_0x4b1c78(0x115);!fs[a23_0x4b1c78(0x116)](logDir)&&fs[a23_0x4b1c78(0x105)](logDir);function a23_0x4ece(_0x2911c1,_0x5c0ab5){const _0x1e503a=a23_0x1e50();return a23_0x4ece=function(_0x4ecef7,_0x39e113){_0x4ecef7=_0x4ecef7-0xf9;let _0x465df0=_0x1e503a[_0x4ecef7];return _0x465df0;},a23_0x4ece(_0x2911c1,_0x5c0ab5);}const a23_0x110c45={};a23_0x110c45['format']=a23_0x4b1c78(0x106);const a23_0x372a7c={};a23_0x372a7c[a23_0x4b1c78(0x102)]=!![];const a23_0x225ceb={};a23_0x225ceb[a23_0x4b1c78(0x10c)]=a23_0x4b1c78(0x103),exports[a23_0x4b1c78(0x101)]=new winston[(a23_0x4b1c78(0xfb))]({'format':winston['format'][a23_0x4b1c78(0xfe)](winston['format'][a23_0x4b1c78(0x109)](a23_0x110c45),winston[a23_0x4b1c78(0x10a)][a23_0x4b1c78(0xfc)](a23_0x372a7c),winston[a23_0x4b1c78(0x10a)]['printf'](_0x25505e=>_0x25505e[a23_0x4b1c78(0x109)]+a23_0x4b1c78(0x114)+_0x25505e[a23_0x4b1c78(0x102)]+':\x20'+_0x25505e[a23_0x4b1c78(0x104)])),'transports':[new winston[(a23_0x4b1c78(0x107))]['Console'](a23_0x225ceb),new winston[(a23_0x4b1c78(0x107))][(a23_0x4b1c78(0x10e))]({'filename':path[a23_0x4b1c78(0xff)](logDir,a23_0x4b1c78(0x10f)),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x4b1c78(0x107))]['File']({'filename':path[a23_0x4b1c78(0xff)](logDir,a23_0x4b1c78(0x112)),'level':a23_0x4b1c78(0x117)})]};exports['fileLogger']=new winston[(a23_0x4b1c78(0xfb))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x257b5b=a24_0x27a7;(function(_0x5031b6,_0x105a81){const _0x24d04c=a24_0x27a7,_0x3353b9=_0x5031b6();while(!![]){try{const _0x7489ba=-parseInt(_0x24d04c(0x1b6))/0x1*(-parseInt(_0x24d04c(0x1ad))/0x2)+-parseInt(_0x24d04c(0x1be))/0x3+parseInt(_0x24d04c(0x1ba))/0x4+-parseInt(_0x24d04c(0x1af))/0x5+-parseInt(_0x24d04c(0x1bb))/0x6+-parseInt(_0x24d04c(0x1ae))/0x7*(-parseInt(_0x24d04c(0x1b7))/0x8)+-parseInt(_0x24d04c(0x1b1))/0x9*(-parseInt(_0x24d04c(0x1b2))/0xa);if(_0x7489ba===_0x105a81)break;else _0x3353b9['push'](_0x3353b9['shift']());}catch(_0x2406fb){_0x3353b9['push'](_0x3353b9['shift']());}}}(a24_0x5cba,0xa8898));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x257b5b(0x1bc));process[a24_0x257b5b(0x1b4)]['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function a24_0x27a7(_0x3b1bf3,_0x411bd3){const _0x5cba54=a24_0x5cba();return a24_0x27a7=function(_0x27a7bd,_0xfd4fd8){_0x27a7bd=_0x27a7bd-0x1ad;let _0x17cfb8=_0x5cba54[_0x27a7bd];return _0x17cfb8;},a24_0x27a7(_0x3b1bf3,_0x411bd3);}function run(_0x7be8a8){const _0x3990ef=a24_0x257b5b,_0x3658a7={};_0x3658a7[_0x3990ef(0x1b0)]='commands',_0x3658a7['YDsFr']=_0x3990ef(0x1b3);const _0x440b2e=_0x3658a7;_0x7be8a8['usage'](HELP_HEADER_MESSAGE[_0x3990ef(0x1b8)])['commandDir'](_0x440b2e[_0x3990ef(0x1b0)])[_0x3990ef(0x1bd)]()[_0x3990ef(0x1b3)](_0x440b2e[_0x3990ef(0x1b5)])[_0x3990ef(0x1b9)](HELP_FOOTER_MESSAGE);}function a24_0x5cba(){const _0xb78b42=['5883845tXvIJo','rnnbA','2266794tEubOL','40FzZbEj','help','env','YDsFr','1461isvJsS','1799816CMaGCb','root','epilogue','4127480oJHAAP','5066052qlbVTj','./config/constants','demandCommand','424863KaFakm','190hTpipv','21rcUceh'];a24_0x5cba=function(){return _0xb78b42;};return a24_0x5cba();}module['exports']=run;
2
+ 'use strict';const a24_0x52ab2d=a24_0x9d55;function a24_0x9d55(_0x2b4a2b,_0x2f202e){const _0x5168b1=a24_0x5168();return a24_0x9d55=function(_0x9d55ae,_0x56119a){_0x9d55ae=_0x9d55ae-0x14d;let _0x246004=_0x5168b1[_0x9d55ae];return _0x246004;},a24_0x9d55(_0x2b4a2b,_0x2f202e);}(function(_0x9b9404,_0x5eb0c6){const _0x17d6af=a24_0x9d55,_0x34dd50=_0x9b9404();while(!![]){try{const _0x42cbbc=parseInt(_0x17d6af(0x154))/0x1+-parseInt(_0x17d6af(0x156))/0x2*(parseInt(_0x17d6af(0x15f))/0x3)+parseInt(_0x17d6af(0x150))/0x4*(-parseInt(_0x17d6af(0x155))/0x5)+parseInt(_0x17d6af(0x152))/0x6+parseInt(_0x17d6af(0x15b))/0x7+parseInt(_0x17d6af(0x158))/0x8*(parseInt(_0x17d6af(0x159))/0x9)+parseInt(_0x17d6af(0x157))/0xa;if(_0x42cbbc===_0x5eb0c6)break;else _0x34dd50['push'](_0x34dd50['shift']());}catch(_0x570446){_0x34dd50['push'](_0x34dd50['shift']());}}}(a24_0x5168,0x4f888));function a24_0x5168(){const _0x521586=['429262moIbvM','32400WgnCog','1448hGRIQc','24858oAZAZb','srBZE','889777cyJmig','./config/constants','help','epilogue','6ohTQJS','env','exports','usage','root','commandDir','406404mhzRuL','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','435474jjHDVN','pGuqS','356981tHTiTn','15UADJPH'];a24_0x5168=function(){return _0x521586;};return a24_0x5168();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x52ab2d(0x15c));process[a24_0x52ab2d(0x160)][a24_0x52ab2d(0x151)]=0x1;function run(_0x2a77cf){const _0x33da96=a24_0x52ab2d,_0x11d4ca={};_0x11d4ca[_0x33da96(0x15a)]='commands',_0x11d4ca[_0x33da96(0x153)]=_0x33da96(0x15d);const _0x178f66=_0x11d4ca;_0x2a77cf[_0x33da96(0x14d)](HELP_HEADER_MESSAGE[_0x33da96(0x14e)])[_0x33da96(0x14f)](_0x178f66[_0x33da96(0x15a)])['demandCommand']()[_0x33da96(0x15d)](_0x178f66['pGuqS'])[_0x33da96(0x15e)](HELP_FOOTER_MESSAGE);}module[a24_0x52ab2d(0x161)]=run;