browserstack-node-sdk 1.34.48 → 1.34.50

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 (140) 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/permissions/AWS.json +85 -0
  27. package/ats/src/permissions/AZURE.json +33 -0
  28. package/ats/src/permissions/GCP.json +19 -0
  29. package/ats/src/utils/AWSUtils.js +1 -1
  30. package/ats/src/utils/createAutoscalerStack.js +1 -1
  31. package/ats/src/utils/createClusterStack.js +1 -1
  32. package/ats/src/utils/createHubHaStack.js +1 -1
  33. package/ats/src/utils/createk8sClient.js +1 -1
  34. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  35. package/ats/src/utils/deleteStack.js +1 -1
  36. package/ats/src/utils/describeStack.js +1 -1
  37. package/ats/src/utils/gridComponents.js +1 -1
  38. package/ats/src/utils/hstUtils.js +1 -1
  39. package/ats/src/utils/instrumentationUtils.js +1 -1
  40. package/ats/src/utils/userInput.js +1 -1
  41. package/ats/src/utils/utilityMethods.js +1 -1
  42. package/ats/src/utils/webSocketUtils.js +1 -1
  43. package/package.json +1 -1
  44. package/src/ai-sdk-node/bundle.js +1 -1
  45. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  46. package/src/bin/codeceptjs/command.js +1 -1
  47. package/src/bin/codeceptjs/helper.js +1 -1
  48. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  49. package/src/bin/cucumber-js/command.js +1 -1
  50. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  51. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  52. package/src/bin/cucumber-js/test-observability.js +1 -1
  53. package/src/bin/cucumber-js/test.setup.js +1 -1
  54. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  55. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  56. package/src/bin/integrations/command.js +1 -1
  57. package/src/bin/integrations/constants.js +1 -1
  58. package/src/bin/jest/command.js +1 -1
  59. package/src/bin/jest/customImplements/customCircus.js +1 -1
  60. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  61. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  62. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  63. package/src/bin/jest/jest.setup.js +1 -1
  64. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  65. package/src/bin/jest/test-observability/helper.js +1 -1
  66. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  67. package/src/bin/jest/test-observability/test-details.js +1 -1
  68. package/src/bin/jest/test_before.setup.js +1 -1
  69. package/src/bin/launcher/launcher.js +1 -1
  70. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  71. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  72. package/src/bin/mocha/command.js +1 -1
  73. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  74. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  75. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  76. package/src/bin/mocha/test.setup.js +1 -1
  77. package/src/bin/nightwatch/command.js +1 -1
  78. package/src/bin/playwright/accessibility-helper.js +1 -1
  79. package/src/bin/playwright/command.js +1 -1
  80. package/src/bin/playwright/globalSetup.js +1 -1
  81. package/src/bin/playwright/mock-process.js +1 -1
  82. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  83. package/src/bin/playwright/patches.js +1 -1
  84. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  85. package/src/bin/playwright/reporter/reporter.js +1 -1
  86. package/src/bin/playwright/reporter/test-details.js +1 -1
  87. package/src/bin/playwright/sessionDetails.js +1 -1
  88. package/src/bin/runner.js +1 -1
  89. package/src/bin/setup.js +1 -1
  90. package/src/bin/test-runner/index.js +1 -1
  91. package/src/bin/test-runner/runTest.js +1 -1
  92. package/src/bin/test-runner/testWorker.js +1 -1
  93. package/src/bin/utils/constants.js +1 -1
  94. package/src/bin/utils/log4jsAppender.js +1 -1
  95. package/src/bin/utils/logPatcher.js +1 -1
  96. package/src/bin/utils/logReportingAPI.js +1 -1
  97. package/src/bin/vanilla-js/command.js +1 -1
  98. package/src/browserStackSdk.js +1 -1
  99. package/src/helpers/BrowserStackSetup.js +1 -1
  100. package/src/helpers/accessibility-automation/constants.js +1 -1
  101. package/src/helpers/accessibility-automation/helper.js +1 -1
  102. package/src/helpers/accessibility-automation/scripts.js +1 -1
  103. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  104. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  105. package/src/helpers/ats/constants.js +1 -1
  106. package/src/helpers/ats/helper.js +1 -1
  107. package/src/helpers/capsMapping.js +1 -1
  108. package/src/helpers/central-scanner/constants.js +1 -1
  109. package/src/helpers/central-scanner/helpers.js +1 -1
  110. package/src/helpers/globals.js +1 -1
  111. package/src/helpers/helper.js +1 -1
  112. package/src/helpers/logger.js +1 -1
  113. package/src/helpers/metadata.js +1 -0
  114. package/src/helpers/patchHelper.js +1 -1
  115. package/src/helpers/patchHelpers.js +1 -1
  116. package/src/helpers/percy/Percy.js +1 -1
  117. package/src/helpers/percy/PercyBinary.js +1 -1
  118. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  119. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  120. package/src/helpers/percy/PercySDK.js +1 -1
  121. package/src/helpers/percy/index.js +1 -1
  122. package/src/helpers/percy/utils.js +1 -1
  123. package/src/helpers/performance/constants.js +1 -1
  124. package/src/helpers/performance/performance-tester.js +1 -1
  125. package/src/helpers/processHelper.js +1 -1
  126. package/src/helpers/request-spy.js +1 -1
  127. package/src/helpers/setKeepAlive.js +1 -1
  128. package/src/helpers/test-observability/constants.js +1 -1
  129. package/src/helpers/test-observability/error-handler.js +1 -1
  130. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  131. package/src/helpers/test-observability/sessionHandler.js +1 -1
  132. package/src/helpers/test-observability/utils.js +1 -1
  133. package/src/helpers/testhub/constants.js +1 -1
  134. package/src/helpers/testhub/testhubHandler.js +1 -1
  135. package/src/helpers/testhub/utils.js +1 -1
  136. package/src/helpers/timeoutPromise.js +1 -1
  137. package/src/helpers/utilities.js +1 -1
  138. package/src/helpers/w3cMapping.js +1 -1
  139. package/src/hubAllocationMethods.js +1 -1
  140. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x59fc20=a15_0x3bb8;function a15_0x3bb8(_0x1e97f1,_0x55ffd2){const _0x7ad030=a15_0x7ad0();return a15_0x3bb8=function(_0x3bb8d0,_0x269bcd){_0x3bb8d0=_0x3bb8d0-0x1ef;let _0x3082db=_0x7ad030[_0x3bb8d0];return _0x3082db;},a15_0x3bb8(_0x1e97f1,_0x55ffd2);}(function(_0x565908,_0x39a796){const _0x37c2d0=a15_0x3bb8,_0x41c821=_0x565908();while(!![]){try{const _0x478b5a=parseInt(_0x37c2d0(0x1fd))/0x1*(parseInt(_0x37c2d0(0x1fe))/0x2)+-parseInt(_0x37c2d0(0x203))/0x3+-parseInt(_0x37c2d0(0x212))/0x4*(parseInt(_0x37c2d0(0x21d))/0x5)+-parseInt(_0x37c2d0(0x234))/0x6*(-parseInt(_0x37c2d0(0x1f1))/0x7)+-parseInt(_0x37c2d0(0x21f))/0x8+-parseInt(_0x37c2d0(0x238))/0x9*(parseInt(_0x37c2d0(0x1f3))/0xa)+parseInt(_0x37c2d0(0x22e))/0xb;if(_0x478b5a===_0x39a796)break;else _0x41c821['push'](_0x41c821['shift']());}catch(_0xd9243d){_0x41c821['push'](_0x41c821['shift']());}}}(a15_0x7ad0,0x1b0ce));const fs=require('fs'),got=require(a15_0x59fc20(0x216)),{table}=require('table'),{v4:uuidv4}=require(a15_0x59fc20(0x232)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x59fc20(0x23f)),{getCredentialsPath,getAuthHeader}=require(a15_0x59fc20(0x209)),{sendInstrumentationEvent}=require(a15_0x59fc20(0x225));exports[a15_0x59fc20(0x22b)]=a15_0x59fc20(0x1fc),exports[a15_0x59fc20(0x219)]=a15_0x59fc20(0x1f7),exports['builder']=function(_0x3781c5){const _0x5e818f=a15_0x59fc20,_0x291621={};_0x291621['AgaOi']='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x291621['aWXAp']=_0x5e818f(0x1ff),_0x291621[_0x5e818f(0x241)]=_0x5e818f(0x22f);const _0x2bc871=_0x291621,_0x223b74={};_0x223b74['description']=_0x2bc871[_0x5e818f(0x21e)],_0x223b74['type']=_0x2bc871['aWXAp'];const _0x13eee7={};return _0x13eee7[_0x5e818f(0x213)]=_0x223b74,_0x3781c5['usage'](HELP_HEADER_MESSAGE['list'][_0x5e818f(0x201)])[_0x5e818f(0x1fa)](HELP_FOOTER_MESSAGE)[_0x5e818f(0x1f8)](_0x13eee7)['help'](_0x2bc871[_0x5e818f(0x241)])[_0x5e818f(0x230)];},exports['handler']=async function(_0x6bedc0){const _0x5086f1=a15_0x59fc20,_0x183fb5={'OOhNe':function(_0x3a60fb){return _0x3a60fb();},'yGPrg':function(_0x414ef8){return _0x414ef8();},'mKWDE':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Doyrb':function(_0x13edf0,_0x4bbbba,_0x15126d,_0x54bcc8,_0x19f4f0,_0x13da9c,_0x1c2dd6){return _0x13edf0(_0x4bbbba,_0x15126d,_0x54bcc8,_0x19f4f0,_0x13da9c,_0x1c2dd6);},'XAsah':_0x5086f1(0x222),'QAkHY':'init-not-called','ecUGj':_0x5086f1(0x1f6),'BNqIr':function(_0x1b7df2,_0x54cbca,_0x1ab33d){return _0x1b7df2(_0x54cbca,_0x1ab33d);},'Yddye':function(_0x413846,_0x4a7e1d){return _0x413846!==_0x4a7e1d;},'nnkWo':function(_0x35df24,_0x1b5842){return _0x35df24===_0x1b5842;},'mWjHG':_0x5086f1(0x21b),'Bfmgz':'grid-id','jEXGE':_0x5086f1(0x1fb),'bcQMz':'status','GHbQV':_0x5086f1(0x20d),'pBRaT':_0x5086f1(0x233),'iuTWY':'cluster-name','GSXbx':function(_0x7a2f18,_0x3f5631){return _0x7a2f18(_0x3f5631);},'GxImR':function(_0x4e58d6,_0x5d8cd6){return _0x4e58d6===_0x5d8cd6;},'HkBHQ':_0x5086f1(0x202),'wioxu':function(_0x39747f,_0x248e5a,_0x47cbc9,_0x465387,_0xf9f720,_0x447c56,_0x237935){return _0x39747f(_0x248e5a,_0x47cbc9,_0x465387,_0xf9f720,_0x447c56,_0x237935);},'mZaOr':_0x5086f1(0x23c),'NYqOP':'server-error','xTbFc':_0x5086f1(0x21c)};try{global_registry[_0x5086f1(0x23e)]=_0x183fb5[_0x5086f1(0x211)](uuidv4);!fs[_0x5086f1(0x239)](_0x183fb5[_0x5086f1(0x23d)](getCredentialsPath))&&(console[_0x5086f1(0x1f5)](_0x183fb5[_0x5086f1(0x23a)]),await _0x183fb5[_0x5086f1(0x205)](sendInstrumentationEvent,_0x6bedc0,_0x183fb5[_0x5086f1(0x1f0)],messageTypes[_0x5086f1(0x228)],_0x183fb5[_0x5086f1(0x215)],null,_0x6bedc0),process[_0x5086f1(0x20a)](0x1));const _0x1e6e5e=JSON[_0x5086f1(0x231)](fs[_0x5086f1(0x220)](_0x183fb5[_0x5086f1(0x211)](getCredentialsPath)));let _0xbe418b=_0x5086f1(0x22a)+AG_API_URL+'/packages/cli/get-grids';_0x6bedc0[_0x5086f1(0x235)]&&(_0xbe418b=_0x5086f1(0x22a)+AG_API_URL+'/packages/cli/get-all-grids');const _0x95f4e7={'method':_0x183fb5[_0x5086f1(0x223)],'headers':_0x183fb5['BNqIr'](getAuthHeader,_0x1e6e5e[_0x5086f1(0x218)][_0x5086f1(0x210)],_0x1e6e5e[_0x5086f1(0x218)][_0x5086f1(0x242)]),'throwHttpErrors':![]};global_registry[_0x5086f1(0x204)]=_0x1e6e5e[_0x5086f1(0x218)][_0x5086f1(0x210)],global_registry[_0x5086f1(0x20c)]=_0x1e6e5e[_0x5086f1(0x218)][_0x5086f1(0x242)],_0x183fb5['Doyrb'](sendInstrumentationEvent,_0x6bedc0,_0x183fb5[_0x5086f1(0x1f0)],messageTypes[_0x5086f1(0x21a)],null,null,_0x6bedc0);const _0x162520=await _0x183fb5[_0x5086f1(0x221)](got,_0xbe418b,_0x95f4e7);if(_0x183fb5[_0x5086f1(0x1ef)](_0x162520,null)&&_0x183fb5[_0x5086f1(0x1ef)](_0x162520,undefined)&&_0x183fb5[_0x5086f1(0x20b)](_0x162520[_0x5086f1(0x200)],0xc8)){const _0x5246f9=JSON[_0x5086f1(0x231)](_0x162520[_0x5086f1(0x22c)]);console['log'](_0x183fb5[_0x5086f1(0x1f4)]);const _0x431463=[];_0x431463['push']([_0x183fb5[_0x5086f1(0x214)],_0x183fb5[_0x5086f1(0x224)],_0x183fb5['bcQMz'],_0x183fb5[_0x5086f1(0x206)],_0x183fb5[_0x5086f1(0x1f2)],_0x183fb5[_0x5086f1(0x229)]]),_0x5246f9[_0x5086f1(0x20e)](_0x22cb30=>{const _0x49bd88=_0x5086f1;_0x431463[_0x49bd88(0x240)]([_0x22cb30['id'],_0x22cb30['name'],_0x22cb30[_0x49bd88(0x227)],_0x22cb30[_0x49bd88(0x20d)],_0x22cb30[_0x49bd88(0x233)],_0x22cb30[_0x49bd88(0x207)]]);}),console[_0x5086f1(0x20f)](_0x183fb5[_0x5086f1(0x226)](table,_0x431463)),process['exit'](0x0);}_0x183fb5['GxImR'](_0x162520[_0x5086f1(0x200)],0x191)&&(console[_0x5086f1(0x1f5)](_0x183fb5[_0x5086f1(0x208)]),await _0x183fb5['wioxu'](sendInstrumentationEvent,_0x6bedc0,_0x183fb5[_0x5086f1(0x1f0)],messageTypes[_0x5086f1(0x228)],_0x183fb5['mZaOr'],null,_0x6bedc0),process[_0x5086f1(0x20a)](0x1)),console[_0x5086f1(0x1f5)](_0x5086f1(0x1f9)+JSON[_0x5086f1(0x237)](_0x162520)),await _0x183fb5[_0x5086f1(0x205)](sendInstrumentationEvent,_0x6bedc0,_0x183fb5[_0x5086f1(0x1f0)],messageTypes['ERROR'],_0x183fb5[_0x5086f1(0x23b)],_0x162520,_0x6bedc0),process[_0x5086f1(0x20a)](0x1);}catch(_0x28d5f4){console[_0x5086f1(0x1f5)](_0x5086f1(0x217)+_0x28d5f4[_0x5086f1(0x236)]),await _0x183fb5['Doyrb'](sendInstrumentationEvent,_0x6bedc0,_0x183fb5[_0x5086f1(0x1f0)],messageTypes[_0x5086f1(0x228)],_0x183fb5[_0x5086f1(0x22d)],_0x28d5f4,_0x6bedc0),process['exit'](0x1);}};function a15_0x7ad0(){const _0x14df4a=['BNqIr','list-grids-called','ecUGj','jEXGE','../../utils/instrumentationUtils','GSXbx','status','ERROR','iuTWY','https://','command','body','xTbFc','4644431aYemfz','help','argv','parse','uuid','queued','24tedvDs','allGrids','stack','stringify','167940VzOuzc','existsSync','mKWDE','NYqOP','unauthorised','yGPrg','requestId','../../config/constants','push','aVIFR','password','Yddye','XAsah','315539BvXswh','pBRaT','100JNYmhx','mWjHG','error','GET','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','options','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','epilogue','grid-name','grids','1641xKCzJM','114IlRFkf','boolean','statusCode','grid','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','403326lmiGMO','bstackUsername','Doyrb','GHbQV','clusterName','HkBHQ','../../utils/utilityMethods','exit','nnkWo','bstackAccesskey','running','forEach','log','username','OOhNe','8AcEKKl','all-grids','Bfmgz','QAkHY','got','Failed\x20to\x20list\x20resources!\x20Error:\x20','Browserstack','desc','INFO','\x0aFound\x20the\x20following\x20grids:\x0a','unknown-error','515380HyIFwD','AgaOi','464592TykOPU','readFileSync'];a15_0x7ad0=function(){return _0x14df4a;};return a15_0x7ad0();}
