browserstack-node-sdk 1.34.39 → 1.34.40

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 +1 -1
  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_0x2b7489=a15_0x4bc6;(function(_0xa87de4,_0x5e83e1){const _0x35ee74=a15_0x4bc6,_0x12d251=_0xa87de4();while(!![]){try{const _0x11ed1c=-parseInt(_0x35ee74(0x120))/0x1+-parseInt(_0x35ee74(0x179))/0x2*(parseInt(_0x35ee74(0x158))/0x3)+parseInt(_0x35ee74(0x124))/0x4*(parseInt(_0x35ee74(0x14b))/0x5)+-parseInt(_0x35ee74(0x13a))/0x6*(-parseInt(_0x35ee74(0x13e))/0x7)+parseInt(_0x35ee74(0x160))/0x8+parseInt(_0x35ee74(0x15d))/0x9*(parseInt(_0x35ee74(0x152))/0xa)+parseInt(_0x35ee74(0x13b))/0xb*(-parseInt(_0x35ee74(0x169))/0xc);if(_0x11ed1c===_0x5e83e1)break;else _0x12d251['push'](_0x12d251['shift']());}catch(_0x3fb051){_0x12d251['push'](_0x12d251['shift']());}}}(a15_0xc5c4,0x49740));function a15_0x4bc6(_0x28513a,_0x4bee64){const _0xc5c424=a15_0xc5c4();return a15_0x4bc6=function(_0x4bc6f4,_0x349dfe){_0x4bc6f4=_0x4bc6f4-0x11f;let _0xb507f8=_0xc5c424[_0x4bc6f4];return _0xb507f8;},a15_0x4bc6(_0x28513a,_0x4bee64);}const fs=require('fs'),got=require(a15_0x2b7489(0x156)),{table}=require(a15_0x2b7489(0x133)),{v4:uuidv4}=require(a15_0x2b7489(0x16d)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x2b7489(0x16b)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a15_0x2b7489(0x135)]=a15_0x2b7489(0x131),exports[a15_0x2b7489(0x146)]=a15_0x2b7489(0x150),exports[a15_0x2b7489(0x141)]=function(_0x14d175){const _0x258159=a15_0x2b7489,_0x3b8dff={};_0x3b8dff[_0x258159(0x130)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x3b8dff[_0x258159(0x172)]=_0x258159(0x13c),_0x3b8dff[_0x258159(0x15c)]=_0x258159(0x14e);const _0x249e7c=_0x3b8dff,_0x2ba57f={};_0x2ba57f[_0x258159(0x123)]=_0x249e7c[_0x258159(0x130)],_0x2ba57f[_0x258159(0x137)]=_0x249e7c['zLfoQ'];const _0x1a7b89={};return _0x1a7b89['all-grids']=_0x2ba57f,_0x14d175[_0x258159(0x122)](HELP_HEADER_MESSAGE[_0x258159(0x125)][_0x258159(0x171)])[_0x258159(0x126)](HELP_FOOTER_MESSAGE)[_0x258159(0x12c)](_0x1a7b89)['help'](_0x249e7c[_0x258159(0x15c)])[_0x258159(0x15a)];},exports[a15_0x2b7489(0x127)]=async function(_0x3e7a01){const _0x51bc20=a15_0x2b7489,_0x1ba3aa={'jQEjQ':function(_0x50ed92){return _0x50ed92();},'LOuHj':_0x51bc20(0x15f),'PNlGx':function(_0x698bfe,_0x3e8db6,_0x3cf5ad,_0x17892a,_0x2cec07,_0x42f321,_0x36f2e7){return _0x698bfe(_0x3e8db6,_0x3cf5ad,_0x17892a,_0x2cec07,_0x42f321,_0x36f2e7);},'yNacr':_0x51bc20(0x16f),'leFuA':_0x51bc20(0x161),'wplfW':_0x51bc20(0x176),'ZdOPh':function(_0x29de00,_0x543f7b,_0x468ee0){return _0x29de00(_0x543f7b,_0x468ee0);},'Jdcjo':function(_0x3280dc,_0x43b0a0){return _0x3280dc!==_0x43b0a0;},'wNieu':function(_0x4185bf,_0x3a357e){return _0x4185bf!==_0x3a357e;},'iwMHI':function(_0x5b6fc3,_0x519a33){return _0x5b6fc3===_0x519a33;},'SSsZq':_0x51bc20(0x162),'vkwjk':_0x51bc20(0x16e),'brkUY':_0x51bc20(0x138),'NlNmB':_0x51bc20(0x164),'badFP':_0x51bc20(0x128),'iVXVc':_0x51bc20(0x173),'qRwKu':'cluster-name','ugtGr':function(_0x1b88ed,_0x6ecae5){return _0x1b88ed(_0x6ecae5);},'WJtHj':function(_0x1bca91,_0x4aba0b){return _0x1bca91===_0x4aba0b;},'Kfjbl':_0x51bc20(0x15e),'tQRSy':function(_0x11596d,_0x1e7ad9,_0x2634a9,_0x523582,_0x25eab1,_0x223962,_0x5e0eff){return _0x11596d(_0x1e7ad9,_0x2634a9,_0x523582,_0x25eab1,_0x223962,_0x5e0eff);},'UKKJv':_0x51bc20(0x149),'JiWzf':_0x51bc20(0x134),'FdZAc':_0x51bc20(0x13d)};try{global_registry[_0x51bc20(0x14d)]=_0x1ba3aa[_0x51bc20(0x12d)](uuidv4);!fs[_0x51bc20(0x12a)](_0x1ba3aa[_0x51bc20(0x12d)](getCredentialsPath))&&(console[_0x51bc20(0x14f)](_0x1ba3aa[_0x51bc20(0x12e)]),await _0x1ba3aa[_0x51bc20(0x16a)](sendInstrumentationEvent,_0x3e7a01,_0x1ba3aa[_0x51bc20(0x167)],messageTypes[_0x51bc20(0x155)],_0x1ba3aa[_0x51bc20(0x157)],null,_0x3e7a01),process[_0x51bc20(0x140)](0x1));const _0x198d24=JSON['parse'](fs[_0x51bc20(0x159)](_0x1ba3aa[_0x51bc20(0x12d)](getCredentialsPath)));let _0x2f4bc4='https://'+AG_API_URL+_0x51bc20(0x132);_0x3e7a01[_0x51bc20(0x147)]&&(_0x2f4bc4=_0x51bc20(0x153)+AG_API_URL+'/packages/cli/get-all-grids');const _0x1e4c03={'method':_0x1ba3aa[_0x51bc20(0x16c)],'headers':_0x1ba3aa[_0x51bc20(0x177)](getAuthHeader,_0x198d24['Browserstack'][_0x51bc20(0x14c)],_0x198d24[_0x51bc20(0x121)]['password']),'throwHttpErrors':![]};global_registry[_0x51bc20(0x14a)]=_0x198d24[_0x51bc20(0x121)][_0x51bc20(0x14c)],global_registry['bstackAccesskey']=_0x198d24[_0x51bc20(0x121)][_0x51bc20(0x15b)],_0x1ba3aa[_0x51bc20(0x16a)](sendInstrumentationEvent,_0x3e7a01,_0x1ba3aa[_0x51bc20(0x167)],messageTypes[_0x51bc20(0x11f)],null,null,_0x3e7a01);const _0x5ad0d8=await _0x1ba3aa[_0x51bc20(0x177)](got,_0x2f4bc4,_0x1e4c03);if(_0x1ba3aa['Jdcjo'](_0x5ad0d8,null)&&_0x1ba3aa[_0x51bc20(0x175)](_0x5ad0d8,undefined)&&_0x1ba3aa[_0x51bc20(0x145)](_0x5ad0d8[_0x51bc20(0x166)],0xc8)){const _0x567e51=JSON['parse'](_0x5ad0d8[_0x51bc20(0x12f)]);console[_0x51bc20(0x143)](_0x1ba3aa['SSsZq']);const _0x39f664=[];_0x39f664[_0x51bc20(0x165)]([_0x1ba3aa[_0x51bc20(0x154)],_0x1ba3aa[_0x51bc20(0x170)],_0x1ba3aa[_0x51bc20(0x168)],_0x1ba3aa[_0x51bc20(0x142)],_0x1ba3aa[_0x51bc20(0x129)],_0x1ba3aa[_0x51bc20(0x12b)]]),_0x567e51[_0x51bc20(0x151)](_0x494cd3=>{const _0x970bb6=_0x51bc20;_0x39f664['push']([_0x494cd3['id'],_0x494cd3[_0x970bb6(0x178)],_0x494cd3[_0x970bb6(0x164)],_0x494cd3[_0x970bb6(0x128)],_0x494cd3[_0x970bb6(0x173)],_0x494cd3['clusterName']]);}),console[_0x51bc20(0x143)](_0x1ba3aa['ugtGr'](table,_0x39f664)),process[_0x51bc20(0x140)](0x0);}_0x1ba3aa[_0x51bc20(0x148)](_0x5ad0d8[_0x51bc20(0x166)],0x191)&&(console[_0x51bc20(0x14f)](_0x1ba3aa['Kfjbl']),await _0x1ba3aa[_0x51bc20(0x144)](sendInstrumentationEvent,_0x3e7a01,_0x1ba3aa[_0x51bc20(0x167)],messageTypes[_0x51bc20(0x155)],_0x1ba3aa['UKKJv'],null,_0x3e7a01),process[_0x51bc20(0x140)](0x1)),console[_0x51bc20(0x14f)](_0x51bc20(0x136)+JSON['stringify'](_0x5ad0d8)),await _0x1ba3aa[_0x51bc20(0x144)](sendInstrumentationEvent,_0x3e7a01,_0x1ba3aa[_0x51bc20(0x167)],messageTypes[_0x51bc20(0x155)],_0x1ba3aa[_0x51bc20(0x174)],_0x5ad0d8,_0x3e7a01),process[_0x51bc20(0x140)](0x1);}catch(_0x32e003){console[_0x51bc20(0x14f)](_0x51bc20(0x163)+_0x32e003[_0x51bc20(0x139)]),await _0x1ba3aa[_0x51bc20(0x16a)](sendInstrumentationEvent,_0x3e7a01,_0x1ba3aa[_0x51bc20(0x167)],messageTypes['ERROR'],_0x1ba3aa[_0x51bc20(0x13f)],_0x32e003,_0x3e7a01),process[_0x51bc20(0x140)](0x1);}};function a15_0xc5c4(){const _0x3d8a11=['forEach','68920DZPFJa','https://','vkwjk','ERROR','got','leFuA','63aHwLeg','readFileSync','argv','password','hJoNh','513BszrQL','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','1783256JMnepY','init-not-called','\x0aFound\x20the\x20following\x20grids:\x0a','Failed\x20to\x20list\x20resources!\x20Error:\x20','status','push','statusCode','yNacr','NlNmB','120APLnNI','PNlGx','../../utils/utilityMethods','wplfW','uuid','grid-id','list-grids-called','brkUY','grid','zLfoQ','queued','JiWzf','wNieu','GET','ZdOPh','name','44174oLaAPu','INFO','135621IUVhTa','Browserstack','usage','description','956uaZauV','list','epilogue','handler','running','iVXVc','existsSync','qRwKu','options','jQEjQ','LOuHj','body','CMurv','grids','/packages/cli/get-grids','table','server-error','command','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','type','grid-name','stack','334104qoXWpg','149138DPQcZt','boolean','unknown-error','49aQhwwr','FdZAc','exit','builder','badFP','log','tQRSy','iwMHI','desc','allGrids','WJtHj','unauthorised','bstackUsername','635sUzrnZ','username','requestId','help','error','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user'];a15_0xc5c4=function(){return _0x3d8a11;};return a15_0xc5c4();}
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 +1 @@
1
- const a16_0x10a8c1=a16_0x4f0d;(function(_0x1dd385,_0x45fd3f){const _0x4ab28e=a16_0x4f0d,_0x324b68=_0x1dd385();while(!![]){try{const _0x52e6af=-parseInt(_0x4ab28e(0x1a0))/0x1*(-parseInt(_0x4ab28e(0x194))/0x2)+-parseInt(_0x4ab28e(0x197))/0x3*(-parseInt(_0x4ab28e(0x199))/0x4)+-parseInt(_0x4ab28e(0x196))/0x5+-parseInt(_0x4ab28e(0x1a2))/0x6*(-parseInt(_0x4ab28e(0x193))/0x7)+parseInt(_0x4ab28e(0x19a))/0x8*(-parseInt(_0x4ab28e(0x1a7))/0x9)+-parseInt(_0x4ab28e(0x195))/0xa+parseInt(_0x4ab28e(0x198))/0xb*(parseInt(_0x4ab28e(0x19f))/0xc);if(_0x52e6af===_0x45fd3f)break;else _0x324b68['push'](_0x324b68['shift']());}catch(_0x3de949){_0x324b68['push'](_0x324b68['shift']());}}}(a16_0x5a2e,0xdbe57));function a16_0x4f0d(_0x1e5cd5,_0x495076){const _0x5a2e3f=a16_0x5a2e();return a16_0x4f0d=function(_0x4f0db1,_0x3abba5){_0x4f0db1=_0x4f0db1-0x18f;let _0x87dd61=_0x5a2e3f[_0x4f0db1];return _0x87dd61;},a16_0x4f0d(_0x1e5cd5,_0x495076);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x10a8c1(0x19e));function a16_0x5a2e(){const _0x5f1df3=['66129dnicMn','1156132ivPeKi','9990130eHRXVW','6063305YbeezW','9PWEhXX','23324719ueBgmX','1140728EwAIJz','6934296rnZshL','handler','FxlVQ','XIgYy','../config/constants','12UMSQSe','1gxdiuL','recommendCommands','270aaNOgg','epilogue','command','usage','Start\x20an\x20existing\x20Automation\x20grid.','9BNJoSG','desc','commandDir','start','help','demandCommand'];a16_0x5a2e=function(){return _0x5f1df3;};return a16_0x5a2e();}exports[a16_0x10a8c1(0x1a4)]='start',exports[a16_0x10a8c1(0x1a8)]=a16_0x10a8c1(0x1a6),exports['builder']=function(_0x454889){const _0x13e06a=a16_0x10a8c1,_0x41446f={};_0x41446f['XIgYy']='start_commands',_0x41446f['FxlVQ']=_0x13e06a(0x191);const _0xbb7ae6=_0x41446f;return _0x454889[_0x13e06a(0x1a5)](HELP_HEADER_MESSAGE[_0x13e06a(0x190)])[_0x13e06a(0x1a3)](HELP_FOOTER_MESSAGE)[_0x13e06a(0x18f)](_0xbb7ae6[_0x13e06a(0x19d)])[_0x13e06a(0x192)]()[_0x13e06a(0x1a1)]()['strict']()[_0x13e06a(0x191)](_0xbb7ae6[_0x13e06a(0x19c)]);},exports[a16_0x10a8c1(0x19b)]=function(_0x40d7c3){};
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 +1 @@
1
- const a17_0x40d308=a17_0x5e10;(function(_0x4a3b1e,_0x53f223){const _0x3b337f=a17_0x5e10,_0x2cd39e=_0x4a3b1e();while(!![]){try{const _0x1e45d0=-parseInt(_0x3b337f(0x106))/0x1*(-parseInt(_0x3b337f(0xee))/0x2)+-parseInt(_0x3b337f(0x113))/0x3*(-parseInt(_0x3b337f(0xdd))/0x4)+-parseInt(_0x3b337f(0xe9))/0x5*(-parseInt(_0x3b337f(0x11d))/0x6)+-parseInt(_0x3b337f(0xcc))/0x7*(-parseInt(_0x3b337f(0x104))/0x8)+parseInt(_0x3b337f(0xd8))/0x9+-parseInt(_0x3b337f(0xda))/0xa+parseInt(_0x3b337f(0xf4))/0xb*(-parseInt(_0x3b337f(0xf1))/0xc);if(_0x1e45d0===_0x53f223)break;else _0x2cd39e['push'](_0x2cd39e['shift']());}catch(_0x39a6d8){_0x2cd39e['push'](_0x2cd39e['shift']());}}}(a17_0x3f11,0x9c572));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a17_0x40d308(0xec)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a17_0x40d308(0xd0)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a17_0x40d308(0xd6)),{scaleUpHubDeployment}=require(a17_0x40d308(0x110)),{sendInstrumentationEvent}=require(a17_0x40d308(0xdb)),webSocketUtils=require(a17_0x40d308(0xc9)),{createK8sClient}=require(a17_0x40d308(0xfe)),{getCloudProviderObject}=require(a17_0x40d308(0x100));exports['command']=a17_0x40d308(0x117),exports['desc']=a17_0x40d308(0xcd),exports[a17_0x40d308(0xf9)]=function(_0x20a12c){const _0x2202fb=a17_0x40d308,_0x158e8b={};_0x158e8b[_0x2202fb(0xcf)]=_0x2202fb(0xd3),_0x158e8b[_0x2202fb(0xed)]=_0x2202fb(0xe0),_0x158e8b[_0x2202fb(0x11a)]=_0x2202fb(0x10c),_0x158e8b['nynXy']=_0x2202fb(0xde),_0x158e8b[_0x2202fb(0x10e)]=_0x2202fb(0x101);const _0x3e742b=_0x158e8b,_0x3647ac={};_0x3647ac[_0x2202fb(0x103)]=_0x3e742b[_0x2202fb(0xcf)],_0x3647ac['type']=_0x3e742b[_0x2202fb(0xed)];const _0x2738f3={};_0x2738f3[_0x2202fb(0x103)]=_0x3e742b['NznWS'],_0x2738f3[_0x2202fb(0xfc)]=_0x3e742b[_0x2202fb(0xd7)],_0x2738f3[_0x2202fb(0x114)]=![];const _0x3d4f15={};return _0x3d4f15[_0x2202fb(0xc5)]=_0x3647ac,_0x3d4f15[_0x2202fb(0xfd)]=_0x2738f3,_0x20a12c[_0x2202fb(0xe4)](HELP_HEADER_MESSAGE[_0x2202fb(0xd1)])[_0x2202fb(0x118)](HELP_FOOTER_MESSAGE)[_0x2202fb(0xfb)](_0x3d4f15)[_0x2202fb(0x101)](_0x3e742b['jCXgY'])[_0x2202fb(0xc8)];},exports[a17_0x40d308(0xe8)]=async function(_0x563c45){const _0x37efe1=a17_0x40d308,_0x164f1b={'KfcUZ':_0x37efe1(0x109),'tRdtd':function(_0x46c76b){return _0x46c76b();},'IortV':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','dEOII':function(_0x3a075f,_0x50259a,_0x83721,_0x3b5fa6,_0xea3e9b,_0xbbe329,_0x265b5b){return _0x3a075f(_0x50259a,_0x83721,_0x3b5fa6,_0xea3e9b,_0xbbe329,_0x265b5b);},'dVHJu':_0x37efe1(0x111),'YwoXB':_0x37efe1(0x10a),'JDOGt':function(_0x592e5a){return _0x592e5a();},'aAyqF':'<UsernamePlaceholder>','cuYha':_0x37efe1(0xea),'tGhTC':'Adding\x20Websocket\x20listeners','grdQc':function(_0x204e65,_0x37d8c4,_0x328e83,_0x3b97a9){return _0x204e65(_0x37d8c4,_0x328e83,_0x3b97a9);},'NSyCt':function(_0x10ffe2,_0x4626e7,_0xd0205d,_0x1e1498,_0x59166b,_0x1e25de,_0x1d2e61){return _0x10ffe2(_0x4626e7,_0xd0205d,_0x1e1498,_0x59166b,_0x1e25de,_0x1d2e61);},'uAwXJ':function(_0x503341,_0x3615ee,_0x118ab3){return _0x503341(_0x3615ee,_0x118ab3);},'ePaTv':function(_0x23afc0,_0x4a5d1b,_0x302924){return _0x23afc0(_0x4a5d1b,_0x302924);},'OWROZ':_0x37efe1(0x102),'tdoJB':function(_0x20dec7,_0x3193df){return _0x20dec7===_0x3193df;},'GSGvB':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','NPbLI':_0x37efe1(0xd2),'oYVtr':_0x37efe1(0xdc),'HIWuw':function(_0x55040f,_0x4a4111,_0x53cfb9,_0x44aca8,_0x3b090c,_0x19f0a2,_0x580a63){return _0x55040f(_0x4a4111,_0x53cfb9,_0x44aca8,_0x3b090c,_0x19f0a2,_0x580a63);},'OqJzE':'server-error'};let _0x385255;try{!_0x563c45['gridId']&&(logger['error'](_0x164f1b['KfcUZ']),process['exit'](0x1));!fs[_0x37efe1(0xcb)](_0x164f1b[_0x37efe1(0xf8)](getCredentialsPath))&&(logger['error'](_0x164f1b[_0x37efe1(0x115)]),await _0x164f1b[_0x37efe1(0xff)](sendInstrumentationEvent,_0x563c45,_0x164f1b[_0x37efe1(0x11b)],messageTypes['ERROR'],_0x164f1b['YwoXB'],null,_0x563c45),process[_0x37efe1(0xfa)](0x1));logger['info'](_0x37efe1(0xf2)+_0x563c45['gridId']),await _0x164f1b['dEOII'](sendInstrumentationEvent,_0x563c45,_0x164f1b[_0x37efe1(0x11b)],messageTypes[_0x37efe1(0x112)],null,null,_0x563c45);const _0x132bee=JSON[_0x37efe1(0xf7)](fs[_0x37efe1(0xc3)](_0x164f1b[_0x37efe1(0x107)](getCredentialsPath)));global_registry[_0x37efe1(0x10f)]=_0x132bee[_0x37efe1(0xef)][_0x37efe1(0xeb)],global_registry[_0x37efe1(0xc7)]=_0x132bee[_0x37efe1(0xef)]['password'];const _0x292512=WS_ENDPOINT[_0x37efe1(0x11e)](_0x164f1b[_0x37efe1(0xdf)],_0x132bee[_0x37efe1(0xef)][_0x37efe1(0xeb)])[_0x37efe1(0x11e)](_0x164f1b[_0x37efe1(0xd9)],_0x132bee[_0x37efe1(0xef)]['password']),_0x5309f2={};_0x5309f2['WebSocket']=ws,_0x5309f2[_0x37efe1(0xe2)]=0x36ee80,_0x385255=new ReconnectingWebSocket(_0x292512,[],_0x5309f2),logger[_0x37efe1(0xf5)](_0x164f1b['tGhTC']),webSocketUtils[_0x37efe1(0x105)](_0x385255,_0x563c45['user'],_0x563c45[_0x37efe1(0xd4)]);const [_0x5c781c,_0x564458]=await _0x164f1b[_0x37efe1(0xce)](getGridDetails,_0x132bee[_0x37efe1(0xef)][_0x37efe1(0xeb)],_0x132bee[_0x37efe1(0xef)][_0x37efe1(0xd4)],_0x563c45[_0x37efe1(0xc0)]);if(_0x564458){const _0x1753b8=_0x564458[_0x37efe1(0xe6)];global_registry['cloudProvider']=_0x1753b8[_0x37efe1(0xf0)],global_registry[_0x37efe1(0xf6)]=_0x1753b8[_0x37efe1(0x108)],global_registry['clusterName']=_0x1753b8[_0x37efe1(0xc6)];const _0x3f2197=await _0x164f1b[_0x37efe1(0xe3)](getCloudProviderObject,_0x1753b8['cloudProvider'],_0x1753b8[_0x37efe1(0xc6)],_0x1753b8['name'],_0x385255,webSocketUtils,_0x563c45),[_0xd33c65,_0x2be7ce,_0x129b20,_0x24abc8,_0x1ddcdc,_0x3da62a]=await _0x164f1b[_0x37efe1(0x119)](createK8sClient,_0x3f2197,_0x563c45[_0x37efe1(0xe1)]);await _0x164f1b['ePaTv'](scaleUpHubDeployment,_0x2be7ce,_0x1753b8[_0x37efe1(0xc4)]),logger[_0x37efe1(0xe6)](_0x164f1b['OWROZ']),process[_0x37efe1(0xfa)](0x0);}_0x164f1b[_0x37efe1(0xe7)](_0x5c781c[_0x37efe1(0xf3)],0x191)&&(logger[_0x37efe1(0x10d)](_0x164f1b[_0x37efe1(0xc2)]),await _0x164f1b['NSyCt'](sendInstrumentationEvent,_0x563c45,_0x164f1b['dVHJu'],messageTypes[_0x37efe1(0x10b)],_0x164f1b[_0x37efe1(0xd5)],null,_0x563c45),process[_0x37efe1(0xfa)](0x1)),_0x164f1b[_0x37efe1(0xe7)](_0x5c781c[_0x37efe1(0xf3)],0x190)&&(logger[_0x37efe1(0x10d)](JSON[_0x37efe1(0xf7)](_0x5c781c[_0x37efe1(0x11c)])[_0x37efe1(0xc1)]),await _0x164f1b['NSyCt'](sendInstrumentationEvent,_0x563c45,_0x164f1b[_0x37efe1(0x11b)],messageTypes[_0x37efe1(0x10b)],_0x164f1b['oYVtr'],null,_0x563c45),process[_0x37efe1(0xfa)](0x1)),logger[_0x37efe1(0x10d)](_0x37efe1(0xe5)+JSON[_0x37efe1(0xca)](_0x5c781c)),await _0x164f1b[_0x37efe1(0x116)](sendInstrumentationEvent,_0x563c45,_0x164f1b[_0x37efe1(0x11b)],messageTypes[_0x37efe1(0x10b)],_0x164f1b['OqJzE'],_0x5c781c,_0x563c45),process[_0x37efe1(0xfa)](0x1);}catch(_0x394f71){const _0x4315d1='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x394f71+'\x20\x0a'+JSON['stringify'](_0x394f71[_0x37efe1(0x11f)])+'\x20';logger[_0x37efe1(0x10d)](_0x4315d1),process['exit'](0x1);}};function a17_0x5e10(_0x3a2e6a,_0x2b5456){const _0x3f1143=a17_0x3f11();return a17_0x5e10=function(_0x5e1067,_0x260f4e){_0x5e1067=_0x5e1067-0xc0;let _0x29d952=_0x3f1143[_0x5e1067];return _0x29d952;},a17_0x5e10(_0x3a2e6a,_0x2b5456);}function a17_0x3f11(){const _0xdf8750=['connectionTimeout','NSyCt','usage','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','info','tdoJB','handler','125rDFHNm','<PasswordPlaceholder>','username','reconnecting-websocket','dMOYU','2KYIHGZ','Browserstack','cloudProvider','103644Zsnzom','Starting\x20grid\x20','statusCode','4026fVMins','debug','clusterRegion','parse','tRdtd','builder','exit','options','type','skip-tls-cert-verify','../../utils/createk8sClient','dEOII','../../cloudproviders/utils','help','Grid\x20started','description','16bkFhrX','addListeners','1177363AlepNG','JDOGt','region','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','init-not-called','ERROR','Skip\x20insecure\x20cert\x20verification.','error','jCXgY','bstackUsername','../../utils/gridComponents','start-grid-called','INFO','94332NDssbG','default','IortV','HIWuw','grid','epilogue','uAwXJ','NznWS','dVHJu','body','194610KTQRrU','replace','stack','gridId','message','GSGvB','readFileSync','name','grid-id','clusterName','bstackAccesskey','argv','../../utils/webSocketUtils','stringify','existsSync','2806153VAAyFx','Start\x20an\x20existing\x20Automation\x20grid.','grdQc','YOyQw','../../config/constants','start','unauthorised','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','password','NPbLI','../../utils/utilityMethods','nynXy','8383968fLZNFZ','cuYha','8948000auXXym','../../utils/instrumentationUtils','invalid-grid-id','124niAIUW','boolean','aAyqF','string','skipTlsCertVerify'];a17_0x3f11=function(){return _0xdf8750;};return a17_0x3f11();}
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 +1 @@
1
- const a18_0x438c37=a18_0x3939;(function(_0x1d751e,_0x4ee1d6){const _0x434392=a18_0x3939,_0x696189=_0x1d751e();while(!![]){try{const _0x1e6586=-parseInt(_0x434392(0x160))/0x1*(parseInt(_0x434392(0x15c))/0x2)+-parseInt(_0x434392(0x172))/0x3+parseInt(_0x434392(0x16b))/0x4+parseInt(_0x434392(0x16e))/0x5*(parseInt(_0x434392(0x166))/0x6)+-parseInt(_0x434392(0x169))/0x7*(-parseInt(_0x434392(0x165))/0x8)+parseInt(_0x434392(0x164))/0x9*(-parseInt(_0x434392(0x16a))/0xa)+parseInt(_0x434392(0x162))/0xb*(parseInt(_0x434392(0x15f))/0xc);if(_0x1e6586===_0x4ee1d6)break;else _0x696189['push'](_0x696189['shift']());}catch(_0x545185){_0x696189['push'](_0x696189['shift']());}}}(a18_0x6430,0x80e4e));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x438c37(0x16f));function a18_0x3939(_0x5d0aef,_0x485a4f){const _0x64301b=a18_0x6430();return a18_0x3939=function(_0x3939f7,_0x1c5da6){_0x3939f7=_0x3939f7-0x15a;let _0x477bb1=_0x64301b[_0x3939f7];return _0x477bb1;},a18_0x3939(_0x5d0aef,_0x485a4f);}function a18_0x6430(){const _0x10e485=['626591fUComD','788110QSZZVt','3894184GPAPVb','Stop\x20a\x20running\x20Automation\x20grid.','demandCommand','690DwtjRI','../config/constants','command','zCYqF','2421051kIgukv','desc','epilogue','767512YczIuW','recommendCommands','help','24pjDerF','1kdfKvn','commandDir','6669553LyPcis','usage','99ThPkho','32WIIfYv','1800nJPhGT','stop','qkBJZ'];a18_0x6430=function(){return _0x10e485;};return a18_0x6430();}exports[a18_0x438c37(0x170)]='stop',exports[a18_0x438c37(0x15a)]=a18_0x438c37(0x16c),exports['builder']=function(_0x4b100a){const _0x3aa3de=a18_0x438c37,_0x497c32={};_0x497c32[_0x3aa3de(0x171)]='stop_commands',_0x497c32[_0x3aa3de(0x168)]=_0x3aa3de(0x15e);const _0x1a0128=_0x497c32;return _0x4b100a[_0x3aa3de(0x163)](HELP_HEADER_MESSAGE[_0x3aa3de(0x167)])[_0x3aa3de(0x15b)](HELP_FOOTER_MESSAGE)[_0x3aa3de(0x161)](_0x1a0128[_0x3aa3de(0x171)])[_0x3aa3de(0x16d)]()[_0x3aa3de(0x15d)]()['strict']()[_0x3aa3de(0x15e)](_0x1a0128[_0x3aa3de(0x168)]);},exports['handler']=function(_0x3659ee){};
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 +1 @@
1
- function a19_0x25d0(_0x315c21,_0x143728){const _0x5a1ff2=a19_0x5a1f();return a19_0x25d0=function(_0x25d05a,_0x503878){_0x25d05a=_0x25d05a-0x77;let _0x4f528a=_0x5a1ff2[_0x25d05a];return _0x4f528a;},a19_0x25d0(_0x315c21,_0x143728);}const a19_0x1293c2=a19_0x25d0;(function(_0x5c7724,_0x4c81a8){const _0x387d79=a19_0x25d0,_0x35722d=_0x5c7724();while(!![]){try{const _0x5d6a86=-parseInt(_0x387d79(0xad))/0x1+parseInt(_0x387d79(0x7f))/0x2+parseInt(_0x387d79(0x89))/0x3*(parseInt(_0x387d79(0xc0))/0x4)+-parseInt(_0x387d79(0x83))/0x5*(-parseInt(_0x387d79(0x80))/0x6)+parseInt(_0x387d79(0x9c))/0x7+-parseInt(_0x387d79(0xd1))/0x8*(parseInt(_0x387d79(0xd5))/0x9)+parseInt(_0x387d79(0xd3))/0xa;if(_0x5d6a86===_0x4c81a8)break;else _0x35722d['push'](_0x35722d['shift']());}catch(_0x58ef93){_0x35722d['push'](_0x35722d['shift']());}}}(a19_0x5a1f,0x72ccb));function a19_0x5a1f(){const _0x2a2f1e=['Skip\x20insecure\x20cert\x20verification.','586135ckqveT','../../cloudproviders/utils','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Browserstack','gYpAu','command','258186xpFaID','cloudProvider','addListeners','error','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','HDWCt','VOufs','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','init-not-called','siyUA','existsSync','usage','options','parse','NqARp','FIYrl','nRaKA','description','username','817551SKLDUR','../../utils/utilityMethods','boolean','<PasswordPlaceholder>','reconnecting-websocket','argv','weFWE','exit','stop','unauthorised','builder','Stopping\x20grid\x20','desc','bstackAccesskey','info','INFO','ERROR','865074JzCEKX','skPXk','../../config/logger','../../utils/webSocketUtils','default','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','server-error','rGOPQ','Stop\x20a\x20running\x20Automation\x20grid.','name','invalid-grid-id','EJLjO','../../utils/gridComponents','yOZrn','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','fJKih','Adding\x20Websocket\x20listeners','grid-id','clusterName','16Wdpkmb','Grid\x20stoppped.','region','VfJtI','statusCode','VWsMn','KpYeI','epilogue','replace','stop-grid-called','help','string','stack','connectionTimeout','skipTlsCertVerify','readFileSync','<UsernamePlaceholder>','8HncZeD','type','6126200JBgIcM','bstackUsername','6800301JSQWcq','ncAuo','password','user','gridId','WebSocket','body','CiKjz','stringify','../../utils/instrumentationUtils','clusterRegion','1331080HwgcDt','18uOVhGy','TldCV'];a19_0x5a1f=function(){return _0x2a2f1e;};return a19_0x5a1f();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x1293c2(0xa0)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x1293c2(0xaf)),{getCredentialsPath,getGridDetails}=require(a19_0x1293c2(0x9d)),{scaleDownHubDeployment}=require(a19_0x1293c2(0xb9)),{sendInstrumentationEvent}=require(a19_0x1293c2(0x7d)),webSocketUtils=require(a19_0x1293c2(0xb0)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0x1293c2(0x84));exports[a19_0x1293c2(0x88)]='grid',exports[a19_0x1293c2(0xa8)]=a19_0x1293c2(0xb5),exports[a19_0x1293c2(0xa6)]=function(_0x56baa5){const _0x100787=a19_0x1293c2,_0x50a687={};_0x50a687['gYpAu']=_0x100787(0x8d),_0x50a687[_0x100787(0x99)]=_0x100787(0xcb),_0x50a687[_0x100787(0x8f)]=_0x100787(0x82),_0x50a687['nfkhj']=_0x100787(0x9e),_0x50a687[_0x100787(0xd6)]=_0x100787(0xca);const _0x4adf47=_0x50a687,_0x573ff9={};_0x573ff9[_0x100787(0x9a)]=_0x4adf47[_0x100787(0x87)],_0x573ff9['type']=_0x4adf47[_0x100787(0x99)];const _0x5dd8a9={};_0x5dd8a9[_0x100787(0x9a)]=_0x4adf47[_0x100787(0x8f)],_0x5dd8a9[_0x100787(0xd2)]=_0x4adf47['nfkhj'],_0x5dd8a9[_0x100787(0xb1)]=![];const _0x3e435a={};return _0x3e435a[_0x100787(0xbe)]=_0x573ff9,_0x3e435a['skip-tls-cert-verify']=_0x5dd8a9,_0x56baa5[_0x100787(0x94)](HELP_HEADER_MESSAGE[_0x100787(0xa4)])[_0x100787(0xc7)](HELP_FOOTER_MESSAGE)[_0x100787(0x95)](_0x3e435a)[_0x100787(0xca)](_0x4adf47[_0x100787(0xd6)])[_0x100787(0xa1)];},exports['handler']=async function(_0x543d1f){const _0x527b50=a19_0x1293c2,_0x5499d9={'oKXLC':_0x527b50(0x90),'VWsMn':function(_0x19e570){return _0x19e570();},'TldCV':_0x527b50(0xb2),'skPXk':function(_0x45a12d,_0x35f82e,_0x410ac7,_0x3192b5,_0x1508af,_0x29843a,_0x4eb0ac){return _0x45a12d(_0x35f82e,_0x410ac7,_0x3192b5,_0x1508af,_0x29843a,_0x4eb0ac);},'CiKjz':_0x527b50(0xc9),'rGOPQ':_0x527b50(0x91),'NqARp':function(_0x4b9224){return _0x4b9224();},'MLeoI':_0x527b50(0xd0),'KpYeI':_0x527b50(0x9f),'UTcXG':_0x527b50(0xbd),'FIYrl':function(_0x3f752d,_0x41de93,_0x5b41a6,_0x45efb1){return _0x3f752d(_0x41de93,_0x5b41a6,_0x45efb1);},'fJKih':function(_0x734a33,_0x2860af,_0x21994d){return _0x734a33(_0x2860af,_0x21994d);},'kuJod':_0x527b50(0xc1),'HDWCt':function(_0x3c71c9,_0x5a7209){return _0x3c71c9===_0x5a7209;},'siyUA':_0x527b50(0x85),'weFWE':_0x527b50(0xa5),'VfJtI':function(_0xf61078,_0x1b0425){return _0xf61078===_0x1b0425;},'EJLjO':_0x527b50(0xb7),'yOZrn':_0x527b50(0xb3)};let _0x20f27a;try{!_0x543d1f['gridId']&&(logger['error'](_0x5499d9['oKXLC']),process['exit'](0x1));!fs[_0x527b50(0x93)](_0x5499d9[_0x527b50(0xc5)](getCredentialsPath))&&(logger['error'](_0x5499d9[_0x527b50(0x81)]),await _0x5499d9[_0x527b50(0xae)](sendInstrumentationEvent,_0x543d1f,_0x5499d9[_0x527b50(0x7b)],messageTypes['ERROR'],_0x5499d9[_0x527b50(0xb4)],null,_0x543d1f),process[_0x527b50(0xa3)](0x1));logger[_0x527b50(0xaa)](_0x527b50(0xa7)+_0x543d1f[_0x527b50(0x78)]),await _0x5499d9['skPXk'](sendInstrumentationEvent,_0x543d1f,_0x5499d9['CiKjz'],messageTypes[_0x527b50(0xab)],null,null,_0x543d1f);const _0x2021be=JSON[_0x527b50(0x96)](fs[_0x527b50(0xcf)](_0x5499d9[_0x527b50(0x97)](getCredentialsPath)));global_registry[_0x527b50(0xd4)]=_0x2021be[_0x527b50(0x86)][_0x527b50(0x9b)],global_registry[_0x527b50(0xa9)]=_0x2021be[_0x527b50(0x86)][_0x527b50(0xd7)];const _0x4a93ce=WS_ENDPOINT['replace'](_0x5499d9['MLeoI'],_0x2021be[_0x527b50(0x86)]['username'])[_0x527b50(0xc8)](_0x5499d9[_0x527b50(0xc6)],_0x2021be[_0x527b50(0x86)][_0x527b50(0xd7)]),_0x221f2f={};_0x221f2f[_0x527b50(0x79)]=ws,_0x221f2f[_0x527b50(0xcd)]=0x36ee80,_0x20f27a=new ReconnectingWebSocket(_0x4a93ce,[],_0x221f2f),logger['debug'](_0x5499d9['UTcXG']),webSocketUtils[_0x527b50(0x8b)](_0x20f27a,_0x543d1f[_0x527b50(0x77)],_0x543d1f[_0x527b50(0xd7)]);const [_0x2ae13d,_0x2128db]=await _0x5499d9[_0x527b50(0x98)](getGridDetails,_0x2021be[_0x527b50(0x86)][_0x527b50(0x9b)],_0x2021be[_0x527b50(0x86)]['password'],_0x543d1f[_0x527b50(0x78)]);if(_0x2128db){const _0x245a75=_0x2128db[_0x527b50(0xaa)];global_registry['cloudProvider']=_0x245a75[_0x527b50(0x8a)],global_registry[_0x527b50(0x7e)]=_0x245a75[_0x527b50(0xc2)],global_registry[_0x527b50(0xbf)]=_0x245a75[_0x527b50(0xbf)];const _0x274a0f=await _0x5499d9[_0x527b50(0xae)](getCloudProviderObject,_0x245a75['cloudProvider'],_0x245a75[_0x527b50(0xbf)],_0x245a75[_0x527b50(0xb6)],_0x20f27a,webSocketUtils,_0x543d1f),[_0x2dc778,_0x32a7b1,_0x2d3163,_0x48edec,_0x3cb028,_0x99ad4]=await _0x5499d9['fJKih'](createK8sClient,_0x274a0f,_0x543d1f[_0x527b50(0xce)]);await _0x5499d9[_0x527b50(0xbc)](scaleDownHubDeployment,_0x32a7b1,_0x245a75[_0x527b50(0xb6)]),logger['info'](_0x5499d9['kuJod']),process[_0x527b50(0xa3)](0x0);}_0x5499d9[_0x527b50(0x8e)](_0x2ae13d[_0x527b50(0xc4)],0x191)&&(logger['error'](_0x5499d9[_0x527b50(0x92)]),await _0x5499d9[_0x527b50(0xae)](sendInstrumentationEvent,_0x543d1f,_0x5499d9[_0x527b50(0x7b)],messageTypes['ERROR'],_0x5499d9[_0x527b50(0xa2)],null,_0x543d1f),process[_0x527b50(0xa3)](0x1)),_0x5499d9[_0x527b50(0xc3)](_0x2ae13d[_0x527b50(0xc4)],0x190)&&(logger[_0x527b50(0x8c)](JSON[_0x527b50(0x96)](_0x2ae13d[_0x527b50(0x7a)])['message']),await _0x5499d9[_0x527b50(0xae)](sendInstrumentationEvent,_0x543d1f,_0x5499d9[_0x527b50(0x7b)],messageTypes[_0x527b50(0xac)],_0x5499d9[_0x527b50(0xb8)],null,_0x543d1f),process['exit'](0x1)),logger[_0x527b50(0x8c)](_0x527b50(0xbb)+JSON[_0x527b50(0x7c)](_0x2ae13d)),await _0x5499d9[_0x527b50(0xae)](sendInstrumentationEvent,_0x543d1f,_0x5499d9[_0x527b50(0x7b)],messageTypes['ERROR'],_0x5499d9[_0x527b50(0xba)],_0x2ae13d,_0x543d1f),process[_0x527b50(0xa3)](0x1);}catch(_0x2d49a4){const _0x154e3d='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x2d49a4+'\x20\x0a'+JSON[_0x527b50(0x7c)](_0x2d49a4[_0x527b50(0xcc)])+'\x20';logger[_0x527b50(0x8c)](_0x154e3d),process[_0x527b50(0xa3)](0x1);}};
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 +1 @@
1
- const a20_0x24c7e4=a20_0x2051;(function(_0xdee457,_0xbcfbff){const _0x25fa63=a20_0x2051,_0x172f1f=_0xdee457();while(!![]){try{const _0x3382f2=-parseInt(_0x25fa63(0x11b))/0x1+-parseInt(_0x25fa63(0x134))/0x2*(-parseInt(_0x25fa63(0xf2))/0x3)+parseInt(_0x25fa63(0x141))/0x4*(parseInt(_0x25fa63(0x13f))/0x5)+-parseInt(_0x25fa63(0x13a))/0x6+-parseInt(_0x25fa63(0xf9))/0x7+-parseInt(_0x25fa63(0x149))/0x8*(parseInt(_0x25fa63(0x10d))/0x9)+parseInt(_0x25fa63(0x110))/0xa;if(_0x3382f2===_0xbcfbff)break;else _0x172f1f['push'](_0x172f1f['shift']());}catch(_0x258d77){_0x172f1f['push'](_0x172f1f['shift']());}}}(a20_0x356c,0xa3b55),require(a20_0x24c7e4(0x107))[a20_0x24c7e4(0x148)](),exports['DASHBOARD_ENDPOINT']=process[a20_0x24c7e4(0x12b)][a20_0x24c7e4(0x120)]||a20_0x24c7e4(0x121),exports[a20_0x24c7e4(0xfe)]=process[a20_0x24c7e4(0x12b)][a20_0x24c7e4(0xfe)]||a20_0x24c7e4(0x135),exports[a20_0x24c7e4(0x126)]=process[a20_0x24c7e4(0x12b)][a20_0x24c7e4(0x126)]||a20_0x24c7e4(0xf3),exports[a20_0x24c7e4(0x14a)]=a20_0x24c7e4(0x117)+this[a20_0x24c7e4(0x126)]+a20_0x24c7e4(0x136),exports[a20_0x24c7e4(0x147)]=a20_0x24c7e4(0xfb),exports[a20_0x24c7e4(0x12d)]=a20_0x24c7e4(0x11e),exports[a20_0x24c7e4(0xf4)]=a20_0x24c7e4(0x146),exports[a20_0x24c7e4(0xfa)]=a20_0x24c7e4(0x139),exports[a20_0x24c7e4(0xf5)]=a20_0x24c7e4(0x133),exports[a20_0x24c7e4(0x109)]=a20_0x24c7e4(0x114),exports[a20_0x24c7e4(0x14d)]=a20_0x24c7e4(0x130),exports['TURBOSCALE_DEPLOYMENT']='browserstack-turboscale-grid',exports[a20_0x24c7e4(0xfd)]=a20_0x24c7e4(0x127),exports[a20_0x24c7e4(0x12f)]='gcp');const a20_0x14a519={};function a20_0x356c(){const _0x288ccb=['messageTypes','delete','5XvpiSM','info','3492484tIETgq','HELP_HEADER_MESSAGE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','BrowserStack','RAW_ARGS_REGEX','high-scale-grid','CP_CONFIG_FILE','config','112eHXMsf','WS_ENDPOINT','HST_CLUSTER_TAGS','WS_EVENTS','CLUSTER_HUB_HA_STACK_NAME','init','forEach','CLI_RUN_STARTED','170670HWGONA','grid-api.browserstack.com','DEFAULT_GRID_NAME','CLUSTER_DEP_STACK_NAME','SUPPORTED_CLOUD_PROVIDERS','unknown','start','3197558cHqtRI','AWS','credentials','COMMON_HST_TAGS','AZURE','BS_API_URL','REDACTED','Key','NULL','TURBOSCALE_CUSTOM_TAGS','error','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','gridUrl','resourceInfo','dotenv','browserstack:service','CLUSTER_AUTOSCALER_STACK_NAME','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','cliRunStarted','create','340011zcSeVc','Value','push','10407610QJvraG','LINK_MESSAGE','gridProfile','connect','BSTACK-ATS-CLUSTER-AUTOSCALER','warning','cliRunFinished','wss://','configure','[REDACTED]','WARNING','117287WszXmp','grid','SUCCESS','BrowserStackIAMUser','CLI_ARGS_REGEX','DASHBOARD_ENDPOINT','grid.browserstack.com','root','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','LOG','AG_API_URL','azure','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','RESOURCES','env','HELP_FOOTER_MESSAGE','IAM_USER_NAME','UNKNOWN','GCP','BSTACK-ATS-CLUSTER-HUB-HA','CLI_RUN_FINISHED','split','BSTACK-ATS-CLUSTER','10DlmeVK','api.browserstack.com','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','global_registry','list','aws','2548776YdNiRO','browserstack:managedBy','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli'];a20_0x356c=function(){return _0x288ccb;};return a20_0x356c();}a20_0x14a519[a20_0x24c7e4(0x100)]='browserstack:managedBy',a20_0x14a519[a20_0x24c7e4(0x10e)]=a20_0x24c7e4(0x144);const a20_0x55f2d8={};function a20_0x2051(_0x11a583,_0x179fd2){const _0x356c92=a20_0x356c();return a20_0x2051=function(_0x20516e,_0x577564){_0x20516e=_0x20516e-0xef;let _0x3b7b23=_0x356c92[_0x20516e];return _0x3b7b23;},a20_0x2051(_0x11a583,_0x179fd2);}a20_0x55f2d8[a20_0x24c7e4(0x100)]=a20_0x24c7e4(0x108),a20_0x55f2d8[a20_0x24c7e4(0x10e)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a20_0x14a519,a20_0x55f2d8];if(process[a20_0x24c7e4(0x12b)][a20_0x24c7e4(0x102)]){const parsedTags=process[a20_0x24c7e4(0x12b)][a20_0x24c7e4(0x102)][a20_0x24c7e4(0x132)](',');parsedTags[a20_0x24c7e4(0xf0)](_0x46b82f=>{const _0x1e78db=a20_0x24c7e4,_0x324371=_0x46b82f[_0x1e78db(0x132)](':'),_0x3e5314={};_0x3e5314[_0x1e78db(0x100)]=_0x324371[0x0],_0x3e5314[_0x1e78db(0x10e)]=_0x324371[0x1],common_hst_tags_list[_0x1e78db(0x10f)](_0x3e5314);});}exports[a20_0x24c7e4(0xfc)]=common_hst_tags_list;const a20_0x2fad17={};a20_0x2fad17[a20_0x24c7e4(0x13b)]=a20_0x24c7e4(0x144),a20_0x2fad17[a20_0x24c7e4(0x108)]='BrowserStack-Automate-TurboScale',exports[a20_0x24c7e4(0x14b)]=a20_0x2fad17,exports[a20_0x24c7e4(0xf6)]=[this[a20_0x24c7e4(0xfa)]];const a20_0x272660={};a20_0x272660[a20_0x24c7e4(0x125)]='log',a20_0x272660[a20_0x24c7e4(0x12a)]=a20_0x24c7e4(0x106),a20_0x272660['GRID_URL']=a20_0x24c7e4(0x105),a20_0x272660[a20_0x24c7e4(0xf1)]=a20_0x24c7e4(0x10b),a20_0x272660[a20_0x24c7e4(0x131)]=a20_0x24c7e4(0x116),exports[a20_0x24c7e4(0x14c)]=a20_0x272660,exports[a20_0x24c7e4(0x137)]={},exports['LINK_MESSAGE']=a20_0x24c7e4(0x13c);const a20_0x42d572={};a20_0x42d572[a20_0x24c7e4(0x122)]=a20_0x24c7e4(0x123)+this[a20_0x24c7e4(0x111)],a20_0x42d572[a20_0x24c7e4(0xef)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a20_0x24c7e4(0x111)],a20_0x42d572[a20_0x24c7e4(0x118)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a20_0x24c7e4(0x111)],a20_0x42d572[a20_0x24c7e4(0x10c)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this[a20_0x24c7e4(0x111)],a20_0x42d572[a20_0x24c7e4(0x138)]={},a20_0x42d572[a20_0x24c7e4(0x13e)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a20_0x24c7e4(0x111)],a20_0x42d572[a20_0x24c7e4(0x113)]=a20_0x24c7e4(0x104)+this['LINK_MESSAGE'],a20_0x42d572[a20_0x24c7e4(0xf8)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a20_0x24c7e4(0x111)],a20_0x42d572['stop']=a20_0x24c7e4(0x10a)+this[a20_0x24c7e4(0x111)],a20_0x42d572[a20_0x24c7e4(0x138)][a20_0x24c7e4(0x122)]=a20_0x24c7e4(0x128)+this[a20_0x24c7e4(0x111)],a20_0x42d572[a20_0x24c7e4(0x138)][a20_0x24c7e4(0x11c)]=a20_0x24c7e4(0x129)+this[a20_0x24c7e4(0x111)],a20_0x42d572[a20_0x24c7e4(0x138)][a20_0x24c7e4(0x112)]=a20_0x24c7e4(0x143)+this[a20_0x24c7e4(0x111)],exports[a20_0x24c7e4(0x142)]=a20_0x42d572,exports[a20_0x24c7e4(0x12c)]=a20_0x24c7e4(0x124);const a20_0x56e149={};a20_0x56e149[a20_0x24c7e4(0x11d)]='success',a20_0x56e149['ERROR']=a20_0x24c7e4(0x103),a20_0x56e149['INFO']=a20_0x24c7e4(0x140),a20_0x56e149[a20_0x24c7e4(0x11a)]=a20_0x24c7e4(0x115),a20_0x56e149[a20_0x24c7e4(0x12e)]=a20_0x24c7e4(0xf7),a20_0x56e149[a20_0x24c7e4(0x101)]=null,exports[a20_0x24c7e4(0x13d)]=a20_0x56e149,exports[a20_0x24c7e4(0x11f)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a20_0x24c7e4(0x145)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a20_0x24c7e4(0xff)]=a20_0x24c7e4(0x119);
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 +1 @@
1
- const a21_0xc9e8c8=a21_0x2de0;(function(_0x2047a7,_0x56dc22){const _0x1bd005=a21_0x2de0,_0x109a03=_0x2047a7();while(!![]){try{const _0x5ec1b0=-parseInt(_0x1bd005(0x1a7))/0x1*(-parseInt(_0x1bd005(0x190))/0x2)+-parseInt(_0x1bd005(0x188))/0x3+-parseInt(_0x1bd005(0x19c))/0x4*(-parseInt(_0x1bd005(0x1a2))/0x5)+-parseInt(_0x1bd005(0x192))/0x6*(parseInt(_0x1bd005(0x189))/0x7)+parseInt(_0x1bd005(0x1a4))/0x8+parseInt(_0x1bd005(0x196))/0x9*(-parseInt(_0x1bd005(0x1a0))/0xa)+-parseInt(_0x1bd005(0x195))/0xb*(-parseInt(_0x1bd005(0x199))/0xc);if(_0x5ec1b0===_0x56dc22)break;else _0x109a03['push'](_0x109a03['shift']());}catch(_0x392c3c){_0x109a03['push'](_0x109a03['shift']());}}}(a21_0xefd1,0xa0b94));function a21_0xefd1(){const _0x3ce985=['4516896LtnvRK','combine','join','277awzXgE','colorize','File','logger','level','2066994asjZQG','21ySwwOw','console.info','fileLogger','timestamp','format','mkdirSync','Console','5798OkRTWF','path','283782XORaPC','log','message','3362887SdPjFQ','4950fjlevK','transports','name','12xvgcDg','createLogger','existsSync','12nnWTCU','winston','events.log','usage.log','19760SSbAyP','\x20-\x20','1504435uBzbsK','printf'];a21_0xefd1=function(){return _0x3ce985;};return a21_0xefd1();}const winston=require(a21_0xc9e8c8(0x19d)),fs=require('fs'),path=require(a21_0xc9e8c8(0x191)),logDir=a21_0xc9e8c8(0x193);!fs[a21_0xc9e8c8(0x19b)](logDir)&&fs[a21_0xc9e8c8(0x18e)](logDir);function a21_0x2de0(_0x463501,_0x4a5351){const _0xefd153=a21_0xefd1();return a21_0x2de0=function(_0x2de058,_0x20880b){_0x2de058=_0x2de058-0x184;let _0x4d3aab=_0xefd153[_0x2de058];return _0x4d3aab;},a21_0x2de0(_0x463501,_0x4a5351);}const a21_0x3b6647={};a21_0x3b6647[a21_0xc9e8c8(0x18d)]='YYYY-MM-DD\x20HH:mm:ss';const a21_0x274795={};a21_0x274795[a21_0xc9e8c8(0x187)]=!![];const a21_0xb61721={};a21_0xb61721[a21_0xc9e8c8(0x198)]=a21_0xc9e8c8(0x18a),exports[a21_0xc9e8c8(0x186)]=new winston[(a21_0xc9e8c8(0x19a))]({'format':winston['format'][a21_0xc9e8c8(0x1a5)](winston[a21_0xc9e8c8(0x18d)]['timestamp'](a21_0x3b6647),winston['format'][a21_0xc9e8c8(0x184)](a21_0x274795),winston['format'][a21_0xc9e8c8(0x1a3)](_0x5846d6=>_0x5846d6[a21_0xc9e8c8(0x18c)]+a21_0xc9e8c8(0x1a1)+_0x5846d6['level']+':\x20'+_0x5846d6[a21_0xc9e8c8(0x194)])),'transports':[new winston['transports'][(a21_0xc9e8c8(0x18f))](a21_0xb61721),new winston[(a21_0xc9e8c8(0x197))]['File']({'filename':path[a21_0xc9e8c8(0x1a6)](logDir,a21_0xc9e8c8(0x19e)),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a21_0xc9e8c8(0x197))][(a21_0xc9e8c8(0x185))]({'filename':path[a21_0xc9e8c8(0x1a6)](logDir,a21_0xc9e8c8(0x19f)),'level':'debug'})]};exports[a21_0xc9e8c8(0x18b)]=new winston[(a21_0xc9e8c8(0x19a))](winstonFileLoggerParams);
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);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function a22_0x2ac0(){const _0x2e4d21=['305058IBHhxi','XZmPc','2637720EndCEo','805744VJIxEF','635YMuzLD','123112ImIlhW','exports','demandCommand','347712sQwLkr','1098uvFGgv','./config/constants','epilogue','PHxkL','217432WntWnT','160ZAKpwO','commands','env','35rBVpeg','commandDir','1FjwXep','help'];a22_0x2ac0=function(){return _0x2e4d21;};return a22_0x2ac0();}const a22_0x34fc9d=a22_0x22b5;(function(_0x429276,_0x406323){const _0x58b812=a22_0x22b5,_0x187862=_0x429276();while(!![]){try{const _0x44ccd5=parseInt(_0x58b812(0x1ac))/0x1*(-parseInt(_0x58b812(0x1ae))/0x2)+parseInt(_0x58b812(0x1b6))/0x3+parseInt(_0x58b812(0x1b1))/0x4+-parseInt(_0x58b812(0x1b2))/0x5*(-parseInt(_0x58b812(0x1b7))/0x6)+parseInt(_0x58b812(0x1aa))/0x7*(parseInt(_0x58b812(0x1a6))/0x8)+-parseInt(_0x58b812(0x1b0))/0x9+-parseInt(_0x58b812(0x1a7))/0xa*(-parseInt(_0x58b812(0x1b3))/0xb);if(_0x44ccd5===_0x406323)break;else _0x187862['push'](_0x187862['shift']());}catch(_0x1be9ba){_0x187862['push'](_0x187862['shift']());}}}(a22_0x2ac0,0x33413));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a22_0x34fc9d(0x1b8));process[a22_0x34fc9d(0x1a9)]['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function run(_0x242b16){const _0x40d7e5=a22_0x34fc9d,_0x1d95cd={};_0x1d95cd[_0x40d7e5(0x1ba)]=_0x40d7e5(0x1a8),_0x1d95cd['XZmPc']=_0x40d7e5(0x1ad);const _0x526723=_0x1d95cd;_0x242b16['usage'](HELP_HEADER_MESSAGE['root'])[_0x40d7e5(0x1ab)](_0x526723[_0x40d7e5(0x1ba)])[_0x40d7e5(0x1b5)]()['help'](_0x526723[_0x40d7e5(0x1af)])[_0x40d7e5(0x1b9)](HELP_FOOTER_MESSAGE);}function a22_0x22b5(_0x209f8a,_0x225039){const _0x2ac04b=a22_0x2ac0();return a22_0x22b5=function(_0x22b550,_0x46060a){_0x22b550=_0x22b550-0x1a6;let _0xe6f226=_0x2ac04b[_0x22b550];return _0xe6f226;},a22_0x22b5(_0x209f8a,_0x225039);}module[a22_0x34fc9d(0x1b4)]=run;
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();}
@@ -1 +1 @@
1
- function a23_0x3968(){const _0x2d6081=['getOidcUrl','YQyeH','identity','hPTaB','headBucket','describeSecurityGroups','region','DlQLL','zsZDr','nsdeP','1495vqtroh','PrWWn','USVSt','Error\x20getting\x20OIDC\x20URL\x20for\x20cluster\x20','nmuGm','ZVHlA','describeCluster','PQKlW','EdPCP','oyJdq','SEBPi','uXmBG','fzjiC','qAPZy','describeRegions','MSOFD','boigd','UetNx','YYXib','isBucketPresent','frthA','Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20','Bucket:\x20','zTVpY','AfRwU','promise','fetchVPCs','wmeLu','QFFsm','catch','ZLeGb','awsObj','HNImU','tvBqa','FzPLi','mscKY','Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20','KjXLe','dXQqu','lwNIF','eCnub','wmklX','\x20already\x20exists.\x20Skipping\x20Bucket\x20creation','uFlFy','nJDDH','ANtAl','MLPNS','CAsSg','gAbnR','Btquh','qIQdB','KAKjD','oidc','2500311oqvhiO','HQaZR','MjhBT','SYHhQ','vHaQc','2XJWFQz','info','qxvHx','atdAF','vApbz','YEzLU','dLEJB','odxRE','AkhqB','LINrR','fetchSubnets','name','cSDWE','2805176zPaahX','VnsEI','577534Dfirqq','sDBjh','yvZmn','xPxKU','tiuEV','DmCPZ','2017-11-01','fnVqK','WWCGD','yWOYz','warn','MDYWS','ehogi','vnJMN','zXYbS','VWQTG','HmznD','tsmYB','amyog','bUbdA','8022RReuZi','RkUaT','AyvLo','then','ergVd','LmdnF','STcaZ','YaJlU','mcoKO','DMlMZ','oplfw','6366640Jravfy','QTBmt','DqTCB','wAVux','eoEYX','ffsaf','Bucket','qGREc','error','ndCwV','2491461vIWoMA','oGtAH','describeVpcs','cluster','cVQyj','PlYcE','PgeHn','Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20','\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket','OfOIa','IExXM','pPldi','pqnwK','fetchSecurityGroups','apiVersion','qTSCW','ysznM','aws-sdk','wusDK','iFWVH','pJmDl','WmmBH','uOZpg','MTuTv','AppVR','TFYnV','YJBTy','2016-11-15','UqgUW','VJwOn','pLUyt','MntLp','VJsTt','NiDPg','JAgXk','QucfF','EC2','iLwIh','rzDfd','kDWjE','1386290LGGPxS','ibuJN','pfqGy','27rUpnUT','tqdFd','HbsIH','yEFVR','JtNiN','ykKux','Regions','KhJYa','hVnjJ','rtrbR','JAIdu','XszWD','issuer','MgJwf','EKS','BtMpT','siFvC'];a23_0x3968=function(){return _0x2d6081;};return a23_0x3968();}const a23_0x34f737=a23_0x5b9d;function a23_0x5b9d(_0x4c8c8b,_0x15ea1d){const _0x39685b=a23_0x3968();return a23_0x5b9d=function(_0x5b9ded,_0x59542e){_0x5b9ded=_0x5b9ded-0x1df;let _0x91a7a5=_0x39685b[_0x5b9ded];return _0x91a7a5;},a23_0x5b9d(_0x4c8c8b,_0x15ea1d);}(function(_0x2e3628,_0x126103){const _0x12d806=a23_0x5b9d,_0x1514aa=_0x2e3628();while(!![]){try{const _0x668936=-parseInt(_0x12d806(0x1f4))/0x1+-parseInt(_0x12d806(0x1e5))/0x2*(parseInt(_0x12d806(0x1e0))/0x3)+parseInt(_0x12d806(0x1f2))/0x4+-parseInt(_0x12d806(0x263))/0x5*(parseInt(_0x12d806(0x208))/0x6)+parseInt(_0x12d806(0x21d))/0x7+parseInt(_0x12d806(0x213))/0x8+parseInt(_0x12d806(0x248))/0x9*(parseInt(_0x12d806(0x245))/0xa);if(_0x668936===_0x126103)break;else _0x1514aa['push'](_0x1514aa['shift']());}catch(_0x65ea63){_0x1514aa['push'](_0x1514aa['shift']());}}}(a23_0x3968,0x6fdd8));const awsSDK=require(a23_0x34f737(0x22e)),{logger}=require('../config/logger');exports[a23_0x34f737(0x27d)]=_0x598e38=>{const _0x3f1ed9=a23_0x34f737,_0x57ece2={'ndCwV':function(_0x4f7643,_0x2bd17c){return _0x4f7643(_0x2bd17c);},'YJBTy':function(_0x4997f4,_0xd738a7){return _0x4997f4!==_0xd738a7;},'uXGYi':_0x3f1ed9(0x27b),'pcUjA':_0x3f1ed9(0x251),'VnsEI':_0x3f1ed9(0x27f),'MTuTv':_0x3f1ed9(0x1ec),'fzjiC':_0x3f1ed9(0x23b),'WzapH':_0x3f1ed9(0x238)};return new Promise((_0x4a22df,_0x1a23fc)=>{const _0x709b6f=_0x3f1ed9,_0xf3a46e={'ZLeGb':function(_0xceced8,_0x5af05d){const _0x42c739=a23_0x5b9d;return _0x57ece2[_0x42c739(0x21c)](_0xceced8,_0x5af05d);},'WZKHW':function(_0x2247d3,_0x480db7){const _0x49d727=a23_0x5b9d;return _0x57ece2[_0x49d727(0x237)](_0x2247d3,_0x480db7);},'RETLT':_0x57ece2['uXGYi'],'QRwAH':_0x57ece2['pcUjA'],'gsMQX':function(_0x3931d0,_0x14a5b1){return _0x57ece2['ndCwV'](_0x3931d0,_0x14a5b1);},'MjhBT':function(_0x5a1ac4,_0x24189d){return _0x57ece2['ndCwV'](_0x5a1ac4,_0x24189d);},'PgeHn':function(_0x37c4a0,_0x1f4673){const _0x1ab0cc=a23_0x5b9d;return _0x57ece2[_0x1ab0cc(0x237)](_0x37c4a0,_0x1f4673);},'PrWWn':_0x57ece2[_0x709b6f(0x1f3)],'vApbz':function(_0x1f97a7,_0x3ad422){const _0x8b24b0=_0x709b6f;return _0x57ece2[_0x8b24b0(0x21c)](_0x1f97a7,_0x3ad422);}};if(_0x57ece2['YJBTy'](_0x57ece2[_0x709b6f(0x234)],_0x57ece2[_0x709b6f(0x26f)])){const _0x23ec0b={};_0x23ec0b[_0x709b6f(0x22b)]=_0x57ece2['WzapH'],_0x23ec0b[_0x709b6f(0x25f)]=_0x598e38;const _0x207361=new awsSDK[(_0x709b6f(0x241))](_0x23ec0b);_0x207361[_0x709b6f(0x21f)]()[_0x709b6f(0x27c)]()[_0x709b6f(0x20b)](_0x25646b=>{const _0x11d3b8=_0x709b6f;_0xf3a46e['WZKHW'](_0xf3a46e['RETLT'],_0xf3a46e['QRwAH'])?_0xf3a46e['gsMQX'](_0x4a22df,_0x25646b):_0xf3a46e[_0x11d3b8(0x281)](_0x4e7ec5,_0x17ced1[_0x11d3b8(0x220)]['identity'][_0x11d3b8(0x1df)][_0x11d3b8(0x254)]);})[_0x709b6f(0x280)](_0x20dead=>{const _0x42e36e=_0x709b6f,_0x41d2d4={'PQKlW':function(_0x48e688,_0x3d2b67){const _0x4d64e9=a23_0x5b9d;return _0xf3a46e[_0x4d64e9(0x1e2)](_0x48e688,_0x3d2b67);}};_0xf3a46e[_0x42e36e(0x223)](_0xf3a46e['PrWWn'],_0xf3a46e[_0x42e36e(0x264)])?_0x41d2d4[_0x42e36e(0x26a)](_0x11c606,_0x16a996):(logger[_0x42e36e(0x21b)]('Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20'+_0x20dead),_0xf3a46e[_0x42e36e(0x1e9)](_0x1a23fc,_0x20dead));});}else _0xf3a46e[_0x709b6f(0x1e2)](_0x68acc0,_0x26d3b1);});},exports[a23_0x34f737(0x276)]=_0x49bf79=>{const _0x44306d=a23_0x34f737,_0x31419c={'OfOIa':function(_0xd6d72b,_0x3e1858){return _0xd6d72b(_0x3e1858);},'xPxKU':function(_0x20ca2e,_0x2a88e1){return _0x20ca2e!==_0x2a88e1;},'boigd':_0x44306d(0x272),'ykKux':function(_0x6bd6f9,_0x205d65){return _0x6bd6f9(_0x205d65);},'VwiOS':function(_0x4034a6,_0x3d3955){return _0x4034a6(_0x3d3955);},'KhJYa':_0x44306d(0x238),'Btquh':function(_0x450d8f,_0x14a150){return _0x450d8f===_0x14a150;},'twDhf':'jEYuD','ZVHlA':'hIhel','IXFeF':_0x44306d(0x207)},_0x1aa69c=new awsSDK['S3']();return new Promise((_0x37eb0e,_0x1c3a22)=>{const _0x1c1859=_0x44306d,_0xd3ed61={'iFWVH':function(_0x26f68d,_0x688fa5){const _0x58543a=a23_0x5b9d;return _0x31419c[_0x58543a(0x226)](_0x26f68d,_0x688fa5);},'JAIdu':function(_0x345251,_0x448fd4){return _0x31419c['VwiOS'](_0x345251,_0x448fd4);},'BtMpT':_0x31419c[_0x1c1859(0x24f)],'CAsSg':function(_0x45e7c3,_0x4ba7cb){return _0x31419c['OfOIa'](_0x45e7c3,_0x4ba7cb);},'tsmYB':function(_0x286f13,_0x2bda22){const _0x18cb79=_0x1c1859;return _0x31419c[_0x18cb79(0x294)](_0x286f13,_0x2bda22);},'YaJlU':_0x31419c['twDhf'],'AyvLo':_0x31419c[_0x1c1859(0x268)]};if(_0x31419c[_0x1c1859(0x1f7)](_0x31419c['IXFeF'],_0x31419c['IXFeF'])){const _0x319f41={'WWCGD':function(_0x5bfbea,_0x1190b8){const _0x3de337=_0x1c1859;return _0xd3ed61[_0x3de337(0x252)](_0x5bfbea,_0x1190b8);}},_0x53286d={};_0x53286d[_0x1c1859(0x22b)]=_0xd3ed61[_0x1c1859(0x257)],_0x53286d['region']=_0x112548;const _0x4f80a2=new _0x13856b[(_0x1c1859(0x241))](_0x53286d);_0x4f80a2['describeSubnets']()[_0x1c1859(0x27c)]()[_0x1c1859(0x20b)](_0x373113=>{const _0xee2c0d=_0x1c1859;_0x319f41[_0xee2c0d(0x1fc)](_0x4874c0,_0x373113);})['catch'](_0x215f82=>{const _0x3b0cf5=_0x1c1859;_0x4cf1a6[_0x3b0cf5(0x21b)]('Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20'+_0x215f82),_0xd3ed61[_0x3b0cf5(0x230)](_0x5572a5,_0x215f82);});}else{const _0x4fd60a={};_0x4fd60a[_0x1c1859(0x219)]=_0x49bf79,_0x1aa69c[_0x1c1859(0x25d)](_0x4fd60a)[_0x1c1859(0x27c)]()[_0x1c1859(0x20b)](_0x5022a6=>{const _0x195f66=_0x1c1859,_0x122f8e={'Hfkag':function(_0x3627c7,_0x3a13e4){const _0x515912=a23_0x5b9d;return _0xd3ed61[_0x515912(0x292)](_0x3627c7,_0x3a13e4);}};if(_0xd3ed61[_0x195f66(0x205)](_0xd3ed61[_0x195f66(0x20f)],_0xd3ed61[_0x195f66(0x20a)])){const _0x2c8684={'YEzLU':function(_0x350134,_0x7dcf4b){const _0x3f5ee4=_0x195f66;return _0xd3ed61[_0x3f5ee4(0x292)](_0x350134,_0x7dcf4b);}},_0x2a73e7={};_0x2a73e7[_0x195f66(0x22b)]=_0xd3ed61['BtMpT'],_0x2a73e7[_0x195f66(0x25f)]=_0x622f20;const _0x21108a=new _0x41444c[(_0x195f66(0x241))](_0x2a73e7);_0x21108a[_0x195f66(0x25e)]()[_0x195f66(0x27c)]()['then'](_0x957062=>{const _0x55c211=_0x195f66;_0x2c8684[_0x55c211(0x1ea)](_0x51dc94,_0x957062);})[_0x195f66(0x280)](_0x3b7c73=>{const _0x477464=_0x195f66;_0xa7367f[_0x477464(0x21b)](_0x477464(0x278)+_0x3b7c73),_0x122f8e['Hfkag'](_0x1c707b,_0x3b7c73);});}else logger[_0x195f66(0x1fe)](_0x195f66(0x279)+_0x49bf79+_0x195f66(0x28d)),_0xd3ed61['JAIdu'](_0x37eb0e,!![]);})[_0x1c1859(0x280)](()=>{const _0xedf70f=_0x1c1859,_0x50e764={'cVQyj':function(_0x325f5b,_0x859cfa){const _0x2d673c=a23_0x5b9d;return _0x31419c[_0x2d673c(0x226)](_0x325f5b,_0x859cfa);}};_0x31419c[_0xedf70f(0x1f7)](_0x31419c[_0xedf70f(0x273)],_0x31419c['boigd'])?_0x50e764[_0xedf70f(0x221)](_0x399250,_0x337ea7):(logger['info'](_0xedf70f(0x279)+_0x49bf79+'\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket'),_0x31419c[_0xedf70f(0x24d)](_0x37eb0e,![]));});}});},exports[a23_0x34f737(0x1ef)]=_0x1fe482=>{const _0x711f9e=a23_0x34f737,_0x516e56={'qTSCW':function(_0x3c0d33,_0x4846cb){return _0x3c0d33(_0x4846cb);},'yoLPM':function(_0x3fe0d8,_0x5d8db1){return _0x3fe0d8!==_0x5d8db1;},'DmCPZ':function(_0x2677a4,_0x2e4981){return _0x2677a4!==_0x2e4981;},'YQyeH':function(_0x365b60,_0x3f30d4){return _0x365b60===_0x3f30d4;},'pJmDl':_0x711f9e(0x25c),'vaxDR':'owGzm','HbsIH':_0x711f9e(0x1fa),'JtNiN':_0x711f9e(0x262),'qGREc':function(_0x1c671e,_0x5a56a6){return _0x1c671e!==_0x5a56a6;},'MntLp':_0x711f9e(0x1f1),'IExXM':'2016-11-15'};return new Promise((_0x5577c8,_0x3435a3)=>{const _0x33f88e=_0x711f9e,_0x13efe5={'mcoKO':function(_0x289f96,_0x5a51f3){const _0x4e0e81=a23_0x5b9d;return _0x516e56[_0x4e0e81(0x22c)](_0x289f96,_0x5a51f3);},'ubhMl':function(_0x1a0f6d,_0x46e92e){return _0x516e56['yoLPM'](_0x1a0f6d,_0x46e92e);},'dLEJB':function(_0x505664,_0x34df9e){const _0x2c950a=a23_0x5b9d;return _0x516e56[_0x2c950a(0x1f9)](_0x505664,_0x34df9e);},'fnVqK':function(_0x29e63c,_0x2ceb31){const _0x284ad8=a23_0x5b9d;return _0x516e56[_0x284ad8(0x22c)](_0x29e63c,_0x2ceb31);},'eCnub':function(_0x51f547,_0x35951c){const _0xd5dd25=a23_0x5b9d;return _0x516e56[_0xd5dd25(0x25a)](_0x51f547,_0x35951c);},'hVnjJ':_0x516e56[_0x33f88e(0x231)],'ANtAl':_0x516e56['vaxDR'],'pqnwK':_0x516e56[_0x33f88e(0x24a)],'zXYbS':_0x516e56[_0x33f88e(0x24c)]};if(_0x516e56[_0x33f88e(0x21a)](_0x516e56[_0x33f88e(0x23c)],_0x516e56['MntLp'])){const _0xb57ea3={'ibuJN':function(_0x3304e6,_0x3064df){return _0x13efe5['mcoKO'](_0x3304e6,_0x3064df);}},_0x26407b=new _0x4e4261['S3']();return new _0x4a4c4e((_0x125f80,_0xf4206b)=>{const _0x36d12c=_0x33f88e,_0x42e5d7={'VWQTG':function(_0x591f13,_0x5b4aca){const _0x27d92a=a23_0x5b9d;return _0xb57ea3[_0x27d92a(0x246)](_0x591f13,_0x5b4aca);}},_0x292a17={};_0x292a17['Bucket']=_0x122a24,_0x26407b['headBucket'](_0x292a17)[_0x36d12c(0x27c)]()[_0x36d12c(0x20b)](_0x2a7409=>{const _0x53701d=_0x36d12c;_0x2fa122['warn']('Bucket:\x20'+_0x1f3c17+'\x20already\x20exists.\x20Skipping\x20Bucket\x20creation'),_0xb57ea3[_0x53701d(0x246)](_0x125f80,!![]);})['catch'](()=>{const _0x47a8ff=_0x36d12c;_0xa6cd1b[_0x47a8ff(0x1e6)](_0x47a8ff(0x279)+_0xfc41a4+_0x47a8ff(0x225)),_0x42e5d7[_0x47a8ff(0x203)](_0x125f80,![]);});});}else{const _0x10254b={};_0x10254b[_0x33f88e(0x22b)]=_0x516e56[_0x33f88e(0x227)],_0x10254b[_0x33f88e(0x25f)]=_0x1fe482;const _0x19aeb5=new awsSDK[(_0x33f88e(0x241))](_0x10254b);_0x19aeb5['describeSubnets']()[_0x33f88e(0x27c)]()[_0x33f88e(0x20b)](_0x599e03=>{const _0x5c33ce=_0x33f88e;_0x13efe5[_0x5c33ce(0x28b)](_0x13efe5[_0x5c33ce(0x250)],_0x13efe5[_0x5c33ce(0x290)])?_0x13efe5['ubhMl'](_0x1381b1,_0x3086d1)&&_0x13efe5[_0x5c33ce(0x1eb)](_0x2b5fa8[_0x5c33ce(0x24e)],_0x52c259)?_0x13efe5['mcoKO'](_0x39d228,_0x2ad7ec[_0x5c33ce(0x24e)]):_0x13efe5[_0x5c33ce(0x1fb)](_0x5ba1e3,{}):_0x13efe5[_0x5c33ce(0x210)](_0x5577c8,_0x599e03);})[_0x33f88e(0x280)](_0x2b1716=>{const _0x4947dc=_0x33f88e,_0xa4a6cc={'LKoIQ':function(_0x48a50e,_0x537c8d){return _0x13efe5['fnVqK'](_0x48a50e,_0x537c8d);},'LmdnF':_0x13efe5[_0x4947dc(0x229)],'VJwOn':function(_0xdf4a8a,_0x4ec0eb){const _0x293e8c=_0x4947dc;return _0x13efe5[_0x293e8c(0x210)](_0xdf4a8a,_0x4ec0eb);}};if(_0x13efe5['dLEJB'](_0x13efe5[_0x4947dc(0x202)],_0x13efe5[_0x4947dc(0x202)])){const _0x457232={'wmeLu':function(_0x4966d6,_0x35d329){const _0x5ab12f=_0x4947dc;return _0xa4a6cc[_0x5ab12f(0x23a)](_0x4966d6,_0x35d329);}};return new _0x57868b((_0x23b0f4,_0x29e6c9)=>{const _0x92b3a7=_0x4947dc,_0x9fa49b={'QucfF':function(_0x48210d,_0x5809f1){return _0xa4a6cc['LKoIQ'](_0x48210d,_0x5809f1);}},_0xe77552={};_0xe77552['apiVersion']=_0xa4a6cc[_0x92b3a7(0x20d)];const _0x118c28=new _0x32b35a[(_0x92b3a7(0x256))](_0xe77552),_0x7dad4d={};_0x7dad4d[_0x92b3a7(0x1f0)]=_0x44d364,_0x118c28[_0x92b3a7(0x269)](_0x7dad4d)['promise']()[_0x92b3a7(0x20b)](_0x3eda5d=>{const _0x313a6b=_0x92b3a7;_0x9fa49b[_0x313a6b(0x240)](_0x23b0f4,_0x3eda5d['cluster'][_0x313a6b(0x25b)][_0x313a6b(0x1df)][_0x313a6b(0x254)]);})[_0x92b3a7(0x280)](_0x5653f0=>{const _0x5a983d=_0x92b3a7;_0x35ad00[_0x5a983d(0x21b)]('Error\x20getting\x20OIDC\x20URL\x20for\x20cluster\x20'+_0x54dd35+':\x20'+_0x5653f0),_0x457232[_0x5a983d(0x27e)](_0x29e6c9,_0x5653f0);});});}else logger[_0x4947dc(0x21b)]('Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20'+_0x2b1716),_0x13efe5[_0x4947dc(0x1fb)](_0x3435a3,_0x2b1716);});}});},exports[a23_0x34f737(0x22a)]=_0x58344a=>{const _0x5292ae=a23_0x34f737,_0x559d6c={'KjXLe':function(_0x232a89,_0x512c37){return _0x232a89(_0x512c37);},'ffsaf':function(_0x343f73,_0x3e9a9d){return _0x343f73!==_0x3e9a9d;},'wAVux':_0x5292ae(0x267),'VJsTt':_0x5292ae(0x228),'qAPZy':function(_0xf6153e,_0x4303fd){return _0xf6153e(_0x4303fd);},'RSFHo':_0x5292ae(0x1fa),'DMlMZ':_0x5292ae(0x22f),'UetNx':function(_0x34c699,_0x179b64){return _0x34c699===_0x179b64;},'XszWD':_0x5292ae(0x236),'RkUaT':_0x5292ae(0x238)};return new Promise((_0x56000a,_0x5ea8e4)=>{const _0x6d1e4b=_0x5292ae,_0x3e3e38={'frthA':function(_0x3928e7,_0x54b194){return _0x559d6c['KjXLe'](_0x3928e7,_0x54b194);},'XnVXd':_0x559d6c['RSFHo'],'MeWXH':function(_0x21f66b,_0x502f9c){const _0x2e2389=a23_0x5b9d;return _0x559d6c[_0x2e2389(0x218)](_0x21f66b,_0x502f9c);},'ergVd':_0x559d6c[_0x6d1e4b(0x211)],'gAbnR':function(_0x1d365f,_0x18510f){const _0x16022f=_0x6d1e4b;return _0x559d6c[_0x16022f(0x270)](_0x1d365f,_0x18510f);}};if(_0x559d6c[_0x6d1e4b(0x274)](_0x559d6c[_0x6d1e4b(0x253)],_0x559d6c['XszWD'])){const _0x315f35={};_0x315f35[_0x6d1e4b(0x22b)]=_0x559d6c[_0x6d1e4b(0x209)],_0x315f35[_0x6d1e4b(0x25f)]=_0x58344a;const _0x36fb1a=new awsSDK[(_0x6d1e4b(0x241))](_0x315f35);_0x36fb1a['describeSecurityGroups']()[_0x6d1e4b(0x27c)]()['then'](_0x2e568a=>{const _0x1fb53d=_0x6d1e4b,_0x592b1b={'zTVpY':function(_0x594852,_0x2fbf2b){const _0x1a9eca=a23_0x5b9d;return _0x559d6c[_0x1a9eca(0x288)](_0x594852,_0x2fbf2b);}};_0x559d6c[_0x1fb53d(0x218)](_0x559d6c[_0x1fb53d(0x216)],_0x559d6c[_0x1fb53d(0x23d)])?_0x559d6c[_0x1fb53d(0x270)](_0x56000a,_0x2e568a):(_0xbe8a9d[_0x1fb53d(0x1e6)](_0x1fb53d(0x279)+_0x413666+_0x1fb53d(0x225)),_0x592b1b[_0x1fb53d(0x27a)](_0x7b7b12,![]));})[_0x6d1e4b(0x280)](_0x5c9dc0=>{const _0x187393=_0x6d1e4b;if(_0x3e3e38['MeWXH'](_0x3e3e38[_0x187393(0x20c)],_0x3e3e38[_0x187393(0x20c)])){const _0xc1a66f={'uXmBG':function(_0x4db543,_0x205391){const _0x18eec3=_0x187393;return _0x3e3e38[_0x18eec3(0x277)](_0x4db543,_0x205391);}},_0x4465be={};_0x4465be[_0x187393(0x22b)]=_0x3e3e38['XnVXd'];const _0xb7a799=new _0x4a6fb6[(_0x187393(0x256))](_0x4465be),_0x4eebd8={};_0x4eebd8[_0x187393(0x1f0)]=_0x5ada1e,_0xb7a799[_0x187393(0x269)](_0x4eebd8)['promise']()[_0x187393(0x20b)](_0x45807d=>{const _0x1860bd=_0x187393;_0xc1a66f[_0x1860bd(0x26e)](_0x3ba085,_0x45807d[_0x1860bd(0x220)]['identity']['oidc'][_0x1860bd(0x254)]);})[_0x187393(0x280)](_0x1d2dfd=>{const _0x1acc81=_0x187393;_0x2d1ebe[_0x1acc81(0x21b)]('Error\x20getting\x20OIDC\x20URL\x20for\x20cluster\x20'+_0x58a68c+':\x20'+_0x1d2dfd),_0xc1a66f[_0x1acc81(0x26e)](_0x562441,_0x1d2dfd);});}else logger[_0x187393(0x21b)](_0x187393(0x278)+_0x5c9dc0),_0x3e3e38[_0x187393(0x293)](_0x5ea8e4,_0x5c9dc0);});}else _0x213705[_0x6d1e4b(0x21b)]('Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20'+_0x1abc03),_0x3e3e38[_0x6d1e4b(0x277)](_0x4ed3bb,_0x3886aa);});},exports['getAWSRegions']=()=>{const _0x26b69a=a23_0x34f737,_0x46e867={'nJDDH':function(_0x47ca21,_0x19c002){return _0x47ca21(_0x19c002);},'USVSt':function(_0x1aa9bc,_0x434f2d){return _0x1aa9bc(_0x434f2d);},'eoEYX':_0x26b69a(0x238),'AppVR':function(_0x3131a0,_0x41e97a){return _0x3131a0===_0x41e97a;},'STcaZ':_0x26b69a(0x201),'wmklX':_0x26b69a(0x275),'UqgUW':function(_0x3c87bc,_0x3d70cb){return _0x3c87bc!==_0x3d70cb;},'MgJwf':function(_0x374318,_0x20266c){return _0x374318!==_0x20266c;},'UESEl':_0x26b69a(0x286),'DlhCv':function(_0x3624ce,_0x1e32a5){return _0x3624ce!==_0x1e32a5;},'QTBmt':'uEjcr','MDYWS':'wtqXE','iLwIh':function(_0x2ab0b6,_0x3f22cb){return _0x2ab0b6(_0x3f22cb);},'rzDfd':_0x26b69a(0x26b),'KAKjD':function(_0x39e716,_0x48ae75){return _0x39e716===_0x48ae75;},'IpyDq':_0x26b69a(0x200),'lwNIF':_0x26b69a(0x295)};return new Promise((_0x8f02c2,_0x5ba8d6)=>{const _0xfde9cf=_0x26b69a,_0x4979ef={'JAgXk':function(_0x45faa5,_0x38b420){const _0xbebc54=a23_0x5b9d;return _0x46e867[_0xbebc54(0x28f)](_0x45faa5,_0x38b420);},'LINrR':function(_0x4efd82,_0x53e567){const _0x3a7aa9=a23_0x5b9d;return _0x46e867[_0x3a7aa9(0x265)](_0x4efd82,_0x53e567);},'ysznM':_0x46e867[_0xfde9cf(0x217)],'yWOYz':function(_0x3296b9,_0x1bddd9){const _0x450033=_0xfde9cf;return _0x46e867[_0x450033(0x235)](_0x3296b9,_0x1bddd9);},'ABPdG':_0x46e867[_0xfde9cf(0x20e)],'pqWej':_0x46e867[_0xfde9cf(0x28c)],'sDBjh':function(_0x27d6bb,_0x1fbd72){const _0x40fc2a=_0xfde9cf;return _0x46e867[_0x40fc2a(0x239)](_0x27d6bb,_0x1fbd72);},'SEBPi':function(_0x2cbfa1,_0xe6a306){return _0x46e867['MgJwf'](_0x2cbfa1,_0xe6a306);},'amyog':function(_0x4c64fe,_0x5a813b){const _0x183b08=_0xfde9cf;return _0x46e867[_0x183b08(0x255)](_0x4c64fe,_0x5a813b);},'siFvC':_0x46e867['UESEl'],'qSmnT':function(_0x2e63f5,_0x21aebe){return _0x46e867['DlhCv'](_0x2e63f5,_0x21aebe);},'pfqGy':_0x46e867[_0xfde9cf(0x214)],'uOZpg':_0x46e867[_0xfde9cf(0x1ff)],'oGtAH':function(_0xe21294,_0x586566){const _0x3e76ba=_0xfde9cf;return _0x46e867[_0x3e76ba(0x242)](_0xe21294,_0x586566);},'FzPLi':_0x46e867[_0xfde9cf(0x243)]};if(_0x46e867[_0xfde9cf(0x296)](_0x46e867['IpyDq'],_0x46e867[_0xfde9cf(0x28a)]))_0x4979ef[_0xfde9cf(0x23f)](_0xeab6aa,{});else{const _0x51401a={};_0x51401a[_0xfde9cf(0x22b)]=_0x46e867['eoEYX'];const _0x492767=new awsSDK[(_0xfde9cf(0x241))](_0x51401a);_0x492767[_0xfde9cf(0x271)]()[_0xfde9cf(0x27c)]()[_0xfde9cf(0x20b)]((_0x283085,_0x55afc7)=>{const _0x1d2ed4=_0xfde9cf,_0x12099a={'oyJdq':function(_0x866aea,_0x2c69a6){return _0x4979ef['JAgXk'](_0x866aea,_0x2c69a6);},'WmmBH':function(_0x163a0b,_0x276e47){const _0x2ef183=a23_0x5b9d;return _0x4979ef[_0x2ef183(0x1ee)](_0x163a0b,_0x276e47);},'DlQLL':_0x4979ef[_0x1d2ed4(0x22d)],'zsZDr':function(_0x5e042,_0x25ae79){const _0x4a3c5a=_0x1d2ed4;return _0x4979ef[_0x4a3c5a(0x23f)](_0x5e042,_0x25ae79);}};if(_0x4979ef[_0x1d2ed4(0x1fd)](_0x4979ef['ABPdG'],_0x4979ef['pqWej'])){const _0x75ee1a={'uXivv':function(_0x13dc5f,_0x1f7d9e){const _0xba1351=_0x1d2ed4;return _0x12099a[_0xba1351(0x232)](_0x13dc5f,_0x1f7d9e);}},_0x1bb8d8={};_0x1bb8d8[_0x1d2ed4(0x22b)]=_0x12099a[_0x1d2ed4(0x260)],_0x1bb8d8[_0x1d2ed4(0x25f)]=_0x21ee58;const _0x2a8dd4=new _0x3de0a4['EC2'](_0x1bb8d8);_0x2a8dd4['describeVpcs']()['promise']()[_0x1d2ed4(0x20b)](_0x1f0e21=>{const _0x1b938a=_0x1d2ed4;_0x12099a[_0x1b938a(0x26c)](_0x4d01e1,_0x1f0e21);})['catch'](_0x3eeede=>{const _0x284d96=_0x1d2ed4;_0x14b126[_0x284d96(0x21b)](_0x284d96(0x224)+_0x3eeede),_0x75ee1a['uXivv'](_0x27a1b6,_0x3eeede);});}else _0x4979ef[_0x1d2ed4(0x1f5)](_0x283085,undefined)&&_0x4979ef[_0x1d2ed4(0x26d)](_0x283085['Regions'],undefined)?_0x4979ef[_0x1d2ed4(0x206)](_0x4979ef[_0x1d2ed4(0x258)],_0x4979ef[_0x1d2ed4(0x258)])?(_0x59ac00[_0x1d2ed4(0x21b)](_0x1d2ed4(0x278)+_0x3b6c58),_0x12099a[_0x1d2ed4(0x261)](_0x5dd185,_0x2ef796)):_0x4979ef[_0x1d2ed4(0x1ee)](_0x8f02c2,_0x283085[_0x1d2ed4(0x24e)]):_0x4979ef['qSmnT'](_0x4979ef[_0x1d2ed4(0x247)],_0x4979ef[_0x1d2ed4(0x233)])?_0x4979ef[_0x1d2ed4(0x23f)](_0x8f02c2,{}):(_0x5c9d1b[_0x1d2ed4(0x1fe)](_0x1d2ed4(0x279)+_0xe891c9+'\x20already\x20exists.\x20Skipping\x20Bucket\x20creation'),_0x12099a[_0x1d2ed4(0x232)](_0x7a612,!![]));})[_0xfde9cf(0x280)](_0x4986d2=>{const _0x3cd626=_0xfde9cf;if(_0x4979ef[_0x3cd626(0x26d)](_0x4979ef[_0x3cd626(0x285)],_0x4979ef[_0x3cd626(0x285)])){const _0x4ad1d3={'yvZmn':function(_0x5ed95c,_0xf26b8e){const _0x33f41f=_0x3cd626;return _0x4979ef[_0x33f41f(0x1ee)](_0x5ed95c,_0xf26b8e);},'tqdFd':function(_0x102c85,_0x10804d){const _0x55b591=_0x3cd626;return _0x4979ef[_0x55b591(0x21e)](_0x102c85,_0x10804d);}},_0x43f894={};_0x43f894[_0x3cd626(0x219)]=_0x63f6c4,_0x5abaeb[_0x3cd626(0x25d)](_0x43f894)[_0x3cd626(0x27c)]()[_0x3cd626(0x20b)](_0x55e0a7=>{const _0x332642=_0x3cd626;_0x2d97c9['warn']('Bucket:\x20'+_0x150471+_0x332642(0x28d)),_0x4ad1d3[_0x332642(0x1f6)](_0x223067,!![]);})['catch'](()=>{const _0x15f453=_0x3cd626;_0x229409[_0x15f453(0x1e6)]('Bucket:\x20'+_0x34c4aa+_0x15f453(0x225)),_0x4ad1d3[_0x15f453(0x249)](_0x312e1e,![]);});}else logger[_0x3cd626(0x21b)]('Failed\x20to\x20fetch\x20AWS\x20Regions\x20due\x20to\x20error:\x20'+_0x4986d2),_0x4979ef[_0x3cd626(0x21e)](_0x5ba8d6,_0x4986d2);});}});},exports[a23_0x34f737(0x259)]=_0x5c4c9f=>{const _0x3cea19=a23_0x34f737,_0x1e8fde={'oplfw':function(_0x1eb105,_0xd501ca){return _0x1eb105(_0xd501ca);},'JMGDP':_0x3cea19(0x238),'COobM':function(_0x26291f,_0x5933f8){return _0x26291f!==_0x5933f8;},'NiDPg':_0x3cea19(0x1e3),'HNImU':function(_0x328c4b,_0x5852d8){return _0x328c4b(_0x5852d8);},'atdAF':function(_0x1aa41a,_0x547ea1){return _0x1aa41a===_0x547ea1;},'UEDPg':'WDwYq','HmznD':function(_0x5589f2,_0xcd4732){return _0x5589f2!==_0xcd4732;},'HQaZR':'zMkfe','IVCwv':_0x3cea19(0x1fa)};return new Promise((_0x503ed5,_0x2d8153)=>{const _0x292735=_0x3cea19,_0x443cc1={'AkhqB':function(_0x1f1268,_0x47df55){const _0x3f2029=a23_0x5b9d;return _0x1e8fde[_0x3f2029(0x212)](_0x1f1268,_0x47df55);},'DqTCB':_0x1e8fde['JMGDP'],'tvBqa':function(_0x15fff5,_0x14de52){return _0x1e8fde['COobM'](_0x15fff5,_0x14de52);},'tiuEV':_0x1e8fde[_0x292735(0x23e)],'dXQqu':function(_0x20b263,_0x419049){const _0x58d84f=_0x292735;return _0x1e8fde[_0x58d84f(0x283)](_0x20b263,_0x419049);},'yEFVR':function(_0x3ef6f4,_0x2a85b4){const _0x68db55=_0x292735;return _0x1e8fde[_0x68db55(0x1e8)](_0x3ef6f4,_0x2a85b4);},'vHaQc':_0x1e8fde['UEDPg']};if(_0x1e8fde[_0x292735(0x204)](_0x1e8fde[_0x292735(0x1e1)],_0x1e8fde[_0x292735(0x1e1)])){const _0x32a36e={'MLPNS':function(_0x4c47f5,_0x50da0b){const _0x5253ba=_0x292735;return _0x443cc1[_0x5253ba(0x1ed)](_0x4c47f5,_0x50da0b);}};return new _0x3c7e8b((_0xf4c35f,_0x52e7ed)=>{const _0x212f27=_0x292735,_0x6196f4={'uFlFy':function(_0x3fc00b,_0x43df5e){return _0x443cc1['AkhqB'](_0x3fc00b,_0x43df5e);}},_0x27b2fe={};_0x27b2fe[_0x212f27(0x22b)]=_0x443cc1[_0x212f27(0x215)],_0x27b2fe['region']=_0x13fa78;const _0x436593=new _0x5c65de[(_0x212f27(0x241))](_0x27b2fe);_0x436593[_0x212f27(0x21f)]()[_0x212f27(0x27c)]()['then'](_0x4877c9=>{const _0x1fe69c=_0x212f27;_0x32a36e[_0x1fe69c(0x291)](_0xf4c35f,_0x4877c9);})[_0x212f27(0x280)](_0x4ac749=>{const _0x1a014b=_0x212f27;_0x297089[_0x1a014b(0x21b)](_0x1a014b(0x224)+_0x4ac749),_0x6196f4[_0x1a014b(0x28e)](_0x52e7ed,_0x4ac749);});});}else{const _0x104d7d={};_0x104d7d['apiVersion']=_0x1e8fde['IVCwv'];const _0x4a3ea2=new awsSDK[(_0x292735(0x256))](_0x104d7d),_0x4a35bb={};_0x4a35bb[_0x292735(0x1f0)]=_0x5c4c9f,_0x4a3ea2[_0x292735(0x269)](_0x4a35bb)[_0x292735(0x27c)]()[_0x292735(0x20b)](_0x24a1a0=>{const _0x28f236=_0x292735;if(_0x443cc1[_0x28f236(0x284)](_0x443cc1[_0x28f236(0x1f8)],_0x443cc1[_0x28f236(0x1f8)])){const _0x4b4a6d={'PtfIu':function(_0x3d4b19,_0x545186){const _0x5c28b5=_0x28f236;return _0x443cc1[_0x5c28b5(0x1ed)](_0x3d4b19,_0x545186);},'qxvHx':_0x443cc1[_0x28f236(0x215)]};return new _0x675505((_0x1d8436,_0x128c06)=>{const _0x1328dc=_0x28f236,_0x113395={'PlYcE':function(_0x4051c8,_0x1dc58a){return _0x4b4a6d['PtfIu'](_0x4051c8,_0x1dc58a);}},_0x4ce8b0={};_0x4ce8b0['apiVersion']=_0x4b4a6d[_0x1328dc(0x1e7)],_0x4ce8b0[_0x1328dc(0x25f)]=_0x762c62;const _0x6feeda=new _0x5e23cd[(_0x1328dc(0x241))](_0x4ce8b0);_0x6feeda['describeSubnets']()[_0x1328dc(0x27c)]()[_0x1328dc(0x20b)](_0x2f90=>{const _0x390a41=_0x1328dc;_0x113395[_0x390a41(0x222)](_0x1d8436,_0x2f90);})[_0x1328dc(0x280)](_0xc2ab77=>{const _0x7b3ddb=_0x1328dc;_0x366305[_0x7b3ddb(0x21b)](_0x7b3ddb(0x287)+_0xc2ab77),_0x113395[_0x7b3ddb(0x222)](_0x128c06,_0xc2ab77);});});}else _0x443cc1[_0x28f236(0x1ed)](_0x503ed5,_0x24a1a0['cluster'][_0x28f236(0x25b)][_0x28f236(0x1df)]['issuer']);})['catch'](_0x2d9cef=>{const _0x565fa8=_0x292735,_0x4081fe={'kDWjE':function(_0x4766eb,_0x4bea1f){const _0x2178e6=a23_0x5b9d;return _0x443cc1[_0x2178e6(0x289)](_0x4766eb,_0x4bea1f);}};_0x443cc1[_0x565fa8(0x24b)](_0x443cc1['vHaQc'],_0x443cc1[_0x565fa8(0x1e4)])?(logger[_0x565fa8(0x21b)](_0x565fa8(0x266)+_0x5c4c9f+':\x20'+_0x2d9cef),_0x443cc1[_0x565fa8(0x1ed)](_0x2d8153,_0x2d9cef)):(_0x34a79a[_0x565fa8(0x21b)](_0x565fa8(0x224)+_0x3b00d6),_0x4081fe[_0x565fa8(0x244)](_0x2f700a,_0x45ca3f));});}});},exports[a23_0x34f737(0x282)]=awsSDK;
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 +1 @@
1
- const a24_0x2d0ea2=a24_0xb83f;(function(_0x10e000,_0x405234){const _0x41ef50=a24_0xb83f,_0x404cf5=_0x10e000();while(!![]){try{const _0x28ed5d=parseInt(_0x41ef50(0x11c))/0x1*(-parseInt(_0x41ef50(0x112))/0x2)+-parseInt(_0x41ef50(0x119))/0x3+parseInt(_0x41ef50(0x10a))/0x4*(-parseInt(_0x41ef50(0x118))/0x5)+-parseInt(_0x41ef50(0x135))/0x6*(parseInt(_0x41ef50(0x108))/0x7)+parseInt(_0x41ef50(0x140))/0x8+parseInt(_0x41ef50(0x114))/0x9*(parseInt(_0x41ef50(0x13b))/0xa)+parseInt(_0x41ef50(0x139))/0xb*(parseInt(_0x41ef50(0x12a))/0xc);if(_0x28ed5d===_0x405234)break;else _0x404cf5['push'](_0x404cf5['shift']());}catch(_0xeae345){_0x404cf5['push'](_0x404cf5['shift']());}}}(a24_0x2a20,0xa065f));const fs=require('fs'),path=require(a24_0x2d0ea2(0x11d)),yaml=require('js-yaml'),{CLOUDFORMATION_SCHEMA}=require(a24_0x2d0ea2(0x132)),Promise=require(a24_0x2d0ea2(0x138)),AWS=require(a24_0x2d0ea2(0x121))[a24_0x2d0ea2(0x134)],{CLUSTER_AUTOSCALER_STACK_NAME,COMMON_HST_TAGS}=require(a24_0x2d0ea2(0x128)),{logger}=require('../config/logger');Promise[a24_0x2d0ea2(0x13e)](fs);function a24_0xb83f(_0x40e55b,_0x4f0af1){const _0x2a2060=a24_0x2a20();return a24_0xb83f=function(_0xb83f3c,_0x20776e){_0xb83f3c=_0xb83f3c-0x104;let _0x3639ac=_0x2a2060[_0xb83f3c];return _0x3639ac;},a24_0xb83f(_0x40e55b,_0x4f0af1);}function a24_0x2a20(){const _0x5cd6a7=['Parameters','200076gqNZLv','path','join','Tags','stringify','./AWSUtils','CloudFormation','Value','TemplateBody','IQtSm','Properties','autoscaler-role-creation.yaml','../config/constants','CAPABILITY_NAMED_IAM','516HcrXOD','load','StackName','schema','utf-8','tQgVa','tKSvJ','createStack','js-yaml-cloudformation-schema','waitFor','awsObj','6mRuqrs','Waiting\x20for\x20CloudFormation\x20stack\x20to\x20complete','promise','bluebird','409420LVoeYK','debug','8812190HYUYZD','Capabilities','browserstack:creationDate','promisifyAll','2010-05-15','3588888NhlIwm','createAutoscalerStack','ClusterName','readFileAsync','DELETE','5659493aikcPy','gvrRh','4xVLotA','IKSYI','OnFailure','stackCreateComplete','push','EJQGd','Resources','ksTyQ','2kYcdCi','apiVersion','9uyCVXA','DEqYC','templates','browserstack:cluster','1589665bUooOW','2840373bMdZZg','vGfyQ'];a24_0x2a20=function(){return _0x5cd6a7;};return a24_0x2a20();}const addAutoscalerTags=async(_0x5a4c4c,_0x373612,_0x1a7164)=>{const _0x1049a6=a24_0x2d0ea2;for(const _0x5a1186 in _0x5a4c4c[_0x1049a6(0x110)]){_0x5a4c4c[_0x1049a6(0x110)][_0x5a1186][_0x1049a6(0x126)]&&_0x5a4c4c[_0x1049a6(0x110)][_0x5a1186][_0x1049a6(0x126)]['Tags']&&_0x5a4c4c[_0x1049a6(0x110)][_0x5a1186][_0x1049a6(0x126)][_0x1049a6(0x11f)][_0x1049a6(0x10e)](..._0x1a7164);}};exports[a24_0x2d0ea2(0x104)]=async _0x2b7e09=>{const _0x5dcf44=a24_0x2d0ea2,_0x52be9c={'eBJMh':_0x5dcf44(0x117),'ksTyQ':_0x5dcf44(0x13d),'IKGXG':_0x5dcf44(0x13f),'IKSYI':_0x5dcf44(0x116),'tQgVa':_0x5dcf44(0x127),'YXEET':_0x5dcf44(0x12e),'IQtSm':function(_0x35a739,_0x2ac4fe,_0x929eeb,_0x3432d0){return _0x35a739(_0x2ac4fe,_0x929eeb,_0x3432d0);},'EJQGd':_0x5dcf44(0x107),'tKSvJ':_0x5dcf44(0x105),'DEqYC':_0x5dcf44(0x129),'gvrRh':_0x5dcf44(0x136),'vGfyQ':_0x5dcf44(0x10d)},_0x516d41=COMMON_HST_TAGS,_0x2c1484={};_0x2c1484['Key']=_0x52be9c['eBJMh'],_0x2c1484[_0x5dcf44(0x123)]=_0x2b7e09,_0x516d41['push'](_0x2c1484),_0x516d41[_0x5dcf44(0x10e)]({'Key':_0x52be9c[_0x5dcf44(0x111)],'Value':new Date()['valueOf']()['toString']()});const _0x5e6c23={};_0x5e6c23[_0x5dcf44(0x113)]=_0x52be9c['IKGXG'];const _0x2ea26d=new AWS[(_0x5dcf44(0x122))](_0x5e6c23),_0x44e0bb=await fs[_0x5dcf44(0x106)](path[_0x5dcf44(0x11e)](__dirname,'..',_0x52be9c[_0x5dcf44(0x10b)],_0x52be9c[_0x5dcf44(0x12f)]),_0x52be9c['YXEET']),_0x18221a={};_0x18221a[_0x5dcf44(0x12d)]=CLOUDFORMATION_SCHEMA;const _0x4e783a=yaml[_0x5dcf44(0x12b)](_0x44e0bb,_0x18221a);_0x52be9c[_0x5dcf44(0x125)](addAutoscalerTags,_0x4e783a,_0x2b7e09,_0x516d41);const _0x4236b4=JSON[_0x5dcf44(0x120)](_0x4e783a),_0x162c43={};_0x162c43[_0x5dcf44(0x12c)]=CLUSTER_AUTOSCALER_STACK_NAME+'-'+_0x2b7e09,_0x162c43[_0x5dcf44(0x10c)]=_0x52be9c[_0x5dcf44(0x10f)],_0x162c43[_0x5dcf44(0x124)]=_0x4236b4,_0x162c43[_0x5dcf44(0x11b)]=[{'ParameterKey':_0x52be9c[_0x5dcf44(0x130)],'ParameterValue':_0x2b7e09}],_0x162c43[_0x5dcf44(0x13c)]=[_0x52be9c[_0x5dcf44(0x115)]],_0x162c43['Tags']=_0x516d41;const _0x5d7e7c=_0x162c43,_0x540b04=await _0x2ea26d[_0x5dcf44(0x131)](_0x5d7e7c)[_0x5dcf44(0x137)]();logger[_0x5dcf44(0x13a)](_0x52be9c[_0x5dcf44(0x109)]);const _0x442e3f={};return _0x442e3f[_0x5dcf44(0x12c)]=_0x540b04['StackId'],_0x2ea26d[_0x5dcf44(0x133)](_0x52be9c[_0x5dcf44(0x11a)],_0x442e3f)['promise']();};
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']();};