browserstack-node-sdk 1.34.40 → 1.34.42

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 (134) 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/start.js +1 -1
  18. package/ats/src/commands/start_commands/grid.js +1 -1
  19. package/ats/src/commands/stop.js +1 -1
  20. package/ats/src/commands/stop_commands/grid.js +1 -1
  21. package/ats/src/config/constants.js +1 -1
  22. package/ats/src/config/logger.js +1 -1
  23. package/ats/src/index.js +1 -1
  24. package/ats/src/utils/AWSUtils.js +1 -1
  25. package/ats/src/utils/createAutoscalerStack.js +1 -1
  26. package/ats/src/utils/createClusterStack.js +1 -1
  27. package/ats/src/utils/createHubHaStack.js +1 -1
  28. package/ats/src/utils/createk8sClient.js +1 -1
  29. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  30. package/ats/src/utils/deleteStack.js +1 -1
  31. package/ats/src/utils/describeStack.js +1 -1
  32. package/ats/src/utils/gridComponents.js +1 -1
  33. package/ats/src/utils/hstUtils.js +1 -1
  34. package/ats/src/utils/instrumentationUtils.js +1 -1
  35. package/ats/src/utils/userInput.js +1 -1
  36. package/ats/src/utils/utilityMethods.js +1 -1
  37. package/ats/src/utils/webSocketUtils.js +1 -1
  38. package/package.json +2 -2
  39. package/src/ai-sdk-node/bundle.js +1 -1
  40. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  41. package/src/bin/codeceptjs/command.js +1 -1
  42. package/src/bin/codeceptjs/helper.js +1 -1
  43. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  44. package/src/bin/cucumber-js/command.js +1 -1
  45. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  46. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  47. package/src/bin/cucumber-js/test-observability.js +1 -1
  48. package/src/bin/cucumber-js/test.setup.js +1 -1
  49. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  50. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  51. package/src/bin/integrations/command.js +1 -1
  52. package/src/bin/integrations/constants.js +1 -1
  53. package/src/bin/jest/command.js +1 -1
  54. package/src/bin/jest/customImplements/customCircus.js +1 -1
  55. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  56. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  57. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  58. package/src/bin/jest/jest.setup.js +1 -1
  59. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  60. package/src/bin/jest/test-observability/helper.js +1 -1
  61. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  62. package/src/bin/jest/test-observability/test-details.js +1 -1
  63. package/src/bin/jest/test_before.setup.js +1 -1
  64. package/src/bin/launcher/launcher.js +1 -1
  65. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  66. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  67. package/src/bin/mocha/command.js +1 -1
  68. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  69. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  70. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  71. package/src/bin/mocha/test.setup.js +1 -1
  72. package/src/bin/nightwatch/command.js +1 -1
  73. package/src/bin/playwright/accessibility-helper.js +1 -1
  74. package/src/bin/playwright/command.js +1 -1
  75. package/src/bin/playwright/globalSetup.js +1 -1
  76. package/src/bin/playwright/mock-process.js +1 -1
  77. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  78. package/src/bin/playwright/patches.js +1 -1
  79. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  80. package/src/bin/playwright/reporter/reporter.js +1 -1
  81. package/src/bin/playwright/reporter/test-details.js +1 -1
  82. package/src/bin/playwright/sessionDetails.js +1 -1
  83. package/src/bin/runner.js +1 -1
  84. package/src/bin/setup.js +1 -1
  85. package/src/bin/test-runner/index.js +1 -1
  86. package/src/bin/test-runner/runTest.js +1 -1
  87. package/src/bin/test-runner/testWorker.js +1 -1
  88. package/src/bin/utils/constants.js +1 -1
  89. package/src/bin/utils/log4jsAppender.js +1 -1
  90. package/src/bin/utils/logPatcher.js +1 -1
  91. package/src/bin/utils/logReportingAPI.js +1 -1
  92. package/src/bin/vanilla-js/command.js +1 -1
  93. package/src/browserStackSdk.js +1 -1
  94. package/src/helpers/BrowserStackSetup.js +1 -1
  95. package/src/helpers/accessibility-automation/constants.js +1 -1
  96. package/src/helpers/accessibility-automation/helper.js +1 -1
  97. package/src/helpers/accessibility-automation/scripts.js +1 -1
  98. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  99. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  100. package/src/helpers/ats/constants.js +1 -1
  101. package/src/helpers/ats/helper.js +1 -1
  102. package/src/helpers/capsMapping.js +1 -1
  103. package/src/helpers/central-scanner/constants.js +1 -1
  104. package/src/helpers/central-scanner/helpers.js +1 -1
  105. package/src/helpers/globals.js +1 -1
  106. package/src/helpers/helper.js +1 -1
  107. package/src/helpers/logger.js +1 -1
  108. package/src/helpers/patchHelper.js +1 -1
  109. package/src/helpers/patchHelpers.js +1 -1
  110. package/src/helpers/percy/Percy.js +1 -1
  111. package/src/helpers/percy/PercyBinary.js +1 -1
  112. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  113. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  114. package/src/helpers/percy/PercySDK.js +1 -1
  115. package/src/helpers/percy/index.js +1 -1
  116. package/src/helpers/percy/utils.js +1 -1
  117. package/src/helpers/performance/constants.js +1 -1
  118. package/src/helpers/performance/performance-tester.js +1 -1
  119. package/src/helpers/processHelper.js +1 -1
  120. package/src/helpers/request-spy.js +1 -1
  121. package/src/helpers/setKeepAlive.js +1 -1
  122. package/src/helpers/test-observability/constants.js +1 -1
  123. package/src/helpers/test-observability/error-handler.js +1 -1
  124. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  125. package/src/helpers/test-observability/sessionHandler.js +1 -1
  126. package/src/helpers/test-observability/utils.js +1 -1
  127. package/src/helpers/testhub/constants.js +1 -1
  128. package/src/helpers/testhub/testhubHandler.js +1 -1
  129. package/src/helpers/testhub/utils.js +1 -1
  130. package/src/helpers/timeoutPromise.js +1 -1
  131. package/src/helpers/utilities.js +1 -1
  132. package/src/helpers/w3cMapping.js +1 -1
  133. package/src/hubAllocationMethods.js +1 -1
  134. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x4b66cd=a15_0x18d0;(function(_0x4cafba,_0x517778){const _0x4a2b11=a15_0x18d0,_0x28fb16=_0x4cafba();while(!![]){try{const _0x5bf70d=parseInt(_0x4a2b11(0x1ee))/0x1*(-parseInt(_0x4a2b11(0x1e3))/0x2)+parseInt(_0x4a2b11(0x1d2))/0x3+parseInt(_0x4a2b11(0x215))/0x4*(parseInt(_0x4a2b11(0x1e1))/0x5)+-parseInt(_0x4a2b11(0x1f9))/0x6*(-parseInt(_0x4a2b11(0x214))/0x7)+-parseInt(_0x4a2b11(0x1fc))/0x8*(parseInt(_0x4a2b11(0x1d4))/0x9)+parseInt(_0x4a2b11(0x1f0))/0xa+-parseInt(_0x4a2b11(0x1fe))/0xb;if(_0x5bf70d===_0x517778)break;else _0x28fb16['push'](_0x28fb16['shift']());}catch(_0x1d0847){_0x28fb16['push'](_0x28fb16['shift']());}}}(a15_0x1814,0xb0915));function a15_0x18d0(_0x26485f,_0x39cb96){const _0x181404=a15_0x1814();return a15_0x18d0=function(_0x18d0d0,_0x2b1e4c){_0x18d0d0=_0x18d0d0-0x1c7;let _0x59d809=_0x181404[_0x18d0d0];return _0x59d809;},a15_0x18d0(_0x26485f,_0x39cb96);}const fs=require('fs'),got=require(a15_0x4b66cd(0x1fd)),{table}=require(a15_0x4b66cd(0x1e5)),{v4:uuidv4}=require(a15_0x4b66cd(0x212)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x4b66cd(0x1d3)),{getCredentialsPath,getAuthHeader}=require(a15_0x4b66cd(0x202)),{sendInstrumentationEvent}=require(a15_0x4b66cd(0x1e4));exports[a15_0x4b66cd(0x21b)]=a15_0x4b66cd(0x20c),exports[a15_0x4b66cd(0x217)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x4b66cd(0x20a)]=function(_0x399c1c){const _0x3f9a2f=a15_0x4b66cd,_0xbd102c={};_0xbd102c[_0x3f9a2f(0x1f6)]=_0x3f9a2f(0x1e2),_0xbd102c[_0x3f9a2f(0x1f3)]='boolean',_0xbd102c[_0x3f9a2f(0x203)]=_0x3f9a2f(0x216);const _0x5cc4cd=_0xbd102c,_0x77d88b={};_0x77d88b[_0x3f9a2f(0x20e)]=_0x5cc4cd[_0x3f9a2f(0x1f6)],_0x77d88b[_0x3f9a2f(0x1d9)]=_0x5cc4cd[_0x3f9a2f(0x1f3)];const _0x2c9273={};return _0x2c9273[_0x3f9a2f(0x1ff)]=_0x77d88b,_0x399c1c[_0x3f9a2f(0x1d0)](HELP_HEADER_MESSAGE['list']['grid'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x3f9a2f(0x1df)](_0x2c9273)['help'](_0x5cc4cd[_0x3f9a2f(0x203)])[_0x3f9a2f(0x219)];},exports[a15_0x4b66cd(0x1e8)]=async function(_0x5579e7){const _0x4f7313=a15_0x4b66cd,_0x5415e6={'sNsXS':function(_0x4370f9){return _0x4370f9();},'TbhMx':function(_0x3382fb){return _0x3382fb();},'kzewP':_0x4f7313(0x1de),'iHCTM':function(_0x5b2ba2,_0x201a75,_0x5ae682,_0x1f7e5e,_0x3f1efd,_0x400cd3,_0x5a62b5){return _0x5b2ba2(_0x201a75,_0x5ae682,_0x1f7e5e,_0x3f1efd,_0x400cd3,_0x5a62b5);},'SqvtV':'list-grids-called','DnTxJ':'init-not-called','CuRET':_0x4f7313(0x20f),'rDUYj':function(_0x427546,_0x58617d,_0x1e1926){return _0x427546(_0x58617d,_0x1e1926);},'sHDPF':function(_0xebac60,_0x5d4a7d){return _0xebac60!==_0x5d4a7d;},'yVRRk':function(_0x466257,_0x100957){return _0x466257!==_0x100957;},'FxQkY':function(_0x3729c1,_0x34af6b){return _0x3729c1===_0x34af6b;},'ComNA':'\x0aFound\x20the\x20following\x20grids:\x0a','iinMm':'grid-id','MEqAW':_0x4f7313(0x21a),'BONrl':_0x4f7313(0x205),'SuvoC':_0x4f7313(0x1eb),'cMUoi':_0x4f7313(0x204),'ToGNS':_0x4f7313(0x206),'VlnBY':function(_0x45788b,_0x2adbfc){return _0x45788b(_0x2adbfc);},'bVIZD':_0x4f7313(0x213),'pTlxJ':function(_0x458b75,_0x155bdc,_0x589070,_0x10d98b,_0x331185,_0x48ee99,_0x45f118){return _0x458b75(_0x155bdc,_0x589070,_0x10d98b,_0x331185,_0x48ee99,_0x45f118);},'hwofx':_0x4f7313(0x1dd),'EzXit':_0x4f7313(0x1cc),'eoZnS':_0x4f7313(0x209)};try{global_registry[_0x4f7313(0x1cf)]=_0x5415e6[_0x4f7313(0x1e6)](uuidv4);!fs[_0x4f7313(0x1fb)](_0x5415e6['TbhMx'](getCredentialsPath))&&(console[_0x4f7313(0x1c8)](_0x5415e6[_0x4f7313(0x1ed)]),await _0x5415e6[_0x4f7313(0x21c)](sendInstrumentationEvent,_0x5579e7,_0x5415e6[_0x4f7313(0x1cd)],messageTypes[_0x4f7313(0x1dc)],_0x5415e6[_0x4f7313(0x1c9)],null,_0x5579e7),process[_0x4f7313(0x1ca)](0x1));const _0x54d35f=JSON[_0x4f7313(0x1e0)](fs[_0x4f7313(0x1d1)](_0x5415e6['sNsXS'](getCredentialsPath)));let _0x13cd62=_0x4f7313(0x1f1)+AG_API_URL+'/packages/cli/get-grids';_0x5579e7[_0x4f7313(0x1ec)]&&(_0x13cd62=_0x4f7313(0x1f1)+AG_API_URL+_0x4f7313(0x1f2));const _0x3c1efe={'method':_0x5415e6[_0x4f7313(0x208)],'headers':_0x5415e6['rDUYj'](getAuthHeader,_0x54d35f[_0x4f7313(0x1f5)]['username'],_0x54d35f[_0x4f7313(0x1f5)][_0x4f7313(0x1f7)]),'throwHttpErrors':![]};global_registry[_0x4f7313(0x1ef)]=_0x54d35f[_0x4f7313(0x1f5)][_0x4f7313(0x1cb)],global_registry['bstackAccesskey']=_0x54d35f[_0x4f7313(0x1f5)][_0x4f7313(0x1f7)],_0x5415e6[_0x4f7313(0x21c)](sendInstrumentationEvent,_0x5579e7,_0x5415e6[_0x4f7313(0x1cd)],messageTypes[_0x4f7313(0x1f4)],null,null,_0x5579e7);const _0x36cfae=await _0x5415e6[_0x4f7313(0x1e9)](got,_0x13cd62,_0x3c1efe);if(_0x5415e6['sHDPF'](_0x36cfae,null)&&_0x5415e6[_0x4f7313(0x20b)](_0x36cfae,undefined)&&_0x5415e6[_0x4f7313(0x1d5)](_0x36cfae[_0x4f7313(0x1e7)],0xc8)){const _0x447931=JSON[_0x4f7313(0x1e0)](_0x36cfae['body']);console[_0x4f7313(0x1d6)](_0x5415e6[_0x4f7313(0x210)]);const _0x3f4322=[];_0x3f4322[_0x4f7313(0x1fa)]([_0x5415e6[_0x4f7313(0x1f8)],_0x5415e6[_0x4f7313(0x218)],_0x5415e6['BONrl'],_0x5415e6[_0x4f7313(0x1ce)],_0x5415e6[_0x4f7313(0x1c7)],_0x5415e6[_0x4f7313(0x1db)]]),_0x447931[_0x4f7313(0x1ea)](_0x155246=>{const _0x3d1991=_0x4f7313;_0x3f4322['push']([_0x155246['id'],_0x155246[_0x3d1991(0x20d)],_0x155246[_0x3d1991(0x205)],_0x155246['running'],_0x155246['queued'],_0x155246[_0x3d1991(0x207)]]);}),console[_0x4f7313(0x1d6)](_0x5415e6['VlnBY'](table,_0x3f4322)),process[_0x4f7313(0x1ca)](0x0);}_0x5415e6[_0x4f7313(0x1d5)](_0x36cfae['statusCode'],0x191)&&(console[_0x4f7313(0x1c8)](_0x5415e6['bVIZD']),await _0x5415e6[_0x4f7313(0x1d8)](sendInstrumentationEvent,_0x5579e7,_0x5415e6[_0x4f7313(0x1cd)],messageTypes['ERROR'],_0x5415e6[_0x4f7313(0x201)],null,_0x5579e7),process[_0x4f7313(0x1ca)](0x1)),console[_0x4f7313(0x1c8)](_0x4f7313(0x1d7)+JSON['stringify'](_0x36cfae)),await _0x5415e6['iHCTM'](sendInstrumentationEvent,_0x5579e7,_0x5415e6[_0x4f7313(0x1cd)],messageTypes[_0x4f7313(0x1dc)],_0x5415e6[_0x4f7313(0x211)],_0x36cfae,_0x5579e7),process[_0x4f7313(0x1ca)](0x1);}catch(_0x5718cd){console[_0x4f7313(0x1c8)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x5718cd[_0x4f7313(0x200)]),await _0x5415e6[_0x4f7313(0x1d8)](sendInstrumentationEvent,_0x5579e7,_0x5415e6[_0x4f7313(0x1cd)],messageTypes[_0x4f7313(0x1dc)],_0x5415e6[_0x4f7313(0x1da)],_0x5718cd,_0x5579e7),process['exit'](0x1);}};function a15_0x1814(){const _0x1ab254=['push','existsSync','8lwHjJY','got','27097048rYRMBY','all-grids','stack','hwofx','../../utils/utilityMethods','kAoiH','queued','status','cluster-name','clusterName','CuRET','unknown-error','builder','yVRRk','grids','name','description','GET','ComNA','EzXit','uuid','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','49BQxhWo','3277388PPBWVd','help','desc','MEqAW','argv','grid-name','command','iHCTM','cMUoi','error','DnTxJ','exit','username','server-error','SqvtV','SuvoC','requestId','usage','readFileSync','3928668RJHbSU','../../config/constants','6318693daqdwV','FxQkY','log','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','pTlxJ','type','eoZnS','ToGNS','ERROR','unauthorised','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','options','parse','5QywOOw','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','274nZuvPf','../../utils/instrumentationUtils','table','sNsXS','statusCode','handler','rDUYj','forEach','running','allGrids','kzewP','1360kqvoWa','bstackUsername','13041200nLmVOk','https://','/packages/cli/get-all-grids','cgLGs','INFO','Browserstack','nIDNG','password','iinMm','550254tprRWK'];a15_0x1814=function(){return _0x1ab254;};return a15_0x1814();}
1
+ function a15_0x477c(){const _0x5d0174=['push','Browserstack','xnubu','body','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','4ENygDM','stringify','yiHfW','aSAHS','UQKMo','exit','INFO','/packages/cli/get-all-grids','LOMix','existsSync','stack','pKcgF','table','clusterName','handler','695241qjcKfa','../../config/constants','cluster-name','\x0aFound\x20the\x20following\x20grids:\x0a','../../utils/instrumentationUtils','bstackAccesskey','sHYZb','Failed\x20to\x20list\x20resources!\x20Error:\x20','pCwte','HMKuy','uuid','VEMXJ','473847LwFLaN','https://','command','error','statusCode','requestId','YtLFa','280WNNVHq','init-not-called','12IGcPAU','type','running','unauthorised','parse','options','usage','1298222FjlFel','40MnIjHw','TljDH','grid-name','unknown-error','XCNRW','YaBcj','vqFJB','status','puTQJ','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','username','forEach','got','help','3343825qBAmaN','iHCek','RPcjs','epilogue','queued','1131515uiGGku','server-error','desc','CzYsV','577106EmBQAx','NzDwg','ERROR','EYRqO','../../utils/utilityMethods','password','log','readFileSync','allGrids','list','description','grids','VXiAF','name','389952broLsr','NRHKu'];a15_0x477c=function(){return _0x5d0174;};return a15_0x477c();}function a15_0x24c0(_0x35a0c3,_0xaa42a3){const _0x477ced=a15_0x477c();return a15_0x24c0=function(_0x24c087,_0x29bfa8){_0x24c087=_0x24c087-0x16c;let _0x422712=_0x477ced[_0x24c087];return _0x422712;},a15_0x24c0(_0x35a0c3,_0xaa42a3);}const a15_0x54d126=a15_0x24c0;(function(_0x2d7731,_0x444039){const _0x3f1eb7=a15_0x24c0,_0x5816ef=_0x2d7731();while(!![]){try{const _0x4a6e40=-parseInt(_0x3f1eb7(0x1a1))/0x1+parseInt(_0x3f1eb7(0x189))/0x2+parseInt(_0x3f1eb7(0x1af))/0x3+-parseInt(_0x3f1eb7(0x1b6))/0x4*(-parseInt(_0x3f1eb7(0x198))/0x5)+parseInt(_0x3f1eb7(0x182))/0x6*(parseInt(_0x3f1eb7(0x19d))/0x7)+parseInt(_0x3f1eb7(0x18a))/0x8*(parseInt(_0x3f1eb7(0x16d))/0x9)+parseInt(_0x3f1eb7(0x180))/0xa*(-parseInt(_0x3f1eb7(0x179))/0xb);if(_0x4a6e40===_0x444039)break;else _0x5816ef['push'](_0x5816ef['shift']());}catch(_0x726e6){_0x5816ef['push'](_0x5816ef['shift']());}}}(a15_0x477c,0x5b575));const fs=require('fs'),got=require(a15_0x54d126(0x196)),{table}=require(a15_0x54d126(0x1c2)),{v4:uuidv4}=require(a15_0x54d126(0x177)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x54d126(0x16e)),{getCredentialsPath,getAuthHeader}=require(a15_0x54d126(0x1a5)),{sendInstrumentationEvent}=require(a15_0x54d126(0x171));exports[a15_0x54d126(0x17b)]=a15_0x54d126(0x1ac),exports[a15_0x54d126(0x19f)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x514117){const _0x136fee=a15_0x54d126,_0x33769e={};_0x33769e[_0x136fee(0x18f)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x33769e[_0x136fee(0x18e)]='boolean',_0x33769e[_0x136fee(0x17f)]=_0x136fee(0x197);const _0x538981=_0x33769e,_0x1b8cc8={};_0x1b8cc8[_0x136fee(0x1ab)]=_0x538981[_0x136fee(0x18f)],_0x1b8cc8[_0x136fee(0x183)]=_0x538981[_0x136fee(0x18e)];const _0x33a190={};return _0x33a190['all-grids']=_0x1b8cc8,_0x514117[_0x136fee(0x188)](HELP_HEADER_MESSAGE[_0x136fee(0x1aa)]['grid'])[_0x136fee(0x19b)](HELP_FOOTER_MESSAGE)[_0x136fee(0x187)](_0x33a190)['help'](_0x538981[_0x136fee(0x17f)])['argv'];},exports[a15_0x54d126(0x16c)]=async function(_0x1ee74b){const _0x5af23c=a15_0x54d126,_0x10580e={'yiHfW':function(_0x15729a){return _0x15729a();},'pCwte':function(_0x350062){return _0x350062();},'vqFJB':_0x5af23c(0x1b5),'RPcjs':function(_0xe4c500,_0x5cd7f6,_0x30e93b,_0x20613c,_0x2ce115,_0x43064d,_0x2e6775){return _0xe4c500(_0x5cd7f6,_0x30e93b,_0x20613c,_0x2ce115,_0x43064d,_0x2e6775);},'UQKMo':'list-grids-called','CzYsV':_0x5af23c(0x181),'NRHKu':function(_0x24d8ab){return _0x24d8ab();},'sHYZb':'GET','iHCek':function(_0x45c658,_0x1726c1,_0x48a1c7){return _0x45c658(_0x1726c1,_0x48a1c7);},'VXiAF':function(_0x190e42,_0x17ba1f,_0x498965,_0x291f7b,_0x389ad3,_0x276634,_0x2c3b82){return _0x190e42(_0x17ba1f,_0x498965,_0x291f7b,_0x389ad3,_0x276634,_0x2c3b82);},'LOMix':function(_0x4c299a,_0x4548e6){return _0x4c299a!==_0x4548e6;},'NzDwg':function(_0x2937fe,_0x5d05c4){return _0x2937fe===_0x5d05c4;},'aSAHS':_0x5af23c(0x170),'TljDH':'grid-id','BGjha':_0x5af23c(0x18c),'NnVaG':_0x5af23c(0x191),'HMKuy':'running','kDecC':_0x5af23c(0x19c),'puTQJ':_0x5af23c(0x16f),'SpNAe':function(_0x512e4a,_0x267899){return _0x512e4a(_0x267899);},'pKcgF':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','JPHTC':function(_0x1f722e,_0x4740b7,_0x16ef61,_0x42ecd1,_0xfbd0f7,_0x727ce,_0x5aeb8c){return _0x1f722e(_0x4740b7,_0x16ef61,_0x42ecd1,_0xfbd0f7,_0x727ce,_0x5aeb8c);},'xnubu':_0x5af23c(0x185),'EYRqO':_0x5af23c(0x19e),'fOEJN':function(_0x576924,_0x2127f2,_0x2e13b8,_0x34ab9c,_0x184f12,_0x487107,_0x498111){return _0x576924(_0x2127f2,_0x2e13b8,_0x34ab9c,_0x184f12,_0x487107,_0x498111);},'VEMXJ':_0x5af23c(0x18d)};try{global_registry[_0x5af23c(0x17e)]=_0x10580e[_0x5af23c(0x1b8)](uuidv4);!fs[_0x5af23c(0x1bf)](_0x10580e[_0x5af23c(0x175)](getCredentialsPath))&&(console[_0x5af23c(0x17c)](_0x10580e[_0x5af23c(0x190)]),await _0x10580e[_0x5af23c(0x19a)](sendInstrumentationEvent,_0x1ee74b,_0x10580e[_0x5af23c(0x1ba)],messageTypes['ERROR'],_0x10580e[_0x5af23c(0x1a0)],null,_0x1ee74b),process[_0x5af23c(0x1bb)](0x1));const _0x5672b6=JSON[_0x5af23c(0x186)](fs[_0x5af23c(0x1a8)](_0x10580e[_0x5af23c(0x1b0)](getCredentialsPath)));let _0x1a7439='https://'+AG_API_URL+'/packages/cli/get-grids';_0x1ee74b[_0x5af23c(0x1a9)]&&(_0x1a7439=_0x5af23c(0x17a)+AG_API_URL+_0x5af23c(0x1bd));const _0x52aeff={'method':_0x10580e[_0x5af23c(0x173)],'headers':_0x10580e[_0x5af23c(0x199)](getAuthHeader,_0x5672b6[_0x5af23c(0x1b2)][_0x5af23c(0x194)],_0x5672b6[_0x5af23c(0x1b2)]['password']),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x5672b6[_0x5af23c(0x1b2)][_0x5af23c(0x194)],global_registry[_0x5af23c(0x172)]=_0x5672b6[_0x5af23c(0x1b2)][_0x5af23c(0x1a6)],_0x10580e[_0x5af23c(0x1ad)](sendInstrumentationEvent,_0x1ee74b,_0x10580e[_0x5af23c(0x1ba)],messageTypes[_0x5af23c(0x1bc)],null,null,_0x1ee74b);const _0x47b403=await _0x10580e[_0x5af23c(0x199)](got,_0x1a7439,_0x52aeff);if(_0x10580e[_0x5af23c(0x1be)](_0x47b403,null)&&_0x10580e[_0x5af23c(0x1be)](_0x47b403,undefined)&&_0x10580e[_0x5af23c(0x1a2)](_0x47b403[_0x5af23c(0x17d)],0xc8)){const _0x1da604=JSON[_0x5af23c(0x186)](_0x47b403[_0x5af23c(0x1b4)]);console[_0x5af23c(0x1a7)](_0x10580e[_0x5af23c(0x1b9)]);const _0x245a45=[];_0x245a45['push']([_0x10580e[_0x5af23c(0x18b)],_0x10580e['BGjha'],_0x10580e['NnVaG'],_0x10580e[_0x5af23c(0x176)],_0x10580e['kDecC'],_0x10580e[_0x5af23c(0x192)]]),_0x1da604[_0x5af23c(0x195)](_0x351d21=>{const _0x1fb186=_0x5af23c;_0x245a45[_0x1fb186(0x1b1)]([_0x351d21['id'],_0x351d21[_0x1fb186(0x1ae)],_0x351d21[_0x1fb186(0x191)],_0x351d21[_0x1fb186(0x184)],_0x351d21['queued'],_0x351d21[_0x1fb186(0x1c3)]]);}),console[_0x5af23c(0x1a7)](_0x10580e['SpNAe'](table,_0x245a45)),process[_0x5af23c(0x1bb)](0x0);}_0x10580e[_0x5af23c(0x1a2)](_0x47b403['statusCode'],0x191)&&(console[_0x5af23c(0x17c)](_0x10580e[_0x5af23c(0x1c1)]),await _0x10580e['JPHTC'](sendInstrumentationEvent,_0x1ee74b,_0x10580e['UQKMo'],messageTypes[_0x5af23c(0x1a3)],_0x10580e[_0x5af23c(0x1b3)],null,_0x1ee74b),process[_0x5af23c(0x1bb)](0x1)),console[_0x5af23c(0x17c)](_0x5af23c(0x193)+JSON[_0x5af23c(0x1b7)](_0x47b403)),await _0x10580e[_0x5af23c(0x19a)](sendInstrumentationEvent,_0x1ee74b,_0x10580e[_0x5af23c(0x1ba)],messageTypes[_0x5af23c(0x1a3)],_0x10580e[_0x5af23c(0x1a4)],_0x47b403,_0x1ee74b),process[_0x5af23c(0x1bb)](0x1);}catch(_0x5d627e){console[_0x5af23c(0x17c)](_0x5af23c(0x174)+_0x5d627e[_0x5af23c(0x1c0)]),await _0x10580e['fOEJN'](sendInstrumentationEvent,_0x1ee74b,_0x10580e[_0x5af23c(0x1ba)],messageTypes[_0x5af23c(0x1a3)],_0x10580e[_0x5af23c(0x178)],_0x5d627e,_0x1ee74b),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a16_0x5b45ad=a16_0x2a42;(function(_0x150221,_0x4f64ed){const _0x45d9a8=a16_0x2a42,_0x2efc26=_0x150221();while(!![]){try{const _0x541702=parseInt(_0x45d9a8(0xdd))/0x1+-parseInt(_0x45d9a8(0xdb))/0x2*(parseInt(_0x45d9a8(0xe0))/0x3)+parseInt(_0x45d9a8(0xd9))/0x4+parseInt(_0x45d9a8(0xd0))/0x5+-parseInt(_0x45d9a8(0xdc))/0x6+parseInt(_0x45d9a8(0xd2))/0x7+-parseInt(_0x45d9a8(0xcc))/0x8;if(_0x541702===_0x4f64ed)break;else _0x2efc26['push'](_0x2efc26['shift']());}catch(_0x2f0b8e){_0x2efc26['push'](_0x2efc26['shift']());}}}(a16_0x5885,0xa283c));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x5b45ad(0xd6));function a16_0x2a42(_0x3d43f1,_0x1b5ce1){const _0x588588=a16_0x5885();return a16_0x2a42=function(_0x2a429e,_0xd7db64){_0x2a429e=_0x2a429e-0xcb;let _0xbf0111=_0x588588[_0x2a429e];return _0xbf0111;},a16_0x2a42(_0x3d43f1,_0x1b5ce1);}function a16_0x5885(){const _0x17a484=['recommendCommands','desc','3109612gGrtPq','commandDir','52dOIjMZ','1999200HviIqx','116640XJloeN','Start\x20an\x20existing\x20Automation\x20grid.','epilogue','2100qpYTLS','help','8976696zxXGiF','builder','usage','strict','2586230gekjRG','qmAcb','5095006KIErIK','demandCommand','start','start_commands','../config/constants'];a16_0x5885=function(){return _0x17a484;};return a16_0x5885();}exports['command']=a16_0x5b45ad(0xd4),exports[a16_0x5b45ad(0xd8)]=a16_0x5b45ad(0xde),exports[a16_0x5b45ad(0xcd)]=function(_0x4475c1){const _0x353b0c=a16_0x5b45ad,_0x51ea0c={};_0x51ea0c[_0x353b0c(0xd1)]=_0x353b0c(0xd5),_0x51ea0c['HhosY']='help';const _0x128619=_0x51ea0c;return _0x4475c1[_0x353b0c(0xce)](HELP_HEADER_MESSAGE[_0x353b0c(0xd4)])[_0x353b0c(0xdf)](HELP_FOOTER_MESSAGE)[_0x353b0c(0xda)](_0x128619[_0x353b0c(0xd1)])[_0x353b0c(0xd3)]()[_0x353b0c(0xd7)]()[_0x353b0c(0xcf)]()[_0x353b0c(0xcb)](_0x128619['HhosY']);},exports['handler']=function(_0x267f26){};
1
+ function a16_0x5428(){const _0x2a4059=['56NslrzK','epilogue','32444280UgCsSJ','6528339yaDPvc','command','3790048yJaUpx','BAFfc','Start\x20an\x20existing\x20Automation\x20grid.','../config/constants','10HpLBiU','builder','handler','1288518szIcsM','827561pTsevc','56OcsIXA','bfjyV','2350092hJwkjc','start','help','start_commands','47562hunjJE','10Sxcqmg','demandCommand'];a16_0x5428=function(){return _0x2a4059;};return a16_0x5428();}function a16_0x4e22(_0x1b2efe,_0x55993c){const _0x54283f=a16_0x5428();return a16_0x4e22=function(_0x4e223b,_0x4c8908){_0x4e223b=_0x4e223b-0x1cc;let _0x7c0f04=_0x54283f[_0x4e223b];return _0x7c0f04;},a16_0x4e22(_0x1b2efe,_0x55993c);}const a16_0x1ec621=a16_0x4e22;(function(_0x5d1208,_0x495534){const _0x24db5a=a16_0x4e22,_0x1a19ef=_0x5d1208();while(!![]){try{const _0x3c3f33=-parseInt(_0x24db5a(0x1e2))/0x1+-parseInt(_0x24db5a(0x1cd))/0x2*(-parseInt(_0x24db5a(0x1d3))/0x3)+parseInt(_0x24db5a(0x1db))/0x4+parseInt(_0x24db5a(0x1df))/0x5*(-parseInt(_0x24db5a(0x1cf))/0x6)+parseInt(_0x24db5a(0x1cc))/0x7*(-parseInt(_0x24db5a(0x1d6))/0x8)+parseInt(_0x24db5a(0x1d9))/0x9*(-parseInt(_0x24db5a(0x1d4))/0xa)+parseInt(_0x24db5a(0x1d8))/0xb;if(_0x3c3f33===_0x495534)break;else _0x1a19ef['push'](_0x1a19ef['shift']());}catch(_0x1bdc1c){_0x1a19ef['push'](_0x1a19ef['shift']());}}}(a16_0x5428,0xaed3a));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x1ec621(0x1de));exports[a16_0x1ec621(0x1da)]=a16_0x1ec621(0x1d0),exports['desc']=a16_0x1ec621(0x1dd),exports[a16_0x1ec621(0x1e0)]=function(_0x5175d5){const _0x40eab1=a16_0x1ec621,_0x57cde2={};_0x57cde2[_0x40eab1(0x1ce)]=_0x40eab1(0x1d2),_0x57cde2[_0x40eab1(0x1dc)]='help';const _0x51b1e0=_0x57cde2;return _0x5175d5['usage'](HELP_HEADER_MESSAGE[_0x40eab1(0x1d0)])[_0x40eab1(0x1d7)](HELP_FOOTER_MESSAGE)['commandDir'](_0x51b1e0[_0x40eab1(0x1ce)])[_0x40eab1(0x1d5)]()['recommendCommands']()['strict']()[_0x40eab1(0x1d1)](_0x51b1e0[_0x40eab1(0x1dc)]);},exports[a16_0x1ec621(0x1e1)]=function(_0x3cbe4e){};
@@ -1 +1 @@
1
- function a17_0x4c4c(_0x229dd8,_0x24e39f){const _0x28ae79=a17_0x28ae();return a17_0x4c4c=function(_0x4c4cfb,_0x180f87){_0x4c4cfb=_0x4c4cfb-0xf1;let _0x1d1729=_0x28ae79[_0x4c4cfb];return _0x1d1729;},a17_0x4c4c(_0x229dd8,_0x24e39f);}function a17_0x28ae(){const _0xf13e62=['NrzKo','dCkOD','argv','username','boolean','existsSync','debug','wrczC','help','2rAAOAI','21rAtswA','AJUIu','region','../../utils/createk8sClient','../../utils/gridComponents','unauthorised','skip-tls-cert-verify','epilogue','type','gridId','../../config/logger','options','server-error','exit','../../cloudproviders/utils','vKSzD','../../config/constants','1114192lqBDnv','mLFYZ','WytdB','statusCode','handler','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','builder','452bXYBgu','init-not-called','IZGrS','LDhLU','description','MhBEY','message','name','IDOYU','parse','kLMEE','<PasswordPlaceholder>','replace','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','27XhBJPn','cloudProvider','../../utils/utilityMethods','WebSocket','error','35513647mOrDnL','25gTdskj','1236SlPjrM','<UsernamePlaceholder>','FJHwy','ERROR','ZUAAj','YnpkX','stringify','782430mrmAlF','dYXxm','info','INFO','AHsWg','978852jQypbN','password','oSnQe','Browserstack','string','Skip\x20insecure\x20cert\x20verification.','command','skipTlsCertVerify','rySQU','grid-id','QRtfV','clusterName','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','body','SquOH','Grid\x20started','user','clusterRegion','PcUhM','HfSXu','52789lkjdtl','reconnecting-websocket','lwGDr','899606nOsTqq','23832TsEodN','desc'];a17_0x28ae=function(){return _0xf13e62;};return a17_0x28ae();}const a17_0x3c1982=a17_0x4c4c;(function(_0x1a777d,_0x491630){const _0x4fb40a=a17_0x4c4c,_0x13f5a3=_0x1a777d();while(!![]){try{const _0x340e37=parseInt(_0x4fb40a(0x135))/0x1*(-parseInt(_0x4fb40a(0x141))/0x2)+-parseInt(_0x4fb40a(0x136))/0x3*(parseInt(_0x4fb40a(0xfd))/0x4)+-parseInt(_0x4fb40a(0x111))/0x5*(parseInt(_0x4fb40a(0x11e))/0x6)+parseInt(_0x4fb40a(0x142))/0x7*(parseInt(_0x4fb40a(0xf6))/0x8)+parseInt(_0x4fb40a(0x10b))/0x9*(-parseInt(_0x4fb40a(0x119))/0xa)+-parseInt(_0x4fb40a(0x132))/0xb*(-parseInt(_0x4fb40a(0x112))/0xc)+parseInt(_0x4fb40a(0x110))/0xd;if(_0x340e37===_0x491630)break;else _0x13f5a3['push'](_0x13f5a3['shift']());}catch(_0x53d097){_0x13f5a3['push'](_0x13f5a3['shift']());}}}(a17_0x28ae,0xc263d));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a17_0x3c1982(0x133)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a17_0x3c1982(0xf5)),{logger}=require(a17_0x3c1982(0x14c)),{getCredentialsPath,getGridDetails}=require(a17_0x3c1982(0x10d)),{scaleUpHubDeployment}=require(a17_0x3c1982(0x146)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a17_0x3c1982(0x145)),{getCloudProviderObject}=require(a17_0x3c1982(0xf3));exports[a17_0x3c1982(0x124)]='grid',exports[a17_0x3c1982(0x137)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a17_0x3c1982(0xfc)]=function(_0x18e36a){const _0xca85a3=a17_0x3c1982,_0x420df8={};_0x420df8[_0xca85a3(0x102)]=_0xca85a3(0x10a),_0x420df8[_0xca85a3(0x138)]=_0xca85a3(0x122),_0x420df8[_0xca85a3(0x131)]=_0xca85a3(0x123),_0x420df8[_0xca85a3(0x11a)]=_0xca85a3(0x13c),_0x420df8[_0xca85a3(0x116)]=_0xca85a3(0x140);const _0x44e67d=_0x420df8,_0x100a12={};_0x100a12['description']=_0x44e67d[_0xca85a3(0x102)],_0x100a12[_0xca85a3(0x14a)]=_0x44e67d['NrzKo'];const _0x4c4584={};_0x4c4584[_0xca85a3(0x101)]=_0x44e67d[_0xca85a3(0x131)],_0x4c4584['type']=_0x44e67d[_0xca85a3(0x11a)],_0x4c4584['default']=![];const _0x26c506={};return _0x26c506[_0xca85a3(0x127)]=_0x100a12,_0x26c506[_0xca85a3(0x148)]=_0x4c4584,_0x18e36a['usage'](HELP_HEADER_MESSAGE['start'])[_0xca85a3(0x149)](HELP_FOOTER_MESSAGE)[_0xca85a3(0x14d)](_0x26c506)[_0xca85a3(0x140)](_0x44e67d[_0xca85a3(0x116)])[_0xca85a3(0x13a)];},exports[a17_0x3c1982(0xfa)]=async function(_0x50cfd4){const _0x5ecbe0=a17_0x3c1982,_0xf6bcf6={'vKSzD':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','IDOYU':function(_0x3220e4){return _0x3220e4();},'IZGrS':_0x5ecbe0(0x12a),'kLMEE':function(_0x16a311,_0x5c682e,_0x43b72e,_0x4d3d9e,_0x2b6de3,_0x4d3155,_0x274047){return _0x16a311(_0x5c682e,_0x43b72e,_0x4d3d9e,_0x2b6de3,_0x4d3155,_0x274047);},'PcUhM':'start-grid-called','tBmWa':_0x5ecbe0(0xfe),'mLFYZ':_0x5ecbe0(0x113),'AJUIu':_0x5ecbe0(0x108),'dCkOD':'Adding\x20Websocket\x20listeners','oSnQe':function(_0x26b2c6,_0x422b9e,_0x47d514,_0x14cb00){return _0x26b2c6(_0x422b9e,_0x47d514,_0x14cb00);},'wrczC':function(_0x33a17d,_0x31ae21,_0x10b642,_0x28263e,_0x279954,_0x362d22,_0xa2948f){return _0x33a17d(_0x31ae21,_0x10b642,_0x28263e,_0x279954,_0x362d22,_0xa2948f);},'SquOH':function(_0x570567,_0x420b64,_0x403611){return _0x570567(_0x420b64,_0x403611);},'lwGDr':_0x5ecbe0(0x12d),'AHsWg':function(_0x423ada,_0xc76460){return _0x423ada===_0xc76460;},'QRtfV':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Mjpcc':function(_0x3eb40a,_0x5a913e,_0x4d5ebb,_0xfd7cf0,_0x502a6b,_0x46b7cc,_0x1b5e19){return _0x3eb40a(_0x5a913e,_0x4d5ebb,_0xfd7cf0,_0x502a6b,_0x46b7cc,_0x1b5e19);},'WytdB':_0x5ecbe0(0x147),'rySQU':function(_0x2fb7e8,_0x2bfeba,_0x3403f0,_0x18d78e,_0x3a6ab2,_0x147e32,_0x454f5a){return _0x2fb7e8(_0x2bfeba,_0x3403f0,_0x18d78e,_0x3a6ab2,_0x147e32,_0x454f5a);},'LDhLU':'invalid-grid-id','YnpkX':function(_0xccdc49,_0x292f70,_0x55da89,_0x4ec69f,_0x340815,_0x4c7c1d,_0x331af4){return _0xccdc49(_0x292f70,_0x55da89,_0x4ec69f,_0x340815,_0x4c7c1d,_0x331af4);},'FJHwy':_0x5ecbe0(0xf1)};let _0x236098;try{!_0x50cfd4[_0x5ecbe0(0x14b)]&&(logger[_0x5ecbe0(0x10f)](_0xf6bcf6[_0x5ecbe0(0xf4)]),process[_0x5ecbe0(0xf2)](0x1));!fs[_0x5ecbe0(0x13d)](_0xf6bcf6[_0x5ecbe0(0x105)](getCredentialsPath))&&(logger[_0x5ecbe0(0x10f)](_0xf6bcf6[_0x5ecbe0(0xff)]),await _0xf6bcf6[_0x5ecbe0(0x107)](sendInstrumentationEvent,_0x50cfd4,_0xf6bcf6[_0x5ecbe0(0x130)],messageTypes['ERROR'],_0xf6bcf6['tBmWa'],null,_0x50cfd4),process['exit'](0x1));logger[_0x5ecbe0(0x11b)]('Starting\x20grid\x20'+_0x50cfd4[_0x5ecbe0(0x14b)]),await _0xf6bcf6[_0x5ecbe0(0x107)](sendInstrumentationEvent,_0x50cfd4,_0xf6bcf6[_0x5ecbe0(0x130)],messageTypes[_0x5ecbe0(0x11c)],null,null,_0x50cfd4);const _0x3d5dfd=JSON[_0x5ecbe0(0x106)](fs['readFileSync'](_0xf6bcf6['IDOYU'](getCredentialsPath)));global_registry['bstackUsername']=_0x3d5dfd['Browserstack'][_0x5ecbe0(0x13b)],global_registry['bstackAccesskey']=_0x3d5dfd[_0x5ecbe0(0x121)][_0x5ecbe0(0x11f)];const _0x50ed8f=WS_ENDPOINT[_0x5ecbe0(0x109)](_0xf6bcf6[_0x5ecbe0(0xf7)],_0x3d5dfd['Browserstack'][_0x5ecbe0(0x13b)])['replace'](_0xf6bcf6[_0x5ecbe0(0x143)],_0x3d5dfd[_0x5ecbe0(0x121)][_0x5ecbe0(0x11f)]),_0x1b4bb={};_0x1b4bb[_0x5ecbe0(0x10e)]=ws,_0x1b4bb['connectionTimeout']=0x36ee80,_0x236098=new ReconnectingWebSocket(_0x50ed8f,[],_0x1b4bb),logger[_0x5ecbe0(0x13e)](_0xf6bcf6[_0x5ecbe0(0x139)]),webSocketUtils['addListeners'](_0x236098,_0x50cfd4[_0x5ecbe0(0x12e)],_0x50cfd4[_0x5ecbe0(0x11f)]);const [_0x2552dd,_0x57721c]=await _0xf6bcf6[_0x5ecbe0(0x120)](getGridDetails,_0x3d5dfd[_0x5ecbe0(0x121)][_0x5ecbe0(0x13b)],_0x3d5dfd[_0x5ecbe0(0x121)][_0x5ecbe0(0x11f)],_0x50cfd4[_0x5ecbe0(0x14b)]);if(_0x57721c){const _0x3ca286=_0x57721c[_0x5ecbe0(0x11b)];global_registry['cloudProvider']=_0x3ca286[_0x5ecbe0(0x10c)],global_registry[_0x5ecbe0(0x12f)]=_0x3ca286[_0x5ecbe0(0x144)],global_registry[_0x5ecbe0(0x129)]=_0x3ca286[_0x5ecbe0(0x129)];const _0xe9abef=await _0xf6bcf6[_0x5ecbe0(0x13f)](getCloudProviderObject,_0x3ca286[_0x5ecbe0(0x10c)],_0x3ca286[_0x5ecbe0(0x129)],_0x3ca286[_0x5ecbe0(0x104)],_0x236098,webSocketUtils,_0x50cfd4),[_0x178a3c,_0x5d4be1,_0x411178,_0x5ae39e,_0x1af5de,_0x276f4a]=await _0xf6bcf6[_0x5ecbe0(0x12c)](createK8sClient,_0xe9abef,_0x50cfd4[_0x5ecbe0(0x125)]);await _0xf6bcf6[_0x5ecbe0(0x12c)](scaleUpHubDeployment,_0x5d4be1,_0x3ca286[_0x5ecbe0(0x104)]),logger[_0x5ecbe0(0x11b)](_0xf6bcf6[_0x5ecbe0(0x134)]),process[_0x5ecbe0(0xf2)](0x0);}_0xf6bcf6['AHsWg'](_0x2552dd[_0x5ecbe0(0xf9)],0x191)&&(logger[_0x5ecbe0(0x10f)](_0xf6bcf6[_0x5ecbe0(0x128)]),await _0xf6bcf6['Mjpcc'](sendInstrumentationEvent,_0x50cfd4,_0xf6bcf6[_0x5ecbe0(0x130)],messageTypes[_0x5ecbe0(0x115)],_0xf6bcf6[_0x5ecbe0(0xf8)],null,_0x50cfd4),process[_0x5ecbe0(0xf2)](0x1)),_0xf6bcf6[_0x5ecbe0(0x11d)](_0x2552dd['statusCode'],0x190)&&(logger[_0x5ecbe0(0x10f)](JSON['parse'](_0x2552dd[_0x5ecbe0(0x12b)])[_0x5ecbe0(0x103)]),await _0xf6bcf6[_0x5ecbe0(0x126)](sendInstrumentationEvent,_0x50cfd4,_0xf6bcf6[_0x5ecbe0(0x130)],messageTypes['ERROR'],_0xf6bcf6[_0x5ecbe0(0x100)],null,_0x50cfd4),process[_0x5ecbe0(0xf2)](0x1)),logger[_0x5ecbe0(0x10f)](_0x5ecbe0(0xfb)+JSON[_0x5ecbe0(0x118)](_0x2552dd)),await _0xf6bcf6[_0x5ecbe0(0x117)](sendInstrumentationEvent,_0x50cfd4,_0xf6bcf6[_0x5ecbe0(0x130)],messageTypes[_0x5ecbe0(0x115)],_0xf6bcf6[_0x5ecbe0(0x114)],_0x2552dd,_0x50cfd4),process[_0x5ecbe0(0xf2)](0x1);}catch(_0x114605){const _0x1725ff='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x114605+'\x20\x0a'+JSON[_0x5ecbe0(0x118)](_0x114605['stack'])+'\x20';logger[_0x5ecbe0(0x10f)](_0x1725ff),process['exit'](0x1);}};
1
+ function a17_0x3160(){const _0x2f0d6a=['TDINl','statusCode','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','start','error','init-not-called','dyRYa','Skip\x20insecure\x20cert\x20verification.','bstackUsername','iMhFV','region','SWiKv','uFWNX','../../utils/createk8sClient','description','help','176379oWrcAP','name','ZsSss','password','RxjBu','1389190yHhFyh','../../utils/webSocketUtils','username','bstackAccesskey','8yANeZh','server-error','exit','lKmqH','krYDH','167932NliIBG','mbijk','Grid\x20started','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','<PasswordPlaceholder>','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../config/constants','90xPaCJv','EtgJI','type','WebSocket','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','unauthorised','7625810QqbUdl','oRzde','body','cloudProvider','88477YDFyTN','3805896ewKxCN','vODrj','debug','existsSync','hKvBQ','LaMWa','eYHGY','default','12LwTjwp','JVOfj','Xhclx','../../cloudproviders/utils','skip-tls-cert-verify','../../utils/instrumentationUtils','Start\x20an\x20existing\x20Automation\x20grid.','replace','argv','handler','clusterRegion','invalid-grid-id','<UsernamePlaceholder>','aVfNK','stack','stringify','ONeth','start-grid-called','grid','builder','desc','info','FKDpB','readFileSync','9gvNrUh','vDdnX','iHxFA','1846614ViqbpL','JdBiN','string','addListeners','INFO','clusterName','ERROR','reconnecting-websocket','Browserstack','parse'];a17_0x3160=function(){return _0x2f0d6a;};return a17_0x3160();}const a17_0x599612=a17_0x10c1;function a17_0x10c1(_0x31b594,_0x349d3e){const _0x316097=a17_0x3160();return a17_0x10c1=function(_0x10c11f,_0x15aa4d){_0x10c11f=_0x10c11f-0x120;let _0x2308be=_0x316097[_0x10c11f];return _0x2308be;},a17_0x10c1(_0x31b594,_0x349d3e);}(function(_0x55b20f,_0x31186b){const _0x42f299=a17_0x10c1,_0x16fcbc=_0x55b20f();while(!![]){try{const _0x88d23=parseInt(_0x42f299(0x15b))/0x1*(-parseInt(_0x42f299(0x145))/0x2)+parseInt(_0x42f299(0x164))/0x3*(-parseInt(_0x42f299(0x14a))/0x4)+parseInt(_0x42f299(0x141))/0x5+parseInt(_0x42f299(0x151))/0x6*(-parseInt(_0x42f299(0x13c))/0x7)+parseInt(_0x42f299(0x15c))/0x8+parseInt(_0x42f299(0x17c))/0x9*(parseInt(_0x42f299(0x157))/0xa)+-parseInt(_0x42f299(0x122))/0xb;if(_0x88d23===_0x31186b)break;else _0x16fcbc['push'](_0x16fcbc['shift']());}catch(_0x32bea3){_0x16fcbc['push'](_0x16fcbc['shift']());}}}(a17_0x3160,0x6d7e7));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a17_0x599612(0x129)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a17_0x599612(0x150)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a17_0x599612(0x169)),webSocketUtils=require(a17_0x599612(0x142)),{createK8sClient}=require(a17_0x599612(0x139)),{getCloudProviderObject}=require(a17_0x599612(0x167));exports['command']=a17_0x599612(0x176),exports[a17_0x599612(0x178)]=a17_0x599612(0x16a),exports[a17_0x599612(0x177)]=function(_0x5ed553){const _0x4e7870=a17_0x599612,_0x5e05be={};_0x5e05be['iMhFV']=_0x4e7870(0x155),_0x5e05be[_0x4e7870(0x120)]=_0x4e7870(0x124),_0x5e05be['krYDH']=_0x4e7870(0x133),_0x5e05be[_0x4e7870(0x121)]='boolean',_0x5e05be[_0x4e7870(0x132)]=_0x4e7870(0x13b);const _0x2c29ca=_0x5e05be,_0x50c564={};_0x50c564[_0x4e7870(0x13a)]=_0x2c29ca[_0x4e7870(0x135)],_0x50c564['type']=_0x2c29ca[_0x4e7870(0x120)];const _0x15265a={};_0x15265a[_0x4e7870(0x13a)]=_0x2c29ca[_0x4e7870(0x149)],_0x15265a[_0x4e7870(0x153)]=_0x2c29ca['iHxFA'],_0x15265a[_0x4e7870(0x163)]=![];const _0x2830de={};return _0x2830de['grid-id']=_0x50c564,_0x2830de[_0x4e7870(0x168)]=_0x15265a,_0x5ed553['usage'](HELP_HEADER_MESSAGE[_0x4e7870(0x12f)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x2830de)[_0x4e7870(0x13b)](_0x2c29ca['dyRYa'])[_0x4e7870(0x16c)];},exports[a17_0x599612(0x16d)]=async function(_0x3d23f3){const _0x32dd06=a17_0x599612,_0x15b08c={'JVOfj':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','ZsSss':function(_0x56e994){return _0x56e994();},'mbijk':_0x32dd06(0x14f),'vODrj':function(_0x5c0ed3,_0x827956,_0x2caf2e,_0x53a27a,_0x2e1c32,_0x4d9dbd,_0x5bff7d){return _0x5c0ed3(_0x827956,_0x2caf2e,_0x53a27a,_0x2e1c32,_0x4d9dbd,_0x5bff7d);},'hKvBQ':_0x32dd06(0x175),'JdBiN':_0x32dd06(0x131),'TDINl':function(_0x277d25){return _0x277d25();},'Xhclx':_0x32dd06(0x170),'eYHGY':_0x32dd06(0x14e),'YFDRa':'Adding\x20Websocket\x20listeners','ONeth':function(_0x2a83a6,_0x2ac18d,_0x5740aa,_0x290fb7){return _0x2a83a6(_0x2ac18d,_0x5740aa,_0x290fb7);},'KgiXL':function(_0x4dc1ce,_0x3edede,_0x455ba7){return _0x4dc1ce(_0x3edede,_0x455ba7);},'RxjBu':function(_0x436ad7,_0x39ba00,_0x3a4549){return _0x436ad7(_0x39ba00,_0x3a4549);},'LaMWa':_0x32dd06(0x14c),'aVfNK':function(_0x158f96,_0x5c94a2){return _0x158f96===_0x5c94a2;},'SWiKv':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','FKDpB':function(_0x560ff2,_0x822f05,_0x226be0,_0x46d69c,_0x3b1bc8,_0x3bfa7d,_0x3786a9){return _0x560ff2(_0x822f05,_0x226be0,_0x46d69c,_0x3b1bc8,_0x3bfa7d,_0x3786a9);},'uFWNX':_0x32dd06(0x156),'lKmqH':function(_0x4ef3fc,_0x5e9a6e){return _0x4ef3fc===_0x5e9a6e;},'EtgJI':_0x32dd06(0x16f),'oRzde':_0x32dd06(0x146)};let _0x11a1d4;try{!_0x3d23f3['gridId']&&(logger[_0x32dd06(0x130)](_0x15b08c[_0x32dd06(0x165)]),process[_0x32dd06(0x147)](0x1));!fs[_0x32dd06(0x15f)](_0x15b08c[_0x32dd06(0x13e)](getCredentialsPath))&&(logger[_0x32dd06(0x130)](_0x15b08c[_0x32dd06(0x14b)]),await _0x15b08c[_0x32dd06(0x15d)](sendInstrumentationEvent,_0x3d23f3,_0x15b08c[_0x32dd06(0x160)],messageTypes[_0x32dd06(0x128)],_0x15b08c[_0x32dd06(0x123)],null,_0x3d23f3),process[_0x32dd06(0x147)](0x1));logger['info']('Starting\x20grid\x20'+_0x3d23f3['gridId']),await _0x15b08c['vODrj'](sendInstrumentationEvent,_0x3d23f3,_0x15b08c[_0x32dd06(0x160)],messageTypes[_0x32dd06(0x126)],null,null,_0x3d23f3);const _0x9c938d=JSON[_0x32dd06(0x12b)](fs[_0x32dd06(0x17b)](_0x15b08c[_0x32dd06(0x12c)](getCredentialsPath)));global_registry[_0x32dd06(0x134)]=_0x9c938d[_0x32dd06(0x12a)][_0x32dd06(0x143)],global_registry[_0x32dd06(0x144)]=_0x9c938d[_0x32dd06(0x12a)][_0x32dd06(0x13f)];const _0x3fa4f6=WS_ENDPOINT[_0x32dd06(0x16b)](_0x15b08c[_0x32dd06(0x166)],_0x9c938d[_0x32dd06(0x12a)][_0x32dd06(0x143)])[_0x32dd06(0x16b)](_0x15b08c[_0x32dd06(0x162)],_0x9c938d[_0x32dd06(0x12a)]['password']),_0x434eb0={};_0x434eb0[_0x32dd06(0x154)]=ws,_0x434eb0['connectionTimeout']=0x36ee80,_0x11a1d4=new ReconnectingWebSocket(_0x3fa4f6,[],_0x434eb0),logger[_0x32dd06(0x15e)](_0x15b08c['YFDRa']),webSocketUtils[_0x32dd06(0x125)](_0x11a1d4,_0x3d23f3['user'],_0x3d23f3[_0x32dd06(0x13f)]);const [_0x4c261b,_0x3ed2ce]=await _0x15b08c[_0x32dd06(0x174)](getGridDetails,_0x9c938d[_0x32dd06(0x12a)]['username'],_0x9c938d[_0x32dd06(0x12a)][_0x32dd06(0x13f)],_0x3d23f3['gridId']);if(_0x3ed2ce){const _0xbc1d9c=_0x3ed2ce[_0x32dd06(0x179)];global_registry['cloudProvider']=_0xbc1d9c['cloudProvider'],global_registry[_0x32dd06(0x16e)]=_0xbc1d9c[_0x32dd06(0x136)],global_registry[_0x32dd06(0x127)]=_0xbc1d9c['clusterName'];const _0x498f28=await _0x15b08c[_0x32dd06(0x15d)](getCloudProviderObject,_0xbc1d9c[_0x32dd06(0x15a)],_0xbc1d9c[_0x32dd06(0x127)],_0xbc1d9c[_0x32dd06(0x13d)],_0x11a1d4,webSocketUtils,_0x3d23f3),[_0x13bf12,_0x176a00,_0x162979,_0x38a560,_0x3e61cc,_0x56e760]=await _0x15b08c['KgiXL'](createK8sClient,_0x498f28,_0x3d23f3['skipTlsCertVerify']);await _0x15b08c[_0x32dd06(0x140)](scaleUpHubDeployment,_0x176a00,_0xbc1d9c[_0x32dd06(0x13d)]),logger[_0x32dd06(0x179)](_0x15b08c[_0x32dd06(0x161)]),process['exit'](0x0);}_0x15b08c[_0x32dd06(0x171)](_0x4c261b[_0x32dd06(0x12d)],0x191)&&(logger[_0x32dd06(0x130)](_0x15b08c[_0x32dd06(0x137)]),await _0x15b08c[_0x32dd06(0x17a)](sendInstrumentationEvent,_0x3d23f3,_0x15b08c['hKvBQ'],messageTypes[_0x32dd06(0x128)],_0x15b08c[_0x32dd06(0x138)],null,_0x3d23f3),process[_0x32dd06(0x147)](0x1)),_0x15b08c[_0x32dd06(0x148)](_0x4c261b['statusCode'],0x190)&&(logger[_0x32dd06(0x130)](JSON[_0x32dd06(0x12b)](_0x4c261b[_0x32dd06(0x159)])['message']),await _0x15b08c[_0x32dd06(0x15d)](sendInstrumentationEvent,_0x3d23f3,_0x15b08c['hKvBQ'],messageTypes[_0x32dd06(0x128)],_0x15b08c[_0x32dd06(0x152)],null,_0x3d23f3),process[_0x32dd06(0x147)](0x1)),logger[_0x32dd06(0x130)](_0x32dd06(0x12e)+JSON[_0x32dd06(0x173)](_0x4c261b)),await _0x15b08c[_0x32dd06(0x15d)](sendInstrumentationEvent,_0x3d23f3,_0x15b08c[_0x32dd06(0x160)],messageTypes[_0x32dd06(0x128)],_0x15b08c[_0x32dd06(0x158)],_0x4c261b,_0x3d23f3),process['exit'](0x1);}catch(_0x2983bb){const _0x3aa422=_0x32dd06(0x14d)+_0x2983bb+'\x20\x0a'+JSON[_0x32dd06(0x173)](_0x2983bb[_0x32dd06(0x172)])+'\x20';logger[_0x32dd06(0x130)](_0x3aa422),process[_0x32dd06(0x147)](0x1);}};
@@ -1 +1 @@
1
- function a18_0x66f4(_0x5417b2,_0x595e93){const _0xeb6f28=a18_0xeb6f();return a18_0x66f4=function(_0x66f46d,_0x36ea1d){_0x66f46d=_0x66f46d-0xfc;let _0x1899c4=_0xeb6f28[_0x66f46d];return _0x1899c4;},a18_0x66f4(_0x5417b2,_0x595e93);}const a18_0x30a298=a18_0x66f4;(function(_0x2839b2,_0x5e3ebe){const _0x46421b=a18_0x66f4,_0x4feb82=_0x2839b2();while(!![]){try{const _0x4a3c2e=-parseInt(_0x46421b(0x10a))/0x1+-parseInt(_0x46421b(0x104))/0x2+parseInt(_0x46421b(0x108))/0x3+-parseInt(_0x46421b(0x10f))/0x4*(-parseInt(_0x46421b(0x110))/0x5)+parseInt(_0x46421b(0xfd))/0x6*(-parseInt(_0x46421b(0xfe))/0x7)+-parseInt(_0x46421b(0x10d))/0x8*(-parseInt(_0x46421b(0x103))/0x9)+parseInt(_0x46421b(0xff))/0xa;if(_0x4a3c2e===_0x5e3ebe)break;else _0x4feb82['push'](_0x4feb82['shift']());}catch(_0x360789){_0x4feb82['push'](_0x4feb82['shift']());}}}(a18_0xeb6f,0xa8cf5));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a18_0x30a298(0x106),exports[a18_0x30a298(0x100)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a18_0x30a298(0x101)]=function(_0x29c913){const _0x259f42=a18_0x30a298,_0x1c3f09={};_0x1c3f09[_0x259f42(0x10c)]=_0x259f42(0x10e),_0x1c3f09[_0x259f42(0x105)]='help';const _0x396314=_0x1c3f09;return _0x29c913[_0x259f42(0x10b)](HELP_HEADER_MESSAGE[_0x259f42(0x106)])[_0x259f42(0xfc)](HELP_FOOTER_MESSAGE)['commandDir'](_0x396314[_0x259f42(0x10c)])['demandCommand']()[_0x259f42(0x107)]()[_0x259f42(0x111)]()[_0x259f42(0x109)](_0x396314[_0x259f42(0x105)]);},exports[a18_0x30a298(0x102)]=function(_0x40ad94){};function a18_0xeb6f(){const _0x509d85=['strict','epilogue','3804flgZaQ','2569CaSpMM','13623890JUIzhf','desc','builder','handler','1503QafIiq','1654810NiqoOx','pmQes','stop','recommendCommands','1428546uWKqZJ','help','961969tBiNVK','usage','ROawl','2896jPkWvV','stop_commands','32NoAhCZ','509045JGwleb'];a18_0xeb6f=function(){return _0x509d85;};return a18_0xeb6f();}
1
+ const a18_0x53b42d=a18_0x597c;function a18_0x5003(){const _0x52d687=['builder','desc','392xLhPgM','2922HuuXgp','commandDir','tZsvx','jMUqe','8463QVJoNG','command','804cmjjoC','strict','help','747560UBXOaB','stop','epilogue','recommendCommands','1488060KbjqJc','handler','125502YRUJRz','demandCommand','74860xwPaBz','704208kzuHMo'];a18_0x5003=function(){return _0x52d687;};return a18_0x5003();}(function(_0x30c89e,_0x5681e5){const _0xb6c09b=a18_0x597c,_0x44dff7=_0x30c89e();while(!![]){try{const _0x25d1b5=parseInt(_0xb6c09b(0x169))/0x1+parseInt(_0xb6c09b(0x167))/0x2+-parseInt(_0xb6c09b(0x16e))/0x3*(parseInt(_0xb6c09b(0x16d))/0x4)+parseInt(_0xb6c09b(0x161))/0x5+-parseInt(_0xb6c09b(0x174))/0x6*(-parseInt(_0xb6c09b(0x172))/0x7)+-parseInt(_0xb6c09b(0x16a))/0x8+-parseInt(_0xb6c09b(0x165))/0x9;if(_0x25d1b5===_0x5681e5)break;else _0x44dff7['push'](_0x44dff7['shift']());}catch(_0x51856f){_0x44dff7['push'](_0x44dff7['shift']());}}}(a18_0x5003,0x187d7));function a18_0x597c(_0x3b3963,_0x4c1093){const _0x5003b5=a18_0x5003();return a18_0x597c=function(_0x597c25,_0x93454e){_0x597c25=_0x597c25-0x15f;let _0x3e921e=_0x5003b5[_0x597c25];return _0x3e921e;},a18_0x597c(_0x3b3963,_0x4c1093);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a18_0x53b42d(0x173)]=a18_0x53b42d(0x162),exports[a18_0x53b42d(0x16c)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a18_0x53b42d(0x16b)]=function(_0x16bd4f){const _0x545af6=a18_0x53b42d,_0x3552a1={};_0x3552a1[_0x545af6(0x170)]='stop_commands',_0x3552a1[_0x545af6(0x171)]=_0x545af6(0x160);const _0x3ba19e=_0x3552a1;return _0x16bd4f['usage'](HELP_HEADER_MESSAGE['stop'])[_0x545af6(0x163)](HELP_FOOTER_MESSAGE)[_0x545af6(0x16f)](_0x3ba19e[_0x545af6(0x170)])[_0x545af6(0x168)]()[_0x545af6(0x164)]()[_0x545af6(0x15f)]()[_0x545af6(0x160)](_0x3ba19e[_0x545af6(0x171)]);},exports[a18_0x53b42d(0x166)]=function(_0x2e0156){};
@@ -1 +1 @@
1
- const a19_0x51a015=a19_0x1b0b;function a19_0x1b0b(_0x49de22,_0x5be8a7){const _0x53284e=a19_0x5328();return a19_0x1b0b=function(_0x1b0b4c,_0x195741){_0x1b0b4c=_0x1b0b4c-0x127;let _0x2c07f7=_0x53284e[_0x1b0b4c];return _0x2c07f7;},a19_0x1b0b(_0x49de22,_0x5be8a7);}(function(_0x22ff70,_0x505f86){const _0x56412d=a19_0x1b0b,_0x2cbaec=_0x22ff70();while(!![]){try{const _0x5ee929=-parseInt(_0x56412d(0x12a))/0x1*(-parseInt(_0x56412d(0x15d))/0x2)+-parseInt(_0x56412d(0x16c))/0x3*(parseInt(_0x56412d(0x185))/0x4)+-parseInt(_0x56412d(0x16a))/0x5*(-parseInt(_0x56412d(0x131))/0x6)+-parseInt(_0x56412d(0x12e))/0x7+-parseInt(_0x56412d(0x17b))/0x8+-parseInt(_0x56412d(0x164))/0x9+parseInt(_0x56412d(0x141))/0xa;if(_0x5ee929===_0x505f86)break;else _0x2cbaec['push'](_0x2cbaec['shift']());}catch(_0xf25a8c){_0x2cbaec['push'](_0x2cbaec['shift']());}}}(a19_0x5328,0xe4419));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x51a015(0x14b)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x51a015(0x139)),{scaleDownHubDeployment}=require(a19_0x51a015(0x16e)),{sendInstrumentationEvent}=require(a19_0x51a015(0x13f)),webSocketUtils=require(a19_0x51a015(0x150)),{createK8sClient}=require(a19_0x51a015(0x175)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a19_0x5328(){const _0x258547=['24ExlbVk','readFileSync','handler','amPyX','LPcnW','argv','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','stringify','../../utils/utilityMethods','server-error','region','QAeMP','boolean','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/instrumentationUtils','command','23914250wlOHlQ','NFtZn','qEIev','skip-tls-cert-verify','options','existsSync','cloudProvider','bstackUsername','grid-id','stop-grid-called','../../config/constants','nUPTy','<UsernamePlaceholder>','EgHrX','stop','../../utils/webSocketUtils','body','builder','clusterName','statusCode','fcLhu','exit','debug','unauthorised','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','Browserstack','DLkEG','rpYxu','2FXtafQ','fCyvD','desc','user','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','addListeners','bstackAccesskey','10753173BwQApv','Adding\x20Websocket\x20listeners','Skip\x20insecure\x20cert\x20verification.','YLWWx','type','grid','1350040mAWiRZ','tZNkL','3780uvXaFM','info','../../utils/gridComponents','gridId','<PasswordPlaceholder>','WebSocket','connectionTimeout','stack','tfARM','../../utils/createk8sClient','error','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','username','string','oqVUe','4194784HbggYu','name','INFO','FVobm','description','password','ERROR','replace','kLGpq','XvovE','1568HWOEqo','Stop\x20a\x20running\x20Automation\x20grid.','parse','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','1112424mPNgMa','WCgYW','default','skipTlsCertVerify','10051153JtAQVo','invalid-grid-id','viOuN'];a19_0x5328=function(){return _0x258547;};return a19_0x5328();}exports[a19_0x51a015(0x140)]=a19_0x51a015(0x169),exports[a19_0x51a015(0x15f)]=a19_0x51a015(0x127),exports[a19_0x51a015(0x152)]=function(_0x1b9ded){const _0x2ce92a=a19_0x51a015,_0x3cc1ad={};_0x3cc1ad[_0x2ce92a(0x17e)]=_0x2ce92a(0x129),_0x3cc1ad[_0x2ce92a(0x17a)]=_0x2ce92a(0x179),_0x3cc1ad[_0x2ce92a(0x12b)]=_0x2ce92a(0x166),_0x3cc1ad['tZNkL']=_0x2ce92a(0x13d),_0x3cc1ad[_0x2ce92a(0x15b)]='help';const _0x5af2b8=_0x3cc1ad,_0x31ef71={};_0x31ef71[_0x2ce92a(0x17f)]=_0x5af2b8[_0x2ce92a(0x17e)],_0x31ef71[_0x2ce92a(0x168)]=_0x5af2b8[_0x2ce92a(0x17a)];const _0x535270={};_0x535270[_0x2ce92a(0x17f)]=_0x5af2b8['WCgYW'],_0x535270[_0x2ce92a(0x168)]=_0x5af2b8[_0x2ce92a(0x16b)],_0x535270[_0x2ce92a(0x12c)]=![];const _0x245526={};return _0x245526[_0x2ce92a(0x149)]=_0x31ef71,_0x245526[_0x2ce92a(0x144)]=_0x535270,_0x1b9ded['usage'](HELP_HEADER_MESSAGE[_0x2ce92a(0x14f)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2ce92a(0x145)](_0x245526)['help'](_0x5af2b8[_0x2ce92a(0x15b)])[_0x2ce92a(0x136)];},exports[a19_0x51a015(0x133)]=async function(_0x21689d){const _0x63fb90=a19_0x51a015,_0x2807c5={'LPcnW':_0x63fb90(0x159),'MveFu':function(_0x101a67){return _0x101a67();},'rpYxu':_0x63fb90(0x13e),'YLWWx':function(_0x127074,_0x38946a,_0x223f38,_0x44ec17,_0x3d59cd,_0x33765a,_0xd5dc4){return _0x127074(_0x38946a,_0x223f38,_0x44ec17,_0x3d59cd,_0x33765a,_0xd5dc4);},'EgHrX':_0x63fb90(0x14a),'nUPTy':'init-not-called','NFtZn':function(_0x26ce0e,_0x39a254,_0x1d260a,_0x2a2bad,_0x13e0c6,_0x508d87,_0x10ae81){return _0x26ce0e(_0x39a254,_0x1d260a,_0x2a2bad,_0x13e0c6,_0x508d87,_0x10ae81);},'VhDOg':_0x63fb90(0x14d),'nXyFg':_0x63fb90(0x170),'fcLhu':_0x63fb90(0x165),'qEIev':function(_0x4dae0e,_0x5275f7,_0x5418c9,_0x2a312a){return _0x4dae0e(_0x5275f7,_0x5418c9,_0x2a312a);},'tfARM':function(_0x2c3b89,_0x44e3fa,_0x176f28,_0x588cae,_0x398fc3,_0x4cc723,_0xb0f8f4){return _0x2c3b89(_0x44e3fa,_0x176f28,_0x588cae,_0x398fc3,_0x4cc723,_0xb0f8f4);},'amPyX':function(_0x34714a,_0x808a8f,_0x396bca){return _0x34714a(_0x808a8f,_0x396bca);},'kYZFE':'Grid\x20stoppped.','gthId':function(_0x30fbf6,_0x82a9fb){return _0x30fbf6===_0x82a9fb;},'fCyvD':_0x63fb90(0x161),'QAeMP':function(_0x59c752,_0x2bd11f,_0x558ce7,_0x1b974f,_0x2a1731,_0x52f1a7,_0x403c31){return _0x59c752(_0x2bd11f,_0x558ce7,_0x1b974f,_0x2a1731,_0x52f1a7,_0x403c31);},'kLGpq':_0x63fb90(0x158),'dZsmi':function(_0x289f7f,_0x45e3b7){return _0x289f7f===_0x45e3b7;},'XvovE':function(_0x2cd463,_0x475212,_0x35ff0b,_0x1d3734,_0x59aad7,_0x2bddb9,_0x2a2b28){return _0x2cd463(_0x475212,_0x35ff0b,_0x1d3734,_0x59aad7,_0x2bddb9,_0x2a2b28);},'YDoTV':_0x63fb90(0x12f),'KtaJK':function(_0x418148,_0x418a93,_0x17b1d4,_0x2d09f6,_0x5e09c7,_0x5bf2da,_0x33f50a){return _0x418148(_0x418a93,_0x17b1d4,_0x2d09f6,_0x5e09c7,_0x5bf2da,_0x33f50a);},'viOuN':_0x63fb90(0x13a)};let _0x247526;try{!_0x21689d['gridId']&&(logger[_0x63fb90(0x176)](_0x2807c5[_0x63fb90(0x135)]),process[_0x63fb90(0x156)](0x1));!fs[_0x63fb90(0x146)](_0x2807c5['MveFu'](getCredentialsPath))&&(logger[_0x63fb90(0x176)](_0x2807c5[_0x63fb90(0x15c)]),await _0x2807c5[_0x63fb90(0x167)](sendInstrumentationEvent,_0x21689d,_0x2807c5[_0x63fb90(0x14e)],messageTypes['ERROR'],_0x2807c5[_0x63fb90(0x14c)],null,_0x21689d),process[_0x63fb90(0x156)](0x1));logger[_0x63fb90(0x16d)]('Stopping\x20grid\x20'+_0x21689d[_0x63fb90(0x16f)]),await _0x2807c5[_0x63fb90(0x142)](sendInstrumentationEvent,_0x21689d,_0x2807c5[_0x63fb90(0x14e)],messageTypes[_0x63fb90(0x17d)],null,null,_0x21689d);const _0x152c84=JSON[_0x63fb90(0x128)](fs[_0x63fb90(0x132)](_0x2807c5['MveFu'](getCredentialsPath)));global_registry[_0x63fb90(0x148)]=_0x152c84[_0x63fb90(0x15a)][_0x63fb90(0x178)],global_registry[_0x63fb90(0x163)]=_0x152c84['Browserstack']['password'];const _0x299895=WS_ENDPOINT['replace'](_0x2807c5['VhDOg'],_0x152c84['Browserstack'][_0x63fb90(0x178)])[_0x63fb90(0x182)](_0x2807c5['nXyFg'],_0x152c84[_0x63fb90(0x15a)][_0x63fb90(0x180)]),_0x13b8b9={};_0x13b8b9[_0x63fb90(0x171)]=ws,_0x13b8b9[_0x63fb90(0x172)]=0x36ee80,_0x247526=new ReconnectingWebSocket(_0x299895,[],_0x13b8b9),logger[_0x63fb90(0x157)](_0x2807c5[_0x63fb90(0x155)]),webSocketUtils[_0x63fb90(0x162)](_0x247526,_0x21689d[_0x63fb90(0x160)],_0x21689d[_0x63fb90(0x180)]);const [_0x50b6f6,_0x1cc614]=await _0x2807c5[_0x63fb90(0x143)](getGridDetails,_0x152c84['Browserstack'][_0x63fb90(0x178)],_0x152c84[_0x63fb90(0x15a)][_0x63fb90(0x180)],_0x21689d[_0x63fb90(0x16f)]);if(_0x1cc614){const _0x465ed0=_0x1cc614[_0x63fb90(0x16d)];global_registry[_0x63fb90(0x147)]=_0x465ed0['cloudProvider'],global_registry['clusterRegion']=_0x465ed0[_0x63fb90(0x13b)],global_registry[_0x63fb90(0x153)]=_0x465ed0[_0x63fb90(0x153)];const _0x2b78f4=await _0x2807c5[_0x63fb90(0x174)](getCloudProviderObject,_0x465ed0[_0x63fb90(0x147)],_0x465ed0[_0x63fb90(0x153)],_0x465ed0[_0x63fb90(0x17c)],_0x247526,webSocketUtils,_0x21689d),[_0x287557,_0x19ae10,_0x402258,_0x48ac9c,_0x51c1af,_0x200bac]=await _0x2807c5['amPyX'](createK8sClient,_0x2b78f4,_0x21689d[_0x63fb90(0x12d)]);await _0x2807c5[_0x63fb90(0x134)](scaleDownHubDeployment,_0x19ae10,_0x465ed0[_0x63fb90(0x17c)]),logger[_0x63fb90(0x16d)](_0x2807c5['kYZFE']),process[_0x63fb90(0x156)](0x0);}_0x2807c5['gthId'](_0x50b6f6[_0x63fb90(0x154)],0x191)&&(logger[_0x63fb90(0x176)](_0x2807c5[_0x63fb90(0x15e)]),await _0x2807c5[_0x63fb90(0x13c)](sendInstrumentationEvent,_0x21689d,_0x2807c5['EgHrX'],messageTypes[_0x63fb90(0x181)],_0x2807c5[_0x63fb90(0x183)],null,_0x21689d),process[_0x63fb90(0x156)](0x1)),_0x2807c5['dZsmi'](_0x50b6f6[_0x63fb90(0x154)],0x190)&&(logger[_0x63fb90(0x176)](JSON[_0x63fb90(0x128)](_0x50b6f6[_0x63fb90(0x151)])['message']),await _0x2807c5[_0x63fb90(0x184)](sendInstrumentationEvent,_0x21689d,_0x2807c5[_0x63fb90(0x14e)],messageTypes[_0x63fb90(0x181)],_0x2807c5['YDoTV'],null,_0x21689d),process[_0x63fb90(0x156)](0x1)),logger['error'](_0x63fb90(0x137)+JSON[_0x63fb90(0x138)](_0x50b6f6)),await _0x2807c5['KtaJK'](sendInstrumentationEvent,_0x21689d,_0x2807c5[_0x63fb90(0x14e)],messageTypes[_0x63fb90(0x181)],_0x2807c5[_0x63fb90(0x130)],_0x50b6f6,_0x21689d),process[_0x63fb90(0x156)](0x1);}catch(_0x2b1b7b){const _0x215426=_0x63fb90(0x177)+_0x2b1b7b+'\x20\x0a'+JSON[_0x63fb90(0x138)](_0x2b1b7b[_0x63fb90(0x173)])+'\x20';logger[_0x63fb90(0x176)](_0x215426),process[_0x63fb90(0x156)](0x1);}};
1
+ const a19_0x391a35=a19_0x3307;(function(_0x4dbd7a,_0xe46a3f){const _0x2b3d13=a19_0x3307,_0x1564c4=_0x4dbd7a();while(!![]){try{const _0x327284=parseInt(_0x2b3d13(0x21c))/0x1*(-parseInt(_0x2b3d13(0x214))/0x2)+-parseInt(_0x2b3d13(0x21f))/0x3*(-parseInt(_0x2b3d13(0x20e))/0x4)+-parseInt(_0x2b3d13(0x218))/0x5*(parseInt(_0x2b3d13(0x207))/0x6)+parseInt(_0x2b3d13(0x1e2))/0x7+-parseInt(_0x2b3d13(0x1dd))/0x8*(-parseInt(_0x2b3d13(0x1fe))/0x9)+-parseInt(_0x2b3d13(0x1da))/0xa+parseInt(_0x2b3d13(0x1ef))/0xb*(parseInt(_0x2b3d13(0x200))/0xc);if(_0x327284===_0xe46a3f)break;else _0x1564c4['push'](_0x1564c4['shift']());}catch(_0x3e4888){_0x1564c4['push'](_0x1564c4['shift']());}}}(a19_0x39a9,0x4c08f));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x391a35(0x1df)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x391a35(0x201)),{logger}=require(a19_0x391a35(0x203)),{getCredentialsPath,getGridDetails}=require(a19_0x391a35(0x1d5)),{scaleDownHubDeployment}=require(a19_0x391a35(0x1e8)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x391a35(0x224)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0x391a35(0x20b));function a19_0x3307(_0x262f99,_0x3a7227){const _0x39a930=a19_0x39a9();return a19_0x3307=function(_0x330712,_0x4d4863){_0x330712=_0x330712-0x1cf;let _0x178121=_0x39a930[_0x330712];return _0x178121;},a19_0x3307(_0x262f99,_0x3a7227);}exports[a19_0x391a35(0x1f4)]='grid',exports[a19_0x391a35(0x1d6)]=a19_0x391a35(0x1fb),exports[a19_0x391a35(0x21d)]=function(_0x49b497){const _0x5f2992=a19_0x391a35,_0x17c97f={};_0x17c97f[_0x5f2992(0x20a)]=_0x5f2992(0x1f7),_0x17c97f['gKTPw']=_0x5f2992(0x206),_0x17c97f['iRtMt']='Skip\x20insecure\x20cert\x20verification.',_0x17c97f[_0x5f2992(0x1f9)]='boolean',_0x17c97f[_0x5f2992(0x1f6)]=_0x5f2992(0x1d8);const _0x673b42=_0x17c97f,_0x5af517={};_0x5af517[_0x5f2992(0x1e3)]=_0x673b42[_0x5f2992(0x20a)],_0x5af517[_0x5f2992(0x1f1)]=_0x673b42['gKTPw'];const _0x138deb={};_0x138deb[_0x5f2992(0x1e3)]=_0x673b42['iRtMt'],_0x138deb[_0x5f2992(0x1f1)]=_0x673b42[_0x5f2992(0x1f9)],_0x138deb[_0x5f2992(0x220)]=![];const _0x5b239d={};return _0x5b239d[_0x5f2992(0x1d4)]=_0x5af517,_0x5b239d[_0x5f2992(0x1d2)]=_0x138deb,_0x49b497['usage'](HELP_HEADER_MESSAGE[_0x5f2992(0x1ea)])[_0x5f2992(0x1f5)](HELP_FOOTER_MESSAGE)[_0x5f2992(0x212)](_0x5b239d)[_0x5f2992(0x1d8)](_0x673b42[_0x5f2992(0x1f6)])[_0x5f2992(0x1eb)];},exports[a19_0x391a35(0x1fa)]=async function(_0x1a2257){const _0x4a4074=a19_0x391a35,_0x5736f1={'HlrMc':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','IeJYE':function(_0x1b35fa){return _0x1b35fa();},'eAkFj':_0x4a4074(0x216),'awYom':function(_0x5bce90,_0x643564,_0x59648f,_0x4d77c6,_0x56d7f7,_0x1d2120,_0x164379){return _0x5bce90(_0x643564,_0x59648f,_0x4d77c6,_0x56d7f7,_0x1d2120,_0x164379);},'WkfKB':_0x4a4074(0x1f2),'zSest':_0x4a4074(0x21a),'DkKGU':function(_0x8a49b6,_0x5b325c,_0x38cfe1,_0x8a2888,_0xaaa164,_0x1362d4,_0x3e4395){return _0x8a49b6(_0x5b325c,_0x38cfe1,_0x8a2888,_0xaaa164,_0x1362d4,_0x3e4395);},'fmVZN':'<UsernamePlaceholder>','lIMfY':'<PasswordPlaceholder>','QDSct':_0x4a4074(0x1fd),'eDcei':function(_0xc05a89,_0xd20b78,_0x1470b9,_0x10aa76){return _0xc05a89(_0xd20b78,_0x1470b9,_0x10aa76);},'gibaX':function(_0x354020,_0x5aa653,_0x17f946,_0xc7926b,_0x4e10e7,_0x643ad0,_0x5c4dd9){return _0x354020(_0x5aa653,_0x17f946,_0xc7926b,_0x4e10e7,_0x643ad0,_0x5c4dd9);},'DDtWk':function(_0x1841c7,_0x59200a,_0x51c7ef){return _0x1841c7(_0x59200a,_0x51c7ef);},'hwYds':_0x4a4074(0x1e7),'AdATw':function(_0x35d5d1,_0x1d93b6){return _0x35d5d1===_0x1d93b6;},'Ntbfq':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','rkKQx':function(_0x3a6d60,_0x5ecace,_0x18fe4f,_0x2474c1,_0x44d812,_0x440879,_0x1c7dee){return _0x3a6d60(_0x5ecace,_0x18fe4f,_0x2474c1,_0x44d812,_0x440879,_0x1c7dee);},'FKoWW':_0x4a4074(0x1dc),'zAabG':function(_0x3f22de,_0x3a677a){return _0x3f22de===_0x3a677a;},'gNfel':function(_0x5bc291,_0x2b1a62,_0x4f0f5a,_0x8a80bd,_0x5d2280,_0x2b0505,_0x1a695b){return _0x5bc291(_0x2b1a62,_0x4f0f5a,_0x8a80bd,_0x5d2280,_0x2b0505,_0x1a695b);},'nVPEq':_0x4a4074(0x1d0),'YZSix':_0x4a4074(0x225)};let _0x44c63c;try{!_0x1a2257[_0x4a4074(0x21e)]&&(logger[_0x4a4074(0x1cf)](_0x5736f1[_0x4a4074(0x1ff)]),process[_0x4a4074(0x209)](0x1));!fs['existsSync'](_0x5736f1['IeJYE'](getCredentialsPath))&&(logger['error'](_0x5736f1['eAkFj']),await _0x5736f1[_0x4a4074(0x1e5)](sendInstrumentationEvent,_0x1a2257,_0x5736f1[_0x4a4074(0x1e6)],messageTypes[_0x4a4074(0x1ed)],_0x5736f1[_0x4a4074(0x217)],null,_0x1a2257),process[_0x4a4074(0x209)](0x1));logger[_0x4a4074(0x208)](_0x4a4074(0x1fc)+_0x1a2257[_0x4a4074(0x21e)]),await _0x5736f1[_0x4a4074(0x204)](sendInstrumentationEvent,_0x1a2257,_0x5736f1['WkfKB'],messageTypes['INFO'],null,null,_0x1a2257);const _0x128334=JSON[_0x4a4074(0x1d7)](fs['readFileSync'](_0x5736f1['IeJYE'](getCredentialsPath)));global_registry[_0x4a4074(0x20c)]=_0x128334[_0x4a4074(0x223)]['username'],global_registry['bstackAccesskey']=_0x128334[_0x4a4074(0x223)][_0x4a4074(0x202)];const _0x439956=WS_ENDPOINT[_0x4a4074(0x219)](_0x5736f1[_0x4a4074(0x1de)],_0x128334[_0x4a4074(0x223)]['username'])['replace'](_0x5736f1['lIMfY'],_0x128334[_0x4a4074(0x223)][_0x4a4074(0x202)]),_0xe4456d={};_0xe4456d[_0x4a4074(0x1db)]=ws,_0xe4456d[_0x4a4074(0x221)]=0x36ee80,_0x44c63c=new ReconnectingWebSocket(_0x439956,[],_0xe4456d),logger['debug'](_0x5736f1[_0x4a4074(0x1ec)]),webSocketUtils[_0x4a4074(0x20f)](_0x44c63c,_0x1a2257[_0x4a4074(0x20d)],_0x1a2257[_0x4a4074(0x202)]);const [_0x346932,_0x497607]=await _0x5736f1['eDcei'](getGridDetails,_0x128334[_0x4a4074(0x223)][_0x4a4074(0x1f8)],_0x128334[_0x4a4074(0x223)][_0x4a4074(0x202)],_0x1a2257[_0x4a4074(0x21e)]);if(_0x497607){const _0x3f3681=_0x497607[_0x4a4074(0x208)];global_registry[_0x4a4074(0x210)]=_0x3f3681[_0x4a4074(0x210)],global_registry['clusterRegion']=_0x3f3681['region'],global_registry[_0x4a4074(0x1d1)]=_0x3f3681[_0x4a4074(0x1d1)];const _0xe7e7a=await _0x5736f1['gibaX'](getCloudProviderObject,_0x3f3681[_0x4a4074(0x210)],_0x3f3681[_0x4a4074(0x1d1)],_0x3f3681[_0x4a4074(0x1f0)],_0x44c63c,webSocketUtils,_0x1a2257),[_0xfceeca,_0x57b4a5,_0x51a149,_0x5aa621,_0x1e930e,_0x47fa41]=await _0x5736f1[_0x4a4074(0x1d9)](createK8sClient,_0xe7e7a,_0x1a2257[_0x4a4074(0x1f3)]);await _0x5736f1['DDtWk'](scaleDownHubDeployment,_0x57b4a5,_0x3f3681['name']),logger[_0x4a4074(0x208)](_0x5736f1['hwYds']),process[_0x4a4074(0x209)](0x0);}_0x5736f1['AdATw'](_0x346932[_0x4a4074(0x213)],0x191)&&(logger[_0x4a4074(0x1cf)](_0x5736f1[_0x4a4074(0x215)]),await _0x5736f1[_0x4a4074(0x226)](sendInstrumentationEvent,_0x1a2257,_0x5736f1[_0x4a4074(0x1e6)],messageTypes[_0x4a4074(0x1ed)],_0x5736f1[_0x4a4074(0x1e0)],null,_0x1a2257),process['exit'](0x1)),_0x5736f1[_0x4a4074(0x1ee)](_0x346932[_0x4a4074(0x213)],0x190)&&(logger[_0x4a4074(0x1cf)](JSON[_0x4a4074(0x1d7)](_0x346932[_0x4a4074(0x205)])[_0x4a4074(0x1e9)]),await _0x5736f1['gNfel'](sendInstrumentationEvent,_0x1a2257,_0x5736f1[_0x4a4074(0x1e6)],messageTypes[_0x4a4074(0x1ed)],_0x5736f1[_0x4a4074(0x1d3)],null,_0x1a2257),process['exit'](0x1)),logger[_0x4a4074(0x1cf)](_0x4a4074(0x1e4)+JSON[_0x4a4074(0x222)](_0x346932)),await _0x5736f1[_0x4a4074(0x211)](sendInstrumentationEvent,_0x1a2257,_0x5736f1[_0x4a4074(0x1e6)],messageTypes['ERROR'],_0x5736f1['YZSix'],_0x346932,_0x1a2257),process['exit'](0x1);}catch(_0x4581eb){const _0x1e8353=_0x4a4074(0x21b)+_0x4581eb+'\x20\x0a'+JSON[_0x4a4074(0x222)](_0x4581eb[_0x4a4074(0x1e1)])+'\x20';logger[_0x4a4074(0x1cf)](_0x1e8353),process[_0x4a4074(0x209)](0x1);}};function a19_0x39a9(){const _0x2aa2a7=['20324FOdccm','addListeners','cloudProvider','gibaX','options','statusCode','6434ozYOus','Ntbfq','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','zSest','305TEMgFZ','replace','init-not-called','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','97OdChZH','builder','gridId','27ikMhJi','default','connectionTimeout','stringify','Browserstack','../../utils/webSocketUtils','server-error','rkKQx','error','invalid-grid-id','clusterName','skip-tls-cert-verify','nVPEq','grid-id','../../utils/utilityMethods','desc','parse','help','DDtWk','2654530QRXuuM','WebSocket','unauthorised','8kePkry','fmVZN','reconnecting-websocket','FKoWW','stack','2736160MhVAkg','description','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','awYom','WkfKB','Grid\x20stoppped.','../../utils/gridComponents','message','stop','argv','QDSct','ERROR','zAabG','5920882ryTMct','name','type','stop-grid-called','skipTlsCertVerify','command','epilogue','pnvDQ','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','username','kJPWm','handler','Stop\x20a\x20running\x20Automation\x20grid.','Stopping\x20grid\x20','Adding\x20Websocket\x20listeners','1529136YyRtOk','HlrMc','12zwNTiA','../../config/constants','password','../../config/logger','DkKGU','body','string','25164jIzAXG','info','exit','NqKgW','../../cloudproviders/utils','bstackUsername','user'];a19_0x39a9=function(){return _0x2aa2a7;};return a19_0x39a9();}
@@ -1 +1 @@
1
- const a20_0x125a13=a20_0x4d79;(function(_0x1b2389,_0x17c613){const _0x3b669d=a20_0x4d79,_0x27e82f=_0x1b2389();while(!![]){try{const _0x43a506=-parseInt(_0x3b669d(0x10a))/0x1+parseInt(_0x3b669d(0x109))/0x2+parseInt(_0x3b669d(0x113))/0x3*(parseInt(_0x3b669d(0xe6))/0x4)+parseInt(_0x3b669d(0x10e))/0x5*(parseInt(_0x3b669d(0x11c))/0x6)+parseInt(_0x3b669d(0x11b))/0x7+-parseInt(_0x3b669d(0xe3))/0x8*(-parseInt(_0x3b669d(0xf7))/0x9)+-parseInt(_0x3b669d(0x114))/0xa*(parseInt(_0x3b669d(0x10f))/0xb);if(_0x43a506===_0x17c613)break;else _0x27e82f['push'](_0x27e82f['shift']());}catch(_0x36d532){_0x27e82f['push'](_0x27e82f['shift']());}}}(a20_0x1b5a,0x46f3a),require(a20_0x125a13(0xf5))['config'](),exports[a20_0x125a13(0xe8)]=process[a20_0x125a13(0xdc)]['DASHBOARD_ENDPOINT']||a20_0x125a13(0x107),exports[a20_0x125a13(0xe0)]=process['env'][a20_0x125a13(0xe0)]||'api.browserstack.com',exports[a20_0x125a13(0xf1)]=process['env'][a20_0x125a13(0xf1)]||'grid-api.browserstack.com',exports['WS_ENDPOINT']=a20_0x125a13(0x118)+this['AG_API_URL']+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports['CP_CONFIG_FILE']='credentials',exports[a20_0x125a13(0x106)]='BrowserStackIAMUser',exports[a20_0x125a13(0x11f)]=a20_0x125a13(0x105),exports['AWS']='aws',exports[a20_0x125a13(0x11e)]='BSTACK-ATS-CLUSTER',exports[a20_0x125a13(0x111)]=a20_0x125a13(0x115),exports[a20_0x125a13(0x11a)]=a20_0x125a13(0xf8),exports['TURBOSCALE_DEPLOYMENT']=a20_0x125a13(0xf9),exports[a20_0x125a13(0xeb)]=a20_0x125a13(0xf3),exports[a20_0x125a13(0x116)]=a20_0x125a13(0xd8));const a20_0x5947db={};a20_0x5947db[a20_0x125a13(0x120)]='browserstack:managedBy',a20_0x5947db[a20_0x125a13(0x12a)]=a20_0x125a13(0x126);const a20_0x2511e1={};a20_0x2511e1[a20_0x125a13(0x120)]=a20_0x125a13(0xfd),a20_0x2511e1[a20_0x125a13(0x12a)]=a20_0x125a13(0x123);const common_hst_tags_list=[a20_0x5947db,a20_0x2511e1];if(process[a20_0x125a13(0xdc)][a20_0x125a13(0x125)]){const parsedTags=process[a20_0x125a13(0xdc)][a20_0x125a13(0x125)]['split'](',');parsedTags[a20_0x125a13(0xf4)](_0x84dd63=>{const _0x171e3b=a20_0x125a13,_0x5e8e2b=_0x84dd63['split'](':'),_0x497f3d={};_0x497f3d[_0x171e3b(0x120)]=_0x5e8e2b[0x0],_0x497f3d['Value']=_0x5e8e2b[0x1],common_hst_tags_list[_0x171e3b(0x10d)](_0x497f3d);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a20_0x1fb980={};a20_0x1fb980['browserstack:managedBy']=a20_0x125a13(0x126),a20_0x1fb980[a20_0x125a13(0xfd)]='BrowserStack-Automate-TurboScale',exports[a20_0x125a13(0xe9)]=a20_0x1fb980,exports[a20_0x125a13(0x124)]=[this[a20_0x125a13(0x101)]];const a20_0x979591={};a20_0x979591['LOG']=a20_0x125a13(0xe5),a20_0x979591[a20_0x125a13(0xfa)]=a20_0x125a13(0x100),a20_0x979591[a20_0x125a13(0x122)]=a20_0x125a13(0xf0),a20_0x979591[a20_0x125a13(0xff)]=a20_0x125a13(0x104),a20_0x979591[a20_0x125a13(0xe7)]='cliRunFinished',exports[a20_0x125a13(0x110)]=a20_0x979591,exports[a20_0x125a13(0xee)]={},exports[a20_0x125a13(0x103)]=a20_0x125a13(0x119);const a20_0x1419b4={};a20_0x1419b4[a20_0x125a13(0xfc)]=a20_0x125a13(0xd7)+this['LINK_MESSAGE'],a20_0x1419b4['init']=a20_0x125a13(0xdd)+this['LINK_MESSAGE'],a20_0x1419b4['configure']=a20_0x125a13(0xdb)+this[a20_0x125a13(0x103)],a20_0x1419b4['create']=a20_0x125a13(0xde)+this['LINK_MESSAGE'],a20_0x1419b4[a20_0x125a13(0xfe)]={},a20_0x1419b4[a20_0x125a13(0x121)]=a20_0x125a13(0xed)+this['LINK_MESSAGE'],a20_0x1419b4[a20_0x125a13(0x128)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this['LINK_MESSAGE'],a20_0x1419b4[a20_0x125a13(0xe4)]=a20_0x125a13(0xd9)+this[a20_0x125a13(0x103)],a20_0x1419b4[a20_0x125a13(0x117)]='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this[a20_0x125a13(0x103)],a20_0x1419b4[a20_0x125a13(0xfe)][a20_0x125a13(0xfc)]=a20_0x125a13(0x129)+this[a20_0x125a13(0x103)],a20_0x1419b4[a20_0x125a13(0xfe)]['grid']=a20_0x125a13(0xe2)+this[a20_0x125a13(0x103)],a20_0x1419b4[a20_0x125a13(0xfe)][a20_0x125a13(0x10c)]=a20_0x125a13(0xfb)+this[a20_0x125a13(0x103)],exports['HELP_HEADER_MESSAGE']=a20_0x1419b4,exports['HELP_FOOTER_MESSAGE']=a20_0x125a13(0xd6);function a20_0x1b5a(){const _0x1dfb46=['\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','INFO','BS_API_URL','RAW_ARGS_REGEX','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','3816bPHyUW','start','log','20pmDfLB','CLI_RUN_FINISHED','DASHBOARD_ENDPOINT','HST_CLUSTER_TAGS','error','AZURE','REDACTED','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','global_registry','SUCCESS','gridUrl','AG_API_URL','NULL','azure','forEach','dotenv','ERROR','9837GbZcUr','BSTACK-ATS-CLUSTER-HUB-HA','browserstack-turboscale-grid','RESOURCES','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','root','browserstack:service','list','CLI_RUN_STARTED','resourceInfo','AWS','CLI_ARGS_REGEX','LINK_MESSAGE','cliRunStarted','high-scale-grid','IAM_USER_NAME','grid.browserstack.com','[REDACTED]','365004wmLhuW','123507KNPrNd','success','gridProfile','push','1522685JllLas','649EXKmhI','WS_EVENTS','CLUSTER_AUTOSCALER_STACK_NAME','warning','9681ZfGnEz','106410GOYfpB','BSTACK-ATS-CLUSTER-AUTOSCALER','GCP','stop','wss://','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','CLUSTER_HUB_HA_STACK_NAME','121863bqVlDU','6KstopF','messageTypes','CLUSTER_DEP_STACK_NAME','DEFAULT_GRID_NAME','Key','delete','GRID_URL','BrowserStack-Automate-TurboScale','SUPPORTED_CLOUD_PROVIDERS','TURBOSCALE_CUSTOM_TAGS','BrowserStack','WARNING','connect','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','Value','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','gcp','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','UNKNOWN','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','env'];a20_0x1b5a=function(){return _0x1dfb46;};return a20_0x1b5a();}function a20_0x4d79(_0xe5407d,_0x2d96eb){const _0x1b5a54=a20_0x1b5a();return a20_0x4d79=function(_0x4d79ea,_0x507717){_0x4d79ea=_0x4d79ea-0xd6;let _0x5b139d=_0x1b5a54[_0x4d79ea];return _0x5b139d;},a20_0x4d79(_0xe5407d,_0x2d96eb);}const a20_0x56080c={};a20_0x56080c[a20_0x125a13(0xef)]=a20_0x125a13(0x10b),a20_0x56080c[a20_0x125a13(0xf6)]=a20_0x125a13(0xea),a20_0x56080c[a20_0x125a13(0xdf)]='info',a20_0x56080c[a20_0x125a13(0x127)]=a20_0x125a13(0x112),a20_0x56080c[a20_0x125a13(0xda)]='unknown',a20_0x56080c[a20_0x125a13(0xf2)]=null,exports[a20_0x125a13(0x11d)]=a20_0x56080c,exports[a20_0x125a13(0x102)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a20_0x125a13(0xe1)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a20_0x125a13(0xec)]=a20_0x125a13(0x108);
1
+ const a20_0x4483a8=a20_0x5594;(function(_0x28187b,_0x206481){const _0x3b8770=a20_0x5594,_0x1dbcd6=_0x28187b();while(!![]){try{const _0x5012bc=parseInt(_0x3b8770(0xbd))/0x1+-parseInt(_0x3b8770(0x9e))/0x2*(parseInt(_0x3b8770(0x6f))/0x3)+-parseInt(_0x3b8770(0x7a))/0x4*(parseInt(_0x3b8770(0xab))/0x5)+-parseInt(_0x3b8770(0xa3))/0x6*(parseInt(_0x3b8770(0x93))/0x7)+-parseInt(_0x3b8770(0xad))/0x8*(-parseInt(_0x3b8770(0x6d))/0x9)+-parseInt(_0x3b8770(0x80))/0xa+parseInt(_0x3b8770(0x84))/0xb*(parseInt(_0x3b8770(0xb6))/0xc);if(_0x5012bc===_0x206481)break;else _0x1dbcd6['push'](_0x1dbcd6['shift']());}catch(_0x2a6d1c){_0x1dbcd6['push'](_0x1dbcd6['shift']());}}}(a20_0x5832,0x991a9),require('dotenv')[a20_0x4483a8(0x9a)](),exports[a20_0x4483a8(0xbf)]=process[a20_0x4483a8(0x7c)][a20_0x4483a8(0xbf)]||a20_0x4483a8(0xb7),exports[a20_0x4483a8(0x7e)]=process[a20_0x4483a8(0x7c)][a20_0x4483a8(0x7e)]||'api.browserstack.com',exports[a20_0x4483a8(0x70)]=process[a20_0x4483a8(0x7c)][a20_0x4483a8(0x70)]||a20_0x4483a8(0x94),exports[a20_0x4483a8(0xc2)]='wss://'+this[a20_0x4483a8(0x70)]+a20_0x4483a8(0x73),exports[a20_0x4483a8(0x86)]=a20_0x4483a8(0xa4),exports[a20_0x4483a8(0x8c)]='BrowserStackIAMUser',exports['DEFAULT_GRID_NAME']=a20_0x4483a8(0x83),exports[a20_0x4483a8(0x6e)]='aws',exports['CLUSTER_DEP_STACK_NAME']=a20_0x4483a8(0x72),exports[a20_0x4483a8(0xa9)]=a20_0x4483a8(0xbe),exports[a20_0x4483a8(0xc1)]=a20_0x4483a8(0xc0),exports[a20_0x4483a8(0x8a)]=a20_0x4483a8(0xb4),exports[a20_0x4483a8(0x7b)]=a20_0x4483a8(0xb3),exports[a20_0x4483a8(0xaa)]=a20_0x4483a8(0x82));const a20_0x3ee463={};function a20_0x5832(){const _0x23876c=['global_registry','Key','LOG','2liMvjx','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','info','CLI_ARGS_REGEX','init','4453944gDOPKk','credentials','HST_CLUSTER_TAGS','connect','gridProfile','messageTypes','CLUSTER_AUTOSCALER_STACK_NAME','GCP','5DaEAnA','error','592pUuVaT','REDACTED','push','CLI_RUN_STARTED','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','Value','azure','browserstack-turboscale-grid','WARNING','7034376lwgmhV','grid.browserstack.com','stop','ERROR','UNKNOWN','success','grid','654872wHCQrt','BSTACK-ATS-CLUSTER-AUTOSCALER','DASHBOARD_ENDPOINT','BSTACK-ATS-CLUSTER-HUB-HA','CLUSTER_HUB_HA_STACK_NAME','WS_ENDPOINT','log','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','152217gICIvF','AWS','2944623slhmXZ','AG_API_URL','list','BSTACK-ATS-CLUSTER','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','browserstack:service','SUPPORTED_CLOUD_PROVIDERS','RAW_ARGS_REGEX','HELP_FOOTER_MESSAGE','SUCCESS','4586776OicnfB','AZURE','env','resourceInfo','BS_API_URL','WS_EVENTS','7535540RckBQZ','COMMON_HST_TAGS','gcp','high-scale-grid','44hgcVHg','TURBOSCALE_CUSTOM_TAGS','CP_CONFIG_FILE','forEach','BrowserStack','root','TURBOSCALE_DEPLOYMENT','INFO','IAM_USER_NAME','configure','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','7NWetIU','grid-api.browserstack.com','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','GRID_URL','cliRunStarted','warning','LINK_MESSAGE','config'];a20_0x5832=function(){return _0x23876c;};return a20_0x5832();}a20_0x3ee463[a20_0x4483a8(0x9c)]='browserstack:managedBy',a20_0x3ee463[a20_0x4483a8(0xb2)]=a20_0x4483a8(0x88);const a20_0x6fa1bb={};function a20_0x5594(_0x1f0343,_0x475b9f){const _0x583233=a20_0x5832();return a20_0x5594=function(_0x559484,_0x43a1ec){_0x559484=_0x559484-0x6d;let _0x593854=_0x583233[_0x559484];return _0x593854;},a20_0x5594(_0x1f0343,_0x475b9f);}a20_0x6fa1bb[a20_0x4483a8(0x9c)]=a20_0x4483a8(0x75),a20_0x6fa1bb['Value']='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a20_0x3ee463,a20_0x6fa1bb];if(process[a20_0x4483a8(0x7c)]['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a20_0x4483a8(0x7c)][a20_0x4483a8(0x85)]['split'](',');parsedTags[a20_0x4483a8(0x87)](_0x20a964=>{const _0x14e286=a20_0x4483a8,_0x2f0221=_0x20a964['split'](':'),_0xb33343={};_0xb33343['Key']=_0x2f0221[0x0],_0xb33343[_0x14e286(0xb2)]=_0x2f0221[0x1],common_hst_tags_list[_0x14e286(0xaf)](_0xb33343);});}exports[a20_0x4483a8(0x81)]=common_hst_tags_list;const a20_0x2ff5a9={};a20_0x2ff5a9['browserstack:managedBy']=a20_0x4483a8(0x88),a20_0x2ff5a9['browserstack:service']='BrowserStack-Automate-TurboScale',exports[a20_0x4483a8(0xa5)]=a20_0x2ff5a9,exports[a20_0x4483a8(0x76)]=[this['AWS']];const a20_0x109f91={};a20_0x109f91[a20_0x4483a8(0x9d)]=a20_0x4483a8(0xc3),a20_0x109f91['RESOURCES']=a20_0x4483a8(0x7d),a20_0x109f91[a20_0x4483a8(0x96)]='gridUrl',a20_0x109f91[a20_0x4483a8(0xb0)]=a20_0x4483a8(0x97),a20_0x109f91['CLI_RUN_FINISHED']='cliRunFinished',exports[a20_0x4483a8(0x7f)]=a20_0x109f91,exports[a20_0x4483a8(0x9b)]={},exports[a20_0x4483a8(0x99)]=a20_0x4483a8(0x92);const a20_0x1ac69e={};a20_0x1ac69e['root']='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a20_0x4483a8(0x99)],a20_0x1ac69e[a20_0x4483a8(0xa2)]=a20_0x4483a8(0xc4)+this[a20_0x4483a8(0x99)],a20_0x1ac69e[a20_0x4483a8(0x8d)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a20_0x4483a8(0x99)],a20_0x1ac69e['create']=a20_0x4483a8(0x9f)+this[a20_0x4483a8(0x99)],a20_0x1ac69e[a20_0x4483a8(0x71)]={},a20_0x1ac69e['delete']=a20_0x4483a8(0xb1)+this[a20_0x4483a8(0x99)],a20_0x1ac69e[a20_0x4483a8(0xa6)]=a20_0x4483a8(0x8e)+this[a20_0x4483a8(0x99)],a20_0x1ac69e['start']=a20_0x4483a8(0x90)+this[a20_0x4483a8(0x99)],a20_0x1ac69e[a20_0x4483a8(0xb8)]=a20_0x4483a8(0x91)+this[a20_0x4483a8(0x99)],a20_0x1ac69e[a20_0x4483a8(0x71)][a20_0x4483a8(0x89)]=a20_0x4483a8(0x74)+this[a20_0x4483a8(0x99)],a20_0x1ac69e[a20_0x4483a8(0x71)][a20_0x4483a8(0xbc)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a20_0x4483a8(0x99)],a20_0x1ac69e[a20_0x4483a8(0x71)][a20_0x4483a8(0xa7)]=a20_0x4483a8(0x8f)+this['LINK_MESSAGE'],exports['HELP_HEADER_MESSAGE']=a20_0x1ac69e,exports[a20_0x4483a8(0x78)]=a20_0x4483a8(0x95);const a20_0xb8bae1={};a20_0xb8bae1[a20_0x4483a8(0x79)]=a20_0x4483a8(0xbb),a20_0xb8bae1[a20_0x4483a8(0xb9)]=a20_0x4483a8(0xac),a20_0xb8bae1[a20_0x4483a8(0x8b)]=a20_0x4483a8(0xa0),a20_0xb8bae1[a20_0x4483a8(0xb5)]=a20_0x4483a8(0x98),a20_0xb8bae1[a20_0x4483a8(0xba)]='unknown',a20_0xb8bae1['NULL']=null,exports[a20_0x4483a8(0xa8)]=a20_0xb8bae1,exports[a20_0x4483a8(0xa1)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a20_0x4483a8(0x77)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a20_0x4483a8(0xae)]='[REDACTED]';
@@ -1 +1 @@
1
- const a21_0x3356b5=a21_0x22c0;(function(_0x2c1a24,_0x1acfba){const _0x3c76be=a21_0x22c0,_0x33d3cb=_0x2c1a24();while(!![]){try{const _0x592888=parseInt(_0x3c76be(0x1ad))/0x1+-parseInt(_0x3c76be(0x1b4))/0x2+parseInt(_0x3c76be(0x1b2))/0x3*(-parseInt(_0x3c76be(0x1b6))/0x4)+-parseInt(_0x3c76be(0x1bf))/0x5*(parseInt(_0x3c76be(0x1b7))/0x6)+parseInt(_0x3c76be(0x1c2))/0x7*(-parseInt(_0x3c76be(0x1bc))/0x8)+parseInt(_0x3c76be(0x1af))/0x9+parseInt(_0x3c76be(0x1ca))/0xa;if(_0x592888===_0x1acfba)break;else _0x33d3cb['push'](_0x33d3cb['shift']());}catch(_0x4d606f){_0x33d3cb['push'](_0x33d3cb['shift']());}}}(a21_0x4ac7,0x6f2da));const winston=require(a21_0x3356b5(0x1b9)),fs=require('fs'),path=require(a21_0x3356b5(0x1b8)),logDir=a21_0x3356b5(0x1c9);!fs['existsSync'](logDir)&&fs['mkdirSync'](logDir);const a21_0x4cc043={};a21_0x4cc043[a21_0x3356b5(0x1ae)]=a21_0x3356b5(0x1c7);const a21_0x271672={};a21_0x271672[a21_0x3356b5(0x1c3)]=!![];function a21_0x4ac7(){const _0x4734b1=['console.info','42FToYfp','level','debug','printf','name','YYYY-MM-DD\x20HH:mm:ss','transports','log','23224810fPcuve','message','usage.log','77870wbmfWd','format','3372075bwSQcT','logger','combine','2913OgwjJv','join','1449910noCcCc','createLogger','1784dlsxwI','3841926MKFsft','path','winston','File','timestamp','695064rWtRCR','fileLogger','events.log','5eicJOW','Console'];a21_0x4ac7=function(){return _0x4734b1;};return a21_0x4ac7();}function a21_0x22c0(_0x327c62,_0x523817){const _0x4ac745=a21_0x4ac7();return a21_0x22c0=function(_0x22c01e,_0x12382f){_0x22c01e=_0x22c01e-0x1ad;let _0x2d0ab8=_0x4ac745[_0x22c01e];return _0x2d0ab8;},a21_0x22c0(_0x327c62,_0x523817);}const a21_0x5af5b8={};a21_0x5af5b8[a21_0x3356b5(0x1c6)]=a21_0x3356b5(0x1c1),exports[a21_0x3356b5(0x1b0)]=new winston[(a21_0x3356b5(0x1b5))]({'format':winston[a21_0x3356b5(0x1ae)][a21_0x3356b5(0x1b1)](winston[a21_0x3356b5(0x1ae)]['timestamp'](a21_0x4cc043),winston['format']['colorize'](a21_0x271672),winston[a21_0x3356b5(0x1ae)][a21_0x3356b5(0x1c5)](_0x120f88=>_0x120f88[a21_0x3356b5(0x1bb)]+'\x20-\x20'+_0x120f88[a21_0x3356b5(0x1c3)]+':\x20'+_0x120f88[a21_0x3356b5(0x1cb)])),'transports':[new winston[(a21_0x3356b5(0x1c8))][(a21_0x3356b5(0x1c0))](a21_0x5af5b8),new winston[(a21_0x3356b5(0x1c8))][(a21_0x3356b5(0x1ba))]({'filename':path[a21_0x3356b5(0x1b3)](logDir,a21_0x3356b5(0x1be)),'level':a21_0x3356b5(0x1c4)})]});const winstonFileLoggerParams={'transports':[new winston[(a21_0x3356b5(0x1c8))][(a21_0x3356b5(0x1ba))]({'filename':path[a21_0x3356b5(0x1b3)](logDir,a21_0x3356b5(0x1cc)),'level':a21_0x3356b5(0x1c4)})]};exports[a21_0x3356b5(0x1bd)]=new winston['createLogger'](winstonFileLoggerParams);
1
+ const a21_0x4cbe91=a21_0x42a3;(function(_0x510bf6,_0x3b3430){const _0x400e2f=a21_0x42a3,_0x4398b7=_0x510bf6();while(!![]){try{const _0x453785=parseInt(_0x400e2f(0x1f1))/0x1+parseInt(_0x400e2f(0x1f4))/0x2*(-parseInt(_0x400e2f(0x1f2))/0x3)+-parseInt(_0x400e2f(0x1fe))/0x4+parseInt(_0x400e2f(0x1ec))/0x5*(parseInt(_0x400e2f(0x1fb))/0x6)+-parseInt(_0x400e2f(0x1e8))/0x7*(parseInt(_0x400e2f(0x1f3))/0x8)+-parseInt(_0x400e2f(0x1ff))/0x9+parseInt(_0x400e2f(0x201))/0xa*(parseInt(_0x400e2f(0x1fc))/0xb);if(_0x453785===_0x3b3430)break;else _0x4398b7['push'](_0x4398b7['shift']());}catch(_0x5b1507){_0x4398b7['push'](_0x4398b7['shift']());}}}(a21_0x5cf0,0x87c85));const winston=require(a21_0x4cbe91(0x1f8)),fs=require('fs'),path=require(a21_0x4cbe91(0x1e2)),logDir=a21_0x4cbe91(0x1e5);!fs[a21_0x4cbe91(0x1f9)](logDir)&&fs[a21_0x4cbe91(0x1ea)](logDir);const a21_0x1a6195={};a21_0x1a6195[a21_0x4cbe91(0x1ee)]=a21_0x4cbe91(0x203);function a21_0x5cf0(){const _0x7b7dbf=['9479970jmSrHU','message','7812510siWGEc','usage.log','YYYY-MM-DD\x20HH:mm:ss','level','path','join','Console','log','events.log','combine','17339jHmFfu','colorize','mkdirSync','\x20-\x20','95ZnkElQ','fileLogger','format','printf','createLogger','42586RDwhlg','1163499KlfLON','3560XqZHLu','2ciEHhu','logger','timestamp','debug','winston','existsSync','console.info','140664XURohs','44mWyFZg','transports','2053732HsEXWh'];a21_0x5cf0=function(){return _0x7b7dbf;};return a21_0x5cf0();}const a21_0x2800f6={};a21_0x2800f6[a21_0x4cbe91(0x1e1)]=!![];function a21_0x42a3(_0x53bad3,_0x52d5fb){const _0x5cf0c2=a21_0x5cf0();return a21_0x42a3=function(_0x42a337,_0x118628){_0x42a337=_0x42a337-0x1e1;let _0x2a2de6=_0x5cf0c2[_0x42a337];return _0x2a2de6;},a21_0x42a3(_0x53bad3,_0x52d5fb);}const a21_0xc643e9={};a21_0xc643e9['name']=a21_0x4cbe91(0x1fa),exports[a21_0x4cbe91(0x1f5)]=new winston['createLogger']({'format':winston[a21_0x4cbe91(0x1ee)][a21_0x4cbe91(0x1e7)](winston[a21_0x4cbe91(0x1ee)][a21_0x4cbe91(0x1f6)](a21_0x1a6195),winston[a21_0x4cbe91(0x1ee)][a21_0x4cbe91(0x1e9)](a21_0x2800f6),winston[a21_0x4cbe91(0x1ee)][a21_0x4cbe91(0x1ef)](_0x5ed3c6=>_0x5ed3c6['timestamp']+a21_0x4cbe91(0x1eb)+_0x5ed3c6[a21_0x4cbe91(0x1e1)]+':\x20'+_0x5ed3c6[a21_0x4cbe91(0x200)])),'transports':[new winston[(a21_0x4cbe91(0x1fd))][(a21_0x4cbe91(0x1e4))](a21_0xc643e9),new winston[(a21_0x4cbe91(0x1fd))]['File']({'filename':path[a21_0x4cbe91(0x1e3)](logDir,a21_0x4cbe91(0x1e6)),'level':a21_0x4cbe91(0x1f7)})]});const winstonFileLoggerParams={'transports':[new winston[(a21_0x4cbe91(0x1fd))]['File']({'filename':path[a21_0x4cbe91(0x1e3)](logDir,a21_0x4cbe91(0x202)),'level':'debug'})]};exports[a21_0x4cbe91(0x1ed)]=new winston[(a21_0x4cbe91(0x1f0))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a22_0x4e6805=a22_0xc07e;(function(_0x33b3be,_0x343614){const _0x3a91b8=a22_0xc07e,_0x1cdaa5=_0x33b3be();while(!![]){try{const _0x2f459c=-parseInt(_0x3a91b8(0xc3))/0x1+-parseInt(_0x3a91b8(0xc6))/0x2*(parseInt(_0x3a91b8(0xc1))/0x3)+parseInt(_0x3a91b8(0xd0))/0x4+parseInt(_0x3a91b8(0xce))/0x5+parseInt(_0x3a91b8(0xc8))/0x6*(parseInt(_0x3a91b8(0xcc))/0x7)+-parseInt(_0x3a91b8(0xc9))/0x8+-parseInt(_0x3a91b8(0xc5))/0x9*(-parseInt(_0x3a91b8(0xd5))/0xa);if(_0x2f459c===_0x343614)break;else _0x1cdaa5['push'](_0x1cdaa5['shift']());}catch(_0x1733b1){_0x1cdaa5['push'](_0x1cdaa5['shift']());}}}(a22_0x15c9,0xa8cef));function a22_0xc07e(_0x24abe5,_0x5b7142){const _0x15c913=a22_0x15c9();return a22_0xc07e=function(_0xc07eb3,_0x23267b){_0xc07eb3=_0xc07eb3-0xc1;let _0x50e3d8=_0x15c913[_0xc07eb3];return _0x50e3d8;},a22_0xc07e(_0x24abe5,_0x5b7142);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a22_0x4e6805(0xcd));process['env'][a22_0x4e6805(0xca)]=0x1;function run(_0x4d66db){const _0x164605=a22_0x4e6805,_0x19b7f8={};_0x19b7f8[_0x164605(0xc2)]=_0x164605(0xcb),_0x19b7f8[_0x164605(0xd2)]=_0x164605(0xcf);const _0x3f7a4b=_0x19b7f8;_0x4d66db['usage'](HELP_HEADER_MESSAGE[_0x164605(0xc7)])[_0x164605(0xd3)](_0x3f7a4b[_0x164605(0xc2)])[_0x164605(0xd1)]()[_0x164605(0xcf)](_0x3f7a4b[_0x164605(0xd2)])[_0x164605(0xc4)](HELP_FOOTER_MESSAGE);}module[a22_0x4e6805(0xd4)]=run;function a22_0x15c9(){const _0x3dbaad=['BHPFm','commandDir','exports','2210oZoqHC','1032FjgefJ','UBNmh','729495fzHHOT','epilogue','49221KSeCol','4782BREWxu','root','1092JJlAKF','826528aqqtej','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','commands','14672IpTRBk','./config/constants','3623535nuetBo','help','127704GlndcO','demandCommand'];a22_0x15c9=function(){return _0x3dbaad;};return a22_0x15c9();}
2
+ 'use strict';const a22_0x23bea8=a22_0x1fa0;(function(_0x33c224,_0x3ac710){const _0x204ea8=a22_0x1fa0,_0x22078e=_0x33c224();while(!![]){try{const _0x18bdea=parseInt(_0x204ea8(0x11a))/0x1*(-parseInt(_0x204ea8(0x118))/0x2)+parseInt(_0x204ea8(0x12b))/0x3*(parseInt(_0x204ea8(0x119))/0x4)+parseInt(_0x204ea8(0x117))/0x5+-parseInt(_0x204ea8(0x127))/0x6*(parseInt(_0x204ea8(0x121))/0x7)+-parseInt(_0x204ea8(0x116))/0x8*(-parseInt(_0x204ea8(0x123))/0x9)+parseInt(_0x204ea8(0x125))/0xa*(parseInt(_0x204ea8(0x124))/0xb)+-parseInt(_0x204ea8(0x122))/0xc*(parseInt(_0x204ea8(0x129))/0xd);if(_0x18bdea===_0x3ac710)break;else _0x22078e['push'](_0x22078e['shift']());}catch(_0x3c6520){_0x22078e['push'](_0x22078e['shift']());}}}(a22_0x2e94,0x3277e));function a22_0x2e94(){const _0x4af7b6=['8385XJgNIv','usage','455673GLKaGK','root','264Ijmzcj','1586845GYAgbL','3070ZUZyNk','4CVEPPd','175EncEqu','yvqes','demandCommand','help','env','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','commandDir','35diZval','12252FUZGup','102483rAWgjt','22rSKICq','1604960lPpuST','hoRCU','38562EJjtJh','exports'];a22_0x2e94=function(){return _0x4af7b6;};return a22_0x2e94();}function a22_0x1fa0(_0x47d414,_0x5c6896){const _0x2e9430=a22_0x2e94();return a22_0x1fa0=function(_0x1fa064,_0x2dfb35){_0x1fa064=_0x1fa064-0x115;let _0x209a00=_0x2e9430[_0x1fa064];return _0x209a00;},a22_0x1fa0(_0x47d414,_0x5c6896);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process[a22_0x23bea8(0x11e)][a22_0x23bea8(0x11f)]=0x1;function run(_0x16d361){const _0x14cac4=a22_0x23bea8,_0x726c15={};_0x726c15[_0x14cac4(0x126)]='commands',_0x726c15[_0x14cac4(0x11b)]=_0x14cac4(0x11d);const _0x5c12a0=_0x726c15;_0x16d361[_0x14cac4(0x12a)](HELP_HEADER_MESSAGE[_0x14cac4(0x115)])[_0x14cac4(0x120)](_0x5c12a0[_0x14cac4(0x126)])[_0x14cac4(0x11c)]()[_0x14cac4(0x11d)](_0x5c12a0[_0x14cac4(0x11b)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a22_0x23bea8(0x128)]=run;
@@ -1 +1 @@
1
- const a23_0x19ee3a=a23_0x135d;function a23_0x135d(_0x4e667a,_0x1cf66e){const _0x491e3d=a23_0x491e();return a23_0x135d=function(_0x135d75,_0x2eb934){_0x135d75=_0x135d75-0xfb;let _0x289bcc=_0x491e3d[_0x135d75];return _0x289bcc;},a23_0x135d(_0x4e667a,_0x1cf66e);}(function(_0x2e6dae,_0x5bd102){const _0x5a7664=a23_0x135d,_0xbbfcb3=_0x2e6dae();while(!![]){try{const _0x1a0d90=parseInt(_0x5a7664(0x13c))/0x1+-parseInt(_0x5a7664(0xfb))/0x2+-parseInt(_0x5a7664(0x11d))/0x3*(-parseInt(_0x5a7664(0x10a))/0x4)+-parseInt(_0x5a7664(0x167))/0x5+parseInt(_0x5a7664(0x1ae))/0x6*(parseInt(_0x5a7664(0x114))/0x7)+-parseInt(_0x5a7664(0x183))/0x8*(parseInt(_0x5a7664(0x125))/0x9)+parseInt(_0x5a7664(0x105))/0xa;if(_0x1a0d90===_0x5bd102)break;else _0xbbfcb3['push'](_0xbbfcb3['shift']());}catch(_0x2476d1){_0xbbfcb3['push'](_0xbbfcb3['shift']());}}}(a23_0x491e,0x83ac1));function a23_0x491e(){const _0x28feca=['wqiNk','Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20','IhMJL','qjSWr','vdRbm','3227oxUFTQ','Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20','GuRdo','TZAnc','qAJdf','LtqGz','IuWKN','eGncX','eJoHf','2397iXwezM','njVaR','PDgAU','cpcdU','describeSubnets','ghOGP','describeSecurityGroups','SswUP','9fHCwaG','tbhiC','WBodk','dEGNy','mtKVC','region','vavWe','daMWd','guyfz','fetchSecurityGroups','MqbYi','PYCSE','xLugf','IWOSX','isBucketPresent','kbguU','BrUQx','uwbOv','xOlbO','gYNSG','Failed\x20to\x20fetch\x20AWS\x20Regions\x20due\x20to\x20error:\x20','lFBmB','YfoyY','264472APHMun','\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket','SXWch','IbcFm','AUqvX','tNBXs','aws-sdk','csLSH','KutgC','jwrHL','NuxMI','dcERQ','wXvCl','ddUJl','EcAeY','akuGU','dtdIB','hxnGF','mSKNK','rAJWP','LFIEi','tyxrB','jywej','TVSCf','jZJUl','cOinc','HflKT','describeCluster','qHvlG','dZLQh','CGIyH','getAWSRegions','KMWYj','twNGA','EKS','LxqSx','then','faQpf','qkqro','DhopF','Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20','Bucket','MJlOi','4597425ijlNTd','glMaP','aJiYh','jdtZo','DkLbD','RZWPB','agvRj','ekUTb','AFkQh','error','headBucket','BcFWH','cLHeD','BQgjc','hputR','awsObj','ZJdlF','oidc','Bucket:\x20','ZmTzs','YJOlC','chnYN','VMPPW','LHPzz','Regions','hMyxx','dNbJr','\x20already\x20exists.\x20Skipping\x20Bucket\x20creation','6121640OOPyay','ZfvTV','2016-11-15','OwviQ','cluster','TIlAU','promise','zxOyW','VKQGB','catch','tCEYW','orFUL','cLdNx','rTGFl','DsRdy','AJBZL','iNvCD','LOwdD','sejTe','KWcbB','fetchSubnets','seeoq','warn','SgxHt','bhItD','yYwLt','info','describeRegions','apiVersion','eAOCT','fVhhm','issuer','identity','pYyqp','wlUgD','QSutv','xJNjz','xujAt','Error\x20getting\x20OIDC\x20URL\x20for\x20cluster\x20','QVRhU','YGDjq','CgDkf','TdQKC','630BEqKqi','xNgbg','nJqFY','NHgjD','iazsM','fetchVPCs','lkjrN','qdyXc','whqFU','describeVpcs','483124ScNCPO','dsXTT','bRKrq','NqhcM','ekjjc','2017-11-01','EC2','oumYg','aqveI','cKCya','20352510JKSgrF','vRTpp','getOidcUrl','fGjRU','mMywB','588dQnlIC','OPevN','name','vxftd','MBFqL'];a23_0x491e=function(){return _0x28feca;};return a23_0x491e();}const awsSDK=require(a23_0x19ee3a(0x142)),{logger}=require('../config/logger');exports[a23_0x19ee3a(0x1b3)]=_0x119a28=>{const _0x2604bc=a23_0x19ee3a,_0x21a399={'elvFl':function(_0x380989,_0x2287e8){return _0x380989(_0x2287e8);},'csLSH':function(_0x1b0988,_0x1094ee){return _0x1b0988(_0x1094ee);},'eAOCT':function(_0x2bf241,_0x365307){return _0x2bf241===_0x365307;},'eGVFu':_0x2604bc(0x129),'xJNjz':_0x2604bc(0x185),'vxftd':_0x2604bc(0x16f),'AJBZL':function(_0xaaf6c2,_0x181565){return _0xaaf6c2!==_0x181565;},'nJqFY':_0x2604bc(0x10f)};return new Promise((_0x255617,_0x2e2cec)=>{const _0x38dff9=_0x2604bc,_0x4090ac={'TVSCf':function(_0x31150b,_0x250dab){const _0x2e2c5c=a23_0x135d;return _0x21a399[_0x2e2c5c(0x143)](_0x31150b,_0x250dab);},'bRKrq':function(_0x242070,_0x554072){const _0x42daf7=a23_0x135d;return _0x21a399[_0x42daf7(0x1a0)](_0x242070,_0x554072);},'oumYg':_0x21a399['eGVFu'],'dNbJr':function(_0x1cbe39,_0x5691d){const _0x5ccf44=a23_0x135d;return _0x21a399[_0x5ccf44(0x143)](_0x1cbe39,_0x5691d);},'glMaP':_0x21a399['xJNjz'],'qjSWr':function(_0x570e27,_0x316f09){const _0x47038a=a23_0x135d;return _0x21a399[_0x47038a(0x1a0)](_0x570e27,_0x316f09);},'PYCSE':_0x21a399[_0x38dff9(0x10d)],'akuGU':function(_0x25fd9c,_0x375bce){const _0x16d233=_0x38dff9;return _0x21a399[_0x16d233(0x143)](_0x25fd9c,_0x375bce);}};if(_0x21a399[_0x38dff9(0x192)](_0x21a399[_0x38dff9(0x1b0)],_0x21a399[_0x38dff9(0x1b0)]))_0x452636[_0x38dff9(0x170)](_0x38dff9(0x1a9)+_0x2af0e9+':\x20'+_0x35b2c4),_0x21a399['elvFl'](_0xc3523b,_0x4ae5cb);else{const _0x1033be={};_0x1033be[_0x38dff9(0x19f)]=_0x21a399[_0x38dff9(0x1a7)],_0x1033be[_0x38dff9(0x12a)]=_0x119a28;const _0xb7529e=new awsSDK[(_0x38dff9(0x101))](_0x1033be);_0xb7529e[_0x38dff9(0x1b7)]()['promise']()['then'](_0x490a05=>{const _0x2d7230=_0x38dff9;_0x4090ac[_0x2d7230(0xfd)](_0x4090ac[_0x2d7230(0x102)],_0x4090ac[_0x2d7230(0x102)])?_0x4090ac[_0x2d7230(0x181)](_0x255617,_0x490a05):_0x4090ac[_0x2d7230(0x153)](_0x23786f,{});})[_0x38dff9(0x18c)](_0x552b95=>{const _0x4bfc68=_0x38dff9,_0xeecf8d={'cOinc':function(_0x40b174,_0xff28eb){const _0x458b90=a23_0x135d;return _0x4090ac[_0x458b90(0x181)](_0x40b174,_0xff28eb);},'yVWHL':_0x4090ac[_0x4bfc68(0x168)]};if(_0x4090ac[_0x4bfc68(0x112)](_0x4090ac[_0x4bfc68(0x130)],_0x4090ac[_0x4bfc68(0x130)]))logger[_0x4bfc68(0x170)]('Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20'+_0x552b95),_0x4090ac[_0x4bfc68(0x14b)](_0x2e2cec,_0x552b95);else{const _0x35a9a7={'MBFqL':function(_0x14e2ab,_0x5cfe09){const _0x1beeb6=_0x4bfc68;return _0xeecf8d[_0x1beeb6(0x155)](_0x14e2ab,_0x5cfe09);},'BQgjc':function(_0x23f23a,_0x2c3f1){const _0xfc7f5e=_0x4bfc68;return _0xeecf8d[_0xfc7f5e(0x155)](_0x23f23a,_0x2c3f1);},'hxnGF':_0xeecf8d['yVWHL']};return new _0x4622b4((_0x23b742,_0xeac79e)=>{const _0x2009ec=_0x4bfc68,_0x1565ad={'ekUTb':function(_0x334af1,_0x2dd3d7){const _0x110543=a23_0x135d;return _0x35a9a7[_0x110543(0x174)](_0x334af1,_0x2dd3d7);}},_0x5c3d2c={};_0x5c3d2c['apiVersion']=_0x35a9a7[_0x2009ec(0x14d)],_0x5c3d2c[_0x2009ec(0x12a)]=_0x5e7a55;const _0x35f1e7=new _0x49e1c7[(_0x2009ec(0x101))](_0x5c3d2c);_0x35f1e7[_0x2009ec(0x1b7)]()[_0x2009ec(0x189)]()['then'](_0x77c9e4=>{const _0x34f7f6=_0x2009ec;_0x35a9a7[_0x34f7f6(0x10e)](_0x23b742,_0x77c9e4);})[_0x2009ec(0x18c)](_0x55fb71=>{const _0x291818=_0x2009ec;_0x171247[_0x291818(0x170)](_0x291818(0x164)+_0x55fb71),_0x1565ad[_0x291818(0x16e)](_0xeac79e,_0x55fb71);});});}});}});},exports[a23_0x19ee3a(0x133)]=_0x51720c=>{const _0x4bf668=a23_0x19ee3a,_0x4bd617={'PDgAU':function(_0x240deb,_0x2cdb4d){return _0x240deb===_0x2cdb4d;},'IuWKN':_0x4bf668(0x120),'VMPPW':function(_0xcfae2f,_0x5bf11f){return _0xcfae2f(_0x5bf11f);},'jwrHL':function(_0x1f62db,_0x52faeb){return _0x1f62db===_0x52faeb;},'RMwvx':_0x4bf668(0x17a),'MqbYi':_0x4bf668(0x158),'whqFU':function(_0x19e61b,_0x2bcc49){return _0x19e61b(_0x2bcc49);},'CdwSk':function(_0x127c59,_0x42acde){return _0x127c59(_0x42acde);},'KMWYj':function(_0x1a560d,_0x98b1d5){return _0x1a560d(_0x98b1d5);},'cKCya':function(_0x1da298,_0x989b12){return _0x1da298!==_0x989b12;},'GuRdo':_0x4bf668(0x135),'SXWch':_0x4bf668(0x1a6)},_0x5cf766=new awsSDK['S3']();return new Promise((_0x5616fb,_0x8d95b1)=>{const _0x2c3bd4=_0x4bf668,_0x4fe6c1={'wlUgD':function(_0x4752ce,_0x57975b){return _0x4bd617['CdwSk'](_0x4752ce,_0x57975b);},'lkjrN':function(_0x108fb2,_0x5c582e){const _0x933e7f=a23_0x135d;return _0x4bd617[_0x933e7f(0x15c)](_0x108fb2,_0x5c582e);},'kbguU':function(_0x3eb488,_0x15a10a){return _0x4bd617['VMPPW'](_0x3eb488,_0x15a10a);}};if(_0x4bd617[_0x2c3bd4(0x104)](_0x4bd617[_0x2c3bd4(0x116)],_0x4bd617[_0x2c3bd4(0x13e)])){const _0x2cbdb5={};_0x2cbdb5[_0x2c3bd4(0x165)]=_0x51720c,_0x5cf766[_0x2c3bd4(0x171)](_0x2cbdb5)[_0x2c3bd4(0x189)]()[_0x2c3bd4(0x160)](_0x1f9c12=>{const _0x4ad2cc=_0x2c3bd4;_0x4bd617[_0x4ad2cc(0x11f)](_0x4bd617[_0x4ad2cc(0x11a)],_0x4bd617[_0x4ad2cc(0x11a)])?(logger['warn'](_0x4ad2cc(0x179)+_0x51720c+_0x4ad2cc(0x182)),_0x4bd617[_0x4ad2cc(0x17d)](_0x5616fb,!![])):(_0x7b27bb[_0x4ad2cc(0x170)](_0x4ad2cc(0x164)+_0x35f79f),_0x4fe6c1[_0x4ad2cc(0x1a5)](_0x4b0c77,_0x1c31db));})[_0x2c3bd4(0x18c)](()=>{const _0x42a96f=_0x2c3bd4;_0x4bd617[_0x42a96f(0x145)](_0x4bd617['RMwvx'],_0x4bd617[_0x42a96f(0x12f)])?(_0x3a2bf3[_0x42a96f(0x199)]('Bucket:\x20'+_0x3b7fe9+_0x42a96f(0x182)),_0x4fe6c1[_0x42a96f(0x1b4)](_0x15877d,!![])):(logger[_0x42a96f(0x19d)](_0x42a96f(0x179)+_0x51720c+_0x42a96f(0x13d)),_0x4bd617[_0x42a96f(0x1b6)](_0x5616fb,![]));});}else _0x4fe6c1[_0x2c3bd4(0x134)](_0x522457,_0x35ea6d);});},exports[a23_0x19ee3a(0x197)]=_0x2c9938=>{const _0x3e8763=a23_0x19ee3a,_0x167b98={'tyxrB':function(_0x162c15,_0x21d049){return _0x162c15(_0x21d049);},'KutgC':_0x3e8763(0x185),'RZWPB':function(_0x368581,_0x546b60){return _0x368581===_0x546b60;},'tNBXs':_0x3e8763(0x188),'cLHeD':function(_0x5a8e30,_0x915ec0){return _0x5a8e30(_0x915ec0);},'zxOyW':function(_0x2c92fb,_0x54aa13){return _0x2c92fb(_0x54aa13);},'qdyXc':function(_0x1c0992,_0xe4bc14){return _0x1c0992(_0xe4bc14);},'iazsM':_0x3e8763(0x1b1),'DJYST':_0x3e8763(0x177),'YfoyY':function(_0x2c5b45,_0x4dbbca){return _0x2c5b45===_0x4dbbca;},'HVYHl':_0x3e8763(0x146),'KHzjS':_0x3e8763(0x180)};return new Promise((_0xf3c570,_0x50a59b)=>{const _0x457c6b=_0x3e8763,_0x36a64b={'qAJdf':_0x167b98[_0x457c6b(0x144)],'pYyqp':function(_0x4d4388,_0x13a995){const _0x556343=_0x457c6b;return _0x167b98[_0x556343(0x18a)](_0x4d4388,_0x13a995);},'njVaR':function(_0x5f3ffb,_0x2c3c47){return _0x167b98['qdyXc'](_0x5f3ffb,_0x2c3c47);},'guyfz':function(_0x57152e,_0xd1de5f){const _0x5168dc=_0x457c6b;return _0x167b98[_0x5168dc(0x16c)](_0x57152e,_0xd1de5f);},'ekjjc':_0x167b98[_0x457c6b(0x1b2)],'MJlOi':_0x167b98['DJYST'],'LtqGz':function(_0x3d5a81,_0x38fca0){const _0x527673=_0x457c6b;return _0x167b98[_0x527673(0x1b5)](_0x3d5a81,_0x38fca0);}};if(_0x167b98[_0x457c6b(0x13b)](_0x167b98['HVYHl'],_0x167b98['KHzjS'])){const _0x316376={'rAJWP':function(_0x54bbc5,_0x1fa98c){const _0x353399=_0x457c6b;return _0x36a64b[_0x353399(0x1a4)](_0x54bbc5,_0x1fa98c);}};return new _0x21cfc8((_0x22eebd,_0x4914d9)=>{const _0x51b448=_0x457c6b,_0x3388b4={};_0x3388b4[_0x51b448(0x19f)]=_0x36a64b['qAJdf'],_0x3388b4[_0x51b448(0x12a)]=_0x197ee9;const _0x3b1da4=new _0x1db527[(_0x51b448(0x101))](_0x3388b4);_0x3b1da4[_0x51b448(0x121)]()[_0x51b448(0x189)]()[_0x51b448(0x160)](_0x3586e8=>{const _0x4c2b39=_0x51b448;_0x316376[_0x4c2b39(0x14f)](_0x22eebd,_0x3586e8);})['catch'](_0x279f70=>{const _0x649c73=_0x51b448;_0x12248c['error'](_0x649c73(0x110)+_0x279f70),_0x316376['rAJWP'](_0x4914d9,_0x279f70);});});}else{const _0x3d2f31={};_0x3d2f31[_0x457c6b(0x19f)]=_0x167b98[_0x457c6b(0x144)],_0x3d2f31[_0x457c6b(0x12a)]=_0x2c9938;const _0xcd7ab5=new awsSDK[(_0x457c6b(0x101))](_0x3d2f31);_0xcd7ab5['describeSubnets']()[_0x457c6b(0x189)]()[_0x457c6b(0x160)](_0x19446b=>{const _0x2bd31c=_0x457c6b,_0x13825a={'fVhhm':function(_0x253b95,_0x1b75e3){const _0x4ece3a=a23_0x135d;return _0x167b98[_0x4ece3a(0x151)](_0x253b95,_0x1b75e3);},'bZiXH':_0x167b98[_0x2bd31c(0x144)]};if(_0x167b98[_0x2bd31c(0x16c)](_0x167b98[_0x2bd31c(0x141)],_0x167b98['tNBXs']))_0x167b98[_0x2bd31c(0x173)](_0xf3c570,_0x19446b);else{const _0x283823={'xLugf':function(_0x2c9d9c,_0x5586f8){const _0x18bb74=_0x2bd31c;return _0x13825a[_0x18bb74(0x1a1)](_0x2c9d9c,_0x5586f8);}},_0x605426={};_0x605426['apiVersion']=_0x13825a['bZiXH'],_0x605426['region']=_0x25fd4c;const _0x106ad5=new _0x4438e2[(_0x2bd31c(0x101))](_0x605426);_0x106ad5['describeVpcs']()[_0x2bd31c(0x189)]()[_0x2bd31c(0x160)](_0x476f27=>{const _0x996b28=_0x2bd31c;_0x13825a[_0x996b28(0x1a1)](_0x2166c7,_0x476f27);})[_0x2bd31c(0x18c)](_0x1165dc=>{const _0x1722ba=_0x2bd31c;_0x54d1a0['error'](_0x1722ba(0x164)+_0x1165dc),_0x283823[_0x1722ba(0x131)](_0x2e0e43,_0x1165dc);});}})[_0x457c6b(0x18c)](_0x453bd9=>{const _0x49783f=_0x457c6b;if(_0x36a64b[_0x49783f(0x12d)](_0x36a64b[_0x49783f(0xff)],_0x36a64b[_0x49783f(0x166)])){const _0x3ea68a={'seeoq':function(_0x765e57,_0xc29fcf){const _0x4c3f2a=_0x49783f;return _0x36a64b[_0x4c3f2a(0x11e)](_0x765e57,_0xc29fcf);},'RFSyT':_0x36a64b[_0x49783f(0x118)]};return new _0x355bd6((_0x41589a,_0x30ae46)=>{const _0x237113=_0x49783f,_0x32fe58={'orFUL':function(_0x5e9b09,_0x6c6835){const _0x37ecdc=a23_0x135d;return _0x3ea68a[_0x37ecdc(0x198)](_0x5e9b09,_0x6c6835);}},_0x53a1ab={};_0x53a1ab[_0x237113(0x19f)]=_0x3ea68a['RFSyT'],_0x53a1ab[_0x237113(0x12a)]=_0x3aa25e;const _0x3a5953=new _0x278213['EC2'](_0x53a1ab);_0x3a5953[_0x237113(0x123)]()['promise']()[_0x237113(0x160)](_0x46e8dd=>{const _0x18f86b=_0x237113;_0x32fe58[_0x18f86b(0x18e)](_0x41589a,_0x46e8dd);})['catch'](_0x59a9ba=>{const _0xfca77b=_0x237113;_0x31bef0['error']('Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20'+_0x59a9ba),_0x3ea68a[_0xfca77b(0x198)](_0x30ae46,_0x59a9ba);});});}else logger[_0x49783f(0x170)](_0x49783f(0x110)+_0x453bd9),_0x36a64b[_0x49783f(0x119)](_0x50a59b,_0x453bd9);});}});},exports[a23_0x19ee3a(0x12e)]=_0x3657c9=>{const _0x5ae9be=a23_0x19ee3a,_0x3df021={'vdRbm':function(_0x27d01a,_0x52de31){return _0x27d01a(_0x52de31);},'mMywB':_0x5ae9be(0x100),'mSKNK':function(_0x4d1b55,_0xda9304){return _0x4d1b55!==_0xda9304;},'HflKT':_0x5ae9be(0x190),'vavWe':'sysHj','xNgbg':function(_0x21759e,_0x5151b0){return _0x21759e(_0x5151b0);},'jywej':function(_0x1d12db,_0x409eca){return _0x1d12db===_0x409eca;},'aJiYh':'NMhhF','uHRBN':_0x5ae9be(0x15f),'uwbOv':function(_0x4c65a7,_0x1b96a0){return _0x4c65a7(_0x1b96a0);},'eGncX':function(_0x1413c9,_0x607b97){return _0x1413c9!==_0x607b97;},'lFBmB':_0x5ae9be(0x108),'yYwLt':_0x5ae9be(0x185)};return new Promise((_0x3ac0ae,_0x488c79)=>{const _0x380cb1=_0x5ae9be,_0xaf127a={'SswUP':function(_0x104014,_0xb2e3a1){const _0x18ca23=a23_0x135d;return _0x3df021[_0x18ca23(0x113)](_0x104014,_0xb2e3a1);},'bhItD':function(_0x2d2adf,_0x4efb8a){const _0xffd59=a23_0x135d;return _0x3df021[_0xffd59(0x14e)](_0x2d2adf,_0x4efb8a);},'izIpt':_0x3df021[_0x380cb1(0x156)],'QVRhU':_0x3df021[_0x380cb1(0x12b)],'EcAeY':function(_0x7d24fe,_0x22bc14){const _0x28d9f1=_0x380cb1;return _0x3df021[_0x28d9f1(0x1af)](_0x7d24fe,_0x22bc14);},'LOwdD':function(_0x172828,_0x2bd0f1){const _0x2c0d46=_0x380cb1;return _0x3df021[_0x2c0d46(0x152)](_0x172828,_0x2bd0f1);},'YGDjq':_0x3df021[_0x380cb1(0x169)],'qpAmJ':_0x3df021['uHRBN'],'IWOSX':function(_0x270499,_0x4d56c0){const _0x1d2faa=_0x380cb1;return _0x3df021[_0x1d2faa(0x136)](_0x270499,_0x4d56c0);}};if(_0x3df021[_0x380cb1(0x11b)](_0x3df021[_0x380cb1(0x13a)],_0x3df021[_0x380cb1(0x13a)])){const _0x51008d={'SGdom':function(_0x5c3873,_0x3fd5a3){return _0x3df021['vdRbm'](_0x5c3873,_0x3fd5a3);}},_0x210ad1={};_0x210ad1[_0x380cb1(0x19f)]=_0x3df021[_0x380cb1(0x109)];const _0x4a4397=new _0x1f08d5[(_0x380cb1(0x15e))](_0x210ad1),_0x39e628={};_0x39e628[_0x380cb1(0x10c)]=_0x522412,_0x4a4397['describeCluster'](_0x39e628)[_0x380cb1(0x189)]()[_0x380cb1(0x160)](_0x348b3b=>{const _0x531273=_0x380cb1;_0xaf127a[_0x531273(0x124)](_0x1e5d69,_0x348b3b[_0x531273(0x187)][_0x531273(0x1a3)][_0x531273(0x178)]['issuer']);})['catch'](_0x389867=>{const _0x55df48=_0x380cb1;_0x557893['error'](_0x55df48(0x1a9)+_0x5067c0+':\x20'+_0x389867),_0x51008d['SGdom'](_0x44b72f,_0x389867);});}else{const _0x17f765={};_0x17f765['apiVersion']=_0x3df021[_0x380cb1(0x19c)],_0x17f765[_0x380cb1(0x12a)]=_0x3657c9;const _0x1135b4=new awsSDK['EC2'](_0x17f765);_0x1135b4[_0x380cb1(0x123)]()[_0x380cb1(0x189)]()[_0x380cb1(0x160)](_0x42d78d=>{const _0x17ab43=_0x380cb1;_0xaf127a[_0x17ab43(0x19b)](_0xaf127a['izIpt'],_0xaf127a[_0x17ab43(0x1aa)])?_0xaf127a['EcAeY'](_0x3ac0ae,_0x42d78d):_0xaf127a[_0x17ab43(0x124)](_0x38e148,_0x47ff0a);})['catch'](_0x23af57=>{const _0xdb4bab=_0x380cb1,_0x4b7efa={'aqveI':function(_0x4821b1,_0x265eff){const _0x2d0444=a23_0x135d;return _0xaf127a[_0x2d0444(0x14a)](_0x4821b1,_0x265eff);}};_0xaf127a[_0xdb4bab(0x194)](_0xaf127a[_0xdb4bab(0x1ab)],_0xaf127a['qpAmJ'])?(_0xa106d7['error'](_0xdb4bab(0x110)+_0x5cbb20),_0x4b7efa[_0xdb4bab(0x103)](_0xe561d8,_0x1c1761)):(logger[_0xdb4bab(0x170)](_0xdb4bab(0x115)+_0x23af57),_0xaf127a[_0xdb4bab(0x132)](_0x488c79,_0x23af57));});}});},exports[a23_0x19ee3a(0x15b)]=()=>{const _0x1969d5=a23_0x19ee3a,_0x4c0279={'ddUJl':function(_0x500d02,_0x4f90d3){return _0x500d02(_0x4f90d3);},'xOlbO':function(_0x13e0cb,_0x36d84e){return _0x13e0cb===_0x36d84e;},'DsRdy':_0x1969d5(0x17c),'dEGNy':'sEAeo','ghOGP':function(_0x15ede9,_0x9cffaa){return _0x15ede9(_0x9cffaa);},'iNvCD':_0x1969d5(0x185),'WBodk':function(_0x427091,_0x4afe36){return _0x427091!==_0x4afe36;},'TZAnc':function(_0x5d74e4,_0x10881d){return _0x5d74e4(_0x10881d);},'QXSMR':function(_0x2b6ffd,_0x4bb195){return _0x2b6ffd===_0x4bb195;},'LFIEi':_0x1969d5(0x111),'IBkzB':function(_0x1fbb63,_0xef6cad){return _0x1fbb63!==_0xef6cad;},'CzcJM':function(_0xd2ce26,_0x79c311){return _0xd2ce26===_0x79c311;},'ZRrAF':'oHkSe','qiNUk':_0x1969d5(0x106),'IbcFm':function(_0x13ad77,_0x5b8141){return _0x13ad77(_0x5b8141);},'YJOlC':function(_0x573120,_0x5a1356){return _0x573120!==_0x5a1356;},'faQpf':_0x1969d5(0x148)};return new Promise((_0x50e14c,_0x395931)=>{const _0x2c5536=_0x1969d5,_0x1b215e={'agvRj':function(_0x51efe0,_0x1996d4){const _0xb4d629=a23_0x135d;return _0x4c0279[_0xb4d629(0x122)](_0x51efe0,_0x1996d4);},'dcERQ':_0x4c0279[_0x2c5536(0x193)],'qkqro':function(_0x158351,_0x25ed28){const _0x468b99=_0x2c5536;return _0x4c0279[_0x468b99(0x127)](_0x158351,_0x25ed28);},'OwviQ':function(_0x115482,_0x46034c){const _0x791504=_0x2c5536;return _0x4c0279[_0x791504(0x117)](_0x115482,_0x46034c);},'TdQKC':function(_0x227197,_0x11f04c){return _0x4c0279['QXSMR'](_0x227197,_0x11f04c);},'wNfWq':_0x4c0279[_0x2c5536(0x150)],'DkLbD':function(_0x3a6fb3,_0xe027e4){const _0x51c0b5=_0x2c5536;return _0x4c0279[_0x51c0b5(0x127)](_0x3a6fb3,_0xe027e4);},'gKITS':function(_0x90d222,_0x427617){return _0x4c0279['IBkzB'](_0x90d222,_0x427617);},'dtdIB':function(_0x4dab2e,_0x2b07d3){return _0x4c0279['CzcJM'](_0x4dab2e,_0x2b07d3);},'KWcbB':_0x4c0279['ZRrAF'],'tbhiC':_0x4c0279['qiNUk'],'wKmdr':function(_0x4637ed,_0x22162a){const _0x4b15f5=_0x2c5536;return _0x4c0279[_0x4b15f5(0x13f)](_0x4637ed,_0x22162a);}};if(_0x4c0279[_0x2c5536(0x17b)](_0x4c0279[_0x2c5536(0x161)],_0x4c0279['faQpf'])){const _0x6d66e9={'AUqvX':function(_0x5e2a28,_0x4dbcf0){const _0x54853d=_0x2c5536;return _0x1b215e[_0x54853d(0x16d)](_0x5e2a28,_0x4dbcf0);}},_0x1f49ce={};_0x1f49ce[_0x2c5536(0x19f)]=_0x1b215e[_0x2c5536(0x147)],_0x1f49ce[_0x2c5536(0x12a)]=_0x384d84;const _0x216368=new _0x251477[(_0x2c5536(0x101))](_0x1f49ce);_0x216368[_0x2c5536(0x121)]()[_0x2c5536(0x189)]()['then'](_0x1b65d0=>{const _0x228ece=_0x2c5536;_0x1b215e[_0x228ece(0x16d)](_0x131468,_0x1b65d0);})[_0x2c5536(0x18c)](_0x4b744b=>{const _0x4dc567=_0x2c5536;_0x1fdc15[_0x4dc567(0x170)]('Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20'+_0x4b744b),_0x6d66e9[_0x4dc567(0x140)](_0x59e7fe,_0x4b744b);});}else{const _0x38cd49={};_0x38cd49['apiVersion']=_0x4c0279['iNvCD'];const _0x4c374e=new awsSDK[(_0x2c5536(0x101))](_0x38cd49);_0x4c374e[_0x2c5536(0x19e)]()[_0x2c5536(0x189)]()[_0x2c5536(0x160)]((_0x477e4f,_0x2e7137)=>{const _0x39f9a3=_0x2c5536,_0x306cc7={'DhopF':function(_0x3838af,_0x4aab30){const _0x5f2cd9=a23_0x135d;return _0x1b215e[_0x5f2cd9(0x16d)](_0x3838af,_0x4aab30);},'hputR':function(_0x33d285,_0x130e84){const _0x36dbb5=a23_0x135d;return _0x1b215e[_0x36dbb5(0x162)](_0x33d285,_0x130e84);},'lKXsX':function(_0x196b92,_0x713007){const _0x31da9b=a23_0x135d;return _0x1b215e[_0x31da9b(0x186)](_0x196b92,_0x713007);}};_0x1b215e[_0x39f9a3(0x1ad)](_0x1b215e['wNfWq'],_0x1b215e['wNfWq'])?_0x1b215e[_0x39f9a3(0x16b)](_0x477e4f,undefined)&&_0x1b215e['gKITS'](_0x477e4f[_0x39f9a3(0x17f)],undefined)?_0x1b215e[_0x39f9a3(0x14c)](_0x1b215e[_0x39f9a3(0x196)],_0x1b215e[_0x39f9a3(0x196)])?_0x1b215e[_0x39f9a3(0x186)](_0x50e14c,_0x477e4f[_0x39f9a3(0x17f)]):_0x306cc7[_0x39f9a3(0x163)](_0x27173c,_0x5bf978):_0x1b215e['DkLbD'](_0x1b215e[_0x39f9a3(0x126)],_0x1b215e[_0x39f9a3(0x126)])?_0x1b215e['agvRj'](_0x1119c8,_0x11676c['Regions']):_0x1b215e[_0x39f9a3(0x16d)](_0x50e14c,{}):_0x306cc7['hputR'](_0x425630,_0x37534c)&&_0x306cc7[_0x39f9a3(0x175)](_0x2f8838[_0x39f9a3(0x17f)],_0x90b64b)?_0x306cc7[_0x39f9a3(0x163)](_0x564ea5,_0x34ca2b[_0x39f9a3(0x17f)]):_0x306cc7['lKXsX'](_0x390537,{});})['catch'](_0x4c8cf8=>{const _0x42f3a1=_0x2c5536,_0x3e826e={'mmMgT':function(_0xbefeb,_0x322163){const _0x535651=a23_0x135d;return _0x4c0279[_0x535651(0x149)](_0xbefeb,_0x322163);}};if(_0x4c0279[_0x42f3a1(0x137)](_0x4c0279[_0x42f3a1(0x191)],_0x4c0279[_0x42f3a1(0x128)])){const _0x3a04ff={'CgDkf':function(_0x45891f,_0x5e30e2){return _0x1b215e['wKmdr'](_0x45891f,_0x5e30e2);}},_0x3915ff=new _0x4fe008['S3']();return new _0x249d4f((_0x18db07,_0x29c961)=>{const _0xbd7c25=_0x42f3a1,_0x4838ba={'dsXTT':function(_0x24453b,_0x12c592){return _0x3e826e['mmMgT'](_0x24453b,_0x12c592);}},_0x33101d={};_0x33101d[_0xbd7c25(0x165)]=_0x4157ca,_0x3915ff[_0xbd7c25(0x171)](_0x33101d)[_0xbd7c25(0x189)]()[_0xbd7c25(0x160)](_0x52e332=>{const _0x587057=_0xbd7c25;_0x29e8d9['warn']('Bucket:\x20'+_0x383d1c+_0x587057(0x182)),_0x4838ba[_0x587057(0xfc)](_0x18db07,!![]);})['catch'](()=>{const _0x504b7f=_0xbd7c25;_0xc52419[_0x504b7f(0x19d)](_0x504b7f(0x179)+_0x7efa85+'\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket'),_0x3a04ff[_0x504b7f(0x1ac)](_0x18db07,![]);});});}else logger[_0x42f3a1(0x170)](_0x42f3a1(0x139)+_0x4c8cf8),_0x4c0279[_0x42f3a1(0x122)](_0x395931,_0x4c8cf8);});}});},exports[a23_0x19ee3a(0x107)]=_0x40d2ad=>{const _0x1af918=a23_0x19ee3a,_0x13bdec={'eJoHf':function(_0x46991d,_0x265867){return _0x46991d(_0x265867);},'gYNSG':function(_0x33e51d,_0x5e8f30){return _0x33e51d===_0x5e8f30;},'dZLQh':_0x1af918(0x16a),'LHPzz':'OEgph','cLdNx':function(_0x5e2d88,_0x120062){return _0x5e2d88(_0x120062);},'twNGA':function(_0x202c38,_0x22b754){return _0x202c38(_0x22b754);},'SgxHt':function(_0x4cc22c,_0x1d5b9d){return _0x4cc22c===_0x1d5b9d;},'xujAt':'LpiSx','VKQGB':function(_0x1afeaa,_0x22e4b8){return _0x1afeaa(_0x22e4b8);},'tCEYW':function(_0x17f381,_0x24c9ee){return _0x17f381===_0x24c9ee;},'sejTe':_0x1af918(0x184),'BcFWH':_0x1af918(0xfe),'OPevN':_0x1af918(0x100)};return new Promise((_0x365982,_0x2418b0)=>{const _0x66f5d7=_0x1af918,_0xc34b14={'daMWd':function(_0x16153b,_0x21205f){const _0x38d7e9=a23_0x135d;return _0x13bdec[_0x38d7e9(0x18b)](_0x16153b,_0x21205f);}};if(_0x13bdec[_0x66f5d7(0x18d)](_0x13bdec[_0x66f5d7(0x195)],_0x13bdec[_0x66f5d7(0x172)]))_0x1139f9['info'](_0x66f5d7(0x179)+_0x10f9df+_0x66f5d7(0x13d)),_0xc34b14[_0x66f5d7(0x12c)](_0x49cb49,![]);else{const _0x2716d1={};_0x2716d1[_0x66f5d7(0x19f)]=_0x13bdec[_0x66f5d7(0x10b)];const _0x5c4916=new awsSDK[(_0x66f5d7(0x15e))](_0x2716d1),_0x2ea919={};_0x2ea919[_0x66f5d7(0x10c)]=_0x40d2ad,_0x5c4916[_0x66f5d7(0x157)](_0x2ea919)[_0x66f5d7(0x189)]()[_0x66f5d7(0x160)](_0x2f9b45=>{const _0x576a74=_0x66f5d7,_0x10ddec={'CGIyH':function(_0x544285,_0x57195e){const _0xedfc89=a23_0x135d;return _0x13bdec[_0xedfc89(0x11c)](_0x544285,_0x57195e);}};_0x13bdec[_0x576a74(0x138)](_0x13bdec[_0x576a74(0x159)],_0x13bdec[_0x576a74(0x17e)])?_0x10ddec[_0x576a74(0x15a)](_0x279976,_0x25cde2[_0x576a74(0x187)][_0x576a74(0x1a3)]['oidc']['issuer']):_0x13bdec[_0x576a74(0x18f)](_0x365982,_0x2f9b45[_0x576a74(0x187)][_0x576a74(0x1a3)][_0x576a74(0x178)][_0x576a74(0x1a2)]);})[_0x66f5d7(0x18c)](_0x2c4816=>{const _0x379850=_0x66f5d7,_0xbe1c1a={'jZJUl':function(_0x47c487,_0x10bedd){const _0x5aa321=a23_0x135d;return _0x13bdec[_0x5aa321(0x15d)](_0x47c487,_0x10bedd);}};_0x13bdec[_0x379850(0x19a)](_0x13bdec[_0x379850(0x1a8)],_0x13bdec[_0x379850(0x1a8)])?(logger[_0x379850(0x170)](_0x379850(0x1a9)+_0x40d2ad+':\x20'+_0x2c4816),_0x13bdec['cLdNx'](_0x2418b0,_0x2c4816)):(_0x2fcce8[_0x379850(0x170)](_0x379850(0x139)+_0x151de9),_0xbe1c1a[_0x379850(0x154)](_0x2d73f1,_0x150516));});}});},exports[a23_0x19ee3a(0x176)]=awsSDK;
1
+ const a23_0x245f3f=a23_0x1f28;(function(_0x46da8d,_0x58d551){const _0x45fa9b=a23_0x1f28,_0x1910cd=_0x46da8d();while(!![]){try{const _0x2066da=parseInt(_0x45fa9b(0xf7))/0x1*(-parseInt(_0x45fa9b(0xff))/0x2)+-parseInt(_0x45fa9b(0xbc))/0x3+-parseInt(_0x45fa9b(0xa3))/0x4+-parseInt(_0x45fa9b(0xd6))/0x5+-parseInt(_0x45fa9b(0x118))/0x6*(-parseInt(_0x45fa9b(0xd9))/0x7)+parseInt(_0x45fa9b(0x105))/0x8+parseInt(_0x45fa9b(0xc0))/0x9;if(_0x2066da===_0x58d551)break;else _0x1910cd['push'](_0x1910cd['shift']());}catch(_0x480f91){_0x1910cd['push'](_0x1910cd['shift']());}}}(a23_0x2fb0,0x2e919));function a23_0x2fb0(){const _0x1f78b5=['rrptJ','WFceC','lYRVt','catch','ohYtH','qNODz','describeCluster','CpTHJ','cuVQx','XgeUA','rDOsO','gvEKs','1AibRhr','yWuLV','pafMt','DdaDB','\x20already\x20exists.\x20Skipping\x20Bucket\x20creation','YpZOX','qVckw','fetchSubnets','455034TYjzyg','bfPwv','WlCrU','bNTmz','vFNAC','awsObj','2361112HITfjO','pPmia','hZQas','UpEtC','getAWSRegions','GeNpd','mdPvG','MMoba','error','LCapT','pXhDs','WmHFa','oidc','kHdGf','region','YRSpN','getOidcUrl','YXpUj','EC2','78HPzyJb','glGGC','tBCgc','EKS','uWQeo','uYjlu','nPFWu','Error\x20getting\x20OIDC\x20URL\x20for\x20cluster\x20','RPLvY','then','2016-11-15','eTsGf','IvFdV','Rhsys','WXhzl','Failed\x20to\x20fetch\x20AWS\x20Regions\x20due\x20to\x20error:\x20','UxbPK','name','Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20','pazcv','MfVim','Bucket:\x20','VJvvP','gBwJt','issuer','sCHuZ','XGtbg','apiVersion','NSrdT','PoVfe','rKgmX','Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20','GcWFU','nJWfz','Bucket','Regions','adAok','Molti','STLjm','AKYQY','VjJjN','uiJWD','BvHhd','vtJrt','vUjwy','bNWns','zYSMG','NtarG','eYVLj','tVKcf','WOqSa','JlCsG','1366632NHlCCw','cqYUa','AiyGA','uDBDC','wqArX','lmRLt','XazIn','jCumL','sKLRI','headBucket','SoqZu','describeSecurityGroups','describeSubnets','UcXcc','info','QqqNg','uUnmF','Khwxa','EJAhb','CFkAJ','ZoCvk','QBopW','describeVpcs','describeRegions','oaymQ','129546dggCHc','aRzev','PnSUy','OBBgC','4607280aeYEyv','gElRy','PsLpJ','yDwCS','warn','flvEG','dygzW','bQmeV','../config/logger','pEAvV','fetchSecurityGroups','igQyh','xhaTL','dcVWA','fetchVPCs','wgMjQ','\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket','OfqdJ','vOFLV','QExRo','xoJqc','ExUls','1858570pRHrAX','HQpXn','ITQiM','198023zkrspo','jmngp','Mmmva','identity','ROkoF','pCJtq','PgfjY','dBray','cPKXF','IcQkA','KXnKu','souzz','cluster','cVOsk','qxjZi','promise','YuoIA','ERMZj'];a23_0x2fb0=function(){return _0x1f78b5;};return a23_0x2fb0();}const awsSDK=require('aws-sdk'),{logger}=require(a23_0x245f3f(0xc8));function a23_0x1f28(_0x16141e,_0x56fef1){const _0x2fb014=a23_0x2fb0();return a23_0x1f28=function(_0x1f2878,_0x3d2625){_0x1f2878=_0x1f2878-0xa1;let _0x3f8ed7=_0x2fb014[_0x1f2878];return _0x3f8ed7;},a23_0x1f28(_0x16141e,_0x56fef1);}exports[a23_0x245f3f(0xce)]=_0x563f46=>{const _0x290b75=a23_0x245f3f,_0x1888dc={'bfPwv':function(_0x1896e3,_0x1cf384){return _0x1896e3(_0x1cf384);},'uDBDC':_0x290b75(0x122),'YpZOX':function(_0xdd1b7c,_0x45084a){return _0xdd1b7c===_0x45084a;},'qVckw':_0x290b75(0x102),'LCapT':_0x290b75(0xf4),'qxjZi':_0x290b75(0xd7),'IvFdV':function(_0x366338,_0x16e841){return _0x366338!==_0x16e841;},'gIUSY':_0x290b75(0x11a)};return new Promise((_0x5b2989,_0x13344b)=>{const _0x13f4d6=_0x290b75,_0x5025e4={'RPLvY':function(_0x329fc9,_0x2fa657){const _0x3d6a31=a23_0x1f28;return _0x1888dc[_0x3d6a31(0x100)](_0x329fc9,_0x2fa657);},'wgMjQ':function(_0x482115,_0x5ddd0a){const _0x45c0cc=a23_0x1f28;return _0x1888dc[_0x45c0cc(0xfc)](_0x482115,_0x5ddd0a);},'IBbMB':_0x1888dc[_0x13f4d6(0xe7)],'cVOsk':function(_0xc3244d,_0x889e79){return _0x1888dc['bfPwv'](_0xc3244d,_0x889e79);}};if(_0x1888dc[_0x13f4d6(0x124)](_0x1888dc['gIUSY'],_0x1888dc['gIUSY'])){const _0x1c847a={'ZlkFO':function(_0x5f4e8f,_0x3754e0){const _0x4705d9=_0x13f4d6;return _0x1888dc[_0x4705d9(0x100)](_0x5f4e8f,_0x3754e0);}},_0xa1a0b8={};_0xa1a0b8['apiVersion']=_0x1888dc[_0x13f4d6(0xa6)],_0xa1a0b8[_0x13f4d6(0x113)]=_0x4c8b67;const _0x3dcc50=new _0x23daa6['EC2'](_0xa1a0b8);_0x3dcc50[_0x13f4d6(0xb9)]()['promise']()[_0x13f4d6(0x121)](_0x33c532=>{_0x1c847a['ZlkFO'](_0xfdb783,_0x33c532);})[_0x13f4d6(0xee)](_0x327b03=>{const _0x35baef=_0x13f4d6;_0x543ea8[_0x35baef(0x10d)](_0x35baef(0x12a)+_0x327b03),_0x5025e4[_0x35baef(0x120)](_0x835c,_0x327b03);});}else{const _0x4a5afd={};_0x4a5afd[_0x13f4d6(0x133)]=_0x1888dc[_0x13f4d6(0xa6)],_0x4a5afd[_0x13f4d6(0x113)]=_0x563f46;const _0x3066c4=new awsSDK[(_0x13f4d6(0x117))](_0x4a5afd);_0x3066c4[_0x13f4d6(0xb9)]()[_0x13f4d6(0xe8)]()['then'](_0x1fec0b=>{const _0x56404b=_0x13f4d6;_0x5025e4[_0x56404b(0xcf)](_0x5025e4['IBbMB'],_0x5025e4['IBbMB'])?_0x5025e4[_0x56404b(0xe6)](_0x5b2989,_0x1fec0b):(_0x59d765[_0x56404b(0x10d)]('Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20'+_0x891ffc),_0x5025e4[_0x56404b(0x120)](_0x1dda58,_0xb878c9));})[_0x13f4d6(0xee)](_0x1c9ac8=>{const _0x24f15c=_0x13f4d6,_0x4bd87a={'pXhDs':function(_0x1fdb85,_0x3b2d28){const _0x24f8a3=a23_0x1f28;return _0x1888dc[_0x24f8a3(0x100)](_0x1fdb85,_0x3b2d28);}};_0x1888dc[_0x24f15c(0xfc)](_0x1888dc[_0x24f15c(0xfd)],_0x1888dc[_0x24f15c(0x10e)])?_0x4bd87a[_0x24f15c(0x10f)](_0xeb64e3,_0x4dd450):(logger[_0x24f15c(0x10d)](_0x24f15c(0x12a)+_0x1c9ac8),_0x1888dc['bfPwv'](_0x13344b,_0x1c9ac8));});}});},exports['isBucketPresent']=_0x35ba45=>{const _0x41ee95=a23_0x245f3f,_0x1d30f0={'GcWFU':function(_0x123b5a,_0x415dc5){return _0x123b5a!==_0x415dc5;},'cuVQx':function(_0x868a29,_0xe32169){return _0x868a29(_0xe32169);},'dygzW':function(_0x5bd482,_0x4832bb){return _0x5bd482===_0x4832bb;},'pazcv':_0x41ee95(0x128),'Khwxa':function(_0x1b2e31,_0x4f83d9){return _0x1b2e31(_0x4f83d9);},'AKYQY':function(_0x18585d,_0x272e1e){return _0x18585d===_0x272e1e;},'YRSpN':_0x41ee95(0x119),'ENDYE':function(_0x283d9c,_0x18f3da){return _0x283d9c(_0x18f3da);},'ExUls':function(_0x55c918,_0x4eeb26){return _0x55c918!==_0x4eeb26;},'Molti':'phWJR'},_0x267bf2=new awsSDK['S3']();return new Promise((_0xdb575c,_0x20d17a)=>{const _0x760226=_0x41ee95,_0x133946={'CpTHJ':function(_0x284308,_0x2098ab){return _0x1d30f0['ENDYE'](_0x284308,_0x2098ab);}};if(_0x1d30f0[_0x760226(0xd5)](_0x1d30f0[_0x760226(0x13d)],_0x1d30f0['Molti'])){const _0x363825=new _0x57515c['S3']();return new _0x36b82f((_0x26764f,_0x488bf2)=>{const _0x4e795a=_0x760226,_0x54acda={'lmRLt':function(_0x448eca,_0x51fceb){const _0x5bd914=a23_0x1f28;return _0x133946[_0x5bd914(0xf2)](_0x448eca,_0x51fceb);}},_0x47a766={};_0x47a766[_0x4e795a(0x13a)]=_0x4fd178,_0x363825[_0x4e795a(0xac)](_0x47a766)[_0x4e795a(0xe8)]()[_0x4e795a(0x121)](_0x34a2e6=>{const _0x4e4f43=_0x4e795a;_0x5ae645[_0x4e4f43(0xc4)](_0x4e4f43(0x12d)+_0x256a8b+_0x4e4f43(0xfb)),_0x54acda[_0x4e4f43(0xa8)](_0x26764f,!![]);})[_0x4e795a(0xee)](()=>{const _0x59ec66=_0x4e795a;_0x22cba2[_0x59ec66(0xb1)](_0x59ec66(0x12d)+_0x51d478+'\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket'),_0x54acda[_0x59ec66(0xa8)](_0x26764f,![]);});});}else{const _0x560b9e={};_0x560b9e['Bucket']=_0x35ba45,_0x267bf2[_0x760226(0xac)](_0x560b9e)[_0x760226(0xe8)]()['then'](_0x1561c8=>{const _0x503857=_0x760226,_0x15ad9b={'VjJjN':function(_0x131062,_0xfae99b){const _0x461532=a23_0x1f28;return _0x1d30f0[_0x461532(0x138)](_0x131062,_0xfae99b);},'NHKUw':function(_0x242f31,_0x4919c6){const _0x298094=a23_0x1f28;return _0x1d30f0[_0x298094(0xf3)](_0x242f31,_0x4919c6);},'tYkxv':function(_0x3fc297,_0x20fb8e){const _0x56c6c8=a23_0x1f28;return _0x1d30f0[_0x56c6c8(0xf3)](_0x3fc297,_0x20fb8e);}};_0x1d30f0[_0x503857(0xc6)](_0x1d30f0['pazcv'],_0x1d30f0[_0x503857(0x12b)])?(logger[_0x503857(0xc4)](_0x503857(0x12d)+_0x35ba45+_0x503857(0xfb)),_0x1d30f0[_0x503857(0xb4)](_0xdb575c,!![])):_0x15ad9b[_0x503857(0x140)](_0x522368,_0x2b333e)&&_0x15ad9b[_0x503857(0x140)](_0x4ed1e1['Regions'],_0x148c6e)?_0x15ad9b['NHKUw'](_0x2de37d,_0x66ea8[_0x503857(0x13b)]):_0x15ad9b['tYkxv'](_0x2f4b48,{});})[_0x760226(0xee)](()=>{const _0x14dd31=_0x760226,_0xe031af={'MfVim':function(_0x15a966,_0x2c92ba){const _0xd0c367=a23_0x1f28;return _0x1d30f0[_0xd0c367(0xf3)](_0x15a966,_0x2c92ba);}};_0x1d30f0[_0x14dd31(0x13f)](_0x1d30f0[_0x14dd31(0x114)],_0x1d30f0[_0x14dd31(0x114)])?(logger[_0x14dd31(0xb1)](_0x14dd31(0x12d)+_0x35ba45+_0x14dd31(0xd0)),_0x1d30f0['Khwxa'](_0xdb575c,![])):(_0x171e4d[_0x14dd31(0xc4)]('Bucket:\x20'+_0xe631e4+_0x14dd31(0xfb)),_0xe031af[_0x14dd31(0x12c)](_0x156443,!![]));});}});},exports[a23_0x245f3f(0xfe)]=_0x2eae5f=>{const _0x3f616c=a23_0x245f3f,_0x431793={'WFceC':function(_0x123a91,_0x4a0101){return _0x123a91(_0x4a0101);},'nPFWu':function(_0x304e04,_0x27036a){return _0x304e04!==_0x27036a;},'Rhsys':'jzWSW','yWuLV':_0x3f616c(0x10c),'qNODz':function(_0x20b2a5,_0x4084d1){return _0x20b2a5(_0x4084d1);},'KXnKu':'2017-11-01','XazIn':function(_0x199640,_0x140d3e){return _0x199640===_0x140d3e;},'OfqdJ':_0x3f616c(0xbe),'yDwCS':function(_0x5bb17c,_0x2a6bcd){return _0x5bb17c(_0x2a6bcd);},'XIqxE':_0x3f616c(0x13c),'pEAvV':'MNOwK','eYVLj':_0x3f616c(0x122)};return new Promise((_0x11e17a,_0x3d75d4)=>{const _0x43f50e=_0x3f616c,_0x15e4db={'sCHuZ':function(_0x576a12,_0x413082){const _0x1a44da=a23_0x1f28;return _0x431793[_0x1a44da(0xec)](_0x576a12,_0x413082);},'UpEtC':function(_0x2072ec,_0x320c5f){const _0x4e2c58=a23_0x1f28;return _0x431793[_0x4e2c58(0xf0)](_0x2072ec,_0x320c5f);},'BvHhd':_0x431793[_0x43f50e(0xe3)],'oaymQ':function(_0x40face,_0x4b2374){const _0x10345a=_0x43f50e;return _0x431793[_0x10345a(0xa9)](_0x40face,_0x4b2374);},'jmngp':_0x431793[_0x43f50e(0xd1)],'uUFrS':function(_0x3b177d,_0xc39def){const _0x1b9a00=_0x43f50e;return _0x431793[_0x1b9a00(0xc3)](_0x3b177d,_0xc39def);}};if(_0x431793['XazIn'](_0x431793['XIqxE'],_0x431793[_0x43f50e(0xc9)])){const _0x2d73c0={'YuoIA':function(_0x2d9dc9,_0x448373){const _0x6ad2d2=_0x43f50e;return _0x15e4db[_0x6ad2d2(0x131)](_0x2d9dc9,_0x448373);},'xKWzu':function(_0x31bb59,_0x58f789){const _0x178836=_0x43f50e;return _0x15e4db[_0x178836(0x108)](_0x31bb59,_0x58f789);},'IcQkA':_0x15e4db[_0x43f50e(0x142)]};return new _0x3b2c01((_0x247056,_0x2a5dba)=>{const _0x3f7261=_0x43f50e,_0x1ce83a={'UcXcc':function(_0x5cbd61,_0x216b3c){return _0x2d73c0['xKWzu'](_0x5cbd61,_0x216b3c);}},_0x494fec={};_0x494fec[_0x3f7261(0x133)]=_0x2d73c0[_0x3f7261(0xe2)];const _0x349858=new _0x1e4a41[(_0x3f7261(0x11b))](_0x494fec),_0x35b290={};_0x35b290[_0x3f7261(0x129)]=_0x28950b,_0x349858['describeCluster'](_0x35b290)[_0x3f7261(0xe8)]()[_0x3f7261(0x121)](_0x363120=>{const _0x56e6c0=_0x3f7261;_0x1ce83a[_0x56e6c0(0xb0)](_0x247056,_0x363120[_0x56e6c0(0xe5)][_0x56e6c0(0xdc)][_0x56e6c0(0x111)]['issuer']);})[_0x3f7261(0xee)](_0x44430c=>{const _0x31392f=_0x3f7261;_0x2bd8c3['error'](_0x31392f(0x11f)+_0x3b703a+':\x20'+_0x44430c),_0x2d73c0[_0x31392f(0xe9)](_0x2a5dba,_0x44430c);});});}else{const _0x20cfd2={};_0x20cfd2[_0x43f50e(0x133)]=_0x431793[_0x43f50e(0x148)],_0x20cfd2[_0x43f50e(0x113)]=_0x2eae5f;const _0x5cee4b=new awsSDK['EC2'](_0x20cfd2);_0x5cee4b[_0x43f50e(0xaf)]()[_0x43f50e(0xe8)]()['then'](_0xb3a762=>{const _0x168e06=_0x43f50e,_0x306cce={'pPmia':function(_0x2f4e7d,_0x5030e4){const _0x48c08=a23_0x1f28;return _0x431793[_0x48c08(0xec)](_0x2f4e7d,_0x5030e4);}};_0x431793[_0x168e06(0x11e)](_0x431793[_0x168e06(0x125)],_0x431793[_0x168e06(0xf8)])?_0x431793[_0x168e06(0xec)](_0x11e17a,_0xb3a762):(_0x1e4334[_0x168e06(0x10d)]('Error\x20getting\x20OIDC\x20URL\x20for\x20cluster\x20'+_0x47a771+':\x20'+_0x272c31),_0x306cce[_0x168e06(0x106)](_0x1ba4ba,_0x2a17ba));})[_0x43f50e(0xee)](_0x1dc2c0=>{const _0x400d37=_0x43f50e,_0x4ef907={'PyCRj':function(_0x2f7dd5,_0x2f59da){const _0x8645c4=a23_0x1f28;return _0x15e4db[_0x8645c4(0x108)](_0x2f7dd5,_0x2f59da);}};_0x15e4db[_0x400d37(0xbb)](_0x15e4db[_0x400d37(0xda)],_0x15e4db[_0x400d37(0xda)])?(logger['error']('Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20'+_0x1dc2c0),_0x15e4db['uUFrS'](_0x3d75d4,_0x1dc2c0)):(_0x4952f0[_0x400d37(0x10d)](_0x400d37(0x12a)+_0x37e166),_0x4ef907['PyCRj'](_0x38dfe6,_0xcf8ceb));});}});},exports[a23_0x245f3f(0xca)]=_0x48ccb0=>{const _0x1a46df=a23_0x245f3f,_0x1374c7={'jCumL':function(_0x58e183,_0x4bfffe){return _0x58e183(_0x4bfffe);},'zXkGz':function(_0x3587de,_0xb38213){return _0x3587de===_0xb38213;},'pafMt':_0x1a46df(0xdb),'aRzev':_0x1a46df(0xa2),'yQbDo':function(_0x36d183,_0x42bdc8){return _0x36d183(_0x42bdc8);},'vFNAC':function(_0x218dcd,_0x2b4f15){return _0x218dcd!==_0x2b4f15;},'PsLpJ':_0x1a46df(0xcb),'cqYUa':function(_0x56f79a,_0x272ef8){return _0x56f79a!==_0x272ef8;},'gvEKs':_0x1a46df(0x149),'flvEG':_0x1a46df(0x144),'yrPKp':_0x1a46df(0x122)};return new Promise((_0x2e3e71,_0x3ef03e)=>{const _0x4fcfad=_0x1a46df,_0x52f007={'dBray':function(_0x5f0669,_0x111300){const _0x5b803e=a23_0x1f28;return _0x1374c7[_0x5b803e(0xaa)](_0x5f0669,_0x111300);},'oqyFF':function(_0x571732,_0x435ce1){return _0x1374c7['zXkGz'](_0x571732,_0x435ce1);},'XGtbg':_0x1374c7[_0x4fcfad(0xf9)],'wqArX':_0x1374c7[_0x4fcfad(0xbd)],'QqqNg':function(_0xb200b9,_0x4de2cb){return _0x1374c7['yQbDo'](_0xb200b9,_0x4de2cb);},'lYRVt':function(_0x562b09,_0xae24ba){const _0x1fec00=_0x4fcfad;return _0x1374c7[_0x1fec00(0x103)](_0x562b09,_0xae24ba);},'uWQeo':_0x1374c7[_0x4fcfad(0xc2)]};if(_0x1374c7[_0x4fcfad(0xa4)](_0x1374c7[_0x4fcfad(0xf6)],_0x1374c7[_0x4fcfad(0xc5)])){const _0x263860={};_0x263860[_0x4fcfad(0x133)]=_0x1374c7['yrPKp'],_0x263860[_0x4fcfad(0x113)]=_0x48ccb0;const _0x58da9c=new awsSDK['EC2'](_0x263860);_0x58da9c[_0x4fcfad(0xae)]()['promise']()[_0x4fcfad(0x121)](_0xb3176c=>{const _0x2e1a24=_0x4fcfad,_0x567963={'GeNpd':function(_0x3c4ff0,_0x5b8247){return _0x52f007['dBray'](_0x3c4ff0,_0x5b8247);}};_0x52f007['oqyFF'](_0x52f007[_0x2e1a24(0x132)],_0x52f007[_0x2e1a24(0xa7)])?_0x567963[_0x2e1a24(0x10a)](_0x139de4,_0xb35552):_0x52f007[_0x2e1a24(0xe0)](_0x2e3e71,_0xb3176c);})[_0x4fcfad(0xee)](_0x3f869b=>{const _0x37d17c=_0x4fcfad,_0x134da2={'AiyGA':function(_0x4630a5,_0x5279ca){return _0x52f007['QqqNg'](_0x4630a5,_0x5279ca);}};_0x52f007[_0x37d17c(0xed)](_0x52f007[_0x37d17c(0x11c)],_0x52f007[_0x37d17c(0x11c)])?_0x134da2[_0x37d17c(0xa5)](_0x5dfb7a,_0x544f1f):(logger[_0x37d17c(0x10d)](_0x37d17c(0x137)+_0x3f869b),_0x52f007[_0x37d17c(0xb2)](_0x3ef03e,_0x3f869b));});}else _0x52f007[_0x4fcfad(0xe0)](_0x150127,_0x491ad2[_0x4fcfad(0x13b)]);});},exports[a23_0x245f3f(0x109)]=()=>{const _0x5ff599=a23_0x245f3f,_0x255628={'xhaTL':function(_0x3083a4,_0x5663e7){return _0x3083a4(_0x5663e7);},'nMosT':function(_0x272ac2,_0x3be7f8){return _0x272ac2===_0x3be7f8;},'mdPvG':'tMjEB','rDOsO':_0x5ff599(0x123),'WXhzl':'2016-11-15','ZoCvk':function(_0x48c044,_0xbda8a){return _0x48c044(_0xbda8a);},'ERMZj':function(_0x2a2b3c,_0x1c4561){return _0x2a2b3c(_0x1c4561);},'vtJrt':function(_0xe1a765,_0x1aba0b){return _0xe1a765===_0x1aba0b;},'CFkAJ':_0x5ff599(0xeb),'SoqZu':function(_0x367345,_0x16725a){return _0x367345!==_0x16725a;},'sKLRI':_0x5ff599(0xe4),'yJqVz':_0x5ff599(0x145),'ohYtH':'ylTqx','WlCrU':'XYdGb'};return new Promise((_0x45d172,_0x11e5df)=>{const _0x50a018=_0x5ff599,_0x766739={'kHdGf':_0x255628['WXhzl'],'LmaZA':function(_0x4d3615,_0x45e88f){const _0x54da2d=a23_0x1f28;return _0x255628[_0x54da2d(0xb7)](_0x4d3615,_0x45e88f);},'pCJtq':function(_0x15a44e,_0x4ce45f){const _0x11626d=a23_0x1f28;return _0x255628[_0x11626d(0xea)](_0x15a44e,_0x4ce45f);},'YXpUj':function(_0x42b7a9,_0x13a094){const _0x555a38=a23_0x1f28;return _0x255628[_0x555a38(0x143)](_0x42b7a9,_0x13a094);},'PoVfe':_0x255628[_0x50a018(0xb6)],'WOqSa':function(_0x2b4aa1,_0x2b35fa){const _0x57398a=_0x50a018;return _0x255628[_0x57398a(0xad)](_0x2b4aa1,_0x2b35fa);},'uiJWD':_0x255628[_0x50a018(0xab)],'MNudT':function(_0x5ddba3,_0x2bcabb){const _0x3e5bfd=_0x50a018;return _0x255628[_0x3e5bfd(0xcc)](_0x5ddba3,_0x2bcabb);},'HkcnX':function(_0x2ee74f,_0x5c7ec5){return _0x255628['SoqZu'](_0x2ee74f,_0x5c7ec5);},'ITQiM':_0x255628['yJqVz'],'hZQas':_0x255628[_0x50a018(0xef)],'OlmVJ':function(_0x11d210,_0x418f4c){const _0x1f7142=_0x50a018;return _0x255628[_0x1f7142(0xb7)](_0x11d210,_0x418f4c);}};if(_0x255628[_0x50a018(0xad)](_0x255628['WlCrU'],_0x255628[_0x50a018(0x101)]))_0x1a1fd2[_0x50a018(0x10d)](_0x50a018(0x127)+_0x381636),_0x255628[_0x50a018(0xcc)](_0x623548,_0x315f65);else{const _0x49fb74={};_0x49fb74[_0x50a018(0x133)]=_0x255628[_0x50a018(0x126)];const _0xdf99c8=new awsSDK['EC2'](_0x49fb74);_0xdf99c8[_0x50a018(0xba)]()[_0x50a018(0xe8)]()[_0x50a018(0x121)]((_0x44237a,_0x145b72)=>{const _0x506d7e=_0x50a018,_0x2033e9={'STLjm':function(_0x55bbf7,_0x5034f4){return _0x766739['LmaZA'](_0x55bbf7,_0x5034f4);},'uYjlu':function(_0x3bd87e,_0x13f74c){const _0xc7b4c1=a23_0x1f28;return _0x766739[_0xc7b4c1(0xde)](_0x3bd87e,_0x13f74c);}};if(_0x766739[_0x506d7e(0x116)](_0x766739[_0x506d7e(0x135)],_0x766739[_0x506d7e(0x135)])){if(_0x766739[_0x506d7e(0xa1)](_0x44237a,undefined)&&_0x766739[_0x506d7e(0xa1)](_0x44237a[_0x506d7e(0x13b)],undefined))_0x766739[_0x506d7e(0x116)](_0x766739[_0x506d7e(0x141)],_0x766739[_0x506d7e(0x141)])?_0x766739['MNudT'](_0x45d172,_0x44237a[_0x506d7e(0x13b)]):_0x2033e9[_0x506d7e(0x13e)](_0x56d042,_0x3b38f9[_0x506d7e(0xe5)]['identity'][_0x506d7e(0x111)]['issuer']);else{if(_0x766739['HkcnX'](_0x766739[_0x506d7e(0xd8)],_0x766739[_0x506d7e(0x107)]))_0x766739['MNudT'](_0x45d172,{});else{const _0x306c10={};_0x306c10[_0x506d7e(0x133)]=_0x766739[_0x506d7e(0x112)],_0x306c10[_0x506d7e(0x113)]=_0x551943;const _0x517a35=new _0x23c9fc[(_0x506d7e(0x117))](_0x306c10);_0x517a35[_0x506d7e(0xae)]()['promise']()[_0x506d7e(0x121)](_0x11d281=>{const _0x5d035b=_0x506d7e;_0x2033e9[_0x5d035b(0x11d)](_0xd70c95,_0x11d281);})[_0x506d7e(0xee)](_0x2f0fd6=>{const _0xbebb0b=_0x506d7e;_0x1ce00f['error'](_0xbebb0b(0x137)+_0x2f0fd6),_0x2033e9[_0xbebb0b(0x13e)](_0x57f178,_0x2f0fd6);});}}}else _0x2e9ec1[_0x506d7e(0xb1)](_0x506d7e(0x12d)+_0x264ee8+_0x506d7e(0xd0)),_0x2033e9[_0x506d7e(0x13e)](_0x170519,![]);})[_0x50a018(0xee)](_0x42019c=>{const _0x5a970f=_0x50a018;if(_0x255628['nMosT'](_0x255628[_0x5a970f(0x10b)],_0x255628[_0x5a970f(0xf5)])){const _0x3e0ef9={'gElRy':function(_0x364277,_0x1678ba){return _0x766739['OlmVJ'](_0x364277,_0x1678ba);},'xoJqc':_0x766739[_0x5a970f(0x112)]};return new _0x2dda58((_0x4d10c7,_0x527a77)=>{const _0x17191f=_0x5a970f,_0x36f2c6={'MvEBj':function(_0x7f10fb,_0x22def2){const _0x516423=a23_0x1f28;return _0x3e0ef9[_0x516423(0xc1)](_0x7f10fb,_0x22def2);}},_0x4f6bb1={};_0x4f6bb1[_0x17191f(0x133)]=_0x3e0ef9[_0x17191f(0xd4)],_0x4f6bb1[_0x17191f(0x113)]=_0x1ee6dc;const _0x57646d=new _0x2d9abb[(_0x17191f(0x117))](_0x4f6bb1);_0x57646d[_0x17191f(0xb9)]()['promise']()[_0x17191f(0x121)](_0x410cd4=>{const _0x1955ff=_0x17191f;_0x3e0ef9[_0x1955ff(0xc1)](_0x4d10c7,_0x410cd4);})[_0x17191f(0xee)](_0x581df5=>{const _0x30c6c4=_0x17191f;_0x49ea7b['error'](_0x30c6c4(0x12a)+_0x581df5),_0x36f2c6['MvEBj'](_0x527a77,_0x581df5);});});}else logger[_0x5a970f(0x10d)]('Failed\x20to\x20fetch\x20AWS\x20Regions\x20due\x20to\x20error:\x20'+_0x42019c),_0x255628[_0x5a970f(0xcc)](_0x11e5df,_0x42019c);});}});},exports[a23_0x245f3f(0x115)]=_0x35eba7=>{const _0x5f3a40=a23_0x245f3f,_0x218846={'rKgmX':function(_0x127db3,_0x4429ee){return _0x127db3(_0x4429ee);},'VJvvP':function(_0x4bdbdc,_0x11cde5){return _0x4bdbdc===_0x11cde5;},'WmHFa':_0x5f3a40(0xd2),'CdHbo':_0x5f3a40(0x146),'QExRo':'2017-11-01','DdaDB':function(_0x52730b,_0x35f3fe){return _0x52730b!==_0x35f3fe;},'OBBgC':_0x5f3a40(0x139),'ROkoF':function(_0x4a23da,_0x1e6f2b){return _0x4a23da(_0x1e6f2b);},'dcVWA':function(_0xf754b4,_0x53eb8f){return _0xf754b4(_0x53eb8f);},'gBwJt':'2016-11-15','cPKXF':'hwsLO'};return new Promise((_0x41abbd,_0x4e5262)=>{const _0x406621=_0x5f3a40;if(_0x218846['VJvvP'](_0x218846[_0x406621(0xe1)],_0x218846[_0x406621(0xe1)])){const _0x3d34e3={};_0x3d34e3[_0x406621(0x133)]=_0x218846[_0x406621(0xd3)];const _0xf603f2=new awsSDK[(_0x406621(0x11b))](_0x3d34e3),_0x12a151={};_0x12a151[_0x406621(0x129)]=_0x35eba7,_0xf603f2['describeCluster'](_0x12a151)[_0x406621(0xe8)]()[_0x406621(0x121)](_0x3d7991=>{const _0x359a78=_0x406621,_0x3c16ac={'uUnmF':function(_0x4aeac0,_0x2c20b5){const _0x39792d=a23_0x1f28;return _0x218846[_0x39792d(0x136)](_0x4aeac0,_0x2c20b5);}};_0x218846[_0x359a78(0x12e)](_0x218846[_0x359a78(0x110)],_0x218846['CdHbo'])?(_0x7aaa89['error'](_0x359a78(0x137)+_0x4ed4c8),_0x3c16ac[_0x359a78(0xb3)](_0x37fe03,_0x33bf0e)):_0x218846[_0x359a78(0x136)](_0x41abbd,_0x3d7991[_0x359a78(0xe5)][_0x359a78(0xdc)]['oidc'][_0x359a78(0x130)]);})[_0x406621(0xee)](_0x597b3b=>{const _0x52d220=_0x406621,_0x56a9ba={'NtarG':function(_0x33fee7,_0x4e9ed0){return _0x218846['rKgmX'](_0x33fee7,_0x4e9ed0);},'cJOKf':function(_0x369906,_0x55fdc2){const _0x1b0da7=a23_0x1f28;return _0x218846[_0x1b0da7(0x136)](_0x369906,_0x55fdc2);},'NSrdT':_0x218846[_0x52d220(0xd3)]};if(_0x218846[_0x52d220(0xfa)](_0x218846[_0x52d220(0xbf)],_0x218846[_0x52d220(0xbf)])){const _0x19bee2={'QBopW':function(_0x46954d,_0x3f950b){const _0x4e0cf7=_0x52d220;return _0x56a9ba[_0x4e0cf7(0x147)](_0x46954d,_0x3f950b);},'bQmeV':function(_0x45acf3,_0x3dba5a){return _0x56a9ba['cJOKf'](_0x45acf3,_0x3dba5a);}},_0x586f84={};_0x586f84[_0x52d220(0x133)]=_0x56a9ba[_0x52d220(0x134)];const _0x9f27=new _0x10ad82[(_0x52d220(0x11b))](_0x586f84),_0x59dd0b={};_0x59dd0b[_0x52d220(0x129)]=_0x9b220e,_0x9f27[_0x52d220(0xf1)](_0x59dd0b)[_0x52d220(0xe8)]()[_0x52d220(0x121)](_0x53cb45=>{const _0x327957=_0x52d220;_0x19bee2[_0x327957(0xb8)](_0x4c03de,_0x53cb45[_0x327957(0xe5)][_0x327957(0xdc)]['oidc'][_0x327957(0x130)]);})['catch'](_0x270424=>{const _0x3cc85c=_0x52d220;_0xf696b5[_0x3cc85c(0x10d)](_0x3cc85c(0x11f)+_0x4a6a3a+':\x20'+_0x270424),_0x19bee2[_0x3cc85c(0xc7)](_0x5d9e75,_0x270424);});}else logger[_0x52d220(0x10d)](_0x52d220(0x11f)+_0x35eba7+':\x20'+_0x597b3b),_0x218846[_0x52d220(0xdd)](_0x4e5262,_0x597b3b);});}else{const _0x1ba090={'PgfjY':function(_0x122e49,_0x37e942){const _0x40cd27=_0x406621;return _0x218846[_0x40cd27(0xcd)](_0x122e49,_0x37e942);},'fwZjL':_0x218846[_0x406621(0x12f)]};return new _0x1c54f0((_0x112ae0,_0x3ec848)=>{const _0x17e809=_0x406621,_0x11a16b={'EJAhb':function(_0x19c737,_0x153cc6){const _0x3830f1=a23_0x1f28;return _0x1ba090[_0x3830f1(0xdf)](_0x19c737,_0x153cc6);}},_0x5ae07f={};_0x5ae07f[_0x17e809(0x133)]=_0x1ba090['fwZjL'],_0x5ae07f[_0x17e809(0x113)]=_0x97b72b;const _0x46ed60=new _0x44781e['EC2'](_0x5ae07f);_0x46ed60[_0x17e809(0xae)]()[_0x17e809(0xe8)]()[_0x17e809(0x121)](_0x506469=>{_0x1ba090['PgfjY'](_0x112ae0,_0x506469);})[_0x17e809(0xee)](_0x54a02a=>{const _0x3ad06a=_0x17e809;_0x21300c['error'](_0x3ad06a(0x137)+_0x54a02a),_0x11a16b[_0x3ad06a(0xb5)](_0x3ec848,_0x54a02a);});});}});},exports[a23_0x245f3f(0x104)]=awsSDK;
@@ -1 +1 @@
1
- const a24_0x197377=a24_0x4acd;(function(_0x248af6,_0x2ada44){const _0xe98ef0=a24_0x4acd,_0x5dd691=_0x248af6();while(!![]){try{const _0xc639a6=-parseInt(_0xe98ef0(0x18e))/0x1+parseInt(_0xe98ef0(0x17c))/0x2*(parseInt(_0xe98ef0(0x181))/0x3)+-parseInt(_0xe98ef0(0x19b))/0x4+parseInt(_0xe98ef0(0x1af))/0x5*(-parseInt(_0xe98ef0(0x1a8))/0x6)+parseInt(_0xe98ef0(0x17d))/0x7*(-parseInt(_0xe98ef0(0x17f))/0x8)+parseInt(_0xe98ef0(0x191))/0x9+parseInt(_0xe98ef0(0x19d))/0xa*(parseInt(_0xe98ef0(0x1b1))/0xb);if(_0xc639a6===_0x2ada44)break;else _0x5dd691['push'](_0x5dd691['shift']());}catch(_0x1cffbe){_0x5dd691['push'](_0x5dd691['shift']());}}}(a24_0x31eb,0x776d1));const fs=require('fs'),path=require(a24_0x197377(0x1a3)),yaml=require(a24_0x197377(0x19e)),{CLOUDFORMATION_SCHEMA}=require(a24_0x197377(0x1a4)),Promise=require(a24_0x197377(0x190)),AWS=require('./AWSUtils')[a24_0x197377(0x17e)],{CLUSTER_AUTOSCALER_STACK_NAME,COMMON_HST_TAGS}=require('../config/constants'),{logger}=require('../config/logger');Promise['promisifyAll'](fs);const addAutoscalerTags=async(_0x13f15c,_0x3379e9,_0x283c4c)=>{const _0x30ed84=a24_0x197377;for(const _0x35ebd1 in _0x13f15c[_0x30ed84(0x1ae)]){_0x13f15c[_0x30ed84(0x1ae)][_0x35ebd1][_0x30ed84(0x19a)]&&_0x13f15c[_0x30ed84(0x1ae)][_0x35ebd1]['Properties']['Tags']&&_0x13f15c[_0x30ed84(0x1ae)][_0x35ebd1]['Properties'][_0x30ed84(0x1ac)][_0x30ed84(0x1aa)](..._0x283c4c);}};function a24_0x4acd(_0x5468b7,_0x483f99){const _0x31eb13=a24_0x31eb();return a24_0x4acd=function(_0x4acd3e,_0x2d9b49){_0x4acd3e=_0x4acd3e-0x179;let _0x4acf92=_0x31eb13[_0x4acd3e];return _0x4acf92;},a24_0x4acd(_0x5468b7,_0x483f99);}function a24_0x31eb(){const _0x356c94=['sfCHZ','170223VSozYS','CAPABILITY_NAMED_IAM','2010-05-15','shuSW','stackCreateComplete','Capabilities','peHcl','waitFor','schema','templates','browserstack:cluster','vJWtg','stringify','447075LNGtBT','WyWtq','bluebird','2040066hXYzaN','toString','createAutoscalerStack','zqoiz','SJVgJ','apiVersion','StackName','Key','StackId','Properties','1337360LFpXWZ','ClusterName','10kzypku','js-yaml','Waiting\x20for\x20CloudFormation\x20stack\x20to\x20complete','Parameters','TemplateBody','KIkPl','path','js-yaml-cloudformation-schema','OPPSi','utf-8','load','90KlYoCi','pcuHJ','push','JJEDS','Tags','autoscaler-role-creation.yaml','Resources','9645BZcRrB','join','12797895RJaZER','debug','valueOf','promise','createStack','10CkOkEp','524027ajAvFj','awsObj','40XTUXvR'];a24_0x31eb=function(){return _0x356c94;};return a24_0x31eb();}exports[a24_0x197377(0x193)]=async _0x4bb59c=>{const _0x4b43bf=a24_0x197377,_0x1ea22f={'sfCHZ':_0x4b43bf(0x18b),'SJVgJ':'browserstack:creationDate','vJWtg':_0x4b43bf(0x183),'KIkPl':_0x4b43bf(0x18a),'shuSW':_0x4b43bf(0x1ad),'WyWtq':_0x4b43bf(0x1a6),'JJEDS':function(_0x942f37,_0x1a46c5,_0x3dba0e,_0x243794){return _0x942f37(_0x1a46c5,_0x3dba0e,_0x243794);},'pcuHJ':'DELETE','OPPSi':_0x4b43bf(0x19c),'peHcl':_0x4b43bf(0x182),'zqoiz':_0x4b43bf(0x19f),'ToEdp':_0x4b43bf(0x185)},_0x1ec313=COMMON_HST_TAGS,_0x53bc01={};_0x53bc01[_0x4b43bf(0x198)]=_0x1ea22f[_0x4b43bf(0x180)],_0x53bc01['Value']=_0x4bb59c,_0x1ec313['push'](_0x53bc01),_0x1ec313[_0x4b43bf(0x1aa)]({'Key':_0x1ea22f[_0x4b43bf(0x195)],'Value':new Date()[_0x4b43bf(0x179)]()[_0x4b43bf(0x192)]()});const _0x15963c={};_0x15963c[_0x4b43bf(0x196)]=_0x1ea22f[_0x4b43bf(0x18c)];const _0x31cc51=new AWS['CloudFormation'](_0x15963c),_0x27dc7b=await fs['readFileAsync'](path[_0x4b43bf(0x1b0)](__dirname,'..',_0x1ea22f[_0x4b43bf(0x1a2)],_0x1ea22f[_0x4b43bf(0x184)]),_0x1ea22f[_0x4b43bf(0x18f)]),_0x39c05e={};_0x39c05e[_0x4b43bf(0x189)]=CLOUDFORMATION_SCHEMA;const _0x4d05bc=yaml[_0x4b43bf(0x1a7)](_0x27dc7b,_0x39c05e);_0x1ea22f[_0x4b43bf(0x1ab)](addAutoscalerTags,_0x4d05bc,_0x4bb59c,_0x1ec313);const _0x26bd27=JSON[_0x4b43bf(0x18d)](_0x4d05bc),_0x4fb476={};_0x4fb476[_0x4b43bf(0x197)]=CLUSTER_AUTOSCALER_STACK_NAME+'-'+_0x4bb59c,_0x4fb476['OnFailure']=_0x1ea22f[_0x4b43bf(0x1a9)],_0x4fb476[_0x4b43bf(0x1a1)]=_0x26bd27,_0x4fb476[_0x4b43bf(0x1a0)]=[{'ParameterKey':_0x1ea22f[_0x4b43bf(0x1a5)],'ParameterValue':_0x4bb59c}],_0x4fb476[_0x4b43bf(0x186)]=[_0x1ea22f[_0x4b43bf(0x187)]],_0x4fb476[_0x4b43bf(0x1ac)]=_0x1ec313;const _0x5a0265=_0x4fb476,_0x11ae2d=await _0x31cc51[_0x4b43bf(0x17b)](_0x5a0265)[_0x4b43bf(0x17a)]();logger[_0x4b43bf(0x1b2)](_0x1ea22f[_0x4b43bf(0x194)]);const _0x861eb9={};return _0x861eb9[_0x4b43bf(0x197)]=_0x11ae2d[_0x4b43bf(0x199)],_0x31cc51[_0x4b43bf(0x188)](_0x1ea22f['ToEdp'],_0x861eb9)['promise']();};
1
+ const a24_0x5e2a64=a24_0x45a9;(function(_0x293b3f,_0x59cbde){const _0x269000=a24_0x45a9,_0x360357=_0x293b3f();while(!![]){try{const _0x5db873=-parseInt(_0x269000(0x6f))/0x1+parseInt(_0x269000(0x91))/0x2*(parseInt(_0x269000(0x96))/0x3)+parseInt(_0x269000(0x92))/0x4*(parseInt(_0x269000(0x9d))/0x5)+-parseInt(_0x269000(0x7f))/0x6*(parseInt(_0x269000(0x84))/0x7)+parseInt(_0x269000(0x93))/0x8*(-parseInt(_0x269000(0x86))/0x9)+parseInt(_0x269000(0x97))/0xa*(-parseInt(_0x269000(0xa3))/0xb)+parseInt(_0x269000(0x8e))/0xc*(parseInt(_0x269000(0x9a))/0xd);if(_0x5db873===_0x59cbde)break;else _0x360357['push'](_0x360357['shift']());}catch(_0x229f0c){_0x360357['push'](_0x360357['shift']());}}}(a24_0x38fe,0xd8181));const fs=require('fs'),path=require(a24_0x5e2a64(0x89)),yaml=require(a24_0x5e2a64(0xa1)),{CLOUDFORMATION_SCHEMA}=require(a24_0x5e2a64(0x80)),Promise=require(a24_0x5e2a64(0x6e)),AWS=require(a24_0x5e2a64(0x79))[a24_0x5e2a64(0x73)],{CLUSTER_AUTOSCALER_STACK_NAME,COMMON_HST_TAGS}=require(a24_0x5e2a64(0x8d)),{logger}=require(a24_0x5e2a64(0x9c));Promise[a24_0x5e2a64(0x6d)](fs);function a24_0x38fe(){const _0x40d28c=['61947TIaEVe','DELETE','ClusterName','path','cqfne','StackId','MaxEz','../config/constants','145284xSdJtG','Key','push','10cmNnNK','1634524pgtCBh','1424SbWpVP','stackCreateComplete','promise','712497eNOtaS','10qWDEaF','mfFRw','tgJLI','3016pmfgqJ','Waiting\x20for\x20CloudFormation\x20stack\x20to\x20complete','../config/logger','15ThJuzR','Tags','toString','XgGMT','js-yaml','stringify','13880581LdFwst','valueOf','debug','CAPABILITY_NAMED_IAM','Properties','StackName','promisifyAll','bluebird','846560pNOxwn','join','Resources','schema','awsObj','apiVersion','Parameters','evAmE','templates','autoscaler-role-creation.yaml','./AWSUtils','efBRp','load','OnFailure','TemplateBody','Capabilities','6020916cFuayE','js-yaml-cloudformation-schema','pHPFb','sUJYQ','createAutoscalerStack','7yHpemx','browserstack:creationDate'];a24_0x38fe=function(){return _0x40d28c;};return a24_0x38fe();}function a24_0x45a9(_0x3a41db,_0x39cfc9){const _0x38fe4f=a24_0x38fe();return a24_0x45a9=function(_0x45a929,_0x2565f5){_0x45a929=_0x45a929-0x68;let _0x52a520=_0x38fe4f[_0x45a929];return _0x52a520;},a24_0x45a9(_0x3a41db,_0x39cfc9);}const addAutoscalerTags=async(_0x7252e0,_0x481881,_0x57ed1f)=>{const _0x15c61a=a24_0x5e2a64;for(const _0x64a2a9 in _0x7252e0[_0x15c61a(0x71)]){_0x7252e0[_0x15c61a(0x71)][_0x64a2a9][_0x15c61a(0x6b)]&&_0x7252e0['Resources'][_0x64a2a9][_0x15c61a(0x6b)][_0x15c61a(0x9e)]&&_0x7252e0[_0x15c61a(0x71)][_0x64a2a9][_0x15c61a(0x6b)][_0x15c61a(0x9e)][_0x15c61a(0x90)](..._0x57ed1f);}};exports[a24_0x5e2a64(0x83)]=async _0x1f58df=>{const _0x2f19e5=a24_0x5e2a64,_0x14491f={'ddufJ':'browserstack:cluster','efBRp':_0x2f19e5(0x85),'hKEwX':'2010-05-15','jAIRf':_0x2f19e5(0x77),'pHPFb':_0x2f19e5(0x78),'tgJLI':'utf-8','sUJYQ':function(_0x7c520e,_0x153a5d,_0x5bcf59,_0x23a63a){return _0x7c520e(_0x153a5d,_0x5bcf59,_0x23a63a);},'evAmE':_0x2f19e5(0x87),'cqfne':_0x2f19e5(0x88),'XgGMT':_0x2f19e5(0x6a),'MaxEz':_0x2f19e5(0x9b),'mfFRw':_0x2f19e5(0x94)},_0x46fb19=COMMON_HST_TAGS,_0x3158a2={};_0x3158a2[_0x2f19e5(0x8f)]=_0x14491f['ddufJ'],_0x3158a2['Value']=_0x1f58df,_0x46fb19['push'](_0x3158a2),_0x46fb19[_0x2f19e5(0x90)]({'Key':_0x14491f[_0x2f19e5(0x7a)],'Value':new Date()[_0x2f19e5(0x68)]()[_0x2f19e5(0x9f)]()});const _0x4ee643={};_0x4ee643[_0x2f19e5(0x74)]=_0x14491f['hKEwX'];const _0xfa3763=new AWS['CloudFormation'](_0x4ee643),_0x5a9bf4=await fs['readFileAsync'](path[_0x2f19e5(0x70)](__dirname,'..',_0x14491f['jAIRf'],_0x14491f[_0x2f19e5(0x81)]),_0x14491f[_0x2f19e5(0x99)]),_0x149a91={};_0x149a91[_0x2f19e5(0x72)]=CLOUDFORMATION_SCHEMA;const _0x4bef45=yaml[_0x2f19e5(0x7b)](_0x5a9bf4,_0x149a91);_0x14491f[_0x2f19e5(0x82)](addAutoscalerTags,_0x4bef45,_0x1f58df,_0x46fb19);const _0x1e584d=JSON[_0x2f19e5(0xa2)](_0x4bef45),_0x347708={};_0x347708[_0x2f19e5(0x6c)]=CLUSTER_AUTOSCALER_STACK_NAME+'-'+_0x1f58df,_0x347708[_0x2f19e5(0x7c)]=_0x14491f[_0x2f19e5(0x76)],_0x347708[_0x2f19e5(0x7d)]=_0x1e584d,_0x347708[_0x2f19e5(0x75)]=[{'ParameterKey':_0x14491f[_0x2f19e5(0x8a)],'ParameterValue':_0x1f58df}],_0x347708[_0x2f19e5(0x7e)]=[_0x14491f[_0x2f19e5(0xa0)]],_0x347708[_0x2f19e5(0x9e)]=_0x46fb19;const _0x1ae575=_0x347708,_0x318fb7=await _0xfa3763['createStack'](_0x1ae575)['promise']();logger[_0x2f19e5(0x69)](_0x14491f[_0x2f19e5(0x8c)]);const _0x2ae551={};return _0x2ae551['StackName']=_0x318fb7[_0x2f19e5(0x8b)],_0xfa3763['waitFor'](_0x14491f[_0x2f19e5(0x98)],_0x2ae551)[_0x2f19e5(0x95)]();};