1
+ const a15_0xc6d1e6=a15_0x1059;function a15_0x1059(_0x4cb498,_0x567c16){const _0x1046e5=a15_0x1046();return a15_0x1059=function(_0x105929,_0x162823){_0x105929=_0x105929-0x11a;let _0x591610=_0x1046e5[_0x105929];return _0x591610;},a15_0x1059(_0x4cb498,_0x567c16);}(function(_0x52e9ec,_0x2304af){const _0x134f22=a15_0x1059,_0x497307=_0x52e9ec();while(!![]){try{const _0x495dda=parseInt(_0x134f22(0x147))/0x1*(parseInt(_0x134f22(0x166))/0x2)+parseInt(_0x134f22(0x13c))/0x3*(-parseInt(_0x134f22(0x121))/0x4)+-parseInt(_0x134f22(0x128))/0x5+parseInt(_0x134f22(0x140))/0x6+parseInt(_0x134f22(0x138))/0x7+-parseInt(_0x134f22(0x16a))/0x8*(-parseInt(_0x134f22(0x131))/0x9)+-parseInt(_0x134f22(0x136))/0xa;if(_0x495dda===_0x2304af)break;else _0x497307['push'](_0x497307['shift']());}catch(_0x1c31dd){_0x497307['push'](_0x497307['shift']());}}}(a15_0x1046,0xc5d0c));function a15_0x1046(){const _0x3ae5d1=['grid','eWFeu','exit','qydJy','dGeoV','table','statusCode','epilogue','Eqljf','forEach','fFUcA','\x0aFound\x20the\x20following\x20grids:\x0a','https://','yhXWV','command','YnukG','help','log','init-not-called','uuid','9058bsHMIH','bstackAccesskey','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','cluster-name','16DnhMgi','server-error','gLsTx','ZpuIp','parse','list-grids-called','ERROR','grid-name','bstackUsername','readFileSync','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','tsdvC','Failed\x20to\x20list\x20resources!\x20Error:\x20','16plbEhH','list','desc','options','xphYi','iFjSt','HtxNG','4173860nBUgcn','zuZiO','Browserstack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','hyEQe','allGrids','OUuHM','clusterName','argv','4580253PAEWUr','description','GET','got','kWsmD','14184080vUvrTR','/packages/cli/get-grids','11340910LmsvPU','../../utils/utilityMethods','lCREm','type','1203231sENKTX','existsSync','push','sfTIC','3564498baJqGQ','unknown-error','builder','unauthorised','grid-id','stringify','running','317EPMUuo','body','status','INFO','CNUCi','name','kbTJf','username','queued','password','error'];a15_0x1046=function(){return _0x3ae5d1;};return a15_0x1046();}const fs=require('fs'),got=require(a15_0xc6d1e6(0x134)),{table}=require(a15_0xc6d1e6(0x157)),{v4:uuidv4}=require(a15_0xc6d1e6(0x165)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0xc6d1e6(0x139)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a15_0xc6d1e6(0x160)]='grids',exports[a15_0xc6d1e6(0x123)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0xc6d1e6(0x142)]=function(_0x6c2ba0){const _0x7dde96=a15_0xc6d1e6,_0x529b14={};_0x529b14[_0x7dde96(0x127)]=_0x7dde96(0x11e),_0x529b14[_0x7dde96(0x156)]='boolean',_0x529b14[_0x7dde96(0x16d)]=_0x7dde96(0x162);const _0x5ab4e0=_0x529b14,_0x54ba68={};_0x54ba68[_0x7dde96(0x132)]=_0x5ab4e0[_0x7dde96(0x127)],_0x54ba68[_0x7dde96(0x13b)]=_0x5ab4e0['dGeoV'];const _0x261f26={};return _0x261f26['all-grids']=_0x54ba68,_0x6c2ba0['usage'](HELP_HEADER_MESSAGE[_0x7dde96(0x122)][_0x7dde96(0x152)])[_0x7dde96(0x159)](HELP_FOOTER_MESSAGE)[_0x7dde96(0x124)](_0x261f26)[_0x7dde96(0x162)](_0x5ab4e0[_0x7dde96(0x16d)])[_0x7dde96(0x130)];},exports['handler']=async function(_0x57589a){const _0x1b6582=a15_0xc6d1e6,_0x41530d={'hyEQe':function(_0x622522){return _0x622522();},'gLsTx':_0x1b6582(0x168),'CNUCi':function(_0x3cd3a1,_0x242fec,_0x5d8bef,_0x14ea80,_0x37868b,_0x1f46e7,_0x1aa881){return _0x3cd3a1(_0x242fec,_0x5d8bef,_0x14ea80,_0x37868b,_0x1f46e7,_0x1aa881);},'kbTJf':_0x1b6582(0x16f),'qydJy':_0x1b6582(0x164),'kWsmD':function(_0x4d1cb2){return _0x4d1cb2();},'OSiav':_0x1b6582(0x133),'iFjSt':function(_0x3b32c4,_0x264c84,_0x735b85){return _0x3b32c4(_0x264c84,_0x735b85);},'tsdvC':function(_0x591813,_0x4a3242){return _0x591813!==_0x4a3242;},'fSxXy':function(_0x576361,_0x515a01){return _0x576361!==_0x515a01;},'zuZiO':function(_0x4fb42e,_0x4ecf1e){return _0x4fb42e===_0x4ecf1e;},'YnukG':_0x1b6582(0x15d),'KXfWm':_0x1b6582(0x144),'xphYi':_0x1b6582(0x11b),'sfTIC':_0x1b6582(0x149),'fFUcA':_0x1b6582(0x146),'yhXWV':_0x1b6582(0x14f),'OUuHM':_0x1b6582(0x169),'wrXCh':function(_0x41964c,_0x2cd1ab){return _0x41964c(_0x2cd1ab);},'MrEcg':_0x1b6582(0x12b),'Eqljf':function(_0x56c601,_0x434262,_0x9df11e,_0x4a03ee,_0x4f67bb,_0x34e682,_0x26bd5c){return _0x56c601(_0x434262,_0x9df11e,_0x4a03ee,_0x4f67bb,_0x34e682,_0x26bd5c);},'feTMv':_0x1b6582(0x143),'lCREm':_0x1b6582(0x16b),'eWFeu':_0x1b6582(0x141)};try{global_registry['requestId']=_0x41530d['hyEQe'](uuidv4);!fs[_0x1b6582(0x13d)](_0x41530d[_0x1b6582(0x12c)](getCredentialsPath))&&(console['error'](_0x41530d[_0x1b6582(0x16c)]),await _0x41530d['CNUCi'](sendInstrumentationEvent,_0x57589a,_0x41530d[_0x1b6582(0x14d)],messageTypes[_0x1b6582(0x11a)],_0x41530d[_0x1b6582(0x155)],null,_0x57589a),process['exit'](0x1));const _0x1adf4c=JSON[_0x1b6582(0x16e)](fs[_0x1b6582(0x11d)](_0x41530d[_0x1b6582(0x135)](getCredentialsPath)));let _0x21242d=_0x1b6582(0x15e)+AG_API_URL+_0x1b6582(0x137);_0x57589a[_0x1b6582(0x12d)]&&(_0x21242d=_0x1b6582(0x15e)+AG_API_URL+'/packages/cli/get-all-grids');const _0x510cac={'method':_0x41530d['OSiav'],'headers':_0x41530d[_0x1b6582(0x126)](getAuthHeader,_0x1adf4c[_0x1b6582(0x12a)][_0x1b6582(0x14e)],_0x1adf4c[_0x1b6582(0x12a)]['password']),'throwHttpErrors':![]};global_registry[_0x1b6582(0x11c)]=_0x1adf4c[_0x1b6582(0x12a)]['username'],global_registry[_0x1b6582(0x167)]=_0x1adf4c[_0x1b6582(0x12a)][_0x1b6582(0x150)],_0x41530d[_0x1b6582(0x14b)](sendInstrumentationEvent,_0x57589a,_0x41530d['kbTJf'],messageTypes[_0x1b6582(0x14a)],null,null,_0x57589a);const _0x31ca18=await _0x41530d[_0x1b6582(0x126)](got,_0x21242d,_0x510cac);if(_0x41530d[_0x1b6582(0x11f)](_0x31ca18,null)&&_0x41530d['fSxXy'](_0x31ca18,undefined)&&_0x41530d['zuZiO'](_0x31ca18[_0x1b6582(0x158)],0xc8)){const _0x424ab5=JSON[_0x1b6582(0x16e)](_0x31ca18[_0x1b6582(0x148)]);console['log'](_0x41530d[_0x1b6582(0x161)]);const _0x42fcd7=[];_0x42fcd7['push']([_0x41530d['KXfWm'],_0x41530d[_0x1b6582(0x125)],_0x41530d[_0x1b6582(0x13f)],_0x41530d[_0x1b6582(0x15c)],_0x41530d[_0x1b6582(0x15f)],_0x41530d[_0x1b6582(0x12e)]]),_0x424ab5[_0x1b6582(0x15b)](_0x4b7792=>{const _0xa86aa0=_0x1b6582;_0x42fcd7[_0xa86aa0(0x13e)]([_0x4b7792['id'],_0x4b7792[_0xa86aa0(0x14c)],_0x4b7792[_0xa86aa0(0x149)],_0x4b7792['running'],_0x4b7792['queued'],_0x4b7792[_0xa86aa0(0x12f)]]);}),console[_0x1b6582(0x163)](_0x41530d['wrXCh'](table,_0x42fcd7)),process['exit'](0x0);}_0x41530d[_0x1b6582(0x129)](_0x31ca18['statusCode'],0x191)&&(console[_0x1b6582(0x151)](_0x41530d['MrEcg']),await _0x41530d[_0x1b6582(0x15a)](sendInstrumentationEvent,_0x57589a,_0x41530d[_0x1b6582(0x14d)],messageTypes[_0x1b6582(0x11a)],_0x41530d['feTMv'],null,_0x57589a),process[_0x1b6582(0x154)](0x1)),console[_0x1b6582(0x151)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x1b6582(0x145)](_0x31ca18)),await _0x41530d[_0x1b6582(0x15a)](sendInstrumentationEvent,_0x57589a,_0x41530d[_0x1b6582(0x14d)],messageTypes[_0x1b6582(0x11a)],_0x41530d[_0x1b6582(0x13a)],_0x31ca18,_0x57589a),process[_0x1b6582(0x154)](0x1);}catch(_0x6060fc){console[_0x1b6582(0x151)](_0x1b6582(0x120)+_0x6060fc['stack']),await _0x41530d[_0x1b6582(0x15a)](sendInstrumentationEvent,_0x57589a,_0x41530d['kbTJf'],messageTypes['ERROR'],_0x41530d[_0x1b6582(0x153)],_0x6060fc,_0x57589a),process[_0x1b6582(0x154)](0x1);}};
@@ -1 +1 @@
1
- function a16_0x46f6(_0x3e4210,_0x47c68e){const _0x559b4f=a16_0x559b();return a16_0x46f6=function(_0x46f601,_0x4f2836){_0x46f601=_0x46f601-0x7e;let _0x416db6=_0x559b4f[_0x46f601];return _0x416db6;},a16_0x46f6(_0x3e4210,_0x47c68e);}const a16_0x528195=a16_0x46f6;function a16_0x559b(){const _0x23073e=['3770256YNdKnH','pre_check','dSybb','pre-check','demandCommand','strict','10wpUGgg','help','usage','56ehujZZ','commandDir','6091002qxRvtP','2886620sVgBwO','precheck_commands','builder','795380boPjZn','2wgaADq','417001iFthHn','../config/constants','248133rtLIRU','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','handler','recommendCommands','awfCe','509705vehlEG'];a16_0x559b=function(){return _0x23073e;};return a16_0x559b();}(function(_0x50094d,_0x734101){const _0x384205=a16_0x46f6,_0x234f15=_0x50094d();while(!![]){try{const _0x27a976=parseInt(_0x384205(0x95))/0x1*(parseInt(_0x384205(0x94))/0x2)+parseInt(_0x384205(0x7e))/0x3+-parseInt(_0x384205(0x93))/0x4+parseInt(_0x384205(0x90))/0x5+-parseInt(_0x384205(0x84))/0x6+-parseInt(_0x384205(0x83))/0x7*(parseInt(_0x384205(0x8d))/0x8)+parseInt(_0x384205(0x8f))/0x9*(parseInt(_0x384205(0x8a))/0xa);if(_0x27a976===_0x734101)break;else _0x234f15['push'](_0x234f15['shift']());}catch(_0x5d635c){_0x234f15['push'](_0x234f15['shift']());}}}(a16_0x559b,0x65c78));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x528195(0x96));exports['command']=a16_0x528195(0x87),exports['desc']=a16_0x528195(0x7f),exports[a16_0x528195(0x92)]=function(_0x53ad70){const _0x5d2a36=a16_0x528195,_0x17868b={};_0x17868b[_0x5d2a36(0x86)]=_0x5d2a36(0x91),_0x17868b[_0x5d2a36(0x82)]=_0x5d2a36(0x8b);const _0x86f377=_0x17868b;return _0x53ad70[_0x5d2a36(0x8c)](HELP_HEADER_MESSAGE[_0x5d2a36(0x85)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5d2a36(0x8e)](_0x86f377[_0x5d2a36(0x86)])[_0x5d2a36(0x88)]()[_0x5d2a36(0x81)]()[_0x5d2a36(0x89)]()['help'](_0x86f377[_0x5d2a36(0x82)]);},exports[a16_0x528195(0x80)]=function(_0x118f99){};
1
+ const a16_0x2e15a2=a16_0x423d;(function(_0x5270e8,_0xe1581){const _0x2ed157=a16_0x423d,_0x10c16b=_0x5270e8();while(!![]){try{const _0x48804a=-parseInt(_0x2ed157(0x1fb))/0x1*(parseInt(_0x2ed157(0x1f0))/0x2)+parseInt(_0x2ed157(0x206))/0x3+-parseInt(_0x2ed157(0x205))/0x4*(-parseInt(_0x2ed157(0x201))/0x5)+parseInt(_0x2ed157(0x1f8))/0x6*(parseInt(_0x2ed157(0x1f7))/0x7)+parseInt(_0x2ed157(0x1f1))/0x8+-parseInt(_0x2ed157(0x1f5))/0x9+-parseInt(_0x2ed157(0x1f2))/0xa*(parseInt(_0x2ed157(0x207))/0xb);if(_0x48804a===_0xe1581)break;else _0x10c16b['push'](_0x10c16b['shift']());}catch(_0x4c03be){_0x10c16b['push'](_0x10c16b['shift']());}}}(a16_0x3fc2,0x3d355));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x2e15a2(0x1fa));function a16_0x423d(_0x33c211,_0x589993){const _0x3fc2bb=a16_0x3fc2();return a16_0x423d=function(_0x423ddf,_0x31c8dc){_0x423ddf=_0x423ddf-0x1f0;let _0x1d0987=_0x3fc2bb[_0x423ddf];return _0x1d0987;},a16_0x423d(_0x33c211,_0x589993);}function a16_0x3fc2(){const _0x4a09dd=['450saSolL','pre_check','../config/constants','3449JdzPIi','xPzBr','pre-check','cuBuo','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','help','1812325PyWTNf','desc','command','recommendCommands','4sDpTLU','124404keeqBu','22qsyScL','50VZmoaX','436808lFjFBg','1023980LGwPhP','demandCommand','strict','2189511CxOAfv','precheck_commands','30471vZHrSB'];a16_0x3fc2=function(){return _0x4a09dd;};return a16_0x3fc2();}exports[a16_0x2e15a2(0x203)]=a16_0x2e15a2(0x1fd),exports[a16_0x2e15a2(0x202)]=a16_0x2e15a2(0x1ff),exports['builder']=function(_0x3ec5c0){const _0x120777=a16_0x2e15a2,_0x54288f={};_0x54288f[_0x120777(0x1fe)]=_0x120777(0x1f6),_0x54288f[_0x120777(0x1fc)]=_0x120777(0x200);const _0x25f0b2=_0x54288f;return _0x3ec5c0['usage'](HELP_HEADER_MESSAGE[_0x120777(0x1f9)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x25f0b2['cuBuo'])[_0x120777(0x1f3)]()[_0x120777(0x204)]()[_0x120777(0x1f4)]()['help'](_0x25f0b2['xPzBr']);},exports['handler']=function(_0x19f229){};
@@ -1 +1 @@
1
- const a17_0x153e56=a17_0x8ff1;(function(_0x1bc882,_0xbcb7e1){const _0x122edf=a17_0x8ff1,_0x4d310b=_0x1bc882();while(!![]){try{const _0x175229=parseInt(_0x122edf(0x1b3))/0x1*(-parseInt(_0x122edf(0xd0))/0x2)+-parseInt(_0x122edf(0xeb))/0x3*(-parseInt(_0x122edf(0x197))/0x4)+-parseInt(_0x122edf(0x18d))/0x5+parseInt(_0x122edf(0xf6))/0x6+parseInt(_0x122edf(0x1ac))/0x7*(-parseInt(_0x122edf(0x172))/0x8)+parseInt(_0x122edf(0xfc))/0x9*(-parseInt(_0x122edf(0x16c))/0xa)+-parseInt(_0x122edf(0x174))/0xb*(-parseInt(_0x122edf(0x1a2))/0xc);if(_0x175229===_0xbcb7e1)break;else _0x4d310b['push'](_0x4d310b['shift']());}catch(_0x4a833b){_0x4d310b['push'](_0x4d310b['shift']());}}}(a17_0x297d,0x3f05b));const fs=require('fs'),ws=require('ws'),got=require(a17_0x153e56(0x171)),{v4:uuidv4}=require(a17_0x153e56(0xe8)),ReconnectingWebSocket=require(a17_0x153e56(0x117)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x153e56(0x122)),{logger}=require(a17_0x153e56(0x130)),{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_0x153e56(0x16b)),{getCloudProviderObjectWithOutInit}=require(a17_0x153e56(0x142)),webSocketUtils=require(a17_0x153e56(0xfa)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x153e56(0x190)]='grid',exports[a17_0x153e56(0xc4)]=a17_0x153e56(0x1b1),exports[a17_0x153e56(0xce)]=function(_0x10a7d6){const _0x2bafed=a17_0x153e56,_0x368d6e={};_0x368d6e[_0x2bafed(0x132)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x368d6e[_0x2bafed(0x1b7)]=_0x2bafed(0xcd),_0x368d6e['hAisu']='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x368d6e[_0x2bafed(0x12b)]=_0x2bafed(0x14f),_0x368d6e['ewRYa']=_0x2bafed(0x153),_0x368d6e[_0x2bafed(0x193)]='help';const _0x142c16=_0x368d6e,_0x143dec={};_0x143dec['description']=_0x142c16[_0x2bafed(0x132)],_0x143dec[_0x2bafed(0x19e)]=_0x142c16[_0x2bafed(0x1b7)];const _0x18a880={};_0x18a880[_0x2bafed(0x16a)]=_0x142c16[_0x2bafed(0x181)],_0x18a880[_0x2bafed(0x19e)]=_0x142c16[_0x2bafed(0x1b7)];const _0x47a8bd={};_0x47a8bd[_0x2bafed(0x16a)]=_0x142c16[_0x2bafed(0x12b)],_0x47a8bd['type']=_0x142c16[_0x2bafed(0x1b7)];const _0x3d84aa={};_0x3d84aa[_0x2bafed(0x16a)]=_0x142c16[_0x2bafed(0x148)],_0x3d84aa[_0x2bafed(0x19e)]=_0x142c16[_0x2bafed(0x1b7)];const _0x8b21c2={};return _0x8b21c2['cluster-name']=_0x143dec,_0x8b21c2[_0x2bafed(0xf3)]=_0x18a880,_0x8b21c2['region']=_0x47a8bd,_0x8b21c2[_0x2bafed(0x1b6)]=_0x3d84aa,_0x10a7d6['usage'](HELP_HEADER_MESSAGE[_0x2bafed(0x149)])[_0x2bafed(0x120)](HELP_FOOTER_MESSAGE)['options'](_0x8b21c2)['help'](_0x142c16[_0x2bafed(0x193)])[_0x2bafed(0x135)];};async function inputValidation(_0x357035,_0x42ad1f){const _0x3a8d60=a17_0x153e56,_0x636b85={'fcPue':_0x3a8d60(0xf4),'ZdqWW':_0x3a8d60(0x137),'ZwbDD':function(_0x288ed1,_0x35f731){return _0x288ed1+_0x35f731;},'DVvqm':'Success','MCHXG':_0x3a8d60(0x1aa),'vBwKY':function(_0x268e6c,_0x56cd54){return _0x268e6c||_0x56cd54;},'kuQRL':_0x3a8d60(0xe1),'nUlVZ':_0x3a8d60(0x176),'DRmwB':_0x3a8d60(0x188),'vPsLx':_0x3a8d60(0xcd),'WawUh':_0x3a8d60(0xfd),'BBXdW':_0x3a8d60(0x14f),'PTsEb':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','yPsES':_0x3a8d60(0x126),'UULnZ':_0x3a8d60(0xe0),'ijAGw':_0x3a8d60(0x15d),'gZDkY':'region','jOmAr':_0x3a8d60(0x146),'woXlb':function(_0x489c6c,_0x28cf0d){return _0x489c6c===_0x28cf0d;},'XdWag':_0x3a8d60(0x136),'CxfvT':_0x3a8d60(0x14c),'wmRkH':_0x3a8d60(0x10c),'bKmuD':function(_0xe60bc0,_0x212b37){return _0xe60bc0!==_0x212b37;},'mCsNJ':_0x3a8d60(0xcb),'hBQId':_0x3a8d60(0x19c),'FfiLG':function(_0x469721,_0x3754b4){return _0x469721!==_0x3754b4;},'qhgBQ':'dKfDg','BwFPa':_0x3a8d60(0xf3),'uIbRk':'VAtAb','RHIjW':_0x3a8d60(0x15c),'ozWlZ':function(_0x1259ff,_0x20a975){return _0x1259ff>_0x20a975;},'JxJCQ':_0x3a8d60(0xbd),'fYZai':function(_0x174d34,_0x5162d0,_0x4fb176,_0x727e4b,_0xc0e1c2,_0x100d11,_0x97823b,_0x2a9719){return _0x174d34(_0x5162d0,_0x4fb176,_0x727e4b,_0xc0e1c2,_0x100d11,_0x97823b,_0x2a9719);},'cHywE':_0x3a8d60(0x14e),'OdJBr':_0x3a8d60(0x156),'cUVyl':function(_0x5ce5cb,_0x36e3de){return _0x5ce5cb===_0x36e3de;},'yzCwt':_0x3a8d60(0x1a4),'aEgnD':_0x3a8d60(0x143),'HCMHM':_0x3a8d60(0xd1),'yRzpg':_0x3a8d60(0xe7),'JWNCd':_0x3a8d60(0x189),'psZDT':function(_0x3beb1b,_0x6b4ef8){return _0x3beb1b!==_0x6b4ef8;},'kXMiN':'SeVfV','ZlmiE':'GET','Fplen':function(_0x4cf439,_0x5b5e56,_0x5dc27d){return _0x4cf439(_0x5b5e56,_0x5dc27d);},'UmTxY':function(_0x4395ab,_0x54b7f8,_0x576c1e,_0x5611de,_0x584f6b,_0x3be69f){return _0x4395ab(_0x54b7f8,_0x576c1e,_0x5611de,_0x584f6b,_0x3be69f);},'eOoPR':_0x3a8d60(0x16e),'drQDm':_0x3a8d60(0x1b6),'vMoPc':function(_0x1a4314,_0x23931f){return _0x1a4314===_0x23931f;},'cxPxO':function(_0x22e33b,_0x1848d9){return _0x22e33b===_0x1848d9;},'KfLXL':_0x3a8d60(0xc3),'lZiVT':_0x3a8d60(0xca),'AzKRq':function(_0x3ef84a,_0x52b389){return _0x3ef84a(_0x52b389);},'hpoEY':_0x3a8d60(0xea),'KrAhg':function(_0x53e3f6,_0x1f934b,_0x591609,_0x9fb5a5,_0x58dd35,_0x5c1cea,_0x10c90d,_0x39a63c){return _0x53e3f6(_0x1f934b,_0x591609,_0x9fb5a5,_0x58dd35,_0x5c1cea,_0x10c90d,_0x39a63c);},'AFAEg':_0x3a8d60(0x10b),'Kzimk':_0x3a8d60(0x14a),'RjMsU':_0x3a8d60(0xe6),'YXlpQ':_0x3a8d60(0x11c),'Qveau':function(_0x54c779,_0x34bfca){return _0x54c779!==_0x34bfca;},'zMqfo':_0x3a8d60(0x141),'BFTyE':_0x3a8d60(0xc1),'RVJVN':'WaBkc','bfBTx':function(_0x39598a,_0x201c2a,_0x36edbb,_0x3bee59,_0x3e2e3c,_0x35bb2b,_0x209a8d,_0x5bb4f1){return _0x39598a(_0x201c2a,_0x36edbb,_0x3bee59,_0x3e2e3c,_0x35bb2b,_0x209a8d,_0x5bb4f1);}};let _0x55cc31;try{if(_0x636b85['woXlb'](_0x636b85[_0x3a8d60(0x1b5)],_0x636b85[_0x3a8d60(0x1b5)])){if(_0x357035[_0x3a8d60(0xee)]||_0x357035[_0x3a8d60(0x1a0)]||_0x357035['region']){if(_0x636b85[_0x3a8d60(0x13e)](_0x636b85[_0x3a8d60(0xcf)],_0x636b85[_0x3a8d60(0x1a7)]))_0x13002c+='Cluster\x20'+_0x3db393[_0x3a8d60(0xee)]+'\x20'+(_0x50b0fa?_0x636b85['fcPue']:_0x636b85['ZdqWW'])+'\x0a\x0a';else{const _0x2af6c1=[];!_0x357035['clusterName']&&(_0x636b85['bKmuD'](_0x636b85[_0x3a8d60(0xec)],_0x636b85['hBQId'])?_0x2af6c1[_0x3a8d60(0x102)](_0x636b85['UULnZ']):(_0x76c571[_0x3a8d60(0x131)](_0x3a8d60(0xf7)+_0x32c9f7[_0x3a8d60(0x175)]+'\x20'),_0x3cbe44[_0x3a8d60(0x1a0)]=_0x3b5035[_0x3a8d60(0x175)]));;!_0x357035[_0x3a8d60(0x1a0)]&&(_0x636b85[_0x3a8d60(0x182)](_0x636b85['qhgBQ'],_0x636b85['qhgBQ'])?_0x51b301[_0x3a8d60(0x131)](_0x3a8d60(0x1a9)+_0x4ee3b9[_0x3a8d60(0xee)]+'`\x20already\x20exists'):_0x2af6c1[_0x3a8d60(0x102)](_0x636b85[_0x3a8d60(0x16f)]));;if(!_0x357035['region']){if(_0x636b85[_0x3a8d60(0xc5)](_0x636b85['uIbRk'],_0x636b85[_0x3a8d60(0xda)]))_0x2af6c1['push'](_0x636b85[_0x3a8d60(0x179)]);else{const {header:_0x3e82a7,response:_0x29d673}=_0x32d359,{status:_0x208f16,data:_0x34950d,error:_0x3c723f}=_0x29d673;_0x472c31+=_0x3e82a7+'\x20#'+_0x636b85[_0x3a8d60(0x1a6)](_0x228c2c,0x1)+'\x0a',_0xa76225+=_0x3a8d60(0x169)+(_0x208f16?_0x636b85[_0x3a8d60(0x103)]:_0x636b85[_0x3a8d60(0x163)])+'\x0a',_0x4b407f+=_0x3a8d60(0x104)+_0x636b85[_0x3a8d60(0x17d)](_0x34950d,_0x636b85[_0x3a8d60(0xbe)])+'\x0a',_0x3c723f&&(_0x2a7bb4+=_0x636b85['nUlVZ'],_0x49988f+=_0x3a8d60(0x100)+(_0x3c723f[_0x3a8d60(0x154)]||_0x636b85[_0x3a8d60(0xbe)])+'\x0a',_0x1a6be1+=_0x3a8d60(0x147)+(_0x3c723f['code']||_0x636b85[_0x3a8d60(0xbe)])+'\x0a',_0x4cbf06+=_0x3a8d60(0x105)+(_0x3c723f[_0x3a8d60(0xf9)]||_0x636b85[_0x3a8d60(0xbe)])+'\x0a'),_0x2e7910+='\x0a\x0a';}};_0x636b85[_0x3a8d60(0xcc)](_0x2af6c1[_0x3a8d60(0xf8)],0x0)&&(_0x636b85['bKmuD'](_0x636b85['JxJCQ'],_0x636b85[_0x3a8d60(0x129)])?_0xc2759c[_0x3a8d60(0x146)](_0x3a8d60(0xbf)+_0x132b7d[_0x3a8d60(0x146)]['stack']):(_0x55cc31=_0x3a8d60(0xfe)+_0x2af6c1[_0x3a8d60(0x1a8)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x636b85[_0x3a8d60(0xde)](reportToGalactusAndSendToEDS,_0x357035,_0x42ad1f,_0x55cc31,messageTypes[_0x3a8d60(0x194)],_0x636b85[_0x3a8d60(0x12f)],_0x636b85[_0x3a8d60(0x18e)],_0x636b85[_0x3a8d60(0x10e)]),logger['error'](_0x55cc31),process[_0x3a8d60(0xf2)](0x1)));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x3a8d60(0xc0)](_0x357035['cloudProvider'][_0x3a8d60(0x13a)]())){if(_0x636b85[_0x3a8d60(0x11d)](_0x636b85[_0x3a8d60(0x1ab)],_0x636b85[_0x3a8d60(0xdc)])){const _0x349841={};_0x349841['description']=_0x636b85['DRmwB'],_0x349841['type']=_0x636b85[_0x3a8d60(0x107)];const _0x52df19={};_0x52df19[_0x3a8d60(0x16a)]=_0x636b85[_0x3a8d60(0xff)],_0x52df19[_0x3a8d60(0x19e)]=_0x636b85[_0x3a8d60(0x107)];const _0xdf01c0={};_0xdf01c0[_0x3a8d60(0x16a)]=_0x636b85[_0x3a8d60(0x158)],_0xdf01c0['type']=_0x636b85['vPsLx'];const _0x1f9d2b={};_0x1f9d2b[_0x3a8d60(0x16a)]=_0x636b85['PTsEb'],_0x1f9d2b[_0x3a8d60(0x19e)]=_0x636b85[_0x3a8d60(0x107)];const _0xca11f7={};return _0xca11f7[_0x3a8d60(0xe0)]=_0x349841,_0xca11f7[_0x3a8d60(0xf3)]=_0x52df19,_0xca11f7['region']=_0xdf01c0,_0xca11f7[_0x3a8d60(0x1b6)]=_0x1f9d2b,_0x21e5ab['usage'](_0x33e089[_0x3a8d60(0x149)])[_0x3a8d60(0x120)](_0x23681d)['options'](_0xca11f7)['help'](_0x636b85[_0x3a8d60(0x161)])[_0x3a8d60(0x135)];}else _0x55cc31=_0x636b85[_0x3a8d60(0x12c)],await _0x636b85[_0x3a8d60(0xde)](reportToGalactusAndSendToEDS,_0x357035,_0x42ad1f,_0x55cc31,messageTypes[_0x3a8d60(0x194)],_0x636b85[_0x3a8d60(0x12f)],_0x636b85[_0x3a8d60(0xd4)],_0x636b85[_0x3a8d60(0x10e)]),logger[_0x3a8d60(0x146)](_0x55cc31),!_0x357035[_0x3a8d60(0x1a0)]&&(_0x636b85[_0x3a8d60(0xc5)](_0x636b85[_0x3a8d60(0x11a)],_0x636b85['JWNCd'])?(_0x2e3b84[_0x3a8d60(0x131)]('['+_0x227205+_0x3a8d60(0x133)+_0x6dd579[_0x3a8d60(0x15e)]+_0x3a8d60(0x1b2)+_0x10b078['data']+_0x3a8d60(0x1ae)+_0x2940c8['error']),_0x9ac071[_0x3a8d60(0x146)]&&_0x1efdc8['error']('error\x20stack\x20:\x20'+_0x1759e2[_0x3a8d60(0x146)]['stack'])):(logger['info']('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x3a8d60(0x175)]+'\x20'),_0x357035[_0x3a8d60(0x1a0)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']));}global_registry[_0x3a8d60(0xee)]=_0x357035[_0x3a8d60(0xee)],global_registry[_0x3a8d60(0x1a0)]=_0x357035[_0x3a8d60(0x1a0)],global_registry[_0x3a8d60(0x16d)]=_0x357035[_0x3a8d60(0x165)];}}else{if(_0x357035[_0x3a8d60(0x15b)]){if(_0x636b85[_0x3a8d60(0xdd)](_0x636b85[_0x3a8d60(0x19f)],_0x636b85[_0x3a8d60(0x19f)]))_0x1d2a74[_0x3a8d60(0x102)](_0x636b85[_0x3a8d60(0x12d)]);else{global_registry[_0x3a8d60(0x15b)]=_0x357035[_0x3a8d60(0x15b)],logger[_0x3a8d60(0x108)]('grid\x20profile\x20flow\x20'+_0x357035[_0x3a8d60(0x15b)]);const _0x11e406='https://'+AG_API_URL+_0x3a8d60(0x13b),_0x28d18c={};_0x28d18c[_0x3a8d60(0x1a5)]=_0x636b85[_0x3a8d60(0x18c)],_0x28d18c['headers']=global_registry['authHeader'],_0x28d18c[_0x3a8d60(0x151)]=![];const _0x10c28d=_0x28d18c,_0x61fc8a=await _0x636b85['Fplen'](got,_0x11e406,_0x10c28d),_0x18b5fe=await _0x636b85[_0x3a8d60(0x145)](responseValidation,_0x61fc8a,_0x636b85[_0x3a8d60(0x1ad)],_0x636b85[_0x3a8d60(0x10d)],_0x357035,_0x42ad1f);let _0x3484f5={};if(_0x636b85['vMoPc'](_0x18b5fe,0xc8)){if(_0x636b85[_0x3a8d60(0x17b)](_0x636b85[_0x3a8d60(0x12e)],_0x636b85['lZiVT']))_0x291cc9[_0x3a8d60(0xf2)](0x1);else{const _0x4ea640=JSON[_0x3a8d60(0x17e)](_0x61fc8a[_0x3a8d60(0x1a1)]),_0x22b46b=_0x4ea640[_0x3a8d60(0xd9)](_0x329789=>_0x329789[_0x3a8d60(0x19b)]===_0x357035[_0x3a8d60(0x15b)])||null;_0x636b85[_0x3a8d60(0x17a)](isUndefined,_0x22b46b)?_0x636b85[_0x3a8d60(0x195)](_0x636b85[_0x3a8d60(0x118)],_0x636b85[_0x3a8d60(0x118)])?(_0x55cc31=_0x3a8d60(0x17f)+_0x357035['gridProfile']+_0x3a8d60(0xc2),await _0x636b85[_0x3a8d60(0x1a3)](reportToGalactusAndSendToEDS,_0x357035,_0x42ad1f,_0x55cc31,messageTypes[_0x3a8d60(0x194)],_0x636b85[_0x3a8d60(0x12f)],_0x636b85[_0x3a8d60(0x157)],_0x636b85[_0x3a8d60(0x10e)]),logger[_0x3a8d60(0x146)](_0x55cc31),process['exit'](0x1)):_0x56644b=_0x5bc381:_0x636b85[_0x3a8d60(0xc5)](_0x636b85[_0x3a8d60(0x15a)],_0x636b85[_0x3a8d60(0x15a)])?(_0x1cb2a7+=_0x636b85[_0x3a8d60(0x177)],_0x5974ac+=_0x3a8d60(0x100)+(_0x25ad5a[_0x3a8d60(0x154)]||_0x636b85['kuQRL'])+'\x0a',_0xa7ebec+=_0x3a8d60(0x147)+(_0x2ad493[_0x3a8d60(0x191)]||_0x636b85[_0x3a8d60(0xbe)])+'\x0a',_0x580a2c+=_0x3a8d60(0x105)+(_0x4d026c[_0x3a8d60(0xf9)]||_0x636b85[_0x3a8d60(0xbe)])+'\x0a'):_0x3484f5=_0x22b46b;}}else _0x636b85[_0x3a8d60(0x182)](_0x636b85['RjMsU'],_0x636b85['RjMsU'])?(_0x1693cb['error'](_0x636b85[_0x3a8d60(0x150)]),_0x1fcb75[_0x3a8d60(0xf2)](0x1)):process[_0x3a8d60(0xf2)](0x1);const _0x44a38b={};_0x44a38b[_0x3a8d60(0x19e)]=WS_EVENTS[_0x3a8d60(0x152)],_0x44a38b[_0x3a8d60(0x154)]=_0x636b85[_0x3a8d60(0x14d)],webSocketUtils['sendEventToBackend'](_0x42ad1f,_0x44a38b),global_registry[_0x3a8d60(0x1a0)]=_0x3484f5['cloudProvider'],global_registry[_0x3a8d60(0x16d)]=_0x3484f5[_0x3a8d60(0x165)],global_registry[_0x3a8d60(0xee)]=_0x3484f5[_0x3a8d60(0xee)];}}else _0x636b85[_0x3a8d60(0xc6)](_0x636b85[_0x3a8d60(0x18f)],_0x636b85[_0x3a8d60(0x18f)])?_0x20b5fa[_0x3a8d60(0x102)](_0x636b85[_0x3a8d60(0x179)]):(logger[_0x3a8d60(0x146)](_0x636b85[_0x3a8d60(0x150)]),process[_0x3a8d60(0xf2)](0x1));}}else{const _0x38bb12={};_0x38bb12[_0x3a8d60(0x19e)]=_0x15cb21[_0x3a8d60(0x152)],_0x38bb12[_0x3a8d60(0x154)]=_0x33eebd,_0x12e408[_0x3a8d60(0xd6)](_0x1c3a5d,_0x38bb12,_0x636b85[_0x3a8d60(0x10e)],!![]);}}catch(_0x350226){_0x636b85['vMoPc'](_0x636b85[_0x3a8d60(0xd8)],_0x636b85[_0x3a8d60(0x11e)])?_0x55a0f0+=_0x3a8d60(0x12a)+_0x4c5178[_0x3a8d60(0xee)]+_0x3a8d60(0x184):(_0x55cc31=_0x3a8d60(0x183)+_0x350226+':\x20'+_0x350226[_0x3a8d60(0xf9)],logger[_0x3a8d60(0x146)](_0x55cc31),await _0x636b85['bfBTx'](reportToGalactusAndSendToEDS,_0x357035,_0x42ad1f,_0x55cc31,messageTypes[_0x3a8d60(0x194)],_0x636b85[_0x3a8d60(0x12f)],_0x636b85[_0x3a8d60(0xd4)],_0x636b85[_0x3a8d60(0x10e)]),process[_0x3a8d60(0xf2)](0x1));}}function printResponse(_0xba9a83,_0x169e47){const _0x15955a=a17_0x153e56,_0x34b0fb={};_0x34b0fb[_0x15955a(0x134)]=_0x15955a(0xf3),_0x34b0fb[_0x15955a(0x116)]=function(_0x4e1cd0,_0x2ec17b){return _0x4e1cd0===_0x2ec17b;},_0x34b0fb[_0x15955a(0x119)]='WadPP';const _0x894ea7=_0x34b0fb;logger[_0x15955a(0x131)]('['+_0xba9a83+']\x20status\x20:\x20'+_0x169e47['status']+_0x15955a(0x1b2)+_0x169e47['data']+_0x15955a(0x1ae)+_0x169e47[_0x15955a(0x146)]),_0x169e47[_0x15955a(0x146)]&&(_0x894ea7[_0x15955a(0x116)](_0x894ea7[_0x15955a(0x119)],_0x894ea7[_0x15955a(0x119)])?logger['error'](_0x15955a(0xbf)+_0x169e47['error'][_0x15955a(0xf9)]):_0x24d808['push'](_0x894ea7[_0x15955a(0x134)]));}function a17_0x297d(){const _0x17ecf4=['Failed\x20in\x20pre-check!\x20Error:\x20','nsWwA','../../cloudproviders/utils','BmRah','username','UmTxY','error','\x20\x20Code:\x20','ewRYa','pre_check','KdsQu','delay','oLtKJ','YXlpQ','pre-check-grid-called','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','ijAGw','throwHttpErrors','LOG','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','message','header','pre-check-cluster-args-not-passed','AFAEg','BBXdW','Report\x20saved\x20in\x20','Kzimk','gridProfile','Wvtpc','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','status','===\x20Precheck\x20Report\x20-\x20','getUTCMinutes','yPsES','VaNVX','MCHXG','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','region','writeFileSync','uVwsG','EdYRI','Status:\x20','description','../../config/constants','14920erUnIb','clusterRegion','pre-check','BwFPa','isTrialGridAccessible','got','1336qVZlHL','JIxoq','299981rtnMOI','CLOUD_PROVIDER','Error\x20Details:\x0a','nUlVZ','unable\x20to\x20verify\x20if\x20cluster\x20`','gZDkY','AzKRq','cxPxO','INFO','vBwKY','parse','Invalid\x20input.\x20grid\x20profiles:\x20','SRXDX','hAisu','FfiLG','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','Ezpvi','existsSync','Pre-check\x20running\x20for\x20Cloud\x20-\x20','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Uobol','vrpbX','ixhmJ','ZlmiE','672585ByFWqw','OdJBr','zMqfo','command','code','getUTCMonth','cMmNR','ERROR','vMoPc','TlrYa','95356EDnWLD','Cluster\x20details\x0a-----------------------\x0a','GoKsU','Browserstack','name','pnugh','handler','type','kXMiN','cloudProvider','body','108FQLUDA','KrAhg','iuWft','method','ZwbDD','wmRkH','join','Cluster\x20`','Failure','yzCwt','6748kVproB','eOoPR','\x20error\x20:\x20','GHUVH','\x20region\x20-\x20','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','\x20data\x20:\x20','10473kWgZVV','YOTLs','XdWag','grid-profile','QjtKg','kEcQQ','aqovl','kuQRL','error\x20stack\x20:\x20','includes','WqOEc','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','ZGjNy','desc','bKmuD','Qveau','bstackAccesskey','<UsernamePlaceholder>','stack\x20trace\x20','dRios','sMjeq','ozWlZ','string','builder','CxfvT','2GYRywH','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','requestId','isCliToolInstalled','yRzpg','stringify','sendEventToBackend','RIYHY','BFTyE','find','RHIjW','WebSocket','aEgnD','psZDT','fYZai','OgJiC','cluster-name','N/A','WAFbX','IinmL','authHeader','SSL\x20Configured','aPSmj','cloud-provider-not-supported','uuid','`\x20is\x20present\x20in\x20region\x20`','goPKI','3bvUzTl','mCsNJ','checkAccess','clusterName','connectionTimeout','<PasswordPlaceholder>','TLSv1_2_client_method','exit','cloud-provider','is\x20already\x20present','eQKWd','2055498CQLKLW','Setting\x20cloud\x20provider\x20as\x20','length','stack','../../utils/webSocketUtils','RIzQy','288PVpAOy','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Missing\x20required\x20arguments:\x20','WawUh','\x20\x20Message:\x20','hKFfZ','push','DVvqm','Message:\x20','\x20\x20Stack:\x20','cluster-check-failed-','vPsLx','debug','pVECL','pre-check-failed','pre-check-grid-profile-empty','MemTT','drQDm','jOmAr','OOouj','forEach','`\x20already\x20exists','accessResp','hFMUT','eUVYF','qiXDm','DkWla','reconnecting-websocket','hpoEY','eORCg','JWNCd','toolInstalledResp','Grid\x20profile\x20fetched\x20for\x20pre-check','cUVyl','RVJVN','.txt','epilogue','RzVnx','../../utils/utilityMethods','SWoZk','response','FkTuW','help','Tool\x20Installed','OHtbs','JxJCQ','Cluster\x20','hcaBh','HCMHM','UULnZ','KfLXL','cHywE','../../config/logger','info','qVJGU',']\x20status\x20:\x20','hhSoL','argv','YXzRH','will\x20be\x20created','fMOSp','CeBMp','toLowerCase','/packages/cli/get-all-grid-profiles','replace','readFileSync','woXlb','bstackUsername'];a17_0x297d=function(){return _0x17ecf4;};return a17_0x297d();}function a17_0x8ff1(_0x30d5fc,_0x1d4b43){const _0x297d7f=a17_0x297d();return a17_0x8ff1=function(_0x8ff1bf,_0x51c498){_0x8ff1bf=_0x8ff1bf-0xbd;let _0x3f1b09=_0x297d7f[_0x8ff1bf];return _0x3f1b09;},a17_0x8ff1(_0x30d5fc,_0x1d4b43);}async function generateReport(_0x58ad06,_0x587739){const _0x1d11fd=a17_0x153e56,_0x548206={'hFMUT':function(_0x2bf69a,_0x36a37d){return _0x2bf69a+_0x36a37d;},'uaTTh':'Success','fMOSp':_0x1d11fd(0x1aa),'HGdDm':function(_0x4a0afb,_0xaea03f){return _0x4a0afb||_0xaea03f;},'SWoZk':_0x1d11fd(0xe1),'GoKsU':_0x1d11fd(0x176),'SRXDX':_0x1d11fd(0x198),'RIYHY':function(_0x5a9dcd,_0x2714ef){return _0x5a9dcd!=_0x2714ef;},'kEcQQ':'is\x20already\x20present','IYhtG':_0x1d11fd(0x137),'NqeAc':function(_0x592955){return _0x592955();}};let _0x4a77db=_0x1d11fd(0x15f)+global_registry[_0x1d11fd(0x1a0)]+'\x20===\x0a\x0a';return _0x58ad06[_0x1d11fd(0x110)]((_0xb8e75a,_0x294085)=>{const _0xd3e76f=_0x1d11fd,{header:_0x148e04,response:_0xcd6307}=_0xb8e75a,{status:_0x58cbcd,data:_0x44854f,error:_0x3cc8aa}=_0xcd6307;_0x4a77db+=_0x148e04+'\x20#'+_0x548206[_0xd3e76f(0x113)](_0x294085,0x1)+'\x0a',_0x4a77db+=_0xd3e76f(0x169)+(_0x58cbcd?_0x548206['uaTTh']:_0x548206[_0xd3e76f(0x138)])+'\x0a',_0x4a77db+='Message:\x20'+_0x548206['HGdDm'](_0x44854f,_0x548206[_0xd3e76f(0x123)])+'\x0a',_0x3cc8aa&&(_0x4a77db+=_0x548206[_0xd3e76f(0x199)],_0x4a77db+=_0xd3e76f(0x100)+(_0x3cc8aa[_0xd3e76f(0x154)]||_0x548206[_0xd3e76f(0x123)])+'\x0a',_0x4a77db+='\x20\x20Code:\x20'+(_0x3cc8aa[_0xd3e76f(0x191)]||_0x548206[_0xd3e76f(0x123)])+'\x0a',_0x4a77db+=_0xd3e76f(0x105)+(_0x3cc8aa[_0xd3e76f(0xf9)]||_0x548206[_0xd3e76f(0x123)])+'\x0a'),_0x4a77db+='\x0a\x0a';}),_0x4a77db+=_0x548206[_0x1d11fd(0x180)],_0x548206[_0x1d11fd(0xd7)](_0x587739,null)?_0x4a77db+=_0x1d11fd(0x12a)+global_registry[_0x1d11fd(0xee)]+'\x20'+(_0x587739?_0x548206[_0x1d11fd(0x1b8)]:_0x548206['IYhtG'])+'\x0a\x0a':_0x4a77db+=_0x1d11fd(0x12a)+global_registry[_0x1d11fd(0xee)]+_0x1d11fd(0x184),_0x4a77db+=_0x548206['NqeAc'](getSystemMetaData),_0x4a77db;};exports[a17_0x153e56(0x19d)]=async function(_0x49a421){const _0x40c6f7=a17_0x153e56,_0x1d362d={'GHUVH':function(_0x5eda76){return _0x5eda76();},'JIxoq':function(_0x579446){return _0x579446();},'eUVYF':_0x40c6f7(0x164),'qiXDm':function(_0x24c696,_0x16b988,_0x538421,_0xe95485,_0x18dd2a,_0x38a99d,_0x4123c6,_0x309bd5){return _0x24c696(_0x16b988,_0x538421,_0xe95485,_0x18dd2a,_0x38a99d,_0x4123c6,_0x309bd5);},'OOouj':'pre-check-grid-called','WbGNs':'credential-not-found','uVwsG':_0x40c6f7(0x146),'eQKWd':function(_0x209cec,_0x560621,_0x59c3bc,_0x4abf52,_0x388b3a,_0x575d0e,_0xd6e215){return _0x209cec(_0x560621,_0x59c3bc,_0x4abf52,_0x388b3a,_0x575d0e,_0xd6e215);},'OHtbs':_0x40c6f7(0xc8),'vrpbX':_0x40c6f7(0xf0),'YOTLs':function(_0x429953,_0x4c40fb,_0x34e67c){return _0x429953(_0x4c40fb,_0x34e67c);},'EdYRI':function(_0x3807a9,_0x1c4d53,_0x5a1007){return _0x3807a9(_0x1c4d53,_0x5a1007);},'TlrYa':'dummy-grid','VaNVX':_0x40c6f7(0x11b),'IsvMd':'3|4|2|1|0','WAFbX':function(_0x1b86eb,_0x3e34ed,_0x527a37,_0xd9cbd5,_0x1448de,_0x24ba03,_0xe6b490,_0x2541ae){return _0x1b86eb(_0x3e34ed,_0x527a37,_0xd9cbd5,_0x1448de,_0x24ba03,_0xe6b490,_0x2541ae);},'pVECL':_0x40c6f7(0x112),'rFFkR':_0x40c6f7(0x170),'dhtvo':function(_0x561c47,_0x8f7f6f){return _0x561c47(_0x8f7f6f);},'FkTuW':_0x40c6f7(0xf1),'RIzQy':function(_0x5ce8b2,_0xf2b750,_0x1b36e6){return _0x5ce8b2(_0xf2b750,_0x1b36e6);},'ixhmJ':'isTls1_2_SUPPORTED','hKFfZ':_0x40c6f7(0x127),'RzVnx':'User\x20Access','IinmL':'Whitelisted\x20browserstack','Ezpvi':_0x40c6f7(0xe5),'Welbh':function(_0x426cab,_0xe9786){return _0x426cab+_0xe9786;},'OgJiC':'utf-8','XJlOr':function(_0x57baca,_0x2e158c,_0x2a2637,_0x357b04,_0x4c7ceb,_0x562d59,_0x3becc7){return _0x57baca(_0x2e158c,_0x2a2637,_0x357b04,_0x4c7ceb,_0x562d59,_0x3becc7);},'CeBMp':_0x40c6f7(0x10a)};let _0x2a4d22,_0x26d085;try{global_registry[_0x40c6f7(0xd2)]=_0x1d362d[_0x40c6f7(0x1af)](uuidv4);!fs[_0x40c6f7(0x186)](_0x1d362d[_0x40c6f7(0x173)](getCredentialsPath))&&(_0x26d085=_0x1d362d[_0x40c6f7(0x114)],logger[_0x40c6f7(0x146)](_0x26d085),await _0x1d362d[_0x40c6f7(0x115)](reportToGalactusAndSendToEDS,_0x49a421,_0x2a4d22,_0x26d085,messageTypes[_0x40c6f7(0x194)],_0x1d362d[_0x40c6f7(0x10f)],_0x1d362d['WbGNs'],_0x1d362d[_0x40c6f7(0x167)]),process[_0x40c6f7(0xf2)](0x1));_0x1d362d[_0x40c6f7(0xf5)](sendInstrumentationEvent,_0x49a421,_0x1d362d[_0x40c6f7(0x10f)],messageTypes[_0x40c6f7(0x17c)],null,null,_0x49a421);const _0x4ea1a7=JSON[_0x40c6f7(0x17e)](fs[_0x40c6f7(0x13d)](_0x1d362d[_0x40c6f7(0x173)](getCredentialsPath)));global_registry[_0x40c6f7(0x13f)]=_0x4ea1a7[_0x40c6f7(0x19a)][_0x40c6f7(0x144)],global_registry[_0x40c6f7(0xc7)]=_0x4ea1a7[_0x40c6f7(0x19a)]['password'];const _0xe9d1e5=WS_ENDPOINT[_0x40c6f7(0x13c)](_0x1d362d[_0x40c6f7(0x128)],_0x4ea1a7['Browserstack'][_0x40c6f7(0x144)])[_0x40c6f7(0x13c)](_0x1d362d[_0x40c6f7(0x18a)],_0x4ea1a7['Browserstack']['password']),_0x155d75={};_0x155d75[_0x40c6f7(0xdb)]=ws,_0x155d75[_0x40c6f7(0xef)]=0x36ee80,_0x2a4d22=new ReconnectingWebSocket(_0xe9d1e5,[],_0x155d75),global_registry[_0x40c6f7(0xe4)]=_0x1d362d[_0x40c6f7(0x1b4)](getAuthHeader,global_registry[_0x40c6f7(0x13f)],global_registry['bstackAccesskey']),await _0x1d362d[_0x40c6f7(0x168)](inputValidation,_0x49a421,_0x2a4d22),logger[_0x40c6f7(0x131)](_0x40c6f7(0x187)+global_registry[_0x40c6f7(0x1a0)]+_0x40c6f7(0x1b0)+global_registry[_0x40c6f7(0x16d)]);let _0x1a470c=await _0x1d362d[_0x40c6f7(0xf5)](getCloudProviderObjectWithOutInit,global_registry[_0x40c6f7(0x1a0)],global_registry[_0x40c6f7(0xee)],_0x1d362d[_0x40c6f7(0x196)],_0x2a4d22,webSocketUtils,_0x49a421);const _0x1764eb=await _0x1a470c[_0x40c6f7(0xd3)]();_0x1d362d[_0x40c6f7(0x1b4)](printResponse,_0x1d362d[_0x40c6f7(0x162)],_0x1764eb),_0x1a470c=await _0x1a470c['init']();let _0x453284=![];try{_0x453284=await _0x1a470c['isClusterPresent']();}catch(_0x51d767){const _0x3510e1=_0x1d362d['IsvMd']['split']('|');let _0x42e367=0x0;while(!![]){switch(_0x3510e1[_0x42e367++]){case'0':await _0x1d362d[_0x40c6f7(0xe2)](reportToGalactusAndSendToEDS,_0x49a421,_0x2a4d22,_0x26d085,messageTypes[_0x40c6f7(0x194)],_0x1d362d['OOouj'],_0x40c6f7(0x106)+global_registry[_0x40c6f7(0x1a0)],_0x1d362d[_0x40c6f7(0x167)]);continue;case'1':_0x26d085+='\x0a'+JSON['stringify'](_0x51d767[_0x40c6f7(0xf9)]);continue;case'2':logger[_0x40c6f7(0x146)](_0x26d085);continue;case'3':_0x26d085=_0x40c6f7(0x178)+global_registry[_0x40c6f7(0xee)]+_0x40c6f7(0xe9)+global_registry[_0x40c6f7(0x16d)]+'`\x20,error\x20:\x20'+_0x51d767;continue;case'4':_0x453284=null;continue;}break;}}_0x453284&&logger['info']('Cluster\x20`'+global_registry[_0x40c6f7(0xee)]+_0x40c6f7(0x111));const _0x4d9cca=await _0x1a470c[_0x40c6f7(0xed)]();_0x1d362d[_0x40c6f7(0x1b4)](printResponse,_0x1d362d[_0x40c6f7(0x109)],_0x4d9cca);const _0x5b7bfa=await _0x1d362d[_0x40c6f7(0x173)](curlRequest);_0x1d362d[_0x40c6f7(0x1b4)](printResponse,_0x1d362d['rFFkR'],_0x5b7bfa);const _0x3ad477=await _0x1d362d['dhtvo'](isTlsSupported,_0x1d362d[_0x40c6f7(0x125)]);_0x1d362d[_0x40c6f7(0xfb)](printResponse,_0x1d362d[_0x40c6f7(0x18b)],_0x3ad477);const _0x52265a={};_0x52265a[_0x40c6f7(0x155)]=_0x1d362d[_0x40c6f7(0x101)],_0x52265a[_0x40c6f7(0x124)]=_0x1764eb;const _0x3e9460={};_0x3e9460[_0x40c6f7(0x155)]=_0x1d362d[_0x40c6f7(0x121)],_0x3e9460[_0x40c6f7(0x124)]=_0x4d9cca;const _0x445b4f={};_0x445b4f[_0x40c6f7(0x155)]=_0x1d362d[_0x40c6f7(0xe3)],_0x445b4f[_0x40c6f7(0x124)]=_0x5b7bfa;const _0x351449={};_0x351449[_0x40c6f7(0x155)]=_0x1d362d[_0x40c6f7(0x185)],_0x351449['response']=_0x3ad477;const _0x41a731=[_0x52265a,_0x3e9460,_0x445b4f,_0x351449],_0x1228b8=await _0x1d362d[_0x40c6f7(0x168)](generateReport,_0x41a731,_0x453284),_0x46ade9=new Date(),_0x3e7d9a=_0x46ade9['getUTCFullYear']()+'_'+_0x1d362d['Welbh'](_0x46ade9[_0x40c6f7(0x192)](),0x1)+'_'+_0x46ade9['getUTCDate']()+'_'+_0x46ade9['getUTCHours']()+'_'+_0x46ade9[_0x40c6f7(0x160)](),_0x562f7e='log/report_'+_0x3e7d9a+_0x40c6f7(0x11f);fs[_0x40c6f7(0x166)](_0x562f7e,_0x1228b8,_0x1d362d[_0x40c6f7(0xdf)]),logger[_0x40c6f7(0x131)](_0x40c6f7(0x159)+_0x562f7e),process[_0x40c6f7(0xf2)](0x0);}catch(_0x496d54){let _0x3477d1=_0x40c6f7(0x140)+_0x496d54+'\x20';logger[_0x40c6f7(0x146)](_0x3477d1),_0x3477d1+='\x0a'+JSON[_0x40c6f7(0xd5)](_0x496d54[_0x40c6f7(0xf9)]),logger['debug'](_0x40c6f7(0xc9)+_0x496d54[_0x40c6f7(0xf9)]);if(_0x2a4d22){const _0x6686f8={};_0x6686f8[_0x40c6f7(0x19e)]=WS_EVENTS['LOG'],_0x6686f8[_0x40c6f7(0x154)]=_0x3477d1,webSocketUtils[_0x40c6f7(0xd6)](_0x2a4d22,_0x6686f8,_0x1d362d['uVwsG'],!![]);}await webSocketUtils[_0x40c6f7(0x14b)](0x7d0);const _0x501dcf={};_0x501dcf[_0x40c6f7(0x146)]=_0x3477d1,await _0x1d362d['XJlOr'](sendInstrumentationEvent,_0x49a421,_0x1d362d['OOouj'],messageTypes['ERROR'],_0x1d362d[_0x40c6f7(0x139)],_0x501dcf,_0x49a421),process[_0x40c6f7(0xf2)](0x1);}};
1
+ const a17_0x4f986d=a17_0x1e2d;(function(_0x3c9419,_0x531143){const _0x2c8e2b=a17_0x1e2d,_0x4f700b=_0x3c9419();while(!![]){try{const _0xd23d83=-parseInt(_0x2c8e2b(0x147))/0x1*(parseInt(_0x2c8e2b(0x202))/0x2)+-parseInt(_0x2c8e2b(0x160))/0x3+-parseInt(_0x2c8e2b(0x1ae))/0x4*(-parseInt(_0x2c8e2b(0x133))/0x5)+-parseInt(_0x2c8e2b(0x17b))/0x6+parseInt(_0x2c8e2b(0x16c))/0x7*(-parseInt(_0x2c8e2b(0x1da))/0x8)+parseInt(_0x2c8e2b(0x12f))/0x9*(-parseInt(_0x2c8e2b(0x163))/0xa)+-parseInt(_0x2c8e2b(0x1bb))/0xb*(-parseInt(_0x2c8e2b(0x157))/0xc);if(_0xd23d83===_0x531143)break;else _0x4f700b['push'](_0x4f700b['shift']());}catch(_0x2b47d2){_0x4f700b['push'](_0x4f700b['shift']());}}}(a17_0x51cc,0x8e76f));const fs=require('fs'),ws=require('ws'),got=require(a17_0x4f986d(0x1c0)),{v4:uuidv4}=require(a17_0x4f986d(0x13b)),ReconnectingWebSocket=require(a17_0x4f986d(0x1c6)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x4f986d(0x209)),{logger}=require(a17_0x4f986d(0x21a)),{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_0x4f986d(0x1f9)),{getCloudProviderObjectWithOutInit}=require(a17_0x4f986d(0x188)),webSocketUtils=require(a17_0x4f986d(0x127)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x4f986d(0x222)]=a17_0x4f986d(0x1c2),exports[a17_0x4f986d(0x138)]=a17_0x4f986d(0x155),exports[a17_0x4f986d(0x156)]=function(_0x5588e1){const _0x2187b3=a17_0x4f986d,_0xf3a0c={};_0xf3a0c[_0x2187b3(0x1e8)]=_0x2187b3(0x122),_0xf3a0c[_0x2187b3(0x1e0)]=_0x2187b3(0x169),_0xf3a0c[_0x2187b3(0x1bc)]=_0x2187b3(0x128),_0xf3a0c[_0x2187b3(0x124)]=_0x2187b3(0x17f),_0xf3a0c['Knxfk']='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0xf3a0c['asxzH']='help';const _0x3f8875=_0xf3a0c,_0x5a663f={};_0x5a663f[_0x2187b3(0x1f3)]=_0x3f8875[_0x2187b3(0x1e8)],_0x5a663f[_0x2187b3(0x1fe)]=_0x3f8875[_0x2187b3(0x1e0)];const _0x4f4b8a={};_0x4f4b8a[_0x2187b3(0x1f3)]=_0x3f8875[_0x2187b3(0x1bc)],_0x4f4b8a[_0x2187b3(0x1fe)]=_0x3f8875[_0x2187b3(0x1e0)];const _0x481670={};_0x481670[_0x2187b3(0x1f3)]=_0x3f8875['DwGkj'],_0x481670[_0x2187b3(0x1fe)]=_0x3f8875[_0x2187b3(0x1e0)];const _0x5e8f7f={};_0x5e8f7f['description']=_0x3f8875[_0x2187b3(0x1c9)],_0x5e8f7f['type']=_0x3f8875[_0x2187b3(0x1e0)];const _0x1ae7c6={};return _0x1ae7c6[_0x2187b3(0x1af)]=_0x5a663f,_0x1ae7c6[_0x2187b3(0x216)]=_0x4f4b8a,_0x1ae7c6[_0x2187b3(0x214)]=_0x481670,_0x1ae7c6[_0x2187b3(0x1f1)]=_0x5e8f7f,_0x5588e1[_0x2187b3(0x144)](HELP_HEADER_MESSAGE[_0x2187b3(0x21b)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x1ae7c6)[_0x2187b3(0x1d9)](_0x3f8875[_0x2187b3(0x14e)])[_0x2187b3(0x219)];};function a17_0x1e2d(_0x25dc11,_0x19e1c4){const _0x51ccfe=a17_0x51cc();return a17_0x1e2d=function(_0x1e2dd2,_0x1c7440){_0x1e2dd2=_0x1e2dd2-0x121;let _0x101b40=_0x51ccfe[_0x1e2dd2];return _0x101b40;},a17_0x1e2d(_0x25dc11,_0x19e1c4);}async function inputValidation(_0x3bdf51,_0x2d5996){const _0x1f08c8=a17_0x4f986d,_0xe42e49={'vJSUe':function(_0x526099,_0xbccbb8){return _0x526099+_0xbccbb8;},'CDwIf':'Success','HmBTU':_0x1f08c8(0x1ba),'ZSARw':function(_0x523072,_0x538819){return _0x523072||_0x538819;},'QRyTa':_0x1f08c8(0x1d7),'ZCXpU':_0x1f08c8(0x132),'VnDCY':_0x1f08c8(0x141),'ARhuG':_0x1f08c8(0x14b),'rXVuZ':_0x1f08c8(0x20d),'EKhNM':_0x1f08c8(0x122),'GMuhv':_0x1f08c8(0x169),'uICkL':_0x1f08c8(0x128),'sXQbI':_0x1f08c8(0x17f),'tfJhv':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','AvKrr':'help','HYBCM':_0x1f08c8(0x1fc),'nYuJt':'region','pEktM':_0x1f08c8(0x1af),'SsVZE':function(_0x4a138c,_0x1daffe){return _0x4a138c===_0x1daffe;},'ruhrn':'eAbdq','OCbTO':_0x1f08c8(0x177),'cnggu':function(_0x356b40,_0x399f44){return _0x356b40!==_0x399f44;},'HMBMz':_0x1f08c8(0x15a),'vITQK':_0x1f08c8(0x18d),'qEmIP':function(_0x4d8bbf,_0x1ee075){return _0x4d8bbf===_0x1ee075;},'gWKKG':_0x1f08c8(0x1a3),'HFhdr':'lltVI','YdCwi':_0x1f08c8(0x216),'EdcFY':_0x1f08c8(0x1fa),'nHTvB':function(_0xc83bf6,_0x11f396){return _0xc83bf6>_0x11f396;},'kFdKi':_0x1f08c8(0x1d1),'CqmcZ':_0x1f08c8(0x1d2),'rnbSM':function(_0x52965b,_0x18819e,_0x4bf1d6,_0x4fbef8,_0x16d682,_0x29c1d,_0x4d1083,_0x5c517c){return _0x52965b(_0x18819e,_0x4bf1d6,_0x4fbef8,_0x16d682,_0x29c1d,_0x4d1083,_0x5c517c);},'ZsbvL':'pre-check-grid-called','OKnNe':_0x1f08c8(0x13f),'nqpoy':function(_0xfd718c,_0x4ee616){return _0xfd718c!==_0x4ee616;},'EzTCE':_0x1f08c8(0x152),'MrsHp':_0x1f08c8(0x1a1),'zguYj':_0x1f08c8(0x154),'rfHok':_0x1f08c8(0x1db),'GhYzC':_0x1f08c8(0x185),'KyzJD':'sdOdr','TJOta':function(_0x4b7f34,_0x49ffdb){return _0x4b7f34!==_0x49ffdb;},'cWZMC':_0x1f08c8(0x146),'UKztD':_0x1f08c8(0x134),'WIXAc':_0x1f08c8(0x170),'zvkeg':function(_0x2127c7,_0x5cb996,_0x534b17){return _0x2127c7(_0x5cb996,_0x534b17);},'fPTEP':function(_0x4aa85f,_0x324ba1,_0x336003,_0x395073,_0x2dbbad,_0x85e819){return _0x4aa85f(_0x324ba1,_0x336003,_0x395073,_0x2dbbad,_0x85e819);},'xUDPU':_0x1f08c8(0x15f),'rrEqi':_0x1f08c8(0x1f1),'pOZIj':function(_0xe9ef92,_0x28ac99){return _0xe9ef92===_0x28ac99;},'KUhtK':'tvClO','zrsFE':'tPvQO','OkGrM':function(_0x39e541,_0x48e2be){return _0x39e541(_0x48e2be);},'hjIry':_0x1f08c8(0x18f),'kSBJQ':'pre-check-grid-profile-empty','nGXUE':'vucCG','wigQE':'RErJy','RMCmY':function(_0x4cc6ef,_0x1654c7){return _0x4cc6ef!==_0x1654c7;},'KeWZw':_0x1f08c8(0x175),'HosOR':'IdUIX','aWLVo':'Grid\x20profile\x20fetched\x20for\x20pre-check','cjqkI':function(_0x226735,_0x551837){return _0x226735!==_0x551837;},'ADhnh':'iSOBH','smHnM':function(_0x353638,_0x4e3af9){return _0x353638!==_0x4e3af9;},'FcrVf':_0x1f08c8(0x14f),'SDhXy':_0x1f08c8(0x174)};let _0x5c384d;try{if(_0xe42e49['SsVZE'](_0xe42e49[_0x1f08c8(0x1b1)],_0xe42e49[_0x1f08c8(0x215)]))_0x20dc4e+='Cluster\x20'+_0x4911f9[_0x1f08c8(0x1ff)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';else{if(_0x3bdf51[_0x1f08c8(0x1ff)]||_0x3bdf51[_0x1f08c8(0x125)]||_0x3bdf51[_0x1f08c8(0x214)]){if(_0xe42e49[_0x1f08c8(0x13a)](_0xe42e49['HMBMz'],_0xe42e49[_0x1f08c8(0x1f2)])){const _0x5b4133=[];if(!_0x3bdf51[_0x1f08c8(0x1ff)]){if(_0xe42e49[_0x1f08c8(0x19a)](_0xe42e49[_0x1f08c8(0x194)],_0xe42e49['gWKKG']))_0x5b4133[_0x1f08c8(0x20b)](_0xe42e49[_0x1f08c8(0x208)]);else{const {header:_0x1edbb7,response:_0x497f27}=_0x575919,{status:_0x4c00d0,data:_0x118a39,error:_0x494734}=_0x497f27;_0x5c332c+=_0x1edbb7+'\x20#'+_0xe42e49[_0x1f08c8(0x162)](_0x537b73,0x1)+'\x0a',_0x43009e+=_0x1f08c8(0x158)+(_0x4c00d0?_0xe42e49[_0x1f08c8(0x180)]:_0xe42e49[_0x1f08c8(0x18a)])+'\x0a',_0x108e5c+=_0x1f08c8(0x1ac)+_0xe42e49[_0x1f08c8(0x12e)](_0x118a39,_0xe42e49[_0x1f08c8(0x1fd)])+'\x0a',_0x494734&&(_0x14eb32+=_0xe42e49[_0x1f08c8(0x1f6)],_0x3ca349+=_0x1f08c8(0x201)+(_0x494734[_0x1f08c8(0x17a)]||_0xe42e49[_0x1f08c8(0x1fd)])+'\x0a',_0x3da23f+=_0x1f08c8(0x191)+(_0x494734[_0x1f08c8(0x1b5)]||_0xe42e49[_0x1f08c8(0x1fd)])+'\x0a',_0x31bb37+=_0x1f08c8(0x18e)+(_0x494734[_0x1f08c8(0x1b9)]||_0xe42e49[_0x1f08c8(0x1fd)])+'\x0a'),_0x49f44f+='\x0a\x0a';}};!_0x3bdf51[_0x1f08c8(0x125)]&&(_0xe42e49[_0x1f08c8(0x19a)](_0xe42e49['HFhdr'],_0xe42e49[_0x1f08c8(0x213)])?_0x5b4133[_0x1f08c8(0x20b)](_0xe42e49[_0x1f08c8(0x1e5)]):_0x487a67[_0x1f08c8(0x197)](0x1));;!_0x3bdf51[_0x1f08c8(0x214)]&&(_0xe42e49[_0x1f08c8(0x13a)](_0xe42e49[_0x1f08c8(0x1b6)],_0xe42e49[_0x1f08c8(0x1b6)])?_0x2ef1b7[_0x1f08c8(0x141)]('error\x20stack\x20:\x20'+_0x4c25f1[_0x1f08c8(0x141)][_0x1f08c8(0x1b9)]):_0x5b4133[_0x1f08c8(0x20b)](_0xe42e49[_0x1f08c8(0x1a9)]));;if(_0xe42e49[_0x1f08c8(0x171)](_0x5b4133['length'],0x0)){if(_0xe42e49[_0x1f08c8(0x13a)](_0xe42e49[_0x1f08c8(0x184)],_0xe42e49[_0x1f08c8(0x211)]))_0x5c384d=_0x1f08c8(0x1dd)+_0x5b4133[_0x1f08c8(0x131)](',\x20')+_0x1f08c8(0x16a),await _0xe42e49[_0x1f08c8(0x1a5)](reportToGalactusAndSendToEDS,_0x3bdf51,_0x2d5996,_0x5c384d,messageTypes[_0x1f08c8(0x19b)],_0xe42e49[_0x1f08c8(0x140)],_0xe42e49['OKnNe'],_0xe42e49[_0x1f08c8(0x1be)]),logger[_0x1f08c8(0x141)](_0x5c384d),process['exit'](0x1);else{const _0xc50515={};_0xc50515[_0x1f08c8(0x1fe)]=_0x34d7fa['LOG'],_0xc50515[_0x1f08c8(0x17a)]=_0x40bf2f,_0x25f707[_0x1f08c8(0x19f)](_0x11a5b7,_0xc50515,_0xe42e49[_0x1f08c8(0x1be)],!![]);}}!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x1f08c8(0x19d)](_0x3bdf51[_0x1f08c8(0x125)][_0x1f08c8(0x173)]())&&(_0xe42e49['nqpoy'](_0xe42e49[_0x1f08c8(0x1d8)],_0xe42e49[_0x1f08c8(0x217)])?(_0x5c384d=_0xe42e49[_0x1f08c8(0x19c)],await _0xe42e49[_0x1f08c8(0x1a5)](reportToGalactusAndSendToEDS,_0x3bdf51,_0x2d5996,_0x5c384d,messageTypes[_0x1f08c8(0x19b)],_0xe42e49[_0x1f08c8(0x140)],_0xe42e49[_0x1f08c8(0x136)],_0xe42e49[_0x1f08c8(0x1be)]),logger[_0x1f08c8(0x141)](_0x5c384d),!_0x3bdf51[_0x1f08c8(0x125)]&&(_0xe42e49['nqpoy'](_0xe42e49['GhYzC'],_0xe42e49['KyzJD'])?(logger[_0x1f08c8(0x139)](_0x1f08c8(0x195)+DEFAULT_CLUSTER_DETAILS[_0x1f08c8(0x16b)]+'\x20'),_0x3bdf51['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x1f08c8(0x16b)]):_0x413a20+=_0x1f08c8(0x137)+_0x2cf504['clusterName']+'\x20'+(_0x3c1ac7?_0xe42e49['ARhuG']:_0xe42e49[_0x1f08c8(0x206)])+'\x0a\x0a')):_0x19129e=_0x5adacf),global_registry[_0x1f08c8(0x1ff)]=_0x3bdf51['clusterName'],global_registry[_0x1f08c8(0x125)]=_0x3bdf51[_0x1f08c8(0x125)],global_registry[_0x1f08c8(0x1ec)]=_0x3bdf51[_0x1f08c8(0x214)];}else _0x31f5cd+=_0xe42e49[_0x1f08c8(0x1f6)],_0x1844f6+=_0x1f08c8(0x201)+(_0x21e851['message']||_0xe42e49[_0x1f08c8(0x1fd)])+'\x0a',_0x4e9705+=_0x1f08c8(0x191)+(_0x2733ae[_0x1f08c8(0x1b5)]||_0xe42e49[_0x1f08c8(0x1fd)])+'\x0a',_0x519388+=_0x1f08c8(0x18e)+(_0x51c72b['stack']||_0xe42e49['QRyTa'])+'\x0a';}else{if(_0x3bdf51[_0x1f08c8(0x1d6)]){if(_0xe42e49[_0x1f08c8(0x1df)](_0xe42e49[_0x1f08c8(0x1ed)],_0xe42e49[_0x1f08c8(0x123)])){global_registry['gridProfile']=_0x3bdf51[_0x1f08c8(0x1d6)],logger['debug'](_0x1f08c8(0x148)+_0x3bdf51[_0x1f08c8(0x1d6)]);const _0x4c775e='https://'+AG_API_URL+_0x1f08c8(0x193),_0x470138={};_0x470138[_0x1f08c8(0x1dc)]=_0xe42e49[_0x1f08c8(0x1cb)],_0x470138[_0x1f08c8(0x16d)]=global_registry[_0x1f08c8(0x1fb)],_0x470138[_0x1f08c8(0x1d5)]=![];const _0x3bad49=_0x470138,_0x5975ce=await _0xe42e49[_0x1f08c8(0x1f0)](got,_0x4c775e,_0x3bad49),_0x51418a=await _0xe42e49[_0x1f08c8(0x1ce)](responseValidation,_0x5975ce,_0xe42e49[_0x1f08c8(0x21e)],_0xe42e49[_0x1f08c8(0x164)],_0x3bdf51,_0x2d5996);let _0x308be4={};if(_0xe42e49['qEmIP'](_0x51418a,0xc8)){if(_0xe42e49['pOZIj'](_0xe42e49[_0x1f08c8(0x1c7)],_0xe42e49[_0x1f08c8(0x1a6)])){const _0x720efb={};_0x720efb[_0x1f08c8(0x1f3)]=_0xe42e49[_0x1f08c8(0x198)],_0x720efb[_0x1f08c8(0x1fe)]=_0xe42e49[_0x1f08c8(0x149)];const _0x544bbf={};_0x544bbf[_0x1f08c8(0x1f3)]=_0xe42e49[_0x1f08c8(0x192)],_0x544bbf[_0x1f08c8(0x1fe)]=_0xe42e49[_0x1f08c8(0x149)];const _0x296d77={};_0x296d77[_0x1f08c8(0x1f3)]=_0xe42e49[_0x1f08c8(0x17e)],_0x296d77['type']=_0xe42e49[_0x1f08c8(0x149)];const _0x7d66a1={};_0x7d66a1[_0x1f08c8(0x1f3)]=_0xe42e49[_0x1f08c8(0x181)],_0x7d66a1['type']=_0xe42e49['GMuhv'];const _0x92bcd2={};return _0x92bcd2[_0x1f08c8(0x1af)]=_0x720efb,_0x92bcd2[_0x1f08c8(0x216)]=_0x544bbf,_0x92bcd2[_0x1f08c8(0x214)]=_0x296d77,_0x92bcd2['grid-profile']=_0x7d66a1,_0x23aeb3[_0x1f08c8(0x144)](_0x30d80a[_0x1f08c8(0x21b)])[_0x1f08c8(0x20c)](_0x27fc13)[_0x1f08c8(0x178)](_0x92bcd2)[_0x1f08c8(0x1d9)](_0xe42e49[_0x1f08c8(0x159)])[_0x1f08c8(0x219)];}else{const _0x43799a=JSON[_0x1f08c8(0x13d)](_0x5975ce['body']),_0x3eb271=_0x43799a[_0x1f08c8(0x204)](_0x4c8a47=>_0x4c8a47[_0x1f08c8(0x196)]===_0x3bdf51['gridProfile'])||null;_0xe42e49[_0x1f08c8(0x1d0)](isUndefined,_0x3eb271)?_0xe42e49[_0x1f08c8(0x19e)](_0xe42e49[_0x1f08c8(0x153)],_0xe42e49[_0x1f08c8(0x153)])?(_0x5c384d=_0x1f08c8(0x189)+_0x3bdf51[_0x1f08c8(0x1d6)]+_0x1f08c8(0x199),await _0xe42e49['rnbSM'](reportToGalactusAndSendToEDS,_0x3bdf51,_0x2d5996,_0x5c384d,messageTypes[_0x1f08c8(0x19b)],_0xe42e49[_0x1f08c8(0x140)],_0xe42e49['kSBJQ'],_0xe42e49[_0x1f08c8(0x1be)]),logger[_0x1f08c8(0x141)](_0x5c384d),process['exit'](0x1)):(_0x4ee43c[_0x1f08c8(0x139)](_0x1f08c8(0x195)+_0x229931[_0x1f08c8(0x16b)]+'\x20'),_0x5cdcbe[_0x1f08c8(0x125)]=_0x25e43a['CLOUD_PROVIDER']):_0xe42e49[_0x1f08c8(0x20e)](_0xe42e49[_0x1f08c8(0x210)],_0xe42e49[_0x1f08c8(0x182)])?_0x308be4=_0x3eb271:(_0x1c2571['error'](_0xe42e49[_0x1f08c8(0x13c)]),_0x5dc696[_0x1f08c8(0x197)](0x1));}}else _0xe42e49[_0x1f08c8(0x1e7)](_0xe42e49['KeWZw'],_0xe42e49[_0x1f08c8(0x190)])?process[_0x1f08c8(0x197)](0x1):_0xd319db[_0x1f08c8(0x20b)](_0xe42e49[_0x1f08c8(0x1a9)]);const _0x328376={};_0x328376[_0x1f08c8(0x1fe)]=WS_EVENTS[_0x1f08c8(0x1bd)],_0x328376['message']=_0xe42e49['aWLVo'],webSocketUtils[_0x1f08c8(0x19f)](_0x2d5996,_0x328376),global_registry[_0x1f08c8(0x125)]=_0x308be4[_0x1f08c8(0x125)],global_registry['clusterRegion']=_0x308be4['region'],global_registry[_0x1f08c8(0x1ff)]=_0x308be4[_0x1f08c8(0x1ff)];}else _0x492be[_0x1f08c8(0x139)]('Cluster\x20`'+_0x4f1dcf['clusterName']+_0x1f08c8(0x12b));}else _0xe42e49['cjqkI'](_0xe42e49[_0x1f08c8(0x1cf)],_0xe42e49[_0x1f08c8(0x1cf)])?(_0x5989e1[_0x1f08c8(0x139)]('['+_0x3f0282+_0x1f08c8(0x1f4)+_0xa828b7['status']+'\x20data\x20:\x20'+_0x5229c9[_0x1f08c8(0x1ca)]+_0x1f08c8(0x18c)+_0x33b5d9[_0x1f08c8(0x141)]),_0x9749f7[_0x1f08c8(0x141)]&&_0x3729b8[_0x1f08c8(0x141)](_0x1f08c8(0x15d)+_0x423b58[_0x1f08c8(0x141)][_0x1f08c8(0x1b9)])):(logger['error'](_0xe42e49[_0x1f08c8(0x13c)]),process[_0x1f08c8(0x197)](0x1));}}}catch(_0x321d29){_0xe42e49[_0x1f08c8(0x12c)](_0xe42e49[_0x1f08c8(0x1eb)],_0xe42e49['SDhXy'])?(_0x5c384d=_0x1f08c8(0x1a7)+_0x321d29+':\x20'+_0x321d29[_0x1f08c8(0x1b9)],logger['error'](_0x5c384d),await _0xe42e49[_0x1f08c8(0x1a5)](reportToGalactusAndSendToEDS,_0x3bdf51,_0x2d5996,_0x5c384d,messageTypes[_0x1f08c8(0x19b)],_0xe42e49[_0x1f08c8(0x140)],_0xe42e49[_0x1f08c8(0x136)],_0xe42e49[_0x1f08c8(0x1be)]),process[_0x1f08c8(0x197)](0x1)):_0x133a2e[_0x1f08c8(0x20b)](_0xe42e49[_0x1f08c8(0x208)]);}}function printResponse(_0x4863ce,_0x3e00a8){const _0x112bce=a17_0x4f986d,_0x460c33={};_0x460c33[_0x112bce(0x179)]=_0x112bce(0x216),_0x460c33[_0x112bce(0x142)]=function(_0x1e29e9,_0x5586e4){return _0x1e29e9===_0x5586e4;},_0x460c33['gclBh']='ECAMK';const _0x580bc1=_0x460c33;logger['info']('['+_0x4863ce+_0x112bce(0x1f4)+_0x3e00a8[_0x112bce(0x183)]+_0x112bce(0x18b)+_0x3e00a8[_0x112bce(0x1ca)]+_0x112bce(0x18c)+_0x3e00a8['error']),_0x3e00a8['error']&&(_0x580bc1[_0x112bce(0x142)](_0x580bc1[_0x112bce(0x1a0)],_0x580bc1[_0x112bce(0x1a0)])?logger[_0x112bce(0x141)](_0x112bce(0x15d)+_0x3e00a8[_0x112bce(0x141)][_0x112bce(0x1b9)]):_0x12c02e[_0x112bce(0x20b)](_0x580bc1['yMZir']));}async function generateReport(_0x1e5f76,_0x4c713f){const _0x2d718d=a17_0x4f986d,_0x2790fb={'umols':function(_0x3a19b3,_0x36fb31){return _0x3a19b3+_0x36fb31;},'xmAOL':_0x2d718d(0x167),'JIIKA':_0x2d718d(0x1ba),'pykTt':function(_0x1a1345,_0x52c3dc){return _0x1a1345||_0x52c3dc;},'uQizu':_0x2d718d(0x1d7),'PhfhW':_0x2d718d(0x132),'TdoND':_0x2d718d(0x1b2),'wtuTT':function(_0x50b558,_0x225f8f){return _0x50b558!=_0x225f8f;},'gvmen':_0x2d718d(0x14b),'wyGRl':_0x2d718d(0x20d),'lrpof':function(_0x755930){return _0x755930();}};let _0x20f5e8=_0x2d718d(0x1ea)+global_registry[_0x2d718d(0x125)]+_0x2d718d(0x166);return _0x1e5f76[_0x2d718d(0x176)]((_0x5dd8cc,_0x7133b1)=>{const _0x54d5a9=_0x2d718d,{header:_0x1544a9,response:_0x4bb083}=_0x5dd8cc,{status:_0x1d1f3a,data:_0x56ce5a,error:_0x32d700}=_0x4bb083;_0x20f5e8+=_0x1544a9+'\x20#'+_0x2790fb['umols'](_0x7133b1,0x1)+'\x0a',_0x20f5e8+=_0x54d5a9(0x158)+(_0x1d1f3a?_0x2790fb[_0x54d5a9(0x1e2)]:_0x2790fb[_0x54d5a9(0x186)])+'\x0a',_0x20f5e8+=_0x54d5a9(0x1ac)+_0x2790fb[_0x54d5a9(0x129)](_0x56ce5a,_0x2790fb[_0x54d5a9(0x1a2)])+'\x0a',_0x32d700&&(_0x20f5e8+=_0x2790fb[_0x54d5a9(0x1e6)],_0x20f5e8+='\x20\x20Message:\x20'+(_0x32d700['message']||_0x2790fb['uQizu'])+'\x0a',_0x20f5e8+=_0x54d5a9(0x191)+(_0x32d700['code']||_0x2790fb[_0x54d5a9(0x1a2)])+'\x0a',_0x20f5e8+='\x20\x20Stack:\x20'+(_0x32d700[_0x54d5a9(0x1b9)]||_0x2790fb[_0x54d5a9(0x1a2)])+'\x0a'),_0x20f5e8+='\x0a\x0a';}),_0x20f5e8+=_0x2790fb[_0x2d718d(0x168)],_0x2790fb[_0x2d718d(0x1de)](_0x4c713f,null)?_0x20f5e8+=_0x2d718d(0x137)+global_registry[_0x2d718d(0x1ff)]+'\x20'+(_0x4c713f?_0x2790fb['gvmen']:_0x2790fb['wyGRl'])+'\x0a\x0a':_0x20f5e8+=_0x2d718d(0x137)+global_registry[_0x2d718d(0x1ff)]+_0x2d718d(0x135),_0x20f5e8+=_0x2790fb[_0x2d718d(0x121)](getSystemMetaData),_0x20f5e8;};exports['handler']=async function(_0x39bbe6){const _0x1b3959=a17_0x4f986d,_0x505afa={'DWcjz':function(_0x341bab){return _0x341bab();},'pkXVn':_0x1b3959(0x15c),'TLDaT':function(_0x6dde4,_0x1a1fe7,_0x44d4ec,_0x57e5f9,_0x94cc55,_0x262e9c,_0x26e0be,_0xbd0fa4){return _0x6dde4(_0x1a1fe7,_0x44d4ec,_0x57e5f9,_0x94cc55,_0x262e9c,_0x26e0be,_0xbd0fa4);},'okyYB':_0x1b3959(0x1e4),'GBySQ':_0x1b3959(0x1e9),'HokRR':'error','TxLza':function(_0x35a77b,_0x26ef0b,_0x4cd25d,_0x206c89,_0x2023cb,_0x274413,_0x47233c){return _0x35a77b(_0x26ef0b,_0x4cd25d,_0x206c89,_0x2023cb,_0x274413,_0x47233c);},'vAZmb':function(_0x1021a1){return _0x1021a1();},'PDOni':_0x1b3959(0x145),'gKBwZ':_0x1b3959(0x14d),'bUafF':function(_0x362453,_0x52ebb9,_0x2ce061){return _0x362453(_0x52ebb9,_0x2ce061);},'UcgJT':function(_0x123629,_0x3ebb2f,_0x3f21a0){return _0x123629(_0x3ebb2f,_0x3f21a0);},'RnemT':function(_0x1aa111,_0x41cfc5,_0x3196c6,_0x1f387a,_0x3a7205,_0x14ac79,_0x168bc4){return _0x1aa111(_0x41cfc5,_0x3196c6,_0x1f387a,_0x3a7205,_0x14ac79,_0x168bc4);},'alXKC':_0x1b3959(0x20a),'OaHCL':function(_0x56f068,_0x435143,_0x274fee){return _0x56f068(_0x435143,_0x274fee);},'UHgdE':_0x1b3959(0x150),'YoZob':'2|0|1|3|4','WpLrR':function(_0x593193,_0x38e6c6,_0x3edbcf){return _0x593193(_0x38e6c6,_0x3edbcf);},'tOuHW':_0x1b3959(0x14c),'FacQF':function(_0x1028ce,_0xc036b5,_0xc52982){return _0x1028ce(_0xc036b5,_0xc52982);},'aeIBa':'isTrialGridAccessible','UWXSR':function(_0x2af7d2,_0x43443e){return _0x2af7d2(_0x43443e);},'OJATA':_0x1b3959(0x187),'VgYjV':function(_0x3919f5,_0x55678e,_0x33d898){return _0x3919f5(_0x55678e,_0x33d898);},'uiqoP':'isTls1_2_SUPPORTED','BgkPm':_0x1b3959(0x1b3),'yAuJM':_0x1b3959(0x1d4),'dlnSy':_0x1b3959(0x221),'KVYRX':_0x1b3959(0x1f5),'aXzRB':function(_0x37abee,_0xe54b09,_0x5d4896){return _0x37abee(_0xe54b09,_0x5d4896);},'OhKQX':function(_0x3679d3,_0x508f8b){return _0x3679d3+_0x508f8b;},'UoGWq':_0x1b3959(0x1b0),'yJgJT':function(_0x271d8f,_0x244667,_0xba8a55,_0x4e19bc,_0x16bd51,_0x3a43db,_0x441d1d){return _0x271d8f(_0x244667,_0xba8a55,_0x4e19bc,_0x16bd51,_0x3a43db,_0x441d1d);},'JeJUE':_0x1b3959(0x1ee)};let _0x3f7ec4,_0x1ae2e2;try{global_registry['requestId']=_0x505afa[_0x1b3959(0x16e)](uuidv4);!fs[_0x1b3959(0x1aa)](_0x505afa[_0x1b3959(0x16e)](getCredentialsPath))&&(_0x1ae2e2=_0x505afa[_0x1b3959(0x21d)],logger[_0x1b3959(0x141)](_0x1ae2e2),await _0x505afa[_0x1b3959(0x1a8)](reportToGalactusAndSendToEDS,_0x39bbe6,_0x3f7ec4,_0x1ae2e2,messageTypes[_0x1b3959(0x19b)],_0x505afa[_0x1b3959(0x1c8)],_0x505afa[_0x1b3959(0x220)],_0x505afa['HokRR']),process[_0x1b3959(0x197)](0x1));_0x505afa['TxLza'](sendInstrumentationEvent,_0x39bbe6,_0x505afa['okyYB'],messageTypes['INFO'],null,null,_0x39bbe6);const _0x1dc4a5=JSON[_0x1b3959(0x13d)](fs['readFileSync'](_0x505afa[_0x1b3959(0x1b7)](getCredentialsPath)));global_registry[_0x1b3959(0x1e1)]=_0x1dc4a5[_0x1b3959(0x1e3)][_0x1b3959(0x151)],global_registry['bstackAccesskey']=_0x1dc4a5[_0x1b3959(0x1e3)][_0x1b3959(0x207)];const _0x90010f=WS_ENDPOINT[_0x1b3959(0x13e)](_0x505afa[_0x1b3959(0x172)],_0x1dc4a5['Browserstack']['username'])[_0x1b3959(0x13e)](_0x505afa[_0x1b3959(0x165)],_0x1dc4a5[_0x1b3959(0x1e3)][_0x1b3959(0x207)]),_0x260778={};_0x260778[_0x1b3959(0x15b)]=ws,_0x260778[_0x1b3959(0x14a)]=0x36ee80,_0x3f7ec4=new ReconnectingWebSocket(_0x90010f,[],_0x260778),global_registry[_0x1b3959(0x1fb)]=_0x505afa['bUafF'](getAuthHeader,global_registry[_0x1b3959(0x1e1)],global_registry[_0x1b3959(0x17c)]),await _0x505afa['UcgJT'](inputValidation,_0x39bbe6,_0x3f7ec4),logger['info'](_0x1b3959(0x126)+global_registry['cloudProvider']+'\x20region\x20-\x20'+global_registry[_0x1b3959(0x1ec)]);let _0x30e8a8=await _0x505afa['RnemT'](getCloudProviderObjectWithOutInit,global_registry[_0x1b3959(0x125)],global_registry['clusterName'],_0x505afa[_0x1b3959(0x1ef)],_0x3f7ec4,webSocketUtils,_0x39bbe6);const _0x2d85c8=await _0x30e8a8['isCliToolInstalled']();_0x505afa['OaHCL'](printResponse,_0x505afa[_0x1b3959(0x21c)],_0x2d85c8),_0x30e8a8=await _0x30e8a8['init']();let _0x24415b=![];try{_0x24415b=await _0x30e8a8['isClusterPresent']();}catch(_0x3266ee){const _0xe0c112=_0x505afa[_0x1b3959(0x12a)][_0x1b3959(0x1ab)]('|');let _0x48d424=0x0;while(!![]){switch(_0xe0c112[_0x48d424++]){case'0':_0x24415b=null;continue;case'1':logger['error'](_0x1ae2e2);continue;case'2':_0x1ae2e2=_0x1b3959(0x1c3)+global_registry[_0x1b3959(0x1ff)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x1b3959(0x1ec)]+'`\x20,error\x20:\x20'+_0x3266ee;continue;case'3':_0x1ae2e2+='\x0a'+JSON[_0x1b3959(0x1c5)](_0x3266ee[_0x1b3959(0x1b9)]);continue;case'4':await _0x505afa[_0x1b3959(0x1a8)](reportToGalactusAndSendToEDS,_0x39bbe6,_0x3f7ec4,_0x1ae2e2,messageTypes[_0x1b3959(0x19b)],_0x505afa['okyYB'],_0x1b3959(0x200)+global_registry[_0x1b3959(0x125)],_0x505afa[_0x1b3959(0x21f)]);continue;}break;}}_0x24415b&&logger[_0x1b3959(0x139)](_0x1b3959(0x1bf)+global_registry[_0x1b3959(0x1ff)]+'`\x20already\x20exists');const _0x1afea2=await _0x30e8a8[_0x1b3959(0x16f)]();_0x505afa[_0x1b3959(0x1d3)](printResponse,_0x505afa[_0x1b3959(0x1a4)],_0x1afea2);const _0x4ad512=await _0x505afa[_0x1b3959(0x1b7)](curlRequest);_0x505afa[_0x1b3959(0x1cd)](printResponse,_0x505afa[_0x1b3959(0x1c1)],_0x4ad512);const _0x392f57=await _0x505afa[_0x1b3959(0x1f8)](isTlsSupported,_0x505afa['OJATA']);_0x505afa['VgYjV'](printResponse,_0x505afa[_0x1b3959(0x20f)],_0x392f57);const _0x12495e={};_0x12495e['header']=_0x505afa[_0x1b3959(0x1cc)],_0x12495e['response']=_0x2d85c8;const _0xf77ba6={};_0xf77ba6[_0x1b3959(0x1c4)]=_0x505afa['yAuJM'],_0xf77ba6['response']=_0x1afea2;const _0x39a28a={};_0x39a28a['header']=_0x505afa['dlnSy'],_0x39a28a[_0x1b3959(0x130)]=_0x4ad512;const _0x5a22c7={};_0x5a22c7[_0x1b3959(0x1c4)]=_0x505afa[_0x1b3959(0x1ad)],_0x5a22c7['response']=_0x392f57;const _0x52bd28=[_0x12495e,_0xf77ba6,_0x39a28a,_0x5a22c7],_0x36dd89=await _0x505afa[_0x1b3959(0x205)](generateReport,_0x52bd28,_0x24415b),_0x22b696=new Date(),_0x415310=_0x22b696[_0x1b3959(0x17d)]()+'_'+_0x505afa['OhKQX'](_0x22b696['getUTCMonth'](),0x1)+'_'+_0x22b696['getUTCDate']()+'_'+_0x22b696['getUTCHours']()+'_'+_0x22b696[_0x1b3959(0x161)](),_0x24f769=_0x1b3959(0x15e)+_0x415310+_0x1b3959(0x12d);fs[_0x1b3959(0x212)](_0x24f769,_0x36dd89,_0x505afa[_0x1b3959(0x203)]),logger[_0x1b3959(0x139)](_0x1b3959(0x143)+_0x24f769),process['exit'](0x0);}catch(_0x2afe24){let _0x29f49d=_0x1b3959(0x1b8)+_0x2afe24+'\x20';logger['error'](_0x29f49d),_0x29f49d+='\x0a'+JSON[_0x1b3959(0x1c5)](_0x2afe24[_0x1b3959(0x1b9)]),logger['debug'](_0x1b3959(0x1f7)+_0x2afe24['stack']);if(_0x3f7ec4){const _0x6f443={};_0x6f443[_0x1b3959(0x1fe)]=WS_EVENTS[_0x1b3959(0x1bd)],_0x6f443[_0x1b3959(0x17a)]=_0x29f49d,webSocketUtils[_0x1b3959(0x19f)](_0x3f7ec4,_0x6f443,_0x505afa[_0x1b3959(0x21f)],!![]);}await webSocketUtils[_0x1b3959(0x218)](0x7d0);const _0x53beb5={};_0x53beb5[_0x1b3959(0x141)]=_0x29f49d,await _0x505afa['yJgJT'](sendInstrumentationEvent,_0x39bbe6,_0x505afa[_0x1b3959(0x1c8)],messageTypes['ERROR'],_0x505afa[_0x1b3959(0x1b4)],_0x53beb5,_0x39bbe6),process[_0x1b3959(0x197)](0x1);}};function a17_0x51cc(){const _0x25c5f6=['zrsFE','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','TLDaT','nYuJt','existsSync','split','Message:\x20','KVYRX','136IOMMIQ','cluster-name','utf-8','ruhrn','Cluster\x20details\x0a-----------------------\x0a','Tool\x20Installed','JeJUE','code','EdcFY','vAZmb','Failed\x20in\x20pre-check!\x20Error:\x20','stack','Failure','7536859jbsyUi','rEzwv','LOG','VnDCY','Cluster\x20`','got','aeIBa','grid','unable\x20to\x20verify\x20if\x20cluster\x20`','header','stringify','reconnecting-websocket','KUhtK','okyYB','Knxfk','data','WIXAc','BgkPm','FacQF','fPTEP','ADhnh','OkGrM','oEVCV','NgiVR','WpLrR','User\x20Access','throwHttpErrors','gridProfile','N/A','EzTCE','help','763936XnRLst','cloud-provider-not-supported','method','Missing\x20required\x20arguments:\x20','wtuTT','TJOta','padZo','bstackUsername','xmAOL','Browserstack','pre-check-grid-called','YdCwi','PhfhW','RMCmY','BLgYY','credential-not-found','===\x20Precheck\x20Report\x20-\x20','FcrVf','clusterRegion','cWZMC','pre-check-failed','alXKC','zvkeg','grid-profile','vITQK','description',']\x20status\x20:\x20','SSL\x20Configured','ZCXpU','stack\x20trace\x20','UWXSR','../../config/constants','bllTr','authHeader','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','QRyTa','type','clusterName','cluster-check-failed-','\x20\x20Message:\x20','21064nTCYca','UoGWq','find','aXzRB','rXVuZ','password','pEktM','../../utils/utilityMethods','dummy-grid','push','epilogue','will\x20be\x20created','nqpoy','uiqoP','nGXUE','CqmcZ','writeFileSync','HFhdr','region','OCbTO','cloud-provider','MrsHp','delay','argv','../../config/logger','pre_check','UHgdE','pkXVn','xUDPU','HokRR','GBySQ','Whitelisted\x20browserstack','command','lrpof','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','UKztD','DwGkj','cloudProvider','Pre-check\x20running\x20for\x20Cloud\x20-\x20','../../utils/webSocketUtils','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','pykTt','YoZob','`\x20already\x20exists','smHnM','.txt','ZSARw','5491467xpayJP','response','join','Error\x20Details:\x0a','134110guijWP','xfQrD','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','rfHok','Cluster\x20','desc','info','cnggu','uuid','HYBCM','parse','replace','pre-check-cluster-args-not-passed','ZsbvL','error','KNpKX','Report\x20saved\x20in\x20','usage','<UsernamePlaceholder>','ACbMp','4ewRzYD','grid\x20profile\x20flow\x20','GMuhv','connectionTimeout','is\x20already\x20present','accessResp','<PasswordPlaceholder>','asxzH','JhAAh','toolInstalledResp','username','DjDhU','hjIry','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','builder','24rZxQCi','Status:\x20','AvKrr','Jpmzx','WebSocket','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','error\x20stack\x20:\x20','log/report_','pre-check','194106VYbGnD','getUTCMinutes','vJSUe','10xGAMCH','rrEqi','gKBwZ','\x20===\x0a\x0a','Success','TdoND','string','.\x20Please\x20provide\x20all\x20required\x20arguments.','CLOUD_PROVIDER','21PCiEKE','headers','DWcjz','checkAccess','GET','nHTvB','PDOni','toLowerCase','joeeI','jqmUW','forEach','EPRiA','options','yMZir','message','4171692jiEbqq','bstackAccesskey','getUTCFullYear','sXQbI','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','CDwIf','tfJhv','wigQE','status','kFdKi','oVSLR','JIIKA','TLSv1_2_client_method','../../cloudproviders/utils','Invalid\x20input.\x20grid\x20profiles:\x20','HmBTU','\x20data\x20:\x20','\x20error\x20:\x20','HsLKt','\x20\x20Stack:\x20','kUspl','HosOR','\x20\x20Code:\x20','uICkL','/packages/cli/get-all-grid-profiles','gWKKG','Setting\x20cloud\x20provider\x20as\x20','name','exit','EKhNM','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','qEmIP','ERROR','zguYj','includes','SsVZE','sendEventToBackend','gclBh','KvcQo','uQizu','dCkCk','tOuHW','rnbSM'];a17_0x51cc=function(){return _0x25c5f6;};return a17_0x51cc();}
@@ -1 +1 @@
1
- const a18_0x24f13a=a18_0xf649;(function(_0x28e647,_0x489062){const _0xe2d904=a18_0xf649,_0x27bd63=_0x28e647();while(!![]){try{const _0x297988=-parseInt(_0xe2d904(0x98))/0x1*(parseInt(_0xe2d904(0xa7))/0x2)+parseInt(_0xe2d904(0xaa))/0x3+-parseInt(_0xe2d904(0x99))/0x4+parseInt(_0xe2d904(0xa0))/0x5+-parseInt(_0xe2d904(0xa2))/0x6*(-parseInt(_0xe2d904(0xa5))/0x7)+-parseInt(_0xe2d904(0x9d))/0x8*(parseInt(_0xe2d904(0xae))/0x9)+parseInt(_0xe2d904(0xa8))/0xa;if(_0x297988===_0x489062)break;else _0x27bd63['push'](_0x27bd63['shift']());}catch(_0x1f5698){_0x27bd63['push'](_0x27bd63['shift']());}}}(a18_0x4a8a,0xc91f8));function a18_0x4a8a(){const _0x5aa446=['usage','72583BldrUZ','command','1007224DZXCuM','12091970aGFnfK','help','2095803yQSMpZ','builder','start_commands','demandCommand','4854510MPcwxv','3VjISLa','2017048gSyjeg','../config/constants','start','desc','16ZNeWol','handler','TkCuU','5849955cKAfgP','recommendCommands','486szvpic','DScFy'];a18_0x4a8a=function(){return _0x5aa446;};return a18_0x4a8a();}function a18_0xf649(_0x15a1bc,_0x20cacd){const _0x4a8af0=a18_0x4a8a();return a18_0xf649=function(_0xf6494e,_0xe31e2d){_0xf6494e=_0xf6494e-0x98;let _0x1a1d76=_0x4a8af0[_0xf6494e];return _0x1a1d76;},a18_0xf649(_0x15a1bc,_0x20cacd);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x24f13a(0x9a));exports[a18_0x24f13a(0xa6)]=a18_0x24f13a(0x9b),exports[a18_0x24f13a(0x9c)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a18_0x24f13a(0xab)]=function(_0x4b85c6){const _0x55a3f6=a18_0x24f13a,_0x42d1ac={};_0x42d1ac[_0x55a3f6(0x9f)]=_0x55a3f6(0xac),_0x42d1ac['DScFy']='help';const _0x310fff=_0x42d1ac;return _0x4b85c6[_0x55a3f6(0xa4)](HELP_HEADER_MESSAGE[_0x55a3f6(0x9b)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x310fff[_0x55a3f6(0x9f)])[_0x55a3f6(0xad)]()[_0x55a3f6(0xa1)]()['strict']()[_0x55a3f6(0xa9)](_0x310fff[_0x55a3f6(0xa3)]);},exports[a18_0x24f13a(0x9e)]=function(_0x1cf9b1){};
1
+ const a18_0x237a61=a18_0x3d8a;function a18_0x3d8a(_0x27bace,_0x24dedc){const _0x5c4695=a18_0x5c46();return a18_0x3d8a=function(_0x3d8afc,_0x2d7b27){_0x3d8afc=_0x3d8afc-0x129;let _0x1e5bbe=_0x5c4695[_0x3d8afc];return _0x1e5bbe;},a18_0x3d8a(_0x27bace,_0x24dedc);}(function(_0x5ec327,_0x55a3fe){const _0x75073c=a18_0x3d8a,_0x468e7f=_0x5ec327();while(!![]){try{const _0x7b5043=parseInt(_0x75073c(0x12a))/0x1+parseInt(_0x75073c(0x138))/0x2*(-parseInt(_0x75073c(0x134))/0x3)+parseInt(_0x75073c(0x13e))/0x4+parseInt(_0x75073c(0x137))/0x5*(parseInt(_0x75073c(0x135))/0x6)+parseInt(_0x75073c(0x130))/0x7+parseInt(_0x75073c(0x133))/0x8*(-parseInt(_0x75073c(0x12f))/0x9)+-parseInt(_0x75073c(0x131))/0xa;if(_0x7b5043===_0x55a3fe)break;else _0x468e7f['push'](_0x468e7f['shift']());}catch(_0x1b62af){_0x468e7f['push'](_0x468e7f['shift']());}}}(a18_0x5c46,0x3031b));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']='start',exports[a18_0x237a61(0x13c)]=a18_0x237a61(0x139),exports[a18_0x237a61(0x136)]=function(_0x46db55){const _0x2f3ad6=a18_0x237a61,_0x45684b={};_0x45684b['MiAtF']=_0x2f3ad6(0x132),_0x45684b[_0x2f3ad6(0x12d)]=_0x2f3ad6(0x129);const _0x4b782b=_0x45684b;return _0x46db55['usage'](HELP_HEADER_MESSAGE[_0x2f3ad6(0x12e)])[_0x2f3ad6(0x13a)](HELP_FOOTER_MESSAGE)['commandDir'](_0x4b782b[_0x2f3ad6(0x13b)])[_0x2f3ad6(0x13d)]()[_0x2f3ad6(0x13f)]()[_0x2f3ad6(0x12c)]()['help'](_0x4b782b[_0x2f3ad6(0x12d)]);},exports[a18_0x237a61(0x12b)]=function(_0x37e0e3){};function a18_0x5c46(){const _0x241eef=['329645PIVfkY','2578uhOXoe','Start\x20an\x20existing\x20Automation\x20grid.','epilogue','MiAtF','desc','demandCommand','696248HFEijS','recommendCommands','help','380234dFAoTC','handler','strict','xJnuB','start','207CtSnWN','942242giPaCi','2503500lwIDWW','start_commands','127632ghjZTC','321yOELIf','24GsZCZr','builder'];a18_0x5c46=function(){return _0x241eef;};return a18_0x5c46();}
@@ -1 +1 @@
1
- function a19_0x2045(_0xd9703c,_0x233058){const _0x22f3ef=a19_0x22f3();return a19_0x2045=function(_0x20458f,_0x3f607c){_0x20458f=_0x20458f-0x9a;let _0x3e25c1=_0x22f3ef[_0x20458f];return _0x3e25c1;},a19_0x2045(_0xd9703c,_0x233058);}const a19_0x15aead=a19_0x2045;(function(_0x4f43e6,_0x911cd5){const _0x5a8eea=a19_0x2045,_0x2810df=_0x4f43e6();while(!![]){try{const _0x662188=parseInt(_0x5a8eea(0xdf))/0x1+-parseInt(_0x5a8eea(0xdd))/0x2*(parseInt(_0x5a8eea(0xcb))/0x3)+parseInt(_0x5a8eea(0xac))/0x4*(-parseInt(_0x5a8eea(0xaa))/0x5)+-parseInt(_0x5a8eea(0xe1))/0x6+parseInt(_0x5a8eea(0xc9))/0x7+-parseInt(_0x5a8eea(0xbb))/0x8*(-parseInt(_0x5a8eea(0xd5))/0x9)+parseInt(_0x5a8eea(0xf5))/0xa;if(_0x662188===_0x911cd5)break;else _0x2810df['push'](_0x2810df['shift']());}catch(_0x4d0bb9){_0x2810df['push'](_0x2810df['shift']());}}}(a19_0x22f3,0x708fc));function a19_0x22f3(){const _0x99cb60=['Browserstack','tHFSJ','name','username','siRBg','options','KmmrD','Grid\x20started','usage','boolean','argv','fvYla','stack','start','error','11592240iLRVcw','unauthorised','WrcNF','ckMZl','password','type','string','debug','handler','skipTlsCertVerify','<PasswordPlaceholder>','parse','Skip\x20insecure\x20cert\x20verification.','ERROR','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','clusterName','grid-id','14245lJoNHN','region','800QYWhaK','grid','default','connectionTimeout','gridId','kiYqS','Start\x20an\x20existing\x20Automation\x20grid.','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','LIQZt','XFxYS','JTnXh','xgYbI','info','init-not-called','builder','8RaKJir','dqrob','SYOBC','start-grid-called','INFO','gsixa','<UsernamePlaceholder>','omAdr','help','stringify','../../utils/gridComponents','../../utils/createk8sClient','skip-tls-cert-verify','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','4616451zfIefI','description','380331RolOqU','BxCyq','user','../../config/logger','epilogue','../../utils/webSocketUtils','LlrAc','cloudProvider','yFQsw','clusterRegion','4083093rQULxj','bstackAccesskey','Adding\x20Websocket\x20listeners','vYMOG','addListeners','ELrCL','reconnecting-websocket','XZcYg','14juuFia','../../cloudproviders/utils','475193BnHOih','exit','4975776OHjDuZ','ICZQw','statusCode','existsSync','replace'];a19_0x22f3=function(){return _0x99cb60;};return a19_0x22f3();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x15aead(0xdb)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x15aead(0xce)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x15aead(0xc5)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x15aead(0xd0)),{createK8sClient}=require(a19_0x15aead(0xc6)),{getCloudProviderObject}=require(a19_0x15aead(0xde));exports['command']=a19_0x15aead(0xad),exports['desc']=a19_0x15aead(0xb2),exports[a19_0x15aead(0xba)]=function(_0x24337c){const _0x28965e=a19_0x15aead,_0x55b38b={};_0x55b38b[_0x28965e(0xc2)]='Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.',_0x55b38b[_0x28965e(0xd8)]=_0x28965e(0x9f),_0x55b38b['WrcNF']=_0x28965e(0xa5),_0x55b38b['LIQZt']=_0x28965e(0xef),_0x55b38b[_0x28965e(0xc0)]='help';const _0x26fd15=_0x55b38b,_0x284c46={};_0x284c46[_0x28965e(0xca)]=_0x26fd15[_0x28965e(0xc2)],_0x284c46[_0x28965e(0x9e)]=_0x26fd15['vYMOG'];const _0x57548d={};_0x57548d[_0x28965e(0xca)]=_0x26fd15[_0x28965e(0x9b)],_0x57548d[_0x28965e(0x9e)]=_0x26fd15[_0x28965e(0xb4)],_0x57548d[_0x28965e(0xae)]=![];const _0x2ecbbe={};return _0x2ecbbe[_0x28965e(0xa9)]=_0x284c46,_0x2ecbbe[_0x28965e(0xc7)]=_0x57548d,_0x24337c[_0x28965e(0xee)](HELP_HEADER_MESSAGE[_0x28965e(0xf3)])[_0x28965e(0xcf)](HELP_FOOTER_MESSAGE)[_0x28965e(0xeb)](_0x2ecbbe)[_0x28965e(0xc3)](_0x26fd15[_0x28965e(0xc0)])[_0x28965e(0xf0)];},exports[a19_0x15aead(0xa1)]=async function(_0x36bd7e){const _0x305c3e=a19_0x15aead,_0x35560a={'ELrCL':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','BxCyq':function(_0x4aefae){return _0x4aefae();},'plvgc':_0x305c3e(0xc8),'xgYbI':function(_0xf8b12a,_0xd848ce,_0x12d90b,_0x148f78,_0x14bbe7,_0x3e52a8,_0x2da03d){return _0xf8b12a(_0xd848ce,_0x12d90b,_0x148f78,_0x14bbe7,_0x3e52a8,_0x2da03d);},'LlrAc':_0x305c3e(0xbe),'yFQsw':_0x305c3e(0xb9),'eLedR':function(_0x212930,_0x5f53b7,_0x2b0edf,_0x18375c,_0x3e4f35,_0xda909b,_0x146d89){return _0x212930(_0x5f53b7,_0x2b0edf,_0x18375c,_0x3e4f35,_0xda909b,_0x146d89);},'kiYqS':_0x305c3e(0xc1),'JTnXh':_0x305c3e(0xa3),'fvYla':_0x305c3e(0xd7),'dqrob':function(_0x14d2aa,_0x342ecd,_0x301d14,_0x4fba1c){return _0x14d2aa(_0x342ecd,_0x301d14,_0x4fba1c);},'XFxYS':function(_0x480b60,_0x38750c,_0xec193d,_0x513463,_0x3eb034,_0x2c4a60,_0x4c0810){return _0x480b60(_0x38750c,_0xec193d,_0x513463,_0x3eb034,_0x2c4a60,_0x4c0810);},'KmmrD':function(_0x4fe7d0,_0x37a014,_0x46c247){return _0x4fe7d0(_0x37a014,_0x46c247);},'tHFSJ':function(_0x93bead,_0x20ab72,_0x5c56d1){return _0x93bead(_0x20ab72,_0x5c56d1);},'rloLD':_0x305c3e(0xed),'ICZQw':function(_0x31a069,_0x231ccc){return _0x31a069===_0x231ccc;},'siRBg':_0x305c3e(0xa7),'XZcYg':function(_0x382be4,_0x184d7a,_0x43824b,_0x292cbe,_0x148997,_0x2a8d3f,_0x4a8c6a){return _0x382be4(_0x184d7a,_0x43824b,_0x292cbe,_0x148997,_0x2a8d3f,_0x4a8c6a);},'SYOBC':_0x305c3e(0x9a),'ckMZl':'invalid-grid-id','cnVRf':'server-error'};let _0x10b488;try{!_0x36bd7e[_0x305c3e(0xb0)]&&(logger[_0x305c3e(0xf4)](_0x35560a[_0x305c3e(0xda)]),process[_0x305c3e(0xe0)](0x1));!fs[_0x305c3e(0xe4)](_0x35560a[_0x305c3e(0xcc)](getCredentialsPath))&&(logger[_0x305c3e(0xf4)](_0x35560a['plvgc']),await _0x35560a[_0x305c3e(0xb7)](sendInstrumentationEvent,_0x36bd7e,_0x35560a[_0x305c3e(0xd1)],messageTypes[_0x305c3e(0xa6)],_0x35560a[_0x305c3e(0xd3)],null,_0x36bd7e),process[_0x305c3e(0xe0)](0x1));logger[_0x305c3e(0xb8)]('Starting\x20grid\x20'+_0x36bd7e[_0x305c3e(0xb0)]),await _0x35560a['eLedR'](sendInstrumentationEvent,_0x36bd7e,_0x35560a[_0x305c3e(0xd1)],messageTypes[_0x305c3e(0xbf)],null,null,_0x36bd7e);const _0x275ec1=JSON['parse'](fs['readFileSync'](_0x35560a[_0x305c3e(0xcc)](getCredentialsPath)));global_registry['bstackUsername']=_0x275ec1['Browserstack']['username'],global_registry[_0x305c3e(0xd6)]=_0x275ec1['Browserstack'][_0x305c3e(0x9d)];const _0x42eb45=WS_ENDPOINT[_0x305c3e(0xe5)](_0x35560a[_0x305c3e(0xb1)],_0x275ec1['Browserstack'][_0x305c3e(0xe9)])[_0x305c3e(0xe5)](_0x35560a[_0x305c3e(0xb6)],_0x275ec1[_0x305c3e(0xe6)][_0x305c3e(0x9d)]),_0x412de7={};_0x412de7['WebSocket']=ws,_0x412de7[_0x305c3e(0xaf)]=0x36ee80,_0x10b488=new ReconnectingWebSocket(_0x42eb45,[],_0x412de7),logger[_0x305c3e(0xa0)](_0x35560a[_0x305c3e(0xf1)]),webSocketUtils[_0x305c3e(0xd9)](_0x10b488,_0x36bd7e[_0x305c3e(0xcd)],_0x36bd7e[_0x305c3e(0x9d)]);const [_0x1a44c0,_0x5f1114]=await _0x35560a[_0x305c3e(0xbc)](getGridDetails,_0x275ec1[_0x305c3e(0xe6)][_0x305c3e(0xe9)],_0x275ec1[_0x305c3e(0xe6)][_0x305c3e(0x9d)],_0x36bd7e[_0x305c3e(0xb0)]);if(_0x5f1114){const _0x436912=_0x5f1114[_0x305c3e(0xb8)];global_registry[_0x305c3e(0xd2)]=_0x436912[_0x305c3e(0xd2)],global_registry[_0x305c3e(0xd4)]=_0x436912[_0x305c3e(0xab)],global_registry[_0x305c3e(0xa8)]=_0x436912[_0x305c3e(0xa8)];const _0x319a99=await _0x35560a[_0x305c3e(0xb5)](getCloudProviderObject,_0x436912[_0x305c3e(0xd2)],_0x436912[_0x305c3e(0xa8)],_0x436912['name'],_0x10b488,webSocketUtils,_0x36bd7e),[_0x110a3f,_0x1e7991,_0x29b5fb,_0x202f57,_0xc6329a,_0xf2c914]=await _0x35560a[_0x305c3e(0xec)](createK8sClient,_0x319a99,_0x36bd7e[_0x305c3e(0xa2)]);await _0x35560a[_0x305c3e(0xe7)](scaleUpHubDeployment,_0x1e7991,_0x436912[_0x305c3e(0xe8)]),logger[_0x305c3e(0xb8)](_0x35560a['rloLD']),process['exit'](0x0);}_0x35560a[_0x305c3e(0xe2)](_0x1a44c0[_0x305c3e(0xe3)],0x191)&&(logger[_0x305c3e(0xf4)](_0x35560a[_0x305c3e(0xea)]),await _0x35560a[_0x305c3e(0xdc)](sendInstrumentationEvent,_0x36bd7e,_0x35560a[_0x305c3e(0xd1)],messageTypes[_0x305c3e(0xa6)],_0x35560a[_0x305c3e(0xbd)],null,_0x36bd7e),process[_0x305c3e(0xe0)](0x1)),_0x35560a[_0x305c3e(0xe2)](_0x1a44c0[_0x305c3e(0xe3)],0x190)&&(logger[_0x305c3e(0xf4)](JSON[_0x305c3e(0xa4)](_0x1a44c0['body'])['message']),await _0x35560a[_0x305c3e(0xb7)](sendInstrumentationEvent,_0x36bd7e,_0x35560a[_0x305c3e(0xd1)],messageTypes[_0x305c3e(0xa6)],_0x35560a[_0x305c3e(0x9c)],null,_0x36bd7e),process['exit'](0x1)),logger[_0x305c3e(0xf4)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x305c3e(0xc4)](_0x1a44c0)),await _0x35560a[_0x305c3e(0xb7)](sendInstrumentationEvent,_0x36bd7e,_0x35560a[_0x305c3e(0xd1)],messageTypes[_0x305c3e(0xa6)],_0x35560a['cnVRf'],_0x1a44c0,_0x36bd7e),process[_0x305c3e(0xe0)](0x1);}catch(_0x3ee04c){const _0x1fa712=_0x305c3e(0xb3)+_0x3ee04c+'\x20\x0a'+JSON[_0x305c3e(0xc4)](_0x3ee04c[_0x305c3e(0xf2)])+'\x20';logger[_0x305c3e(0xf4)](_0x1fa712),process[_0x305c3e(0xe0)](0x1);}};
1
+ const a19_0x1f1b52=a19_0x43d8;(function(_0x2e301a,_0x2df42d){const _0x4b4224=a19_0x43d8,_0x4e0c2a=_0x2e301a();while(!![]){try{const _0x3d16e8=-parseInt(_0x4b4224(0x139))/0x1*(-parseInt(_0x4b4224(0x10f))/0x2)+-parseInt(_0x4b4224(0x121))/0x3+-parseInt(_0x4b4224(0x129))/0x4*(-parseInt(_0x4b4224(0x11d))/0x5)+-parseInt(_0x4b4224(0x11b))/0x6*(-parseInt(_0x4b4224(0x113))/0x7)+parseInt(_0x4b4224(0x116))/0x8+-parseInt(_0x4b4224(0x109))/0x9+-parseInt(_0x4b4224(0x138))/0xa*(parseInt(_0x4b4224(0x115))/0xb);if(_0x3d16e8===_0x2df42d)break;else _0x4e0c2a['push'](_0x4e0c2a['shift']());}catch(_0x59c9f5){_0x4e0c2a['push'](_0x4e0c2a['shift']());}}}(a19_0x1335,0x97456));function a19_0x1335(){const _0x1b6814=['readFileSync','jxOaA','error','start-grid-called','INFO','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','iLKBB','username','message','help','cloudProvider','../../utils/gridComponents','Start\x20an\x20existing\x20Automation\x20grid.','UOIpM','AvCbB','vGIrG','HZKtp','handler','name','gridId','KnMjR','<PasswordPlaceholder>','../../utils/webSocketUtils','aZkCn','xlveG','lwsAa','password','user','../../config/constants','saFkD','Grid\x20started','nXlhW','existsSync','debug','epilogue','replace','parse','clusterRegion','eFoBa','type','info','init-not-called','jkqgj','6061176lazewn','bstackAccesskey','../../utils/instrumentationUtils','stringify','exit','desc','630GMzOfv','grid','jKbqd','description','24983GXgyzL','default','1243DXZyiN','2590416HYgWTQ','jIWeP','body','statusCode','connectionTimeout','1338PquIQy','grid-id','5787445irMTYc','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','hMLTe','ERROR','1366602YxJCvk','stack','Skip\x20insecure\x20cert\x20verification.','Starting\x20grid\x20','zVMwg','../../cloudproviders/utils','RMhcb','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','4JBTsPO','server-error','invalid-grid-id','BGBtr','reconnecting-websocket','region','argv','clusterName','uIoFf','addListeners','skip-tls-cert-verify','sxGBj','bstackUsername','Browserstack','opBRe','63530zriHUb','601XKJhar','usage','boolean','unauthorised','skipTlsCertVerify','string','start'];a19_0x1335=function(){return _0x1b6814;};return a19_0x1335();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x1f1b52(0x12d)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x1f1b52(0x15d)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x1f1b52(0x14c)),{sendInstrumentationEvent}=require(a19_0x1f1b52(0x10b)),webSocketUtils=require(a19_0x1f1b52(0x157)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0x1f1b52(0x126));function a19_0x43d8(_0x10449c,_0x2c711b){const _0x1335f9=a19_0x1335();return a19_0x43d8=function(_0x43d8c5,_0x29684d){_0x43d8c5=_0x43d8c5-0x108;let _0x1f97bd=_0x1335f9[_0x43d8c5];return _0x1f97bd;},a19_0x43d8(_0x10449c,_0x2c711b);}exports['command']=a19_0x1f1b52(0x110),exports[a19_0x1f1b52(0x10e)]=a19_0x1f1b52(0x14d),exports['builder']=function(_0x178d2d){const _0x367f89=a19_0x1f1b52,_0x5453b1={};_0x5453b1[_0x367f89(0x11f)]=_0x367f89(0x146),_0x5453b1[_0x367f89(0x160)]=_0x367f89(0x13e),_0x5453b1[_0x367f89(0x131)]=_0x367f89(0x123),_0x5453b1['sxGBj']=_0x367f89(0x13b),_0x5453b1[_0x367f89(0x137)]=_0x367f89(0x14a);const _0x1e89ce=_0x5453b1,_0x48b1b6={};_0x48b1b6[_0x367f89(0x112)]=_0x1e89ce[_0x367f89(0x11f)],_0x48b1b6[_0x367f89(0x168)]=_0x1e89ce['nXlhW'];const _0x5dd25f={};_0x5dd25f['description']=_0x1e89ce[_0x367f89(0x131)],_0x5dd25f['type']=_0x1e89ce[_0x367f89(0x134)],_0x5dd25f[_0x367f89(0x114)]=![];const _0x47df58={};return _0x47df58[_0x367f89(0x11c)]=_0x48b1b6,_0x47df58[_0x367f89(0x133)]=_0x5dd25f,_0x178d2d[_0x367f89(0x13a)](HELP_HEADER_MESSAGE[_0x367f89(0x13f)])[_0x367f89(0x163)](HELP_FOOTER_MESSAGE)['options'](_0x47df58)[_0x367f89(0x14a)](_0x1e89ce[_0x367f89(0x137)])[_0x367f89(0x12f)];},exports[a19_0x1f1b52(0x152)]=async function(_0x1bf9ea){const _0x5cfd46=a19_0x1f1b52,_0x228451={'RJsGr':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','lwsAa':function(_0x5be318){return _0x5be318();},'jIWeP':_0x5cfd46(0x11e),'RMhcb':function(_0x2a04f7,_0xcc4239,_0x2ff57c,_0x9c005f,_0x56c4e2,_0x1d5469,_0x546d07){return _0x2a04f7(_0xcc4239,_0x2ff57c,_0x9c005f,_0x56c4e2,_0x1d5469,_0x546d07);},'HZKtp':_0x5cfd46(0x143),'aZkCn':_0x5cfd46(0x16a),'TvIWi':function(_0x5ea815){return _0x5ea815();},'YjNmg':'<UsernamePlaceholder>','xlveG':_0x5cfd46(0x156),'zVMwg':'Adding\x20Websocket\x20listeners','KnMjR':function(_0xab85a2,_0x200a0a,_0x10116a,_0xbcd4c2){return _0xab85a2(_0x200a0a,_0x10116a,_0xbcd4c2);},'UOIpM':function(_0x4d0e4b,_0xf4f83f,_0x47a37a,_0x5f561e,_0x12a030,_0xa10993,_0x4bc3b7){return _0x4d0e4b(_0xf4f83f,_0x47a37a,_0x5f561e,_0x12a030,_0xa10993,_0x4bc3b7);},'iLKBB':function(_0x42460d,_0x103b36,_0x25527c){return _0x42460d(_0x103b36,_0x25527c);},'jKbqd':function(_0x984307,_0x1a9a89,_0x1354fc){return _0x984307(_0x1a9a89,_0x1354fc);},'BGBtr':_0x5cfd46(0x15f),'jxOaA':function(_0x1fa647,_0x4f1ba6){return _0x1fa647===_0x4f1ba6;},'YGpXL':_0x5cfd46(0x145),'vGIrG':function(_0x4e7d10,_0x342b33,_0x5f2817,_0x1c83d2,_0x444588,_0x592d9c,_0x51e425){return _0x4e7d10(_0x342b33,_0x5f2817,_0x1c83d2,_0x444588,_0x592d9c,_0x51e425);},'saFkD':_0x5cfd46(0x13c),'jkqgj':_0x5cfd46(0x12b),'eFoBa':function(_0x54bc15,_0x7c142f,_0x35c55f,_0x145c8c,_0x30eea3,_0x151afe,_0x505acb){return _0x54bc15(_0x7c142f,_0x35c55f,_0x145c8c,_0x30eea3,_0x151afe,_0x505acb);},'AvCbB':_0x5cfd46(0x12a)};let _0x10dd10;try{!_0x1bf9ea['gridId']&&(logger[_0x5cfd46(0x142)](_0x228451['RJsGr']),process['exit'](0x1));!fs[_0x5cfd46(0x161)](_0x228451[_0x5cfd46(0x15a)](getCredentialsPath))&&(logger[_0x5cfd46(0x142)](_0x228451[_0x5cfd46(0x117)]),await _0x228451[_0x5cfd46(0x127)](sendInstrumentationEvent,_0x1bf9ea,_0x228451[_0x5cfd46(0x151)],messageTypes[_0x5cfd46(0x120)],_0x228451[_0x5cfd46(0x158)],null,_0x1bf9ea),process['exit'](0x1));logger[_0x5cfd46(0x169)](_0x5cfd46(0x124)+_0x1bf9ea[_0x5cfd46(0x154)]),await _0x228451[_0x5cfd46(0x127)](sendInstrumentationEvent,_0x1bf9ea,_0x228451['HZKtp'],messageTypes[_0x5cfd46(0x144)],null,null,_0x1bf9ea);const _0x4e3867=JSON[_0x5cfd46(0x165)](fs[_0x5cfd46(0x140)](_0x228451['TvIWi'](getCredentialsPath)));global_registry[_0x5cfd46(0x135)]=_0x4e3867[_0x5cfd46(0x136)]['username'],global_registry[_0x5cfd46(0x10a)]=_0x4e3867[_0x5cfd46(0x136)][_0x5cfd46(0x15b)];const _0x102617=WS_ENDPOINT[_0x5cfd46(0x164)](_0x228451['YjNmg'],_0x4e3867[_0x5cfd46(0x136)][_0x5cfd46(0x148)])[_0x5cfd46(0x164)](_0x228451[_0x5cfd46(0x159)],_0x4e3867[_0x5cfd46(0x136)]['password']),_0x26004f={};_0x26004f['WebSocket']=ws,_0x26004f[_0x5cfd46(0x11a)]=0x36ee80,_0x10dd10=new ReconnectingWebSocket(_0x102617,[],_0x26004f),logger[_0x5cfd46(0x162)](_0x228451[_0x5cfd46(0x125)]),webSocketUtils[_0x5cfd46(0x132)](_0x10dd10,_0x1bf9ea[_0x5cfd46(0x15c)],_0x1bf9ea[_0x5cfd46(0x15b)]);const [_0x16603c,_0x4d43d9]=await _0x228451[_0x5cfd46(0x155)](getGridDetails,_0x4e3867[_0x5cfd46(0x136)][_0x5cfd46(0x148)],_0x4e3867['Browserstack'][_0x5cfd46(0x15b)],_0x1bf9ea[_0x5cfd46(0x154)]);if(_0x4d43d9){const _0x614d6f=_0x4d43d9['info'];global_registry['cloudProvider']=_0x614d6f[_0x5cfd46(0x14b)],global_registry[_0x5cfd46(0x166)]=_0x614d6f[_0x5cfd46(0x12e)],global_registry[_0x5cfd46(0x130)]=_0x614d6f[_0x5cfd46(0x130)];const _0x28d502=await _0x228451['UOIpM'](getCloudProviderObject,_0x614d6f['cloudProvider'],_0x614d6f[_0x5cfd46(0x130)],_0x614d6f[_0x5cfd46(0x153)],_0x10dd10,webSocketUtils,_0x1bf9ea),[_0x2d02ab,_0x3c208d,_0x500bfa,_0x1bda17,_0x11aa65,_0xf6e2dc]=await _0x228451[_0x5cfd46(0x147)](createK8sClient,_0x28d502,_0x1bf9ea[_0x5cfd46(0x13d)]);await _0x228451[_0x5cfd46(0x111)](scaleUpHubDeployment,_0x3c208d,_0x614d6f[_0x5cfd46(0x153)]),logger[_0x5cfd46(0x169)](_0x228451[_0x5cfd46(0x12c)]),process[_0x5cfd46(0x10d)](0x0);}_0x228451['jxOaA'](_0x16603c[_0x5cfd46(0x119)],0x191)&&(logger['error'](_0x228451['YGpXL']),await _0x228451[_0x5cfd46(0x150)](sendInstrumentationEvent,_0x1bf9ea,_0x228451[_0x5cfd46(0x151)],messageTypes['ERROR'],_0x228451[_0x5cfd46(0x15e)],null,_0x1bf9ea),process['exit'](0x1)),_0x228451[_0x5cfd46(0x141)](_0x16603c['statusCode'],0x190)&&(logger[_0x5cfd46(0x142)](JSON[_0x5cfd46(0x165)](_0x16603c[_0x5cfd46(0x118)])[_0x5cfd46(0x149)]),await _0x228451[_0x5cfd46(0x14e)](sendInstrumentationEvent,_0x1bf9ea,_0x228451['HZKtp'],messageTypes['ERROR'],_0x228451[_0x5cfd46(0x108)],null,_0x1bf9ea),process[_0x5cfd46(0x10d)](0x1)),logger[_0x5cfd46(0x142)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x5cfd46(0x10c)](_0x16603c)),await _0x228451[_0x5cfd46(0x167)](sendInstrumentationEvent,_0x1bf9ea,_0x228451['HZKtp'],messageTypes[_0x5cfd46(0x120)],_0x228451[_0x5cfd46(0x14f)],_0x16603c,_0x1bf9ea),process[_0x5cfd46(0x10d)](0x1);}catch(_0x3ce5e2){const _0x393caa=_0x5cfd46(0x128)+_0x3ce5e2+'\x20\x0a'+JSON[_0x5cfd46(0x10c)](_0x3ce5e2[_0x5cfd46(0x122)])+'\x20';logger[_0x5cfd46(0x142)](_0x393caa),process[_0x5cfd46(0x10d)](0x1);}};
@@ -1 +1 @@
1
- function a20_0x4431(){const _0x481613=['Stop\x20a\x20running\x20Automation\x20grid.','121164UJUEPz','20ewHYOO','4345648JVdRiB','165glniXh','stop_commands','14659191vCRjsK','strict','handler','builder','1849378WjhBvc','desc','recommendCommands','40516CtoFqd','296525kVCZWD','../config/constants','10343578uAqrfn','96hNYvDP','command','usage','help','commandDir','atihC','demandCommand','epilogue','ZfrFT'];a20_0x4431=function(){return _0x481613;};return a20_0x4431();}const a20_0x8e69b=a20_0x5a56;(function(_0x44d072,_0x1b38cd){const _0x3cb365=a20_0x5a56,_0x156c68=_0x44d072();while(!![]){try{const _0x522176=-parseInt(_0x3cb365(0x145))/0x1+-parseInt(_0x3cb365(0x141))/0x2+-parseInt(_0x3cb365(0x148))/0x3*(-parseInt(_0x3cb365(0x144))/0x4)+parseInt(_0x3cb365(0x13b))/0x5*(-parseInt(_0x3cb365(0x138))/0x6)+-parseInt(_0x3cb365(0x147))/0x7+parseInt(_0x3cb365(0x13a))/0x8+-parseInt(_0x3cb365(0x13d))/0x9*(-parseInt(_0x3cb365(0x139))/0xa);if(_0x522176===_0x1b38cd)break;else _0x156c68['push'](_0x156c68['shift']());}catch(_0x5f934){_0x156c68['push'](_0x156c68['shift']());}}}(a20_0x4431,0xb976e));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x8e69b(0x146));function a20_0x5a56(_0x4479e6,_0x1bd3f7){const _0x4431aa=a20_0x4431();return a20_0x5a56=function(_0x5a5687,_0x1f03c8){_0x5a5687=_0x5a5687-0x137;let _0x4b64f0=_0x4431aa[_0x5a5687];return _0x4b64f0;},a20_0x5a56(_0x4479e6,_0x1bd3f7);}exports[a20_0x8e69b(0x149)]='stop',exports[a20_0x8e69b(0x142)]=a20_0x8e69b(0x137),exports[a20_0x8e69b(0x140)]=function(_0x187ebd){const _0x57c303=a20_0x8e69b,_0x1ba2aa={};_0x1ba2aa[_0x57c303(0x150)]=_0x57c303(0x13c),_0x1ba2aa[_0x57c303(0x14d)]=_0x57c303(0x14b);const _0x4d89e9=_0x1ba2aa;return _0x187ebd[_0x57c303(0x14a)](HELP_HEADER_MESSAGE['stop'])[_0x57c303(0x14f)](HELP_FOOTER_MESSAGE)[_0x57c303(0x14c)](_0x4d89e9[_0x57c303(0x150)])[_0x57c303(0x14e)]()[_0x57c303(0x143)]()[_0x57c303(0x13e)]()[_0x57c303(0x14b)](_0x4d89e9[_0x57c303(0x14d)]);},exports[a20_0x8e69b(0x13f)]=function(_0x31892e){};
1
+ function a20_0x5849(){const _0x200a66=['../config/constants','397432bClNMe','5741262ZLjeBC','epilogue','qfbDt','RPPZz','331510hImkxn','commandDir','recommendCommands','desc','18siUOCI','878565CdLzPr','341XvWpJG','255828VVdKOW','demandCommand','3704jqBtvd','24SpcaOM','stop','command','29049096ewqxIo','handler','1wjfMyt','strict','2667kYZmKj'];a20_0x5849=function(){return _0x200a66;};return a20_0x5849();}const a20_0x36fe24=a20_0x38cb;(function(_0x348779,_0x3bf6c8){const _0x35773f=a20_0x38cb,_0x31c78f=_0x348779();while(!![]){try{const _0x5eaf4c=-parseInt(_0x35773f(0x84))/0x1*(-parseInt(_0x35773f(0x94))/0x2)+-parseInt(_0x35773f(0x97))/0x3*(-parseInt(_0x35773f(0x88))/0x4)+-parseInt(_0x35773f(0x92))/0x5*(-parseInt(_0x35773f(0x91))/0x6)+-parseInt(_0x35773f(0x86))/0x7*(parseInt(_0x35773f(0x96))/0x8)+parseInt(_0x35773f(0x89))/0x9+-parseInt(_0x35773f(0x8d))/0xa*(-parseInt(_0x35773f(0x93))/0xb)+-parseInt(_0x35773f(0x82))/0xc;if(_0x5eaf4c===_0x3bf6c8)break;else _0x31c78f['push'](_0x31c78f['shift']());}catch(_0x4b0766){_0x31c78f['push'](_0x31c78f['shift']());}}}(a20_0x5849,0x7e8d3));function a20_0x38cb(_0x2f2fa6,_0x388dca){const _0x58494f=a20_0x5849();return a20_0x38cb=function(_0x38cbf8,_0x3ac909){_0x38cbf8=_0x38cbf8-0x80;let _0x1b24b5=_0x58494f[_0x38cbf8];return _0x1b24b5;},a20_0x38cb(_0x2f2fa6,_0x388dca);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x36fe24(0x87));exports[a20_0x36fe24(0x81)]=a20_0x36fe24(0x80),exports[a20_0x36fe24(0x90)]='Stop\x20a\x20running\x20Automation\x20grid.',exports['builder']=function(_0xbdbf61){const _0x45f1bd=a20_0x36fe24,_0xf5063d={};_0xf5063d[_0x45f1bd(0x8b)]='stop_commands',_0xf5063d[_0x45f1bd(0x8c)]='help';const _0x49be8e=_0xf5063d;return _0xbdbf61['usage'](HELP_HEADER_MESSAGE[_0x45f1bd(0x80)])[_0x45f1bd(0x8a)](HELP_FOOTER_MESSAGE)[_0x45f1bd(0x8e)](_0x49be8e[_0x45f1bd(0x8b)])[_0x45f1bd(0x95)]()[_0x45f1bd(0x8f)]()[_0x45f1bd(0x85)]()['help'](_0x49be8e[_0x45f1bd(0x8c)]);},exports[a20_0x36fe24(0x83)]=function(_0x46bb78){};
@@ -1 +1 @@
1
- const a21_0x26547d=a21_0xcbc4;(function(_0x530949,_0x340d02){const _0x5a7e7c=a21_0xcbc4,_0x55288e=_0x530949();while(!![]){try{const _0x4606f4=parseInt(_0x5a7e7c(0x23f))/0x1+-parseInt(_0x5a7e7c(0x206))/0x2+parseInt(_0x5a7e7c(0x21b))/0x3*(-parseInt(_0x5a7e7c(0x249))/0x4)+-parseInt(_0x5a7e7c(0x200))/0x5*(-parseInt(_0x5a7e7c(0x248))/0x6)+-parseInt(_0x5a7e7c(0x209))/0x7*(-parseInt(_0x5a7e7c(0x1fe))/0x8)+parseInt(_0x5a7e7c(0x224))/0x9*(-parseInt(_0x5a7e7c(0x240))/0xa)+-parseInt(_0x5a7e7c(0x1ee))/0xb*(parseInt(_0x5a7e7c(0x236))/0xc);if(_0x4606f4===_0x340d02)break;else _0x55288e['push'](_0x55288e['shift']());}catch(_0x2e599c){_0x55288e['push'](_0x55288e['shift']());}}}(a21_0x4175,0x421f1));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x26547d(0x243)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x26547d(0x1f5)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x26547d(0x205)),{scaleDownHubDeployment}=require(a21_0x26547d(0x21a)),{sendInstrumentationEvent}=require(a21_0x26547d(0x1f9)),webSocketUtils=require(a21_0x26547d(0x231)),{createK8sClient}=require(a21_0x26547d(0x220)),{getCloudProviderObject}=require(a21_0x26547d(0x235));exports['command']=a21_0x26547d(0x207),exports[a21_0x26547d(0x202)]=a21_0x26547d(0x1fd),exports[a21_0x26547d(0x1f1)]=function(_0x1cdc7c){const _0x1b6950=a21_0x26547d,_0x2a6d43={};_0x2a6d43['kqhoW']='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x2a6d43['ZsxCm']=_0x1b6950(0x20d),_0x2a6d43[_0x1b6950(0x234)]='Skip\x20insecure\x20cert\x20verification.',_0x2a6d43['mDTvs']='boolean',_0x2a6d43['BNria']='help';const _0x22639e=_0x2a6d43,_0x484f28={};_0x484f28[_0x1b6950(0x1fa)]=_0x22639e[_0x1b6950(0x239)],_0x484f28['type']=_0x22639e['ZsxCm'];const _0x5ad98f={};_0x5ad98f[_0x1b6950(0x1fa)]=_0x22639e[_0x1b6950(0x234)],_0x5ad98f['type']=_0x22639e[_0x1b6950(0x241)],_0x5ad98f[_0x1b6950(0x1f7)]=![];const _0x4c3a42={};return _0x4c3a42['grid-id']=_0x484f28,_0x4c3a42[_0x1b6950(0x23a)]=_0x5ad98f,_0x1cdc7c[_0x1b6950(0x226)](HELP_HEADER_MESSAGE[_0x1b6950(0x222)])[_0x1b6950(0x21c)](HELP_FOOTER_MESSAGE)[_0x1b6950(0x23c)](_0x4c3a42)[_0x1b6950(0x1f6)](_0x22639e[_0x1b6950(0x225)])[_0x1b6950(0x229)];},exports['handler']=async function(_0x4d1713){const _0x2ec0d9=a21_0x26547d,_0x18b5fd={'mPbQh':_0x2ec0d9(0x22e),'tPrCd':function(_0x163ddc){return _0x163ddc();},'MJnch':_0x2ec0d9(0x22c),'UCTze':function(_0x44b402,_0x38ec5a,_0x385af5,_0x5ad794,_0x21f39b,_0x255a30,_0xf10ba1){return _0x44b402(_0x38ec5a,_0x385af5,_0x5ad794,_0x21f39b,_0x255a30,_0xf10ba1);},'WDuwj':_0x2ec0d9(0x211),'JrOnq':_0x2ec0d9(0x223),'qMbxD':function(_0x1899a0,_0x3f260a,_0x5d5f7d,_0x118a32,_0x2514ad,_0x52e4ef,_0x1598d4){return _0x1899a0(_0x3f260a,_0x5d5f7d,_0x118a32,_0x2514ad,_0x52e4ef,_0x1598d4);},'ZEfNS':function(_0x35874f){return _0x35874f();},'Zssts':_0x2ec0d9(0x20c),'tOKbZ':_0x2ec0d9(0x216),'vlDfn':'Adding\x20Websocket\x20listeners','hjZQl':function(_0xfcebf0,_0x2b5130,_0xc1710b,_0x51610c){return _0xfcebf0(_0x2b5130,_0xc1710b,_0x51610c);},'bhewm':function(_0x4c9f19,_0x2d7361,_0xbf52bd,_0x96ee13,_0x11219a,_0x1be4e9,_0x294586){return _0x4c9f19(_0x2d7361,_0xbf52bd,_0x96ee13,_0x11219a,_0x1be4e9,_0x294586);},'oMDXg':function(_0x17d219,_0x154899,_0x55b809){return _0x17d219(_0x154899,_0x55b809);},'ZatWX':'Grid\x20stoppped.','xuFVn':function(_0x483064,_0x2f29c1){return _0x483064===_0x2f29c1;},'xATit':_0x2ec0d9(0x1fc),'QsHNT':function(_0x2043ef,_0x443b44,_0x423d01,_0x3cd647,_0x129f86,_0x18f116,_0x14653f){return _0x2043ef(_0x443b44,_0x423d01,_0x3cd647,_0x129f86,_0x18f116,_0x14653f);},'gmTFO':_0x2ec0d9(0x242),'nRNiZ':_0x2ec0d9(0x20f),'kIOUf':function(_0x16be15,_0x141d21,_0xdd55e6,_0x5421db,_0xfde604,_0x1971e7,_0x319c16){return _0x16be15(_0x141d21,_0xdd55e6,_0x5421db,_0xfde604,_0x1971e7,_0x319c16);},'cuCZC':_0x2ec0d9(0x21f)};let _0x213728;try{!_0x4d1713['gridId']&&(logger[_0x2ec0d9(0x1ff)](_0x18b5fd[_0x2ec0d9(0x213)]),process[_0x2ec0d9(0x1f2)](0x1));!fs[_0x2ec0d9(0x23d)](_0x18b5fd[_0x2ec0d9(0x23e)](getCredentialsPath))&&(logger[_0x2ec0d9(0x1ff)](_0x18b5fd[_0x2ec0d9(0x21e)]),await _0x18b5fd[_0x2ec0d9(0x237)](sendInstrumentationEvent,_0x4d1713,_0x18b5fd[_0x2ec0d9(0x21d)],messageTypes[_0x2ec0d9(0x228)],_0x18b5fd[_0x2ec0d9(0x1f3)],null,_0x4d1713),process[_0x2ec0d9(0x1f2)](0x1));logger[_0x2ec0d9(0x217)](_0x2ec0d9(0x247)+_0x4d1713[_0x2ec0d9(0x246)]),await _0x18b5fd['qMbxD'](sendInstrumentationEvent,_0x4d1713,_0x18b5fd['WDuwj'],messageTypes[_0x2ec0d9(0x1fb)],null,null,_0x4d1713);const _0x139667=JSON['parse'](fs[_0x2ec0d9(0x215)](_0x18b5fd[_0x2ec0d9(0x212)](getCredentialsPath)));global_registry[_0x2ec0d9(0x233)]=_0x139667[_0x2ec0d9(0x219)][_0x2ec0d9(0x20a)],global_registry['bstackAccesskey']=_0x139667['Browserstack'][_0x2ec0d9(0x208)];const _0x42dd28=WS_ENDPOINT[_0x2ec0d9(0x214)](_0x18b5fd[_0x2ec0d9(0x1f4)],_0x139667['Browserstack'][_0x2ec0d9(0x20a)])[_0x2ec0d9(0x214)](_0x18b5fd[_0x2ec0d9(0x24a)],_0x139667[_0x2ec0d9(0x219)][_0x2ec0d9(0x208)]),_0x3c5846={};_0x3c5846['WebSocket']=ws,_0x3c5846['connectionTimeout']=0x36ee80,_0x213728=new ReconnectingWebSocket(_0x42dd28,[],_0x3c5846),logger[_0x2ec0d9(0x1ed)](_0x18b5fd[_0x2ec0d9(0x1f8)]),webSocketUtils['addListeners'](_0x213728,_0x4d1713[_0x2ec0d9(0x238)],_0x4d1713['password']);const [_0x4c63c7,_0x31a63d]=await _0x18b5fd[_0x2ec0d9(0x210)](getGridDetails,_0x139667['Browserstack'][_0x2ec0d9(0x20a)],_0x139667[_0x2ec0d9(0x219)][_0x2ec0d9(0x208)],_0x4d1713[_0x2ec0d9(0x246)]);if(_0x31a63d){const _0x124892=_0x31a63d[_0x2ec0d9(0x217)];global_registry[_0x2ec0d9(0x1ef)]=_0x124892[_0x2ec0d9(0x1ef)],global_registry[_0x2ec0d9(0x245)]=_0x124892['region'],global_registry[_0x2ec0d9(0x20e)]=_0x124892[_0x2ec0d9(0x20e)];const _0x300878=await _0x18b5fd[_0x2ec0d9(0x22a)](getCloudProviderObject,_0x124892[_0x2ec0d9(0x1ef)],_0x124892[_0x2ec0d9(0x20e)],_0x124892[_0x2ec0d9(0x244)],_0x213728,webSocketUtils,_0x4d1713),[_0x5ddaaf,_0x2c31b8,_0x8685e8,_0x1928ac,_0x5a35ed,_0x12d02c]=await _0x18b5fd[_0x2ec0d9(0x23b)](createK8sClient,_0x300878,_0x4d1713[_0x2ec0d9(0x221)]);await _0x18b5fd[_0x2ec0d9(0x23b)](scaleDownHubDeployment,_0x2c31b8,_0x124892[_0x2ec0d9(0x244)]),logger['info'](_0x18b5fd[_0x2ec0d9(0x1f0)]),process[_0x2ec0d9(0x1f2)](0x0);}_0x18b5fd['xuFVn'](_0x4c63c7[_0x2ec0d9(0x22b)],0x191)&&(logger[_0x2ec0d9(0x1ff)](_0x18b5fd[_0x2ec0d9(0x1ec)]),await _0x18b5fd[_0x2ec0d9(0x204)](sendInstrumentationEvent,_0x4d1713,_0x18b5fd[_0x2ec0d9(0x21d)],messageTypes[_0x2ec0d9(0x228)],_0x18b5fd['gmTFO'],null,_0x4d1713),process[_0x2ec0d9(0x1f2)](0x1)),_0x18b5fd[_0x2ec0d9(0x22d)](_0x4c63c7[_0x2ec0d9(0x22b)],0x190)&&(logger[_0x2ec0d9(0x1ff)](JSON[_0x2ec0d9(0x20b)](_0x4c63c7['body'])[_0x2ec0d9(0x201)]),await _0x18b5fd[_0x2ec0d9(0x232)](sendInstrumentationEvent,_0x4d1713,_0x18b5fd[_0x2ec0d9(0x21d)],messageTypes[_0x2ec0d9(0x228)],_0x18b5fd[_0x2ec0d9(0x230)],null,_0x4d1713),process[_0x2ec0d9(0x1f2)](0x1)),logger[_0x2ec0d9(0x1ff)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x2ec0d9(0x227)](_0x4c63c7)),await _0x18b5fd[_0x2ec0d9(0x218)](sendInstrumentationEvent,_0x4d1713,_0x18b5fd[_0x2ec0d9(0x21d)],messageTypes[_0x2ec0d9(0x228)],_0x18b5fd[_0x2ec0d9(0x22f)],_0x4c63c7,_0x4d1713),process[_0x2ec0d9(0x1f2)](0x1);}catch(_0x5bfde5){const _0x20c3c6=_0x2ec0d9(0x203)+_0x5bfde5+'\x20\x0a'+JSON[_0x2ec0d9(0x227)](_0x5bfde5['stack'])+'\x20';logger[_0x2ec0d9(0x1ff)](_0x20c3c6),process['exit'](0x1);}};function a21_0xcbc4(_0x4674ed,_0x422e8b){const _0x4175a0=a21_0x4175();return a21_0xcbc4=function(_0xcbc45d,_0x26dab7){_0xcbc45d=_0xcbc45d-0x1ec;let _0x687cc2=_0x4175a0[_0xcbc45d];return _0x687cc2;},a21_0xcbc4(_0x4674ed,_0x422e8b);}function a21_0x4175(){const _0x2bc10=['vlDfn','../../utils/instrumentationUtils','description','INFO','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Stop\x20a\x20running\x20Automation\x20grid.','8WtlaAF','error','5inFPLY','message','desc','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','QsHNT','../../utils/utilityMethods','25492DlwNRO','grid','password','2430211ZDmfSp','username','parse','<UsernamePlaceholder>','string','clusterName','invalid-grid-id','hjZQl','stop-grid-called','ZEfNS','mPbQh','replace','readFileSync','<PasswordPlaceholder>','info','kIOUf','Browserstack','../../utils/gridComponents','123tmYIrt','epilogue','WDuwj','MJnch','server-error','../../utils/createk8sClient','skipTlsCertVerify','stop','init-not-called','1989qlBhmm','BNria','usage','stringify','ERROR','argv','bhewm','statusCode','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','xuFVn','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','cuCZC','nRNiZ','../../utils/webSocketUtils','qMbxD','bstackUsername','OMlHw','../../cloudproviders/utils','396EQlBeb','UCTze','user','kqhoW','skip-tls-cert-verify','oMDXg','options','existsSync','tPrCd','120948egaJAI','2020zBLXDc','mDTvs','unauthorised','reconnecting-websocket','name','clusterRegion','gridId','Stopping\x20grid\x20','2165586dknTdt','3328epPicg','tOKbZ','xATit','debug','155573JHlmlM','cloudProvider','ZatWX','builder','exit','JrOnq','Zssts','../../config/constants','help','default'];a21_0x4175=function(){return _0x2bc10;};return a21_0x4175();}
1
+ function a21_0x3f99(){const _0x1f8d6c=['gUeEg','CaWMa','8rqyeDd','5068452OwCbFc','fyRDY','ZEidY','help','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','../../config/logger','addListeners','1250204iUhDUC','kVmRt','region','bstackAccesskey','bstackUsername','info','Browserstack','replace','TtYIq','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','options','../../utils/instrumentationUtils','Stop\x20a\x20running\x20Automation\x20grid.','grid','usage','clusterName','25358040PMFcKm','statusCode','1835082wKnxxp','error','IpjvU','<PasswordPlaceholder>','gridId','NhtiI','default','type','invalid-grid-id','password','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','grid-id','user','name','CfQtw','stop','<UsernamePlaceholder>','AgwMr','message','WebSocket','ERROR','stringify','init-not-called','../../utils/utilityMethods','argv','description','DOVin','IWfGI','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','../../config/constants','534331uSGmiM','debug','builder','parse','clusterRegion','../../utils/createk8sClient','LvVAl','1718787ugOfLV','exit','Adding\x20Websocket\x20listeners','WwiYq','epilogue','../../utils/webSocketUtils','YWXoJ','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','CHfFz','wyFEy','existsSync','skipTlsCertVerify','reconnecting-websocket','cloudProvider','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','2209055ymfWGT','string','sKreq','../../utils/gridComponents','NpJun','stop-grid-called','handler','readFileSync','jZYlV','inItf','unauthorised','username','Stopping\x20grid\x20','nfPfW','stack','boolean'];a21_0x3f99=function(){return _0x1f8d6c;};return a21_0x3f99();}function a21_0x1c0a(_0x3eedd3,_0xb4f3ee){const _0x3f9907=a21_0x3f99();return a21_0x1c0a=function(_0x1c0a0a,_0x33fd2e){_0x1c0a0a=_0x1c0a0a-0x17d;let _0x4784dd=_0x3f9907[_0x1c0a0a];return _0x4784dd;},a21_0x1c0a(_0x3eedd3,_0xb4f3ee);}const a21_0x2a26ad=a21_0x1c0a;(function(_0x3fccb4,_0x5a3479){const _0x54492f=a21_0x1c0a,_0x3ecb1f=_0x3fccb4();while(!![]){try{const _0x28b5e0=parseInt(_0x54492f(0x1a5))/0x1+parseInt(_0x54492f(0x1d5))/0x2+parseInt(_0x54492f(0x187))/0x3+-parseInt(_0x54492f(0x1cd))/0x4*(-parseInt(_0x54492f(0x1bb))/0x5)+parseInt(_0x54492f(0x1ce))/0x6+parseInt(_0x54492f(0x1ac))/0x7+-parseInt(_0x54492f(0x185))/0x8;if(_0x28b5e0===_0x5a3479)break;else _0x3ecb1f['push'](_0x3ecb1f['shift']());}catch(_0x4f18c6){_0x3ecb1f['push'](_0x3ecb1f['shift']());}}}(a21_0x3f99,0x8c72d));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x2a26ad(0x1b8)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x2a26ad(0x1a4)),{logger}=require(a21_0x2a26ad(0x1d3)),{getCredentialsPath,getGridDetails}=require(a21_0x2a26ad(0x19e)),{scaleDownHubDeployment}=require(a21_0x2a26ad(0x1be)),{sendInstrumentationEvent}=require(a21_0x2a26ad(0x180)),webSocketUtils=require(a21_0x2a26ad(0x1b1)),{createK8sClient}=require(a21_0x2a26ad(0x1aa)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports['command']=a21_0x2a26ad(0x182),exports['desc']=a21_0x2a26ad(0x181),exports[a21_0x2a26ad(0x1a7)]=function(_0x3f6560){const _0x2c60e7=a21_0x2a26ad,_0x191dfc={};_0x191dfc[_0x2c60e7(0x1c8)]=_0x2c60e7(0x1a3),_0x191dfc[_0x2c60e7(0x1a1)]=_0x2c60e7(0x1bc),_0x191dfc[_0x2c60e7(0x1bd)]='Skip\x20insecure\x20cert\x20verification.',_0x191dfc[_0x2c60e7(0x1cb)]=_0x2c60e7(0x1ca),_0x191dfc['WwiYq']=_0x2c60e7(0x1d1);const _0x114c28=_0x191dfc,_0x4b41f3={};_0x4b41f3[_0x2c60e7(0x1a0)]=_0x114c28['nfPfW'],_0x4b41f3[_0x2c60e7(0x18e)]=_0x114c28[_0x2c60e7(0x1a1)];const _0xb2d253={};_0xb2d253[_0x2c60e7(0x1a0)]=_0x114c28[_0x2c60e7(0x1bd)],_0xb2d253['type']=_0x114c28[_0x2c60e7(0x1cb)],_0xb2d253[_0x2c60e7(0x18d)]=![];const _0x211dfa={};return _0x211dfa[_0x2c60e7(0x192)]=_0x4b41f3,_0x211dfa['skip-tls-cert-verify']=_0xb2d253,_0x3f6560[_0x2c60e7(0x183)](HELP_HEADER_MESSAGE[_0x2c60e7(0x196)])[_0x2c60e7(0x1b0)](HELP_FOOTER_MESSAGE)[_0x2c60e7(0x17f)](_0x211dfa)[_0x2c60e7(0x1d1)](_0x114c28[_0x2c60e7(0x1af)])[_0x2c60e7(0x19f)];},exports[a21_0x2a26ad(0x1c1)]=async function(_0x4e4c10){const _0x59aaad=a21_0x2a26ad,_0x586a5={'CHfFz':_0x59aaad(0x1b3),'AgwMr':function(_0x143063){return _0x143063();},'TtYIq':_0x59aaad(0x1ba),'IWfGI':function(_0x4abf06,_0x267743,_0x191d62,_0x13a08e,_0x8e90d3,_0x336cf8,_0x33b7fe){return _0x4abf06(_0x267743,_0x191d62,_0x13a08e,_0x8e90d3,_0x336cf8,_0x33b7fe);},'inItf':_0x59aaad(0x1c0),'fyRDY':_0x59aaad(0x19d),'SGmDD':function(_0x18db97,_0xa617cb,_0x4c50e0,_0xe2bf92,_0x583d8c,_0xed29f0,_0x265ec6){return _0x18db97(_0xa617cb,_0x4c50e0,_0xe2bf92,_0x583d8c,_0xed29f0,_0x265ec6);},'IpjvU':_0x59aaad(0x197),'NhtiI':_0x59aaad(0x18a),'wyFEy':_0x59aaad(0x1ae),'WVYyo':function(_0x23699d,_0x3f4b53,_0x5d4719,_0x37b258){return _0x23699d(_0x3f4b53,_0x5d4719,_0x37b258);},'CaWMa':function(_0x4f64ab,_0x2b2465,_0x3a018b){return _0x4f64ab(_0x2b2465,_0x3a018b);},'kVmRt':'Grid\x20stoppped.','LvVAl':function(_0x252905,_0x6cbefa){return _0x252905===_0x6cbefa;},'YWXoJ':_0x59aaad(0x17e),'CfQtw':_0x59aaad(0x1c5),'NpJun':function(_0x12b46b,_0x1f6d09,_0x3a2a3d,_0x3de154,_0x15ce54,_0x28ef18,_0x29f366){return _0x12b46b(_0x1f6d09,_0x3a2a3d,_0x3de154,_0x15ce54,_0x28ef18,_0x29f366);},'jZYlV':_0x59aaad(0x18f),'ZEidY':'server-error'};let _0x259eb6;try{!_0x4e4c10[_0x59aaad(0x18b)]&&(logger[_0x59aaad(0x188)](_0x586a5[_0x59aaad(0x1b4)]),process[_0x59aaad(0x1ad)](0x1));!fs[_0x59aaad(0x1b6)](_0x586a5['AgwMr'](getCredentialsPath))&&(logger[_0x59aaad(0x188)](_0x586a5[_0x59aaad(0x17d)]),await _0x586a5[_0x59aaad(0x1a2)](sendInstrumentationEvent,_0x4e4c10,_0x586a5[_0x59aaad(0x1c4)],messageTypes[_0x59aaad(0x19b)],_0x586a5[_0x59aaad(0x1cf)],null,_0x4e4c10),process[_0x59aaad(0x1ad)](0x1));logger[_0x59aaad(0x1da)](_0x59aaad(0x1c7)+_0x4e4c10[_0x59aaad(0x18b)]),await _0x586a5['SGmDD'](sendInstrumentationEvent,_0x4e4c10,_0x586a5['inItf'],messageTypes['INFO'],null,null,_0x4e4c10);const _0x4cf23c=JSON[_0x59aaad(0x1a8)](fs[_0x59aaad(0x1c2)](_0x586a5[_0x59aaad(0x198)](getCredentialsPath)));global_registry[_0x59aaad(0x1d9)]=_0x4cf23c[_0x59aaad(0x1db)][_0x59aaad(0x1c6)],global_registry[_0x59aaad(0x1d8)]=_0x4cf23c[_0x59aaad(0x1db)][_0x59aaad(0x190)];const _0x2eb3b0=WS_ENDPOINT[_0x59aaad(0x1dc)](_0x586a5[_0x59aaad(0x189)],_0x4cf23c[_0x59aaad(0x1db)][_0x59aaad(0x1c6)])[_0x59aaad(0x1dc)](_0x586a5[_0x59aaad(0x18c)],_0x4cf23c[_0x59aaad(0x1db)][_0x59aaad(0x190)]),_0x1b6f96={};_0x1b6f96[_0x59aaad(0x19a)]=ws,_0x1b6f96['connectionTimeout']=0x36ee80,_0x259eb6=new ReconnectingWebSocket(_0x2eb3b0,[],_0x1b6f96),logger[_0x59aaad(0x1a6)](_0x586a5[_0x59aaad(0x1b5)]),webSocketUtils[_0x59aaad(0x1d4)](_0x259eb6,_0x4e4c10[_0x59aaad(0x193)],_0x4e4c10[_0x59aaad(0x190)]);const [_0x34cf8b,_0xe081cb]=await _0x586a5['WVYyo'](getGridDetails,_0x4cf23c[_0x59aaad(0x1db)]['username'],_0x4cf23c[_0x59aaad(0x1db)][_0x59aaad(0x190)],_0x4e4c10[_0x59aaad(0x18b)]);if(_0xe081cb){const _0x197109=_0xe081cb[_0x59aaad(0x1da)];global_registry['cloudProvider']=_0x197109[_0x59aaad(0x1b9)],global_registry[_0x59aaad(0x1a9)]=_0x197109[_0x59aaad(0x1d7)],global_registry[_0x59aaad(0x184)]=_0x197109[_0x59aaad(0x184)];const _0x763ad8=await _0x586a5[_0x59aaad(0x1a2)](getCloudProviderObject,_0x197109[_0x59aaad(0x1b9)],_0x197109[_0x59aaad(0x184)],_0x197109['name'],_0x259eb6,webSocketUtils,_0x4e4c10),[_0xa811ce,_0x51fe58,_0x281e26,_0x41fb13,_0x79162b,_0x59d441]=await _0x586a5['CaWMa'](createK8sClient,_0x763ad8,_0x4e4c10[_0x59aaad(0x1b7)]);await _0x586a5[_0x59aaad(0x1cc)](scaleDownHubDeployment,_0x51fe58,_0x197109[_0x59aaad(0x194)]),logger[_0x59aaad(0x1da)](_0x586a5[_0x59aaad(0x1d6)]),process[_0x59aaad(0x1ad)](0x0);}_0x586a5[_0x59aaad(0x1ab)](_0x34cf8b[_0x59aaad(0x186)],0x191)&&(logger['error'](_0x586a5[_0x59aaad(0x1b2)]),await _0x586a5['SGmDD'](sendInstrumentationEvent,_0x4e4c10,_0x586a5[_0x59aaad(0x1c4)],messageTypes[_0x59aaad(0x19b)],_0x586a5[_0x59aaad(0x195)],null,_0x4e4c10),process[_0x59aaad(0x1ad)](0x1)),_0x586a5[_0x59aaad(0x1ab)](_0x34cf8b[_0x59aaad(0x186)],0x190)&&(logger['error'](JSON[_0x59aaad(0x1a8)](_0x34cf8b['body'])[_0x59aaad(0x199)]),await _0x586a5[_0x59aaad(0x1bf)](sendInstrumentationEvent,_0x4e4c10,_0x586a5[_0x59aaad(0x1c4)],messageTypes[_0x59aaad(0x19b)],_0x586a5[_0x59aaad(0x1c3)],null,_0x4e4c10),process[_0x59aaad(0x1ad)](0x1)),logger[_0x59aaad(0x188)](_0x59aaad(0x1d2)+JSON[_0x59aaad(0x19c)](_0x34cf8b)),await _0x586a5['IWfGI'](sendInstrumentationEvent,_0x4e4c10,_0x586a5['inItf'],messageTypes[_0x59aaad(0x19b)],_0x586a5[_0x59aaad(0x1d0)],_0x34cf8b,_0x4e4c10),process[_0x59aaad(0x1ad)](0x1);}catch(_0x5255d4){const _0x3434b7=_0x59aaad(0x191)+_0x5255d4+'\x20\x0a'+JSON[_0x59aaad(0x19c)](_0x5255d4[_0x59aaad(0x1c9)])+'\x20';logger['error'](_0x3434b7),process[_0x59aaad(0x1ad)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x1418bb=a22_0xb150;(function(_0x1080d2,_0x2de14b){const _0x304660=a22_0xb150,_0x5ac168=_0x1080d2();while(!![]){try{const _0x4a81a2=parseInt(_0x304660(0x1a4))/0x1*(parseInt(_0x304660(0x180))/0x2)+parseInt(_0x304660(0x196))/0x3+-parseInt(_0x304660(0x155))/0x4*(-parseInt(_0x304660(0x172))/0x5)+parseInt(_0x304660(0x1ac))/0x6+parseInt(_0x304660(0x169))/0x7*(-parseInt(_0x304660(0x183))/0x8)+-parseInt(_0x304660(0x188))/0x9*(-parseInt(_0x304660(0x194))/0xa)+-parseInt(_0x304660(0x154))/0xb*(parseInt(_0x304660(0x16e))/0xc);if(_0x4a81a2===_0x2de14b)break;else _0x5ac168['push'](_0x5ac168['shift']());}catch(_0x3fd2a6){_0x5ac168['push'](_0x5ac168['shift']());}}}(a22_0x2939,0x336a9),require(a22_0x1418bb(0x189))[a22_0x1418bb(0x15e)](),exports['DASHBOARD_ENDPOINT']=process[a22_0x1418bb(0x17e)]['DASHBOARD_ENDPOINT']||'grid.browserstack.com',exports[a22_0x1418bb(0x1a0)]=process[a22_0x1418bb(0x17e)][a22_0x1418bb(0x1a0)]||a22_0x1418bb(0x178),exports['AG_API_URL']=process[a22_0x1418bb(0x17e)][a22_0x1418bb(0x16b)]||a22_0x1418bb(0x1a3),exports[a22_0x1418bb(0x18e)]=a22_0x1418bb(0x171)+this[a22_0x1418bb(0x16b)]+a22_0x1418bb(0x18f),exports['CP_CONFIG_FILE']=a22_0x1418bb(0x174),exports[a22_0x1418bb(0x14f)]=a22_0x1418bb(0x16a),exports['DEFAULT_GRID_NAME']='high-scale-grid',exports[a22_0x1418bb(0x1aa)]=a22_0x1418bb(0x170),exports[a22_0x1418bb(0x191)]=a22_0x1418bb(0x181),exports[a22_0x1418bb(0x17f)]=a22_0x1418bb(0x199),exports[a22_0x1418bb(0x177)]=a22_0x1418bb(0x186),exports['TURBOSCALE_DEPLOYMENT']=a22_0x1418bb(0x18c),exports[a22_0x1418bb(0x17c)]=a22_0x1418bb(0x1a6),exports[a22_0x1418bb(0x1a8)]='gcp',exports[a22_0x1418bb(0x151)]=[this[a22_0x1418bb(0x1aa)],this[a22_0x1418bb(0x17c)],this[a22_0x1418bb(0x1a8)]]);const a22_0x5b373b={};a22_0x5b373b[a22_0x1418bb(0x19e)]=a22_0x1418bb(0x19d),a22_0x5b373b['Value']='BrowserStack';const a22_0x235226={};a22_0x235226[a22_0x1418bb(0x19e)]=a22_0x1418bb(0x1a9),a22_0x235226['Value']=a22_0x1418bb(0x168);const common_hst_tags_list=[a22_0x5b373b,a22_0x235226];if(process[a22_0x1418bb(0x17e)][a22_0x1418bb(0x17a)]){const parsedTags=process[a22_0x1418bb(0x17e)][a22_0x1418bb(0x17a)][a22_0x1418bb(0x15f)](',');parsedTags[a22_0x1418bb(0x14d)](_0x7b0950=>{const _0x53ff49=a22_0x1418bb,_0xaa8d64=_0x7b0950[_0x53ff49(0x15f)](':'),_0xdbf378={};_0xdbf378['Key']=_0xaa8d64[0x0],_0xdbf378[_0x53ff49(0x187)]=_0xaa8d64[0x1],common_hst_tags_list[_0x53ff49(0x156)](_0xdbf378);});}exports[a22_0x1418bb(0x16d)]=common_hst_tags_list;function a22_0xb150(_0x4e811a,_0xa437e){const _0x293922=a22_0x2939();return a22_0xb150=function(_0xb15036,_0x27df1b){_0xb15036=_0xb15036-0x146;let _0x5342a3=_0x293922[_0xb15036];return _0x5342a3;},a22_0xb150(_0x4e811a,_0xa437e);}const a22_0x280601={};a22_0x280601[a22_0x1418bb(0x19d)]='BrowserStack',a22_0x280601[a22_0x1418bb(0x1a9)]=a22_0x1418bb(0x168),exports[a22_0x1418bb(0x15d)]=a22_0x280601,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x1418bb(0x1aa)]];const a22_0x3e3ab1={};a22_0x3e3ab1[a22_0x1418bb(0x148)]=a22_0x1418bb(0x19b),a22_0x3e3ab1[a22_0x1418bb(0x185)]=a22_0x1418bb(0x159),a22_0x3e3ab1[a22_0x1418bb(0x182)]=a22_0x1418bb(0x19a),a22_0x3e3ab1[a22_0x1418bb(0x164)]='cliRunStarted',a22_0x3e3ab1[a22_0x1418bb(0x162)]=a22_0x1418bb(0x14b),exports[a22_0x1418bb(0x150)]=a22_0x3e3ab1,exports['global_registry']={},exports[a22_0x1418bb(0x17b)]=a22_0x1418bb(0x184);const a22_0x54f93d={};a22_0x54f93d[a22_0x1418bb(0x17d)]=a22_0x1418bb(0x146)+this[a22_0x1418bb(0x17b)],a22_0x54f93d['init']=a22_0x1418bb(0x161)+this[a22_0x1418bb(0x17b)],a22_0x54f93d[a22_0x1418bb(0x175)]=a22_0x1418bb(0x14e)+this[a22_0x1418bb(0x17b)],a22_0x54f93d[a22_0x1418bb(0x18d)]=a22_0x1418bb(0x198)+this[a22_0x1418bb(0x17b)],a22_0x54f93d[a22_0x1418bb(0x18b)]={},a22_0x54f93d['delete']=a22_0x1418bb(0x158)+this[a22_0x1418bb(0x17b)],a22_0x54f93d[a22_0x1418bb(0x149)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x1418bb(0x17b)],a22_0x54f93d[a22_0x1418bb(0x14a)]=a22_0x1418bb(0x1a5)+this[a22_0x1418bb(0x17b)],a22_0x54f93d[a22_0x1418bb(0x190)]=a22_0x1418bb(0x192)+this['LINK_MESSAGE'],a22_0x54f93d[a22_0x1418bb(0x157)]=a22_0x1418bb(0x160)+this[a22_0x1418bb(0x17b)],a22_0x54f93d[a22_0x1418bb(0x18b)]['root']=a22_0x1418bb(0x14c)+this['LINK_MESSAGE'],a22_0x54f93d[a22_0x1418bb(0x18b)][a22_0x1418bb(0x153)]=a22_0x1418bb(0x16f)+this[a22_0x1418bb(0x17b)],a22_0x54f93d[a22_0x1418bb(0x18b)][a22_0x1418bb(0x165)]=a22_0x1418bb(0x173)+this[a22_0x1418bb(0x17b)],exports['HELP_HEADER_MESSAGE']=a22_0x54f93d,exports[a22_0x1418bb(0x147)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';function a22_0x2939(){const _0x508781=['api.browserstack.com','WARNING','TURBOSCALE_CUSTOM_TAGS','LINK_MESSAGE','AZURE','root','env','CLUSTER_AUTOSCALER_STACK_NAME','5910WzyVsN','BSTACK-ATS-CLUSTER','GRID_URL','8CaITnJ','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','RESOURCES','BSTACK-ATS-CLUSTER-HUB-HA','Value','3000951keUxUy','dotenv','error','list','browserstack-turboscale-grid','create','WS_ENDPOINT','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','stop','CLUSTER_DEP_STACK_NAME','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','RAW_ARGS_REGEX','10ULisuf','high-scale-grid-cluster','28953CuKqxB','unknown','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','BSTACK-ATS-CLUSTER-AUTOSCALER','gridUrl','log','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','browserstack:managedBy','Key','CLOUD_PROVIDER','BS_API_URL','messageTypes','UNKNOWN','grid-api.browserstack.com','33lLjSGs','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','azure','INFO','GCP','browserstack:service','AWS','SUCCESS','518376jnNVqu','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','HELP_FOOTER_MESSAGE','LOG','connect','start','cliRunFinished','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','forEach','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','IAM_USER_NAME','WS_EVENTS','ALL_SUPPORTED_CLOUD_PROVIDERS','CLUSTER','grid','11TwVpaa','43364qakfMy','push','pre_check','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','resourceInfo','us-east-1','REDACTED','grid-profile','HST_CLUSTER_TAGS','config','split','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','CLI_RUN_FINISHED','NULL','CLI_RUN_STARTED','gridProfile','REGION','ERROR','BrowserStack-Automate-TurboScale','112777JgnYGX','BrowserStackIAMUser','AG_API_URL','[REDACTED]','COMMON_HST_TAGS','3993744tIrcpp','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','aws','wss://','15cuSZVb','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','credentials','configure','pre-check','CLUSTER_HUB_HA_STACK_NAME'];a22_0x2939=function(){return _0x508781;};return a22_0x2939();}const a22_0x4b2ac2={};a22_0x4b2ac2[a22_0x1418bb(0x1ab)]='success',a22_0x4b2ac2[a22_0x1418bb(0x167)]=a22_0x1418bb(0x18a),a22_0x4b2ac2[a22_0x1418bb(0x1a7)]='info',a22_0x4b2ac2[a22_0x1418bb(0x179)]='warning',a22_0x4b2ac2[a22_0x1418bb(0x1a2)]=a22_0x1418bb(0x197),a22_0x4b2ac2[a22_0x1418bb(0x163)]=null,exports[a22_0x1418bb(0x1a1)]=a22_0x4b2ac2,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x1418bb(0x193)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x1418bb(0x15b)]=a22_0x1418bb(0x16c);const a22_0x1c4733={};a22_0x1c4733[a22_0x1418bb(0x15c)]='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x51ab6f={};a22_0x51ab6f[a22_0x1418bb(0x176)]=a22_0x1c4733,exports['MessageDescription']=a22_0x51ab6f,exports['TRIAL_GRID_URL']=a22_0x1418bb(0x19c);const a22_0x5e1e1a={};a22_0x5e1e1a[a22_0x1418bb(0x152)]=a22_0x1418bb(0x195),a22_0x5e1e1a[a22_0x1418bb(0x19f)]='aws',a22_0x5e1e1a[a22_0x1418bb(0x166)]=a22_0x1418bb(0x15a),exports['DEFAULT_CLUSTER_DETAILS']=a22_0x5e1e1a;
1
+ const a22_0x3cbc87=a22_0x5b5d;(function(_0x27f9a,_0x252a88){const _0x129b88=a22_0x5b5d,_0x3cabde=_0x27f9a();while(!![]){try{const _0x591fea=-parseInt(_0x129b88(0x1e3))/0x1*(-parseInt(_0x129b88(0x1c9))/0x2)+parseInt(_0x129b88(0x215))/0x3+-parseInt(_0x129b88(0x1c2))/0x4*(-parseInt(_0x129b88(0x1e2))/0x5)+parseInt(_0x129b88(0x1e1))/0x6+-parseInt(_0x129b88(0x1e7))/0x7*(parseInt(_0x129b88(0x1ff))/0x8)+parseInt(_0x129b88(0x1f5))/0x9*(-parseInt(_0x129b88(0x213))/0xa)+-parseInt(_0x129b88(0x1c5))/0xb;if(_0x591fea===_0x252a88)break;else _0x3cabde['push'](_0x3cabde['shift']());}catch(_0x5277dd){_0x3cabde['push'](_0x3cabde['shift']());}}}(a22_0x572c,0x7252b),require(a22_0x3cbc87(0x1d0))[a22_0x3cbc87(0x1af)](),exports[a22_0x3cbc87(0x1ef)]=process[a22_0x3cbc87(0x20e)][a22_0x3cbc87(0x1ef)]||a22_0x3cbc87(0x1cc),exports[a22_0x3cbc87(0x1be)]=process['env'][a22_0x3cbc87(0x1be)]||a22_0x3cbc87(0x203),exports[a22_0x3cbc87(0x208)]=process[a22_0x3cbc87(0x20e)]['AG_API_URL']||a22_0x3cbc87(0x1d4),exports[a22_0x3cbc87(0x1b4)]=a22_0x3cbc87(0x1e9)+this[a22_0x3cbc87(0x208)]+a22_0x3cbc87(0x1fb),exports['CP_CONFIG_FILE']=a22_0x3cbc87(0x1cf),exports['IAM_USER_NAME']=a22_0x3cbc87(0x1d3),exports[a22_0x3cbc87(0x1b3)]=a22_0x3cbc87(0x1b8),exports['AWS']=a22_0x3cbc87(0x1a9),exports['CLUSTER_DEP_STACK_NAME']='BSTACK-ATS-CLUSTER',exports[a22_0x3cbc87(0x1f8)]=a22_0x3cbc87(0x1ad),exports[a22_0x3cbc87(0x1f9)]=a22_0x3cbc87(0x1d5),exports[a22_0x3cbc87(0x1b7)]=a22_0x3cbc87(0x1ca),exports[a22_0x3cbc87(0x1ac)]=a22_0x3cbc87(0x1b9),exports[a22_0x3cbc87(0x1c6)]=a22_0x3cbc87(0x1df),exports[a22_0x3cbc87(0x1fd)]=[this['AWS'],this[a22_0x3cbc87(0x1ac)],this[a22_0x3cbc87(0x1c6)]]);const a22_0xd9883a={};a22_0xd9883a[a22_0x3cbc87(0x1d7)]=a22_0x3cbc87(0x1e0),a22_0xd9883a[a22_0x3cbc87(0x1ec)]=a22_0x3cbc87(0x1c4);const a22_0x54125c={};a22_0x54125c['Key']=a22_0x3cbc87(0x1cb),a22_0x54125c[a22_0x3cbc87(0x1ec)]=a22_0x3cbc87(0x1ae);const common_hst_tags_list=[a22_0xd9883a,a22_0x54125c];if(process['env'][a22_0x3cbc87(0x1b5)]){const parsedTags=process[a22_0x3cbc87(0x20e)][a22_0x3cbc87(0x1b5)]['split'](',');parsedTags[a22_0x3cbc87(0x201)](_0x559dc7=>{const _0x3ca32d=a22_0x3cbc87,_0x1c1a91=_0x559dc7[_0x3ca32d(0x1cd)](':'),_0x1920d4={};_0x1920d4[_0x3ca32d(0x1d7)]=_0x1c1a91[0x0],_0x1920d4[_0x3ca32d(0x1ec)]=_0x1c1a91[0x1],common_hst_tags_list[_0x3ca32d(0x1f3)](_0x1920d4);});}exports[a22_0x3cbc87(0x1ab)]=common_hst_tags_list;const a22_0x106128={};a22_0x106128[a22_0x3cbc87(0x1e0)]=a22_0x3cbc87(0x1c4),a22_0x106128[a22_0x3cbc87(0x1cb)]='BrowserStack-Automate-TurboScale',exports[a22_0x3cbc87(0x214)]=a22_0x106128,exports[a22_0x3cbc87(0x1b2)]=[this[a22_0x3cbc87(0x1dc)]];const a22_0x280d4a={};function a22_0x5b5d(_0x29bf71,_0x5d2698){const _0x572ce=a22_0x572c();return a22_0x5b5d=function(_0x5b5dbd,_0x56643e){_0x5b5dbd=_0x5b5dbd-0x1a8;let _0x5dff02=_0x572ce[_0x5b5dbd];return _0x5dff02;},a22_0x5b5d(_0x29bf71,_0x5d2698);}a22_0x280d4a[a22_0x3cbc87(0x1f2)]=a22_0x3cbc87(0x1fa),a22_0x280d4a[a22_0x3cbc87(0x1c0)]=a22_0x3cbc87(0x1ea),a22_0x280d4a[a22_0x3cbc87(0x1ed)]=a22_0x3cbc87(0x1fe),a22_0x280d4a[a22_0x3cbc87(0x200)]=a22_0x3cbc87(0x1d8),a22_0x280d4a[a22_0x3cbc87(0x1d1)]=a22_0x3cbc87(0x209),exports[a22_0x3cbc87(0x212)]=a22_0x280d4a,exports[a22_0x3cbc87(0x216)]={},exports[a22_0x3cbc87(0x1f0)]=a22_0x3cbc87(0x1e4);const a22_0x2863f5={};a22_0x2863f5[a22_0x3cbc87(0x1c7)]=a22_0x3cbc87(0x1c1)+this[a22_0x3cbc87(0x1f0)],a22_0x2863f5[a22_0x3cbc87(0x1ba)]=a22_0x3cbc87(0x207)+this[a22_0x3cbc87(0x1f0)],a22_0x2863f5['configure']=a22_0x3cbc87(0x211)+this[a22_0x3cbc87(0x1f0)],a22_0x2863f5[a22_0x3cbc87(0x20c)]=a22_0x3cbc87(0x202)+this[a22_0x3cbc87(0x1f0)],a22_0x2863f5[a22_0x3cbc87(0x1d6)]={},a22_0x2863f5[a22_0x3cbc87(0x1f6)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x3cbc87(0x1f0)],a22_0x2863f5['connect']=a22_0x3cbc87(0x20f)+this['LINK_MESSAGE'],a22_0x2863f5[a22_0x3cbc87(0x206)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x3cbc87(0x1f0)],a22_0x2863f5[a22_0x3cbc87(0x1aa)]=a22_0x3cbc87(0x1a8)+this[a22_0x3cbc87(0x1f0)],a22_0x2863f5['pre_check']=a22_0x3cbc87(0x1de)+this[a22_0x3cbc87(0x1f0)],a22_0x2863f5[a22_0x3cbc87(0x1d6)]['root']=a22_0x3cbc87(0x1f1)+this['LINK_MESSAGE'],a22_0x2863f5[a22_0x3cbc87(0x1d6)][a22_0x3cbc87(0x205)]=a22_0x3cbc87(0x1eb)+this['LINK_MESSAGE'],a22_0x2863f5[a22_0x3cbc87(0x1d6)][a22_0x3cbc87(0x1b0)]=a22_0x3cbc87(0x1f4)+this[a22_0x3cbc87(0x1f0)],exports[a22_0x3cbc87(0x210)]=a22_0x2863f5,exports[a22_0x3cbc87(0x1ce)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x4f22ff={};a22_0x4f22ff['SUCCESS']=a22_0x3cbc87(0x1dd),a22_0x4f22ff[a22_0x3cbc87(0x1c3)]=a22_0x3cbc87(0x204),a22_0x4f22ff[a22_0x3cbc87(0x20a)]=a22_0x3cbc87(0x20b),a22_0x4f22ff[a22_0x3cbc87(0x1da)]=a22_0x3cbc87(0x1f7),a22_0x4f22ff[a22_0x3cbc87(0x1bb)]='unknown',a22_0x4f22ff['NULL']=null,exports[a22_0x3cbc87(0x1fc)]=a22_0x4f22ff,exports[a22_0x3cbc87(0x1d9)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x3cbc87(0x1c8)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x3cbc87(0x1bf);const a22_0x4eca8b={};a22_0x4eca8b[a22_0x3cbc87(0x1b1)]=a22_0x3cbc87(0x20d);const a22_0x260133={};a22_0x260133[a22_0x3cbc87(0x1db)]=a22_0x4eca8b,exports[a22_0x3cbc87(0x1bd)]=a22_0x260133,exports[a22_0x3cbc87(0x1e6)]=a22_0x3cbc87(0x1ee);const a22_0x3f1092={};a22_0x3f1092[a22_0x3cbc87(0x1bc)]=a22_0x3cbc87(0x217),a22_0x3f1092[a22_0x3cbc87(0x1d2)]=a22_0x3cbc87(0x1a9),a22_0x3f1092[a22_0x3cbc87(0x1b6)]=a22_0x3cbc87(0x1e8),exports[a22_0x3cbc87(0x1e5)]=a22_0x3f1092;function a22_0x572c(){const _0x5ebb99=['ALL_SUPPORTED_CLOUD_PROVIDERS','gridUrl','6745432XCKJJV','CLI_RUN_STARTED','forEach','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','api.browserstack.com','error','grid','start','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','AG_API_URL','cliRunFinished','INFO','info','create','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','env','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','HELP_HEADER_MESSAGE','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','WS_EVENTS','28780bEBJRP','HST_CLUSTER_TAGS','2733744CaNCel','global_registry','high-scale-grid-cluster','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','aws','stop','COMMON_HST_TAGS','AZURE','BSTACK-ATS-CLUSTER-AUTOSCALER','BrowserStack-Automate-TurboScale','config','gridProfile','grid-profile','SUPPORTED_CLOUD_PROVIDERS','DEFAULT_GRID_NAME','WS_ENDPOINT','TURBOSCALE_CUSTOM_TAGS','REGION','TURBOSCALE_DEPLOYMENT','high-scale-grid','azure','init','UNKNOWN','CLUSTER','MessageDescription','BS_API_URL','[REDACTED]','RESOURCES','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','777236jTNFdt','ERROR','BrowserStack','7403330gEjZxi','GCP','root','RAW_ARGS_REGEX','675714AVCoBG','browserstack-turboscale-grid','browserstack:service','grid.browserstack.com','split','HELP_FOOTER_MESSAGE','credentials','dotenv','CLI_RUN_FINISHED','CLOUD_PROVIDER','BrowserStackIAMUser','grid-api.browserstack.com','BSTACK-ATS-CLUSTER-HUB-HA','list','Key','cliRunStarted','CLI_ARGS_REGEX','WARNING','pre-check','AWS','success','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','gcp','browserstack:managedBy','3150606QbYmaW','20wZmwxj','1LwnHAN','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','DEFAULT_CLUSTER_DETAILS','TRIAL_GRID_URL','7JOuXcq','us-east-1','wss://','resourceInfo','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','Value','GRID_URL','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','DASHBOARD_ENDPOINT','LINK_MESSAGE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','LOG','push','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','1773YRaurs','delete','warning','CLUSTER_AUTOSCALER_STACK_NAME','CLUSTER_HUB_HA_STACK_NAME','log','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','messageTypes'];a22_0x572c=function(){return _0x5ebb99;};return a22_0x572c();}
@@ -1 +1 @@
1
- const a23_0x3ef72d=a23_0x1ded;(function(_0xd2f380,_0xb7db32){const _0x56bbed=a23_0x1ded,_0x2a65e7=_0xd2f380();while(!![]){try{const _0x13b82d=parseInt(_0x56bbed(0x169))/0x1*(parseInt(_0x56bbed(0x175))/0x2)+parseInt(_0x56bbed(0x170))/0x3*(parseInt(_0x56bbed(0x179))/0x4)+parseInt(_0x56bbed(0x16f))/0x5+parseInt(_0x56bbed(0x178))/0x6*(parseInt(_0x56bbed(0x16a))/0x7)+-parseInt(_0x56bbed(0x168))/0x8*(parseInt(_0x56bbed(0x172))/0x9)+parseInt(_0x56bbed(0x161))/0xa+-parseInt(_0x56bbed(0x165))/0xb;if(_0x13b82d===_0xb7db32)break;else _0x2a65e7['push'](_0x2a65e7['shift']());}catch(_0x43a0ba){_0x2a65e7['push'](_0x2a65e7['shift']());}}}(a23_0x4ea9,0x92d8a));const winston=require('winston'),fs=require('fs'),path=require(a23_0x3ef72d(0x166)),logDir=a23_0x3ef72d(0x162);!fs[a23_0x3ef72d(0x16c)](logDir)&&fs['mkdirSync'](logDir);function a23_0x4ea9(){const _0x145a4d=['532531euSngD','10430BbRlzR','debug','existsSync','usage.log','timestamp','2002995BsFrnn','1463739gGkyDa','console.info','679023BCLRpR','transports','name','2JGmQxy','File','printf','4626QsICKs','8sQtSDR','createLogger','colorize','join','\x20-\x20','logger','571630mBznmc','log','level','Console','18518610eTTvRb','path','format','88zfZRyy'];a23_0x4ea9=function(){return _0x145a4d;};return a23_0x4ea9();}const a23_0x3079f4={};a23_0x3079f4[a23_0x3ef72d(0x167)]='YYYY-MM-DD\x20HH:mm:ss';const a23_0xc7112c={};a23_0xc7112c[a23_0x3ef72d(0x163)]=!![];function a23_0x1ded(_0x5f2bc8,_0x18e0be){const _0x4ea9c2=a23_0x4ea9();return a23_0x1ded=function(_0x1ded55,_0x589c04){_0x1ded55=_0x1ded55-0x15c;let _0x2ed900=_0x4ea9c2[_0x1ded55];return _0x2ed900;},a23_0x1ded(_0x5f2bc8,_0x18e0be);}const a23_0x26770e={};a23_0x26770e[a23_0x3ef72d(0x174)]=a23_0x3ef72d(0x171),exports[a23_0x3ef72d(0x160)]=new winston[(a23_0x3ef72d(0x15c))]({'format':winston[a23_0x3ef72d(0x167)]['combine'](winston[a23_0x3ef72d(0x167)][a23_0x3ef72d(0x16e)](a23_0x3079f4),winston[a23_0x3ef72d(0x167)][a23_0x3ef72d(0x15d)](a23_0xc7112c),winston[a23_0x3ef72d(0x167)][a23_0x3ef72d(0x177)](_0x52c1d2=>_0x52c1d2['timestamp']+a23_0x3ef72d(0x15f)+_0x52c1d2[a23_0x3ef72d(0x163)]+':\x20'+_0x52c1d2['message'])),'transports':[new winston[(a23_0x3ef72d(0x173))][(a23_0x3ef72d(0x164))](a23_0x26770e),new winston[(a23_0x3ef72d(0x173))][(a23_0x3ef72d(0x176))]({'filename':path[a23_0x3ef72d(0x15e)](logDir,'events.log'),'level':a23_0x3ef72d(0x16b)})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0x3ef72d(0x176))]({'filename':path[a23_0x3ef72d(0x15e)](logDir,a23_0x3ef72d(0x16d)),'level':a23_0x3ef72d(0x16b)})]};exports['fileLogger']=new winston['createLogger'](winstonFileLoggerParams);
1
+ const a23_0x58ab30=a23_0x5626;(function(_0x50b1d0,_0x3f9bcf){const _0x20c06a=a23_0x5626,_0x147dbc=_0x50b1d0();while(!![]){try{const _0x17fe4f=-parseInt(_0x20c06a(0xbf))/0x1*(parseInt(_0x20c06a(0xb7))/0x2)+-parseInt(_0x20c06a(0xac))/0x3+-parseInt(_0x20c06a(0xa0))/0x4*(-parseInt(_0x20c06a(0xa8))/0x5)+-parseInt(_0x20c06a(0xb6))/0x6*(-parseInt(_0x20c06a(0xb8))/0x7)+-parseInt(_0x20c06a(0xbe))/0x8*(-parseInt(_0x20c06a(0xae))/0x9)+parseInt(_0x20c06a(0xab))/0xa+-parseInt(_0x20c06a(0xad))/0xb;if(_0x17fe4f===_0x3f9bcf)break;else _0x147dbc['push'](_0x147dbc['shift']());}catch(_0x495f9c){_0x147dbc['push'](_0x147dbc['shift']());}}}(a23_0x9367,0xc67d1));const winston=require(a23_0x58ab30(0xbd)),fs=require('fs'),path=require(a23_0x58ab30(0xa9)),logDir='log';!fs[a23_0x58ab30(0xa3)](logDir)&&fs[a23_0x58ab30(0xb2)](logDir);function a23_0x5626(_0x50b536,_0x3ba061){const _0x936709=a23_0x9367();return a23_0x5626=function(_0x56263b,_0xdf8df){_0x56263b=_0x56263b-0xa0;let _0x36f08c=_0x936709[_0x56263b];return _0x36f08c;},a23_0x5626(_0x50b536,_0x3ba061);}const a23_0x11d44f={};a23_0x11d44f[a23_0x58ab30(0xb3)]=a23_0x58ab30(0xb4);const a23_0x1d72a5={};a23_0x1d72a5[a23_0x58ab30(0xa6)]=!![];const a23_0x364c22={};a23_0x364c22[a23_0x58ab30(0xb0)]=a23_0x58ab30(0xbc),exports[a23_0x58ab30(0xc0)]=new winston['createLogger']({'format':winston[a23_0x58ab30(0xb3)][a23_0x58ab30(0xb5)](winston[a23_0x58ab30(0xb3)][a23_0x58ab30(0xa2)](a23_0x11d44f),winston[a23_0x58ab30(0xb3)][a23_0x58ab30(0xaf)](a23_0x1d72a5),winston[a23_0x58ab30(0xb3)][a23_0x58ab30(0xb9)](_0x2f6384=>_0x2f6384[a23_0x58ab30(0xa2)]+'\x20-\x20'+_0x2f6384[a23_0x58ab30(0xa6)]+':\x20'+_0x2f6384[a23_0x58ab30(0xbb)])),'transports':[new winston['transports'][(a23_0x58ab30(0xa4))](a23_0x364c22),new winston[(a23_0x58ab30(0xba))][(a23_0x58ab30(0xc1))]({'filename':path[a23_0x58ab30(0xa1)](logDir,a23_0x58ab30(0xb1)),'level':a23_0x58ab30(0xa7)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x58ab30(0xba))]['File']({'filename':path[a23_0x58ab30(0xa1)](logDir,'usage.log'),'level':a23_0x58ab30(0xa7)})]};exports[a23_0x58ab30(0xa5)]=new winston[(a23_0x58ab30(0xaa))](winstonFileLoggerParams);function a23_0x9367(){const _0x382b5d=['winston','4632EuXPWy','2755KSELqU','logger','File','23012AvSmlh','join','timestamp','existsSync','Console','fileLogger','level','debug','1145cshHnc','path','createLogger','13662240gouANM','690090mcBWGM','23351405LatCmT','6147ekGaHL','colorize','name','events.log','mkdirSync','format','YYYY-MM-DD\x20HH:mm:ss','combine','7962iCzVXZ','778AiPdtr','6111rhJUQc','printf','transports','message','console.info'];a23_0x9367=function(){return _0x382b5d;};return a23_0x9367();}
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x1ab2c4=a24_0x3fb3;(function(_0x59d168,_0x34abe8){const _0x2a8f7a=a24_0x3fb3,_0x43d217=_0x59d168();while(!![]){try{const _0x239860=-parseInt(_0x2a8f7a(0x157))/0x1+parseInt(_0x2a8f7a(0x14d))/0x2*(parseInt(_0x2a8f7a(0x155))/0x3)+parseInt(_0x2a8f7a(0x15d))/0x4+parseInt(_0x2a8f7a(0x14e))/0x5*(-parseInt(_0x2a8f7a(0x15b))/0x6)+parseInt(_0x2a8f7a(0x15e))/0x7*(-parseInt(_0x2a8f7a(0x154))/0x8)+-parseInt(_0x2a8f7a(0x156))/0x9*(parseInt(_0x2a8f7a(0x150))/0xa)+parseInt(_0x2a8f7a(0x14c))/0xb;if(_0x239860===_0x34abe8)break;else _0x43d217['push'](_0x43d217['shift']());}catch(_0x1956c6){_0x43d217['push'](_0x43d217['shift']());}}}(a24_0x486d,0xac659));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x1ab2c4(0x14a));process[a24_0x1ab2c4(0x15c)]['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function a24_0x3fb3(_0x4a1b83,_0xd6ca5d){const _0x486d91=a24_0x486d();return a24_0x3fb3=function(_0x3fb36c,_0x2c4ec7){_0x3fb36c=_0x3fb36c-0x14a;let _0x5169d8=_0x486d91[_0x3fb36c];return _0x5169d8;},a24_0x3fb3(_0x4a1b83,_0xd6ca5d);}function a24_0x486d(){const _0x27abcb=['721714GwfnYm','./config/constants','usage','31213457zMKkmy','4OwWaMr','2513110EgJrto','commandDir','120iafBoT','root','ZHwLQ','exports','24FzXwQj','719223sCezjh','964953OQJVoL','730859FCTECo','WBfrJ','demandCommand','commands','12DdlDGE','env','2884324cBwKrP'];a24_0x486d=function(){return _0x27abcb;};return a24_0x486d();}function run(_0x4a8901){const _0x4fa297=a24_0x1ab2c4,_0x3fa133={};_0x3fa133['ZHwLQ']=_0x4fa297(0x15a),_0x3fa133['WBfrJ']='help';const _0x439c49=_0x3fa133;_0x4a8901[_0x4fa297(0x14b)](HELP_HEADER_MESSAGE[_0x4fa297(0x151)])[_0x4fa297(0x14f)](_0x439c49[_0x4fa297(0x152)])[_0x4fa297(0x159)]()['help'](_0x439c49[_0x4fa297(0x158)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x1ab2c4(0x153)]=run;
2
+ 'use strict';function a24_0x1554(_0x4a2b63,_0x2d6eb2){const _0x33c315=a24_0x33c3();return a24_0x1554=function(_0x155428,_0x5bc403){_0x155428=_0x155428-0x131;let _0x47d0d3=_0x33c315[_0x155428];return _0x47d0d3;},a24_0x1554(_0x4a2b63,_0x2d6eb2);}function a24_0x33c3(){const _0x3b29cc=['HcMJq','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','usage','root','commands','demandCommand','ESObZ','1368744YOAoYp','1646372TNUfXC','epilogue','107100YMRRXl','14389536DDPPyt','1568773FzKiFt','814604cRGjsh','help','commandDir','7045575sysgzg','60eJMEtT'];a24_0x33c3=function(){return _0x3b29cc;};return a24_0x33c3();}const a24_0x3e0caa=a24_0x1554;(function(_0x18084a,_0x3ff421){const _0x4a051a=a24_0x1554,_0xda7e31=_0x18084a();while(!![]){try{const _0x517093=parseInt(_0x4a051a(0x13d))/0x1+parseInt(_0x4a051a(0x13b))/0x2+-parseInt(_0x4a051a(0x138))/0x3+parseInt(_0x4a051a(0x139))/0x4+-parseInt(_0x4a051a(0x141))/0x5+parseInt(_0x4a051a(0x142))/0x6*(-parseInt(_0x4a051a(0x13e))/0x7)+parseInt(_0x4a051a(0x13c))/0x8;if(_0x517093===_0x3ff421)break;else _0xda7e31['push'](_0xda7e31['shift']());}catch(_0x4a3ceb){_0xda7e31['push'](_0xda7e31['shift']());}}}(a24_0x33c3,0xc42c5));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process['env'][a24_0x3e0caa(0x132)]=0x1;function run(_0x22895c){const _0x4c963f=a24_0x3e0caa,_0x45b58e={};_0x45b58e['ESObZ']=_0x4c963f(0x135),_0x45b58e[_0x4c963f(0x131)]=_0x4c963f(0x13f);const _0x323d2f=_0x45b58e;_0x22895c[_0x4c963f(0x133)](HELP_HEADER_MESSAGE[_0x4c963f(0x134)])[_0x4c963f(0x140)](_0x323d2f[_0x4c963f(0x137)])[_0x4c963f(0x136)]()[_0x4c963f(0x13f)](_0x323d2f[_0x4c963f(0x131)])[_0x4c963f(0x13a)](HELP_FOOTER_MESSAGE);}module['exports']=run;