browserstack-node-sdk 1.24.1 → 1.24.2
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.
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customEnvironment.js +1 -1
- package/src/bin/jest/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/constants.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/performance-tester.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a8_0x2e97c6=a8_0x586c;function a8_0x586c(_0x400f89,_0x13c314){const _0xeeb734=a8_0xeeb7();return a8_0x586c=function(_0x586cc4,_0x5bd9a6){_0x586cc4=_0x586cc4-0xb3;let _0x867d6d=_0xeeb734[_0x586cc4];return _0x867d6d;},a8_0x586c(_0x400f89,_0x13c314);}(function(_0x48b624,_0x7b135b){const _0x572bcd=a8_0x586c,_0x14adf5=_0x48b624();while(!![]){try{const _0x193a79=parseInt(_0x572bcd(0xb8))/0x1*(parseInt(_0x572bcd(0xc6))/0x2)+-parseInt(_0x572bcd(0xb6))/0x3+parseInt(_0x572bcd(0xca))/0x4+parseInt(_0x572bcd(0xc1))/0x5*(-parseInt(_0x572bcd(0xc9))/0x6)+parseInt(_0x572bcd(0xb3))/0x7*(parseInt(_0x572bcd(0xcb))/0x8)+parseInt(_0x572bcd(0xc0))/0x9*(parseInt(_0x572bcd(0xbb))/0xa)+parseInt(_0x572bcd(0xbe))/0xb;if(_0x193a79===_0x7b135b)break;else _0x14adf5['push'](_0x14adf5['shift']());}catch(_0x23aff2){_0x14adf5['push'](_0x14adf5['shift']());}}}(a8_0xeeb7,0x6aa5c));function a8_0xeeb7(){const _0x56ff9a=['list_commands','34163VJFzsz','command','../config/constants','9900geNbLx','desc','help','7040638AnLlnC','handler','261mulSVi','1235rCCmBm','PotWE','List\x20down\x20the\x20Grid\x20resources.','builder','list','42llKLAB','commandDir','recommendCommands','19542MdTvXi','297708NDpUBV','152WiCHEt','strict','demandCommand','93562NyOZJn','TSjLl','root','1419795YmNFPm'];a8_0xeeb7=function(){return _0x56ff9a;};return a8_0xeeb7();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x2e97c6(0xba));exports[a8_0x2e97c6(0xb9)]=a8_0x2e97c6(0xc5),exports[a8_0x2e97c6(0xbc)]=a8_0x2e97c6(0xc3),exports[a8_0x2e97c6(0xc4)]=function(_0x33d76e){const _0x3cc83c=a8_0x2e97c6,_0x171a6c={};_0x171a6c[_0x3cc83c(0xb4)]=_0x3cc83c(0xb7),_0x171a6c[_0x3cc83c(0xc2)]=_0x3cc83c(0xbd);const _0x455bac=_0x171a6c;return _0x33d76e[_0x3cc83c(0xc7)](_0x455bac[_0x3cc83c(0xb4)])[_0x3cc83c(0xcd)]()['usage'](HELP_HEADER_MESSAGE['list'][_0x3cc83c(0xb5)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x3cc83c(0xc8)]()[_0x3cc83c(0xcc)]()['help'](_0x455bac[_0x3cc83c(0xc2)]);},exports[a8_0x2e97c6(0xbf)]=function(_0x49a7d5){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a9_0x1ba2f0=a9_0x5abf;(function(_0x348151,_0x4472b4){const _0x5c226d=a9_0x5abf,_0x36b878=_0x348151();while(!![]){try{const _0x54e662=parseInt(_0x5c226d(0x15d))/0x1+-parseInt(_0x5c226d(0x135))/0x2*(parseInt(_0x5c226d(0x17d))/0x3)+parseInt(_0x5c226d(0x148))/0x4+parseInt(_0x5c226d(0x147))/0x5+-parseInt(_0x5c226d(0x149))/0x6*(parseInt(_0x5c226d(0x13c))/0x7)+-parseInt(_0x5c226d(0x158))/0x8+-parseInt(_0x5c226d(0x156))/0x9;if(_0x54e662===_0x4472b4)break;else _0x36b878['push'](_0x36b878['shift']());}catch(_0x59c5cc){_0x36b878['push'](_0x36b878['shift']());}}}(a9_0x5847,0xe127f));const fs=require('fs'),util=require(a9_0x1ba2f0(0x144)),request=require(a9_0x1ba2f0(0x140)),{table}=require(a9_0x1ba2f0(0x159)),{v4:uuidv4}=require(a9_0x1ba2f0(0x151)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a9_0x1ba2f0(0x168)),{getCredentialsPath}=require(a9_0x1ba2f0(0x15c)),{sendInstrumentationEvent}=require(a9_0x1ba2f0(0x17b)),promisifiedRequest=util[a9_0x1ba2f0(0x136)](request);function a9_0x5abf(_0x4a6596,_0x2d718d){const _0x584727=a9_0x5847();return a9_0x5abf=function(_0x5abf6c,_0x143ce0){_0x5abf6c=_0x5abf6c-0x135;let _0x4db037=_0x584727[_0x5abf6c];return _0x4db037;},a9_0x5abf(_0x4a6596,_0x2d718d);}function a9_0x5847(){const _0x3926c5=['gridProfile','YnCgF','log','epilogue','stack','../../config/constants','https://','KIags','stringify','password','list','error','bstackUsername','type','uBJav','builder','FUucI','readFileSync','description','jcPkV','ZXPPd','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','exit','init-not-called','../../utils/instrumentationUtils','push','42204egUCRj','cloudProvider','ZJctD','grid-profiles','UYEWL','command','region','method','help','username','swRpf','XaSik','boolean','server-error','14DQEDqV','promisify','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','yZZMq','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','all-grid-profiles','5890703lyRqwe','JRchc','ERROR','parse','request','GET','brmJC','INFO','util','UxcHm','Failed\x20to\x20list\x20resources!\x20Error:\x20','2878035SMWStC','7013872LDUnNx','6jeJXYS','bstackAccesskey','svswi','body','usage','JNOHx','GSaYb','list-grid-profiles-called','uuid','lGZvR','auth','url','statusCode','8070435xqAWwv','argv','3658752FGfaEg','table','vXqal','eXXqG','../../utils/utilityMethods','887228aQMJPH','requestId','unauthorised','allGridProfiles','Browserstack','PCTNY'];a9_0x5847=function(){return _0x3926c5;};return a9_0x5847();}exports[a9_0x1ba2f0(0x182)]=a9_0x1ba2f0(0x180),exports['desc']=a9_0x1ba2f0(0x13a),exports[a9_0x1ba2f0(0x172)]=function(_0x7ce7fc){const _0x1acadf=a9_0x1ba2f0,_0x414860={};_0x414860['uBJav']=_0x1acadf(0x137),_0x414860[_0x1acadf(0x145)]=_0x1acadf(0x189),_0x414860['JRchc']=_0x1acadf(0x185);const _0x3bf318=_0x414860,_0x1afc86={};_0x1afc86[_0x1acadf(0x175)]=_0x3bf318[_0x1acadf(0x171)],_0x1afc86[_0x1acadf(0x170)]=_0x3bf318['UxcHm'];const _0x575528={};return _0x575528[_0x1acadf(0x13b)]=_0x1afc86,_0x7ce7fc[_0x1acadf(0x14d)](HELP_HEADER_MESSAGE[_0x1acadf(0x16d)][_0x1acadf(0x163)])[_0x1acadf(0x166)](HELP_FOOTER_MESSAGE)['options'](_0x575528)[_0x1acadf(0x185)](_0x3bf318[_0x1acadf(0x13d)])[_0x1acadf(0x157)];},exports['handler']=async function(_0x3112c5){const _0x1e0fc0=a9_0x1ba2f0,_0x1ecd67={'brmJC':function(_0x5f21f9){return _0x5f21f9();},'YnCgF':function(_0x181700){return _0x181700();},'uwPhj':_0x1e0fc0(0x138),'svswi':function(_0x3ca660,_0x36a8c8,_0x3ab22a,_0x14bce6,_0x460f26,_0x3bcbdb,_0x2c6010){return _0x3ca660(_0x36a8c8,_0x3ab22a,_0x14bce6,_0x460f26,_0x3bcbdb,_0x2c6010);},'PCTNY':_0x1e0fc0(0x150),'GSaYb':_0x1e0fc0(0x17a),'JNOHx':function(_0x45be81,_0x676836,_0x513504,_0x213338,_0x4fc1b3,_0x414348,_0x3d76a7){return _0x45be81(_0x676836,_0x513504,_0x213338,_0x4fc1b3,_0x414348,_0x3d76a7);},'XaSik':_0x1e0fc0(0x141),'yZZMq':function(_0x2b5424,_0x2de3ec){return _0x2b5424(_0x2de3ec);},'ZJctD':function(_0xff3c37,_0x2b6b56){return _0xff3c37!==_0x2b6b56;},'UYEWL':function(_0x3bc804,_0x4f0a8){return _0x3bc804===_0x4f0a8;},'aCSvH':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','KIags':'grid-profile-name','eXXqG':'cloud-provider','swRpf':_0x1e0fc0(0x183),'jcPkV':'concurrency','FUucI':function(_0x239843,_0x3a4cd7){return _0x239843(_0x3a4cd7);},'lGZvR':_0x1e0fc0(0x15f),'ZXPPd':_0x1e0fc0(0x18a),'vXqal':'unknown-error'};try{global_registry[_0x1e0fc0(0x15e)]=_0x1ecd67[_0x1e0fc0(0x142)](uuidv4);let _0x28a372='https://'+AG_API_URL+'/packages/cli/get-grid-profiles';_0x3112c5[_0x1e0fc0(0x160)]&&(_0x28a372=_0x1e0fc0(0x169)+AG_API_URL+'/packages/cli/get-all-grid-profiles');!fs['existsSync'](_0x1ecd67[_0x1e0fc0(0x164)](getCredentialsPath))&&(console[_0x1e0fc0(0x16e)](_0x1ecd67['uwPhj']),await _0x1ecd67[_0x1e0fc0(0x14b)](sendInstrumentationEvent,_0x3112c5,_0x1ecd67[_0x1e0fc0(0x162)],messageTypes[_0x1e0fc0(0x13e)],_0x1ecd67[_0x1e0fc0(0x14f)],null,_0x3112c5),process[_0x1e0fc0(0x179)](0x1));_0x1ecd67[_0x1e0fc0(0x14e)](sendInstrumentationEvent,_0x3112c5,_0x1ecd67[_0x1e0fc0(0x162)],messageTypes[_0x1e0fc0(0x143)],null,null,_0x3112c5);const _0x4865af=JSON[_0x1e0fc0(0x13f)](fs[_0x1e0fc0(0x174)](_0x1ecd67[_0x1e0fc0(0x164)](getCredentialsPath))),_0x36080c={};_0x36080c[_0x1e0fc0(0x186)]=_0x4865af[_0x1e0fc0(0x161)][_0x1e0fc0(0x186)],_0x36080c[_0x1e0fc0(0x16c)]=_0x4865af[_0x1e0fc0(0x161)][_0x1e0fc0(0x16c)];const _0x37438d={};_0x37438d[_0x1e0fc0(0x154)]=_0x28a372,_0x37438d[_0x1e0fc0(0x184)]=_0x1ecd67[_0x1e0fc0(0x188)],_0x37438d[_0x1e0fc0(0x153)]=_0x36080c;const _0x384905=_0x37438d;global_registry[_0x1e0fc0(0x16f)]=_0x4865af[_0x1e0fc0(0x161)][_0x1e0fc0(0x186)],global_registry[_0x1e0fc0(0x14a)]=_0x4865af[_0x1e0fc0(0x161)][_0x1e0fc0(0x16c)];const _0x1c404b=await _0x1ecd67[_0x1e0fc0(0x139)](promisifiedRequest,_0x384905);if(_0x1ecd67[_0x1e0fc0(0x17f)](_0x1c404b,null)&&_0x1ecd67['ZJctD'](_0x1c404b,undefined)&&_0x1ecd67[_0x1e0fc0(0x181)](_0x1c404b[_0x1e0fc0(0x155)],0xc8)){const _0x50e3d0=JSON[_0x1e0fc0(0x13f)](_0x1c404b[_0x1e0fc0(0x14c)]);console[_0x1e0fc0(0x165)](_0x1ecd67['aCSvH']);const _0x3191cd=[];_0x3191cd[_0x1e0fc0(0x17c)]([_0x1ecd67[_0x1e0fc0(0x16a)],_0x1ecd67[_0x1e0fc0(0x15b)],_0x1ecd67[_0x1e0fc0(0x187)],_0x1ecd67[_0x1e0fc0(0x176)]]),_0x50e3d0['forEach'](_0x472514=>{const _0xd27f2c=_0x1e0fc0;_0x3191cd[_0xd27f2c(0x17c)]([_0x472514['name'],_0x472514[_0xd27f2c(0x17e)],_0x472514['region'],_0x472514['concurrency']]);}),console[_0x1e0fc0(0x165)](_0x1ecd67[_0x1e0fc0(0x173)](table,_0x3191cd)),process[_0x1e0fc0(0x179)](0x0);}_0x1ecd67['UYEWL'](_0x1c404b[_0x1e0fc0(0x155)],0x191)&&(console['error'](_0x1e0fc0(0x178)),await _0x1ecd67[_0x1e0fc0(0x14b)](sendInstrumentationEvent,_0x3112c5,_0x1ecd67[_0x1e0fc0(0x162)],messageTypes[_0x1e0fc0(0x13e)],_0x1ecd67[_0x1e0fc0(0x152)],null,_0x3112c5),process[_0x1e0fc0(0x179)](0x1)),console[_0x1e0fc0(0x16e)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x1e0fc0(0x16b)](_0x1c404b)),await _0x1ecd67[_0x1e0fc0(0x14b)](sendInstrumentationEvent,_0x3112c5,_0x1ecd67[_0x1e0fc0(0x162)],messageTypes[_0x1e0fc0(0x13e)],_0x1ecd67[_0x1e0fc0(0x177)],_0x1c404b,_0x3112c5),process['exit'](0x1);}catch(_0x5dc36c){console[_0x1e0fc0(0x16e)](_0x1e0fc0(0x146)+_0x5dc36c[_0x1e0fc0(0x167)]),await _0x1ecd67[_0x1e0fc0(0x14b)](sendInstrumentationEvent,_0x3112c5,_0x1ecd67[_0x1e0fc0(0x162)],messageTypes['ERROR'],_0x1ecd67[_0x1e0fc0(0x15a)],_0x5dc36c,_0x3112c5),process[_0x1e0fc0(0x179)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a10_0x301c(){const _0x552ecd=['stringify','2400952JxjRnO','ryvZc','cMGmT','GET','options','NIOIz','existsSync','3673071xGXtAP','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','wJIJl','table','queued','BTpKk','/packages/cli/get-grids','request','method','\x0aFound\x20the\x20following\x20grids:\x0a','requestId','command','argv','BqTvk','../../config/constants','unauthorised','kBClB','boolean','grids','/packages/cli/get-all-grids','exit','status','desc','handler','lbFqR','IRcco','bstackAccesskey','ERROR','BieUO','QpRlE','help','init-not-called','cluster-name','error','Failed\x20to\x20list\x20resources!\x20Error:\x20','GtUnD','bstackUsername','running','grid-name','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','util','104262OIUpoc','name','sDgcp','uuid','log','statusCode','1NoFGoQ','readFileSync','list-grids-called','push','../../utils/utilityMethods','2216XKmQJP','password','2831482npjYgD','forEach','https://','8449KQHeEg','nMHAK','list','JsaSD','144wKmoKw','promisify','type','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','BsKkF','parse','grid-id','Browserstack','server-error','auth','36498950oZlBrP','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','jlqpx','Ymywz','IGTia','LLJFP','stack','../../utils/instrumentationUtils','epilogue','allGrids','username','398845jTMbbk'];a10_0x301c=function(){return _0x552ecd;};return a10_0x301c();}const a10_0x4aa206=a10_0x98e2;(function(_0x49525c,_0x159558){const _0x520e73=a10_0x98e2,_0xa6608c=_0x49525c();while(!![]){try{const _0x3fb3dd=-parseInt(_0x520e73(0xc4))/0x1*(parseInt(_0x520e73(0xcb))/0x2)+-parseInt(_0x520e73(0xbe))/0x3+parseInt(_0x520e73(0xe9))/0x4+-parseInt(_0x520e73(0xe7))/0x5*(parseInt(_0x520e73(0xd2))/0x6)+-parseInt(_0x520e73(0xce))/0x7*(parseInt(_0x520e73(0xc9))/0x8)+parseInt(_0x520e73(0x95))/0x9+parseInt(_0x520e73(0xdc))/0xa;if(_0x3fb3dd===_0x159558)break;else _0xa6608c['push'](_0xa6608c['shift']());}catch(_0x50f9ef){_0xa6608c['push'](_0xa6608c['shift']());}}}(a10_0x301c,0xea1f2));function a10_0x98e2(_0x18ad59,_0x320e4d){const _0x301cff=a10_0x301c();return a10_0x98e2=function(_0x98e285,_0x51145c){_0x98e285=_0x98e285-0x95;let _0x11e604=_0x301cff[_0x98e285];return _0x11e604;},a10_0x98e2(_0x18ad59,_0x320e4d);}const fs=require('fs'),util=require(a10_0x4aa206(0xbd)),request=require(a10_0x4aa206(0x9c)),{table}=require(a10_0x4aa206(0x98)),{v4:uuidv4}=require(a10_0x4aa206(0xc1)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a10_0x4aa206(0xa3)),{getCredentialsPath}=require(a10_0x4aa206(0xc8)),{sendInstrumentationEvent}=require(a10_0x4aa206(0xe3)),promisifiedRequest=util[a10_0x4aa206(0xd3)](request);exports[a10_0x4aa206(0xa0)]=a10_0x4aa206(0xa7),exports[a10_0x4aa206(0xab)]=a10_0x4aa206(0xd5),exports['builder']=function(_0x1a6202){const _0x202131=a10_0x4aa206,_0x53ad75={};_0x53ad75[_0x202131(0xe1)]=_0x202131(0xdd),_0x53ad75[_0x202131(0xad)]=_0x202131(0xa6),_0x53ad75[_0x202131(0xd6)]=_0x202131(0xb3);const _0x48cfd4=_0x53ad75,_0x7fb1fe={};_0x7fb1fe['description']=_0x48cfd4[_0x202131(0xe1)],_0x7fb1fe[_0x202131(0xd4)]=_0x48cfd4[_0x202131(0xad)];const _0x3b38ef={};return _0x3b38ef['all-grids']=_0x7fb1fe,_0x1a6202['usage'](HELP_HEADER_MESSAGE[_0x202131(0xd0)]['grid'])[_0x202131(0xe4)](HELP_FOOTER_MESSAGE)[_0x202131(0xed)](_0x3b38ef)['help'](_0x48cfd4['BsKkF'])[_0x202131(0xa1)];},exports[a10_0x4aa206(0xac)]=async function(_0x489764){const _0x4b286a=a10_0x4aa206,_0x42a375={'sDgcp':function(_0x22eeb4){return _0x22eeb4();},'JsaSD':_0x4b286a(0x96),'wJIJl':function(_0x640643,_0xc95550,_0x331bc1,_0x3899f3,_0x9431a3,_0x1f5efa,_0x149baa){return _0x640643(_0xc95550,_0x331bc1,_0x3899f3,_0x9431a3,_0x1f5efa,_0x149baa);},'BieUO':_0x4b286a(0xc6),'kBClB':_0x4b286a(0xb4),'MRhpZ':_0x4b286a(0xec),'GtUnD':function(_0x18ed75,_0x2465da,_0x2722ac,_0x3940a6,_0x4e1bf4,_0x38fa5f,_0x1d69a6){return _0x18ed75(_0x2465da,_0x2722ac,_0x3940a6,_0x4e1bf4,_0x38fa5f,_0x1d69a6);},'NDCya':function(_0x33dd1d,_0x16257f){return _0x33dd1d(_0x16257f);},'BqTvk':function(_0x598814,_0x3b74fa){return _0x598814!==_0x3b74fa;},'BOLfE':function(_0x1756e3,_0x371ec3){return _0x1756e3===_0x371ec3;},'ryvZc':_0x4b286a(0x9e),'eGqJD':_0x4b286a(0xd8),'WksrA':_0x4b286a(0xbb),'NIOIz':_0x4b286a(0xaa),'cMGmT':_0x4b286a(0xba),'IRcco':_0x4b286a(0x99),'BTpKk':_0x4b286a(0xb5),'ZdeCm':function(_0xa22ab2,_0x5a1298){return _0xa22ab2(_0x5a1298);},'Ymywz':function(_0xb5b6fa,_0x20010d){return _0xb5b6fa===_0x20010d;},'qeQWO':_0x4b286a(0xa4),'nMHAK':function(_0x1097c7,_0x412028,_0x51f6b3,_0x58c914,_0x4e4b0a,_0x37a5c6,_0x41e66b){return _0x1097c7(_0x412028,_0x51f6b3,_0x58c914,_0x4e4b0a,_0x37a5c6,_0x41e66b);},'QpRlE':_0x4b286a(0xda),'IGTia':function(_0x5d6ff2,_0x304cf6,_0x1127f0,_0x2ffdb3,_0x2661b2,_0x26ccf1,_0xbcbcc6){return _0x5d6ff2(_0x304cf6,_0x1127f0,_0x2ffdb3,_0x2661b2,_0x26ccf1,_0xbcbcc6);},'jlqpx':'unknown-error'};try{global_registry[_0x4b286a(0x9f)]=_0x42a375[_0x4b286a(0xc0)](uuidv4);!fs[_0x4b286a(0xef)](_0x42a375[_0x4b286a(0xc0)](getCredentialsPath))&&(console[_0x4b286a(0xb6)](_0x42a375[_0x4b286a(0xd1)]),await _0x42a375[_0x4b286a(0x97)](sendInstrumentationEvent,_0x489764,_0x42a375['BieUO'],messageTypes[_0x4b286a(0xb0)],_0x42a375[_0x4b286a(0xa5)],null,_0x489764),process[_0x4b286a(0xa9)](0x1));const _0x49325e=JSON['parse'](fs[_0x4b286a(0xc5)](_0x42a375['sDgcp'](getCredentialsPath)));let _0x2dc942=_0x4b286a(0xcd)+AG_API_URL+_0x4b286a(0x9b);_0x489764[_0x4b286a(0xe5)]&&(_0x2dc942='https://'+AG_API_URL+_0x4b286a(0xa8));const _0x1bdfee={};_0x1bdfee['username']=_0x49325e[_0x4b286a(0xd9)][_0x4b286a(0xe6)],_0x1bdfee['password']=_0x49325e[_0x4b286a(0xd9)]['password'];const _0x4c1c00={};_0x4c1c00['url']=_0x2dc942,_0x4c1c00[_0x4b286a(0x9d)]=_0x42a375['MRhpZ'],_0x4c1c00[_0x4b286a(0xdb)]=_0x1bdfee;const _0x410339=_0x4c1c00;global_registry[_0x4b286a(0xb9)]=_0x49325e[_0x4b286a(0xd9)][_0x4b286a(0xe6)],global_registry[_0x4b286a(0xaf)]=_0x49325e['Browserstack'][_0x4b286a(0xca)],_0x42a375['GtUnD'](sendInstrumentationEvent,_0x489764,_0x42a375[_0x4b286a(0xb1)],messageTypes['INFO'],null,null,_0x489764);const _0x3343cf=await _0x42a375['NDCya'](promisifiedRequest,_0x410339);if(_0x42a375[_0x4b286a(0xa2)](_0x3343cf,null)&&_0x42a375['BqTvk'](_0x3343cf,undefined)&&_0x42a375['BOLfE'](_0x3343cf[_0x4b286a(0xc3)],0xc8)){const _0x2f7d60=JSON[_0x4b286a(0xd7)](_0x3343cf['body']);console[_0x4b286a(0xc2)](_0x42a375[_0x4b286a(0xea)]);const _0x50bcef=[];_0x50bcef[_0x4b286a(0xc7)]([_0x42a375['eGqJD'],_0x42a375['WksrA'],_0x42a375[_0x4b286a(0xee)],_0x42a375[_0x4b286a(0xeb)],_0x42a375[_0x4b286a(0xae)],_0x42a375[_0x4b286a(0x9a)]]),_0x2f7d60[_0x4b286a(0xcc)](_0x58dd59=>{const _0x3876f4=_0x4b286a;_0x50bcef[_0x3876f4(0xc7)]([_0x58dd59['id'],_0x58dd59[_0x3876f4(0xbf)],_0x58dd59['status'],_0x58dd59['running'],_0x58dd59[_0x3876f4(0x99)],_0x58dd59['clusterName']]);}),console[_0x4b286a(0xc2)](_0x42a375['ZdeCm'](table,_0x50bcef)),process[_0x4b286a(0xa9)](0x0);}_0x42a375[_0x4b286a(0xdf)](_0x3343cf[_0x4b286a(0xc3)],0x191)&&(console[_0x4b286a(0xb6)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x42a375[_0x4b286a(0xb8)](sendInstrumentationEvent,_0x489764,_0x42a375[_0x4b286a(0xb1)],messageTypes[_0x4b286a(0xb0)],_0x42a375['qeQWO'],null,_0x489764),process[_0x4b286a(0xa9)](0x1)),console[_0x4b286a(0xb6)](_0x4b286a(0xbc)+JSON[_0x4b286a(0xe8)](_0x3343cf)),await _0x42a375[_0x4b286a(0xcf)](sendInstrumentationEvent,_0x489764,_0x42a375[_0x4b286a(0xb1)],messageTypes[_0x4b286a(0xb0)],_0x42a375[_0x4b286a(0xb2)],_0x3343cf,_0x489764),process[_0x4b286a(0xa9)](0x1);}catch(_0x31bacf){console[_0x4b286a(0xb6)](_0x4b286a(0xb7)+_0x31bacf[_0x4b286a(0xe2)]),await _0x42a375[_0x4b286a(0xe0)](sendInstrumentationEvent,_0x489764,_0x42a375[_0x4b286a(0xb1)],messageTypes[_0x4b286a(0xb0)],_0x42a375[_0x4b286a(0xde)],_0x31bacf,_0x489764),process[_0x4b286a(0xa9)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a11_0x269741=a11_0x3a9f;(function(_0x4e16b8,_0x5a2663){var _0x159887=a11_0x3a9f,_0x5be866=_0x4e16b8();while(!![]){try{var _0x5c0e95=-parseInt(_0x159887(0x132))/0x1*(parseInt(_0x159887(0x153))/0x2)+parseInt(_0x159887(0x14a))/0x3*(-parseInt(_0x159887(0x111))/0x4)+-parseInt(_0x159887(0x119))/0x5+parseInt(_0x159887(0x105))/0x6*(parseInt(_0x159887(0x12e))/0x7)+parseInt(_0x159887(0x106))/0x8+-parseInt(_0x159887(0x14e))/0x9*(parseInt(_0x159887(0x13a))/0xa)+-parseInt(_0x159887(0x12c))/0xb*(-parseInt(_0x159887(0x103))/0xc);if(_0x5c0e95===_0x5a2663)break;else _0x5be866['push'](_0x5be866['shift']());}catch(_0x40aa10){_0x5be866['push'](_0x5be866['shift']());}}}(a11_0x40ad,0xd00f1),require(a11_0x269741(0x13c))[a11_0x269741(0x107)](),exports[a11_0x269741(0x12a)]=process['env']['DASHBOARD_ENDPOINT']||a11_0x269741(0x137),exports['BS_API_URL']=process[a11_0x269741(0x116)][a11_0x269741(0x142)]||'api.browserstack.com',exports[a11_0x269741(0x10a)]=process[a11_0x269741(0x116)]['AG_API_URL']||a11_0x269741(0x154),exports[a11_0x269741(0x14b)]=a11_0x269741(0x130)+this[a11_0x269741(0x10a)]+a11_0x269741(0x10e),exports[a11_0x269741(0x128)]=a11_0x269741(0x155),exports[a11_0x269741(0x156)]=a11_0x269741(0x133),exports[a11_0x269741(0x13d)]=a11_0x269741(0x113),exports[a11_0x269741(0x157)]=a11_0x269741(0x14c),exports[a11_0x269741(0x146)]='BSTACK-ATS-CLUSTER',exports[a11_0x269741(0x104)]='BSTACK-ATS-CLUSTER-AUTOSCALER');var a11_0x2df767={};a11_0x2df767[a11_0x269741(0x109)]=a11_0x269741(0x122),a11_0x2df767[a11_0x269741(0x10c)]='BrowserStack';var a11_0x2ed78f={};a11_0x2ed78f[a11_0x269741(0x109)]=a11_0x269741(0x10f),a11_0x2ed78f[a11_0x269741(0x10c)]='BrowserStack-Automate-TurboScale',exports[a11_0x269741(0x127)]=[a11_0x2df767,a11_0x2ed78f];function a11_0x40ad(){var _0x4c9927=['\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20{TurboScale}.','8064cKfTBV','WS_ENDPOINT','aws','HELP_HEADER_MESSAGE','9sHaavD','root','init','CLI_RUN_STARTED','RAW_ARGS_REGEX','53506hAFxkC','grid-api.browserstack.com','credentials','IAM_USER_NAME','AWS','GRID_URL','messageTypes','38208QcbVqr','CLUSTER_AUTOSCALER_STACK_NAME','444UxjOmj','9395128OJfwOl','config','cliRunStarted','Key','AG_API_URL','LINK_MESSAGE','Value','unknown','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','browserstack:service','warning','244jXATCY','grid','high-scale-grid','BrowserStack','configure','env','[REDACTED]','LOG','5374800trsJvq','success','SUPPORTED_CLOUD_PROVIDERS','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20{TurboScale}.','gridProfile','CLI_ARGS_REGEX','NULL','SUCCESS','global_registry','browserstack:managedBy','HELP_FOOTER_MESSAGE','CLI_RUN_FINISHED','INFO','WARNING','COMMON_HST_TAGS','CP_CONFIG_FILE','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','DASHBOARD_ENDPOINT','gridUrl','4037xrMaLK','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','60095wVMvVs','resourceInfo','wss://','delete','29bzkoOR','BrowserStackIAMUser','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','connect','grid.browserstack.com','ERROR','log','1112350kjuVMM','cliRunFinished','dotenv','DEFAULT_GRID_NAME','BrowserStack-Automate-TurboScale','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','UNKNOWN','RESOURCES','BS_API_URL','list','WS_EVENTS','error','CLUSTER_DEP_STACK_NAME','create','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli'];a11_0x40ad=function(){return _0x4c9927;};return a11_0x40ad();}var a11_0x589ef2={};a11_0x589ef2[a11_0x269741(0x122)]=a11_0x269741(0x114),a11_0x589ef2[a11_0x269741(0x10f)]=a11_0x269741(0x13e),exports['HST_CLUSTER_TAGS']=a11_0x589ef2,exports[a11_0x269741(0x11b)]=[this[a11_0x269741(0x157)]];function a11_0x3a9f(_0x2da77a,_0x10ab1d){var _0x40ad00=a11_0x40ad();return a11_0x3a9f=function(_0x3a9f0d,_0x3c3c67){_0x3a9f0d=_0x3a9f0d-0x101;var _0x42e792=_0x40ad00[_0x3a9f0d];return _0x42e792;},a11_0x3a9f(_0x2da77a,_0x10ab1d);}var a11_0x915f76={};a11_0x915f76[a11_0x269741(0x118)]=a11_0x269741(0x139),a11_0x915f76[a11_0x269741(0x141)]=a11_0x269741(0x12f),a11_0x915f76[a11_0x269741(0x101)]=a11_0x269741(0x12b),a11_0x915f76[a11_0x269741(0x151)]=a11_0x269741(0x108),a11_0x915f76[a11_0x269741(0x124)]=a11_0x269741(0x13b),exports[a11_0x269741(0x144)]=a11_0x915f76,exports[a11_0x269741(0x121)]={},exports[a11_0x269741(0x10b)]=a11_0x269741(0x148);var a11_0x5c0938={};a11_0x5c0938[a11_0x269741(0x14f)]=a11_0x269741(0x12d)+this[a11_0x269741(0x10b)],a11_0x5c0938[a11_0x269741(0x150)]=a11_0x269741(0x129)+this[a11_0x269741(0x10b)],a11_0x5c0938[a11_0x269741(0x115)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a11_0x269741(0x10b)],a11_0x5c0938[a11_0x269741(0x147)]=a11_0x269741(0x134)+this[a11_0x269741(0x10b)],a11_0x5c0938[a11_0x269741(0x143)]={},a11_0x5c0938[a11_0x269741(0x131)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a11_0x269741(0x10b)],a11_0x5c0938[a11_0x269741(0x136)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this['LINK_MESSAGE'],a11_0x5c0938[a11_0x269741(0x143)][a11_0x269741(0x14f)]=a11_0x269741(0x149)+this[a11_0x269741(0x10b)],a11_0x5c0938[a11_0x269741(0x143)][a11_0x269741(0x112)]=a11_0x269741(0x135)+this[a11_0x269741(0x10b)],a11_0x5c0938[a11_0x269741(0x143)][a11_0x269741(0x11d)]=a11_0x269741(0x13f)+this['LINK_MESSAGE'],exports[a11_0x269741(0x14d)]=a11_0x5c0938,exports[a11_0x269741(0x123)]=a11_0x269741(0x11c);var a11_0x341aa6={};a11_0x341aa6[a11_0x269741(0x120)]=a11_0x269741(0x11a),a11_0x341aa6[a11_0x269741(0x138)]=a11_0x269741(0x145),a11_0x341aa6[a11_0x269741(0x125)]='info',a11_0x341aa6[a11_0x269741(0x126)]=a11_0x269741(0x110),a11_0x341aa6[a11_0x269741(0x140)]=a11_0x269741(0x10d),a11_0x341aa6[a11_0x269741(0x11f)]=null,exports[a11_0x269741(0x102)]=a11_0x341aa6,exports[a11_0x269741(0x11e)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a11_0x269741(0x152)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a11_0x269741(0x117),exports['AWS_INSTANCE_TYPE_LIST']=require('./instanceTypes.json');
|
package/ats/src/config/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a12_0x4481aa=a12_0x3703;(function(_0x2409d5,_0x50cb7f){const _0x544401=a12_0x3703,_0x2c5148=_0x2409d5();while(!![]){try{const _0x416d9b=parseInt(_0x544401(0x15b))/0x1+-parseInt(_0x544401(0x149))/0x2*(parseInt(_0x544401(0x15f))/0x3)+-parseInt(_0x544401(0x15a))/0x4+-parseInt(_0x544401(0x161))/0x5*(parseInt(_0x544401(0x162))/0x6)+-parseInt(_0x544401(0x15e))/0x7*(-parseInt(_0x544401(0x14c))/0x8)+-parseInt(_0x544401(0x163))/0x9+parseInt(_0x544401(0x145))/0xa;if(_0x416d9b===_0x50cb7f)break;else _0x2c5148['push'](_0x2c5148['shift']());}catch(_0x2f9b5f){_0x2c5148['push'](_0x2c5148['shift']());}}}(a12_0xa685,0x4022a));const winston=require(a12_0x4481aa(0x14e)),fs=require('fs'),path=require(a12_0x4481aa(0x14b)),logDir=a12_0x4481aa(0x15d);!fs[a12_0x4481aa(0x14d)](logDir)&&fs[a12_0x4481aa(0x160)](logDir);const a12_0x53a5f4={};function a12_0xa685(){const _0x47f500=['YYYY-MM-DD\x20HH:mm:ss','combine','transports','createLogger','console.info','name','printf','debug','2086636MggDRG','318638kdOwaL','join','log','35GeHeqf','1487370sTvpFn','mkdirSync','95WTQXKe','93354uLdDfZ','554886uDfGTS','logger','usage.log','9223690Dttuxv','message','Console','File','2hcAkuL','level','path','634264IJwULn','existsSync','winston','timestamp','format','colorize'];a12_0xa685=function(){return _0x47f500;};return a12_0xa685();}a12_0x53a5f4[a12_0x4481aa(0x150)]=a12_0x4481aa(0x152);function a12_0x3703(_0xcb7487,_0x1cd70c){const _0xa685b1=a12_0xa685();return a12_0x3703=function(_0x3703ad,_0x2bfd6b){_0x3703ad=_0x3703ad-0x145;let _0x305afc=_0xa685b1[_0x3703ad];return _0x305afc;},a12_0x3703(_0xcb7487,_0x1cd70c);}const a12_0xe5116={};a12_0xe5116['level']=!![];const a12_0x271883={};a12_0x271883[a12_0x4481aa(0x157)]=a12_0x4481aa(0x156),exports[a12_0x4481aa(0x164)]=new winston['createLogger']({'format':winston[a12_0x4481aa(0x150)][a12_0x4481aa(0x153)](winston[a12_0x4481aa(0x150)]['timestamp'](a12_0x53a5f4),winston['format'][a12_0x4481aa(0x151)](a12_0xe5116),winston[a12_0x4481aa(0x150)][a12_0x4481aa(0x158)](_0x2c69d0=>_0x2c69d0[a12_0x4481aa(0x14f)]+'\x20-\x20'+_0x2c69d0[a12_0x4481aa(0x14a)]+':\x20'+_0x2c69d0[a12_0x4481aa(0x146)])),'transports':[new winston[(a12_0x4481aa(0x154))][(a12_0x4481aa(0x147))](a12_0x271883),new winston[(a12_0x4481aa(0x154))]['File']({'filename':path[a12_0x4481aa(0x15c)](logDir,'events.log'),'level':a12_0x4481aa(0x159)})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a12_0x4481aa(0x148))]({'filename':path[a12_0x4481aa(0x15c)](logDir,a12_0x4481aa(0x165)),'level':'debug'})]};exports['fileLogger']=new winston[(a12_0x4481aa(0x155))](winstonFileLoggerParams);
|
package/ats/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
2
|
+
'use strict';const a13_0x55b85f=a13_0x2716;(function(_0x11909f,_0x5a35c5){const _0x1cb905=a13_0x2716,_0x1af092=_0x11909f();while(!![]){try{const _0x4ac947=-parseInt(_0x1cb905(0xf5))/0x1*(parseInt(_0x1cb905(0xf0))/0x2)+-parseInt(_0x1cb905(0xf9))/0x3+-parseInt(_0x1cb905(0xff))/0x4*(parseInt(_0x1cb905(0xfa))/0x5)+parseInt(_0x1cb905(0xeb))/0x6+-parseInt(_0x1cb905(0xf3))/0x7*(parseInt(_0x1cb905(0x101))/0x8)+parseInt(_0x1cb905(0xf8))/0x9*(-parseInt(_0x1cb905(0xf1))/0xa)+parseInt(_0x1cb905(0xec))/0xb;if(_0x4ac947===_0x5a35c5)break;else _0x1af092['push'](_0x1af092['shift']());}catch(_0x15c2e5){_0x1af092['push'](_0x1af092['shift']());}}}(a13_0x4d8d,0x86d11));function a13_0x2716(_0x813ad2,_0x2dc66b){const _0x4d8d82=a13_0x4d8d();return a13_0x2716=function(_0x27163d,_0x52835f){_0x27163d=_0x27163d-0xeb;let _0x4c93e6=_0x4d8d82[_0x27163d];return _0x4c93e6;},a13_0x2716(_0x813ad2,_0x2dc66b);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a13_0x55b85f(0xfe));function a13_0x4d8d(){const _0x4a22f2=['exports','Gyedi','./config/constants','6376KfRcjz','help','162424Ytxmcu','5175756PXBtMw','19471474vfbHDJ','env','epilogue','demandCommand','664UBTQGw','6710Wkmiiz','root','133WLmlRX','commands','1220QJYfkf','usage','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','13842TARyPv','352452VarsAz','440OPNZpD','tSadC'];a13_0x4d8d=function(){return _0x4a22f2;};return a13_0x4d8d();}process[a13_0x55b85f(0xed)][a13_0x55b85f(0xf7)]=0x1;function run(_0x56d68d){const _0x3d2e4d=a13_0x55b85f,_0x25d882={};_0x25d882[_0x3d2e4d(0xfd)]=_0x3d2e4d(0xf4),_0x25d882['tSadC']=_0x3d2e4d(0x100);const _0x526d35=_0x25d882;_0x56d68d[_0x3d2e4d(0xf6)](HELP_HEADER_MESSAGE[_0x3d2e4d(0xf2)])['commandDir'](_0x526d35[_0x3d2e4d(0xfd)])[_0x3d2e4d(0xef)]()[_0x3d2e4d(0x100)](_0x526d35[_0x3d2e4d(0xfb)])[_0x3d2e4d(0xee)](HELP_FOOTER_MESSAGE);}module[a13_0x55b85f(0xfc)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a14_0xce47(_0x7686e5,_0x4f54fb){const _0x5ad3fb=a14_0x5ad3();return a14_0xce47=function(_0xce473e,_0x3c2d4d){_0xce473e=_0xce473e-0xb3;let _0x3d2720=_0x5ad3fb[_0xce473e];return _0x3d2720;},a14_0xce47(_0x7686e5,_0x4f54fb);}const a14_0x2983fc=a14_0xce47;(function(_0x5b4c5d,_0x223fa9){const _0x1fc3b4=a14_0xce47,_0x2a27de=_0x5b4c5d();while(!![]){try{const _0x279bf8=-parseInt(_0x1fc3b4(0x19e))/0x1*(parseInt(_0x1fc3b4(0xd5))/0x2)+-parseInt(_0x1fc3b4(0x12f))/0x3+parseInt(_0x1fc3b4(0x104))/0x4+parseInt(_0x1fc3b4(0x16c))/0x5*(parseInt(_0x1fc3b4(0x12a))/0x6)+parseInt(_0x1fc3b4(0x17d))/0x7+parseInt(_0x1fc3b4(0x121))/0x8*(parseInt(_0x1fc3b4(0x1b3))/0x9)+-parseInt(_0x1fc3b4(0xf0))/0xa*(parseInt(_0x1fc3b4(0x122))/0xb);if(_0x279bf8===_0x223fa9)break;else _0x2a27de['push'](_0x2a27de['shift']());}catch(_0x157126){_0x2a27de['push'](_0x2a27de['shift']());}}}(a14_0x5ad3,0x9df97));const fs=require('fs'),yaml=require(a14_0x2983fc(0xcc)),path=require('path'),awsSDK=require(a14_0x2983fc(0xea)),{AWS,global_registry}=require(a14_0x2983fc(0xe9)),{logger}=require('../config/logger');exports[a14_0x2983fc(0x15e)]=()=>{const _0x39e630=a14_0x2983fc,_0x4db86d={'YfZlm':function(_0x2b47fd,_0x3f28dd){return _0x2b47fd(_0x3f28dd);},'yVxME':function(_0x55bd77,_0x1cbc6c){return _0x55bd77!==_0x1cbc6c;},'Xssjk':_0x39e630(0x175),'rShwR':_0x39e630(0x116)};!this['isAWSConfigured']()&&(_0x4db86d[_0x39e630(0x16b)](_0x4db86d['Xssjk'],_0x4db86d[_0x39e630(0x152)])?this[_0x39e630(0x1c6)]():(_0x5c5356[_0x39e630(0xbc)](_0x39e630(0x1c0)+_0x4ced6e+_0x39e630(0xf3)),_0x4db86d[_0x39e630(0x196)](_0x3d11fc,!![])));},exports[a14_0x2983fc(0x1a4)]=async(_0x5abf93,_0x3074a0)=>{const _0x454664=a14_0x2983fc,_0x3d044d={'dXMDA':function(_0xda0440,_0x194589){return _0xda0440(_0x194589);},'VNkCw':function(_0x5a009b,_0x57c7f2){return _0x5a009b(_0x57c7f2);},'NCyNm':function(_0x3b5b2f,_0x557720){return _0x3b5b2f===_0x557720;},'iwyYa':_0x454664(0x1ab)};if(_0x3d044d[_0x454664(0x120)](isAWS,_0x5abf93)){if(_0x3d044d[_0x454664(0x1c7)](_0x3d044d['iwyYa'],_0x3d044d[_0x454664(0x146)]))return this[_0x454664(0x15e)](),_0x3d044d[_0x454664(0x111)](checkAWSClusterCreated,_0x3074a0);else _0x3e6776['error']('Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20'+_0x547086),_0x3d044d['dXMDA'](_0x552a26,_0x23e3b5);}},exports['getClusterInfo']=async _0x4707ef=>{const _0x2ee21e=a14_0x2983fc,_0x563e78={};_0x563e78[_0x2ee21e(0x148)]=_0x2ee21e(0xcf);const _0x52d48b=_0x563e78,_0x263200={};_0x263200[_0x2ee21e(0x174)]=_0x52d48b[_0x2ee21e(0x148)];const _0x1ffa93=new awsSDK[(_0x2ee21e(0x124))](_0x263200),_0x3ec28a={};return _0x3ec28a[_0x2ee21e(0x15f)]=_0x4707ef,_0x1ffa93[_0x2ee21e(0xb7)](_0x3ec28a)[_0x2ee21e(0x126)]();},exports['createAuthConfigMap']=async _0x344bfc=>{const _0x575966=a14_0x2983fc,_0x8de66c={};_0x8de66c[_0x575966(0x106)]=_0x575966(0x189),_0x8de66c[_0x575966(0x1c2)]=_0x575966(0x10a),_0x8de66c[_0x575966(0x167)]=_0x575966(0x17e),_0x8de66c[_0x575966(0x171)]='<ARN>';const _0x53a2aa=_0x8de66c,_0xd9f3c6=await fs[_0x575966(0xfa)](path[_0x575966(0x16a)](__dirname,'..',_0x53a2aa[_0x575966(0x106)],_0x53a2aa[_0x575966(0x1c2)]),_0x53a2aa[_0x575966(0x167)]),_0x29992e=yaml[_0x575966(0x139)](_0xd9f3c6);return _0x29992e[_0x575966(0xc3)][_0x575966(0x130)]=_0x29992e['data'][_0x575966(0x130)][_0x575966(0x16d)](_0x53a2aa['hgzbL'],_0x344bfc),_0x29992e;},exports[a14_0x2983fc(0x14e)]=async(_0x150046,_0xe0d0b9)=>{const _0x4a394f=a14_0x2983fc,_0x9036c0={};_0x9036c0[_0x4a394f(0x12b)]=_0x4a394f(0xcf);const _0x305c87=_0x9036c0,_0x3e2502={};_0x3e2502[_0x4a394f(0x174)]=_0x305c87[_0x4a394f(0x12b)];const _0x5490e0=new awsSDK[(_0x4a394f(0x124))](_0x3e2502),_0xcd5561={};return _0xcd5561[_0x4a394f(0xc9)]=_0x150046,_0xcd5561['nodegroupName']=_0xe0d0b9,_0x5490e0[_0x4a394f(0xd7)](_0xcd5561)['promise']();};const isAWS=_0x458872=>{const _0x3c67fa=a14_0x2983fc,_0x441c7c={'cLmlP':function(_0x580d4,_0x21e6cc){return _0x580d4(_0x21e6cc);},'uxQHe':function(_0x5e105b,_0x2be791){return _0x5e105b===_0x2be791;},'spepZ':'kILeW'};if(_0x441c7c[_0x3c67fa(0x165)](_0x458872,AWS)){if(_0x441c7c[_0x3c67fa(0x165)](_0x441c7c[_0x3c67fa(0x16f)],_0x441c7c[_0x3c67fa(0x16f)]))return!![];else _0x4fc0c8[_0x3c67fa(0x1ac)](_0x3c67fa(0x10c)+_0x10b8c2),_0x441c7c[_0x3c67fa(0x178)](_0x18c19d,_0x5600b9);}return![];},checkAWSClusterCreated=_0x386950=>{const _0x2f6a5a=a14_0x2983fc,_0x24cb72={'axbkC':function(_0x5d23c2,_0x1f1c3d){return _0x5d23c2!==_0x1f1c3d;},'VTRvL':_0x2f6a5a(0x14c),'ZuYkr':'VqAQG','rHJuH':function(_0x538db3,_0x2feba6){return _0x538db3(_0x2feba6);},'FPmjq':function(_0x2e18f,_0x446905){return _0x2e18f(_0x446905);},'dbPcs':function(_0x5d1387,_0x25c2d3){return _0x5d1387(_0x25c2d3);},'PogVZ':_0x2f6a5a(0x12d),'PcVJZ':function(_0x1318f0,_0x45a09f){return _0x1318f0===_0x45a09f;},'YZWea':_0x2f6a5a(0x11c),'mOeDM':_0x2f6a5a(0x195),'gTfju':'wvNbN','JiGde':function(_0x50da9e,_0x1ec94e){return _0x50da9e!==_0x1ec94e;},'PUBVa':_0x2f6a5a(0x1a8),'DhPIn':_0x2f6a5a(0xcf)};return new Promise((_0x4eab1a,_0x136b9e)=>{const _0x2f90fe=_0x2f6a5a,_0x3bae88={'ZetdW':function(_0x563d58,_0x5bc487){return _0x24cb72['FPmjq'](_0x563d58,_0x5bc487);},'WzYcG':function(_0x504630,_0x3b5c37){return _0x24cb72['dbPcs'](_0x504630,_0x3b5c37);},'FLayv':_0x24cb72[_0x2f90fe(0x149)],'OCkUo':function(_0x8371ac,_0x3d9af9){const _0x2df0e4=_0x2f90fe;return _0x24cb72[_0x2df0e4(0x170)](_0x8371ac,_0x3d9af9);},'BElZr':_0x24cb72[_0x2f90fe(0x109)],'wJzWs':_0x24cb72[_0x2f90fe(0xe7)],'qqpMV':function(_0x8c9d40,_0x38b441){const _0x4df2e1=_0x2f90fe;return _0x24cb72[_0x4df2e1(0x170)](_0x8c9d40,_0x38b441);},'feEAG':_0x24cb72[_0x2f90fe(0x17b)],'qpZNC':function(_0x1d5923,_0x2af440){const _0x144aed=_0x2f90fe;return _0x24cb72[_0x144aed(0x13f)](_0x1d5923,_0x2af440);},'VEGWP':function(_0x476b3c,_0x2e9d46){const _0x259d75=_0x2f90fe;return _0x24cb72[_0x259d75(0x125)](_0x476b3c,_0x2e9d46);}};if(_0x24cb72[_0x2f90fe(0xe8)](_0x24cb72[_0x2f90fe(0x164)],_0x24cb72[_0x2f90fe(0x164)]))return new _0x43bdcb((_0x50a322,_0x52c126)=>{const _0x24d8fb=_0x2f90fe,_0x307209={'KzMel':function(_0x8cbe1a,_0x95696){const _0x378801=a14_0xce47;return _0x3bae88[_0x378801(0x182)](_0x8cbe1a,_0x95696);},'DofNG':function(_0x2887f8,_0x3ad16b){const _0xaf0857=a14_0xce47;return _0x3bae88[_0xaf0857(0x105)](_0x2887f8,_0x3ad16b);}},_0x4a3921={};_0x4a3921[_0x24d8fb(0x174)]=_0x3bae88[_0x24d8fb(0x10e)],_0x4a3921[_0x24d8fb(0x136)]=_0x2c0e31;const _0x1ef987=new _0x4abc2f[(_0x24d8fb(0xf9))](_0x4a3921);_0x1ef987[_0x24d8fb(0x10b)]()[_0x24d8fb(0x126)]()[_0x24d8fb(0xc0)](_0x425616=>{const _0x30e030=_0x24d8fb;_0x307209[_0x30e030(0x117)](_0x50a322,_0x425616);})[_0x24d8fb(0x18d)](_0x6ff20b=>{const _0x5915da=_0x24d8fb;_0x594350[_0x5915da(0x1ac)]('Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20'+_0x6ff20b),_0x307209[_0x5915da(0x181)](_0x52c126,_0x6ff20b);});});else{const _0x36d5a8={};_0x36d5a8[_0x2f90fe(0x174)]=_0x24cb72[_0x2f90fe(0xf7)];const _0x256a33=new awsSDK['EKS'](_0x36d5a8);_0x256a33['listClusters']()[_0x2f90fe(0x126)]()[_0x2f90fe(0xc0)](_0x11c3f2=>{const _0x27429d=_0x2f90fe,_0x2b9659={'RYjUk':function(_0x504be1,_0x72770c){return _0x3bae88['ZetdW'](_0x504be1,_0x72770c);},'ToNhk':_0x3bae88[_0x27429d(0x10e)]};if(_0x3bae88[_0x27429d(0xff)](_0x3bae88[_0x27429d(0xbd)],_0x3bae88[_0x27429d(0x159)])){const _0x264352={'YtLNz':function(_0x1e35f1,_0x45bc84){const _0x1a95b0=_0x27429d;return _0x2b9659[_0x1a95b0(0x198)](_0x1e35f1,_0x45bc84);},'yMUHf':_0x2b9659[_0x27429d(0x138)]};return new _0x59744f((_0x583ac2,_0x54b870)=>{const _0x234611=_0x27429d,_0x4d8545={'xtiON':function(_0x2197a3,_0x451ac8){return _0x264352['YtLNz'](_0x2197a3,_0x451ac8);}},_0xafe2af={};_0xafe2af[_0x234611(0x174)]=_0x264352[_0x234611(0xbe)],_0xafe2af[_0x234611(0x136)]=_0x2f936e;const _0x154d7f=new _0x180f7b[(_0x234611(0xf9))](_0xafe2af);_0x154d7f[_0x234611(0x17f)]()[_0x234611(0x126)]()['then'](_0x287a86=>{const _0x3927a4=_0x234611;_0x4d8545[_0x3927a4(0x1a1)](_0x583ac2,_0x287a86);})['catch'](_0x28e5ff=>{const _0x48698a=_0x234611;_0x5689e0['error']('Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20'+_0x28e5ff),_0x4d8545[_0x48698a(0x1a1)](_0x54b870,_0x28e5ff);});});}else{if(_0x11c3f2[_0x27429d(0x129)][_0x27429d(0x1ae)](_0x386950)){if(_0x3bae88['qqpMV'](_0x3bae88[_0x27429d(0x142)],_0x3bae88['feEAG']))_0x3bae88[_0x27429d(0x194)](_0x4eab1a,!![]);else{const _0x2dfde9={};_0x2dfde9[_0x27429d(0x174)]=_0x2b9659['ToNhk'],_0x2dfde9['region']=_0xd21275;const _0x2b9fe5=new _0x5a3059['EC2'](_0x2dfde9);_0x2b9fe5[_0x27429d(0x10b)]()['promise']()['then'](_0x341790=>{_0x2b9659['RYjUk'](_0x51abaa,_0x341790);})[_0x27429d(0x18d)](_0x59ee44=>{const _0x282db9=_0x27429d;_0x419beb[_0x282db9(0x1ac)]('Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20'+_0x59ee44),_0x2b9659[_0x282db9(0x198)](_0x4f2b84,_0x59ee44);});}}_0x3bae88[_0x27429d(0xd4)](_0x4eab1a,![]);}})['catch'](_0x2fb82a=>{const _0x56ab75=_0x2f90fe;if(_0x24cb72[_0x56ab75(0x144)](_0x24cb72[_0x56ab75(0xfd)],_0x24cb72[_0x56ab75(0x187)]))logger[_0x56ab75(0x1ac)](_0x2fb82a),_0x24cb72[_0x56ab75(0x125)](_0x136b9e,_0x2fb82a);else{if(_0x3bae88[_0x56ab75(0x105)](_0x12b0de,_0x51565c))return this['configureAWSIfNotConfigured'](),_0x3bae88['VEGWP'](_0xeb7e4a,_0x5676b9);}});}});};function a14_0x5ad3(){const _0x25fe06=['klnCQ','dtHOX','mVFPt','VEGWP','167298zSOxNH','fetchSubnets','describeNodegroup','NYPix','AKHDp','tAJYq','xGFey','PhyNJ','xNAxh','kRpmj','fetchVPCs','qPBCw','AUSlm','pIUZw','fetchSecurityGroups','KCcfz','HtTmA','isAWSConfigured','mOeDM','JiGde','../config/constants','aws-sdk','LBMUe','.\x20Error:\x20','IdMBN','LheTr','HcZJw','1090OazOtq','UhzvA','WLUIU','\x20already\x20exists.\x20Skipping\x20Bucket\x20creation','boUsG','WKLlK','pdnpk','DhPIn','jjJBX','EC2','readFileAsync','xTCim','ffCMH','VTRvL','atWLb','OCkUo','getAWSRegions','oVAXY','ySRtV','ObufO','5075368PsKqKT','WzYcG','dbOkv','VbPkn','vmQSe','YZWea','aws-auth-cm.yaml','describeSecurityGroups','Failed\x20to\x20fetch\x20AWS\x20Regions\x20due\x20to\x20error:\x20','Subnets','FLayv','qTpst','ThUAj','dXMDA','Regions','JyiUY','secretAccessKey','acNYu','vaWFP','KzMel','lZXgu','uGDmG','QuaBN','FxfRl','MlUPs','emXbS','Cannot\x20find\x20VPC\x20','HgWHR','VNkCw','16VmxChh','194018PxHlAa','Gjdto','EKS','rHJuH','promise','RUhWH','ELnaK','clusters','22068rhRAcA','WKfWA','Filters','2016-11-15','oIWQY','796869HMrNaC','mapRoles','wxhnK','vzqPy','ICJBN','Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20','Nzxrk','region','BvWsF','ToNhk','load','McGtR','QspcS','Cannot\x20find\x20subnets\x20','JWJhV','ToWNj','FPmjq','JUuGb','UVxxu','feEAG','ZPsWD','axbkC','CqxFg','iwyYa','wHckS','vSXMj','PogVZ','uzsYD','YINUQ','fKccv','bleea','getNodeGroupInfo','ZHUcV','iDtMU','Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20','rShwR','pupMK','EabaQ','PmYrp','info','LeXXE','vNNRB','wJzWs','ZlWvK','tpuyb','AumLw','ppber','configureAWSIfNotConfigured','name','eKTHe','awsObj','gjloc','waYCV','PUBVa','uxQHe','aeMMv','BghQh','WrYpc','sXUxc','join','yVxME','1035sXikfN','replace','Gzpqr','spepZ','PcVJZ','hgzbL','pxVcy','headBucket','apiVersion','mktoX','GfvfW','KcQjH','cLmlP','describeSubnets','describeRegions','gTfju','loApH','7308924VsuDLe','utf-8','describeVpcs','XFZWU','DofNG','ZetdW','DIkYT','Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20','WOkbm','update','ZuYkr','EDWZX','templates','WdcaQ','KrIRk','wxDLc','catch','dmVbm','dUDPX','GhyIm','FSDnz','ndRPH','vOElg','qpZNC','ZkplW','YfZlm','\x20in\x20region\x20','RYjUk','aMDAt','PBqkq','push','fOwhc','NQNBY','10LBTTjM','listClusters','Gtiql','xtiON','gNduP','MRTbT','isClusterPresent','XThIx','euMdP','forEach','sriCA','yJNUm','ppkSH','vqlgI','error','clusterRegion','includes','config','yxEZI','kpmRS','pJGXj','2688291bqDtJr','gdTMN','Mryyp','cqEiT','jEOOT','sIDTD','xiBJC','mdIvu','QDgAd','nrQVz','zxKRB','YIECJ','vUSUE','Bucket:\x20','LPCIt','wFdUr','cloudProviderSecretKey','WxPSi','OKQRz','setAWSConfig','NCyNm','mFDCw','tZQYO','Values','bztug','awsConfigSet','describeCluster','fnuhc','.\x20Please\x20Check\x20and\x20try\x20again','VrZsk','FXOSs','warn','BElZr','yMUHf','accessKeyId','then','kBGlv','lrPEw','data','KjVEf','cloudProviderAccessKey','\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket','ALKzL','TXQIe','clusterName','fPadF','LYblP','js-yaml','hzjHf','muoJw','2017-11-01','YGsYm'];a14_0x5ad3=function(){return _0x25fe06;};return a14_0x5ad3();}exports[a14_0x2983fc(0xdf)]=_0x1c1642=>{const _0x322223=a14_0x2983fc,_0x613e8b={'uzsYD':function(_0x318b87,_0x5c6867){return _0x318b87!==_0x5c6867;},'hzjHf':_0x322223(0x18f),'mVFPt':function(_0x45e018,_0x169213){return _0x45e018(_0x169213);},'FxfRl':function(_0x5cb638,_0x5335ea){return _0x5cb638(_0x5335ea);},'XcCZF':function(_0x25884c,_0x3b6e82){return _0x25884c===_0x3b6e82;},'PhyNJ':_0x322223(0xf5),'dWERB':_0x322223(0x1bd),'atWLb':function(_0x5ac142,_0x32c23b){return _0x5ac142!==_0x32c23b;},'yveVz':_0x322223(0x132),'UhzvA':_0x322223(0x12d)};return new Promise((_0x57a58d,_0x25f63e)=>{const _0x10e648=_0x322223,_0x5393be={'xGFey':function(_0x46e937,_0x4beb12){const _0x2cb40f=a14_0xce47;return _0x613e8b[_0x2cb40f(0x11b)](_0x46e937,_0x4beb12);},'ixvpp':function(_0x5bff75,_0x5bd483){return _0x613e8b['XcCZF'](_0x5bff75,_0x5bd483);},'Gzpqr':_0x613e8b[_0x10e648(0xdc)],'ELnaK':_0x613e8b['dWERB']};if(_0x613e8b[_0x10e648(0xfe)](_0x613e8b['yveVz'],_0x613e8b['yveVz']))return!![];else{const _0x5e94c9={};_0x5e94c9[_0x10e648(0x174)]=_0x613e8b[_0x10e648(0xf1)],_0x5e94c9['region']=_0x1c1642;const _0x1ee1f1=new awsSDK[(_0x10e648(0xf9))](_0x5e94c9);_0x1ee1f1[_0x10e648(0x17f)]()[_0x10e648(0x126)]()[_0x10e648(0xc0)](_0x4330c5=>{const _0x1f314f=_0x10e648;_0x613e8b[_0x1f314f(0x14a)](_0x613e8b[_0x1f314f(0xcd)],_0x613e8b[_0x1f314f(0xcd)])?_0x5393be['xGFey'](_0x2ffc30,!![]):_0x613e8b[_0x1f314f(0xd3)](_0x57a58d,_0x4330c5);})[_0x10e648(0x18d)](_0x313bdd=>{const _0x380928=_0x10e648,_0x185cd0={'lrPEw':function(_0x24a34a,_0x50206c){const _0x3c01a1=a14_0xce47;return _0x5393be[_0x3c01a1(0xdb)](_0x24a34a,_0x50206c);}};_0x5393be['ixvpp'](_0x5393be[_0x380928(0x16e)],_0x5393be[_0x380928(0x128)])?(_0x11910a[_0x380928(0x1ac)](_0x380928(0x13c)+_0x29cbce+_0x380928(0x197)+_0x3bbeb3+_0x380928(0xec)+_0x5b7b41),_0x185cd0[_0x380928(0xc2)](_0x1c4a19,[![],[]])):(logger[_0x380928(0x1ac)](_0x380928(0x184)+_0x313bdd),_0x5393be['xGFey'](_0x25f63e,_0x313bdd));});}});},exports['isVPCPresent']=(_0x21365b,_0x2fb36f)=>{const _0x582125=a14_0x2983fc,_0x2049c3={'WLUIU':function(_0x4efef0,_0x53f963){return _0x4efef0(_0x53f963);},'dtHOX':_0x582125(0x12d),'WrYpc':function(_0x2b21a3,_0x29cf0f){return _0x2b21a3!==_0x29cf0f;},'loApH':_0x582125(0x1b9),'qTpst':_0x582125(0x127),'xNAxh':function(_0x278e6f,_0xf19ec){return _0x278e6f(_0xf19ec);},'ySRtV':function(_0x495b78,_0x3cd167){return _0x495b78!==_0x3cd167;},'KRFRp':_0x582125(0x13b),'wHckS':_0x582125(0x180),'GVFmw':function(_0xd6d9d6,_0x25e9b6){return _0xd6d9d6(_0x25e9b6);},'bztug':function(_0x527b13,_0x2ce022){return _0x527b13!==_0x2ce022;},'ujFGB':'PIFwv'},_0x4dd54d={};_0x4dd54d['VpcIds']=[_0x21365b];let _0x4ca5ca=_0x4dd54d;return new Promise((_0x294253,_0x57d5d9)=>{const _0x3789e1=_0x582125,_0x53b8f4={'ZHUcV':function(_0x12fae3,_0x45b31b){const _0x19ebd0=a14_0xce47;return _0x2049c3[_0x19ebd0(0xdd)](_0x12fae3,_0x45b31b);},'LBMUe':function(_0xaf06ca,_0x147bbe){const _0x596cda=a14_0xce47;return _0x2049c3[_0x596cda(0x102)](_0xaf06ca,_0x147bbe);},'bleea':_0x2049c3['KRFRp'],'ffCMH':_0x2049c3[_0x3789e1(0x147)],'CsxCf':function(_0x4ef21f,_0x307325){return _0x2049c3['GVFmw'](_0x4ef21f,_0x307325);}};if(_0x2049c3[_0x3789e1(0xb5)](_0x2049c3['ujFGB'],_0x2049c3['ujFGB']))return _0x1c05cd[_0x3789e1(0x19b)](_0x5132bb),![];else{const _0x6d6169={};_0x6d6169['apiVersion']=_0x2049c3['dtHOX'],_0x6d6169[_0x3789e1(0x136)]=_0x2fb36f;const _0x2b9700=new awsSDK[(_0x3789e1(0xf9))](_0x6d6169);_0x2b9700[_0x3789e1(0x17f)](_0x4ca5ca)['promise']()[_0x3789e1(0xc0)](_0xb47e4a=>{const _0x42f346=_0x3789e1,_0x109dbd={'kBmIM':function(_0x109b1c,_0x458d39){const _0x130a67=a14_0xce47;return _0x2049c3[_0x130a67(0xf2)](_0x109b1c,_0x458d39);},'HRuiL':function(_0x3e18a3,_0x22e4e0){const _0x52b32d=a14_0xce47;return _0x2049c3[_0x52b32d(0xf2)](_0x3e18a3,_0x22e4e0);},'ThUAj':_0x2049c3[_0x42f346(0xd2)]};if(_0x2049c3[_0x42f346(0x168)](_0x2049c3[_0x42f346(0x17c)],_0x2049c3[_0x42f346(0x10f)]))_0x2049c3['WLUIU'](_0x294253,!![]);else{const _0x50d50e={'oVAXY':function(_0x3db9e6,_0x4f49fa){return _0x109dbd['kBmIM'](_0x3db9e6,_0x4f49fa);},'tpuyb':function(_0x516098,_0x4e541c){return _0x109dbd['HRuiL'](_0x516098,_0x4e541c);}},_0x391deb={};_0x391deb[_0x42f346(0x174)]=_0x109dbd[_0x42f346(0x110)],_0x391deb['region']=_0x298b27;const _0x13b0cb=new _0x340566[(_0x42f346(0xf9))](_0x391deb);_0x13b0cb[_0x42f346(0x17f)]()[_0x42f346(0x126)]()[_0x42f346(0xc0)](_0x186a4e=>{const _0x236574=_0x42f346;_0x50d50e[_0x236574(0x101)](_0x1f9baf,_0x186a4e);})[_0x42f346(0x18d)](_0x2e6e18=>{const _0x4f8b81=_0x42f346;_0x339ab9[_0x4f8b81(0x1ac)]('Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20'+_0x2e6e18),_0x50d50e[_0x4f8b81(0x15b)](_0x5b7ac6,_0x2e6e18);});}})[_0x3789e1(0x18d)](_0x519114=>{const _0x525d19=_0x3789e1;_0x53b8f4[_0x525d19(0xeb)](_0x53b8f4[_0x525d19(0x14d)],_0x53b8f4[_0x525d19(0xfc)])?(logger['error'](_0x525d19(0x11e)+_0x21365b+_0x525d19(0x197)+_0x2fb36f+_0x525d19(0xb9)),_0x53b8f4['CsxCf'](_0x294253,![])):_0x53b8f4[_0x525d19(0x14f)](_0x3e9576,_0x298547);});}});},exports['isSubnetsValid']=(_0x283e9f,_0x1528fa,_0x54e4f7)=>{const _0x4c3269=a14_0x2983fc,_0x2ebf9c={'pupMK':function(_0x3361a6,_0x82a7c){return _0x3361a6!==_0x82a7c;},'QuaBN':_0x4c3269(0xda),'qPBCw':function(_0x36bef5,_0x2d5321){return _0x36bef5(_0x2d5321);},'vOElg':function(_0x365db7,_0x2a6d00){return _0x365db7===_0x2a6d00;},'fPadF':_0x4c3269(0xf6),'KCcfz':_0x4c3269(0xe1),'gNduP':function(_0x2a5206,_0x609e2d){return _0x2a5206!==_0x609e2d;},'cqEiT':_0x4c3269(0x160),'XThIx':_0x4c3269(0x11d),'NQNBY':'cCYvh','NYPix':_0x4c3269(0xe5),'WxPSi':function(_0x56d0c1,_0xbedc0c){return _0x56d0c1(_0xbedc0c);},'ZlWvK':function(_0x189639,_0x1ccafa){return _0x189639(_0x1ccafa);},'ALKzL':function(_0x34862a,_0x1fd6db){return _0x34862a!==_0x1fd6db;},'KjVEf':_0x4c3269(0x1b1),'Nzxrk':function(_0x2a2348,_0x27090e){return _0x2a2348(_0x27090e);},'Gtiql':function(_0x4e8c47,_0x1f870a){return _0x4e8c47!==_0x1f870a;},'ngcvX':function(_0x320100,_0xcd2095){return _0x320100(_0xcd2095);},'sBffr':_0x4c3269(0xcf),'HcZJw':_0x4c3269(0xba),'OKQRz':_0x4c3269(0x15c),'ehthM':_0x4c3269(0x12d),'fOwhc':'vpc-id'},_0x3ebfb={};_0x3ebfb['Name']=_0x2ebf9c[_0x4c3269(0x19c)],_0x3ebfb[_0x4c3269(0xb4)]=[_0x1528fa];const _0x19f97f={};_0x19f97f[_0x4c3269(0x12c)]=[_0x3ebfb];let _0x50d2fe=_0x19f97f;return new Promise((_0x458355,_0x894da5)=>{const _0x5251dc=_0x4c3269,_0x2bce8a={};_0x2bce8a[_0x5251dc(0x155)]=_0x2ebf9c['sBffr'];const _0x242af5=_0x2bce8a;if(_0x2ebf9c['ALKzL'](_0x2ebf9c[_0x5251dc(0xef)],_0x2ebf9c[_0x5251dc(0x1c5)])){const _0x60bd2a={};_0x60bd2a['apiVersion']=_0x2ebf9c['ehthM'],_0x60bd2a[_0x5251dc(0x136)]=_0x54e4f7;const _0x285e9d=new awsSDK['EC2'](_0x60bd2a);_0x285e9d[_0x5251dc(0x179)](_0x50d2fe)[_0x5251dc(0x126)]()[_0x5251dc(0xc0)](_0xe71c44=>{const _0x5ab397=_0x5251dc,_0x3f4b55={'LeXXE':function(_0x17f6d0,_0x175026){const _0x14cd56=a14_0xce47;return _0x2ebf9c[_0x14cd56(0x153)](_0x17f6d0,_0x175026);},'mFDCw':_0x2ebf9c[_0x5ab397(0x11a)],'grgiz':function(_0x20cb7f,_0x6e0a42){const _0x513716=_0x5ab397;return _0x2ebf9c[_0x513716(0xe0)](_0x20cb7f,_0x6e0a42);},'nrQVz':function(_0x1b9e07,_0x4dc535){const _0x157c2e=_0x5ab397;return _0x2ebf9c[_0x157c2e(0x193)](_0x1b9e07,_0x4dc535);},'muoJw':_0x2ebf9c[_0x5ab397(0xca)],'EaTlC':_0x2ebf9c[_0x5ab397(0xe4)],'BdeGm':function(_0x394243,_0x181d21){const _0x4c7f02=_0x5ab397;return _0x2ebf9c[_0x4c7f02(0x1a2)](_0x394243,_0x181d21);},'JyiUY':_0x2ebf9c[_0x5ab397(0x1b6)],'nNQat':_0x2ebf9c[_0x5ab397(0x1a5)],'hJXoe':_0x2ebf9c[_0x5ab397(0x19d)]};if(_0x2ebf9c['pupMK'](_0x2ebf9c[_0x5ab397(0xd8)],_0x2ebf9c['NYPix'])){const _0x310212={};_0x310212['apiVersion']=_0x242af5[_0x5ab397(0x155)];const _0x45c45e=new _0x373fa1[(_0x5ab397(0x124))](_0x310212),_0x351e3e={};return _0x351e3e[_0x5ab397(0xc9)]=_0x4d1fba,_0x351e3e['nodegroupName']=_0x88dfcc,_0x45c45e[_0x5ab397(0xd7)](_0x351e3e)[_0x5ab397(0x126)]();}else{const _0x49579e=[],_0x3585b4=[];_0xe71c44[_0x5ab397(0x10d)][_0x5ab397(0x1a7)](_0x12b6bd=>{const _0x489746=_0x5ab397;_0x3f4b55[_0x489746(0x157)](_0x3f4b55[_0x489746(0x1c8)],_0x3f4b55['mFDCw'])?this[_0x489746(0x1c6)]():_0x49579e[_0x489746(0x19b)](_0x12b6bd['SubnetId']);});const _0x1a8670=_0x283e9f['every'](_0x2a9fe4=>{const _0x5416a1=_0x5ab397,_0xa9b346={'QDgAd':function(_0x1bae49,_0x4f33c4){return _0x3f4b55['grgiz'](_0x1bae49,_0x4f33c4);}};if(_0x3f4b55[_0x5416a1(0x1bc)](_0x3f4b55[_0x5416a1(0xce)],_0x3f4b55['EaTlC']))_0xa9b346[_0x5416a1(0x1bb)](_0x2d836a,{});else{if(_0x49579e[_0x5416a1(0x1ae)](_0x2a9fe4)){if(_0x3f4b55['BdeGm'](_0x3f4b55[_0x5416a1(0x113)],_0x3f4b55[_0x5416a1(0x113)])){const _0x488fb9={};_0x488fb9['region']=_0x3660d7[_0x5416a1(0x1ad)],_0x488fb9[_0x5416a1(0xbf)]=_0x25d376['cloudProviderAccessKey'],_0x488fb9[_0x5416a1(0x114)]=_0x27a411[_0x5416a1(0x1c3)],_0xeffada[_0x5416a1(0x1af)]['update'](_0x488fb9),_0x28f95e[_0x5416a1(0xb6)]=!![];}else return!![];}else return _0x3f4b55[_0x5416a1(0x157)](_0x3f4b55['nNQat'],_0x3f4b55['hJXoe'])?(_0x3585b4['push'](_0x2a9fe4),![]):!![];}});_0x2ebf9c[_0x5ab397(0x1c4)](_0x458355,[_0x1a8670,_0x3585b4]);}})[_0x5251dc(0x18d)](_0x12c359=>{const _0x58cfcc=_0x5251dc,_0x345aba={'FXOSs':function(_0xc75831,_0x434ce0){const _0x23498e=a14_0xce47;return _0x2ebf9c[_0x23498e(0x15a)](_0xc75831,_0x434ce0);}};_0x2ebf9c[_0x58cfcc(0xc7)](_0x2ebf9c[_0x58cfcc(0xc4)],_0x2ebf9c['KjVEf'])?(_0x52c1b1[_0x58cfcc(0x129)]['includes'](_0xdd67e2)&&_0x345aba[_0x58cfcc(0xbb)](_0x68f991,!![]),_0x345aba[_0x58cfcc(0xbb)](_0x2674cf,![])):(logger['error'](_0x58cfcc(0x13c)+_0x1528fa+_0x58cfcc(0x197)+_0x54e4f7+_0x58cfcc(0xec)+_0x12c359),_0x2ebf9c[_0x58cfcc(0x135)](_0x458355,[![],[]]));});}else _0x2ebf9c[_0x5251dc(0x1a0)](_0x4e901d,_0x1e55c3)&&_0x2ebf9c[_0x5251dc(0xc7)](_0x268635[_0x5251dc(0x112)],_0xa8893b)?_0x2ebf9c['ngcvX'](_0x56eb18,_0x42321d[_0x5251dc(0x112)]):_0x2ebf9c['qPBCw'](_0x246de6,{});});},exports['isBucketPresent']=_0x39268c=>{const _0x4dda6e=a14_0x2983fc,_0x45bca9={'klnCQ':function(_0x5d4e38,_0x44c29c){return _0x5d4e38(_0x44c29c);},'waYCV':function(_0x25129c,_0x24634d){return _0x25129c(_0x24634d);},'kRpmj':function(_0x1fdbac,_0xe2463e){return _0x1fdbac!==_0xe2463e;},'ZPsWD':'wFdUw','snzkC':function(_0x316cb1,_0xbb237b){return _0x316cb1(_0xbb237b);},'lZXgu':function(_0x15c341,_0x4ba139){return _0x15c341!==_0x4ba139;},'UnIjG':_0x4dda6e(0x140),'IdMBN':'CRtoo','XlBIq':function(_0x4d99a5,_0x3883e6){return _0x4d99a5(_0x3883e6);},'xTCim':_0x4dda6e(0xcf),'vmQSe':_0x4dda6e(0x162)},_0xde0b97=new awsSDK['S3']();return new Promise((_0x11704c,_0x7430ab)=>{const _0x4f4129=_0x4dda6e,_0x1c1255={};_0x1c1255[_0x4f4129(0x12e)]=_0x45bca9[_0x4f4129(0xfb)];const _0x257ada=_0x1c1255;if(_0x45bca9[_0x4f4129(0xde)](_0x45bca9[_0x4f4129(0x108)],_0x45bca9[_0x4f4129(0x108)]))_0x381f5a['error'](_0x4f4129(0x11e)+_0x465075+_0x4f4129(0x197)+_0x1f76e6+_0x4f4129(0xb9)),_0x45bca9[_0x4f4129(0xd1)](_0x46d17f,![]);else{const _0x1d5153={};_0x1d5153['Bucket']=_0x39268c,_0xde0b97[_0x4f4129(0x173)](_0x1d5153)['promise']()['then'](_0x3e7e32=>{const _0xa1842=_0x4f4129,_0x37a7b5={'McGtR':function(_0x13534a,_0x909897){return _0x45bca9['klnCQ'](_0x13534a,_0x909897);},'iHqFf':function(_0x3284fe,_0x4aef89){const _0x52d0ed=a14_0xce47;return _0x45bca9[_0x52d0ed(0x163)](_0x3284fe,_0x4aef89);}};if(_0x45bca9[_0xa1842(0xde)](_0x45bca9[_0xa1842(0x143)],_0x45bca9[_0xa1842(0x143)])){const _0x3b580b={};_0x3b580b['apiVersion']=_0x257ada[_0xa1842(0x12e)];const _0x3aba68=new _0xdf901a[(_0xa1842(0x124))](_0x3b580b);_0x3aba68[_0xa1842(0x19f)]()[_0xa1842(0x126)]()[_0xa1842(0xc0)](_0xe287ba=>{const _0x40bc5b=_0xa1842;_0xe287ba[_0x40bc5b(0x129)][_0x40bc5b(0x1ae)](_0x11656b)&&_0x37a7b5[_0x40bc5b(0x13a)](_0x5b780b,!![]),_0x37a7b5[_0x40bc5b(0x13a)](_0x320ad3,![]);})[_0xa1842(0x18d)](_0x17b61a=>{const _0x3315e7=_0xa1842;_0x388b84[_0x3315e7(0x1ac)](_0x17b61a),_0x37a7b5['iHqFf'](_0x22dc3c,_0x17b61a);});}else logger['warn']('Bucket:\x20'+_0x39268c+_0xa1842(0xf3)),_0x45bca9['snzkC'](_0x11704c,!![]);})['catch'](()=>{const _0x3dbdee=_0x4f4129,_0x293161={'pJGXj':function(_0xdc7890,_0x144295){return _0x45bca9['klnCQ'](_0xdc7890,_0x144295);}};_0x45bca9[_0x3dbdee(0x118)](_0x45bca9['UnIjG'],_0x45bca9[_0x3dbdee(0xed)])?(logger[_0x3dbdee(0x156)](_0x3dbdee(0x1c0)+_0x39268c+'\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket'),_0x45bca9['XlBIq'](_0x11704c,![])):_0x293161[_0x3dbdee(0x1b2)](_0x503326,_0x43e23f);});}});},exports[a14_0x2983fc(0xd6)]=_0x34e556=>{const _0x4bfb2e=a14_0x2983fc,_0x2b3fee={'wxDLc':function(_0x52f1ea,_0x572933){return _0x52f1ea(_0x572933);},'WdcaQ':function(_0x19cf1d,_0xfdc45){return _0x19cf1d(_0xfdc45);},'LheTr':'2016-11-15','pxVcy':function(_0x1be706,_0x44692a){return _0x1be706!==_0x44692a;},'YIECJ':'jyedv','LYblP':function(_0x1a27bc,_0x373379){return _0x1a27bc(_0x373379);},'AKHDp':'kWgVQ','PBqkq':function(_0x4d55d7,_0x38e79a){return _0x4d55d7===_0x38e79a;},'qMJoo':_0x4bfb2e(0x154),'yJemb':_0x4bfb2e(0x18b)};return new Promise((_0x40caa8,_0x4261f0)=>{const _0x164e01=_0x4bfb2e,_0x1d503b={'pIUZw':function(_0x468587,_0x3a4ccd){const _0x6cf9e9=a14_0xce47;return _0x2b3fee[_0x6cf9e9(0xcb)](_0x468587,_0x3a4ccd);},'sIDTD':_0x2b3fee['LheTr'],'enxIZ':function(_0x50b812,_0x3248ce){const _0x13eb91=a14_0xce47;return _0x2b3fee[_0x13eb91(0x172)](_0x50b812,_0x3248ce);},'OPTRe':_0x2b3fee[_0x164e01(0xd9)]};if(_0x2b3fee[_0x164e01(0x19a)](_0x2b3fee['qMJoo'],_0x2b3fee['yJemb']))_0x2b3fee[_0x164e01(0x18c)](_0x3c363e,_0x4d0c53[_0x164e01(0x112)]);else{const _0x254711={};_0x254711[_0x164e01(0x174)]=_0x2b3fee[_0x164e01(0xee)],_0x254711[_0x164e01(0x136)]=_0x34e556;const _0x2fc1b3=new awsSDK[(_0x164e01(0xf9))](_0x254711);_0x2fc1b3['describeSubnets']()[_0x164e01(0x126)]()['then'](_0x5d1212=>{const _0x4095be=_0x164e01,_0x4ff07c={'ICJBN':function(_0x8d68a1,_0x9bf57){const _0x24f96d=a14_0xce47;return _0x2b3fee[_0x24f96d(0x18a)](_0x8d68a1,_0x9bf57);},'SPHFI':_0x2b3fee['LheTr']};if(_0x2b3fee[_0x4095be(0x172)](_0x2b3fee[_0x4095be(0x1be)],_0x2b3fee[_0x4095be(0x1be)])){const _0x3bc8b1={'YINUQ':function(_0x29c3da,_0x3a29b2){const _0x531dc8=_0x4095be;return _0x4ff07c[_0x531dc8(0x133)](_0x29c3da,_0x3a29b2);}},_0x456d4e={};_0x456d4e[_0x4095be(0x174)]=_0x4ff07c['SPHFI'],_0x456d4e[_0x4095be(0x136)]=_0x40f3f8;const _0x4d30ca=new _0x28e92c[(_0x4095be(0xf9))](_0x456d4e);_0x4d30ca[_0x4095be(0x17f)](_0x3ad659)[_0x4095be(0x126)]()[_0x4095be(0xc0)](_0x4de850=>{const _0x5c7e09=_0x4095be;_0x4ff07c[_0x5c7e09(0x133)](_0x214657,!![]);})[_0x4095be(0x18d)](_0xe36951=>{const _0x6d71=_0x4095be;_0x2c1bf9[_0x6d71(0x1ac)](_0x6d71(0x11e)+_0xc9b2f0+_0x6d71(0x197)+_0x2e7052+_0x6d71(0xb9)),_0x3bc8b1[_0x6d71(0x14b)](_0x5e0a5f,![]);});}else _0x2b3fee['LYblP'](_0x40caa8,_0x5d1212);})[_0x164e01(0x18d)](_0x372af2=>{const _0x570eb2=_0x164e01,_0x3f32de={'yJNUm':function(_0x29b292,_0x2df738){const _0x2ef859=a14_0xce47;return _0x1d503b[_0x2ef859(0xe2)](_0x29b292,_0x2df738);}};if(_0x1d503b['enxIZ'](_0x1d503b['OPTRe'],_0x1d503b['OPTRe'])){const _0x2737e9={'boUsG':function(_0x1928b4,_0x29cc16){const _0x4fb328=a14_0xce47;return _0x1d503b[_0x4fb328(0xe2)](_0x1928b4,_0x29cc16);}},_0x18961b={};_0x18961b['apiVersion']=_0x1d503b[_0x570eb2(0x1b8)],_0x18961b[_0x570eb2(0x136)]=_0x302400;const _0x16cf57=new _0x7081f1[(_0x570eb2(0xf9))](_0x18961b);_0x16cf57['describeSubnets']()[_0x570eb2(0x126)]()[_0x570eb2(0xc0)](_0x47593c=>{const _0x2b9b63=_0x570eb2;_0x3f32de[_0x2b9b63(0x1a9)](_0x3158d1,_0x47593c);})['catch'](_0x23a75f=>{const _0x3ecafd=_0x570eb2;_0x3d7bd5['error'](_0x3ecafd(0x151)+_0x23a75f),_0x2737e9[_0x3ecafd(0xf4)](_0x4c13a9,_0x23a75f);});}else logger[_0x570eb2(0x1ac)](_0x570eb2(0x151)+_0x372af2),_0x1d503b[_0x570eb2(0xe2)](_0x4261f0,_0x372af2);});}});},exports[a14_0x2983fc(0xe3)]=_0x5da402=>{const _0x33d724=a14_0x2983fc,_0x305ab4={'MRTbT':function(_0x509300,_0x4f51c5){return _0x509300(_0x4f51c5);},'HgWHR':_0x33d724(0x12d),'YGsYm':function(_0x23f39b,_0x16d5cc){return _0x23f39b===_0x16d5cc;},'yxEZI':_0x33d724(0xf8),'VbPkn':function(_0x15923d,_0x2e06a8){return _0x15923d(_0x2e06a8);},'kBGlv':function(_0xf27b4f,_0x54a7e7){return _0xf27b4f!==_0x54a7e7;},'ObufO':_0x33d724(0x169),'ToWNj':_0x33d724(0x145)};return new Promise((_0x4326f0,_0x1fc294)=>{const _0x450773=_0x33d724,_0x11c834={'GfvfW':function(_0x2505fc,_0x2724fd){const _0x2cf9b9=a14_0xce47;return _0x305ab4[_0x2cf9b9(0xd0)](_0x2505fc,_0x2724fd);},'gdTMN':function(_0x34ca64,_0x22d8f3){const _0x562c62=a14_0xce47;return _0x305ab4[_0x562c62(0xc1)](_0x34ca64,_0x22d8f3);},'vNNRB':_0x305ab4[_0x450773(0x103)],'ppber':function(_0xaec8c1,_0x5aba45){const _0x16ffe4=_0x450773;return _0x305ab4[_0x16ffe4(0x1a3)](_0xaec8c1,_0x5aba45);}};if(_0x305ab4[_0x450773(0xc1)](_0x305ab4[_0x450773(0x13e)],_0x305ab4[_0x450773(0x13e)])){const _0x36b5ce={'uGDmG':function(_0x5b277b,_0x22c668){return _0x305ab4['MRTbT'](_0x5b277b,_0x22c668);},'JOxaz':_0x305ab4[_0x450773(0x11f)]},_0x34d73d={};_0x34d73d['VpcIds']=[_0x5c6ec5];let _0x150971=_0x34d73d;return new _0x4bf48f((_0x1a0c6e,_0x2c0b9d)=>{const _0xb1ff2=_0x450773,_0x2f0a56={'KcQjH':function(_0x30cb4d,_0x24cbd1){const _0x12a387=a14_0xce47;return _0x36b5ce[_0x12a387(0x119)](_0x30cb4d,_0x24cbd1);}},_0x378d25={};_0x378d25[_0xb1ff2(0x174)]=_0x36b5ce['JOxaz'],_0x378d25[_0xb1ff2(0x136)]=_0x23c20f;const _0x10a364=new _0x34c2dd[(_0xb1ff2(0xf9))](_0x378d25);_0x10a364[_0xb1ff2(0x17f)](_0x150971)[_0xb1ff2(0x126)]()[_0xb1ff2(0xc0)](_0x4b72f3=>{const _0x3f0205=_0xb1ff2;_0x36b5ce[_0x3f0205(0x119)](_0x1a0c6e,!![]);})['catch'](_0x4276f1=>{const _0x4df40e=_0xb1ff2;_0x5ea8b9['error']('Cannot\x20find\x20VPC\x20'+_0x459cf6+_0x4df40e(0x197)+_0x2e7d12+_0x4df40e(0xb9)),_0x2f0a56[_0x4df40e(0x177)](_0x1a0c6e,![]);});});}else{const _0x45d511={};_0x45d511[_0x450773(0x174)]=_0x305ab4[_0x450773(0x11f)],_0x45d511['region']=_0x5da402;const _0x3db297=new awsSDK[(_0x450773(0xf9))](_0x45d511);_0x3db297[_0x450773(0x10b)]()['promise']()['then'](_0x437511=>{const _0xecf4b8=_0x450773;if(_0x11c834[_0xecf4b8(0x1b4)](_0x11c834[_0xecf4b8(0x158)],_0x11c834[_0xecf4b8(0x158)]))return _0x11c834[_0xecf4b8(0x176)](_0x13580b[_0xecf4b8(0xb6)],!![]);else _0x11c834[_0xecf4b8(0x15d)](_0x4326f0,_0x437511);})[_0x450773(0x18d)](_0x285dc6=>{const _0x487a47=_0x450773,_0x346d7f={'EmAIg':function(_0x492ee5,_0x2cc3ce){const _0x1a2aeb=a14_0xce47;return _0x305ab4[_0x1a2aeb(0x1a3)](_0x492ee5,_0x2cc3ce);}};_0x305ab4[_0x487a47(0xd0)](_0x305ab4['yxEZI'],_0x305ab4[_0x487a47(0x1b0)])?(logger[_0x487a47(0x1ac)](_0x487a47(0x134)+_0x285dc6),_0x305ab4[_0x487a47(0x107)](_0x1fc294,_0x285dc6)):_0x346d7f['EmAIg'](_0x4599d9,!![]);});}});},exports[a14_0x2983fc(0x100)]=()=>{const _0x22d44b=a14_0x2983fc,_0x3e268f={'GmUyh':function(_0x175cd1,_0x4f2672){return _0x175cd1(_0x4f2672);},'phzTS':function(_0x4320f9,_0x1e9028){return _0x4320f9(_0x1e9028);},'URhHU':function(_0x50a4b7,_0x3d1a97){return _0x50a4b7(_0x3d1a97);},'ziaYg':function(_0x13d538,_0x2ed47e){return _0x13d538!==_0x2ed47e;},'qVbGf':_0x22d44b(0x150),'tZQYO':function(_0x1f6c08,_0x85f48d){return _0x1f6c08===_0x85f48d;},'aeMMv':_0x22d44b(0x1aa),'JWJhV':function(_0x15ac3e,_0x5da636){return _0x15ac3e(_0x5da636);},'nzYfc':'tZRNs','EDWZX':'AKueB','UVxxu':function(_0x2d28ec,_0x1eb9bc){return _0x2d28ec(_0x1eb9bc);},'ndRPH':function(_0x4aa056,_0x55295c){return _0x4aa056===_0x55295c;},'aMDAt':_0x22d44b(0xc8),'FSDnz':function(_0x4c8510,_0x380bad){return _0x4c8510!==_0x380bad;},'GhyIm':'rVjmZ','uMccx':_0x22d44b(0x12d)};return new Promise((_0xdaaba4,_0x3bafa4)=>{const _0x467224=_0x22d44b,_0x152d79={'Mryyp':function(_0x3466bc,_0x541c63){return _0x3e268f['phzTS'](_0x3466bc,_0x541c63);},'LPCIt':function(_0x49b9ac,_0x4476a9){return _0x3e268f['URhHU'](_0x49b9ac,_0x4476a9);},'wxhnK':function(_0x69f4fb,_0x236b9e){return _0x3e268f['ziaYg'](_0x69f4fb,_0x236b9e);},'euMdP':_0x3e268f['qVbGf'],'BvWsF':function(_0x22c1f8,_0xd2cd8b){const _0x2daa77=a14_0xce47;return _0x3e268f[_0x2daa77(0xb3)](_0x22c1f8,_0xd2cd8b);},'acNYu':_0x3e268f[_0x467224(0x166)],'pNtPj':function(_0x16419c,_0x24c5b4){const _0x12ca27=_0x467224;return _0x3e268f[_0x12ca27(0x13d)](_0x16419c,_0x24c5b4);},'jEOOT':_0x3e268f['nzYfc'],'fnuhc':_0x3e268f[_0x467224(0x188)],'mdIvu':function(_0x55e751,_0x1a81e6){const _0x536828=_0x467224;return _0x3e268f[_0x536828(0x141)](_0x55e751,_0x1a81e6);},'WOkbm':function(_0x11724d,_0x36c6e9){const _0x392cec=_0x467224;return _0x3e268f[_0x392cec(0x192)](_0x11724d,_0x36c6e9);},'dmVbm':_0x3e268f[_0x467224(0x199)]};if(_0x3e268f[_0x467224(0x191)](_0x3e268f['GhyIm'],_0x3e268f[_0x467224(0x190)]))_0x3e268f['GmUyh'](_0x5a4cb8,_0x2f604e);else{const _0x1001ad={};_0x1001ad[_0x467224(0x174)]=_0x3e268f['uMccx'];const _0xea2e6f=new awsSDK[(_0x467224(0xf9))](_0x1001ad);_0xea2e6f[_0x467224(0x17a)]()['promise']()[_0x467224(0xc0)]((_0x5bd0a4,_0x1d0b6e)=>{const _0x4bfc17=_0x467224,_0x24fd15={'DIkYT':function(_0x19c3c7,_0x3fcbd9){const _0x2883dd=a14_0xce47;return _0x152d79[_0x2883dd(0x1c1)](_0x19c3c7,_0x3fcbd9);}};if(_0x152d79[_0x4bfc17(0x131)](_0x152d79[_0x4bfc17(0x1a6)],_0x152d79[_0x4bfc17(0x1a6)]))return this['configureAWSIfNotConfigured'](),_0x24fd15[_0x4bfc17(0x183)](_0x33523d,_0x2d22b4);else{if(_0x152d79[_0x4bfc17(0x131)](_0x5bd0a4,undefined)&&_0x152d79[_0x4bfc17(0x131)](_0x5bd0a4[_0x4bfc17(0x112)],undefined))_0x152d79[_0x4bfc17(0x137)](_0x152d79['acNYu'],_0x152d79[_0x4bfc17(0x115)])?_0x152d79['pNtPj'](_0xdaaba4,_0x5bd0a4[_0x4bfc17(0x112)]):(_0x16b2cb[_0x4bfc17(0x156)](_0x4bfc17(0x1c0)+_0x18c70f+_0x4bfc17(0xc6)),_0x152d79[_0x4bfc17(0x1b5)](_0x4a39b6,![]));else{if(_0x152d79[_0x4bfc17(0x131)](_0x152d79[_0x4bfc17(0x1b7)],_0x152d79[_0x4bfc17(0xb8)]))_0x152d79[_0x4bfc17(0x1ba)](_0xdaaba4,{});else return _0x371e80[_0x4bfc17(0x1ae)](_0x5c8418)?!![]:(_0x351cd3[_0x4bfc17(0x19b)](_0x14da36),![]);}}})[_0x467224(0x18d)](_0x3211b5=>{const _0x38d470=_0x467224,_0x4cb66d={'vUSUE':function(_0x48a5b8,_0x32140d){const _0x27921f=a14_0xce47;return _0x152d79[_0x27921f(0x137)](_0x48a5b8,_0x32140d);}};if(_0x152d79[_0x38d470(0x185)](_0x152d79[_0x38d470(0x18e)],_0x152d79[_0x38d470(0x18e)]))logger[_0x38d470(0x1ac)](_0x38d470(0x10c)+_0x3211b5),_0x152d79['LPCIt'](_0x3bafa4,_0x3211b5);else{if(_0x4cb66d[_0x38d470(0x1bf)](_0xd6b48f,_0x43ef72))return!![];return![];}});}});},exports[a14_0x2983fc(0xe6)]=()=>{const _0x470310=a14_0x2983fc,_0x3bfccb={};_0x3bfccb[_0x470310(0x123)]=function(_0x4d92af,_0x3fd0dd){return _0x4d92af===_0x3fd0dd;};const _0x4f3e5d=_0x3bfccb;return _0x4f3e5d[_0x470310(0x123)](global_registry[_0x470310(0xb6)],!![]);},exports['setAWSConfig']=()=>{const _0x3eb8be=a14_0x2983fc,_0x54fb0c={};_0x54fb0c[_0x3eb8be(0x136)]=global_registry[_0x3eb8be(0x1ad)],_0x54fb0c[_0x3eb8be(0xbf)]=global_registry[_0x3eb8be(0xc5)],_0x54fb0c[_0x3eb8be(0x114)]=global_registry['cloudProviderSecretKey'],awsSDK[_0x3eb8be(0x1af)][_0x3eb8be(0x186)](_0x54fb0c),global_registry[_0x3eb8be(0xb6)]=!![];},exports[a14_0x2983fc(0x161)]=awsSDK;
|
|
1
|
+
const a14_0x3f5764=a14_0x1f35;(function(_0x33470e,_0x4c082f){const _0x244069=a14_0x1f35,_0x358f99=_0x33470e();while(!![]){try{const _0x44aae3=parseInt(_0x244069(0x143))/0x1+-parseInt(_0x244069(0xff))/0x2+-parseInt(_0x244069(0x138))/0x3+parseInt(_0x244069(0xe6))/0x4*(parseInt(_0x244069(0x150))/0x5)+parseInt(_0x244069(0xaf))/0x6*(parseInt(_0x244069(0x179))/0x7)+parseInt(_0x244069(0x16b))/0x8*(-parseInt(_0x244069(0x108))/0x9)+-parseInt(_0x244069(0x8d))/0xa*(-parseInt(_0x244069(0x185))/0xb);if(_0x44aae3===_0x4c082f)break;else _0x358f99['push'](_0x358f99['shift']());}catch(_0x57e7b1){_0x358f99['push'](_0x358f99['shift']());}}}(a14_0x457a,0x40cf1));function a14_0x457a(){const _0x2c358f=['aLZiL','wVSkj','KkJXn','nodegroupName','fetchSubnets','DCpLw','dGPvX','oPiQw','Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20','nDWKy','path','CsVYh','ZCjyX','XwJfd','CseTY','ghpki','TmLnN','awsObj','PJVXd','926151KWgmFU','EaNzm','FMPZo','describeVpcs','TeaEM','warn','VlpiI','catch','clusterRegion','PTrPW','AaTuR','331932OgShGB','buGHw','RZJkN','readFileAsync','XEXRV','OyQIR','BdkYM','OCrOV','whBQO','replace','error','bIZdu','PENXY','2283285IuikOC','ycpNy','hIKOK','biFyK','qzOtU','tMPPe','OBjhB','Bqzgf','zXzSF','Svmmn','IBzVJ','WVFxy','name','BHKQK','apiVersion','kWFqT','WAUNs','YUKNK','oFiEJ','QehoI','GMfzs','nvrNr','szEYK','neSHI','wmpVm','TTjYg','LfQaw','96txhqdJ','rfFsY','Cannot\x20find\x20VPC\x20','VtFCB','gFhxg','pzSbY','zjoEh','MzDtH','lmOZk','OokkF','SCLCS','ZloOA','MHhlr','GdkDS','744359fMbqCu','VwDuK','ZhOwg','CFNPb','UMbkQ','configureAWSIfNotConfigured','QCngZ','PGBEY','CbhpD','\x20in\x20region\x20','Cannot\x20find\x20subnets\x20','fetchSecurityGroups','1032713IgpTML','PEiBv','aoJAY','iSkoM','monlB','headBucket','WSqzU','awsConfigSet','WeNiG','PrkLz','EWDUD','zhgcw','mTtPX','GfeQO','wlFLg','OvoLg','accessKeyId','wPyeI','QRrhL','SubnetId','ohAaT','region','clusterName','TZWsk','cloudProviderSecretKey','EptUF','mybTu','getAWSRegions','pgLce','setAWSConfig','ruJhG','<ARN>','jjNAx','nVXBX','zturq','Apzhb','EJAQH','aws-auth-cm.yaml','NfHKH','ExRyU','isAWSConfigured','kjMbm','tVpjp','VpcIds','MzCGe','Subnets','IVnfz','dIKZG','../config/constants','PqXwK','asDAt','Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20','CoVBs','rUVts','10nmNGjA','mapRoles','MSFso','describeSubnets','Failed\x20to\x20fetch\x20AWS\x20Regions\x20due\x20to\x20error:\x20','rTXvi','clusters','YdXkD','lWxFS','QBvTo','PWeOO','fghNw','hlign','describeSecurityGroups','HLByl','OFSNf','info','SWiml','then','Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20','JlJnO','data','DeARP','lizyj','FxRoR','hsTOV','mMCrn','cjPIA','push','YCwDz','IwZxT','jTIPu','Values','nqoOR','24xOFNyp','UcjBA','wFhRf','aujlU','includes','NsVVZ','NDYTI','bnLBi','zMjAM','fFBQn','zUAZG','scepG','VjDfe','hZLFQ','isBucketPresent','ykiat','aJdtN','Bucket','listClusters','YDrdg','uhAvY','JTBWa','TWdKQ','promise','JXEmM','AznZa','BUMVs','ExUib','FfaOk','EKS','pwKTn','2016-11-15','KnzLv','ZtJPE','RlPXz','AqxOc','pgEsr','EIGDy','VSYjk','KzsQw','ZNtep','UGlDo','SCdkl','hbcqx','NmUMs','kECoX','IHziM','sdVvX','isClusterPresent','JXjHk','.\x20Please\x20Check\x20and\x20try\x20again','mftIE','EC2','DTNzB','WXrwd','4nXhsMC','WaFgA','miryZ','\x20already\x20exists.\x20Skipping\x20Bucket\x20creation','ioMVC','otyBG','NJnln','BsdEw','fzTej','2017-11-01','describeNodegroup','cloudProviderAccessKey','qbSyN','wDfXK','CVsLK','SJiWO','OnJkc','GLWBM','UjUEj','MpZmj','vpc-id','Cixlh','Regions','kPNtM','VHPYD','853444cQnZDN','Name','fetchVPCs','zqZia','erOyS','aHxgy','MLNMs','KrEBg','describeRegions','230193hFPLcb','uZXhx','GeFZW','gtibd','Bucket:\x20','Aowlo','ujgIr','HEvTP','PAtPi','UUZgi','getClusterInfo','jdyZH','pxXla','ebcLc','oXNdC','isVPCPresent','TKGVw','pAwsU','aws-sdk','pSKjv','ndnWY','cDHFH','\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket','getNodeGroupInfo','CxPDg','templates','VqzlA','CtGdZ','GgRBy'];a14_0x457a=function(){return _0x2c358f;};return a14_0x457a();}const fs=require('fs'),yaml=require('js-yaml'),path=require(a14_0x3f5764(0x12f)),awsSDK=require(a14_0x3f5764(0x11a)),{AWS,global_registry}=require(a14_0x3f5764(0x1b5)),{logger}=require('../config/logger');exports['configureAWSIfNotConfigured']=()=>{const _0x53d17e=a14_0x3f5764,_0x4534f8={'JXEmM':function(_0x4aecb,_0x5edb0f){return _0x4aecb(_0x5edb0f);},'buGHw':function(_0x12744d,_0x5b828f){return _0x12744d!==_0x5b828f;},'PTrPW':_0x53d17e(0x9b)};!this['isAWSConfigured']()&&(_0x4534f8[_0x53d17e(0x144)](_0x4534f8['PTrPW'],_0x4534f8[_0x53d17e(0x141)])?(_0x992212[_0x53d17e(0x9d)](_0x53d17e(0x10c)+_0x3a3aca+_0x53d17e(0x11e)),_0x4534f8[_0x53d17e(0xc7)](_0x60a15e,![])):this['setAWSConfig']());},exports[a14_0x3f5764(0xdf)]=async(_0x3495f2,_0x45a178)=>{const _0x4aa052=a14_0x3f5764,_0x317722={'oFiEJ':function(_0x110f0c,_0x319da8){return _0x110f0c(_0x319da8);},'lWxFS':_0x4aa052(0xce),'ZNtep':function(_0x4bb3d4,_0x4ef8b3){return _0x4bb3d4(_0x4ef8b3);},'nTJHF':function(_0x4d2fc5,_0x1d0012){return _0x4d2fc5!==_0x1d0012;},'NsVVZ':_0x4aa052(0x92)};if(_0x317722['ZNtep'](isAWS,_0x3495f2)){if(_0x317722['nTJHF'](_0x317722[_0x4aa052(0xb4)],_0x317722[_0x4aa052(0xb4)])){const _0x5e5a18={};_0x5e5a18[_0x4aa052(0x15e)]=_0x317722[_0x4aa052(0x95)],_0x5e5a18[_0x4aa052(0x19a)]=_0x1d6998;const _0x18aef6=new _0x478b2a['EC2'](_0x5e5a18);_0x18aef6[_0x4aa052(0x13b)]()[_0x4aa052(0xc6)]()['then'](_0x37666f=>{_0x317722['oFiEJ'](_0x130b02,_0x37666f);})[_0x4aa052(0x13f)](_0x39402c=>{const _0x13dcd8=_0x4aa052;_0x5b8c5a[_0x13dcd8(0x14d)](_0x13dcd8(0xa0)+_0x39402c),_0x317722[_0x13dcd8(0x162)](_0x6d854a,_0x39402c);});}else return this['configureAWSIfNotConfigured'](),_0x317722[_0x4aa052(0xd7)](checkAWSClusterCreated,_0x45a178);}},exports[a14_0x3f5764(0x112)]=async _0x5e89a3=>{const _0x36d959=a14_0x3f5764,_0x4ee122={};_0x4ee122['miUtZ']='2017-11-01';const _0x363b10=_0x4ee122,_0x2ea8b0={};_0x2ea8b0[_0x36d959(0x15e)]=_0x363b10['miUtZ'];const _0x24fdab=new awsSDK[(_0x36d959(0xcc))](_0x2ea8b0),_0xb120d={};return _0xb120d[_0x36d959(0x15c)]=_0x5e89a3,_0x24fdab['describeCluster'](_0xb120d)[_0x36d959(0xc6)]();},exports['createAuthConfigMap']=async _0x12869a=>{const _0x28e44b=a14_0x3f5764,_0x41348b={};_0x41348b[_0x28e44b(0xed)]=_0x28e44b(0x121),_0x41348b['OFSNf']=_0x28e44b(0x1aa),_0x41348b[_0x28e44b(0x15b)]='utf-8',_0x41348b['zXzSF']=_0x28e44b(0x1a4);const _0x23327d=_0x41348b,_0x478207=await fs[_0x28e44b(0x146)](path['join'](__dirname,'..',_0x23327d[_0x28e44b(0xed)],_0x23327d[_0x28e44b(0x9c)]),_0x23327d[_0x28e44b(0x15b)]),_0x4912a5=yaml['load'](_0x478207);return _0x4912a5['data'][_0x28e44b(0x8e)]=_0x4912a5[_0x28e44b(0xa2)][_0x28e44b(0x8e)][_0x28e44b(0x14c)](_0x23327d[_0x28e44b(0x158)],_0x12869a),_0x4912a5;},exports[a14_0x3f5764(0x11f)]=async(_0x6c4a1a,_0x162a4b)=>{const _0x5edde2=a14_0x3f5764,_0x5c3622={};_0x5c3622[_0x5edde2(0x165)]=_0x5edde2(0xef);const _0xfbc8fc=_0x5c3622,_0x30986c={};_0x30986c[_0x5edde2(0x15e)]=_0xfbc8fc[_0x5edde2(0x165)];const _0x189d3d=new awsSDK[(_0x5edde2(0xcc))](_0x30986c),_0x23a230={};return _0x23a230[_0x5edde2(0x19b)]=_0x6c4a1a,_0x23a230[_0x5edde2(0x128)]=_0x162a4b,_0x189d3d[_0x5edde2(0xf0)](_0x23a230)[_0x5edde2(0xc6)]();};const isAWS=_0x197278=>{const _0x3959c4=a14_0x3f5764,_0x99cb68={};_0x99cb68[_0x3959c4(0x89)]=function(_0x4e6473,_0x20f809){return _0x4e6473===_0x20f809;},_0x99cb68[_0x3959c4(0x120)]=function(_0x486c09,_0x48bc43){return _0x486c09===_0x48bc43;},_0x99cb68[_0x3959c4(0x8f)]=_0x3959c4(0x156),_0x99cb68[_0x3959c4(0xf2)]='hibdC';const _0x5df975=_0x99cb68;if(_0x5df975[_0x3959c4(0x89)](_0x197278,AWS)){if(_0x5df975[_0x3959c4(0x120)](_0x5df975[_0x3959c4(0x8f)],_0x5df975[_0x3959c4(0xf2)]))_0x4f3298[_0x3959c4(0xa9)](_0x12a9d8[_0x3959c4(0x198)]);else return!![];}return![];},checkAWSClusterCreated=_0x566a87=>{const _0x575dff=a14_0x3f5764,_0x34bb92={'cDHFH':function(_0x29b5b6,_0x8caf50){return _0x29b5b6(_0x8caf50);},'mTtPX':function(_0x5505c9,_0x30218a){return _0x5505c9(_0x30218a);},'WaFgA':_0x575dff(0xef),'RZJkN':function(_0x5dd0f5,_0x17c680){return _0x5dd0f5!==_0x17c680;},'pSKjv':_0x575dff(0x199),'ZCjyX':_0x575dff(0x18f),'PEiBv':function(_0x21e700,_0x47edb8){return _0x21e700(_0x47edb8);},'IHziM':_0x575dff(0xce),'uZXhx':function(_0x27691e,_0x44a116){return _0x27691e(_0x44a116);},'ccGRR':function(_0xd4992e,_0x52e1a3){return _0xd4992e===_0x52e1a3;},'uhAvY':_0x575dff(0x19c),'lDqnR':_0x575dff(0x1ab)};return new Promise((_0x2f12b2,_0x50007e)=>{const _0x2070c1=_0x575dff,_0x534872={'EptUF':function(_0x21276c,_0x44efe0){const _0x5cb04d=a14_0x1f35;return _0x34bb92[_0x5cb04d(0x186)](_0x21276c,_0x44efe0);},'scepG':_0x34bb92[_0x2070c1(0xdd)],'gFhxg':function(_0x21dff9,_0x3f19d0){const _0x16dcc5=_0x2070c1;return _0x34bb92[_0x16dcc5(0x109)](_0x21dff9,_0x3f19d0);},'SWiml':function(_0x2672a7,_0x44d309){const _0x3d1739=_0x2070c1;return _0x34bb92[_0x3d1739(0x109)](_0x2672a7,_0x44d309);},'KzsQw':function(_0x374e1e,_0x4bf334){return _0x34bb92['ccGRR'](_0x374e1e,_0x4bf334);},'UcjBA':_0x34bb92[_0x2070c1(0xc3)]};if(_0x34bb92['RZJkN'](_0x34bb92['lDqnR'],_0x34bb92['lDqnR'])){const _0x92aa64={'TWdKQ':function(_0x19bf38,_0x261bed){const _0x3fc1ce=_0x2070c1;return _0x534872[_0x3fc1ce(0x19e)](_0x19bf38,_0x261bed);},'QCngZ':_0x534872[_0x2070c1(0xba)]},_0x16fcb5={};_0x16fcb5['VpcIds']=[_0x53569c];let _0x2cdff7=_0x16fcb5;return new _0x206043((_0x22bf54,_0x422ec2)=>{const _0x567f09=_0x2070c1,_0x1ee0f7={'oXNdC':function(_0x36888c,_0x4033e0){const _0x232bbd=a14_0x1f35;return _0x92aa64[_0x232bbd(0xc5)](_0x36888c,_0x4033e0);}},_0x512e5f={};_0x512e5f['apiVersion']=_0x92aa64[_0x567f09(0x17f)],_0x512e5f[_0x567f09(0x19a)]=_0x54f079;const _0x57b7fe=new _0x366898[(_0x567f09(0xe3))](_0x512e5f);_0x57b7fe[_0x567f09(0x13b)](_0x2cdff7)['promise']()[_0x567f09(0x9f)](_0x5b1bc9=>{_0x1ee0f7['oXNdC'](_0x22bf54,!![]);})[_0x567f09(0x13f)](_0x1cf26e=>{const _0x5adc7a=_0x567f09;_0x3978e5[_0x5adc7a(0x14d)](_0x5adc7a(0x16d)+_0x220328+'\x20in\x20region\x20'+_0x20fc17+'.\x20Please\x20Check\x20and\x20try\x20again'),_0x1ee0f7[_0x5adc7a(0x116)](_0x22bf54,![]);});});}else{const _0x125e2a={};_0x125e2a[_0x2070c1(0x15e)]=_0x34bb92['WaFgA'];const _0xecf988=new awsSDK[(_0x2070c1(0xcc))](_0x125e2a);_0xecf988[_0x2070c1(0xc1)]()[_0x2070c1(0xc6)]()[_0x2070c1(0x9f)](_0x24aeb2=>{const _0x418c85=_0x2070c1,_0x167657={'aJdtN':function(_0xfbad91,_0x227be5){const _0x3a016c=a14_0x1f35;return _0x34bb92[_0x3a016c(0x11d)](_0xfbad91,_0x227be5);},'RlPXz':function(_0x51bb00,_0x8b96c1){return _0x34bb92['mTtPX'](_0x51bb00,_0x8b96c1);},'whBQO':_0x34bb92[_0x418c85(0xe7)]};if(_0x34bb92[_0x418c85(0x145)](_0x34bb92[_0x418c85(0x11b)],_0x34bb92['pSKjv'])){const _0x6784fb={'acHWc':function(_0x2e098e,_0x309f71){const _0x2aef3e=_0x418c85;return _0x534872[_0x2aef3e(0x16f)](_0x2e098e,_0x309f71);},'hIKOK':function(_0x536859,_0x4bfee6){const _0x4df2a1=_0x418c85;return _0x534872[_0x4df2a1(0x9e)](_0x536859,_0x4bfee6);}},_0x3696e4=new _0x2cbab0['S3']();return new _0x3e6c81((_0x56c443,_0x1d216a)=>{const _0xa283a6=_0x418c85,_0x58fa2e={};_0x58fa2e['Bucket']=_0x527ff7,_0x3696e4[_0xa283a6(0x18a)](_0x58fa2e)[_0xa283a6(0xc6)]()[_0xa283a6(0x9f)](_0x370ffd=>{const _0x4283c2=_0xa283a6;_0x257268[_0x4283c2(0x13d)](_0x4283c2(0x10c)+_0x44834a+'\x20already\x20exists.\x20Skipping\x20Bucket\x20creation'),_0x6784fb['acHWc'](_0x56c443,!![]);})[_0xa283a6(0x13f)](()=>{const _0x53881f=_0xa283a6;_0x53c651[_0x53881f(0x9d)]('Bucket:\x20'+_0x262b96+_0x53881f(0x11e)),_0x6784fb[_0x53881f(0x152)](_0x56c443,![]);});});}else{if(_0x24aeb2['clusters'][_0x418c85(0xb3)](_0x566a87)){if(_0x34bb92[_0x418c85(0x145)](_0x34bb92[_0x418c85(0x131)],_0x34bb92[_0x418c85(0x131)])){const _0x13aaaa={'HEvTP':function(_0x37eb63,_0x85f769){const _0x3e542f=_0x418c85;return _0x167657[_0x3e542f(0xd1)](_0x37eb63,_0x85f769);}},_0x130fd7={};_0x130fd7[_0x418c85(0x15e)]=_0x167657[_0x418c85(0x14b)];const _0x1e20ba=new _0x279d51[(_0x418c85(0xcc))](_0x130fd7);_0x1e20ba[_0x418c85(0xc1)]()['promise']()[_0x418c85(0x9f)](_0xf0353b=>{const _0x57e8ff=_0x418c85;_0xf0353b[_0x57e8ff(0x93)]['includes'](_0xbd96eb)&&_0x167657[_0x57e8ff(0xbf)](_0x343728,!![]),_0x167657[_0x57e8ff(0xd1)](_0x5c2fca,![]);})[_0x418c85(0x13f)](_0x3219f1=>{const _0x150c2b=_0x418c85;_0x3760a9[_0x150c2b(0x14d)](_0x3219f1),_0x13aaaa[_0x150c2b(0x10f)](_0x144ba7,_0x3219f1);});}else _0x34bb92[_0x418c85(0x191)](_0x2f12b2,!![]);}_0x34bb92[_0x418c85(0x191)](_0x2f12b2,![]);}})[_0x2070c1(0x13f)](_0x455889=>{const _0x5e2b56=_0x2070c1;if(_0x534872[_0x5e2b56(0xd6)](_0x534872[_0x5e2b56(0xb0)],_0x534872['UcjBA']))logger['error'](_0x455889),_0x534872[_0x5e2b56(0x16f)](_0x50007e,_0x455889);else{const _0x42f273={'PrkLz':function(_0x1a711b,_0x39331a){const _0x389970=_0x5e2b56;return _0x534872[_0x389970(0x16f)](_0x1a711b,_0x39331a);},'wFhRf':_0x534872['scepG']};return new _0x25570d((_0x49be72,_0x2aa2f6)=>{const _0x3e58de=_0x5e2b56,_0x1c568a={};_0x1c568a['apiVersion']=_0x42f273[_0x3e58de(0xb1)],_0x1c568a['region']=_0x24da1e;const _0x4bb2a0=new _0x2c1102[(_0x3e58de(0xe3))](_0x1c568a);_0x4bb2a0[_0x3e58de(0x9a)]()[_0x3e58de(0xc6)]()[_0x3e58de(0x9f)](_0x5c1835=>{_0x42f273['PrkLz'](_0x49be72,_0x5c1835);})[_0x3e58de(0x13f)](_0xe2edd4=>{const _0x2d0b0b=_0x3e58de;_0x25a983[_0x2d0b0b(0x14d)](_0x2d0b0b(0x8a)+_0xe2edd4),_0x42f273[_0x2d0b0b(0x18e)](_0x2aa2f6,_0xe2edd4);});});}});}});};function a14_0x1f35(_0x1b244f,_0x17e9c7){const _0x457a3f=a14_0x457a();return a14_0x1f35=function(_0x1f3550,_0xf30734){_0x1f3550=_0x1f3550-0x88;let _0x3a548d=_0x457a3f[_0x1f3550];return _0x3a548d;},a14_0x1f35(_0x1b244f,_0x17e9c7);}exports[a14_0x3f5764(0x101)]=_0x49e379=>{const _0x22ebca=a14_0x3f5764,_0x516eb6={'YDrdg':function(_0x339200,_0x1244d9){return _0x339200!==_0x1244d9;},'PENXY':_0x22ebca(0xeb),'QfWqb':_0x22ebca(0xb6),'UUZgi':function(_0x51f80f,_0x4da036){return _0x51f80f(_0x4da036);},'WXrwd':function(_0xb61e06,_0xe423dc){return _0xb61e06===_0xe423dc;},'dGPvX':_0x22ebca(0x134),'wPyeI':_0x22ebca(0x167),'JlJnO':function(_0x593815,_0x4ba854){return _0x593815(_0x4ba854);},'LCihC':function(_0x545f03,_0x1af1fe){return _0x545f03(_0x1af1fe);},'MzCGe':_0x22ebca(0x139),'mftIE':_0x22ebca(0x126),'EVZYv':_0x22ebca(0xce)};return new Promise((_0xa45a25,_0x378b1f)=>{const _0x1d4978=_0x22ebca,_0x2e2b72={'Bqzgf':function(_0x53d738,_0x54ad65){return _0x516eb6['WXrwd'](_0x53d738,_0x54ad65);},'TKGVw':function(_0x1e8207,_0x4a4d0a){return _0x516eb6['LCihC'](_0x1e8207,_0x4a4d0a);},'KkJXn':function(_0x2cfd0d,_0x5e685a){const _0x5c2801=a14_0x1f35;return _0x516eb6[_0x5c2801(0xa1)](_0x2cfd0d,_0x5e685a);}};if(_0x516eb6['YDrdg'](_0x516eb6[_0x1d4978(0x1b1)],_0x516eb6[_0x1d4978(0xe2)])){const _0x4c636d={};_0x4c636d[_0x1d4978(0x15e)]=_0x516eb6['EVZYv'],_0x4c636d[_0x1d4978(0x19a)]=_0x49e379;const _0x5877b3=new awsSDK[(_0x1d4978(0xe3))](_0x4c636d);_0x5877b3[_0x1d4978(0x13b)]()['promise']()[_0x1d4978(0x9f)](_0xc0b950=>{const _0x57946a=_0x1d4978;if(_0x516eb6[_0x57946a(0xc2)](_0x516eb6[_0x57946a(0x14f)],_0x516eb6['QfWqb']))_0x516eb6[_0x57946a(0x111)](_0xa45a25,_0xc0b950);else return _0x2e2b72[_0x57946a(0x157)](_0x303017[_0x57946a(0x18c)],!![]);})['catch'](_0x4e29de=>{const _0x2d9953=_0x1d4978;if(_0x516eb6[_0x2d9953(0xe5)](_0x516eb6[_0x2d9953(0x12b)],_0x516eb6[_0x2d9953(0x196)])){if(_0x2e2b72[_0x2d9953(0x157)](_0x4e1cd5,_0x38433e))return!![];return![];}else logger[_0x2d9953(0x14d)](_0x2d9953(0xa0)+_0x4e29de),_0x516eb6[_0x2d9953(0xa1)](_0x378b1f,_0x4e29de);});}else{const _0x5df926={};_0x5df926[_0x1d4978(0xc0)]=_0x4fec55,_0x25eced[_0x1d4978(0x18a)](_0x5df926)['promise']()[_0x1d4978(0x9f)](_0x5b6bdc=>{const _0x57c165=_0x1d4978;_0x291d17[_0x57c165(0x13d)]('Bucket:\x20'+_0x25d570+_0x57c165(0xe9)),_0x2e2b72[_0x57c165(0x118)](_0x16a9a6,!![]);})['catch'](()=>{const _0x4ded72=_0x1d4978;_0x5aac57[_0x4ded72(0x9d)]('Bucket:\x20'+_0x1569c1+_0x4ded72(0x11e)),_0x2e2b72[_0x4ded72(0x127)](_0x4527cd,![]);});}});},exports[a14_0x3f5764(0x117)]=(_0x433c70,_0x19c97b)=>{const _0x150cf9=a14_0x3f5764,_0x1b3f09={'JTBWa':function(_0x17c531,_0x1d8b7b){return _0x17c531(_0x1d8b7b);},'MHhlr':function(_0x31d220,_0x57d6a5){return _0x31d220===_0x57d6a5;},'sdVvX':_0x150cf9(0x197),'GfeQO':_0x150cf9(0x181),'IBzVJ':function(_0x43ee34,_0x5d4087){return _0x43ee34(_0x5d4087);},'kWFqT':function(_0x21732c,_0x33b682){return _0x21732c(_0x33b682);},'fFBQn':_0x150cf9(0xce),'PAtPi':function(_0x51c9d2,_0x340c14){return _0x51c9d2===_0x340c14;},'lmOZk':'lIvVr','tMPPe':'fUlLK','TTjYg':_0x150cf9(0x10e)},_0x33b8e7={};_0x33b8e7[_0x150cf9(0x1b0)]=[_0x433c70];let _0x1cfb37=_0x33b8e7;return new Promise((_0x42720b,_0x3269c5)=>{const _0x4542d5=_0x150cf9,_0x1813c0={'XEXRV':function(_0x2317e5,_0x21e062){const _0x4b8089=a14_0x1f35;return _0x1b3f09[_0x4b8089(0x15f)](_0x2317e5,_0x21e062);},'FtsUV':function(_0x410115,_0x15369f){const _0x673c73=a14_0x1f35;return _0x1b3f09[_0x673c73(0x15a)](_0x410115,_0x15369f);},'SCLCS':_0x1b3f09[_0x4542d5(0xb8)],'poFhF':function(_0x1ac943,_0x317911){const _0x190597=_0x4542d5;return _0x1b3f09[_0x190597(0x110)](_0x1ac943,_0x317911);},'ZloOA':_0x1b3f09[_0x4542d5(0x173)],'NmUMs':_0x1b3f09[_0x4542d5(0x155)],'FfaOk':function(_0xd02103,_0x1ca5a8){const _0x1392b7=_0x4542d5;return _0x1b3f09[_0x1392b7(0xc4)](_0xd02103,_0x1ca5a8);}};if(_0x1b3f09[_0x4542d5(0x177)](_0x1b3f09[_0x4542d5(0x169)],_0x1b3f09[_0x4542d5(0x169)])){const _0x2a9666={};_0x2a9666['apiVersion']=_0x1b3f09[_0x4542d5(0xb8)],_0x2a9666[_0x4542d5(0x19a)]=_0x19c97b;const _0x3ef0f0=new awsSDK[(_0x4542d5(0xe3))](_0x2a9666);_0x3ef0f0['describeVpcs'](_0x1cfb37)[_0x4542d5(0xc6)]()[_0x4542d5(0x9f)](_0x34d628=>{const _0x278fb3=_0x4542d5,_0x47d41b={'hzrgA':function(_0x5980d7,_0x1f0a02){const _0x5e99b0=a14_0x1f35;return _0x1b3f09[_0x5e99b0(0xc4)](_0x5980d7,_0x1f0a02);}};_0x1b3f09[_0x278fb3(0x177)](_0x1b3f09[_0x278fb3(0xde)],_0x1b3f09[_0x278fb3(0x192)])?_0x47d41b['hzrgA'](_0x2dd7a8,_0x3a2e2f):_0x1b3f09[_0x278fb3(0x15a)](_0x42720b,!![]);})[_0x4542d5(0x13f)](_0x2f92bb=>{const _0x26fddb=_0x4542d5;if(_0x1813c0['poFhF'](_0x1813c0[_0x26fddb(0x176)],_0x1813c0[_0x26fddb(0xdb)])){const _0x15f594={'Svmmn':function(_0x4161d1,_0xab321c){const _0x5c657d=_0x26fddb;return _0x1813c0[_0x5c657d(0x147)](_0x4161d1,_0xab321c);},'kECoX':function(_0x633498,_0x44fbb1){return _0x1813c0['FtsUV'](_0x633498,_0x44fbb1);}},_0x2ed24c={};_0x2ed24c['apiVersion']=_0x1813c0[_0x26fddb(0x175)],_0x2ed24c[_0x26fddb(0x19a)]=_0xe5d7c4;const _0x1aef9d=new _0x3c1c8d[(_0x26fddb(0xe3))](_0x2ed24c);_0x1aef9d[_0x26fddb(0x9a)]()[_0x26fddb(0xc6)]()[_0x26fddb(0x9f)](_0x2e5294=>{const _0x30f261=_0x26fddb;_0x15f594[_0x30f261(0x159)](_0x326977,_0x2e5294);})[_0x26fddb(0x13f)](_0x41a187=>{const _0x238ff0=_0x26fddb;_0x5db18f[_0x238ff0(0x14d)]('Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20'+_0x41a187),_0x15f594[_0x238ff0(0xdc)](_0x5205b2,_0x41a187);});}else logger['error'](_0x26fddb(0x16d)+_0x433c70+_0x26fddb(0x182)+_0x19c97b+_0x26fddb(0xe1)),_0x1813c0[_0x26fddb(0xcb)](_0x42720b,![]);});}else!this[_0x4542d5(0x1ad)]()&&this[_0x4542d5(0x1a2)]();});},exports['isSubnetsValid']=(_0x45e96d,_0x1cb611,_0x3cc11f)=>{const _0x1cf449=a14_0x3f5764,_0x422209={'gCjaC':function(_0x35d551,_0x1d2aeb){return _0x35d551(_0x1d2aeb);},'BHKQK':function(_0x4d0aa9,_0x109305){return _0x4d0aa9!==_0x109305;},'pwKTn':_0x1cf449(0xa5),'qHqUz':_0x1cf449(0x97),'mMCrn':'PmRAe','OvoLg':_0x1cf449(0xf3),'Aowlo':function(_0x4373de,_0x21f464){return _0x4373de===_0x21f464;},'EKyxn':_0x1cf449(0x123),'pAwsU':function(_0xd178c2,_0x363af2){return _0xd178c2(_0x363af2);},'MzDtH':'uqhYp','DzdTF':'iVvyx','GgRBy':function(_0x41a5ea,_0x5df968){return _0x41a5ea(_0x5df968);},'tVpjp':_0x1cf449(0xd2),'MpdMa':_0x1cf449(0x1a6),'GMfzs':function(_0x550201,_0x373ffb){return _0x550201(_0x373ffb);},'wmpVm':function(_0x5f01a3,_0x5d6831){return _0x5f01a3!==_0x5d6831;},'mybTu':'ZuQHh','ycpNy':_0x1cf449(0xae),'ZhOwg':_0x1cf449(0xce),'GLWBM':_0x1cf449(0xfa)},_0x470577={};_0x470577[_0x1cf449(0x100)]=_0x422209[_0x1cf449(0xf7)],_0x470577[_0x1cf449(0xad)]=[_0x1cb611];const _0x2e9ed7={};_0x2e9ed7['Filters']=[_0x470577];let _0x30c1bf=_0x2e9ed7;return new Promise((_0x195b71,_0x154d95)=>{const _0x54f46a=_0x1cf449,_0x36ffac={'PGBEY':function(_0x1e5c3f,_0x2afddb){return _0x422209['gCjaC'](_0x1e5c3f,_0x2afddb);},'hlign':function(_0xcbc241,_0x47e22f){const _0x28a078=a14_0x1f35;return _0x422209[_0x28a078(0x15d)](_0xcbc241,_0x47e22f);},'cyVOp':_0x422209[_0x54f46a(0xcd)],'WAUNs':_0x422209['qHqUz'],'DCpLw':_0x422209[_0x54f46a(0xa7)],'gtibd':_0x422209[_0x54f46a(0x194)],'EIGDy':function(_0x43b27f,_0x3705a0){const _0x5cf6ec=_0x54f46a;return _0x422209[_0x5cf6ec(0x10d)](_0x43b27f,_0x3705a0);},'ZtJPE':_0x422209['EKyxn'],'miryZ':function(_0x567a2c,_0x5cf626){const _0x50c4aa=_0x54f46a;return _0x422209[_0x50c4aa(0x15d)](_0x567a2c,_0x5cf626);},'rfFsY':function(_0x1ef361,_0x5ae446){return _0x422209['gCjaC'](_0x1ef361,_0x5ae446);},'TeaEM':function(_0x51a8a1,_0x2d562a){const _0x4c0015=_0x54f46a;return _0x422209[_0x4c0015(0x119)](_0x51a8a1,_0x2d562a);},'wfyQO':function(_0x4d8c2a,_0x38dcab){const _0xbff3a5=_0x54f46a;return _0x422209[_0xbff3a5(0x10d)](_0x4d8c2a,_0x38dcab);},'RHXhF':_0x422209[_0x54f46a(0x172)],'GTJjX':_0x422209['DzdTF'],'oPiQw':function(_0x341858,_0x1496ca){const _0xf76a5d=_0x54f46a;return _0x422209[_0xf76a5d(0x124)](_0x341858,_0x1496ca);},'QBvTo':function(_0x20908a,_0x1cb9b8){const _0x93abf3=_0x54f46a;return _0x422209[_0x93abf3(0x15d)](_0x20908a,_0x1cb9b8);},'fzTej':_0x422209[_0x54f46a(0x1af)],'PBdCP':_0x422209['MpdMa'],'qzOtU':function(_0x2d2014,_0x1431ef){const _0x1532f5=_0x54f46a;return _0x422209[_0x1532f5(0x164)](_0x2d2014,_0x1431ef);}};if(_0x422209[_0x54f46a(0x168)](_0x422209[_0x54f46a(0x19f)],_0x422209[_0x54f46a(0x151)])){const _0x3d6cde={};_0x3d6cde['apiVersion']=_0x422209[_0x54f46a(0x17b)],_0x3d6cde[_0x54f46a(0x19a)]=_0x3cc11f;const _0x5f21e5=new awsSDK[(_0x54f46a(0xe3))](_0x3d6cde);_0x5f21e5[_0x54f46a(0x90)](_0x30c1bf)[_0x54f46a(0xc6)]()[_0x54f46a(0x9f)](_0x33c765=>{const _0x120002=_0x54f46a,_0x4a2f62={'QehoI':function(_0x4f8dcf,_0x5e3a01){const _0xee16c5=a14_0x1f35;return _0x36ffac[_0xee16c5(0xe8)](_0x4f8dcf,_0x5e3a01);},'NDYTI':function(_0xa00cf,_0x386844){const _0x1bc813=a14_0x1f35;return _0x36ffac[_0x1bc813(0x99)](_0xa00cf,_0x386844);},'VqzlA':function(_0xa623f3,_0x2f2780){const _0x3aeac7=a14_0x1f35;return _0x36ffac[_0x3aeac7(0x16c)](_0xa623f3,_0x2f2780);},'DTNzB':function(_0x5119d8,_0x2d2a93){const _0x343e90=a14_0x1f35;return _0x36ffac[_0x343e90(0x13c)](_0x5119d8,_0x2d2a93);}};if(_0x36ffac['wfyQO'](_0x36ffac['RHXhF'],_0x36ffac['GTJjX']))_0x36ffac[_0x120002(0x180)](_0x5a6afa,_0x4a7836[_0x120002(0xfc)]);else{const _0x4855ff=[],_0x26ea4f=[];_0x33c765[_0x120002(0x1b2)]['forEach'](_0x29c9cb=>{const _0x39bc81=_0x120002;if(_0x36ffac[_0x39bc81(0x99)](_0x36ffac['cyVOp'],_0x36ffac['cyVOp']))return _0x25ece9[_0x39bc81(0xb3)](_0x10a74c)?!![]:(_0x405641['push'](_0x304e7d),![]);else _0x4855ff[_0x39bc81(0xa9)](_0x29c9cb[_0x39bc81(0x198)]);});const _0x37970d=_0x45e96d['every'](_0x410b3f=>{const _0x375dff=_0x120002,_0x2fafbb={'BpcWL':function(_0x115a81,_0x2b2d76){const _0xbecbfb=a14_0x1f35;return _0x36ffac[_0xbecbfb(0x180)](_0x115a81,_0x2b2d76);},'CsVYh':function(_0x31725a,_0x22de70){const _0x40fa6b=a14_0x1f35;return _0x36ffac[_0x40fa6b(0x180)](_0x31725a,_0x22de70);}};if(_0x36ffac[_0x375dff(0x99)](_0x36ffac[_0x375dff(0x160)],_0x36ffac[_0x375dff(0x160)]))_0x2fafbb['BpcWL'](_0x24ca8f,{});else{if(_0x4855ff['includes'](_0x410b3f)){if(_0x36ffac[_0x375dff(0x99)](_0x36ffac[_0x375dff(0x12a)],_0x36ffac[_0x375dff(0x10b)]))return!![];else _0x2fafbb[_0x375dff(0x130)](_0x5e2841,_0x644343);}else{if(_0x36ffac[_0x375dff(0xd4)](_0x36ffac['ZtJPE'],_0x36ffac[_0x375dff(0xd0)]))return _0x26ea4f['push'](_0x410b3f),![];else _0x4a2f62[_0x375dff(0x163)](_0x4c1108,_0x9f7e5a)&&_0x4a2f62[_0x375dff(0xb5)](_0x4105be[_0x375dff(0xfc)],_0x3db605)?_0x4a2f62[_0x375dff(0x122)](_0x411bdb,_0x5447ad[_0x375dff(0xfc)]):_0x4a2f62[_0x375dff(0xe4)](_0x433776,{});}}});_0x36ffac[_0x120002(0x16c)](_0x195b71,[_0x37970d,_0x26ea4f]);}})[_0x54f46a(0x13f)](_0x52eb31=>{const _0x267784=_0x54f46a,_0x10192c={'monlB':function(_0x87c379,_0x497a14){const _0x434106=a14_0x1f35;return _0x36ffac[_0x434106(0x12c)](_0x87c379,_0x497a14);}};_0x36ffac[_0x267784(0x96)](_0x36ffac[_0x267784(0xee)],_0x36ffac['PBdCP'])?(logger[_0x267784(0x14d)](_0x267784(0x183)+_0x1cb611+_0x267784(0x182)+_0x3cc11f+'.\x20Error:\x20'+_0x52eb31),_0x36ffac[_0x267784(0x154)](_0x195b71,[![],[]])):(_0x16c65d[_0x267784(0x14d)]('Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20'+_0x49b817),_0x10192c[_0x267784(0x189)](_0x585801,_0x474af1));});}else _0x1be821[_0x54f46a(0x14d)]('Cannot\x20find\x20subnets\x20'+_0x5934e1+_0x54f46a(0x182)+_0x4d7f5c+'.\x20Error:\x20'+_0x2cd763),_0x36ffac[_0x54f46a(0x154)](_0xfee87b,[![],[]]);});},exports[a14_0x3f5764(0xbd)]=_0x37ca8c=>{const _0x5282d1=a14_0x3f5764,_0x1b6dc4={'ExRyU':function(_0x166ae4,_0x2df3ba){return _0x166ae4(_0x2df3ba);},'iSkoM':function(_0x1fae19,_0x3f9c1b){return _0x1fae19!==_0x3f9c1b;},'KnzLv':_0x5282d1(0xaa),'WTRwl':function(_0x224ac0,_0xc49574){return _0x224ac0(_0xc49574);},'ruJhG':_0x5282d1(0xce),'VlpiI':function(_0x5333e9,_0x819d59){return _0x5333e9===_0x819d59;},'Cixlh':_0x5282d1(0x17a),'VjDfe':_0x5282d1(0x115),'aHxgy':function(_0x73a70,_0x39ce67){return _0x73a70!==_0x39ce67;},'UjUEj':_0x5282d1(0x1a8),'KvbdJ':_0x5282d1(0x174)},_0x3ecb38=new awsSDK['S3']();return new Promise((_0x1a38e8,_0x2668dd)=>{const _0x4400f3=_0x5282d1,_0x3eaa31={'wlFLg':function(_0x5c19f3,_0x40b2d5){const _0x15e0c9=a14_0x1f35;return _0x1b6dc4[_0x15e0c9(0x188)](_0x5c19f3,_0x40b2d5);},'zqZia':_0x1b6dc4[_0x4400f3(0xcf)],'aujlU':function(_0xc37f41,_0x4ed7f3){return _0x1b6dc4['WTRwl'](_0xc37f41,_0x4ed7f3);},'GhKsX':_0x1b6dc4[_0x4400f3(0x1a3)],'BUMVs':function(_0x2f7d71,_0x3d946f){const _0x3523eb=_0x4400f3;return _0x1b6dc4[_0x3523eb(0x13e)](_0x2f7d71,_0x3d946f);},'zMjAM':_0x1b6dc4[_0x4400f3(0xfb)],'AznZa':_0x1b6dc4[_0x4400f3(0xbb)]};if(_0x1b6dc4[_0x4400f3(0x104)](_0x1b6dc4[_0x4400f3(0xf8)],_0x1b6dc4['KvbdJ'])){const _0x4d78f7={};_0x4d78f7[_0x4400f3(0xc0)]=_0x37ca8c,_0x3ecb38['headBucket'](_0x4d78f7)[_0x4400f3(0xc6)]()['then'](_0x32d6fa=>{const _0x4da05e=_0x4400f3;if(_0x3eaa31[_0x4da05e(0x193)](_0x3eaa31['zqZia'],_0x3eaa31[_0x4da05e(0x102)]))return!![];else logger[_0x4da05e(0x13d)](_0x4da05e(0x10c)+_0x37ca8c+_0x4da05e(0xe9)),_0x3eaa31[_0x4da05e(0xb2)](_0x1a38e8,!![]);})['catch'](()=>{const _0x26e63d=_0x4400f3,_0xa25c4a={'BdkYM':function(_0x2f94f0,_0x1180d9){const _0x737e8a=a14_0x1f35;return _0x3eaa31[_0x737e8a(0xb2)](_0x2f94f0,_0x1180d9);},'VHPYD':_0x3eaa31['GhKsX']};if(_0x3eaa31[_0x26e63d(0xc9)](_0x3eaa31[_0x26e63d(0xb7)],_0x3eaa31[_0x26e63d(0xc8)])){const _0x1565b7={'zhgcw':function(_0x1d0b2d,_0x5cf210){const _0x234fb8=_0x26e63d;return _0xa25c4a[_0x234fb8(0x149)](_0x1d0b2d,_0x5cf210);},'cjPIA':function(_0x88e91d,_0x1aa946){return _0xa25c4a['BdkYM'](_0x88e91d,_0x1aa946);},'zjoEh':_0xa25c4a[_0x26e63d(0xfe)]};return new _0x5a1a7f((_0x48dab0,_0x5d350c)=>{const _0x14f407=_0x26e63d,_0x4d2afa={'MLNMs':function(_0x1c1470,_0x12c30d){const _0x55c55e=a14_0x1f35;return _0x1565b7[_0x55c55e(0xa8)](_0x1c1470,_0x12c30d);}},_0x2e4adb={};_0x2e4adb[_0x14f407(0x15e)]=_0x1565b7[_0x14f407(0x171)],_0x2e4adb['region']=_0x33168e;const _0x175ae3=new _0x34612c[(_0x14f407(0xe3))](_0x2e4adb);_0x175ae3[_0x14f407(0x90)]()[_0x14f407(0xc6)]()[_0x14f407(0x9f)](_0x4c5992=>{const _0x46a2ab=_0x14f407;_0x1565b7[_0x46a2ab(0x190)](_0x48dab0,_0x4c5992);})['catch'](_0x343967=>{const _0xa71b57=_0x14f407;_0xdcf4aa['error'](_0xa71b57(0x12d)+_0x343967),_0x4d2afa[_0xa71b57(0x105)](_0x5d350c,_0x343967);});});}else logger[_0x26e63d(0x9d)]('Bucket:\x20'+_0x37ca8c+'\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket'),_0x3eaa31[_0x26e63d(0xb2)](_0x1a38e8,![]);});}else _0x271d49[_0x4400f3(0x93)][_0x4400f3(0xb3)](_0x54cb33)&&_0x1b6dc4[_0x4400f3(0x1ac)](_0x8aaa11,!![]),_0x1b6dc4[_0x4400f3(0x1ac)](_0x452400,![]);});},exports[a14_0x3f5764(0x129)]=_0x2864fa=>{const _0x34107f=a14_0x3f5764,_0x1108aa={'WSqzU':function(_0x1c1320,_0xf3e4b2){return _0x1c1320(_0xf3e4b2);},'YdXkD':_0x34107f(0xce),'rGcVG':function(_0x323de8,_0x44d493){return _0x323de8(_0x44d493);},'kjMbm':function(_0x301586,_0x2f6389){return _0x301586===_0x2f6389;},'CFNPb':_0x34107f(0x16a),'hsTOV':_0x34107f(0x153),'ndnWY':_0x34107f(0x114),'hJibd':function(_0x38fa6b,_0x1b7d42){return _0x38fa6b!==_0x1b7d42;},'kPNtM':_0x34107f(0xea),'YDwWh':'lccRh'};return new Promise((_0x3295cb,_0x30ef30)=>{const _0x5445a2=_0x34107f,_0x14e082={'dIKZG':function(_0x9d5662,_0x5c04be){return _0x1108aa['rGcVG'](_0x9d5662,_0x5c04be);},'VSYjk':function(_0x29f174,_0x2a0de4){const _0x4365eb=a14_0x1f35;return _0x1108aa[_0x4365eb(0x1ae)](_0x29f174,_0x2a0de4);},'zturq':_0x1108aa[_0x5445a2(0x17c)],'GdkDS':_0x1108aa[_0x5445a2(0xa6)],'aoJAY':_0x1108aa[_0x5445a2(0x11c)]};if(_0x1108aa['hJibd'](_0x1108aa[_0x5445a2(0xfd)],_0x1108aa['YDwWh'])){const _0x1aae18={};_0x1aae18[_0x5445a2(0x15e)]=_0x1108aa[_0x5445a2(0x94)],_0x1aae18[_0x5445a2(0x19a)]=_0x2864fa;const _0x534d4e=new awsSDK[(_0x5445a2(0xe3))](_0x1aae18);_0x534d4e[_0x5445a2(0x90)]()[_0x5445a2(0xc6)]()['then'](_0x3e41a7=>{const _0x35a96e=_0x5445a2,_0x3c5fd1={'AaTuR':function(_0x209ff9,_0x3275b5){return _0x14e082['dIKZG'](_0x209ff9,_0x3275b5);}};_0x14e082[_0x35a96e(0xd5)](_0x14e082[_0x35a96e(0x1a7)],_0x14e082[_0x35a96e(0x178)])?(_0x16e322[_0x35a96e(0x14d)](_0x133fa1),_0x3c5fd1[_0x35a96e(0x142)](_0x2b3f01,_0x5ee90b)):_0x14e082['dIKZG'](_0x3295cb,_0x3e41a7);})[_0x5445a2(0x13f)](_0x1d5630=>{const _0x52f9a4=_0x5445a2,_0x2d1386={'UYJuZ':function(_0x5a389a,_0x33bfbb){const _0x2532f5=a14_0x1f35;return _0x14e082[_0x2532f5(0x1b4)](_0x5a389a,_0x33bfbb);}};if(_0x14e082[_0x52f9a4(0xd5)](_0x14e082[_0x52f9a4(0x187)],_0x14e082['aoJAY']))logger[_0x52f9a4(0x14d)](_0x52f9a4(0x12d)+_0x1d5630),_0x14e082[_0x52f9a4(0x1b4)](_0x30ef30,_0x1d5630);else return this['configureAWSIfNotConfigured'](),_0x2d1386['UYJuZ'](_0x3a2582,_0x3be698);});}else{const _0x223d85={'YUKNK':function(_0x10292a,_0x19325f){const _0x5a46af=_0x5445a2;return _0x1108aa[_0x5a46af(0x18b)](_0x10292a,_0x19325f);}},_0x1708ba={};_0x1708ba[_0x5445a2(0x15e)]=_0x1108aa[_0x5445a2(0x94)],_0x1708ba[_0x5445a2(0x19a)]=_0x5cec73;const _0x34a30e=new _0x390350[(_0x5445a2(0xe3))](_0x1708ba);_0x34a30e['describeVpcs'](_0x3d8566)[_0x5445a2(0xc6)]()[_0x5445a2(0x9f)](_0x57beaa=>{const _0x9919c6=_0x5445a2;_0x14e082[_0x9919c6(0x1b4)](_0x12b1e2,!![]);})[_0x5445a2(0x13f)](_0x45b4b1=>{const _0x1c1e1f=_0x5445a2;_0x1d0a4c[_0x1c1e1f(0x14d)](_0x1c1e1f(0x16d)+_0x2340c0+_0x1c1e1f(0x182)+_0x5ebdd3+'.\x20Please\x20Check\x20and\x20try\x20again'),_0x223d85[_0x1c1e1f(0x161)](_0x3c88ae,![]);});}});},exports[a14_0x3f5764(0x184)]=_0x82b958=>{const _0x163863=a14_0x3f5764,_0x47d915={'OnJkc':function(_0x4e3f4c,_0x1e094e){return _0x4e3f4c(_0x1e094e);},'pDEwK':function(_0x3badc6,_0x59ac63){return _0x3badc6===_0x59ac63;},'zUAZG':'ciCSF','CseTY':'iMdPv','szEYK':_0x163863(0xce),'EJAQH':function(_0x24ad7b,_0x25b460){return _0x24ad7b!==_0x25b460;},'zkMVS':_0x163863(0xbc),'CVsLK':_0x163863(0x88),'jInWR':function(_0x4168f3,_0x1aa910){return _0x4168f3(_0x1aa910);},'lizyj':function(_0x42a679,_0x23b232){return _0x42a679===_0x23b232;},'XwJfd':_0x163863(0xac),'DeARP':'axApY'};return new Promise((_0x3ef3c2,_0x3cf8f3)=>{const _0x26e712=_0x163863,_0x18cab1={'CSCTP':function(_0x1395e9,_0x57da1f){const _0x2dbf2c=a14_0x1f35;return _0x47d915[_0x2dbf2c(0xf6)](_0x1395e9,_0x57da1f);},'KrEBg':function(_0x5e86a2,_0x1536fa){const _0x49a916=a14_0x1f35;return _0x47d915[_0x49a916(0xf6)](_0x5e86a2,_0x1536fa);},'FMPZo':_0x47d915[_0x26e712(0x166)],'PlUZu':function(_0x5a1179,_0x2d6222){const _0x17ae58=_0x26e712;return _0x47d915[_0x17ae58(0x1a9)](_0x5a1179,_0x2d6222);},'OyQIR':_0x47d915['zkMVS'],'jjNAx':_0x47d915[_0x26e712(0xf4)],'aLZiL':function(_0x3997f4,_0x44a745){return _0x47d915['jInWR'](_0x3997f4,_0x44a745);}};if(_0x47d915[_0x26e712(0xa4)](_0x47d915[_0x26e712(0x132)],_0x47d915[_0x26e712(0xa3)]))_0x38ef65[_0x26e712(0x13d)]('Bucket:\x20'+_0x5329ae+_0x26e712(0xe9)),_0x47d915[_0x26e712(0xf6)](_0x1e5efa,!![]);else{const _0x3d29fe={};_0x3d29fe[_0x26e712(0x15e)]=_0x47d915['szEYK'],_0x3d29fe[_0x26e712(0x19a)]=_0x82b958;const _0xc919c0=new awsSDK[(_0x26e712(0xe3))](_0x3d29fe);_0xc919c0['describeSecurityGroups']()[_0x26e712(0xc6)]()[_0x26e712(0x9f)](_0x58dddb=>{const _0x1fc822=_0x26e712;_0x47d915['pDEwK'](_0x47d915[_0x1fc822(0xb9)],_0x47d915[_0x1fc822(0x133)])?_0x18cab1['CSCTP'](_0x4ffe1d,!![]):_0x47d915[_0x1fc822(0xf6)](_0x3ef3c2,_0x58dddb);})[_0x26e712(0x13f)](_0xc663ed=>{const _0x24f814=_0x26e712,_0x4a7044={'CoVBs':function(_0x167033,_0x575eaa){const _0x4acf90=a14_0x1f35;return _0x18cab1[_0x4acf90(0x106)](_0x167033,_0x575eaa);}};if(_0x18cab1['PlUZu'](_0x18cab1[_0x24f814(0x148)],_0x18cab1[_0x24f814(0x1a5)]))logger[_0x24f814(0x14d)](_0x24f814(0x8a)+_0xc663ed),_0x18cab1[_0x24f814(0x125)](_0x3cf8f3,_0xc663ed);else{const _0x5c6b25={'GeFZW':function(_0x37c58c,_0x5852de){const _0x29ec4d=_0x24f814;return _0x18cab1[_0x29ec4d(0x106)](_0x37c58c,_0x5852de);}},_0x55b44b={};_0x55b44b['apiVersion']=_0x18cab1[_0x24f814(0x13a)],_0x55b44b[_0x24f814(0x19a)]=_0x14e460;const _0x2cb9c1=new _0x5a6ead[(_0x24f814(0xe3))](_0x55b44b);_0x2cb9c1[_0x24f814(0x90)]()[_0x24f814(0xc6)]()[_0x24f814(0x9f)](_0x2fc93d=>{const _0x5020a4=_0x24f814;_0x5c6b25[_0x5020a4(0x10a)](_0x15ad56,_0x2fc93d);})[_0x24f814(0x13f)](_0xc3f831=>{const _0x177e3f=_0x24f814;_0x3c4b0a['error'](_0x177e3f(0x12d)+_0xc3f831),_0x4a7044[_0x177e3f(0x8b)](_0x3ad510,_0xc3f831);});}});}});},exports[a14_0x3f5764(0x1a0)]=()=>{const _0x5507ee=a14_0x3f5764,_0xaef951={'nDWKy':function(_0xb68438,_0x31dc4a){return _0xb68438(_0x31dc4a);},'pzSbY':function(_0x1f953d,_0x4e3f56){return _0x1f953d===_0x4e3f56;},'pwNjT':_0x5507ee(0x98),'JHpdE':_0x5507ee(0x16e),'SCdkl':function(_0x5571c5,_0x30ad32){return _0x5571c5!==_0x30ad32;},'WeNiG':function(_0x532f09,_0x5aee00){return _0x532f09!==_0x5aee00;},'ExUib':_0x5507ee(0x103),'jdyZH':_0x5507ee(0xd8),'NXxSt':function(_0x1b9ee2,_0x183176){return _0x1b9ee2(_0x183176);},'PJVXd':function(_0x2b54f8,_0x5a2190){return _0x2b54f8===_0x5a2190;},'IwZxT':'lXdZX','sdUWf':'CDkql','rUVts':function(_0x4a9cc8,_0x2e4583){return _0x4a9cc8(_0x2e4583);},'pgEsr':function(_0x1e72f4,_0x2821d0){return _0x1e72f4(_0x2821d0);},'UMbkQ':function(_0x47f615,_0x34394c){return _0x47f615===_0x34394c;},'ReeuI':_0x5507ee(0xda),'ZaDnX':_0x5507ee(0x1b3),'ykiat':_0x5507ee(0xe0),'pgLce':_0x5507ee(0xce)};return new Promise((_0x3cf09a,_0x4f2e4d)=>{const _0x27d22c=_0x5507ee,_0x42a415={'TmLnN':function(_0x55cf95,_0x14c2be){const _0x3b8f4e=a14_0x1f35;return _0xaef951[_0x3b8f4e(0xd3)](_0x55cf95,_0x14c2be);},'NJnln':function(_0x3e5434,_0x1bec94){const _0x5838f3=a14_0x1f35;return _0xaef951[_0x5838f3(0x8c)](_0x3e5434,_0x1bec94);},'bIZdu':function(_0x3e6e32,_0x18214f){const _0x189c95=a14_0x1f35;return _0xaef951[_0x189c95(0x17d)](_0x3e6e32,_0x18214f);},'MpZmj':_0xaef951['ReeuI']};if(_0xaef951['SCdkl'](_0xaef951['ZaDnX'],_0xaef951[_0x27d22c(0xbe)])){const _0x589c90={};_0x589c90[_0x27d22c(0x15e)]=_0xaef951[_0x27d22c(0x1a1)];const _0x2e65d5=new awsSDK[(_0x27d22c(0xe3))](_0x589c90);_0x2e65d5[_0x27d22c(0x107)]()['promise']()[_0x27d22c(0x9f)]((_0x579568,_0x21f307)=>{const _0x475ebd=_0x27d22c,_0x46dec9={'SJiWO':function(_0x293fa8,_0x85c82d){const _0xc231d7=a14_0x1f35;return _0xaef951[_0xc231d7(0x12e)](_0x293fa8,_0x85c82d);}};if(_0xaef951[_0x475ebd(0x170)](_0xaef951['pwNjT'],_0xaef951['JHpdE'])){if(_0x42a415[_0x475ebd(0x135)](_0x58491d,_0x5986c8))return this[_0x475ebd(0x17e)](),_0x42a415[_0x475ebd(0x135)](_0x495fba,_0x24dcd5);}else{if(_0xaef951[_0x475ebd(0xd9)](_0x579568,undefined)&&_0xaef951['WeNiG'](_0x579568[_0x475ebd(0xfc)],undefined))_0xaef951[_0x475ebd(0x18d)](_0xaef951[_0x475ebd(0xca)],_0xaef951[_0x475ebd(0x113)])?_0xaef951['NXxSt'](_0x3cf09a,_0x579568[_0x475ebd(0xfc)]):(_0x457f3a[_0x475ebd(0x14d)]('Failed\x20to\x20fetch\x20AWS\x20Regions\x20due\x20to\x20error:\x20'+_0x56fa7a),_0x46dec9[_0x475ebd(0xf5)](_0x3b4694,_0x49d946));else{if(_0xaef951[_0x475ebd(0x137)](_0xaef951[_0x475ebd(0xab)],_0xaef951['sdUWf']))return!![];else _0xaef951[_0x475ebd(0x8c)](_0x3cf09a,{});}}})[_0x27d22c(0x13f)](_0x287968=>{const _0x34300a=_0x27d22c;_0x42a415[_0x34300a(0x14e)](_0x42a415[_0x34300a(0xf9)],_0x42a415[_0x34300a(0xf9)])?(logger[_0x34300a(0x14d)](_0x34300a(0x91)+_0x287968),_0x42a415[_0x34300a(0xec)](_0x4f2e4d,_0x287968)):_0x42a415[_0x34300a(0xec)](_0x372efc,_0x1d5021);});}else _0x2148ec[_0x27d22c(0x14d)]('Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20'+_0x14ae0a),_0x42a415[_0x27d22c(0x135)](_0x632f64,_0xe29303);});},exports[a14_0x3f5764(0x1ad)]=()=>{const _0xfb99a4=a14_0x3f5764,_0x1ba07e={};_0x1ba07e[_0xfb99a4(0x14a)]=function(_0x5f24a4,_0x132fa7){return _0x5f24a4===_0x132fa7;};const _0x16f1d7=_0x1ba07e;return _0x16f1d7[_0xfb99a4(0x14a)](global_registry[_0xfb99a4(0x18c)],!![]);},exports['setAWSConfig']=()=>{const _0x36e92f=a14_0x3f5764,_0x339a4b={};_0x339a4b[_0x36e92f(0x19a)]=global_registry[_0x36e92f(0x140)],_0x339a4b[_0x36e92f(0x195)]=global_registry[_0x36e92f(0xf1)],_0x339a4b['secretAccessKey']=global_registry[_0x36e92f(0x19d)],awsSDK['config']['update'](_0x339a4b),global_registry[_0x36e92f(0x18c)]=!![];},exports[a14_0x3f5764(0x136)]=awsSDK;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a15_0x1228(){const _0x191d8b=['419988IlCnvz','Resources','2391516oazcRV','Capabilities','CAPABILITY_NAMED_IAM','Parameters','apiVersion','FsFfB','bTovN','promise','Waiting\x20for\x20CloudFormation\x20stack\x20to\x20complete','push','../config/logger','templates','edFeg','DELETE','512170kPXjMi','StackName','path','5XRZdCO','2010-05-15','awsObj','OnFailure','valueOf','VINdt','schema','StackId','56nVSNWd','378854SgSwvu','createStack','Tags','toString','ZPMGi','LgFsf','join','autoscaler-role-creation.yaml','226518EHEjux','3yLiXQv','waitFor','Key','168996nYoMGG','./AWSUtils','stringify','LCVMP','bluebird','171xyPeNU','22paDzAt','browserstack:cluster','vERIs','ClusterName','1679462aVCDQk','readFileAsync','gFwSR','Properties'];a15_0x1228=function(){return _0x191d8b;};return a15_0x1228();}const a15_0x20e424=a15_0x2967;function a15_0x2967(_0x146892,_0x4f9ef2){const _0x1228c6=a15_0x1228();return a15_0x2967=function(_0x2967e6,_0x16d044){_0x2967e6=_0x2967e6-0x99;let _0xf28615=_0x1228c6[_0x2967e6];return _0xf28615;},a15_0x2967(_0x146892,_0x4f9ef2);}(function(_0x58721b,_0x444594){const _0x39be50=a15_0x2967,_0x10e469=_0x58721b();while(!![]){try{const _0x54836f=-parseInt(_0x39be50(0xcb))/0x1+-parseInt(_0x39be50(0xa3))/0x2*(-parseInt(_0x39be50(0xcc))/0x3)+parseInt(_0x39be50(0xa7))/0x4*(parseInt(_0x39be50(0xba))/0x5)+parseInt(_0x39be50(0xa9))/0x6+parseInt(_0x39be50(0xc3))/0x7*(parseInt(_0x39be50(0xc2))/0x8)+parseInt(_0x39be50(0x9e))/0x9*(-parseInt(_0x39be50(0xb7))/0xa)+-parseInt(_0x39be50(0x9f))/0xb*(parseInt(_0x39be50(0x99))/0xc);if(_0x54836f===_0x444594)break;else _0x10e469['push'](_0x10e469['shift']());}catch(_0x14e55d){_0x10e469['push'](_0x10e469['shift']());}}}(a15_0x1228,0x78b19));const fs=require('fs'),path=require(a15_0x20e424(0xb9)),yaml=require('js-yaml'),{CLOUDFORMATION_SCHEMA}=require('js-yaml-cloudformation-schema'),Promise=require(a15_0x20e424(0x9d)),AWS=require(a15_0x20e424(0x9a))[a15_0x20e424(0xbc)],{CLUSTER_AUTOSCALER_STACK_NAME,COMMON_HST_TAGS}=require('../config/constants'),{logger}=require(a15_0x20e424(0xb3));Promise['promisifyAll'](fs),addAutoscalerTags=async(_0x5a2d8f,_0x581a6b,_0x2dafec)=>{const _0x3a686b=a15_0x20e424;for(let _0x2e0ca9 in _0x5a2d8f[_0x3a686b(0xa8)]){_0x5a2d8f[_0x3a686b(0xa8)][_0x2e0ca9][_0x3a686b(0xa6)]&&_0x5a2d8f[_0x3a686b(0xa8)][_0x2e0ca9][_0x3a686b(0xa6)]['Tags']&&_0x5a2d8f[_0x3a686b(0xa8)][_0x2e0ca9]['Properties'][_0x3a686b(0xc5)][_0x3a686b(0xb2)](..._0x2dafec);}},exports['createAutoscalerStack']=async _0x1fdd8a=>{const _0xcc8445=a15_0x20e424,_0x1df35b={'LCVMP':_0xcc8445(0xa0),'lzxoL':'browserstack:creationDate','edFeg':_0xcc8445(0xbb),'ZPMGi':_0xcc8445(0xb4),'LgFsf':_0xcc8445(0xca),'FsFfB':'utf-8','gFwSR':function(_0x3cc1be,_0x3c2a59,_0x4ea64e,_0x3df77a){return _0x3cc1be(_0x3c2a59,_0x4ea64e,_0x3df77a);},'bEDPL':_0xcc8445(0xb6),'VINdt':_0xcc8445(0xa2),'bTovN':_0xcc8445(0xab),'vERIs':'stackCreateComplete'},_0x1086e5=COMMON_HST_TAGS,_0x8cf471={};_0x8cf471[_0xcc8445(0xce)]=_0x1df35b[_0xcc8445(0x9c)],_0x8cf471['Value']=_0x1fdd8a,_0x1086e5[_0xcc8445(0xb2)](_0x8cf471),_0x1086e5[_0xcc8445(0xb2)]({'Key':_0x1df35b['lzxoL'],'Value':new Date()[_0xcc8445(0xbe)]()[_0xcc8445(0xc6)]()});const _0x1afc36={};_0x1afc36[_0xcc8445(0xad)]=_0x1df35b[_0xcc8445(0xb5)];const _0x2fcccf=new AWS['CloudFormation'](_0x1afc36),_0x2166da=await fs[_0xcc8445(0xa4)](path[_0xcc8445(0xc9)](__dirname,'..',_0x1df35b[_0xcc8445(0xc7)],_0x1df35b[_0xcc8445(0xc8)]),_0x1df35b[_0xcc8445(0xae)]),_0xa6639a={};_0xa6639a[_0xcc8445(0xc0)]=CLOUDFORMATION_SCHEMA;const _0x514b8a=yaml['load'](_0x2166da,_0xa6639a);_0x1df35b[_0xcc8445(0xa5)](addAutoscalerTags,_0x514b8a,_0x1fdd8a,_0x1086e5);const _0x41c1a9=JSON[_0xcc8445(0x9b)](_0x514b8a),_0x4dbc13={};_0x4dbc13[_0xcc8445(0xb8)]=CLUSTER_AUTOSCALER_STACK_NAME,_0x4dbc13[_0xcc8445(0xbd)]=_0x1df35b['bEDPL'],_0x4dbc13['TemplateBody']=_0x41c1a9,_0x4dbc13[_0xcc8445(0xac)]=[{'ParameterKey':_0x1df35b[_0xcc8445(0xbf)],'ParameterValue':_0x1fdd8a}],_0x4dbc13[_0xcc8445(0xaa)]=[_0x1df35b[_0xcc8445(0xaf)]],_0x4dbc13[_0xcc8445(0xc5)]=_0x1086e5;const _0x52a3af=_0x4dbc13,_0x26a4ba=await _0x2fcccf[_0xcc8445(0xc4)](_0x52a3af)[_0xcc8445(0xb0)]();logger['debug'](_0xcc8445(0xb1));const _0x4ff0c6={};return _0x4ff0c6[_0xcc8445(0xb8)]=_0x26a4ba[_0xcc8445(0xc1)],_0x2fcccf[_0xcc8445(0xcd)](_0x1df35b[_0xcc8445(0xa1)],_0x4ff0c6)[_0xcc8445(0xb0)]();};
|