browserstack-node-sdk 1.34.56 → 1.34.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  60. package/src/bin/jest/jest.setup.js +1 -1
  61. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  62. package/src/bin/jest/test-observability/helper.js +1 -1
  63. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  64. package/src/bin/jest/test-observability/test-details.js +1 -1
  65. package/src/bin/jest/test_before.setup.js +1 -1
  66. package/src/bin/launcher/launcher.js +1 -1
  67. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  68. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  69. package/src/bin/mocha/command.js +1 -1
  70. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  71. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  72. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  73. package/src/bin/mocha/test.setup.js +1 -1
  74. package/src/bin/nightwatch/command.js +1 -1
  75. package/src/bin/playwright/accessibility-helper.js +1 -1
  76. package/src/bin/playwright/command.js +1 -1
  77. package/src/bin/playwright/globalSetup.js +1 -1
  78. package/src/bin/playwright/mock-process.js +1 -1
  79. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  80. package/src/bin/playwright/patches.js +1 -1
  81. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  82. package/src/bin/playwright/reporter/reporter.js +1 -1
  83. package/src/bin/playwright/reporter/test-details.js +1 -1
  84. package/src/bin/playwright/sessionDetails.js +1 -1
  85. package/src/bin/runner.js +1 -1
  86. package/src/bin/setup.js +1 -1
  87. package/src/bin/test-runner/index.js +1 -1
  88. package/src/bin/test-runner/runTest.js +1 -1
  89. package/src/bin/test-runner/testWorker.js +1 -1
  90. package/src/bin/utils/constants.js +1 -1
  91. package/src/bin/utils/log4jsAppender.js +1 -1
  92. package/src/bin/utils/logPatcher.js +1 -1
  93. package/src/bin/utils/logReportingAPI.js +1 -1
  94. package/src/bin/vanilla-js/command.js +1 -1
  95. package/src/browserStackSdk.js +1 -1
  96. package/src/helpers/BrowserStackSetup.js +1 -1
  97. package/src/helpers/accessibility-automation/constants.js +1 -1
  98. package/src/helpers/accessibility-automation/helper.js +1 -1
  99. package/src/helpers/accessibility-automation/scripts.js +1 -1
  100. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  101. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  102. package/src/helpers/ats/constants.js +1 -1
  103. package/src/helpers/ats/helper.js +1 -1
  104. package/src/helpers/capsMapping.js +1 -1
  105. package/src/helpers/central-scanner/constants.js +1 -1
  106. package/src/helpers/central-scanner/helpers.js +1 -1
  107. package/src/helpers/globals.js +1 -1
  108. package/src/helpers/helper.js +1 -1
  109. package/src/helpers/logger.js +1 -1
  110. package/src/helpers/metadata.js +1 -1
  111. package/src/helpers/patchHelper.js +1 -1
  112. package/src/helpers/patchHelpers.js +1 -1
  113. package/src/helpers/percy/Percy.js +1 -1
  114. package/src/helpers/percy/PercyBinary.js +1 -1
  115. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  116. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  117. package/src/helpers/percy/PercySDK.js +1 -1
  118. package/src/helpers/percy/index.js +1 -1
  119. package/src/helpers/percy/utils.js +1 -1
  120. package/src/helpers/performance/constants.js +1 -1
  121. package/src/helpers/performance/performance-tester.js +1 -1
  122. package/src/helpers/processHelper.js +1 -1
  123. package/src/helpers/request-spy.js +1 -1
  124. package/src/helpers/setKeepAlive.js +1 -1
  125. package/src/helpers/test-observability/constants.js +1 -1
  126. package/src/helpers/test-observability/error-handler.js +1 -1
  127. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  128. package/src/helpers/test-observability/sessionHandler.js +1 -1
  129. package/src/helpers/test-observability/utils.js +1 -1
  130. package/src/helpers/testhub/constants.js +1 -1
  131. package/src/helpers/testhub/testhubHandler.js +1 -1
  132. package/src/helpers/testhub/utils.js +1 -1
  133. package/src/helpers/timeoutPromise.js +1 -1
  134. package/src/helpers/utilities.js +1 -1
  135. package/src/helpers/w3cMapping.js +1 -1
  136. package/src/hubAllocationMethods.js +1 -1
  137. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x3c4628=a15_0x38b5;function a15_0x38b5(_0x150c07,_0x5e0a3f){const _0x5f3068=a15_0x5f30();return a15_0x38b5=function(_0x38b5a6,_0x4af38b){_0x38b5a6=_0x38b5a6-0x107;let _0x37808f=_0x5f3068[_0x38b5a6];return _0x37808f;},a15_0x38b5(_0x150c07,_0x5e0a3f);}function a15_0x5f30(){const _0x1537a6=['Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','type','all-grids','running','cluster-name','231YhTkYF','ERROR','unauthorised','requestId','status','/packages/cli/get-grids','parse','usage','ZjGpl','Vhuua','list','98997ychpTS','Browserstack','username','rZers','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','forEach','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','YoGmX','yAHMx','table','iuMhS','clusterName','list-grids-called','EPxzi','SlNoU','tHOAT','log','grid-id','LOGtw','27yfNgrd','itrbT','../../utils/utilityMethods','ayyRb','grid-name','error','CJmgE','56QgdDTv','UvvdS','got','273176awYnkj','queued','description','guBNa','command','body','74164fMFFDn','GET','epilogue','NsjrV','2190PNlLQK','kLgoI','exit','https://','builder','help','CxbDJ','name','VUShu','1xpSXaC','WICgJ','allGrids','stringify','Jqhpt','MzgFw','existsSync','PhtBT','statusCode','argv','\x0aFound\x20the\x20following\x20grids:\x0a','bstackAccesskey','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','SFXUa','334245MNcGQW','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','160458RsKpDp','INFO','193220GvExPr','init-not-called','ipJpK','Fpqhf','password','Failed\x20to\x20list\x20resources!\x20Error:\x20','AYHRu','handler','push'];a15_0x5f30=function(){return _0x1537a6;};return a15_0x5f30();}(function(_0xb3a1d0,_0x38be4f){const _0x1f352e=a15_0x38b5,_0x20b329=_0xb3a1d0();while(!![]){try{const _0x2981fa=parseInt(_0x1f352e(0x128))/0x1*(parseInt(_0x1f352e(0x11b))/0x2)+-parseInt(_0x1f352e(0x153))/0x3+-parseInt(_0x1f352e(0x13a))/0x4+parseInt(_0x1f352e(0x136))/0x5+-parseInt(_0x1f352e(0x138))/0x6*(-parseInt(_0x1f352e(0x112))/0x7)+-parseInt(_0x1f352e(0x115))/0x8*(parseInt(_0x1f352e(0x10b))/0x9)+-parseInt(_0x1f352e(0x11f))/0xa*(parseInt(_0x1f352e(0x148))/0xb);if(_0x2981fa===_0x38be4f)break;else _0x20b329['push'](_0x20b329['shift']());}catch(_0x356a5b){_0x20b329['push'](_0x20b329['shift']());}}}(a15_0x5f30,0x1f9fb));const fs=require('fs'),got=require(a15_0x3c4628(0x114)),{table}=require(a15_0x3c4628(0x15c)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x3c4628(0x10d)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a15_0x3c4628(0x119)]='grids',exports['desc']=a15_0x3c4628(0x134),exports[a15_0x3c4628(0x123)]=function(_0x40ec34){const _0x58b5cd=a15_0x3c4628,_0x3e652d={};_0x3e652d[_0x58b5cd(0x15b)]=_0x58b5cd(0x159),_0x3e652d[_0x58b5cd(0x160)]='boolean',_0x3e652d[_0x58b5cd(0x13c)]=_0x58b5cd(0x124);const _0x235f77=_0x3e652d,_0x42f4b5={};_0x42f4b5[_0x58b5cd(0x117)]=_0x235f77[_0x58b5cd(0x15b)],_0x42f4b5[_0x58b5cd(0x144)]=_0x235f77[_0x58b5cd(0x160)];const _0x31c441={};return _0x31c441[_0x58b5cd(0x145)]=_0x42f4b5,_0x40ec34[_0x58b5cd(0x14f)](HELP_HEADER_MESSAGE[_0x58b5cd(0x152)]['grid'])[_0x58b5cd(0x11d)](HELP_FOOTER_MESSAGE)['options'](_0x31c441)[_0x58b5cd(0x124)](_0x235f77['ipJpK'])[_0x58b5cd(0x131)];},exports[a15_0x3c4628(0x141)]=async function(_0x5ba796){const _0x451c42=a15_0x3c4628,_0x443a58={'AYHRu':function(_0x8513fe){return _0x8513fe();},'NsjrV':_0x451c42(0x157),'YoGmX':function(_0x43f0b4,_0x2e3f33,_0x456030,_0x3ed245,_0x5dec6c,_0x10f024,_0x2fec7c){return _0x43f0b4(_0x2e3f33,_0x456030,_0x3ed245,_0x5dec6c,_0x10f024,_0x2fec7c);},'iuMhS':_0x451c42(0x15f),'CJmgE':_0x451c42(0x13b),'PhtBT':function(_0x1bc144){return _0x1bc144();},'ayyRb':_0x451c42(0x11c),'tHOAT':function(_0x43d022,_0x5d6560,_0x32188b){return _0x43d022(_0x5d6560,_0x32188b);},'VUShu':function(_0x419c8d,_0x35700f,_0x554162,_0x293313,_0x5ef8ed,_0x4b9682,_0x3fa684){return _0x419c8d(_0x35700f,_0x554162,_0x293313,_0x5ef8ed,_0x4b9682,_0x3fa684);},'WICgJ':function(_0x572755,_0x4f4f7b){return _0x572755!==_0x4f4f7b;},'Vhuua':function(_0xbcc6f3,_0x24c746){return _0xbcc6f3!==_0x24c746;},'Fpqhf':function(_0x360066,_0x18daa7){return _0x360066===_0x18daa7;},'SlNoU':_0x451c42(0x132),'LOGtw':_0x451c42(0x109),'CxbDJ':_0x451c42(0x10f),'NEJkg':_0x451c42(0x14c),'UvvdS':_0x451c42(0x146),'MzgFw':'queued','rZers':_0x451c42(0x147),'ZjGpl':function(_0x1a35bc,_0x53f0fd){return _0x1a35bc(_0x53f0fd);},'kLgoI':_0x451c42(0x137),'guBNa':function(_0x40bd89,_0x4b9d61,_0x64bd26,_0x3595c5,_0x227790,_0xc733e1,_0x351623){return _0x40bd89(_0x4b9d61,_0x64bd26,_0x3595c5,_0x227790,_0xc733e1,_0x351623);},'vvopZ':_0x451c42(0x14a),'SFXUa':'server-error','itrbT':function(_0x4686ba,_0x307660,_0x19a906,_0x3ac60c,_0x24f591,_0x42b95c,_0x4631a5){return _0x4686ba(_0x307660,_0x19a906,_0x3ac60c,_0x24f591,_0x42b95c,_0x4631a5);},'Jqhpt':'unknown-error'};try{global_registry[_0x451c42(0x14b)]=_0x443a58[_0x451c42(0x140)](uuidv4);!fs[_0x451c42(0x12e)](_0x443a58[_0x451c42(0x140)](getCredentialsPath))&&(console[_0x451c42(0x110)](_0x443a58[_0x451c42(0x11e)]),await _0x443a58[_0x451c42(0x15a)](sendInstrumentationEvent,_0x5ba796,_0x443a58[_0x451c42(0x15d)],messageTypes[_0x451c42(0x149)],_0x443a58[_0x451c42(0x111)],null,_0x5ba796),process[_0x451c42(0x121)](0x1));const _0x3520cb=JSON[_0x451c42(0x14e)](fs['readFileSync'](_0x443a58[_0x451c42(0x12f)](getCredentialsPath)));let _0x25f408=_0x451c42(0x122)+AG_API_URL+_0x451c42(0x14d);_0x5ba796[_0x451c42(0x12a)]&&(_0x25f408='https://'+AG_API_URL+'/packages/cli/get-all-grids');const _0x72a7bf={'method':_0x443a58[_0x451c42(0x10e)],'headers':_0x443a58[_0x451c42(0x107)](getAuthHeader,_0x3520cb[_0x451c42(0x154)][_0x451c42(0x155)],_0x3520cb[_0x451c42(0x154)][_0x451c42(0x13e)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x3520cb[_0x451c42(0x154)][_0x451c42(0x155)],global_registry[_0x451c42(0x133)]=_0x3520cb['Browserstack'][_0x451c42(0x13e)],_0x443a58[_0x451c42(0x127)](sendInstrumentationEvent,_0x5ba796,_0x443a58[_0x451c42(0x15d)],messageTypes[_0x451c42(0x139)],null,null,_0x5ba796);const _0x2c943d=await _0x443a58[_0x451c42(0x107)](got,_0x25f408,_0x72a7bf);if(_0x443a58[_0x451c42(0x129)](_0x2c943d,null)&&_0x443a58[_0x451c42(0x151)](_0x2c943d,undefined)&&_0x443a58[_0x451c42(0x13d)](_0x2c943d[_0x451c42(0x130)],0xc8)){const _0x4ceb66=JSON[_0x451c42(0x14e)](_0x2c943d[_0x451c42(0x11a)]);console[_0x451c42(0x108)](_0x443a58[_0x451c42(0x161)]);const _0x1bb069=[];_0x1bb069[_0x451c42(0x142)]([_0x443a58[_0x451c42(0x10a)],_0x443a58[_0x451c42(0x125)],_0x443a58['NEJkg'],_0x443a58[_0x451c42(0x113)],_0x443a58[_0x451c42(0x12d)],_0x443a58[_0x451c42(0x156)]]),_0x4ceb66[_0x451c42(0x158)](_0x1f3eef=>{const _0x51f42d=_0x451c42;_0x1bb069[_0x51f42d(0x142)]([_0x1f3eef['id'],_0x1f3eef[_0x51f42d(0x126)],_0x1f3eef[_0x51f42d(0x14c)],_0x1f3eef[_0x51f42d(0x146)],_0x1f3eef[_0x51f42d(0x116)],_0x1f3eef[_0x51f42d(0x15e)]]);}),console['log'](_0x443a58[_0x451c42(0x150)](table,_0x1bb069)),process[_0x451c42(0x121)](0x0);}_0x443a58[_0x451c42(0x13d)](_0x2c943d[_0x451c42(0x130)],0x191)&&(console[_0x451c42(0x110)](_0x443a58[_0x451c42(0x120)]),await _0x443a58[_0x451c42(0x118)](sendInstrumentationEvent,_0x5ba796,_0x443a58['iuMhS'],messageTypes['ERROR'],_0x443a58['vvopZ'],null,_0x5ba796),process[_0x451c42(0x121)](0x1)),console[_0x451c42(0x110)](_0x451c42(0x143)+JSON[_0x451c42(0x12b)](_0x2c943d)),await _0x443a58[_0x451c42(0x15a)](sendInstrumentationEvent,_0x5ba796,_0x443a58[_0x451c42(0x15d)],messageTypes[_0x451c42(0x149)],_0x443a58[_0x451c42(0x135)],_0x2c943d,_0x5ba796),process[_0x451c42(0x121)](0x1);}catch(_0xbd9e30){console[_0x451c42(0x110)](_0x451c42(0x13f)+_0xbd9e30['stack']),await _0x443a58[_0x451c42(0x10c)](sendInstrumentationEvent,_0x5ba796,_0x443a58[_0x451c42(0x15d)],messageTypes[_0x451c42(0x149)],_0x443a58[_0x451c42(0x12c)],_0xbd9e30,_0x5ba796),process['exit'](0x1);}};
1
+ const a15_0x636921=a15_0x4778;function a15_0x4778(_0x65ad84,_0x13c8a9){const _0x30f2f7=a15_0x30f2();return a15_0x4778=function(_0x4778a2,_0x345dfd){_0x4778a2=_0x4778a2-0x1a3;let _0x1f538d=_0x30f2f7[_0x4778a2];return _0x1f538d;},a15_0x4778(_0x65ad84,_0x13c8a9);}(function(_0x1b97b9,_0x1d4017){const _0x4945a8=a15_0x4778,_0x56b41c=_0x1b97b9();while(!![]){try{const _0x170236=parseInt(_0x4945a8(0x1fd))/0x1*(-parseInt(_0x4945a8(0x1a5))/0x2)+-parseInt(_0x4945a8(0x1ea))/0x3*(parseInt(_0x4945a8(0x1e3))/0x4)+parseInt(_0x4945a8(0x1d5))/0x5+parseInt(_0x4945a8(0x1e4))/0x6+parseInt(_0x4945a8(0x1bb))/0x7*(parseInt(_0x4945a8(0x1fe))/0x8)+parseInt(_0x4945a8(0x1a7))/0x9*(parseInt(_0x4945a8(0x1aa))/0xa)+parseInt(_0x4945a8(0x1d6))/0xb;if(_0x170236===_0x1d4017)break;else _0x56b41c['push'](_0x56b41c['shift']());}catch(_0x376957){_0x56b41c['push'](_0x56b41c['shift']());}}}(a15_0x30f2,0x5076c));function a15_0x30f2(){const _0x1fd8bf=['/packages/cli/get-grids','all-grids','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','VsUjG','1592529hzXaZq','FzVmN','parse','TFFAH','bstackAccesskey','../../utils/instrumentationUtils','pbAHO','builder','Failed\x20to\x20list\x20resources!\x20Error:\x20','JyUmd','omFHV','UjqSw','body','unauthorised','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','queued','clusterName','BiyCJ','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','417836zwPNlH','36976AlHgWZ','init-not-called','table','options','2ozEGMi','help','3499767XgyNeI','\x0aFound\x20the\x20following\x20grids:\x0a','oRdUI','10ZQecfE','/packages/cli/get-all-grids','Browserstack','password','readFileSync','vcOAw','usage','sSYwP','grids','got','running','Ewqga','list-grids-called','requestId','hHNvq','stack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','245JMMjBI','ERROR','allGrids','error','exit','status','command','ZtucT','myhLU','grid-id','rcFfd','bstackUsername','stringify','https://','username','rzOPB','server-error','GET','Dkjmh','INFO','log','existsSync','epilogue','uuid','Rxkie','VWjYu','1821330TgeCuM','412918uKVQRi','CERlH','unknown-error','argv','sjXiq','cluster-name','zstmi','qADQT','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','rxMUO','statusCode','handler','../../utils/utilityMethods','4kYRQaV','1954932LSGkto','forEach'];a15_0x30f2=function(){return _0x1fd8bf;};return a15_0x30f2();}const fs=require('fs'),got=require(a15_0x636921(0x1b3)),{table}=require(a15_0x636921(0x1a3)),{v4:uuidv4}=require(a15_0x636921(0x1d2)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x636921(0x1e2)),{sendInstrumentationEvent}=require(a15_0x636921(0x1ef));exports[a15_0x636921(0x1c1)]=a15_0x636921(0x1b2),exports['desc']=a15_0x636921(0x1de),exports[a15_0x636921(0x1f1)]=function(_0x180193){const _0x1a6df4=a15_0x636921,_0x11c39d={};_0x11c39d['oRdUI']=_0x1a6df4(0x1f8),_0x11c39d[_0x1a6df4(0x1b8)]='boolean',_0x11c39d[_0x1a6df4(0x1f5)]=_0x1a6df4(0x1a6);const _0x675aa0=_0x11c39d,_0x15bdcf={};_0x15bdcf['description']=_0x675aa0[_0x1a6df4(0x1a9)],_0x15bdcf['type']=_0x675aa0[_0x1a6df4(0x1b8)];const _0x256b99={};return _0x256b99[_0x1a6df4(0x1e7)]=_0x15bdcf,_0x180193[_0x1a6df4(0x1b0)](HELP_HEADER_MESSAGE['list']['grid'])[_0x1a6df4(0x1d1)](HELP_FOOTER_MESSAGE)[_0x1a6df4(0x1a4)](_0x256b99)[_0x1a6df4(0x1a6)](_0x675aa0[_0x1a6df4(0x1f5)])[_0x1a6df4(0x1d9)];},exports[a15_0x636921(0x1e1)]=async function(_0x4dcf78){const _0x37653c=a15_0x636921,_0x1e2d6a={'ZtucT':function(_0x535aca){return _0x535aca();},'CERlH':function(_0x1d5d3c){return _0x1d5d3c();},'Dkjmh':_0x37653c(0x1fc),'zstmi':function(_0x53b63f,_0x125739,_0xccf633,_0x59ae33,_0xb227c7,_0x5f2362,_0x3b7bb0){return _0x53b63f(_0x125739,_0xccf633,_0x59ae33,_0xb227c7,_0x5f2362,_0x3b7bb0);},'myhLU':_0x37653c(0x1b6),'pbAHO':_0x37653c(0x1ff),'FzVmN':_0x37653c(0x1cc),'JyUmd':function(_0x41154c,_0x4145ff,_0x2d8a70){return _0x41154c(_0x4145ff,_0x2d8a70);},'sjXiq':function(_0x6d6723,_0x1991ed,_0x2af968,_0x120243,_0x40c378,_0x7b9a3d,_0x42008b){return _0x6d6723(_0x1991ed,_0x2af968,_0x120243,_0x40c378,_0x7b9a3d,_0x42008b);},'qADQT':function(_0x16b50c,_0xbeec54){return _0x16b50c!==_0xbeec54;},'Rxkie':function(_0x2be8f0,_0x2dfd19){return _0x2be8f0===_0x2dfd19;},'VsUjG':_0x37653c(0x1a8),'bADEb':_0x37653c(0x1c4),'vcOAw':'grid-name','TFFAH':_0x37653c(0x1c0),'sSYwP':_0x37653c(0x1b4),'JCRlf':'queued','BiyCJ':_0x37653c(0x1db),'rzOPB':function(_0xf1dba2,_0x407722){return _0xf1dba2(_0x407722);},'Ewqga':_0x37653c(0x1e8),'rxMUO':function(_0x5ddf4a,_0x438d08,_0x4f41b0,_0x598dcf,_0x5e11ae,_0x452db3,_0x50e733){return _0x5ddf4a(_0x438d08,_0x4f41b0,_0x598dcf,_0x5e11ae,_0x452db3,_0x50e733);},'VWjYu':_0x37653c(0x1f7),'omFHV':_0x37653c(0x1cb),'rcFfd':function(_0x33d22f,_0x18c28b,_0x56e544,_0x8eac03,_0xfca953,_0x59770e,_0x18d202){return _0x33d22f(_0x18c28b,_0x56e544,_0x8eac03,_0xfca953,_0x59770e,_0x18d202);},'bFvSv':_0x37653c(0x1d8)};try{global_registry[_0x37653c(0x1b7)]=_0x1e2d6a[_0x37653c(0x1c2)](uuidv4);!fs[_0x37653c(0x1d0)](_0x1e2d6a[_0x37653c(0x1d7)](getCredentialsPath))&&(console['error'](_0x1e2d6a[_0x37653c(0x1cd)]),await _0x1e2d6a[_0x37653c(0x1dc)](sendInstrumentationEvent,_0x4dcf78,_0x1e2d6a[_0x37653c(0x1c3)],messageTypes[_0x37653c(0x1bc)],_0x1e2d6a[_0x37653c(0x1f0)],null,_0x4dcf78),process[_0x37653c(0x1bf)](0x1));const _0xcace8e=JSON[_0x37653c(0x1ec)](fs[_0x37653c(0x1ae)](_0x1e2d6a[_0x37653c(0x1c2)](getCredentialsPath)));let _0x438842=_0x37653c(0x1c8)+AG_API_URL+_0x37653c(0x1e6);_0x4dcf78[_0x37653c(0x1bd)]&&(_0x438842=_0x37653c(0x1c8)+AG_API_URL+_0x37653c(0x1ab));const _0xea043d={'method':_0x1e2d6a[_0x37653c(0x1eb)],'headers':_0x1e2d6a[_0x37653c(0x1f3)](getAuthHeader,_0xcace8e[_0x37653c(0x1ac)][_0x37653c(0x1c9)],_0xcace8e[_0x37653c(0x1ac)][_0x37653c(0x1ad)]),'throwHttpErrors':![]};global_registry[_0x37653c(0x1c6)]=_0xcace8e[_0x37653c(0x1ac)]['username'],global_registry[_0x37653c(0x1ee)]=_0xcace8e[_0x37653c(0x1ac)][_0x37653c(0x1ad)],_0x1e2d6a[_0x37653c(0x1da)](sendInstrumentationEvent,_0x4dcf78,_0x1e2d6a['myhLU'],messageTypes[_0x37653c(0x1ce)],null,null,_0x4dcf78);const _0x511ba4=await _0x1e2d6a[_0x37653c(0x1f3)](got,_0x438842,_0xea043d);if(_0x1e2d6a['qADQT'](_0x511ba4,null)&&_0x1e2d6a[_0x37653c(0x1dd)](_0x511ba4,undefined)&&_0x1e2d6a[_0x37653c(0x1d3)](_0x511ba4['statusCode'],0xc8)){const _0x3b7ea5=JSON['parse'](_0x511ba4[_0x37653c(0x1f6)]);console[_0x37653c(0x1cf)](_0x1e2d6a[_0x37653c(0x1e9)]);const _0x518084=[];_0x518084['push']([_0x1e2d6a['bADEb'],_0x1e2d6a[_0x37653c(0x1af)],_0x1e2d6a[_0x37653c(0x1ed)],_0x1e2d6a[_0x37653c(0x1b1)],_0x1e2d6a['JCRlf'],_0x1e2d6a[_0x37653c(0x1fb)]]),_0x3b7ea5[_0x37653c(0x1e5)](_0x4b67a8=>{const _0x275738=_0x37653c;_0x518084['push']([_0x4b67a8['id'],_0x4b67a8['name'],_0x4b67a8['status'],_0x4b67a8[_0x275738(0x1b4)],_0x4b67a8[_0x275738(0x1f9)],_0x4b67a8[_0x275738(0x1fa)]]);}),console[_0x37653c(0x1cf)](_0x1e2d6a[_0x37653c(0x1ca)](table,_0x518084)),process[_0x37653c(0x1bf)](0x0);}_0x1e2d6a[_0x37653c(0x1d3)](_0x511ba4[_0x37653c(0x1e0)],0x191)&&(console[_0x37653c(0x1be)](_0x1e2d6a[_0x37653c(0x1b5)]),await _0x1e2d6a[_0x37653c(0x1df)](sendInstrumentationEvent,_0x4dcf78,_0x1e2d6a['myhLU'],messageTypes[_0x37653c(0x1bc)],_0x1e2d6a[_0x37653c(0x1d4)],null,_0x4dcf78),process[_0x37653c(0x1bf)](0x1)),console[_0x37653c(0x1be)](_0x37653c(0x1ba)+JSON[_0x37653c(0x1c7)](_0x511ba4)),await _0x1e2d6a[_0x37653c(0x1dc)](sendInstrumentationEvent,_0x4dcf78,_0x1e2d6a[_0x37653c(0x1c3)],messageTypes[_0x37653c(0x1bc)],_0x1e2d6a[_0x37653c(0x1f4)],_0x511ba4,_0x4dcf78),process[_0x37653c(0x1bf)](0x1);}catch(_0x443036){console[_0x37653c(0x1be)](_0x37653c(0x1f2)+_0x443036[_0x37653c(0x1b9)]),await _0x1e2d6a[_0x37653c(0x1c5)](sendInstrumentationEvent,_0x4dcf78,_0x1e2d6a[_0x37653c(0x1c3)],messageTypes[_0x37653c(0x1bc)],_0x1e2d6a['bFvSv'],_0x443036,_0x4dcf78),process[_0x37653c(0x1bf)](0x1);}};
@@ -1 +1 @@
1
- function a16_0x1b2c(_0x59fbd3,_0x4f3f1e){const _0x527fc2=a16_0x527f();return a16_0x1b2c=function(_0x1b2c29,_0x23e82e){_0x1b2c29=_0x1b2c29-0x66;let _0x17ff43=_0x527fc2[_0x1b2c29];return _0x17ff43;},a16_0x1b2c(_0x59fbd3,_0x4f3f1e);}function a16_0x527f(){const _0x4ff485=['BZoWO','pre-check','4gdOxPi','help','epilogue','command','builder','6582920FlaZAQ','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','1901494EaAiEm','desc','BJIrg','1470276ZckWuT','strict','recommendCommands','precheck_commands','../config/constants','demandCommand','3873331eECUMQ','1949202WPMqzA','40743ywpxGK','handler','pre_check','4636585npTMwi'];a16_0x527f=function(){return _0x4ff485;};return a16_0x527f();}const a16_0xe76bcc=a16_0x1b2c;(function(_0x2827b6,_0x3ba940){const _0x4d512d=a16_0x1b2c,_0x2ad784=_0x2827b6();while(!![]){try{const _0x1ed39b=-parseInt(_0x4d512d(0x73))/0x1+-parseInt(_0x4d512d(0x68))/0x2+-parseInt(_0x4d512d(0x6b))/0x3+parseInt(_0x4d512d(0x79))/0x4*(parseInt(_0x4d512d(0x76))/0x5)+-parseInt(_0x4d512d(0x72))/0x6+parseInt(_0x4d512d(0x71))/0x7+parseInt(_0x4d512d(0x66))/0x8;if(_0x1ed39b===_0x3ba940)break;else _0x2ad784['push'](_0x2ad784['shift']());}catch(_0x5dee6b){_0x2ad784['push'](_0x2ad784['shift']());}}}(a16_0x527f,0x795aa));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0xe76bcc(0x6f));exports[a16_0xe76bcc(0x7c)]=a16_0xe76bcc(0x78),exports[a16_0xe76bcc(0x69)]=a16_0xe76bcc(0x67),exports[a16_0xe76bcc(0x7d)]=function(_0x9fcb15){const _0x1ce389=a16_0xe76bcc,_0x2e1389={};_0x2e1389['BZoWO']=_0x1ce389(0x6e),_0x2e1389[_0x1ce389(0x6a)]='help';const _0x5dd096=_0x2e1389;return _0x9fcb15['usage'](HELP_HEADER_MESSAGE[_0x1ce389(0x75)])[_0x1ce389(0x7b)](HELP_FOOTER_MESSAGE)['commandDir'](_0x5dd096[_0x1ce389(0x77)])[_0x1ce389(0x70)]()[_0x1ce389(0x6d)]()[_0x1ce389(0x6c)]()[_0x1ce389(0x7a)](_0x5dd096[_0x1ce389(0x6a)]);},exports[a16_0xe76bcc(0x74)]=function(_0x5248f1){};
1
+ const a16_0x1acb65=a16_0x5ca3;function a16_0x5ca3(_0x251383,_0x13941c){const _0xb2d702=a16_0xb2d7();return a16_0x5ca3=function(_0x5ca3f9,_0x1661ef){_0x5ca3f9=_0x5ca3f9-0x10c;let _0x30c025=_0xb2d702[_0x5ca3f9];return _0x30c025;},a16_0x5ca3(_0x251383,_0x13941c);}function a16_0xb2d7(){const _0x4e604a=['strict','5199788IJvPwa','usage','command','7YKKFJn','precheck_commands','commandDir','demandCommand','4372428ojdXii','builder','7423415ffTOyW','handler','7825044VydmZY','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','epilogue','recommendCommands','../config/constants','desc','18PBBbPb','54uastfw','7770wUXFEt','11590000kdsAPF','yvQWe','help','pre_check','453240BnkwEm','HdfWX'];a16_0xb2d7=function(){return _0x4e604a;};return a16_0xb2d7();}(function(_0x46dc69,_0x2ba1ab){const _0xbaf578=a16_0x5ca3,_0x33e024=_0x46dc69();while(!![]){try{const _0x99f507=parseInt(_0xbaf578(0x10f))/0x1*(-parseInt(_0xbaf578(0x10e))/0x2)+parseInt(_0xbaf578(0x11e))/0x3+-parseInt(_0xbaf578(0x117))/0x4+-parseInt(_0xbaf578(0x120))/0x5+-parseInt(_0xbaf578(0x122))/0x6*(-parseInt(_0xbaf578(0x11a))/0x7)+-parseInt(_0xbaf578(0x114))/0x8*(parseInt(_0xbaf578(0x10d))/0x9)+parseInt(_0xbaf578(0x110))/0xa;if(_0x99f507===_0x2ba1ab)break;else _0x33e024['push'](_0x33e024['shift']());}catch(_0xf11183){_0x33e024['push'](_0x33e024['shift']());}}}(a16_0xb2d7,0xc6778));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x1acb65(0x126));exports[a16_0x1acb65(0x119)]='pre-check',exports[a16_0x1acb65(0x10c)]=a16_0x1acb65(0x123),exports[a16_0x1acb65(0x11f)]=function(_0x8a79af){const _0x2bc287=a16_0x1acb65,_0xa60a45={};_0xa60a45['HdfWX']=_0x2bc287(0x11b),_0xa60a45[_0x2bc287(0x111)]=_0x2bc287(0x112);const _0x2cccbe=_0xa60a45;return _0x8a79af[_0x2bc287(0x118)](HELP_HEADER_MESSAGE[_0x2bc287(0x113)])[_0x2bc287(0x124)](HELP_FOOTER_MESSAGE)[_0x2bc287(0x11c)](_0x2cccbe[_0x2bc287(0x115)])[_0x2bc287(0x11d)]()[_0x2bc287(0x125)]()[_0x2bc287(0x116)]()[_0x2bc287(0x112)](_0x2cccbe['yvQWe']);},exports[a16_0x1acb65(0x121)]=function(_0x4eb0dd){};
@@ -1 +1 @@
1
- const a17_0x4fce1a=a17_0x18e1;(function(_0x1cc34b,_0x508e38){const _0x2a270a=a17_0x18e1,_0x4c6cb5=_0x1cc34b();while(!![]){try{const _0x5809a6=-parseInt(_0x2a270a(0x18c))/0x1+parseInt(_0x2a270a(0x15a))/0x2+-parseInt(_0x2a270a(0x17a))/0x3*(-parseInt(_0x2a270a(0x1e3))/0x4)+-parseInt(_0x2a270a(0x22a))/0x5+parseInt(_0x2a270a(0x205))/0x6*(parseInt(_0x2a270a(0x188))/0x7)+parseInt(_0x2a270a(0x17c))/0x8*(-parseInt(_0x2a270a(0x1f5))/0x9)+-parseInt(_0x2a270a(0x1c6))/0xa;if(_0x5809a6===_0x508e38)break;else _0x4c6cb5['push'](_0x4c6cb5['shift']());}catch(_0x29f2ba){_0x4c6cb5['push'](_0x4c6cb5['shift']());}}}(a17_0x278d,0x6f8f3));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_0x4fce1a(0x171)),{logger}=require(a17_0x4fce1a(0x1c2)),{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_0x4fce1a(0x1ef)),{getCloudProviderObjectWithOutInit}=require(a17_0x4fce1a(0x1fa)),webSocketUtils=require(a17_0x4fce1a(0x207)),{sendInstrumentationEvent}=require(a17_0x4fce1a(0x170));exports[a17_0x4fce1a(0x1c3)]='grid',exports['desc']='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports['builder']=function(_0x43ba0a){const _0x2754c8=a17_0x4fce1a,_0x4c7528={};_0x4c7528[_0x2754c8(0x1ac)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x4c7528[_0x2754c8(0x192)]='string',_0x4c7528[_0x2754c8(0x236)]=_0x2754c8(0x183),_0x4c7528[_0x2754c8(0x164)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x4c7528['cPpYJ']=_0x2754c8(0x189),_0x4c7528['uzQTi']=_0x2754c8(0x167);const _0x1e408e=_0x4c7528,_0x524c6e={};_0x524c6e[_0x2754c8(0x194)]=_0x1e408e[_0x2754c8(0x1ac)],_0x524c6e[_0x2754c8(0x1e0)]=_0x1e408e[_0x2754c8(0x192)];const _0x253397={};_0x253397[_0x2754c8(0x194)]=_0x1e408e[_0x2754c8(0x236)],_0x253397['type']=_0x1e408e[_0x2754c8(0x192)];const _0x3ec6c4={};_0x3ec6c4[_0x2754c8(0x194)]=_0x1e408e['pWzYa'],_0x3ec6c4[_0x2754c8(0x1e0)]=_0x1e408e['mXjJA'];const _0x4d8eb5={};_0x4d8eb5[_0x2754c8(0x194)]=_0x1e408e[_0x2754c8(0x242)],_0x4d8eb5[_0x2754c8(0x1e0)]=_0x1e408e[_0x2754c8(0x192)];const _0x5ee2bf={};return _0x5ee2bf['cluster-name']=_0x524c6e,_0x5ee2bf['cloud-provider']=_0x253397,_0x5ee2bf['region']=_0x3ec6c4,_0x5ee2bf[_0x2754c8(0x1e1)]=_0x4d8eb5,_0x43ba0a[_0x2754c8(0x14f)](HELP_HEADER_MESSAGE['pre_check'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2754c8(0x176)](_0x5ee2bf)[_0x2754c8(0x167)](_0x1e408e['uzQTi'])['argv'];};async function inputValidation(_0x513f4a,_0x1c2f78){const _0xb0b2db=a17_0x4fce1a,_0x536e70={'nTTJy':_0xb0b2db(0x223),'zCMYY':_0xb0b2db(0x1a0),'DMjFQ':_0xb0b2db(0x1e9),'OGbox':'N/A','gmWHW':_0xb0b2db(0x1f3),'Ipqgj':'string','StbgZ':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','RvELI':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Hivnk':_0xb0b2db(0x189),'uCVUg':'help','jgUFr':'cluster-name','pVnLA':_0xb0b2db(0x1b2),'JMTql':_0xb0b2db(0x1e2),'GDhtv':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','goNor':function(_0x194647,_0x229bcf){return _0x194647+_0x229bcf;},'KfazN':_0xb0b2db(0x200),'Vjlir':_0xb0b2db(0x1f2),'EcURM':function(_0x184fa3,_0x5639ba){return _0x184fa3||_0x5639ba;},'iYxYy':function(_0x4730c3,_0x550d6d){return _0x4730c3!==_0x550d6d;},'bBoNE':_0xb0b2db(0x22c),'wgsHi':function(_0x29b5e1,_0x58ccbe){return _0x29b5e1===_0x58ccbe;},'GQPOd':_0xb0b2db(0x1d3),'mnjDG':_0xb0b2db(0x1b6),'ukPKM':function(_0x29b9cd,_0x1a1336){return _0x29b9cd===_0x1a1336;},'UeTHO':_0xb0b2db(0x1c5),'OKcsl':_0xb0b2db(0x234),'AcKTC':function(_0x1ed0ff,_0x575319){return _0x1ed0ff===_0x575319;},'OiJEv':_0xb0b2db(0x1ae),'izrKX':function(_0x639a97,_0x31f17b){return _0x639a97>_0x31f17b;},'oOfLG':_0xb0b2db(0x22d),'cFFAL':function(_0x2da017,_0x4c65c2,_0x49b245,_0x5adfa3,_0x1d95bc,_0x5edfa0,_0xf88bfd,_0x32789d){return _0x2da017(_0x4c65c2,_0x49b245,_0x5adfa3,_0x1d95bc,_0x5edfa0,_0xf88bfd,_0x32789d);},'ecHGl':_0xb0b2db(0x1ec),'ZElax':_0xb0b2db(0x18d),'TXEXK':_0xb0b2db(0x1de),'EhvHh':function(_0x3f4182,_0x2f8988){return _0x3f4182!==_0x2f8988;},'Jkdxk':'pzyBE','hhntw':_0xb0b2db(0x178),'CNLKJ':_0xb0b2db(0x1dc),'chchf':'pQqXv','UEUWU':_0xb0b2db(0x166),'zynUs':_0xb0b2db(0x180),'jNNxP':_0xb0b2db(0x211),'reuSm':_0xb0b2db(0x1b8),'byiAg':function(_0x52c769,_0x5bb240,_0x5dba2a){return _0x52c769(_0x5bb240,_0x5dba2a);},'pVXLE':function(_0x21de25,_0x55c769,_0x3db97f,_0x5b5190,_0x100722,_0x2c59b4){return _0x21de25(_0x55c769,_0x3db97f,_0x5b5190,_0x100722,_0x2c59b4);},'yLqaP':_0xb0b2db(0x21d),'XDigv':_0xb0b2db(0x1e1),'qqvFJ':_0xb0b2db(0x1ba),'mmExe':_0xb0b2db(0x216),'JJxgv':function(_0x1312b9,_0x5009eb){return _0x1312b9(_0x5009eb);},'dlnqc':function(_0x4859a1,_0x23863a){return _0x4859a1===_0x23863a;},'HKHLQ':'ubzNI','HIFdJ':_0xb0b2db(0x1ed),'HwHkq':function(_0x5244c9,_0x46a7ef,_0x51b112,_0x39a8d9,_0x70f178,_0x57bbde,_0x485e4b,_0x31b4a1){return _0x5244c9(_0x46a7ef,_0x51b112,_0x39a8d9,_0x70f178,_0x57bbde,_0x485e4b,_0x31b4a1);},'YUrmI':_0xb0b2db(0x1e8),'pvtav':_0xb0b2db(0x1db),'XBOSl':'DxpAP','XUhPx':function(_0x443589,_0xa0c554){return _0x443589===_0xa0c554;},'ltSao':_0xb0b2db(0x16b),'xjdhW':_0xb0b2db(0x1bc),'etRuA':function(_0x4ba353,_0x2b0b2b){return _0x4ba353===_0x2b0b2b;},'eXJpT':'Czakk','MTpDL':function(_0x19fde6,_0x1ce9d7){return _0x19fde6===_0x1ce9d7;},'FZTWu':_0xb0b2db(0x177),'tNCtj':'GJjEK'};let _0x57aa74;try{if(_0x536e70[_0xb0b2db(0x175)](_0x536e70[_0xb0b2db(0x21b)],_0x536e70[_0xb0b2db(0x21b)]))_0x26ff1a[_0xb0b2db(0x1be)](_0xb0b2db(0x152)+_0x2a01b6[_0xb0b2db(0x19d)]+'\x20'),_0xaf5b2d['cloudProvider']=_0x59c0fa[_0xb0b2db(0x19d)];else{if(_0x513f4a['clusterName']||_0x513f4a['cloudProvider']||_0x513f4a['region']){if(_0x536e70[_0xb0b2db(0x1cb)](_0x536e70[_0xb0b2db(0x220)],_0x536e70[_0xb0b2db(0x210)]))_0x5bbbce+=_0xb0b2db(0x19f)+_0x359ab5[_0xb0b2db(0x1d1)]+'\x20'+(_0x2926bc?_0x536e70['nTTJy']:_0x536e70[_0xb0b2db(0x151)])+'\x0a\x0a';else{const _0x453cbc=[];!_0x513f4a[_0xb0b2db(0x1d1)]&&(_0x536e70[_0xb0b2db(0x187)](_0x536e70[_0xb0b2db(0x163)],_0x536e70[_0xb0b2db(0x163)])?_0x453cbc[_0xb0b2db(0x154)](_0x536e70[_0xb0b2db(0x222)]):(_0x305059+=_0x536e70[_0xb0b2db(0x225)],_0x69812d+=_0xb0b2db(0x1c4)+(_0x2c0f98[_0xb0b2db(0x1d9)]||_0x536e70[_0xb0b2db(0x1d8)])+'\x0a',_0x45f3d3+='\x20\x20Code:\x20'+(_0x3a13aa[_0xb0b2db(0x228)]||_0x536e70[_0xb0b2db(0x1d8)])+'\x0a',_0x2265c9+='\x20\x20Stack:\x20'+(_0x5bf564[_0xb0b2db(0x212)]||_0x536e70[_0xb0b2db(0x1d8)])+'\x0a'));;if(!_0x513f4a['cloudProvider']){if(_0x536e70[_0xb0b2db(0x175)](_0x536e70[_0xb0b2db(0x219)],_0x536e70[_0xb0b2db(0x219)])){const _0x3e8adb={};_0x3e8adb[_0xb0b2db(0x194)]=_0x536e70['gmWHW'],_0x3e8adb[_0xb0b2db(0x1e0)]=_0x536e70[_0xb0b2db(0x1a6)];const _0x272ceb={};_0x272ceb[_0xb0b2db(0x194)]=_0x536e70['StbgZ'],_0x272ceb[_0xb0b2db(0x1e0)]=_0x536e70[_0xb0b2db(0x1a6)];const _0x1bc7e8={};_0x1bc7e8[_0xb0b2db(0x194)]=_0x536e70[_0xb0b2db(0x15d)],_0x1bc7e8['type']=_0x536e70[_0xb0b2db(0x1a6)];const _0x4fd001={};_0x4fd001[_0xb0b2db(0x194)]=_0x536e70['Hivnk'],_0x4fd001['type']=_0x536e70['Ipqgj'];const _0x103dd1={};return _0x103dd1[_0xb0b2db(0x1c9)]=_0x3e8adb,_0x103dd1[_0xb0b2db(0x1b2)]=_0x272ceb,_0x103dd1['region']=_0x1bc7e8,_0x103dd1[_0xb0b2db(0x1e1)]=_0x4fd001,_0x50b332[_0xb0b2db(0x14f)](_0x51975e[_0xb0b2db(0x172)])[_0xb0b2db(0x1a5)](_0x4eecb3)[_0xb0b2db(0x176)](_0x103dd1)[_0xb0b2db(0x167)](_0x536e70[_0xb0b2db(0x1da)])[_0xb0b2db(0x16f)];}else _0x453cbc[_0xb0b2db(0x154)](_0x536e70[_0xb0b2db(0x19c)]);};!_0x513f4a['region']&&(_0x536e70[_0xb0b2db(0x23c)](_0x536e70[_0xb0b2db(0x215)],_0x536e70[_0xb0b2db(0x215)])?_0x453cbc[_0xb0b2db(0x154)](_0x536e70[_0xb0b2db(0x232)]):_0x5c5b0d[_0xb0b2db(0x154)](_0x536e70[_0xb0b2db(0x222)]));;_0x536e70[_0xb0b2db(0x15b)](_0x453cbc['length'],0x0)&&(_0x536e70[_0xb0b2db(0x175)](_0x536e70['oOfLG'],_0x536e70[_0xb0b2db(0x195)])?(_0x573354['info']('['+_0x629d91+_0xb0b2db(0x1fd)+_0x5e9389['status']+'\x20data\x20:\x20'+_0x5b35d6[_0xb0b2db(0x19a)]+_0xb0b2db(0x182)+_0x4b62db[_0xb0b2db(0x1de)]),_0x5c6ee5[_0xb0b2db(0x1de)]&&_0x139409['error'](_0xb0b2db(0x1b9)+_0x5dc4fd[_0xb0b2db(0x1de)]['stack'])):(_0x57aa74='Missing\x20required\x20arguments:\x20'+_0x453cbc[_0xb0b2db(0x19e)](',\x20')+_0xb0b2db(0x217),await _0x536e70[_0xb0b2db(0x160)](reportToGalactusAndSendToEDS,_0x513f4a,_0x1c2f78,_0x57aa74,messageTypes[_0xb0b2db(0x203)],_0x536e70[_0xb0b2db(0x173)],_0x536e70[_0xb0b2db(0x20c)],_0x536e70[_0xb0b2db(0x22b)]),logger['error'](_0x57aa74),process[_0xb0b2db(0x1e4)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0xb0b2db(0x22f)](_0x513f4a['cloudProvider'][_0xb0b2db(0x22e)]())&&(_0x536e70[_0xb0b2db(0x1ca)](_0x536e70[_0xb0b2db(0x233)],_0x536e70[_0xb0b2db(0x233)])?_0x5dfcb9[_0xb0b2db(0x1e4)](0x1):(_0x57aa74=_0x536e70[_0xb0b2db(0x1df)],await _0x536e70[_0xb0b2db(0x160)](reportToGalactusAndSendToEDS,_0x513f4a,_0x1c2f78,_0x57aa74,messageTypes['ERROR'],_0x536e70['ecHGl'],_0x536e70[_0xb0b2db(0x237)],_0x536e70[_0xb0b2db(0x22b)]),logger[_0xb0b2db(0x1de)](_0x57aa74),!_0x513f4a['cloudProvider']&&(_0x536e70[_0xb0b2db(0x187)](_0x536e70[_0xb0b2db(0x238)],_0x536e70[_0xb0b2db(0x1b7)])?_0x518c82[_0xb0b2db(0x154)](_0x536e70['pVnLA']):(logger[_0xb0b2db(0x1be)](_0xb0b2db(0x152)+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x513f4a['cloudProvider']=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER'])))),global_registry[_0xb0b2db(0x1d1)]=_0x513f4a[_0xb0b2db(0x1d1)],global_registry[_0xb0b2db(0x1cf)]=_0x513f4a[_0xb0b2db(0x1cf)],global_registry[_0xb0b2db(0x21f)]=_0x513f4a[_0xb0b2db(0x1e2)];}}else{if(_0x513f4a['gridProfile']){if(_0x536e70[_0xb0b2db(0x23c)](_0x536e70[_0xb0b2db(0x23f)],_0x536e70[_0xb0b2db(0x1a3)]))_0x52918c+='Cluster\x20'+_0x5e2ae6[_0xb0b2db(0x1d1)]+_0xb0b2db(0x1a1);else{global_registry[_0xb0b2db(0x1ea)]=_0x513f4a['gridProfile'],logger[_0xb0b2db(0x157)](_0xb0b2db(0x1d0)+_0x513f4a['gridProfile']);const _0x588a40=_0xb0b2db(0x1cd)+AG_API_URL+_0xb0b2db(0x174),_0x3476dd={};_0x3476dd[_0xb0b2db(0x20f)]=_0x536e70[_0xb0b2db(0x1b4)],_0x3476dd[_0xb0b2db(0x235)]=global_registry[_0xb0b2db(0x241)],_0x3476dd[_0xb0b2db(0x224)]=![];const _0x593f17=_0x3476dd,_0x5af970=await _0x536e70['byiAg'](got,_0x588a40,_0x593f17),_0x5625e9=await _0x536e70['pVXLE'](responseValidation,_0x5af970,_0x536e70[_0xb0b2db(0x1ee)],_0x536e70[_0xb0b2db(0x1e5)],_0x513f4a,_0x1c2f78);let _0x230c72={};if(_0x536e70[_0xb0b2db(0x1cb)](_0x5625e9,0xc8)){if(_0x536e70[_0xb0b2db(0x175)](_0x536e70['qqvFJ'],_0x536e70[_0xb0b2db(0x20d)])){const _0x52b9b5=JSON[_0xb0b2db(0x15c)](_0x5af970[_0xb0b2db(0x21c)]),_0x30ad3e=_0x52b9b5[_0xb0b2db(0x162)](_0xbf9126=>_0xbf9126[_0xb0b2db(0x191)]===_0x513f4a[_0xb0b2db(0x1ea)])||null;_0x536e70[_0xb0b2db(0x17e)](isUndefined,_0x30ad3e)?_0x536e70['dlnqc'](_0x536e70[_0xb0b2db(0x150)],_0x536e70[_0xb0b2db(0x20b)])?_0x260e08[_0xb0b2db(0x1be)](_0xb0b2db(0x213)+_0x184ede[_0xb0b2db(0x1d1)]+_0xb0b2db(0x206)):(_0x57aa74=_0xb0b2db(0x218)+_0x513f4a[_0xb0b2db(0x1ea)]+_0xb0b2db(0x18a),await _0x536e70[_0xb0b2db(0x156)](reportToGalactusAndSendToEDS,_0x513f4a,_0x1c2f78,_0x57aa74,messageTypes[_0xb0b2db(0x203)],_0x536e70['ecHGl'],_0x536e70[_0xb0b2db(0x1dd)],_0x536e70[_0xb0b2db(0x22b)]),logger[_0xb0b2db(0x1de)](_0x57aa74),process[_0xb0b2db(0x1e4)](0x1)):_0x536e70[_0xb0b2db(0x23c)](_0x536e70['pvtav'],_0x536e70[_0xb0b2db(0x1e7)])?_0x381b55[_0xb0b2db(0x154)](_0x536e70[_0xb0b2db(0x232)]):_0x230c72=_0x30ad3e;}else _0x45341e=_0x5186d2;}else _0x536e70[_0xb0b2db(0x23d)](_0x536e70[_0xb0b2db(0x1c0)],_0x536e70[_0xb0b2db(0x1c0)])?process[_0xb0b2db(0x1e4)](0x1):(_0x29acbc[_0xb0b2db(0x1de)](_0x536e70[_0xb0b2db(0x1ff)]),_0x2f877f['exit'](0x1));const _0x2f5237={};_0x2f5237[_0xb0b2db(0x1e0)]=WS_EVENTS[_0xb0b2db(0x204)],_0x2f5237[_0xb0b2db(0x1d9)]=_0x536e70[_0xb0b2db(0x1ce)],webSocketUtils[_0xb0b2db(0x165)](_0x1c2f78,_0x2f5237),global_registry[_0xb0b2db(0x1cf)]=_0x230c72[_0xb0b2db(0x1cf)],global_registry[_0xb0b2db(0x21f)]=_0x230c72[_0xb0b2db(0x1e2)],global_registry['clusterName']=_0x230c72[_0xb0b2db(0x1d1)];}}else{if(_0x536e70[_0xb0b2db(0x1aa)](_0x536e70['eXJpT'],_0x536e70['eXJpT']))logger[_0xb0b2db(0x1de)](_0x536e70[_0xb0b2db(0x1ff)]),process[_0xb0b2db(0x1e4)](0x1);else{const {header:_0x3318aa,response:_0x59e75e}=_0x5a318d,{status:_0x19cc39,data:_0x5c6aa1,error:_0x1893e1}=_0x59e75e;_0x43c489+=_0x3318aa+'\x20#'+_0x536e70[_0xb0b2db(0x1ab)](_0x19f62b,0x1)+'\x0a',_0x1067b1+=_0xb0b2db(0x168)+(_0x19cc39?_0x536e70[_0xb0b2db(0x161)]:_0x536e70[_0xb0b2db(0x190)])+'\x0a',_0x215556+='Message:\x20'+_0x536e70['EcURM'](_0x5c6aa1,_0x536e70[_0xb0b2db(0x1d8)])+'\x0a',_0x1893e1&&(_0x172d22+=_0x536e70[_0xb0b2db(0x225)],_0x224741+=_0xb0b2db(0x1c4)+(_0x1893e1[_0xb0b2db(0x1d9)]||_0x536e70[_0xb0b2db(0x1d8)])+'\x0a',_0xafcb41+=_0xb0b2db(0x240)+(_0x1893e1['code']||_0x536e70[_0xb0b2db(0x1d8)])+'\x0a',_0xbf6afe+='\x20\x20Stack:\x20'+(_0x1893e1[_0xb0b2db(0x212)]||_0x536e70[_0xb0b2db(0x1d8)])+'\x0a'),_0x49556b+='\x0a\x0a';}}}}}catch(_0x197c18){_0x536e70[_0xb0b2db(0x197)](_0x536e70['FZTWu'],_0x536e70[_0xb0b2db(0x1fe)])?_0x137d50[_0xb0b2db(0x1de)](_0xb0b2db(0x1b9)+_0x1910a7[_0xb0b2db(0x1de)]['stack']):(_0x57aa74=_0xb0b2db(0x202)+_0x197c18+':\x20'+_0x197c18['stack'],logger['error'](_0x57aa74),await _0x536e70[_0xb0b2db(0x156)](reportToGalactusAndSendToEDS,_0x513f4a,_0x1c2f78,_0x57aa74,messageTypes['ERROR'],_0x536e70['ecHGl'],_0x536e70['CNLKJ'],_0x536e70[_0xb0b2db(0x22b)]),process[_0xb0b2db(0x1e4)](0x1));}}function printResponse(_0x2cf978,_0x2a5cf3){const _0x1cd196=a17_0x4fce1a,_0xc86d79={};_0xc86d79['ZYzdF']=_0x1cd196(0x1de),_0xc86d79['pvrSl']=function(_0x3272fd,_0x560297){return _0x3272fd!==_0x560297;},_0xc86d79[_0x1cd196(0x1c7)]=_0x1cd196(0x1b0);const _0x5e3253=_0xc86d79;logger[_0x1cd196(0x1be)]('['+_0x2cf978+_0x1cd196(0x1fd)+_0x2a5cf3['status']+_0x1cd196(0x226)+_0x2a5cf3['data']+_0x1cd196(0x182)+_0x2a5cf3[_0x1cd196(0x1de)]);if(_0x2a5cf3[_0x1cd196(0x1de)]){if(_0x5e3253[_0x1cd196(0x1bb)](_0x5e3253[_0x1cd196(0x1c7)],_0x5e3253[_0x1cd196(0x1c7)])){const _0x406c39={};_0x406c39[_0x1cd196(0x1e0)]=_0x55b6b6['LOG'],_0x406c39['message']=_0x377ec3,_0x1b4be4[_0x1cd196(0x165)](_0x359ef9,_0x406c39,_0x5e3253['ZYzdF'],!![]);}else logger[_0x1cd196(0x1de)](_0x1cd196(0x1b9)+_0x2a5cf3[_0x1cd196(0x1de)][_0x1cd196(0x212)]);}}function a17_0x18e1(_0x55da23,_0x264c28){const _0x278dfb=a17_0x278d();return a17_0x18e1=function(_0x18e148,_0x3398c5){_0x18e148=_0x18e148-0x14f;let _0x2ff4f6=_0x278dfb[_0x18e148];return _0x2ff4f6;},a17_0x18e1(_0x55da23,_0x264c28);}function a17_0x278d(){const _0x17dc8d=['Vjlir','name','mXjJA','KSoIe','description','oOfLG','ybDgO','MTpDL','getUTCHours','delay','data','password','pVnLA','CLOUD_PROVIDER','join','Cluster\x20','will\x20be\x20created','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','vSFWt','jNNxP','hZdIz','epilogue','Ipqgj','ADOtG','pre-check-failed','opIEf','etRuA','goNor','RlUKM','isClusterPresent','FdaXo','Browserstack','hyEXO','getUTCMonth','cloud-provider','getUTCDate','reuSm','bstackUsername','Yhlic','UEUWU','GET','error\x20stack\x20:\x20','Aocgl','pvrSl','Grid\x20profile\x20fetched\x20for\x20pre-check','accessResp','info','forEach','ltSao','readFileSync','../../config/logger','command','\x20\x20Message:\x20','XZbHc','140500ZKZFKp','TGZOi','WebSocket','cluster-name','EhvHh','wgsHi','Tool\x20Installed','https://','xjdhW','cloudProvider','grid\x20profile\x20flow\x20','clusterName','Failed\x20in\x20pre-check!\x20Error:\x20','PZEpE','split','connectionTimeout','SDMCb','stringify','OGbox','message','uCVUg','jyXeV','cloud-provider-not-supported','YUrmI','error','hhntw','type','grid-profile','region','1780MQcEtm','exit','XDigv','\x20===\x0a\x0a','XBOSl','pre-check-grid-profile-empty','Error\x20Details:\x0a','gridProfile','pwYgH','pre-check-grid-called','wWEoy','yLqaP','../../config/constants','ARBnM','FQxmd','Failure','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','isTrialGridAccessible','438147jfMcYH','<PasswordPlaceholder>','GeRRW','unable\x20to\x20verify\x20if\x20cluster\x20`','header','../../cloudproviders/utils','INFO','credential-not-found',']\x20status\x20:\x20','tNCtj','GDhtv','Success','checkAccess','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','ERROR','LOG','144NZDTsA','`\x20already\x20exists','../../utils/webSocketUtils','rTmGd','IzwcF','existsSync','HIFdJ','ZElax','mmExe','SSL\x20Configured','method','mnjDG','uncGI','stack','Cluster\x20`','Pre-check\x20running\x20for\x20Cloud\x20-\x20','OiJEv','tAqya','.\x20Please\x20provide\x20all\x20required\x20arguments.','Invalid\x20input.\x20grid\x20profiles:\x20','OKcsl','rttcx','bBoNE','body','pre-check','EkJck','clusterRegion','GQPOd','aqcdO','jgUFr','is\x20already\x20present','throwHttpErrors','DMjFQ','\x20data\x20:\x20','cluster-check-failed-','code','requestId','4337270GyxLxc','TXEXK','wVcEG','dAoNm','toLowerCase','includes','Vscyp','niDUj','JMTql','Jkdxk','OoQsh','headers','PtaAj','CNLKJ','chchf','pdrUe','Opreg','utf-8','AcKTC','XUhPx','log/report_','zynUs','\x20\x20Code:\x20','authHeader','cPpYJ','zaqYa','sJngE','response','Ngcts','TwwRu','usage','HKHLQ','zCMYY','Setting\x20cloud\x20provider\x20as\x20','Message:\x20','push','TYOmm','HwHkq','debug','stack\x20trace\x20','RzEMv','1615024aQyPGI','izrKX','parse','RvELI','getUTCMinutes','writeFileSync','cFFAL','KfazN','find','UeTHO','pWzYa','sendEventToBackend','WcmQm','help','Status:\x20','dfhQE','Whitelisted\x20browserstack','oYfSE','username','4|3|2|1|0','OdIwJ','argv','../../utils/instrumentationUtils','../../utils/utilityMethods','pre_check','ecHGl','/packages/cli/get-all-grid-profiles','iYxYy','options','cpbqs','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','init','5391QkdMdh','===\x20Precheck\x20Report\x20-\x20','8VtatlX','`\x20is\x20present\x20in\x20region\x20`','JJxgv','replace','cskpI','RcXVp','\x20error\x20:\x20','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','cfibY','`\x20,error\x20:\x20','bstackAccesskey','ukPKM','45255IVFptp','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','Nvnbw','375203Ynzxyo','pre-check-cluster-args-not-passed','QKczL','isTls1_2_SUPPORTED'];a17_0x278d=function(){return _0x17dc8d;};return a17_0x278d();}async function generateReport(_0x35322f,_0x260501){const _0x54525b=a17_0x4fce1a,_0x460f31={'vSFWt':function(_0x59a757,_0x473078){return _0x59a757+_0x473078;},'zaqYa':_0x54525b(0x200),'Nvnbw':_0x54525b(0x1f2),'RUwqT':function(_0x45bc67,_0x50b057){return _0x45bc67||_0x50b057;},'hZdIz':'N/A','GeRRW':_0x54525b(0x1e9),'SDMCb':'Cluster\x20details\x0a-----------------------\x0a','ARBnM':function(_0x4703ae,_0x185961){return _0x4703ae!=_0x185961;},'cfibY':'is\x20already\x20present','dfhQE':_0x54525b(0x1a0),'ADOtG':function(_0x4fb80b){return _0x4fb80b();}};let _0x5bf2bc=_0x54525b(0x17b)+global_registry[_0x54525b(0x1cf)]+_0x54525b(0x1e6);return _0x35322f[_0x54525b(0x1bf)]((_0x2652bd,_0x34f47b)=>{const _0xc7e61b=_0x54525b,{header:_0x448988,response:_0x303d2f}=_0x2652bd,{status:_0x133fb5,data:_0x1604e9,error:_0x1e4aab}=_0x303d2f;_0x5bf2bc+=_0x448988+'\x20#'+_0x460f31[_0xc7e61b(0x1a2)](_0x34f47b,0x1)+'\x0a',_0x5bf2bc+=_0xc7e61b(0x168)+(_0x133fb5?_0x460f31[_0xc7e61b(0x243)]:_0x460f31[_0xc7e61b(0x18b)])+'\x0a',_0x5bf2bc+=_0xc7e61b(0x153)+_0x460f31['RUwqT'](_0x1604e9,_0x460f31[_0xc7e61b(0x1a4)])+'\x0a',_0x1e4aab&&(_0x5bf2bc+=_0x460f31[_0xc7e61b(0x1f7)],_0x5bf2bc+=_0xc7e61b(0x1c4)+(_0x1e4aab[_0xc7e61b(0x1d9)]||_0x460f31[_0xc7e61b(0x1a4)])+'\x0a',_0x5bf2bc+=_0xc7e61b(0x240)+(_0x1e4aab[_0xc7e61b(0x228)]||_0x460f31[_0xc7e61b(0x1a4)])+'\x0a',_0x5bf2bc+='\x20\x20Stack:\x20'+(_0x1e4aab[_0xc7e61b(0x212)]||_0x460f31[_0xc7e61b(0x1a4)])+'\x0a'),_0x5bf2bc+='\x0a\x0a';}),_0x5bf2bc+=_0x460f31[_0x54525b(0x1d6)],_0x460f31[_0x54525b(0x1f0)](_0x260501,null)?_0x5bf2bc+='Cluster\x20'+global_registry['clusterName']+'\x20'+(_0x260501?_0x460f31[_0x54525b(0x184)]:_0x460f31[_0x54525b(0x169)])+'\x0a\x0a':_0x5bf2bc+=_0x54525b(0x19f)+global_registry[_0x54525b(0x1d1)]+_0x54525b(0x1a1),_0x5bf2bc+=_0x460f31[_0x54525b(0x1a7)](getSystemMetaData),_0x5bf2bc;};exports['handler']=async function(_0x5b5336){const _0xae5430=a17_0x4fce1a,_0x363034={'TwwRu':function(_0x36f411){return _0x36f411();},'pwYgH':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','RcXVp':function(_0x26bcbf,_0x222186,_0x4bf947,_0xb8ac4d,_0x105c4a,_0x2a9194,_0x1aa673,_0x3ea97c){return _0x26bcbf(_0x222186,_0x4bf947,_0xb8ac4d,_0x105c4a,_0x2a9194,_0x1aa673,_0x3ea97c);},'Vscyp':_0xae5430(0x1ec),'lolZl':_0xae5430(0x1fc),'Ngcts':_0xae5430(0x1de),'RzEMv':function(_0x111e05,_0x4b17a5,_0x11cf04,_0x1a0277,_0x1757a3,_0x4ba242,_0x189710){return _0x111e05(_0x4b17a5,_0x11cf04,_0x1a0277,_0x1757a3,_0x4ba242,_0x189710);},'OdIwJ':'<UsernamePlaceholder>','OgPVv':_0xae5430(0x1f6),'FQxmd':function(_0x3a4d9e,_0x6e5085,_0xc48ab8){return _0x3a4d9e(_0x6e5085,_0xc48ab8);},'aqcdO':function(_0x11dfcc,_0x33a471,_0x4eb303,_0x47f1a3,_0x2fcc1d,_0x24f1d8,_0x2bdff5){return _0x11dfcc(_0x33a471,_0x4eb303,_0x47f1a3,_0x2fcc1d,_0x24f1d8,_0x2bdff5);},'aIFdk':'dummy-grid','TYOmm':function(_0x449ac8,_0x423af9,_0xbe71c4){return _0x449ac8(_0x423af9,_0xbe71c4);},'pdrUe':'toolInstalledResp','lOiyD':_0xae5430(0x16d),'KSoIe':function(_0x2b52cf,_0x11e40e,_0x5f4df7){return _0x2b52cf(_0x11e40e,_0x5f4df7);},'niDUj':_0xae5430(0x1bd),'hMqdU':_0xae5430(0x1f4),'BFfZL':function(_0x148340,_0x44df38){return _0x148340(_0x44df38);},'ybDgO':'TLSv1_2_client_method','IzwcF':_0xae5430(0x18f),'sJngE':_0xae5430(0x1cc),'rttcx':'User\x20Access','QKczL':_0xae5430(0x16a),'Opreg':_0xae5430(0x20e),'TOzGY':function(_0x5d1c7b,_0x2f9d02){return _0x5d1c7b+_0x2f9d02;},'rTmGd':_0xae5430(0x23b),'EkJck':function(_0x37a12d,_0x5e90ee,_0x33bc2f,_0x2e6254,_0x12ed00,_0x53d3d0,_0x38c943){return _0x37a12d(_0x5e90ee,_0x33bc2f,_0x2e6254,_0x12ed00,_0x53d3d0,_0x38c943);},'opIEf':_0xae5430(0x1a8)};let _0x407bf2,_0x1e3a45;try{global_registry[_0xae5430(0x229)]=_0x363034[_0xae5430(0x247)](uuidv4);!fs[_0xae5430(0x20a)](_0x363034[_0xae5430(0x247)](getCredentialsPath))&&(_0x1e3a45=_0x363034[_0xae5430(0x1eb)],logger[_0xae5430(0x1de)](_0x1e3a45),await _0x363034[_0xae5430(0x181)](reportToGalactusAndSendToEDS,_0x5b5336,_0x407bf2,_0x1e3a45,messageTypes[_0xae5430(0x203)],_0x363034[_0xae5430(0x230)],_0x363034['lolZl'],_0x363034['Ngcts']),process[_0xae5430(0x1e4)](0x1));_0x363034[_0xae5430(0x159)](sendInstrumentationEvent,_0x5b5336,_0x363034[_0xae5430(0x230)],messageTypes[_0xae5430(0x1fb)],null,null,_0x5b5336);const _0x3e4be3=JSON[_0xae5430(0x15c)](fs[_0xae5430(0x1c1)](_0x363034[_0xae5430(0x247)](getCredentialsPath)));global_registry[_0xae5430(0x1b5)]=_0x3e4be3[_0xae5430(0x1af)]['username'],global_registry[_0xae5430(0x186)]=_0x3e4be3['Browserstack'][_0xae5430(0x19b)];const _0x5784c6=WS_ENDPOINT[_0xae5430(0x17f)](_0x363034[_0xae5430(0x16e)],_0x3e4be3[_0xae5430(0x1af)][_0xae5430(0x16c)])[_0xae5430(0x17f)](_0x363034['OgPVv'],_0x3e4be3[_0xae5430(0x1af)][_0xae5430(0x19b)]),_0xf501cc={};_0xf501cc[_0xae5430(0x1c8)]=ws,_0xf501cc[_0xae5430(0x1d5)]=0x36ee80,_0x407bf2=new ReconnectingWebSocket(_0x5784c6,[],_0xf501cc),global_registry['authHeader']=_0x363034['FQxmd'](getAuthHeader,global_registry[_0xae5430(0x1b5)],global_registry[_0xae5430(0x186)]),await _0x363034[_0xae5430(0x1f1)](inputValidation,_0x5b5336,_0x407bf2),logger['info'](_0xae5430(0x214)+global_registry['cloudProvider']+'\x20region\x20-\x20'+global_registry['clusterRegion']);let _0x3d0b93=await _0x363034[_0xae5430(0x221)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry['clusterName'],_0x363034['aIFdk'],_0x407bf2,webSocketUtils,_0x5b5336);const _0x31a1a5=await _0x3d0b93['isCliToolInstalled']();_0x363034['TYOmm'](printResponse,_0x363034[_0xae5430(0x239)],_0x31a1a5),_0x3d0b93=await _0x3d0b93[_0xae5430(0x179)]();let _0x13ae1a=![];try{_0x13ae1a=await _0x3d0b93[_0xae5430(0x1ad)]();}catch(_0x501a13){const _0x2d29a1=_0x363034['lOiyD'][_0xae5430(0x1d4)]('|');let _0x5ddb6e=0x0;while(!![]){switch(_0x2d29a1[_0x5ddb6e++]){case'0':await _0x363034[_0xae5430(0x181)](reportToGalactusAndSendToEDS,_0x5b5336,_0x407bf2,_0x1e3a45,messageTypes[_0xae5430(0x203)],_0x363034[_0xae5430(0x230)],_0xae5430(0x227)+global_registry[_0xae5430(0x1cf)],_0x363034['Ngcts']);continue;case'1':_0x1e3a45+='\x0a'+JSON[_0xae5430(0x1d7)](_0x501a13[_0xae5430(0x212)]);continue;case'2':logger[_0xae5430(0x1de)](_0x1e3a45);continue;case'3':_0x13ae1a=null;continue;case'4':_0x1e3a45=_0xae5430(0x1f8)+global_registry[_0xae5430(0x1d1)]+_0xae5430(0x17d)+global_registry['clusterRegion']+_0xae5430(0x185)+_0x501a13;continue;}break;}}_0x13ae1a&&logger[_0xae5430(0x1be)](_0xae5430(0x213)+global_registry['clusterName']+'`\x20already\x20exists');const _0xa0cb97=await _0x3d0b93[_0xae5430(0x201)]();_0x363034[_0xae5430(0x193)](printResponse,_0x363034[_0xae5430(0x231)],_0xa0cb97);const _0x28d0a6=await _0x363034[_0xae5430(0x247)](curlRequest);_0x363034[_0xae5430(0x193)](printResponse,_0x363034['hMqdU'],_0x28d0a6);const _0x49338e=await _0x363034['BFfZL'](isTlsSupported,_0x363034[_0xae5430(0x196)]);_0x363034['FQxmd'](printResponse,_0x363034[_0xae5430(0x209)],_0x49338e);const _0x516f25={};_0x516f25['header']=_0x363034[_0xae5430(0x244)],_0x516f25['response']=_0x31a1a5;const _0x16b76d={};_0x16b76d[_0xae5430(0x1f9)]=_0x363034[_0xae5430(0x21a)],_0x16b76d[_0xae5430(0x245)]=_0xa0cb97;const _0x20f95b={};_0x20f95b[_0xae5430(0x1f9)]=_0x363034[_0xae5430(0x18e)],_0x20f95b['response']=_0x28d0a6;const _0x477cd8={};_0x477cd8['header']=_0x363034[_0xae5430(0x23a)],_0x477cd8[_0xae5430(0x245)]=_0x49338e;const _0x41c782=[_0x516f25,_0x16b76d,_0x20f95b,_0x477cd8],_0x14bce2=await _0x363034[_0xae5430(0x155)](generateReport,_0x41c782,_0x13ae1a),_0x4bcf11=new Date(),_0x264b2e=_0x4bcf11['getUTCFullYear']()+'_'+_0x363034['TOzGY'](_0x4bcf11[_0xae5430(0x1b1)](),0x1)+'_'+_0x4bcf11[_0xae5430(0x1b3)]()+'_'+_0x4bcf11[_0xae5430(0x198)]()+'_'+_0x4bcf11[_0xae5430(0x15e)](),_0x3924ee=_0xae5430(0x23e)+_0x264b2e+'.txt';fs[_0xae5430(0x15f)](_0x3924ee,_0x14bce2,_0x363034[_0xae5430(0x208)]),logger[_0xae5430(0x1be)]('Report\x20saved\x20in\x20'+_0x3924ee),process[_0xae5430(0x1e4)](0x0);}catch(_0x143816){let _0x46b5ab=_0xae5430(0x1d2)+_0x143816+'\x20';logger['error'](_0x46b5ab),_0x46b5ab+='\x0a'+JSON[_0xae5430(0x1d7)](_0x143816['stack']),logger[_0xae5430(0x157)](_0xae5430(0x158)+_0x143816['stack']);if(_0x407bf2){const _0x26c423={};_0x26c423[_0xae5430(0x1e0)]=WS_EVENTS[_0xae5430(0x204)],_0x26c423[_0xae5430(0x1d9)]=_0x46b5ab,webSocketUtils['sendEventToBackend'](_0x407bf2,_0x26c423,_0x363034[_0xae5430(0x246)],!![]);}await webSocketUtils[_0xae5430(0x199)](0x7d0);const _0x235d3a={};_0x235d3a[_0xae5430(0x1de)]=_0x46b5ab,await _0x363034[_0xae5430(0x21e)](sendInstrumentationEvent,_0x5b5336,_0x363034[_0xae5430(0x230)],messageTypes['ERROR'],_0x363034[_0xae5430(0x1a9)],_0x235d3a,_0x5b5336),process[_0xae5430(0x1e4)](0x1);}};
1
+ const a17_0x301b62=a17_0x54db;function a17_0x54db(_0x44e1f7,_0x161050){const _0x26fb15=a17_0x26fb();return a17_0x54db=function(_0x54db7d,_0x26ddfb){_0x54db7d=_0x54db7d-0x121;let _0x13c5a7=_0x26fb15[_0x54db7d];return _0x13c5a7;},a17_0x54db(_0x44e1f7,_0x161050);}function a17_0x26fb(){const _0x13ff8f=['body','pSwwd','password','handler','`\x20is\x20present\x20in\x20region\x20`','hMJyt','push','error','\x20\x20Code:\x20','name','Status:\x20','message','LUtoD','isTls1_2_SUPPORTED','xlykV','ExQCV','UFDVq','fmfQC','654082JBjMfx','string','SWKJE','Error\x20Details:\x0a','ZXfdG','cloud-provider-not-supported','UVLvC','LNuzN','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','QskVs','init','uuid','N/A','WsHgI','debug','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','replace','\x20error\x20:\x20','grid','927932TUOgQZ','pre_check','../../utils/utilityMethods','Vzspq','WYAef','headers','rcOhr','code','credential-not-found','fKxbI','nWMIo','EoiTJ','help','grid-profile','getUTCFullYear','usage','TFKTo','clusterName','clusterRegion','exit','uqGXe','WNNWN','LOG','rSGpY','Whitelisted\x20browserstack','sendEventToBackend','argv','CmIJO','../../config/logger','BlofK','VKkHs','sFFaw','is\x20already\x20present','authHeader','error\x20stack\x20:\x20','ULkFk','pre-check-grid-called','YsEqc','region','loelM','isTrialGridAccessible','description','<UsernamePlaceholder>','dasbN','https://','eXIaN','Message:\x20','`\x20,error\x20:\x20','cluster-check-failed-','username','options','cluster-name','header','opNKD','tGNEJ','8851504TGnBXM','wExBo','join','NbcLZ','rTSzV','data','tAAsA','requestId','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','command','log/report_','QJkch','Failed\x20in\x20pre-check!\x20Error:\x20','lwJOq','cYRSt','getUTCMonth','\x20data\x20:\x20','bkhxl','WCljJ','nbKSn','VxKAR','gaMmB','Cluster\x20','slNVX','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','getUTCDate','aKkbe','dWFvy','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','AofIs','ZksWG','Oresy','FEAWB','ZeDkU','gPJAP','fAfkl','Cluster\x20details\x0a-----------------------\x0a','pre-check','yQeJr','.\x20Please\x20provide\x20all\x20required\x20arguments.','info','VwNsC','oVIBP','LcnZg','dIIvo','zTupK','RyFue','existsSync','CLOUD_PROVIDER','qakOO','gstUD','SSL\x20Configured','\x20\x20Message:\x20','getUTCHours','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','Success','response','ueDsG','\x20===\x0a\x0a','GOxlQ','GxiPS','stack','436545CbIBjI','nTMTm','tcJDv','CLcDf','will\x20be\x20created','.txt','260916ZAjlbZ','Setting\x20cloud\x20provider\x20as\x20','includes','toolInstalledResp','XQjYl','Failure','\x20\x20Stack:\x20','type','Grid\x20profile\x20fetched\x20for\x20pre-check','ROmtL','throwHttpErrors','<PasswordPlaceholder>','zjJgU','EbMfl','gIVDI','giCwQ','WhTlC','readFileSync','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','gkoWy','bstackAccesskey','status','WinBo','connectionTimeout','Invalid\x20input.\x20grid\x20profiles:\x20','ckMid','isCliToolInstalled','===\x20Precheck\x20Report\x20-\x20','delay','ZmfBn',']\x20status\x20:\x20','epilogue','WebSocket','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','gridProfile','1225476Bduuib','cloudProvider','toLowerCase','rQyLH','parse','kNMoW','IdlpV','pBURM','5ebUKsq','INFO','XApGE','SkxVX','Browserstack','GET','TdcQZ','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','ERROR','jmILc','bohnO','lYCdl','TTxBn','TLSv1_2_client_method','ZXbbT','reconnecting-websocket','loPao','WDijV','Cluster\x20`','HAqok','forEach','beYHt','mFCSR','VfGcf','/packages/cli/get-all-grid-profiles','0|4|1|3|2','../../utils/instrumentationUtils','KFNOn','jcrQZ','pre-check-cluster-args-not-passed','pre-check-grid-profile-empty','writeFileSync','Tool\x20Installed','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','BdLlp','ADlKb','cloud-provider','rmBVK','../../cloudproviders/utils','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','1860859snOXUQ','wQZZE'];a17_0x26fb=function(){return _0x13ff8f;};return a17_0x26fb();}(function(_0x46e0be,_0x42cffb){const _0x14f378=a17_0x54db,_0x41b916=_0x46e0be();while(!![]){try{const _0x503d01=-parseInt(_0x14f378(0x1b9))/0x1+-parseInt(_0x14f378(0x12b))/0x2+-parseInt(_0x14f378(0x1b3))/0x3+-parseInt(_0x14f378(0x13e))/0x4*(parseInt(_0x14f378(0x1e4))/0x5)+-parseInt(_0x14f378(0x1dc))/0x6+parseInt(_0x14f378(0x20c))/0x7+parseInt(_0x14f378(0x175))/0x8;if(_0x503d01===_0x42cffb)break;else _0x41b916['push'](_0x41b916['shift']());}catch(_0x360b97){_0x41b916['push'](_0x41b916['shift']());}}}(a17_0x26fb,0x3174e));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x301b62(0x136)),ReconnectingWebSocket=require(a17_0x301b62(0x1f3)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x301b62(0x140)),{logger}=require(a17_0x301b62(0x15a)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require(a17_0x301b62(0x20a)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x301b62(0x1fe));exports[a17_0x301b62(0x17e)]=a17_0x301b62(0x13d),exports['desc']=a17_0x301b62(0x191),exports['builder']=function(_0x54a195){const _0x5427d4=a17_0x301b62,_0x5f0240={};_0x5f0240[_0x5427d4(0x1c7)]=_0x5427d4(0x205),_0x5f0240['jcrQZ']=_0x5427d4(0x12c),_0x5f0240['giCwQ']=_0x5427d4(0x1cb),_0x5f0240[_0x5427d4(0x1f2)]=_0x5427d4(0x1da),_0x5f0240[_0x5427d4(0x169)]=_0x5427d4(0x1eb),_0x5f0240[_0x5427d4(0x1ee)]=_0x5427d4(0x14a);const _0x472961=_0x5f0240,_0x2b4478={};_0x2b4478[_0x5427d4(0x167)]=_0x472961['gIVDI'],_0x2b4478[_0x5427d4(0x1c0)]=_0x472961[_0x5427d4(0x200)];const _0x137a80={};_0x137a80[_0x5427d4(0x167)]=_0x472961[_0x5427d4(0x1c8)],_0x137a80['type']=_0x472961[_0x5427d4(0x200)];const _0x25c4df={};_0x25c4df[_0x5427d4(0x167)]=_0x472961[_0x5427d4(0x1f2)],_0x25c4df[_0x5427d4(0x1c0)]=_0x472961[_0x5427d4(0x200)];const _0x208cf6={};_0x208cf6[_0x5427d4(0x167)]=_0x472961[_0x5427d4(0x169)],_0x208cf6['type']=_0x472961[_0x5427d4(0x200)];const _0x3b7678={};return _0x3b7678[_0x5427d4(0x171)]=_0x2b4478,_0x3b7678[_0x5427d4(0x208)]=_0x137a80,_0x3b7678[_0x5427d4(0x164)]=_0x25c4df,_0x3b7678[_0x5427d4(0x14b)]=_0x208cf6,_0x54a195[_0x5427d4(0x14d)](HELP_HEADER_MESSAGE['pre_check'])[_0x5427d4(0x1d8)](HELP_FOOTER_MESSAGE)[_0x5427d4(0x170)](_0x3b7678)[_0x5427d4(0x14a)](_0x472961[_0x5427d4(0x1ee)])[_0x5427d4(0x158)];};async function inputValidation(_0x327e4b,_0x5a053a){const _0x594c6c=a17_0x301b62,_0x58a2f2={'QJkch':_0x594c6c(0x205),'LcnZg':_0x594c6c(0x12c),'wgvWR':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','cKqIL':_0x594c6c(0x1da),'tmMmc':_0x594c6c(0x1eb),'slNVX':'help','eXIaN':_0x594c6c(0x171),'HAqok':_0x594c6c(0x208),'opNKD':_0x594c6c(0x12e),'WsHgI':_0x594c6c(0x137),'nbKSn':_0x594c6c(0x15e),'gPJAP':_0x594c6c(0x1b7),'loPao':_0x594c6c(0x1ab),'LUtoD':_0x594c6c(0x215),'QskVs':_0x594c6c(0x164),'WCljJ':function(_0x3bf093,_0xfd3c1e){return _0x3bf093===_0xfd3c1e;},'rmBVK':_0x594c6c(0x18a),'aKkbe':function(_0x24536d,_0x3986fc){return _0x24536d!==_0x3986fc;},'ZXfdG':_0x594c6c(0x1f5),'ADlKb':_0x594c6c(0x194),'GqtwI':_0x594c6c(0x1e3),'mIRlq':_0x594c6c(0x128),'rTSzV':function(_0x360ee3,_0x206a63){return _0x360ee3!==_0x206a63;},'VfGcf':'iENiH','ZksWG':function(_0x4bcfff,_0x5f13dc){return _0x4bcfff!==_0x5f13dc;},'TdcQZ':'OqZJz','wExBo':function(_0xf117be,_0x390db6){return _0xf117be>_0x390db6;},'tcJDv':function(_0x4b14e0,_0x1c9384){return _0x4b14e0===_0x1c9384;},'gkoWy':_0x594c6c(0x1cf),'pSwwd':function(_0x27c20a,_0x51e7c9,_0x2e70ea,_0x53ba33,_0xa39563,_0x1fa43f,_0x59f49d,_0x209a91){return _0x27c20a(_0x51e7c9,_0x2e70ea,_0x53ba33,_0xa39563,_0x1fa43f,_0x59f49d,_0x209a91);},'fAfkl':'pre-check-grid-called','wQZZE':_0x594c6c(0x201),'XQjYl':_0x594c6c(0x15c),'NbcLZ':_0x594c6c(0x12d),'uOcPW':_0x594c6c(0x17d),'Vzspq':function(_0x579870,_0x50a7a9,_0x1a7f27,_0x348f2c,_0x34a85f,_0x2db864,_0x4e6f26,_0x48eca7){return _0x579870(_0x50a7a9,_0x1a7f27,_0x348f2c,_0x34a85f,_0x2db864,_0x4e6f26,_0x48eca7);},'ZeDkU':_0x594c6c(0x130),'fmfQC':function(_0x54789e,_0x15beec){return _0x54789e===_0x15beec;},'WhTlC':'LERjc','jmILc':function(_0x56e837,_0x5458ba){return _0x56e837!==_0x5458ba;},'WYAef':_0x594c6c(0x127),'qakOO':_0x594c6c(0x19e),'WjqEk':_0x594c6c(0x1e9),'ueDsG':function(_0x5857d4,_0x1a97fa,_0x61b4c2){return _0x5857d4(_0x1a97fa,_0x61b4c2);},'KFNOn':function(_0x314ea0,_0x3fdd22,_0x210a23,_0x466e54,_0x74a6c3,_0x258c8c){return _0x314ea0(_0x3fdd22,_0x210a23,_0x466e54,_0x74a6c3,_0x258c8c);},'ZyggX':_0x594c6c(0x19a),'ZngoS':_0x594c6c(0x14b),'nWMIo':'ovSUy','LIyWd':function(_0x4407da,_0xdc157f){return _0x4407da(_0xdc157f);},'rcOhr':_0x594c6c(0x19b),'EbMfl':_0x594c6c(0x1b0),'cnzat':_0x594c6c(0x202),'VxKAR':_0x594c6c(0x190),'CmIJO':_0x594c6c(0x15b),'cYRSt':function(_0x23d504,_0x2fef91){return _0x23d504===_0x2fef91;},'lYCdl':_0x594c6c(0x1fa),'XApGE':_0x594c6c(0x1c1),'rQyLH':function(_0x7b6981,_0x2906bb){return _0x7b6981===_0x2906bb;},'bkhxl':'DBNAR','jrxoP':function(_0x2777c3,_0x15d6ae){return _0x2777c3===_0x15d6ae;},'sFFaw':'MLINE'};let _0x186f33;try{if(_0x58a2f2[_0x594c6c(0x187)](_0x58a2f2[_0x594c6c(0x209)],_0x58a2f2[_0x594c6c(0x209)])){if(_0x327e4b['clusterName']||_0x327e4b['cloudProvider']||_0x327e4b['region']){if(_0x58a2f2[_0x594c6c(0x18f)](_0x58a2f2[_0x594c6c(0x12f)],_0x58a2f2[_0x594c6c(0x207)])){const _0x37c090=[];if(!_0x327e4b[_0x594c6c(0x14f)]){if(_0x58a2f2['aKkbe'](_0x58a2f2['GqtwI'],_0x58a2f2['mIRlq']))_0x37c090['push'](_0x58a2f2[_0x594c6c(0x16b)]);else{const _0x35b300={};_0x35b300[_0x594c6c(0x167)]=_0x58a2f2[_0x594c6c(0x180)],_0x35b300[_0x594c6c(0x1c0)]=_0x58a2f2[_0x594c6c(0x1a0)];const _0x395b06={};_0x395b06['description']=_0x58a2f2['wgvWR'],_0x395b06['type']=_0x58a2f2[_0x594c6c(0x1a0)];const _0x144828={};_0x144828[_0x594c6c(0x167)]=_0x58a2f2['cKqIL'],_0x144828[_0x594c6c(0x1c0)]=_0x58a2f2[_0x594c6c(0x1a0)];const _0x5a223e={};_0x5a223e[_0x594c6c(0x167)]=_0x58a2f2['tmMmc'],_0x5a223e[_0x594c6c(0x1c0)]=_0x58a2f2[_0x594c6c(0x1a0)];const _0x3494ef={};return _0x3494ef[_0x594c6c(0x171)]=_0x35b300,_0x3494ef['cloud-provider']=_0x395b06,_0x3494ef[_0x594c6c(0x164)]=_0x144828,_0x3494ef[_0x594c6c(0x14b)]=_0x5a223e,_0x463c9f[_0x594c6c(0x14d)](_0x18493d[_0x594c6c(0x13f)])['epilogue'](_0x3138af)[_0x594c6c(0x170)](_0x3494ef)[_0x594c6c(0x14a)](_0x58a2f2[_0x594c6c(0x18c)])['argv'];}};!_0x327e4b[_0x594c6c(0x1dd)]&&(_0x58a2f2[_0x594c6c(0x179)](_0x58a2f2[_0x594c6c(0x1fb)],_0x58a2f2[_0x594c6c(0x1fb)])?_0x4f7e62[_0x594c6c(0x214)](_0x58a2f2[_0x594c6c(0x16b)]):_0x37c090[_0x594c6c(0x214)](_0x58a2f2[_0x594c6c(0x1f7)]));;!_0x327e4b[_0x594c6c(0x164)]&&(_0x58a2f2[_0x594c6c(0x193)](_0x58a2f2['TdcQZ'],_0x58a2f2[_0x594c6c(0x1ea)])?_0x4cf435[_0x594c6c(0x19d)]('Cluster\x20`'+_0x41c275[_0x594c6c(0x14f)]+'`\x20already\x20exists'):_0x37c090[_0x594c6c(0x214)](_0x58a2f2[_0x594c6c(0x134)]));;_0x58a2f2[_0x594c6c(0x176)](_0x37c090['length'],0x0)&&(_0x58a2f2[_0x594c6c(0x1b5)](_0x58a2f2[_0x594c6c(0x1cc)],_0x58a2f2[_0x594c6c(0x1cc)])?(_0x186f33='Missing\x20required\x20arguments:\x20'+_0x37c090[_0x594c6c(0x177)](',\x20')+_0x594c6c(0x19c),await _0x58a2f2['pSwwd'](reportToGalactusAndSendToEDS,_0x327e4b,_0x5a053a,_0x186f33,messageTypes[_0x594c6c(0x1ec)],_0x58a2f2[_0x594c6c(0x198)],_0x58a2f2[_0x594c6c(0x20d)],_0x58a2f2['LUtoD']),logger[_0x594c6c(0x215)](_0x186f33),process[_0x594c6c(0x151)](0x1)):_0x57071a[_0x594c6c(0x214)](_0x58a2f2[_0x594c6c(0x1f7)])),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x594c6c(0x1bb)](_0x327e4b['cloudProvider'][_0x594c6c(0x1de)]())&&(_0x58a2f2[_0x594c6c(0x179)](_0x58a2f2[_0x594c6c(0x1bd)],_0x58a2f2[_0x594c6c(0x178)])?(_0x186f33=_0x58a2f2['uOcPW'],await _0x58a2f2[_0x594c6c(0x141)](reportToGalactusAndSendToEDS,_0x327e4b,_0x5a053a,_0x186f33,messageTypes['ERROR'],_0x58a2f2[_0x594c6c(0x198)],_0x58a2f2[_0x594c6c(0x196)],_0x58a2f2['LUtoD']),logger[_0x594c6c(0x215)](_0x186f33),!_0x327e4b[_0x594c6c(0x1dd)]&&(_0x58a2f2[_0x594c6c(0x12a)](_0x58a2f2[_0x594c6c(0x1c9)],_0x58a2f2[_0x594c6c(0x1c9)])?(logger[_0x594c6c(0x19d)](_0x594c6c(0x1ba)+DEFAULT_CLUSTER_DETAILS[_0x594c6c(0x1a5)]+'\x20'),_0x327e4b['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x594c6c(0x1a5)]):(_0x421ca9+=_0x58a2f2[_0x594c6c(0x173)],_0x447de5+=_0x594c6c(0x1a9)+(_0x5c8ef4[_0x594c6c(0x124)]||_0x58a2f2[_0x594c6c(0x138)])+'\x0a',_0x34bcc3+=_0x594c6c(0x121)+(_0x2f9448['code']||_0x58a2f2['WsHgI'])+'\x0a',_0x39f1e3+=_0x594c6c(0x1bf)+(_0x3199ae[_0x594c6c(0x1b2)]||_0x58a2f2[_0x594c6c(0x138)])+'\x0a'))):_0x399d3c+=_0x594c6c(0x18b)+_0x85f28e[_0x594c6c(0x14f)]+_0x594c6c(0x13a)),global_registry[_0x594c6c(0x14f)]=_0x327e4b['clusterName'],global_registry[_0x594c6c(0x1dd)]=_0x327e4b[_0x594c6c(0x1dd)],global_registry['clusterRegion']=_0x327e4b['region'];}else _0x14d6c8[_0x594c6c(0x19d)]('['+_0x55af68+']\x20status\x20:\x20'+_0x5dfe05[_0x594c6c(0x1ce)]+_0x594c6c(0x185)+_0x2b7828['data']+_0x594c6c(0x13c)+_0x13a277[_0x594c6c(0x215)]),_0x14b9f8[_0x594c6c(0x215)]&&_0x191315[_0x594c6c(0x215)](_0x594c6c(0x160)+_0x315c64[_0x594c6c(0x215)]['stack']);}else{if(_0x327e4b[_0x594c6c(0x1db)]){if(_0x58a2f2['jmILc'](_0x58a2f2[_0x594c6c(0x142)],_0x58a2f2[_0x594c6c(0x1a6)])){global_registry[_0x594c6c(0x1db)]=_0x327e4b[_0x594c6c(0x1db)],logger[_0x594c6c(0x139)]('grid\x20profile\x20flow\x20'+_0x327e4b[_0x594c6c(0x1db)]);const _0x504c4f=_0x594c6c(0x16a)+AG_API_URL+_0x594c6c(0x1fc),_0x1ba030={};_0x1ba030['method']=_0x58a2f2['WjqEk'],_0x1ba030[_0x594c6c(0x143)]=global_registry[_0x594c6c(0x15f)],_0x1ba030[_0x594c6c(0x1c3)]=![];const _0x308ef4=_0x1ba030,_0x39d146=await _0x58a2f2[_0x594c6c(0x1ae)](got,_0x504c4f,_0x308ef4),_0x4a1609=await _0x58a2f2[_0x594c6c(0x1ff)](responseValidation,_0x39d146,_0x58a2f2['ZyggX'],_0x58a2f2['ZngoS'],_0x327e4b,_0x5a053a);let _0x23eb60={};if(_0x58a2f2[_0x594c6c(0x1b5)](_0x4a1609,0xc8)){if(_0x58a2f2[_0x594c6c(0x1ed)](_0x58a2f2[_0x594c6c(0x148)],_0x58a2f2[_0x594c6c(0x148)]))_0x275c67[_0x594c6c(0x19d)]('Setting\x20cloud\x20provider\x20as\x20'+_0x21e0f9[_0x594c6c(0x1a5)]+'\x20'),_0x22410f['cloudProvider']=_0x567978[_0x594c6c(0x1a5)];else{const _0x55a334=JSON[_0x594c6c(0x1e0)](_0x39d146[_0x594c6c(0x20e)]),_0x1a5fce=_0x55a334['find'](_0x105822=>_0x105822[_0x594c6c(0x122)]===_0x327e4b[_0x594c6c(0x1db)])||null;_0x58a2f2['LIyWd'](isUndefined,_0x1a5fce)?_0x58a2f2[_0x594c6c(0x1ed)](_0x58a2f2[_0x594c6c(0x144)],_0x58a2f2[_0x594c6c(0x1c6)])?(_0x186f33=_0x594c6c(0x1d1)+_0x327e4b['gridProfile']+_0x594c6c(0x20b),await _0x58a2f2[_0x594c6c(0x20f)](reportToGalactusAndSendToEDS,_0x327e4b,_0x5a053a,_0x186f33,messageTypes['ERROR'],_0x58a2f2[_0x594c6c(0x198)],_0x58a2f2['cnzat'],_0x58a2f2[_0x594c6c(0x125)]),logger[_0x594c6c(0x215)](_0x186f33),process['exit'](0x1)):_0x3e4b37+=_0x594c6c(0x18b)+_0x42bc9a['clusterName']+'\x20'+(_0x5a35a9?_0x58a2f2[_0x594c6c(0x188)]:_0x58a2f2[_0x594c6c(0x197)])+'\x0a\x0a':_0x58a2f2['WCljJ'](_0x58a2f2[_0x594c6c(0x189)],_0x58a2f2[_0x594c6c(0x159)])?(_0x30dd33[_0x594c6c(0x215)](_0x58a2f2['loPao']),_0x8b7a23['exit'](0x1)):_0x23eb60=_0x1a5fce;}}else _0x58a2f2[_0x594c6c(0x183)](_0x58a2f2[_0x594c6c(0x1ef)],_0x58a2f2[_0x594c6c(0x1ef)])?process[_0x594c6c(0x151)](0x1):_0x44613d[_0x594c6c(0x151)](0x1);const _0x3de780={};_0x3de780[_0x594c6c(0x1c0)]=WS_EVENTS['LOG'],_0x3de780[_0x594c6c(0x124)]=_0x58a2f2[_0x594c6c(0x1e6)],webSocketUtils[_0x594c6c(0x157)](_0x5a053a,_0x3de780),global_registry[_0x594c6c(0x1dd)]=_0x23eb60['cloudProvider'],global_registry[_0x594c6c(0x150)]=_0x23eb60['region'],global_registry[_0x594c6c(0x14f)]=_0x23eb60[_0x594c6c(0x14f)];}else _0x4732f5=_0x309535;}else{if(_0x58a2f2[_0x594c6c(0x1df)](_0x58a2f2[_0x594c6c(0x186)],_0x58a2f2[_0x594c6c(0x186)]))logger[_0x594c6c(0x215)](_0x58a2f2[_0x594c6c(0x1f4)]),process[_0x594c6c(0x151)](0x1);else{const _0x21abc5={};_0x21abc5[_0x594c6c(0x1c0)]=_0x5e2ee0[_0x594c6c(0x154)],_0x21abc5['message']=_0x819e49,_0x8ddcf[_0x594c6c(0x157)](_0x5edec7,_0x21abc5,_0x58a2f2[_0x594c6c(0x125)],!![]);}}}}else _0x23b638['error'](_0x594c6c(0x160)+_0x5e3bfe[_0x594c6c(0x215)][_0x594c6c(0x1b2)]);}catch(_0x503859){_0x58a2f2['jrxoP'](_0x58a2f2[_0x594c6c(0x15d)],_0x58a2f2[_0x594c6c(0x15d)])?(_0x186f33=_0x594c6c(0x18d)+_0x503859+':\x20'+_0x503859[_0x594c6c(0x1b2)],logger['error'](_0x186f33),await _0x58a2f2[_0x594c6c(0x20f)](reportToGalactusAndSendToEDS,_0x327e4b,_0x5a053a,_0x186f33,messageTypes['ERROR'],_0x58a2f2[_0x594c6c(0x198)],_0x58a2f2[_0x594c6c(0x196)],_0x58a2f2['LUtoD']),process[_0x594c6c(0x151)](0x1)):_0x4a44cd[_0x594c6c(0x214)](_0x58a2f2[_0x594c6c(0x134)]);}}function printResponse(_0x3c35c3,_0x40b769){const _0x5a79ea=a17_0x301b62,_0x23d803={};_0x23d803[_0x5a79ea(0x1b1)]=function(_0x186488,_0x3d4a97){return _0x186488+_0x3d4a97;},_0x23d803['ZmfBn']=_0x5a79ea(0x1ac),_0x23d803['RyFue']=_0x5a79ea(0x1be),_0x23d803[_0x5a79ea(0x1a7)]=function(_0x40e4a5,_0x2b1d3a){return _0x40e4a5||_0x2b1d3a;},_0x23d803[_0x5a79ea(0x213)]=_0x5a79ea(0x137),_0x23d803[_0x5a79ea(0x1c5)]=_0x5a79ea(0x12e),_0x23d803[_0x5a79ea(0x1b4)]=function(_0x37d018,_0x391f98){return _0x37d018===_0x391f98;},_0x23d803[_0x5a79ea(0x182)]='pQNlk';const _0x4eb10d=_0x23d803;logger[_0x5a79ea(0x19d)]('['+_0x3c35c3+_0x5a79ea(0x1d7)+_0x40b769['status']+_0x5a79ea(0x185)+_0x40b769[_0x5a79ea(0x17a)]+_0x5a79ea(0x13c)+_0x40b769['error']);if(_0x40b769[_0x5a79ea(0x215)]){if(_0x4eb10d['nTMTm'](_0x4eb10d[_0x5a79ea(0x182)],_0x4eb10d[_0x5a79ea(0x182)]))logger[_0x5a79ea(0x215)](_0x5a79ea(0x160)+_0x40b769[_0x5a79ea(0x215)][_0x5a79ea(0x1b2)]);else{const {header:_0x391f71,response:_0x268bb8}=_0x4524e4,{status:_0x19f2de,data:_0x1f11a2,error:_0x59abc6}=_0x268bb8;_0x2e84cf+=_0x391f71+'\x20#'+_0x4eb10d[_0x5a79ea(0x1b1)](_0x4ca0d7,0x1)+'\x0a',_0x4c8bde+=_0x5a79ea(0x123)+(_0x19f2de?_0x4eb10d[_0x5a79ea(0x1d6)]:_0x4eb10d[_0x5a79ea(0x1a3)])+'\x0a',_0x3fb3c7+=_0x5a79ea(0x16c)+_0x4eb10d['gstUD'](_0x1f11a2,_0x4eb10d['hMJyt'])+'\x0a',_0x59abc6&&(_0x93cb9+=_0x4eb10d[_0x5a79ea(0x1c5)],_0x1521d0+=_0x5a79ea(0x1a9)+(_0x59abc6['message']||_0x4eb10d['hMJyt'])+'\x0a',_0x3451b1+='\x20\x20Code:\x20'+(_0x59abc6[_0x5a79ea(0x145)]||_0x4eb10d[_0x5a79ea(0x213)])+'\x0a',_0x34f3f4+=_0x5a79ea(0x1bf)+(_0x59abc6['stack']||_0x4eb10d[_0x5a79ea(0x213)])+'\x0a'),_0x306d37+='\x0a\x0a';}}}async function generateReport(_0x2fe1f8,_0x3fc72a){const _0x4bda07=a17_0x301b62,_0x3be9f3={'WNNWN':function(_0x45af4b,_0x12c573){return _0x45af4b+_0x12c573;},'uqGXe':_0x4bda07(0x1ac),'UFDVq':_0x4bda07(0x1be),'EoiTJ':function(_0x253e90,_0x1f28af){return _0x253e90||_0x1f28af;},'BdLlp':_0x4bda07(0x137),'BgwaW':_0x4bda07(0x12e),'tGNEJ':_0x4bda07(0x199),'hbVBm':function(_0x38faa5,_0x329f5e){return _0x38faa5!=_0x329f5e;},'XvkDW':_0x4bda07(0x15e),'IdlpV':_0x4bda07(0x1b7),'SkxVX':function(_0x3de708){return _0x3de708();}};let _0x5a4f22=_0x4bda07(0x1d4)+global_registry[_0x4bda07(0x1dd)]+_0x4bda07(0x1af);return _0x2fe1f8[_0x4bda07(0x1f8)]((_0x257664,_0x3b512b)=>{const _0x336f60=_0x4bda07,{header:_0x191d6a,response:_0x453d04}=_0x257664,{status:_0x5aee4b,data:_0x4117fb,error:_0x27308b}=_0x453d04;_0x5a4f22+=_0x191d6a+'\x20#'+_0x3be9f3[_0x336f60(0x153)](_0x3b512b,0x1)+'\x0a',_0x5a4f22+=_0x336f60(0x123)+(_0x5aee4b?_0x3be9f3[_0x336f60(0x152)]:_0x3be9f3[_0x336f60(0x129)])+'\x0a',_0x5a4f22+=_0x336f60(0x16c)+_0x3be9f3[_0x336f60(0x149)](_0x4117fb,_0x3be9f3[_0x336f60(0x206)])+'\x0a',_0x27308b&&(_0x5a4f22+=_0x3be9f3['BgwaW'],_0x5a4f22+=_0x336f60(0x1a9)+(_0x27308b['message']||_0x3be9f3[_0x336f60(0x206)])+'\x0a',_0x5a4f22+='\x20\x20Code:\x20'+(_0x27308b[_0x336f60(0x145)]||_0x3be9f3['BdLlp'])+'\x0a',_0x5a4f22+=_0x336f60(0x1bf)+(_0x27308b[_0x336f60(0x1b2)]||_0x3be9f3[_0x336f60(0x206)])+'\x0a'),_0x5a4f22+='\x0a\x0a';}),_0x5a4f22+=_0x3be9f3[_0x4bda07(0x174)],_0x3be9f3['hbVBm'](_0x3fc72a,null)?_0x5a4f22+='Cluster\x20'+global_registry[_0x4bda07(0x14f)]+'\x20'+(_0x3fc72a?_0x3be9f3['XvkDW']:_0x3be9f3[_0x4bda07(0x1e2)])+'\x0a\x0a':_0x5a4f22+=_0x4bda07(0x18b)+global_registry[_0x4bda07(0x14f)]+_0x4bda07(0x13a),_0x5a4f22+=_0x3be9f3[_0x4bda07(0x1e7)](getSystemMetaData),_0x5a4f22;};exports[a17_0x301b62(0x211)]=async function(_0x50595e){const _0x446004=a17_0x301b62,_0x204718={'TTxBn':function(_0xf7a8e8){return _0xf7a8e8();},'HbvAp':_0x446004(0x133),'fKxbI':function(_0x42ae92,_0x1b4c62,_0x1069b0,_0x40ee18,_0x5360e2,_0x7fa81a,_0x3f2a7d,_0x500ac0){return _0x42ae92(_0x1b4c62,_0x1069b0,_0x40ee18,_0x5360e2,_0x7fa81a,_0x3f2a7d,_0x500ac0);},'TFKTo':_0x446004(0x162),'beYHt':_0x446004(0x146),'ckMid':_0x446004(0x215),'zTupK':function(_0x1f7fbb,_0x4f92e9,_0x26bbd1,_0x4ffae6,_0x1fd53d,_0x34cb7f,_0x5405f5){return _0x1f7fbb(_0x4f92e9,_0x26bbd1,_0x4ffae6,_0x1fd53d,_0x34cb7f,_0x5405f5);},'kNMoW':_0x446004(0x168),'ROmtL':_0x446004(0x1c4),'oVIBP':function(_0x26b022,_0x4d3286,_0xc15ad3){return _0x26b022(_0x4d3286,_0xc15ad3);},'XBpzI':function(_0x25dd83,_0x6e4fd6,_0x37f25a){return _0x25dd83(_0x6e4fd6,_0x37f25a);},'ZYhOM':'dummy-grid','LNuzN':function(_0x497d66,_0x5ae15a,_0x1592a2){return _0x497d66(_0x5ae15a,_0x1592a2);},'dIIvo':_0x446004(0x1bc),'rSGpY':_0x446004(0x1fd),'YsEqc':'accessResp','AofIs':function(_0x4ea6ae){return _0x4ea6ae();},'loelM':function(_0xfd6f43,_0x511a07,_0x55b94e){return _0xfd6f43(_0x511a07,_0x55b94e);},'ZGvzw':_0x446004(0x166),'tAAsA':function(_0x5bc662,_0xc76d06){return _0x5bc662(_0xc76d06);},'FEAWB':_0x446004(0x1f1),'NfNkd':_0x446004(0x126),'UVLvC':_0x446004(0x204),'siZAZ':'User\x20Access','ULkFk':_0x446004(0x156),'CLcDf':_0x446004(0x1a8),'KvhDe':function(_0x34c00b,_0x1e8a60){return _0x34c00b+_0x1e8a60;},'NSauG':'utf-8','CSgxz':function(_0x22bbee,_0x507083,_0x4ef79d,_0x3e2421,_0x12ee97,_0x37d17d,_0x21f6c9){return _0x22bbee(_0x507083,_0x4ef79d,_0x3e2421,_0x12ee97,_0x37d17d,_0x21f6c9);},'CCWQm':'pre-check-failed'};let _0x3b5434,_0xff60e5;try{global_registry[_0x446004(0x17c)]=_0x204718[_0x446004(0x1f0)](uuidv4);!fs[_0x446004(0x1a4)](_0x204718[_0x446004(0x1f0)](getCredentialsPath))&&(_0xff60e5=_0x204718['HbvAp'],logger[_0x446004(0x215)](_0xff60e5),await _0x204718[_0x446004(0x147)](reportToGalactusAndSendToEDS,_0x50595e,_0x3b5434,_0xff60e5,messageTypes[_0x446004(0x1ec)],_0x204718[_0x446004(0x14e)],_0x204718[_0x446004(0x1f9)],_0x204718[_0x446004(0x1d2)]),process[_0x446004(0x151)](0x1));_0x204718['zTupK'](sendInstrumentationEvent,_0x50595e,_0x204718[_0x446004(0x14e)],messageTypes[_0x446004(0x1e5)],null,null,_0x50595e);const _0x511669=JSON[_0x446004(0x1e0)](fs[_0x446004(0x1ca)](_0x204718[_0x446004(0x1f0)](getCredentialsPath)));global_registry['bstackUsername']=_0x511669[_0x446004(0x1e8)][_0x446004(0x16f)],global_registry['bstackAccesskey']=_0x511669[_0x446004(0x1e8)][_0x446004(0x210)];const _0x2474bd=WS_ENDPOINT[_0x446004(0x13b)](_0x204718[_0x446004(0x1e1)],_0x511669[_0x446004(0x1e8)][_0x446004(0x16f)])['replace'](_0x204718[_0x446004(0x1c2)],_0x511669[_0x446004(0x1e8)][_0x446004(0x210)]),_0x1b88fc={};_0x1b88fc[_0x446004(0x1d9)]=ws,_0x1b88fc[_0x446004(0x1d0)]=0x36ee80,_0x3b5434=new ReconnectingWebSocket(_0x2474bd,[],_0x1b88fc),global_registry[_0x446004(0x15f)]=_0x204718[_0x446004(0x19f)](getAuthHeader,global_registry['bstackUsername'],global_registry[_0x446004(0x1cd)]),await _0x204718['XBpzI'](inputValidation,_0x50595e,_0x3b5434),logger[_0x446004(0x19d)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0x446004(0x1dd)]+'\x20region\x20-\x20'+global_registry[_0x446004(0x150)]);let _0x2cc57d=await _0x204718[_0x446004(0x1a2)](getCloudProviderObjectWithOutInit,global_registry[_0x446004(0x1dd)],global_registry['clusterName'],_0x204718['ZYhOM'],_0x3b5434,webSocketUtils,_0x50595e);const _0x3a4508=await _0x2cc57d[_0x446004(0x1d3)]();_0x204718[_0x446004(0x132)](printResponse,_0x204718[_0x446004(0x1a1)],_0x3a4508),_0x2cc57d=await _0x2cc57d[_0x446004(0x135)]();let _0x568644=![];try{_0x568644=await _0x2cc57d['isClusterPresent']();}catch(_0x21ee25){const _0xb2b813=_0x204718[_0x446004(0x155)]['split']('|');let _0x19dcb3=0x0;while(!![]){switch(_0xb2b813[_0x19dcb3++]){case'0':_0xff60e5='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry['clusterName']+_0x446004(0x212)+global_registry[_0x446004(0x150)]+_0x446004(0x16d)+_0x21ee25;continue;case'1':logger[_0x446004(0x215)](_0xff60e5);continue;case'2':await _0x204718[_0x446004(0x147)](reportToGalactusAndSendToEDS,_0x50595e,_0x3b5434,_0xff60e5,messageTypes[_0x446004(0x1ec)],_0x204718[_0x446004(0x14e)],_0x446004(0x16e)+global_registry['cloudProvider'],_0x204718[_0x446004(0x1d2)]);continue;case'3':_0xff60e5+='\x0a'+JSON['stringify'](_0x21ee25[_0x446004(0x1b2)]);continue;case'4':_0x568644=null;continue;}break;}}_0x568644&&logger[_0x446004(0x19d)](_0x446004(0x1f6)+global_registry['clusterName']+'`\x20already\x20exists');const _0x14badb=await _0x2cc57d['checkAccess']();_0x204718['oVIBP'](printResponse,_0x204718[_0x446004(0x163)],_0x14badb);const _0xe35a2e=await _0x204718[_0x446004(0x192)](curlRequest);_0x204718[_0x446004(0x165)](printResponse,_0x204718['ZGvzw'],_0xe35a2e);const _0x2bfb1c=await _0x204718[_0x446004(0x17b)](isTlsSupported,_0x204718[_0x446004(0x195)]);_0x204718[_0x446004(0x19f)](printResponse,_0x204718['NfNkd'],_0x2bfb1c);const _0x214ed8={};_0x214ed8['header']=_0x204718[_0x446004(0x131)],_0x214ed8[_0x446004(0x1ad)]=_0x3a4508;const _0xc2bc41={};_0xc2bc41[_0x446004(0x172)]=_0x204718['siZAZ'],_0xc2bc41['response']=_0x14badb;const _0x5d054d={};_0x5d054d[_0x446004(0x172)]=_0x204718[_0x446004(0x161)],_0x5d054d[_0x446004(0x1ad)]=_0xe35a2e;const _0x233345={};_0x233345['header']=_0x204718[_0x446004(0x1b6)],_0x233345[_0x446004(0x1ad)]=_0x2bfb1c;const _0x57aee8=[_0x214ed8,_0xc2bc41,_0x5d054d,_0x233345],_0x1d9fe6=await _0x204718['LNuzN'](generateReport,_0x57aee8,_0x568644),_0xcfc31f=new Date(),_0x16bb34=_0xcfc31f[_0x446004(0x14c)]()+'_'+_0x204718['KvhDe'](_0xcfc31f[_0x446004(0x184)](),0x1)+'_'+_0xcfc31f[_0x446004(0x18e)]()+'_'+_0xcfc31f[_0x446004(0x1aa)]()+'_'+_0xcfc31f['getUTCMinutes'](),_0x3a9117=_0x446004(0x17f)+_0x16bb34+_0x446004(0x1b8);fs[_0x446004(0x203)](_0x3a9117,_0x1d9fe6,_0x204718['NSauG']),logger['info']('Report\x20saved\x20in\x20'+_0x3a9117),process[_0x446004(0x151)](0x0);}catch(_0x10180d){let _0x47c192=_0x446004(0x181)+_0x10180d+'\x20';logger[_0x446004(0x215)](_0x47c192),_0x47c192+='\x0a'+JSON['stringify'](_0x10180d[_0x446004(0x1b2)]),logger['debug']('stack\x20trace\x20'+_0x10180d[_0x446004(0x1b2)]);if(_0x3b5434){const _0x49c346={};_0x49c346[_0x446004(0x1c0)]=WS_EVENTS[_0x446004(0x154)],_0x49c346[_0x446004(0x124)]=_0x47c192,webSocketUtils[_0x446004(0x157)](_0x3b5434,_0x49c346,_0x204718[_0x446004(0x1d2)],!![]);}await webSocketUtils[_0x446004(0x1d5)](0x7d0);const _0x1d1480={};_0x1d1480[_0x446004(0x215)]=_0x47c192,await _0x204718['CSgxz'](sendInstrumentationEvent,_0x50595e,_0x204718[_0x446004(0x14e)],messageTypes[_0x446004(0x1ec)],_0x204718['CCWQm'],_0x1d1480,_0x50595e),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a18_0x21e5c7=a18_0x3f49;(function(_0x6d44ed,_0x5489ce){const _0x51a3a7=a18_0x3f49,_0x2bc88e=_0x6d44ed();while(!![]){try{const _0x339f5c=-parseInt(_0x51a3a7(0x1d5))/0x1+parseInt(_0x51a3a7(0x1d1))/0x2*(parseInt(_0x51a3a7(0x1e2))/0x3)+-parseInt(_0x51a3a7(0x1d9))/0x4+-parseInt(_0x51a3a7(0x1e1))/0x5*(-parseInt(_0x51a3a7(0x1ce))/0x6)+-parseInt(_0x51a3a7(0x1da))/0x7*(parseInt(_0x51a3a7(0x1cf))/0x8)+parseInt(_0x51a3a7(0x1db))/0x9*(-parseInt(_0x51a3a7(0x1d4))/0xa)+parseInt(_0x51a3a7(0x1dd))/0xb;if(_0x339f5c===_0x5489ce)break;else _0x2bc88e['push'](_0x2bc88e['shift']());}catch(_0x280a4c){_0x2bc88e['push'](_0x2bc88e['shift']());}}}(a18_0x4f84,0x3f898));function a18_0x4f84(){const _0x513b5e=['57EEoLYt','cEeON','start_commands','654SIrvlE','8gCRdbE','usage','13234yuBeSq','handler','strict','21670nCZEWm','89169KuWfvG','Start\x20an\x20existing\x20Automation\x20grid.','ZkVbZ','builder','1366920FPBURX','3352391yEPWKy','1818wMXHZZ','start','14819618WDevXi','command','recommendCommands','help','6185FHFpMx'];a18_0x4f84=function(){return _0x513b5e;};return a18_0x4f84();}function a18_0x3f49(_0x31d991,_0x5e29f4){const _0x4f843b=a18_0x4f84();return a18_0x3f49=function(_0x3f4982,_0x392f09){_0x3f4982=_0x3f4982-0x1ce;let _0x38a79f=_0x4f843b[_0x3f4982];return _0x38a79f;},a18_0x3f49(_0x31d991,_0x5e29f4);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a18_0x21e5c7(0x1de)]=a18_0x21e5c7(0x1dc),exports['desc']=a18_0x21e5c7(0x1d6),exports[a18_0x21e5c7(0x1d8)]=function(_0x12d158){const _0x2fcf54=a18_0x21e5c7,_0xbafebc={};_0xbafebc[_0x2fcf54(0x1e3)]=_0x2fcf54(0x1e4),_0xbafebc[_0x2fcf54(0x1d7)]='help';const _0x4228bb=_0xbafebc;return _0x12d158[_0x2fcf54(0x1d0)](HELP_HEADER_MESSAGE[_0x2fcf54(0x1dc)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x4228bb['cEeON'])['demandCommand']()[_0x2fcf54(0x1df)]()[_0x2fcf54(0x1d3)]()[_0x2fcf54(0x1e0)](_0x4228bb[_0x2fcf54(0x1d7)]);},exports[a18_0x21e5c7(0x1d2)]=function(_0xf4738e){};
1
+ function a18_0x188a(){const _0x5799f3=['epilogue','recommendCommands','45331kTZASO','UumJu','28168QRFgHF','114kRSHOn','Start\x20an\x20existing\x20Automation\x20grid.','1236VIMgLv','handler','help','3513GarERs','1346tfFpGi','83867jdQTDB','4418280aVYIsO','strict','../config/constants','bctEZ','603IFrBFk','10SYJGNW','start','builder','830091mZlaZT','1049312VBtwwX'];a18_0x188a=function(){return _0x5799f3;};return a18_0x188a();}const a18_0x59bf43=a18_0x56bf;(function(_0x2c099a,_0x5a537a){const _0x459663=a18_0x56bf,_0x36c4a6=_0x2c099a();while(!![]){try{const _0x59f044=parseInt(_0x459663(0x195))/0x1+parseInt(_0x459663(0x18b))/0x2*(-parseInt(_0x459663(0x18a))/0x3)+parseInt(_0x459663(0x196))/0x4*(parseInt(_0x459663(0x192))/0x5)+-parseInt(_0x459663(0x185))/0x6*(parseInt(_0x459663(0x18c))/0x7)+parseInt(_0x459663(0x184))/0x8*(parseInt(_0x459663(0x191))/0x9)+-parseInt(_0x459663(0x18d))/0xa+-parseInt(_0x459663(0x199))/0xb*(-parseInt(_0x459663(0x187))/0xc);if(_0x59f044===_0x5a537a)break;else _0x36c4a6['push'](_0x36c4a6['shift']());}catch(_0x4a6cba){_0x36c4a6['push'](_0x36c4a6['shift']());}}}(a18_0x188a,0x881ff));function a18_0x56bf(_0x1f7b5b,_0x3eb0be){const _0x188a6b=a18_0x188a();return a18_0x56bf=function(_0x56bfaa,_0x349a76){_0x56bfaa=_0x56bfaa-0x183;let _0x79be5d=_0x188a6b[_0x56bfaa];return _0x79be5d;},a18_0x56bf(_0x1f7b5b,_0x3eb0be);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x59bf43(0x18f));exports['command']=a18_0x59bf43(0x193),exports['desc']=a18_0x59bf43(0x186),exports[a18_0x59bf43(0x194)]=function(_0x352785){const _0x3050a5=a18_0x59bf43,_0xee7ef1={};_0xee7ef1[_0x3050a5(0x190)]='start_commands',_0xee7ef1[_0x3050a5(0x183)]=_0x3050a5(0x189);const _0x50a906=_0xee7ef1;return _0x352785['usage'](HELP_HEADER_MESSAGE[_0x3050a5(0x193)])[_0x3050a5(0x197)](HELP_FOOTER_MESSAGE)['commandDir'](_0x50a906[_0x3050a5(0x190)])['demandCommand']()[_0x3050a5(0x198)]()[_0x3050a5(0x18e)]()[_0x3050a5(0x189)](_0x50a906[_0x3050a5(0x183)]);},exports[a18_0x59bf43(0x188)]=function(_0x2b744f){};
@@ -1 +1 @@
1
- function a19_0x5812(){const _0x3e7a59=['cfiJQ','string','adKOX','CVUBe','info','KLEVM','../../config/constants','gridId','Browserstack','clusterName','bstackAccesskey','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','help','skip-tls-cert-verify','type','existsSync','bstackUsername','1778319UhViRk','xwUIe','region','9040mAJShv','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Bguoz','name','Grid\x20started','replace','319785ewtfUx','pyOyT','error','cloudProvider','Adding\x20Websocket\x20listeners','../../utils/webSocketUtils','message','reconnecting-websocket','user','exit','WebSocket','readFileSync','NjpZs','144059oQYySs','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','argv','options','clusterRegion','1904kbKURC','ilpXh','builder','skipTlsCertVerify','description','sJzPc','connectionTimeout','invalid-grid-id','tUvId','ERROR','412362GtMYoK','../../utils/createk8sClient','desc','epilogue','statusCode','3899pwjmFt','start-grid-called','username','WAUAV','782388VPLfzo','eTsBH','kkzqf','Start\x20an\x20existing\x20Automation\x20grid.','SFTQP','../../config/logger','command','YJtNC','dLECi','Skip\x20insecure\x20cert\x20verification.','server-error','AaKUg','parse','debug','password','<UsernamePlaceholder>','zckIf','start','boolean','stack','addListeners','INFO','vktla','../../utils/utilityMethods','2ILyGJm','handler','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','MwHWa','4IbBJCf','body','grid','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','usage','ouEpM','default','stringify'];a19_0x5812=function(){return _0x3e7a59;};return a19_0x5812();}function a19_0x13c2(_0x2bebb8,_0x34fa1d){const _0x581234=a19_0x5812();return a19_0x13c2=function(_0x13c2ae,_0x300590){_0x13c2ae=_0x13c2ae-0xd6;let _0x248c20=_0x581234[_0x13c2ae];return _0x248c20;},a19_0x13c2(_0x2bebb8,_0x34fa1d);}const a19_0x1c9be9=a19_0x13c2;(function(_0x41007d,_0x838164){const _0x54dfe1=a19_0x13c2,_0x231e98=_0x41007d();while(!![]){try{const _0x29da3a=-parseInt(_0x54dfe1(0xe9))/0x1*(parseInt(_0x54dfe1(0x119))/0x2)+parseInt(_0x54dfe1(0xf8))/0x3*(parseInt(_0x54dfe1(0x11d))/0x4)+-parseInt(_0x54dfe1(0xdc))/0x5+parseInt(_0x54dfe1(0x101))/0x6+-parseInt(_0x54dfe1(0xfd))/0x7*(parseInt(_0x54dfe1(0xee))/0x8)+parseInt(_0x54dfe1(0x136))/0x9+-parseInt(_0x54dfe1(0xd6))/0xa;if(_0x29da3a===_0x838164)break;else _0x231e98['push'](_0x231e98['shift']());}catch(_0x43e5aa){_0x231e98['push'](_0x231e98['shift']());}}}(a19_0x5812,0x1e435));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x1c9be9(0xe3)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x1c9be9(0x12b)),{logger}=require(a19_0x1c9be9(0x106)),{getCredentialsPath,getGridDetails}=require(a19_0x1c9be9(0x118)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x1c9be9(0xe1)),{createK8sClient}=require(a19_0x1c9be9(0xf9)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x1c9be9(0x107)]=a19_0x1c9be9(0x11f),exports[a19_0x1c9be9(0xfa)]=a19_0x1c9be9(0x104),exports[a19_0x1c9be9(0xf0)]=function(_0x5dca5c){const _0x1e092=a19_0x1c9be9,_0x58a27b={};_0x58a27b[_0x1e092(0x100)]=_0x1e092(0x130),_0x58a27b['xwUIe']=_0x1e092(0x126),_0x58a27b[_0x1e092(0x111)]=_0x1e092(0x10a),_0x58a27b[_0x1e092(0x11c)]=_0x1e092(0x113),_0x58a27b[_0x1e092(0xdd)]=_0x1e092(0x131);const _0x186124=_0x58a27b,_0x198ea1={};_0x198ea1['description']=_0x186124[_0x1e092(0x100)],_0x198ea1[_0x1e092(0x133)]=_0x186124[_0x1e092(0x137)];const _0x9dad33={};_0x9dad33[_0x1e092(0xf2)]=_0x186124['zckIf'],_0x9dad33['type']=_0x186124[_0x1e092(0x11c)],_0x9dad33[_0x1e092(0x123)]=![];const _0x463b3c={};return _0x463b3c['grid-id']=_0x198ea1,_0x463b3c[_0x1e092(0x132)]=_0x9dad33,_0x5dca5c[_0x1e092(0x121)](HELP_HEADER_MESSAGE[_0x1e092(0x112)])[_0x1e092(0xfb)](HELP_FOOTER_MESSAGE)[_0x1e092(0xec)](_0x463b3c)[_0x1e092(0x131)](_0x186124[_0x1e092(0xdd)])[_0x1e092(0xeb)];},exports[a19_0x1c9be9(0x11a)]=async function(_0x604458){const _0x2a7915=a19_0x1c9be9,_0x36d0a9={'Bguoz':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','dLECi':function(_0x3ada49){return _0x3ada49();},'KLEVM':_0x2a7915(0xd7),'OtGGG':function(_0x88405f,_0x43be58,_0x3166c2,_0x1c01a7,_0x153031,_0x35a6d5,_0x2e575e){return _0x88405f(_0x43be58,_0x3166c2,_0x1c01a7,_0x153031,_0x35a6d5,_0x2e575e);},'sJzPc':_0x2a7915(0xfe),'tUvId':'init-not-called','ilpXh':function(_0x29a948){return _0x29a948();},'kkzqf':_0x2a7915(0x110),'ouEpM':'<PasswordPlaceholder>','epyMk':_0x2a7915(0xe0),'NjpZs':function(_0x266396,_0x485cf7,_0x4284f3,_0x53f956){return _0x266396(_0x485cf7,_0x4284f3,_0x53f956);},'uZCLN':function(_0x5c4dd9,_0x45cdb1,_0x90677e,_0x4da2c3,_0x1c636a,_0x42c150,_0x3583a4){return _0x5c4dd9(_0x45cdb1,_0x90677e,_0x4da2c3,_0x1c636a,_0x42c150,_0x3583a4);},'CVUBe':function(_0x1f081b,_0x17438c,_0x177cbe){return _0x1f081b(_0x17438c,_0x177cbe);},'vktla':function(_0x4c6f50,_0x13affb,_0x3666cd){return _0x4c6f50(_0x13affb,_0x3666cd);},'cfiJQ':_0x2a7915(0xda),'eTsBH':function(_0x5e97db,_0x51dcfe){return _0x5e97db===_0x51dcfe;},'adKOX':_0x2a7915(0x11b),'TzMmM':'unauthorised','SFTQP':function(_0x14641,_0x4870ee,_0x27d92f,_0x1403af,_0x55d130,_0x4a166a,_0x4c4865){return _0x14641(_0x4870ee,_0x27d92f,_0x1403af,_0x55d130,_0x4a166a,_0x4c4865);},'YJtNC':_0x2a7915(0xf5),'AaKUg':function(_0xe13503,_0x4990c8,_0x1d5fc7,_0x805004,_0x578782,_0x1ba532,_0x145863){return _0xe13503(_0x4990c8,_0x1d5fc7,_0x805004,_0x578782,_0x1ba532,_0x145863);},'Dzyuu':_0x2a7915(0x10b)};let _0x963d58;try{!_0x604458[_0x2a7915(0x12c)]&&(logger[_0x2a7915(0xde)](_0x36d0a9[_0x2a7915(0xd8)]),process[_0x2a7915(0xe5)](0x1));!fs[_0x2a7915(0x134)](_0x36d0a9[_0x2a7915(0x109)](getCredentialsPath))&&(logger['error'](_0x36d0a9[_0x2a7915(0x12a)]),await _0x36d0a9['OtGGG'](sendInstrumentationEvent,_0x604458,_0x36d0a9[_0x2a7915(0xf3)],messageTypes[_0x2a7915(0xf7)],_0x36d0a9[_0x2a7915(0xf6)],null,_0x604458),process[_0x2a7915(0xe5)](0x1));logger['info']('Starting\x20grid\x20'+_0x604458['gridId']),await _0x36d0a9['OtGGG'](sendInstrumentationEvent,_0x604458,_0x36d0a9[_0x2a7915(0xf3)],messageTypes[_0x2a7915(0x116)],null,null,_0x604458);const _0x3e0454=JSON[_0x2a7915(0x10d)](fs[_0x2a7915(0xe7)](_0x36d0a9[_0x2a7915(0xef)](getCredentialsPath)));global_registry[_0x2a7915(0x135)]=_0x3e0454[_0x2a7915(0x12d)][_0x2a7915(0xff)],global_registry[_0x2a7915(0x12f)]=_0x3e0454[_0x2a7915(0x12d)][_0x2a7915(0x10f)];const _0x210008=WS_ENDPOINT[_0x2a7915(0xdb)](_0x36d0a9[_0x2a7915(0x103)],_0x3e0454['Browserstack'][_0x2a7915(0xff)])[_0x2a7915(0xdb)](_0x36d0a9[_0x2a7915(0x122)],_0x3e0454[_0x2a7915(0x12d)][_0x2a7915(0x10f)]),_0x213847={};_0x213847[_0x2a7915(0xe6)]=ws,_0x213847[_0x2a7915(0xf4)]=0x36ee80,_0x963d58=new ReconnectingWebSocket(_0x210008,[],_0x213847),logger[_0x2a7915(0x10e)](_0x36d0a9['epyMk']),webSocketUtils[_0x2a7915(0x115)](_0x963d58,_0x604458[_0x2a7915(0xe4)],_0x604458[_0x2a7915(0x10f)]);const [_0x523ac8,_0x51f412]=await _0x36d0a9[_0x2a7915(0xe8)](getGridDetails,_0x3e0454[_0x2a7915(0x12d)][_0x2a7915(0xff)],_0x3e0454[_0x2a7915(0x12d)]['password'],_0x604458[_0x2a7915(0x12c)]);if(_0x51f412){const _0x25ed62=_0x51f412[_0x2a7915(0x129)];global_registry[_0x2a7915(0xdf)]=_0x25ed62[_0x2a7915(0xdf)],global_registry[_0x2a7915(0xed)]=_0x25ed62[_0x2a7915(0x138)],global_registry[_0x2a7915(0x12e)]=_0x25ed62['clusterName'];const _0x4cefd2=await _0x36d0a9['uZCLN'](getCloudProviderObject,_0x25ed62[_0x2a7915(0xdf)],_0x25ed62['clusterName'],_0x25ed62[_0x2a7915(0xd9)],_0x963d58,webSocketUtils,_0x604458),[_0x297e5e,_0x4a59af,_0x2b401a,_0x590393,_0x1ca256,_0x4ed38f]=await _0x36d0a9[_0x2a7915(0x128)](createK8sClient,_0x4cefd2,_0x604458[_0x2a7915(0xf1)]);await _0x36d0a9[_0x2a7915(0x117)](scaleUpHubDeployment,_0x4a59af,_0x25ed62['name']),logger[_0x2a7915(0x129)](_0x36d0a9[_0x2a7915(0x125)]),process[_0x2a7915(0xe5)](0x0);}_0x36d0a9[_0x2a7915(0x102)](_0x523ac8[_0x2a7915(0xfc)],0x191)&&(logger['error'](_0x36d0a9[_0x2a7915(0x127)]),await _0x36d0a9['uZCLN'](sendInstrumentationEvent,_0x604458,_0x36d0a9[_0x2a7915(0xf3)],messageTypes[_0x2a7915(0xf7)],_0x36d0a9['TzMmM'],null,_0x604458),process[_0x2a7915(0xe5)](0x1)),_0x36d0a9[_0x2a7915(0x102)](_0x523ac8[_0x2a7915(0xfc)],0x190)&&(logger[_0x2a7915(0xde)](JSON[_0x2a7915(0x10d)](_0x523ac8[_0x2a7915(0x11e)])[_0x2a7915(0xe2)]),await _0x36d0a9[_0x2a7915(0x105)](sendInstrumentationEvent,_0x604458,_0x36d0a9['sJzPc'],messageTypes[_0x2a7915(0xf7)],_0x36d0a9[_0x2a7915(0x108)],null,_0x604458),process['exit'](0x1)),logger['error'](_0x2a7915(0xea)+JSON[_0x2a7915(0x124)](_0x523ac8)),await _0x36d0a9[_0x2a7915(0x10c)](sendInstrumentationEvent,_0x604458,_0x36d0a9[_0x2a7915(0xf3)],messageTypes[_0x2a7915(0xf7)],_0x36d0a9['Dzyuu'],_0x523ac8,_0x604458),process[_0x2a7915(0xe5)](0x1);}catch(_0x128783){const _0x3a94db=_0x2a7915(0x120)+_0x128783+'\x20\x0a'+JSON[_0x2a7915(0x124)](_0x128783[_0x2a7915(0x114)])+'\x20';logger['error'](_0x3a94db),process['exit'](0x1);}};
1
+ const a19_0x4f3ef0=a19_0x2ee1;(function(_0x33410c,_0x5482c7){const _0x57febf=a19_0x2ee1,_0x3b319b=_0x33410c();while(!![]){try{const _0x1a144a=-parseInt(_0x57febf(0x14d))/0x1+-parseInt(_0x57febf(0x133))/0x2+-parseInt(_0x57febf(0x172))/0x3+-parseInt(_0x57febf(0x14b))/0x4+parseInt(_0x57febf(0x14c))/0x5*(-parseInt(_0x57febf(0x14e))/0x6)+parseInt(_0x57febf(0x15b))/0x7*(-parseInt(_0x57febf(0x123))/0x8)+parseInt(_0x57febf(0x17b))/0x9;if(_0x1a144a===_0x5482c7)break;else _0x3b319b['push'](_0x3b319b['shift']());}catch(_0x3963f9){_0x3b319b['push'](_0x3b319b['shift']());}}}(a19_0x306e,0xd1799));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x4f3ef0(0x182)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x4f3ef0(0x154)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x4f3ef0(0x16f)),{scaleUpHubDeployment}=require(a19_0x4f3ef0(0x164)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x4f3ef0(0x17a)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a19_0x306e(){const _0x4ecf73=['options','../../utils/gridComponents','error','password','debug','Grid\x20started','exit','jYgQE','region','help','nLhxj','FNTmL','../../utils/utilityMethods','INFO','default','2352093PDaNlE','Start\x20an\x20existing\x20Automation\x20grid.','XaWsY','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','server-error','cloudProvider','name','KlpqR','../../utils/createk8sClient','46334799qcuyrN','WebSocket','info','WNNnu','FEdtg','replace','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','reconnecting-websocket','8BuRgsW','BZBIm','ZAvTt','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','init-not-called','Skip\x20insecure\x20cert\x20verification.','command','unauthorised','argv','type','boolean','Starting\x20grid\x20','clusterName','epilogue','yTRBv','UElWI','715744cxrnPh','message','stack','handler','OFixO','usage','<PasswordPlaceholder>','user','grid','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','JqNPT','aFmEa','connectionTimeout','XYLfG','ERROR','start','JjYvJ','parse','readFileSync','Browserstack','clusterRegion','zDDWC','stringify','IldnK','3146420adbCxz','1009805RMrTcq','1588092zhtGCJ','18LKoEzl','gridId','LElPR','NNfwP','uXdoQ','string','../../config/constants','body','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','bstackUsername','username','AdmkX','addListeners','1174733SAGGXC','Adding\x20Websocket\x20listeners','builder','start-grid-called','invalid-grid-id','cRWou','udndb','nWRwC'];a19_0x306e=function(){return _0x4ecf73;};return a19_0x306e();}function a19_0x2ee1(_0x392af5,_0x2888cc){const _0x306e7d=a19_0x306e();return a19_0x2ee1=function(_0x2ee1ad,_0x3587f9){_0x2ee1ad=_0x2ee1ad-0x123;let _0x40a899=_0x306e7d[_0x2ee1ad];return _0x40a899;},a19_0x2ee1(_0x392af5,_0x2888cc);}exports[a19_0x4f3ef0(0x129)]=a19_0x4f3ef0(0x13b),exports['desc']=a19_0x4f3ef0(0x173),exports[a19_0x4f3ef0(0x15d)]=function(_0x4a7a7c){const _0x4645b0=a19_0x4f3ef0,_0x51aa75={};_0x51aa75[_0x4645b0(0x179)]=_0x4645b0(0x156),_0x51aa75[_0x4645b0(0x140)]=_0x4645b0(0x153),_0x51aa75[_0x4645b0(0x125)]=_0x4645b0(0x128),_0x51aa75[_0x4645b0(0x131)]=_0x4645b0(0x12d),_0x51aa75[_0x4645b0(0x16d)]=_0x4645b0(0x16c);const _0x36894d=_0x51aa75,_0x815e4a={};_0x815e4a['description']=_0x36894d[_0x4645b0(0x179)],_0x815e4a[_0x4645b0(0x12c)]=_0x36894d['XYLfG'];const _0x556bae={};_0x556bae['description']=_0x36894d[_0x4645b0(0x125)],_0x556bae[_0x4645b0(0x12c)]=_0x36894d[_0x4645b0(0x131)],_0x556bae[_0x4645b0(0x171)]=![];const _0x3921ab={};return _0x3921ab['grid-id']=_0x815e4a,_0x3921ab['skip-tls-cert-verify']=_0x556bae,_0x4a7a7c[_0x4645b0(0x138)](HELP_HEADER_MESSAGE[_0x4645b0(0x142)])[_0x4645b0(0x130)](HELP_FOOTER_MESSAGE)[_0x4645b0(0x163)](_0x3921ab)[_0x4645b0(0x16c)](_0x36894d[_0x4645b0(0x16d)])[_0x4645b0(0x12b)];},exports[a19_0x4f3ef0(0x136)]=async function(_0x11a250){const _0x3a8297=a19_0x4f3ef0,_0x1fa923={'XaWsY':_0x3a8297(0x13c),'WNNnu':function(_0x13fe0a){return _0x13fe0a();},'cGTah':_0x3a8297(0x126),'uXdoQ':function(_0x4e0693,_0x5ea21a,_0x121419,_0x16ff3b,_0x36aeda,_0x4e495f,_0x430018){return _0x4e0693(_0x5ea21a,_0x121419,_0x16ff3b,_0x36aeda,_0x4e495f,_0x430018);},'JqNPT':_0x3a8297(0x15e),'zDDWC':_0x3a8297(0x127),'BZBIm':function(_0x56e803,_0x22e47f,_0x5e5422,_0x4998ed,_0xa7b818,_0x146a50,_0x7f2405){return _0x56e803(_0x22e47f,_0x5e5422,_0x4998ed,_0xa7b818,_0x146a50,_0x7f2405);},'UElWI':'<UsernamePlaceholder>','FEdtg':_0x3a8297(0x139),'jYgQE':_0x3a8297(0x15c),'AdmkX':function(_0x1eddd0,_0x5ae8a5,_0x43f58d,_0x39a029){return _0x1eddd0(_0x5ae8a5,_0x43f58d,_0x39a029);},'nWRwC':function(_0x3cbeea,_0x153b3c,_0x4e9753){return _0x3cbeea(_0x153b3c,_0x4e9753);},'aFmEa':function(_0x210870,_0x3f87fd,_0x2d14d9){return _0x210870(_0x3f87fd,_0x2d14d9);},'udndb':_0x3a8297(0x168),'cRWou':function(_0xb56309,_0x97b4fc){return _0xb56309===_0x97b4fc;},'vAuZn':_0x3a8297(0x181),'JjYvJ':function(_0x1c9fc4,_0x3ed635,_0x5a3e4e,_0x563915,_0x549ed3,_0x113299,_0x259e35){return _0x1c9fc4(_0x3ed635,_0x5a3e4e,_0x563915,_0x549ed3,_0x113299,_0x259e35);},'NNfwP':_0x3a8297(0x12a),'gUPUX':function(_0x4a2d46,_0x2f7cdb){return _0x4a2d46===_0x2f7cdb;},'OFixO':function(_0x42fb81,_0x2e6bd2,_0x566f6a,_0x2e5fe8,_0x4188b9,_0xaae9aa,_0x5e2ce6){return _0x42fb81(_0x2e6bd2,_0x566f6a,_0x2e5fe8,_0x4188b9,_0xaae9aa,_0x5e2ce6);},'LElPR':_0x3a8297(0x15f),'IldnK':function(_0x5a3cac,_0x494481,_0x5b9bdf,_0x1ea5c0,_0x52331f,_0x9358b6,_0x5aa274){return _0x5a3cac(_0x494481,_0x5b9bdf,_0x1ea5c0,_0x52331f,_0x9358b6,_0x5aa274);},'FNTmL':_0x3a8297(0x176)};let _0x4103f2;try{!_0x11a250[_0x3a8297(0x14f)]&&(logger[_0x3a8297(0x165)](_0x1fa923[_0x3a8297(0x174)]),process[_0x3a8297(0x169)](0x1));!fs['existsSync'](_0x1fa923['WNNnu'](getCredentialsPath))&&(logger[_0x3a8297(0x165)](_0x1fa923['cGTah']),await _0x1fa923[_0x3a8297(0x152)](sendInstrumentationEvent,_0x11a250,_0x1fa923[_0x3a8297(0x13d)],messageTypes[_0x3a8297(0x141)],_0x1fa923[_0x3a8297(0x148)],null,_0x11a250),process[_0x3a8297(0x169)](0x1));logger['info'](_0x3a8297(0x12e)+_0x11a250[_0x3a8297(0x14f)]),await _0x1fa923[_0x3a8297(0x124)](sendInstrumentationEvent,_0x11a250,_0x1fa923['JqNPT'],messageTypes[_0x3a8297(0x170)],null,null,_0x11a250);const _0x34ae82=JSON[_0x3a8297(0x144)](fs[_0x3a8297(0x145)](_0x1fa923[_0x3a8297(0x17e)](getCredentialsPath)));global_registry[_0x3a8297(0x157)]=_0x34ae82[_0x3a8297(0x146)]['username'],global_registry['bstackAccesskey']=_0x34ae82[_0x3a8297(0x146)]['password'];const _0x55c007=WS_ENDPOINT[_0x3a8297(0x180)](_0x1fa923[_0x3a8297(0x132)],_0x34ae82[_0x3a8297(0x146)][_0x3a8297(0x158)])[_0x3a8297(0x180)](_0x1fa923[_0x3a8297(0x17f)],_0x34ae82['Browserstack'][_0x3a8297(0x166)]),_0x70590e={};_0x70590e[_0x3a8297(0x17c)]=ws,_0x70590e[_0x3a8297(0x13f)]=0x36ee80,_0x4103f2=new ReconnectingWebSocket(_0x55c007,[],_0x70590e),logger[_0x3a8297(0x167)](_0x1fa923[_0x3a8297(0x16a)]),webSocketUtils[_0x3a8297(0x15a)](_0x4103f2,_0x11a250[_0x3a8297(0x13a)],_0x11a250[_0x3a8297(0x166)]);const [_0x2c8034,_0x1998d1]=await _0x1fa923[_0x3a8297(0x159)](getGridDetails,_0x34ae82[_0x3a8297(0x146)][_0x3a8297(0x158)],_0x34ae82[_0x3a8297(0x146)][_0x3a8297(0x166)],_0x11a250['gridId']);if(_0x1998d1){const _0x5aa4c9=_0x1998d1[_0x3a8297(0x17d)];global_registry[_0x3a8297(0x177)]=_0x5aa4c9[_0x3a8297(0x177)],global_registry[_0x3a8297(0x147)]=_0x5aa4c9[_0x3a8297(0x16b)],global_registry[_0x3a8297(0x12f)]=_0x5aa4c9[_0x3a8297(0x12f)];const _0x32b855=await _0x1fa923[_0x3a8297(0x124)](getCloudProviderObject,_0x5aa4c9[_0x3a8297(0x177)],_0x5aa4c9[_0x3a8297(0x12f)],_0x5aa4c9[_0x3a8297(0x178)],_0x4103f2,webSocketUtils,_0x11a250),[_0x3c1b19,_0x346970,_0x40d44b,_0x3b3086,_0xf87dd,_0x305d0f]=await _0x1fa923[_0x3a8297(0x162)](createK8sClient,_0x32b855,_0x11a250['skipTlsCertVerify']);await _0x1fa923[_0x3a8297(0x13e)](scaleUpHubDeployment,_0x346970,_0x5aa4c9['name']),logger['info'](_0x1fa923[_0x3a8297(0x161)]),process['exit'](0x0);}_0x1fa923[_0x3a8297(0x160)](_0x2c8034['statusCode'],0x191)&&(logger[_0x3a8297(0x165)](_0x1fa923['vAuZn']),await _0x1fa923[_0x3a8297(0x143)](sendInstrumentationEvent,_0x11a250,_0x1fa923[_0x3a8297(0x13d)],messageTypes[_0x3a8297(0x141)],_0x1fa923[_0x3a8297(0x151)],null,_0x11a250),process[_0x3a8297(0x169)](0x1)),_0x1fa923['gUPUX'](_0x2c8034['statusCode'],0x190)&&(logger[_0x3a8297(0x165)](JSON[_0x3a8297(0x144)](_0x2c8034[_0x3a8297(0x155)])[_0x3a8297(0x134)]),await _0x1fa923[_0x3a8297(0x137)](sendInstrumentationEvent,_0x11a250,_0x1fa923[_0x3a8297(0x13d)],messageTypes[_0x3a8297(0x141)],_0x1fa923[_0x3a8297(0x150)],null,_0x11a250),process[_0x3a8297(0x169)](0x1)),logger[_0x3a8297(0x165)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x3a8297(0x149)](_0x2c8034)),await _0x1fa923[_0x3a8297(0x14a)](sendInstrumentationEvent,_0x11a250,_0x1fa923[_0x3a8297(0x13d)],messageTypes[_0x3a8297(0x141)],_0x1fa923[_0x3a8297(0x16e)],_0x2c8034,_0x11a250),process[_0x3a8297(0x169)](0x1);}catch(_0x460940){const _0x5aa0ac=_0x3a8297(0x175)+_0x460940+'\x20\x0a'+JSON[_0x3a8297(0x149)](_0x460940[_0x3a8297(0x135)])+'\x20';logger[_0x3a8297(0x165)](_0x5aa0ac),process[_0x3a8297(0x169)](0x1);}};
@@ -1 +1 @@
1
- function a20_0x1f23(_0x592da4,_0x3d917a){const _0x16224e=a20_0x1622();return a20_0x1f23=function(_0x1f2350,_0x580073){_0x1f2350=_0x1f2350-0x101;let _0x4e5da1=_0x16224e[_0x1f2350];return _0x4e5da1;},a20_0x1f23(_0x592da4,_0x3d917a);}const a20_0x4ab12a=a20_0x1f23;function a20_0x1622(){const _0x463efd=['11COVtYx','3387408gIKTNG','TIzNC','19672PRbmuW','stop_commands','45102eMoRdW','2171450DIyRbi','demandCommand','help','commandDir','builder','3054744fdmtcA','usage','85753lopBxO','epilogue','WoFZL','Stop\x20a\x20running\x20Automation\x20grid.','desc','recommendCommands','115sHDtRp','../config/constants','9jBBlhS','1288JGgDOf','50872QBNDsk','stop','80XmoHwQ','strict'];a20_0x1622=function(){return _0x463efd;};return a20_0x1622();}(function(_0x507cb5,_0x202871){const _0x523f05=a20_0x1f23,_0x2f4434=_0x507cb5();while(!![]){try{const _0x3586c5=-parseInt(_0x523f05(0x11b))/0x1+parseInt(_0x523f05(0x10c))/0x2*(parseInt(_0x523f05(0x113))/0x3)+-parseInt(_0x523f05(0x10a))/0x4*(-parseInt(_0x523f05(0x106))/0x5)+parseInt(_0x523f05(0x119))/0x6+parseInt(_0x523f05(0x109))/0x7*(-parseInt(_0x523f05(0x111))/0x8)+-parseInt(_0x523f05(0x108))/0x9*(parseInt(_0x523f05(0x114))/0xa)+parseInt(_0x523f05(0x10e))/0xb*(-parseInt(_0x523f05(0x10f))/0xc);if(_0x3586c5===_0x202871)break;else _0x2f4434['push'](_0x2f4434['shift']());}catch(_0x1b086e){_0x2f4434['push'](_0x2f4434['shift']());}}}(a20_0x1622,0x59330));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x4ab12a(0x107));exports['command']=a20_0x4ab12a(0x10b),exports[a20_0x4ab12a(0x104)]=a20_0x4ab12a(0x103),exports[a20_0x4ab12a(0x118)]=function(_0x4bc19f){const _0x1a46f8=a20_0x4ab12a,_0x59aa6e={};_0x59aa6e[_0x1a46f8(0x110)]=_0x1a46f8(0x112),_0x59aa6e[_0x1a46f8(0x102)]=_0x1a46f8(0x116);const _0x60d958=_0x59aa6e;return _0x4bc19f[_0x1a46f8(0x11a)](HELP_HEADER_MESSAGE['stop'])[_0x1a46f8(0x101)](HELP_FOOTER_MESSAGE)[_0x1a46f8(0x117)](_0x60d958[_0x1a46f8(0x110)])[_0x1a46f8(0x115)]()[_0x1a46f8(0x105)]()[_0x1a46f8(0x10d)]()[_0x1a46f8(0x116)](_0x60d958['WoFZL']);},exports['handler']=function(_0x1d68ca){};
1
+ const a20_0x2c2bbb=a20_0x59cb;(function(_0x35b263,_0x1d5ac8){const _0x35e2e6=a20_0x59cb,_0x44220a=_0x35b263();while(!![]){try{const _0x372cc2=-parseInt(_0x35e2e6(0x144))/0x1+-parseInt(_0x35e2e6(0x148))/0x2+-parseInt(_0x35e2e6(0x142))/0x3*(-parseInt(_0x35e2e6(0x149))/0x4)+-parseInt(_0x35e2e6(0x14a))/0x5*(parseInt(_0x35e2e6(0x14c))/0x6)+parseInt(_0x35e2e6(0x13a))/0x7+parseInt(_0x35e2e6(0x143))/0x8+parseInt(_0x35e2e6(0x145))/0x9;if(_0x372cc2===_0x1d5ac8)break;else _0x44220a['push'](_0x44220a['shift']());}catch(_0x11968f){_0x44220a['push'](_0x44220a['shift']());}}}(a20_0x1392,0xd17e6));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a20_0x1392(){const _0x40fe59=['stop','command','desc','guHdu','recommendCommands','strict','3XTCxAf','2820024VbwqBw','1579602UMdJeG','12192066LRwNVu','stop_commands','help','639192qzIInP','673432wKwanC','5gCZrBu','builder','2588982qGSMVg','foBLc','usage','9192722kRTEXr','commandDir'];a20_0x1392=function(){return _0x40fe59;};return a20_0x1392();}function a20_0x59cb(_0x100d1a,_0x413e2d){const _0x139231=a20_0x1392();return a20_0x59cb=function(_0x59cb45,_0x4a1db1){_0x59cb45=_0x59cb45-0x139;let _0x1a1b67=_0x139231[_0x59cb45];return _0x1a1b67;},a20_0x59cb(_0x100d1a,_0x413e2d);}exports[a20_0x2c2bbb(0x13d)]=a20_0x2c2bbb(0x13c),exports[a20_0x2c2bbb(0x13e)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x2c2bbb(0x14b)]=function(_0x1ea758){const _0x5e1b12=a20_0x2c2bbb,_0x28c232={};_0x28c232[_0x5e1b12(0x13f)]=_0x5e1b12(0x146),_0x28c232[_0x5e1b12(0x14d)]=_0x5e1b12(0x147);const _0x535416=_0x28c232;return _0x1ea758[_0x5e1b12(0x139)](HELP_HEADER_MESSAGE[_0x5e1b12(0x13c)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5e1b12(0x13b)](_0x535416[_0x5e1b12(0x13f)])['demandCommand']()[_0x5e1b12(0x140)]()[_0x5e1b12(0x141)]()[_0x5e1b12(0x147)](_0x535416[_0x5e1b12(0x14d)]);},exports['handler']=function(_0x2234e8){};
@@ -1 +1 @@
1
- function a21_0xe9d6(){const _0x469809=['clusterName','../../utils/utilityMethods','1484mbCHyx','bstackAccesskey','Stopping\x20grid\x20','../../cloudproviders/utils','uDKKH','stringify','addListeners','argv','description','bstackUsername','username','parse','BMPpp','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','ULTUa','stop-grid-called','13443usTKCO','Adding\x20Websocket\x20listeners','Browserstack','gridId','niRUr','3875832kyGjNj','20184JJjKbo','name','wnpiy','NVhpG','handler','region','string','18vGlVEs','../../utils/webSocketUtils','epilogue','message','command','10sBiunM','tFZDz','init-not-called','../../config/logger','builder','ebeDf','stop','unauthorised','ImFgw','gVxyE','user','7218370jzbCtB','statusCode','grid','replace','usage','Uzebb','boolean','info','5020860YRkMTD','options','26855565dePmCv','SHFyJ','116722NTWUZX','nGBRQ','ERROR','server-error','sGShd','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','type','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','GOQyr','hTngm','tyRtU','password','invalid-grid-id','<UsernamePlaceholder>','HadXT','skip-tls-cert-verify','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','error','../../utils/gridComponents','356xgOHuw','INFO','Skip\x20insecure\x20cert\x20verification.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','KCxis','Stop\x20a\x20running\x20Automation\x20grid.','nGJVK','readFileSync','stack','default','exit','WebSocket','nnLjD','cloudProvider'];a21_0xe9d6=function(){return _0x469809;};return a21_0xe9d6();}const a21_0x365762=a21_0x5f36;(function(_0x4f8efe,_0x35b6ba){const _0x558311=a21_0x5f36,_0x5bb6d2=_0x4f8efe();while(!![]){try{const _0x3bedc0=parseInt(_0x558311(0x1d2))/0x1*(parseInt(_0x558311(0x1e9))/0x2)+parseInt(_0x558311(0x21c))/0x3*(parseInt(_0x558311(0x1fc))/0x4)+parseInt(_0x558311(0x1e5))/0x5+parseInt(_0x558311(0x222))/0x6*(-parseInt(_0x558311(0x20c))/0x7)+parseInt(_0x558311(0x221))/0x8+-parseInt(_0x558311(0x229))/0x9*(-parseInt(_0x558311(0x1dd))/0xa)+-parseInt(_0x558311(0x1e7))/0xb;if(_0x3bedc0===_0x35b6ba)break;else _0x5bb6d2['push'](_0x5bb6d2['shift']());}catch(_0x4e11c3){_0x5bb6d2['push'](_0x5bb6d2['shift']());}}}(a21_0xe9d6,0xb9961));function a21_0x5f36(_0x48e3aa,_0x51343a){const _0xe9d652=a21_0xe9d6();return a21_0x5f36=function(_0x5f36ea,_0x29b0ab){_0x5f36ea=_0x5f36ea-0x1d0;let _0x162979=_0xe9d652[_0x5f36ea];return _0x162979;},a21_0x5f36(_0x48e3aa,_0x51343a);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x365762(0x1d5)),{getCredentialsPath,getGridDetails}=require(a21_0x365762(0x20b)),{scaleDownHubDeployment}=require(a21_0x365762(0x1fb)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a21_0x365762(0x22a)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a21_0x365762(0x20f));exports[a21_0x365762(0x1d1)]=a21_0x365762(0x1df),exports['desc']=a21_0x365762(0x201),exports[a21_0x365762(0x1d6)]=function(_0x274e36){const _0x4c1a73=a21_0x365762,_0x47010d={};_0x47010d['niRUr']=_0x4c1a73(0x1ee),_0x47010d['HadXT']=_0x4c1a73(0x228),_0x47010d['jNNeX']=_0x4c1a73(0x1fe),_0x47010d[_0x4c1a73(0x224)]=_0x4c1a73(0x1e3),_0x47010d[_0x4c1a73(0x218)]='help';const _0x324a4d=_0x47010d,_0x42ffb6={};_0x42ffb6['description']=_0x324a4d[_0x4c1a73(0x220)],_0x42ffb6['type']=_0x324a4d[_0x4c1a73(0x1f7)];const _0x510a14={};_0x510a14[_0x4c1a73(0x214)]=_0x324a4d['jNNeX'],_0x510a14[_0x4c1a73(0x1ef)]=_0x324a4d['wnpiy'],_0x510a14[_0x4c1a73(0x205)]=![];const _0x456758={};return _0x456758['grid-id']=_0x42ffb6,_0x456758[_0x4c1a73(0x1f8)]=_0x510a14,_0x274e36[_0x4c1a73(0x1e1)](HELP_HEADER_MESSAGE[_0x4c1a73(0x1d8)])[_0x4c1a73(0x22b)](HELP_FOOTER_MESSAGE)[_0x4c1a73(0x1e6)](_0x456758)['help'](_0x324a4d[_0x4c1a73(0x218)])[_0x4c1a73(0x213)];},exports[a21_0x365762(0x226)]=async function(_0x441056){const _0x32ae68=a21_0x365762,_0x53cda9={'tFZDz':_0x32ae68(0x1f9),'nGBRQ':function(_0x495bb9){return _0x495bb9();},'ZqbVL':_0x32ae68(0x1f0),'TeRrx':function(_0x1996db,_0x24b7b6,_0x151810,_0x201b39,_0x2de755,_0x264409,_0x4b09fb){return _0x1996db(_0x24b7b6,_0x151810,_0x201b39,_0x2de755,_0x264409,_0x4b09fb);},'NVhpG':_0x32ae68(0x21b),'SHFyJ':_0x32ae68(0x1d4),'gVxyE':function(_0x4a88a9,_0x2c21c0,_0x119b0b,_0x52b8dc,_0x59dbe3,_0xa712cc,_0x131e28){return _0x4a88a9(_0x2c21c0,_0x119b0b,_0x52b8dc,_0x59dbe3,_0xa712cc,_0x131e28);},'hTngm':_0x32ae68(0x1f6),'JZFPh':'<PasswordPlaceholder>','ImFgw':_0x32ae68(0x21d),'nnLjD':function(_0x56f5b9,_0x242b3f,_0x33081a,_0x44fa47){return _0x56f5b9(_0x242b3f,_0x33081a,_0x44fa47);},'KCxis':function(_0x44a44d,_0xb21958,_0x288ab7,_0xf59b5,_0x3a9276,_0x412e98,_0x4d563b){return _0x44a44d(_0xb21958,_0x288ab7,_0xf59b5,_0x3a9276,_0x412e98,_0x4d563b);},'sGShd':function(_0x4b13a9,_0x3b61d6,_0x336109){return _0x4b13a9(_0x3b61d6,_0x336109);},'ebeDf':function(_0x4ff2ad,_0x10b05c,_0x49421e){return _0x4ff2ad(_0x10b05c,_0x49421e);},'tyRtU':'Grid\x20stoppped.','ghiuG':function(_0x1bb2dc,_0x12f5bc){return _0x1bb2dc===_0x12f5bc;},'ULTUa':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','nGJVK':function(_0x28a536,_0x29206f,_0x3fbb55,_0x1ab671,_0x1791fd,_0x5c0cc9,_0x3c8efd){return _0x28a536(_0x29206f,_0x3fbb55,_0x1ab671,_0x1791fd,_0x5c0cc9,_0x3c8efd);},'uDKKH':_0x32ae68(0x1d9),'WCjbj':_0x32ae68(0x1f5),'GOQyr':function(_0x301a9a,_0x531015,_0x33260d,_0x39c108,_0x4f5d0d,_0x193810,_0x367ece){return _0x301a9a(_0x531015,_0x33260d,_0x39c108,_0x4f5d0d,_0x193810,_0x367ece);},'Uzebb':_0x32ae68(0x1ec)};let _0xaf1a9d;try{!_0x441056[_0x32ae68(0x21f)]&&(logger[_0x32ae68(0x1fa)](_0x53cda9[_0x32ae68(0x1d3)]),process[_0x32ae68(0x206)](0x1));!fs['existsSync'](_0x53cda9[_0x32ae68(0x1ea)](getCredentialsPath))&&(logger[_0x32ae68(0x1fa)](_0x53cda9['ZqbVL']),await _0x53cda9['TeRrx'](sendInstrumentationEvent,_0x441056,_0x53cda9['NVhpG'],messageTypes[_0x32ae68(0x1eb)],_0x53cda9[_0x32ae68(0x1e8)],null,_0x441056),process['exit'](0x1));logger[_0x32ae68(0x1e4)](_0x32ae68(0x20e)+_0x441056[_0x32ae68(0x21f)]),await _0x53cda9[_0x32ae68(0x1db)](sendInstrumentationEvent,_0x441056,_0x53cda9[_0x32ae68(0x225)],messageTypes[_0x32ae68(0x1fd)],null,null,_0x441056);const _0xd425bc=JSON[_0x32ae68(0x217)](fs[_0x32ae68(0x203)](_0x53cda9[_0x32ae68(0x1ea)](getCredentialsPath)));global_registry[_0x32ae68(0x215)]=_0xd425bc['Browserstack'][_0x32ae68(0x216)],global_registry[_0x32ae68(0x20d)]=_0xd425bc[_0x32ae68(0x21e)][_0x32ae68(0x1f4)];const _0x868f2=WS_ENDPOINT[_0x32ae68(0x1e0)](_0x53cda9[_0x32ae68(0x1f2)],_0xd425bc[_0x32ae68(0x21e)][_0x32ae68(0x216)])[_0x32ae68(0x1e0)](_0x53cda9['JZFPh'],_0xd425bc[_0x32ae68(0x21e)][_0x32ae68(0x1f4)]),_0x3824ed={};_0x3824ed[_0x32ae68(0x207)]=ws,_0x3824ed['connectionTimeout']=0x36ee80,_0xaf1a9d=new ReconnectingWebSocket(_0x868f2,[],_0x3824ed),logger['debug'](_0x53cda9[_0x32ae68(0x1da)]),webSocketUtils[_0x32ae68(0x212)](_0xaf1a9d,_0x441056[_0x32ae68(0x1dc)],_0x441056[_0x32ae68(0x1f4)]);const [_0x4180ca,_0x18d0e7]=await _0x53cda9[_0x32ae68(0x208)](getGridDetails,_0xd425bc[_0x32ae68(0x21e)][_0x32ae68(0x216)],_0xd425bc[_0x32ae68(0x21e)][_0x32ae68(0x1f4)],_0x441056['gridId']);if(_0x18d0e7){const _0x3d5483=_0x18d0e7[_0x32ae68(0x1e4)];global_registry[_0x32ae68(0x209)]=_0x3d5483[_0x32ae68(0x209)],global_registry['clusterRegion']=_0x3d5483[_0x32ae68(0x227)],global_registry[_0x32ae68(0x20a)]=_0x3d5483['clusterName'];const _0xd6d7f4=await _0x53cda9[_0x32ae68(0x200)](getCloudProviderObject,_0x3d5483[_0x32ae68(0x209)],_0x3d5483['clusterName'],_0x3d5483[_0x32ae68(0x223)],_0xaf1a9d,webSocketUtils,_0x441056),[_0x3cc356,_0x5803cf,_0xf89c31,_0x5da1d0,_0x40e53b,_0x25fb67]=await _0x53cda9[_0x32ae68(0x1ed)](createK8sClient,_0xd6d7f4,_0x441056['skipTlsCertVerify']);await _0x53cda9[_0x32ae68(0x1d7)](scaleDownHubDeployment,_0x5803cf,_0x3d5483[_0x32ae68(0x223)]),logger['info'](_0x53cda9[_0x32ae68(0x1f3)]),process[_0x32ae68(0x206)](0x0);}_0x53cda9['ghiuG'](_0x4180ca[_0x32ae68(0x1de)],0x191)&&(logger['error'](_0x53cda9[_0x32ae68(0x21a)]),await _0x53cda9[_0x32ae68(0x202)](sendInstrumentationEvent,_0x441056,_0x53cda9[_0x32ae68(0x225)],messageTypes[_0x32ae68(0x1eb)],_0x53cda9[_0x32ae68(0x210)],null,_0x441056),process[_0x32ae68(0x206)](0x1)),_0x53cda9['ghiuG'](_0x4180ca[_0x32ae68(0x1de)],0x190)&&(logger[_0x32ae68(0x1fa)](JSON[_0x32ae68(0x217)](_0x4180ca['body'])[_0x32ae68(0x1d0)]),await _0x53cda9['gVxyE'](sendInstrumentationEvent,_0x441056,_0x53cda9['NVhpG'],messageTypes['ERROR'],_0x53cda9['WCjbj'],null,_0x441056),process['exit'](0x1)),logger['error'](_0x32ae68(0x1ff)+JSON[_0x32ae68(0x211)](_0x4180ca)),await _0x53cda9[_0x32ae68(0x1f1)](sendInstrumentationEvent,_0x441056,_0x53cda9[_0x32ae68(0x225)],messageTypes[_0x32ae68(0x1eb)],_0x53cda9[_0x32ae68(0x1e2)],_0x4180ca,_0x441056),process[_0x32ae68(0x206)](0x1);}catch(_0xbe5a76){const _0x383d0b=_0x32ae68(0x219)+_0xbe5a76+'\x20\x0a'+JSON[_0x32ae68(0x211)](_0xbe5a76[_0x32ae68(0x204)])+'\x20';logger[_0x32ae68(0x1fa)](_0x383d0b),process[_0x32ae68(0x206)](0x1);}};
1
+ function a21_0x24f4(_0x39113d,_0x59e27f){const _0x3daf40=a21_0x3daf();return a21_0x24f4=function(_0x24f449,_0x30201d){_0x24f449=_0x24f449-0x1b5;let _0x6680b4=_0x3daf40[_0x24f449];return _0x6680b4;},a21_0x24f4(_0x39113d,_0x59e27f);}const a21_0x332078=a21_0x24f4;(function(_0x2ce031,_0x122cb0){const _0x1b5b67=a21_0x24f4,_0x152eb8=_0x2ce031();while(!![]){try{const _0x227996=parseInt(_0x1b5b67(0x1e2))/0x1*(-parseInt(_0x1b5b67(0x1e0))/0x2)+parseInt(_0x1b5b67(0x214))/0x3*(-parseInt(_0x1b5b67(0x1ec))/0x4)+-parseInt(_0x1b5b67(0x1cf))/0x5*(-parseInt(_0x1b5b67(0x20f))/0x6)+parseInt(_0x1b5b67(0x1c5))/0x7*(parseInt(_0x1b5b67(0x1be))/0x8)+parseInt(_0x1b5b67(0x1f1))/0x9*(parseInt(_0x1b5b67(0x1d5))/0xa)+-parseInt(_0x1b5b67(0x204))/0xb*(-parseInt(_0x1b5b67(0x1bb))/0xc)+parseInt(_0x1b5b67(0x20a))/0xd;if(_0x227996===_0x122cb0)break;else _0x152eb8['push'](_0x152eb8['shift']());}catch(_0x57434f){_0x152eb8['push'](_0x152eb8['shift']());}}}(a21_0x3daf,0x924ce));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x332078(0x213)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x332078(0x1ed)),{getCredentialsPath,getGridDetails}=require(a21_0x332078(0x1de)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x332078(0x200)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x332078(0x1e5)),{getCloudProviderObject}=require(a21_0x332078(0x1ea));function a21_0x3daf(){const _0x463485=['region','<PasswordPlaceholder>','16leFXXD','password','default','Grid\x20stoppped.','qjfJb','existsSync','<UsernamePlaceholder>','979783beTlUR','ygexa','ipXBk','MZhUB','grid','skip-tls-cert-verify','bstackUsername','builder','username','cUQor','20ZrBGMY','SNItj','INFO','cloudProvider','FIuEX','stringify','4210uvXtMt','Adding\x20Websocket\x20listeners','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','info','aymjv','clusterName','stack','body','gridId','../../utils/utilityMethods','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','85574GpPJDA','GvQBj','26xMUzmW','Stopping\x20grid\x20','CNduZ','../../utils/createk8sClient','addListeners','clusterRegion','txSKc','readFileSync','../../cloudproviders/utils','debug','4HWKpCW','../../config/logger','DtedM','MrmuE','YueVv','1719mzqBUJ','UFrrI','Browserstack','help','Stop\x20a\x20running\x20Automation\x20grid.','init-not-called','error','message','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','invalid-grid-id','replace','RRmAP','parse','unauthorised','string','../../utils/instrumentationUtils','argv','options','fltgJ','310068ukJpXB','boolean','HOOjs','ERROR','desc','server-error','7176156ShXrOw','user','MzsSh','AxOYn','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','909654dlXaqU','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','name','gHtbN','reconnecting-websocket','2296443niFDIn','description','type','exit','command','grid-id','ZfBOS','408FcFLDH'];a21_0x3daf=function(){return _0x463485;};return a21_0x3daf();}exports[a21_0x332078(0x1b8)]=a21_0x332078(0x1c9),exports[a21_0x332078(0x208)]=a21_0x332078(0x1f5),exports[a21_0x332078(0x1cc)]=function(_0x5b971f){const _0x436812=a21_0x332078,_0x1f4b80={};_0x1f4b80['aymjv']=_0x436812(0x20e),_0x1f4b80[_0x436812(0x203)]=_0x436812(0x1ff),_0x1f4b80[_0x436812(0x1d0)]='Skip\x20insecure\x20cert\x20verification.',_0x1f4b80[_0x436812(0x1ef)]=_0x436812(0x205),_0x1f4b80[_0x436812(0x1e4)]=_0x436812(0x1f4);const _0x32571c=_0x1f4b80,_0x1d51f3={};_0x1d51f3['description']=_0x32571c[_0x436812(0x1d9)],_0x1d51f3[_0x436812(0x1b6)]=_0x32571c[_0x436812(0x203)];const _0x36f51c={};_0x36f51c[_0x436812(0x1b5)]=_0x32571c[_0x436812(0x1d0)],_0x36f51c[_0x436812(0x1b6)]=_0x32571c[_0x436812(0x1ef)],_0x36f51c[_0x436812(0x1c0)]=![];const _0x40613d={};return _0x40613d[_0x436812(0x1b9)]=_0x1d51f3,_0x40613d[_0x436812(0x1ca)]=_0x36f51c,_0x5b971f['usage'](HELP_HEADER_MESSAGE['stop'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x436812(0x202)](_0x40613d)[_0x436812(0x1f4)](_0x32571c[_0x436812(0x1e4)])[_0x436812(0x201)];},exports['handler']=async function(_0x136261){const _0x4b9244=a21_0x332078,_0xbd60ab={'DtedM':_0x4b9244(0x1d7),'YueVv':function(_0x51d208){return _0x51d208();},'FIuEX':_0x4b9244(0x1f9),'gHtbN':function(_0x22f571,_0x2ea5ed,_0x41c317,_0x20b4bc,_0xdd1679,_0x2f83ad,_0x296d37){return _0x22f571(_0x2ea5ed,_0x41c317,_0x20b4bc,_0xdd1679,_0x2f83ad,_0x296d37);},'ipXBk':'stop-grid-called','VrtBu':_0x4b9244(0x1f6),'MzsSh':function(_0x1065eb,_0x789faa,_0x591a69,_0x5f3da5,_0x1b0d97,_0x4c200b,_0x15d0e6){return _0x1065eb(_0x789faa,_0x591a69,_0x5f3da5,_0x1b0d97,_0x4c200b,_0x15d0e6);},'GvQBj':function(_0xab1eb0){return _0xab1eb0();},'ygexa':_0x4b9244(0x1c4),'txSKc':_0x4b9244(0x1bd),'cUQor':_0x4b9244(0x1d6),'MZhUB':function(_0x41b4a7,_0x150774,_0x4d7c60,_0x4b80a4){return _0x41b4a7(_0x150774,_0x4d7c60,_0x4b80a4);},'qjfJb':function(_0x182426,_0x32bd25,_0x27a3f3,_0x262ac8,_0x43b224,_0x2a1587,_0x57bbf7){return _0x182426(_0x32bd25,_0x27a3f3,_0x262ac8,_0x43b224,_0x2a1587,_0x57bbf7);},'AxOYn':function(_0x1643c5,_0x5c4d71,_0x1ca5fa){return _0x1643c5(_0x5c4d71,_0x1ca5fa);},'ZfBOS':_0x4b9244(0x1c1),'RRmAP':function(_0x256cef,_0x4d93af){return _0x256cef===_0x4d93af;},'lyoLX':_0x4b9244(0x210),'UFrrI':function(_0x37fd59,_0x202e68,_0x34b582,_0x3646f8,_0x1ccd63,_0x519397,_0xb0f8c2){return _0x37fd59(_0x202e68,_0x34b582,_0x3646f8,_0x1ccd63,_0x519397,_0xb0f8c2);},'PAtbZ':_0x4b9244(0x1fe),'maIWP':function(_0x332309,_0x35528f){return _0x332309===_0x35528f;},'HOOjs':_0x4b9244(0x1fa),'QSSZB':_0x4b9244(0x209)};let _0x2f014f;try{!_0x136261['gridId']&&(logger[_0x4b9244(0x1f7)](_0xbd60ab[_0x4b9244(0x1ee)]),process[_0x4b9244(0x1b7)](0x1));!fs[_0x4b9244(0x1c3)](_0xbd60ab[_0x4b9244(0x1f0)](getCredentialsPath))&&(logger[_0x4b9244(0x1f7)](_0xbd60ab[_0x4b9244(0x1d3)]),await _0xbd60ab[_0x4b9244(0x212)](sendInstrumentationEvent,_0x136261,_0xbd60ab['ipXBk'],messageTypes[_0x4b9244(0x207)],_0xbd60ab['VrtBu'],null,_0x136261),process[_0x4b9244(0x1b7)](0x1));logger[_0x4b9244(0x1d8)](_0x4b9244(0x1e3)+_0x136261[_0x4b9244(0x1dd)]),await _0xbd60ab[_0x4b9244(0x20c)](sendInstrumentationEvent,_0x136261,_0xbd60ab['ipXBk'],messageTypes[_0x4b9244(0x1d1)],null,null,_0x136261);const _0x194c00=JSON[_0x4b9244(0x1fd)](fs[_0x4b9244(0x1e9)](_0xbd60ab[_0x4b9244(0x1e1)](getCredentialsPath)));global_registry[_0x4b9244(0x1cb)]=_0x194c00[_0x4b9244(0x1f3)][_0x4b9244(0x1cd)],global_registry['bstackAccesskey']=_0x194c00[_0x4b9244(0x1f3)][_0x4b9244(0x1bf)];const _0x3478ac=WS_ENDPOINT[_0x4b9244(0x1fb)](_0xbd60ab[_0x4b9244(0x1c6)],_0x194c00[_0x4b9244(0x1f3)][_0x4b9244(0x1cd)])[_0x4b9244(0x1fb)](_0xbd60ab[_0x4b9244(0x1e8)],_0x194c00[_0x4b9244(0x1f3)][_0x4b9244(0x1bf)]),_0x268ae1={};_0x268ae1['WebSocket']=ws,_0x268ae1['connectionTimeout']=0x36ee80,_0x2f014f=new ReconnectingWebSocket(_0x3478ac,[],_0x268ae1),logger[_0x4b9244(0x1eb)](_0xbd60ab[_0x4b9244(0x1ce)]),webSocketUtils[_0x4b9244(0x1e6)](_0x2f014f,_0x136261[_0x4b9244(0x20b)],_0x136261['password']);const [_0x5a809e,_0x434c04]=await _0xbd60ab[_0x4b9244(0x1c8)](getGridDetails,_0x194c00['Browserstack']['username'],_0x194c00['Browserstack']['password'],_0x136261[_0x4b9244(0x1dd)]);if(_0x434c04){const _0x34f7fc=_0x434c04[_0x4b9244(0x1d8)];global_registry[_0x4b9244(0x1d2)]=_0x34f7fc[_0x4b9244(0x1d2)],global_registry[_0x4b9244(0x1e7)]=_0x34f7fc[_0x4b9244(0x1bc)],global_registry[_0x4b9244(0x1da)]=_0x34f7fc[_0x4b9244(0x1da)];const _0x461d3c=await _0xbd60ab[_0x4b9244(0x1c2)](getCloudProviderObject,_0x34f7fc['cloudProvider'],_0x34f7fc[_0x4b9244(0x1da)],_0x34f7fc['name'],_0x2f014f,webSocketUtils,_0x136261),[_0x403ed9,_0x41a820,_0x351718,_0x398f30,_0x638c7b,_0xfafc1d]=await _0xbd60ab['AxOYn'](createK8sClient,_0x461d3c,_0x136261['skipTlsCertVerify']);await _0xbd60ab[_0x4b9244(0x20d)](scaleDownHubDeployment,_0x41a820,_0x34f7fc[_0x4b9244(0x211)]),logger[_0x4b9244(0x1d8)](_0xbd60ab[_0x4b9244(0x1ba)]),process[_0x4b9244(0x1b7)](0x0);}_0xbd60ab[_0x4b9244(0x1fc)](_0x5a809e['statusCode'],0x191)&&(logger[_0x4b9244(0x1f7)](_0xbd60ab['lyoLX']),await _0xbd60ab[_0x4b9244(0x1f2)](sendInstrumentationEvent,_0x136261,_0xbd60ab[_0x4b9244(0x1c7)],messageTypes[_0x4b9244(0x207)],_0xbd60ab['PAtbZ'],null,_0x136261),process[_0x4b9244(0x1b7)](0x1)),_0xbd60ab['maIWP'](_0x5a809e['statusCode'],0x190)&&(logger[_0x4b9244(0x1f7)](JSON[_0x4b9244(0x1fd)](_0x5a809e[_0x4b9244(0x1dc)])[_0x4b9244(0x1f8)]),await _0xbd60ab['UFrrI'](sendInstrumentationEvent,_0x136261,_0xbd60ab[_0x4b9244(0x1c7)],messageTypes[_0x4b9244(0x207)],_0xbd60ab[_0x4b9244(0x206)],null,_0x136261),process[_0x4b9244(0x1b7)](0x1)),logger[_0x4b9244(0x1f7)](_0x4b9244(0x1df)+JSON['stringify'](_0x5a809e)),await _0xbd60ab['MzsSh'](sendInstrumentationEvent,_0x136261,_0xbd60ab[_0x4b9244(0x1c7)],messageTypes[_0x4b9244(0x207)],_0xbd60ab['QSSZB'],_0x5a809e,_0x136261),process[_0x4b9244(0x1b7)](0x1);}catch(_0x469adf){const _0x4bd290='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x469adf+'\x20\x0a'+JSON[_0x4b9244(0x1d4)](_0x469adf[_0x4b9244(0x1db)])+'\x20';logger[_0x4b9244(0x1f7)](_0x4bd290),process[_0x4b9244(0x1b7)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x47b1ae=a22_0x2169;function a22_0x3929(){const _0x4b8f0a=['11162zUdlHz','root','BrowserStack-Automate-TurboScale','AZURE','list','warning','BS_API_URL','azure','cliRunStarted','success','unknown','TURBOSCALE_CUSTOM_TAGS','Value','HELP_HEADER_MESSAGE','WS_EVENTS','error','gridProfile','log','start','HELP_FOOTER_MESSAGE','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','create','credentials','35sIVTAi','MessageDescription','2864796kPuBVO','gridUrl','268584wmDLKu','config','pre_check','126DqfDnh','CLUSTER_AUTOSCALER_STACK_NAME','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','BSTACK-ATS-CLUSTER-HUB-HA','REGION','794057ipGVQa','grid.browserstack.com','BSTACK-ATS-CLUSTER-AUTOSCALER','connect','4400064nbsjGQ','GCP','BrowserStack','grid-profile','CLOUD_PROVIDER','browserstack:service','TURBOSCALE_DEPLOYMENT','IAM_USER_NAME','GRID_URL','aws','RESOURCES','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','dotenv','AG_API_URL','CLI_RUN_STARTED','global_registry','TRIAL_GRID_URL','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','CLUSTER_HUB_HA_STACK_NAME','CLI_ARGS_REGEX','281330NdsLZO','CP_CONFIG_FILE','WS_ENDPOINT','us-east-1','INFO','browserstack:managedBy','cliRunFinished','NULL','push','Key','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','info','env','REDACTED','gcp','grid-api.browserstack.com','SUPPORTED_CLOUD_PROVIDERS','4055XfoQja','pre-check','188YnIDAi','LINK_MESSAGE','CLI_RUN_FINISHED','grid','HST_CLUSTER_TAGS','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','delete','api.browserstack.com','WARNING','60bICeRg','BrowserStackIAMUser','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','[REDACTED]','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','high-scale-grid-cluster','AWS','configure'];a22_0x3929=function(){return _0x4b8f0a;};return a22_0x3929();}(function(_0x5d27b5,_0x234a54){const _0x2b0658=a22_0x2169,_0x25786d=_0x5d27b5();while(!![]){try{const _0x5816db=parseInt(_0x2b0658(0x11a))/0x1+parseInt(_0x2b0658(0x140))/0x2*(parseInt(_0x2b0658(0xfc))/0x3)+parseInt(_0x2b0658(0x12d))/0x4*(parseInt(_0x2b0658(0x12b))/0x5)+parseInt(_0x2b0658(0xf7))/0x6+parseInt(_0x2b0658(0xf5))/0x7*(parseInt(_0x2b0658(0xf9))/0x8)+-parseInt(_0x2b0658(0x106))/0x9+parseInt(_0x2b0658(0x136))/0xa*(-parseInt(_0x2b0658(0x102))/0xb);if(_0x5816db===_0x234a54)break;else _0x25786d['push'](_0x25786d['shift']());}catch(_0x2b93cb){_0x25786d['push'](_0x25786d['shift']());}}}(a22_0x3929,0x43aaa),require(a22_0x47b1ae(0x112))[a22_0x47b1ae(0xfa)](),exports['DASHBOARD_ENDPOINT']=process[a22_0x47b1ae(0x126)]['DASHBOARD_ENDPOINT']||a22_0x47b1ae(0x103),exports[a22_0x47b1ae(0xe4)]=process[a22_0x47b1ae(0x126)]['BS_API_URL']||a22_0x47b1ae(0x134),exports['AG_API_URL']=process[a22_0x47b1ae(0x126)][a22_0x47b1ae(0x113)]||a22_0x47b1ae(0x129),exports[a22_0x47b1ae(0x11c)]='wss://'+this[a22_0x47b1ae(0x113)]+a22_0x47b1ae(0x13b),exports[a22_0x47b1ae(0x11b)]=a22_0x47b1ae(0xf4),exports[a22_0x47b1ae(0x10d)]=a22_0x47b1ae(0x137),exports['DEFAULT_GRID_NAME']='high-scale-grid',exports[a22_0x47b1ae(0x13e)]='aws',exports['CLUSTER_DEP_STACK_NAME']='BSTACK-ATS-CLUSTER',exports[a22_0x47b1ae(0xfd)]=a22_0x47b1ae(0x104),exports[a22_0x47b1ae(0x118)]=a22_0x47b1ae(0x100),exports[a22_0x47b1ae(0x10c)]='browserstack-turboscale-grid',exports[a22_0x47b1ae(0x143)]=a22_0x47b1ae(0xe5),exports[a22_0x47b1ae(0x107)]=a22_0x47b1ae(0x128),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x47b1ae(0x13e)],this[a22_0x47b1ae(0x143)],this['GCP']]);const a22_0x34aed0={};a22_0x34aed0[a22_0x47b1ae(0x123)]=a22_0x47b1ae(0x11f),a22_0x34aed0[a22_0x47b1ae(0xea)]=a22_0x47b1ae(0x108);const a22_0x1abd2c={};a22_0x1abd2c['Key']='browserstack:service',a22_0x1abd2c[a22_0x47b1ae(0xea)]=a22_0x47b1ae(0x142);const common_hst_tags_list=[a22_0x34aed0,a22_0x1abd2c];if(process['env'][a22_0x47b1ae(0xe9)]){const parsedTags=process[a22_0x47b1ae(0x126)][a22_0x47b1ae(0xe9)]['split'](',');parsedTags['forEach'](_0x3bc30e=>{const _0x579dd7=a22_0x47b1ae,_0x52b815=_0x3bc30e['split'](':'),_0x28937e={};_0x28937e[_0x579dd7(0x123)]=_0x52b815[0x0],_0x28937e[_0x579dd7(0xea)]=_0x52b815[0x1],common_hst_tags_list[_0x579dd7(0x122)](_0x28937e);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0xefbdc={};a22_0xefbdc[a22_0x47b1ae(0x11f)]=a22_0x47b1ae(0x108),a22_0xefbdc[a22_0x47b1ae(0x10b)]='BrowserStack-Automate-TurboScale',exports[a22_0x47b1ae(0x131)]=a22_0xefbdc,exports[a22_0x47b1ae(0x12a)]=[this['AWS']];const a22_0x42bdf2={};a22_0x42bdf2['LOG']=a22_0x47b1ae(0xef),a22_0x42bdf2[a22_0x47b1ae(0x110)]='resourceInfo',a22_0x42bdf2[a22_0x47b1ae(0x10e)]=a22_0x47b1ae(0xf8),a22_0x42bdf2[a22_0x47b1ae(0x114)]=a22_0x47b1ae(0xe6),a22_0x42bdf2[a22_0x47b1ae(0x12f)]=a22_0x47b1ae(0x120),exports[a22_0x47b1ae(0xec)]=a22_0x42bdf2,exports[a22_0x47b1ae(0x115)]={},exports['LINK_MESSAGE']=a22_0x47b1ae(0x138);const a22_0x1e003d={};a22_0x1e003d[a22_0x47b1ae(0x141)]=a22_0x47b1ae(0x13c)+this[a22_0x47b1ae(0x12e)],a22_0x1e003d['init']=a22_0x47b1ae(0xfe)+this[a22_0x47b1ae(0x12e)],a22_0x1e003d[a22_0x47b1ae(0x13f)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a22_0x47b1ae(0x12e)],a22_0x1e003d[a22_0x47b1ae(0xf3)]=a22_0x47b1ae(0xff)+this[a22_0x47b1ae(0x12e)],a22_0x1e003d[a22_0x47b1ae(0x144)]={},a22_0x1e003d[a22_0x47b1ae(0x133)]=a22_0x47b1ae(0xf2)+this['LINK_MESSAGE'],a22_0x1e003d[a22_0x47b1ae(0x105)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x47b1ae(0x12e)],a22_0x1e003d[a22_0x47b1ae(0xf0)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x47b1ae(0x12e)],a22_0x1e003d['stop']=a22_0x47b1ae(0x111)+this[a22_0x47b1ae(0x12e)],a22_0x1e003d[a22_0x47b1ae(0xfb)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this[a22_0x47b1ae(0x12e)],a22_0x1e003d[a22_0x47b1ae(0x144)][a22_0x47b1ae(0x141)]=a22_0x47b1ae(0x139)+this[a22_0x47b1ae(0x12e)],a22_0x1e003d[a22_0x47b1ae(0x144)][a22_0x47b1ae(0x130)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a22_0x47b1ae(0x12e)],a22_0x1e003d[a22_0x47b1ae(0x144)][a22_0x47b1ae(0xee)]=a22_0x47b1ae(0x124)+this['LINK_MESSAGE'],exports[a22_0x47b1ae(0xeb)]=a22_0x1e003d,exports[a22_0x47b1ae(0xf1)]=a22_0x47b1ae(0x132);const a22_0x3166c9={};a22_0x3166c9['SUCCESS']=a22_0x47b1ae(0xe7),a22_0x3166c9['ERROR']=a22_0x47b1ae(0xed),a22_0x3166c9[a22_0x47b1ae(0x11e)]=a22_0x47b1ae(0x125),a22_0x3166c9[a22_0x47b1ae(0x135)]=a22_0x47b1ae(0xe3),a22_0x3166c9['UNKNOWN']=a22_0x47b1ae(0xe8),a22_0x3166c9[a22_0x47b1ae(0x121)]=null,exports['messageTypes']=a22_0x3166c9,exports[a22_0x47b1ae(0x119)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x47b1ae(0x127)]=a22_0x47b1ae(0x13a);const a22_0x19d6bb={};a22_0x19d6bb[a22_0x47b1ae(0x109)]=a22_0x47b1ae(0x117);const a22_0x2bf504={};a22_0x2bf504[a22_0x47b1ae(0x12c)]=a22_0x19d6bb,exports[a22_0x47b1ae(0xf6)]=a22_0x2bf504,exports[a22_0x47b1ae(0x116)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x5c295b={};function a22_0x2169(_0x10f1ce,_0x540239){const _0x39292b=a22_0x3929();return a22_0x2169=function(_0x216910,_0x4fea46){_0x216910=_0x216910-0xe3;let _0x386cfc=_0x39292b[_0x216910];return _0x386cfc;},a22_0x2169(_0x10f1ce,_0x540239);}a22_0x5c295b['CLUSTER']=a22_0x47b1ae(0x13d),a22_0x5c295b[a22_0x47b1ae(0x10a)]=a22_0x47b1ae(0x10f),a22_0x5c295b[a22_0x47b1ae(0x101)]=a22_0x47b1ae(0x11d),exports['DEFAULT_CLUSTER_DETAILS']=a22_0x5c295b;
1
+ const a22_0x384ece=a22_0x3a77;(function(_0x316f56,_0x397761){const _0x44fe5a=a22_0x3a77,_0x3152c9=_0x316f56();while(!![]){try{const _0x2c9d17=parseInt(_0x44fe5a(0x1d0))/0x1+-parseInt(_0x44fe5a(0x1e4))/0x2*(parseInt(_0x44fe5a(0x1c8))/0x3)+parseInt(_0x44fe5a(0x1c3))/0x4+-parseInt(_0x44fe5a(0x1d1))/0x5*(parseInt(_0x44fe5a(0x1c1))/0x6)+parseInt(_0x44fe5a(0x1a3))/0x7+parseInt(_0x44fe5a(0x1b4))/0x8*(parseInt(_0x44fe5a(0x1fa))/0x9)+parseInt(_0x44fe5a(0x1a8))/0xa*(-parseInt(_0x44fe5a(0x1e9))/0xb);if(_0x2c9d17===_0x397761)break;else _0x3152c9['push'](_0x3152c9['shift']());}catch(_0x21e43f){_0x3152c9['push'](_0x3152c9['shift']());}}}(a22_0x4707,0x8f718),require(a22_0x384ece(0x1a0))[a22_0x384ece(0x1d6)](),exports[a22_0x384ece(0x1e7)]=process[a22_0x384ece(0x1ed)][a22_0x384ece(0x1e7)]||a22_0x384ece(0x1b5),exports[a22_0x384ece(0x1d2)]=process[a22_0x384ece(0x1ed)]['BS_API_URL']||a22_0x384ece(0x1fe),exports['AG_API_URL']=process[a22_0x384ece(0x1ed)][a22_0x384ece(0x1ee)]||a22_0x384ece(0x1d7),exports[a22_0x384ece(0x1c4)]='wss://'+this[a22_0x384ece(0x1ee)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x384ece(0x1a1)]=a22_0x384ece(0x1e5),exports['IAM_USER_NAME']=a22_0x384ece(0x1cd),exports[a22_0x384ece(0x1a2)]=a22_0x384ece(0x1cb),exports[a22_0x384ece(0x1ad)]=a22_0x384ece(0x1b8),exports[a22_0x384ece(0x1a4)]=a22_0x384ece(0x1fc),exports[a22_0x384ece(0x1ea)]=a22_0x384ece(0x1b3),exports[a22_0x384ece(0x1f4)]='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x384ece(0x1c6)]='browserstack-turboscale-grid',exports[a22_0x384ece(0x1aa)]=a22_0x384ece(0x1d9),exports['GCP']=a22_0x384ece(0x1f2),exports[a22_0x384ece(0x1b7)]=[this[a22_0x384ece(0x1ad)],this[a22_0x384ece(0x1aa)],this[a22_0x384ece(0x1cf)]]);const a22_0x4cedc4={};a22_0x4cedc4[a22_0x384ece(0x1ba)]=a22_0x384ece(0x1ec),a22_0x4cedc4[a22_0x384ece(0x1a9)]=a22_0x384ece(0x1ef);const a22_0x5c815={};a22_0x5c815[a22_0x384ece(0x1ba)]=a22_0x384ece(0x1ce),a22_0x5c815[a22_0x384ece(0x1a9)]=a22_0x384ece(0x1dd);const common_hst_tags_list=[a22_0x4cedc4,a22_0x5c815];if(process['env']['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x384ece(0x1ed)]['TURBOSCALE_CUSTOM_TAGS']['split'](',');parsedTags['forEach'](_0x393fd2=>{const _0x496d1d=a22_0x384ece,_0x597d5f=_0x393fd2['split'](':'),_0x4e401a={};_0x4e401a[_0x496d1d(0x1ba)]=_0x597d5f[0x0],_0x4e401a[_0x496d1d(0x1a9)]=_0x597d5f[0x1],common_hst_tags_list[_0x496d1d(0x1e3)](_0x4e401a);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x84250c={};a22_0x84250c[a22_0x384ece(0x1ec)]=a22_0x384ece(0x1ef),a22_0x84250c['browserstack:service']='BrowserStack-Automate-TurboScale',exports[a22_0x384ece(0x1b9)]=a22_0x84250c,exports[a22_0x384ece(0x1f5)]=[this[a22_0x384ece(0x1ad)]];const a22_0x5a9c9e={};a22_0x5a9c9e['LOG']=a22_0x384ece(0x1d8),a22_0x5a9c9e['RESOURCES']=a22_0x384ece(0x1af),a22_0x5a9c9e[a22_0x384ece(0x1bb)]=a22_0x384ece(0x1c9),a22_0x5a9c9e['CLI_RUN_STARTED']=a22_0x384ece(0x1f1),a22_0x5a9c9e['CLI_RUN_FINISHED']='cliRunFinished',exports[a22_0x384ece(0x19f)]=a22_0x5a9c9e,exports[a22_0x384ece(0x1d3)]={},exports[a22_0x384ece(0x1db)]=a22_0x384ece(0x1c5);function a22_0x3a77(_0x8ccc36,_0x22b7ee){const _0x47074f=a22_0x4707();return a22_0x3a77=function(_0x3a7728,_0x2b51f1){_0x3a7728=_0x3a7728-0x19e;let _0x22324f=_0x47074f[_0x3a7728];return _0x22324f;},a22_0x3a77(_0x8ccc36,_0x22b7ee);}const a22_0x4f3746={};a22_0x4f3746[a22_0x384ece(0x1ac)]=a22_0x384ece(0x1f0)+this[a22_0x384ece(0x1db)],a22_0x4f3746[a22_0x384ece(0x1f6)]=a22_0x384ece(0x1e2)+this[a22_0x384ece(0x1db)],a22_0x4f3746[a22_0x384ece(0x1f3)]=a22_0x384ece(0x1fb)+this[a22_0x384ece(0x1db)],a22_0x4f3746[a22_0x384ece(0x1fd)]=a22_0x384ece(0x19e)+this[a22_0x384ece(0x1db)],a22_0x4f3746[a22_0x384ece(0x1e8)]={},a22_0x4f3746['delete']=a22_0x384ece(0x1bf)+this[a22_0x384ece(0x1db)],a22_0x4f3746[a22_0x384ece(0x1a6)]=a22_0x384ece(0x1f8)+this[a22_0x384ece(0x1db)],a22_0x4f3746[a22_0x384ece(0x1df)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x384ece(0x1db)],a22_0x4f3746[a22_0x384ece(0x1a7)]=a22_0x384ece(0x1e1)+this[a22_0x384ece(0x1db)],a22_0x4f3746[a22_0x384ece(0x1d5)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this[a22_0x384ece(0x1db)],a22_0x4f3746[a22_0x384ece(0x1e8)][a22_0x384ece(0x1ac)]=a22_0x384ece(0x1eb)+this[a22_0x384ece(0x1db)],a22_0x4f3746[a22_0x384ece(0x1e8)][a22_0x384ece(0x1c0)]=a22_0x384ece(0x1f7)+this[a22_0x384ece(0x1db)],a22_0x4f3746[a22_0x384ece(0x1e8)][a22_0x384ece(0x1b0)]=a22_0x384ece(0x1c7)+this[a22_0x384ece(0x1db)],exports[a22_0x384ece(0x1e6)]=a22_0x4f3746,exports['HELP_FOOTER_MESSAGE']=a22_0x384ece(0x1de);const a22_0x4551f4={};a22_0x4551f4[a22_0x384ece(0x1d4)]='success',a22_0x4551f4['ERROR']=a22_0x384ece(0x1b2),a22_0x4551f4[a22_0x384ece(0x1bd)]=a22_0x384ece(0x1ca),a22_0x4551f4['WARNING']=a22_0x384ece(0x1dc),a22_0x4551f4['UNKNOWN']='unknown',a22_0x4551f4['NULL']=null,exports[a22_0x384ece(0x1ab)]=a22_0x4551f4,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x384ece(0x1e0)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']='[REDACTED]';const a22_0x5731c3={};a22_0x5731c3[a22_0x384ece(0x1b6)]='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x5291e8={};a22_0x5291e8[a22_0x384ece(0x1b1)]=a22_0x5731c3,exports[a22_0x384ece(0x1a5)]=a22_0x5291e8,exports[a22_0x384ece(0x1cc)]=a22_0x384ece(0x1bc);const a22_0x5cf071={};function a22_0x4707(){const _0x4dbfc2=['\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','WS_EVENTS','dotenv','CP_CONFIG_FILE','DEFAULT_GRID_NAME','1821197VacAGT','CLUSTER_DEP_STACK_NAME','MessageDescription','connect','stop','1340gvydiA','Value','AZURE','messageTypes','root','AWS','CLUSTER','resourceInfo','gridProfile','pre-check','error','BSTACK-ATS-CLUSTER-AUTOSCALER','5069304HSFgwP','grid.browserstack.com','grid-profile','ALL_SUPPORTED_CLOUD_PROVIDERS','aws','HST_CLUSTER_TAGS','Key','GRID_URL','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','INFO','CLOUD_PROVIDER','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','grid','1385346lKZDTm','us-east-1','4088076wQjOsl','WS_ENDPOINT','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','TURBOSCALE_DEPLOYMENT','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','633okYcXF','gridUrl','info','high-scale-grid','TRIAL_GRID_URL','BrowserStackIAMUser','browserstack:service','GCP','895503AvlgrO','5JTRyRq','BS_API_URL','global_registry','SUCCESS','pre_check','config','grid-api.browserstack.com','log','azure','DEFAULT_CLUSTER_DETAILS','LINK_MESSAGE','warning','BrowserStack-Automate-TurboScale','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','start','RAW_ARGS_REGEX','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','push','698SXsZZL','credentials','HELP_HEADER_MESSAGE','DASHBOARD_ENDPOINT','list','157553GgWHdw','CLUSTER_AUTOSCALER_STACK_NAME','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','browserstack:managedBy','env','AG_API_URL','BrowserStack','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','cliRunStarted','gcp','configure','CLUSTER_HUB_HA_STACK_NAME','SUPPORTED_CLOUD_PROVIDERS','init','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','high-scale-grid-cluster','9xnCVtF','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','BSTACK-ATS-CLUSTER','create','api.browserstack.com'];a22_0x4707=function(){return _0x4dbfc2;};return a22_0x4707();}a22_0x5cf071[a22_0x384ece(0x1ae)]=a22_0x384ece(0x1f9),a22_0x5cf071[a22_0x384ece(0x1be)]=a22_0x384ece(0x1b8),a22_0x5cf071['REGION']=a22_0x384ece(0x1c2),exports[a22_0x384ece(0x1da)]=a22_0x5cf071;
@@ -1 +1 @@
1
- const a23_0x5b0841=a23_0x25ca;(function(_0x3c412c,_0x286d15){const _0x207a40=a23_0x25ca,_0xb9f606=_0x3c412c();while(!![]){try{const _0x1bcd22=parseInt(_0x207a40(0x9f))/0x1+parseInt(_0x207a40(0x9e))/0x2*(parseInt(_0x207a40(0xa6))/0x3)+-parseInt(_0x207a40(0xaf))/0x4+-parseInt(_0x207a40(0xb3))/0x5+parseInt(_0x207a40(0xac))/0x6+-parseInt(_0x207a40(0xa8))/0x7*(parseInt(_0x207a40(0xb4))/0x8)+parseInt(_0x207a40(0xa7))/0x9*(parseInt(_0x207a40(0x9b))/0xa);if(_0x1bcd22===_0x286d15)break;else _0xb9f606['push'](_0xb9f606['shift']());}catch(_0x11cd30){_0xb9f606['push'](_0xb9f606['shift']());}}}(a23_0xd605,0x7e244));const winston=require(a23_0x5b0841(0x9a)),fs=require('fs'),path=require(a23_0x5b0841(0xa1)),logDir='log';!fs[a23_0x5b0841(0xad)](logDir)&&fs[a23_0x5b0841(0xa9)](logDir);const a23_0x55768={};function a23_0x25ca(_0x4c1e1c,_0x28313e){const _0xd6051f=a23_0xd605();return a23_0x25ca=function(_0x25ca36,_0x1e3d60){_0x25ca36=_0x25ca36-0x9a;let _0x23adcc=_0xd6051f[_0x25ca36];return _0x23adcc;},a23_0x25ca(_0x4c1e1c,_0x28313e);}function a23_0xd605(){const _0x3baff0=['console.info','Console','name','winston','276540geowuG','level','transports','258124VPganj','758633XiEVhU','createLogger','path','timestamp','printf','debug','fileLogger','9qGKqXF','27yThRWW','266aTGpNn','mkdirSync','File','colorize','5572638oQkCjr','existsSync','logger','2712316nqvXKF','events.log','format','join','4160205tuRMqZ','27528UWXEjN'];a23_0xd605=function(){return _0x3baff0;};return a23_0xd605();}a23_0x55768[a23_0x5b0841(0xb1)]='YYYY-MM-DD\x20HH:mm:ss';const a23_0x1e49a4={};a23_0x1e49a4['level']=!![];const a23_0x530148={};a23_0x530148[a23_0x5b0841(0xb7)]=a23_0x5b0841(0xb5),exports[a23_0x5b0841(0xae)]=new winston[(a23_0x5b0841(0xa0))]({'format':winston['format']['combine'](winston[a23_0x5b0841(0xb1)][a23_0x5b0841(0xa2)](a23_0x55768),winston[a23_0x5b0841(0xb1)][a23_0x5b0841(0xab)](a23_0x1e49a4),winston[a23_0x5b0841(0xb1)][a23_0x5b0841(0xa3)](_0x404b31=>_0x404b31[a23_0x5b0841(0xa2)]+'\x20-\x20'+_0x404b31[a23_0x5b0841(0x9c)]+':\x20'+_0x404b31['message'])),'transports':[new winston['transports'][(a23_0x5b0841(0xb6))](a23_0x530148),new winston[(a23_0x5b0841(0x9d))][(a23_0x5b0841(0xaa))]({'filename':path['join'](logDir,a23_0x5b0841(0xb0)),'level':a23_0x5b0841(0xa4)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x5b0841(0x9d))][(a23_0x5b0841(0xaa))]({'filename':path[a23_0x5b0841(0xb2)](logDir,'usage.log'),'level':a23_0x5b0841(0xa4)})]};exports[a23_0x5b0841(0xa5)]=new winston[(a23_0x5b0841(0xa0))](winstonFileLoggerParams);
1
+ const a23_0x1e4ce2=a23_0x3969;(function(_0x12f9a0,_0x8e8962){const _0xb86daf=a23_0x3969,_0xdec733=_0x12f9a0();while(!![]){try{const _0x5de99d=-parseInt(_0xb86daf(0x17e))/0x1+-parseInt(_0xb86daf(0x182))/0x2*(-parseInt(_0xb86daf(0x17b))/0x3)+-parseInt(_0xb86daf(0x186))/0x4*(-parseInt(_0xb86daf(0x16e))/0x5)+parseInt(_0xb86daf(0x173))/0x6+parseInt(_0xb86daf(0x177))/0x7*(-parseInt(_0xb86daf(0x175))/0x8)+parseInt(_0xb86daf(0x176))/0x9*(parseInt(_0xb86daf(0x180))/0xa)+parseInt(_0xb86daf(0x16c))/0xb;if(_0x5de99d===_0x8e8962)break;else _0xdec733['push'](_0xdec733['shift']());}catch(_0x3ab0d3){_0xdec733['push'](_0xdec733['shift']());}}}(a23_0x4af4,0x552c0));const winston=require('winston'),fs=require('fs'),path=require(a23_0x1e4ce2(0x183)),logDir=a23_0x1e4ce2(0x172);!fs[a23_0x1e4ce2(0x189)](logDir)&&fs[a23_0x1e4ce2(0x171)](logDir);function a23_0x3969(_0x268377,_0x2432e2){const _0x4af4d4=a23_0x4af4();return a23_0x3969=function(_0x3969a2,_0x39270a){_0x3969a2=_0x3969a2-0x16a;let _0x3e6eb1=_0x4af4d4[_0x3969a2];return _0x3e6eb1;},a23_0x3969(_0x268377,_0x2432e2);}const a23_0x4cfd1e={};a23_0x4cfd1e[a23_0x1e4ce2(0x16d)]='YYYY-MM-DD\x20HH:mm:ss';const a23_0xbbdda4={};a23_0xbbdda4['level']=!![];const a23_0x21b7a6={};a23_0x21b7a6[a23_0x1e4ce2(0x187)]=a23_0x1e4ce2(0x188),exports['logger']=new winston['createLogger']({'format':winston[a23_0x1e4ce2(0x16d)]['combine'](winston[a23_0x1e4ce2(0x16d)][a23_0x1e4ce2(0x179)](a23_0x4cfd1e),winston[a23_0x1e4ce2(0x16d)][a23_0x1e4ce2(0x178)](a23_0xbbdda4),winston[a23_0x1e4ce2(0x16d)][a23_0x1e4ce2(0x181)](_0x473ac5=>_0x473ac5[a23_0x1e4ce2(0x179)]+a23_0x1e4ce2(0x16b)+_0x473ac5[a23_0x1e4ce2(0x16f)]+':\x20'+_0x473ac5[a23_0x1e4ce2(0x184)])),'transports':[new winston['transports'][(a23_0x1e4ce2(0x185))](a23_0x21b7a6),new winston[(a23_0x1e4ce2(0x174))][(a23_0x1e4ce2(0x17d))]({'filename':path[a23_0x1e4ce2(0x170)](logDir,a23_0x1e4ce2(0x17f)),'level':a23_0x1e4ce2(0x16a)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x1e4ce2(0x174))][(a23_0x1e4ce2(0x17d))]({'filename':path[a23_0x1e4ce2(0x170)](logDir,'usage.log'),'level':'debug'})]};function a23_0x4af4(){const _0x7f7533=['log','3399552ldZwFK','transports','1022744zdfXOx','635733zPnvfG','28MxCOBW','colorize','timestamp','fileLogger','9273YGbNVM','createLogger','File','628448YensgV','events.log','30hlIdjl','printf','108jqXtGc','path','message','Console','356ozbtGC','name','console.info','existsSync','debug','\x20-\x20','1189606VVTzkJ','format','24445KzyjwP','level','join','mkdirSync'];a23_0x4af4=function(){return _0x7f7533;};return a23_0x4af4();}exports[a23_0x1e4ce2(0x17a)]=new winston[(a23_0x1e4ce2(0x17c))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x4eb339=a24_0x43a5;(function(_0x3b17ce,_0x3487d8){const _0x36f464=a24_0x43a5,_0x1d48ae=_0x3b17ce();while(!![]){try{const _0x51d817=-parseInt(_0x36f464(0xa3))/0x1+-parseInt(_0x36f464(0xab))/0x2*(-parseInt(_0x36f464(0xa2))/0x3)+parseInt(_0x36f464(0xa5))/0x4+parseInt(_0x36f464(0xa9))/0x5+parseInt(_0x36f464(0xa8))/0x6*(-parseInt(_0x36f464(0xa6))/0x7)+parseInt(_0x36f464(0xad))/0x8*(-parseInt(_0x36f464(0xa0))/0x9)+-parseInt(_0x36f464(0xb0))/0xa*(-parseInt(_0x36f464(0xa7))/0xb);if(_0x51d817===_0x3487d8)break;else _0x1d48ae['push'](_0x1d48ae['shift']());}catch(_0xf98b94){_0x1d48ae['push'](_0x1d48ae['shift']());}}}(a24_0x4e04,0x60d77));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');function a24_0x43a5(_0x3e87b4,_0x43f34e){const _0x4e04ba=a24_0x4e04();return a24_0x43a5=function(_0x43a5f7,_0x9e07c2){_0x43a5f7=_0x43a5f7-0xa0;let _0x522d1e=_0x4e04ba[_0x43a5f7];return _0x522d1e;},a24_0x43a5(_0x3e87b4,_0x43f34e);}function a24_0x4e04(){const _0x41fa65=['commands','734488KyqVNU','9058foKNLq','11uFzLQu','2298gSIBwO','127120UgEusd','commandDir','1166SzBaVf','env','108968QDAUeG','vrVHb','help','6886310dRETEO','117iVWuNb','root','3495qMpUdh','507534niWhQO'];a24_0x4e04=function(){return _0x41fa65;};return a24_0x4e04();}process[a24_0x4eb339(0xac)]['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function run(_0x2e4a3f){const _0x8a7a99=a24_0x4eb339,_0x415471={};_0x415471['VsqQP']=_0x8a7a99(0xa4),_0x415471[_0x8a7a99(0xae)]=_0x8a7a99(0xaf);const _0x4fc3ce=_0x415471;_0x2e4a3f['usage'](HELP_HEADER_MESSAGE[_0x8a7a99(0xa1)])[_0x8a7a99(0xaa)](_0x4fc3ce['VsqQP'])['demandCommand']()['help'](_0x4fc3ce[_0x8a7a99(0xae)])['epilogue'](HELP_FOOTER_MESSAGE);}module['exports']=run;
2
+ 'use strict';const a24_0x4e71bd=a24_0xad53;(function(_0x3c87c6,_0x6bf69f){const _0x13dd8c=a24_0xad53,_0x4b191e=_0x3c87c6();while(!![]){try{const _0x253708=parseInt(_0x13dd8c(0x1ca))/0x1*(-parseInt(_0x13dd8c(0x1c0))/0x2)+parseInt(_0x13dd8c(0x1c5))/0x3*(parseInt(_0x13dd8c(0x1bc))/0x4)+parseInt(_0x13dd8c(0x1be))/0x5*(-parseInt(_0x13dd8c(0x1c1))/0x6)+parseInt(_0x13dd8c(0x1bd))/0x7+-parseInt(_0x13dd8c(0x1b9))/0x8+-parseInt(_0x13dd8c(0x1c9))/0x9*(-parseInt(_0x13dd8c(0x1ba))/0xa)+parseInt(_0x13dd8c(0x1c2))/0xb;if(_0x253708===_0x6bf69f)break;else _0x4b191e['push'](_0x4b191e['shift']());}catch(_0x4c4c5a){_0x4b191e['push'](_0x4b191e['shift']());}}}(a24_0x3807,0x1ffa1));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x4e71bd(0x1cc));function a24_0x3807(){const _0x49bbf7=['env','EPOMj','18MNWCcj','5tTyVzZ','UDXps','./config/constants','1340344yXTPmL','121650fjlXOv','exports','1220mUxpYA','1163785USyBKR','10Sxsoar','commandDir','8414NtkhUG','434034zcSzPN','3003418PqPDPQ','help','epilogue','6VvRTKm','root'];a24_0x3807=function(){return _0x49bbf7;};return a24_0x3807();}process[a24_0x4e71bd(0x1c7)]['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function a24_0xad53(_0x319104,_0x40bc0a){const _0x380758=a24_0x3807();return a24_0xad53=function(_0xad5378,_0x2620f2){_0xad5378=_0xad5378-0x1b9;let _0x2b91aa=_0x380758[_0xad5378];return _0x2b91aa;},a24_0xad53(_0x319104,_0x40bc0a);}function run(_0x5e9c09){const _0x51624c=a24_0x4e71bd,_0x1070cb={};_0x1070cb[_0x51624c(0x1c8)]='commands',_0x1070cb[_0x51624c(0x1cb)]='help';const _0x320b3d=_0x1070cb;_0x5e9c09['usage'](HELP_HEADER_MESSAGE[_0x51624c(0x1c6)])[_0x51624c(0x1bf)](_0x320b3d[_0x51624c(0x1c8)])['demandCommand']()[_0x51624c(0x1c3)](_0x320b3d[_0x51624c(0x1cb)])[_0x51624c(0x1c4)](HELP_FOOTER_MESSAGE);}module[a24_0x4e71bd(0x1bb)]=run;