browserstack-node-sdk 1.34.29 → 1.34.31
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/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- 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/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.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/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.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-observability.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/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.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/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/accessibility-helper.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/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.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/playwright/sessionDetails.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/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.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/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/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15_0x468088=a15_0x1cb3;(function(_0x400dac,_0xe88768){const _0x2dea4d=a15_0x1cb3,_0x506909=_0x400dac();while(!![]){try{const _0x157510=parseInt(_0x2dea4d(0x1d1))/0x1+-parseInt(_0x2dea4d(0x1d8))/0x2+parseInt(_0x2dea4d(0x1b3))/0x3+-parseInt(_0x2dea4d(0x1d3))/0x4+parseInt(_0x2dea4d(0x1a5))/0x5+parseInt(_0x2dea4d(0x1a6))/0x6+-parseInt(_0x2dea4d(0x1e8))/0x7*(parseInt(_0x2dea4d(0x1c8))/0x8);if(_0x157510===_0xe88768)break;else _0x506909['push'](_0x506909['shift']());}catch(_0x40c250){_0x506909['push'](_0x506909['shift']());}}}(a15_0x3695,0x716d2));const fs=require('fs'),got=require('got'),{table}=require(a15_0x468088(0x1e6)),{v4:uuidv4}=require(a15_0x468088(0x1d0)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x468088(0x1f5)),{getCredentialsPath,getAuthHeader}=require(a15_0x468088(0x1bc)),{sendInstrumentationEvent}=require(a15_0x468088(0x1de));exports[a15_0x468088(0x1ec)]=a15_0x468088(0x1be),exports['desc']=a15_0x468088(0x1c0),exports[a15_0x468088(0x1e5)]=function(_0x4929ee){const _0x5736a4=a15_0x468088,_0x277d50={};_0x277d50[_0x5736a4(0x1aa)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x277d50[_0x5736a4(0x1d9)]='boolean',_0x277d50['jghSn']=_0x5736a4(0x1d5);const _0x4acd2a=_0x277d50,_0x4c6296={};_0x4c6296['description']=_0x4acd2a[_0x5736a4(0x1aa)],_0x4c6296[_0x5736a4(0x1cd)]=_0x4acd2a['BHjxc'];const _0x2815e={};return _0x2815e[_0x5736a4(0x1bf)]=_0x4c6296,_0x4929ee[_0x5736a4(0x1ba)](HELP_HEADER_MESSAGE[_0x5736a4(0x1e7)][_0x5736a4(0x1c9)])[_0x5736a4(0x1e3)](HELP_FOOTER_MESSAGE)[_0x5736a4(0x1e0)](_0x2815e)[_0x5736a4(0x1d5)](_0x4acd2a['jghSn'])[_0x5736a4(0x1c5)];},exports[a15_0x468088(0x1f2)]=async function(_0x316f39){const _0x1c26a0=a15_0x468088,_0xdbded7={'moGGD':function(_0x3a4229){return _0x3a4229();},'GMZlv':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','wnVod':function(_0x5bc751,_0x1db099,_0x4731c5,_0x39dfe7,_0x15e60e,_0x1ea692,_0x198802){return _0x5bc751(_0x1db099,_0x4731c5,_0x39dfe7,_0x15e60e,_0x1ea692,_0x198802);},'BXZpu':'list-grids-called','GlTYb':_0x1c26a0(0x1cc),'ohCBR':function(_0x838495){return _0x838495();},'aWuqL':_0x1c26a0(0x1b6),'KHBtf':function(_0x54e2ed,_0x7fca8f,_0x19c51f){return _0x54e2ed(_0x7fca8f,_0x19c51f);},'SNoKx':function(_0x4f2358,_0x49d404,_0x4bc9c6,_0x2346cd,_0x2bddad,_0x1f79dd,_0x4ef3b0){return _0x4f2358(_0x49d404,_0x4bc9c6,_0x2346cd,_0x2bddad,_0x1f79dd,_0x4ef3b0);},'wIEdm':function(_0x2abca1,_0x575bd8,_0x4f1583){return _0x2abca1(_0x575bd8,_0x4f1583);},'sUURW':function(_0x16ec46,_0x5824d2){return _0x16ec46!==_0x5824d2;},'FdpCg':function(_0x14bff2,_0x2669d2){return _0x14bff2===_0x2669d2;},'HXaKa':_0x1c26a0(0x1ae),'gnMOk':_0x1c26a0(0x1ea),'mMgcb':'grid-name','KTtxc':_0x1c26a0(0x1d7),'dMAXa':_0x1c26a0(0x1da),'umGdK':_0x1c26a0(0x1a9),'jNieK':'cluster-name','NWIwI':function(_0x13b820,_0x7f9bd8){return _0x13b820(_0x7f9bd8);},'qTyvD':function(_0x574f99,_0xb4028e){return _0x574f99===_0xb4028e;},'uENTR':_0x1c26a0(0x1f0),'rKGta':function(_0x429aef,_0x54da39,_0x20572f,_0x202be3,_0x2d8ce5,_0xfd6774,_0x579b2d){return _0x429aef(_0x54da39,_0x20572f,_0x202be3,_0x2d8ce5,_0xfd6774,_0x579b2d);},'KeviT':_0x1c26a0(0x1dd),'TeusM':_0x1c26a0(0x1a1),'dPnQL':function(_0x180f29,_0x46e12f,_0x5d4c6d,_0x39c046,_0x51205b,_0x14392a,_0x5ebf5d){return _0x180f29(_0x46e12f,_0x5d4c6d,_0x39c046,_0x51205b,_0x14392a,_0x5ebf5d);},'gUDAq':_0x1c26a0(0x1ac)};try{global_registry[_0x1c26a0(0x1c7)]=_0xdbded7[_0x1c26a0(0x1d4)](uuidv4);!fs[_0x1c26a0(0x1c3)](_0xdbded7[_0x1c26a0(0x1d4)](getCredentialsPath))&&(console[_0x1c26a0(0x1ab)](_0xdbded7[_0x1c26a0(0x1b4)]),await _0xdbded7[_0x1c26a0(0x1a4)](sendInstrumentationEvent,_0x316f39,_0xdbded7[_0x1c26a0(0x1bb)],messageTypes[_0x1c26a0(0x1a2)],_0xdbded7[_0x1c26a0(0x1f1)],null,_0x316f39),process['exit'](0x1));const _0x4e684a=JSON[_0x1c26a0(0x1c6)](fs[_0x1c26a0(0x1e2)](_0xdbded7[_0x1c26a0(0x1f3)](getCredentialsPath)));let _0x299205=_0x1c26a0(0x1bd)+AG_API_URL+'/packages/cli/get-grids';_0x316f39[_0x1c26a0(0x1c1)]&&(_0x299205=_0x1c26a0(0x1bd)+AG_API_URL+'/packages/cli/get-all-grids');const _0x11ca40={'method':_0xdbded7[_0x1c26a0(0x1db)],'headers':_0xdbded7[_0x1c26a0(0x1ed)](getAuthHeader,_0x4e684a[_0x1c26a0(0x1c4)][_0x1c26a0(0x1d6)],_0x4e684a[_0x1c26a0(0x1c4)][_0x1c26a0(0x1c2)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x4e684a[_0x1c26a0(0x1c4)][_0x1c26a0(0x1d6)],global_registry['bstackAccesskey']=_0x4e684a[_0x1c26a0(0x1c4)][_0x1c26a0(0x1c2)],_0xdbded7[_0x1c26a0(0x1cf)](sendInstrumentationEvent,_0x316f39,_0xdbded7[_0x1c26a0(0x1bb)],messageTypes[_0x1c26a0(0x1f6)],null,null,_0x316f39);const _0x2339b9=await _0xdbded7['wIEdm'](got,_0x299205,_0x11ca40);if(_0xdbded7[_0x1c26a0(0x1b2)](_0x2339b9,null)&&_0xdbded7[_0x1c26a0(0x1b2)](_0x2339b9,undefined)&&_0xdbded7[_0x1c26a0(0x1ca)](_0x2339b9[_0x1c26a0(0x1e9)],0xc8)){const _0x2c0056=JSON[_0x1c26a0(0x1c6)](_0x2339b9[_0x1c26a0(0x1b1)]);console[_0x1c26a0(0x1a7)](_0xdbded7[_0x1c26a0(0x1cb)]);const _0x4a2037=[];_0x4a2037[_0x1c26a0(0x1b0)]([_0xdbded7[_0x1c26a0(0x1eb)],_0xdbded7['mMgcb'],_0xdbded7['KTtxc'],_0xdbded7[_0x1c26a0(0x1ef)],_0xdbded7[_0x1c26a0(0x1e1)],_0xdbded7[_0x1c26a0(0x1ee)]]),_0x2c0056['forEach'](_0x214237=>{const _0x30c7b6=_0x1c26a0;_0x4a2037[_0x30c7b6(0x1b0)]([_0x214237['id'],_0x214237[_0x30c7b6(0x1a3)],_0x214237[_0x30c7b6(0x1d7)],_0x214237['running'],_0x214237[_0x30c7b6(0x1a9)],_0x214237[_0x30c7b6(0x1dc)]]);}),console[_0x1c26a0(0x1a7)](_0xdbded7[_0x1c26a0(0x1b9)](table,_0x4a2037)),process['exit'](0x0);}_0xdbded7[_0x1c26a0(0x1ad)](_0x2339b9[_0x1c26a0(0x1e9)],0x191)&&(console['error'](_0xdbded7[_0x1c26a0(0x1b8)]),await _0xdbded7['rKGta'](sendInstrumentationEvent,_0x316f39,_0xdbded7[_0x1c26a0(0x1bb)],messageTypes[_0x1c26a0(0x1a2)],_0xdbded7[_0x1c26a0(0x1df)],null,_0x316f39),process[_0x1c26a0(0x1af)](0x1)),console[_0x1c26a0(0x1ab)](_0x1c26a0(0x1ce)+JSON[_0x1c26a0(0x1b7)](_0x2339b9)),await _0xdbded7[_0x1c26a0(0x1cf)](sendInstrumentationEvent,_0x316f39,_0xdbded7[_0x1c26a0(0x1bb)],messageTypes[_0x1c26a0(0x1a2)],_0xdbded7[_0x1c26a0(0x1e4)],_0x2339b9,_0x316f39),process['exit'](0x1);}catch(_0x2b8246){console[_0x1c26a0(0x1ab)](_0x1c26a0(0x1d2)+_0x2b8246[_0x1c26a0(0x1f4)]),await _0xdbded7[_0x1c26a0(0x1b5)](sendInstrumentationEvent,_0x316f39,_0xdbded7[_0x1c26a0(0x1bb)],messageTypes[_0x1c26a0(0x1a2)],_0xdbded7[_0x1c26a0(0x1a8)],_0x2b8246,_0x316f39),process[_0x1c26a0(0x1af)](0x1);}};function a15_0x1cb3(_0x2fa876,_0xd16bed){const _0x369527=a15_0x3695();return a15_0x1cb3=function(_0x1cb370,_0x4280e9){_0x1cb370=_0x1cb370-0x1a1;let _0x35f393=_0x369527[_0x1cb370];return _0x35f393;},a15_0x1cb3(_0x2fa876,_0xd16bed);}function a15_0x3695(){const _0x32dc4a=['jNieK','dMAXa','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','GlTYb','handler','ohCBR','stack','../../config/constants','INFO','server-error','ERROR','name','wnVod','2847770KTBsjK','5218056cuMjtc','log','gUDAq','queued','eAJQF','error','unknown-error','qTyvD','\x0aFound\x20the\x20following\x20grids:\x0a','exit','push','body','sUURW','457341XYTmbi','GMZlv','dPnQL','GET','stringify','uENTR','NWIwI','usage','BXZpu','../../utils/utilityMethods','https://','grids','all-grids','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','allGrids','password','existsSync','Browserstack','argv','parse','requestId','3368qDfWsB','grid','FdpCg','HXaKa','init-not-called','type','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','SNoKx','uuid','124719pHWCFu','Failed\x20to\x20list\x20resources!\x20Error:\x20','1611104SlaxBa','moGGD','help','username','status','707018AWvVSi','BHjxc','running','aWuqL','clusterName','unauthorised','../../utils/instrumentationUtils','KeviT','options','umGdK','readFileSync','epilogue','TeusM','builder','table','list','8239LVzltB','statusCode','grid-id','gnMOk','command','KHBtf'];a15_0x3695=function(){return _0x32dc4a;};return a15_0x3695();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a16_0x3300(){const _0x356b80=['handler','386368QiYzdV','VPJIc','12ndeFsU','../config/constants','epilogue','commandDir','usage','builder','start','2526050fbSvnq','AENTX','start_commands','recommendCommands','247640WrfycO','25596990jsmlYW','strict','1149696XAMcLc','demandCommand','889GELNFJ','46986EOULRt','8THLxdx','463616efoAkr','help'];a16_0x3300=function(){return _0x356b80;};return a16_0x3300();}function a16_0x3649(_0x85cfc0,_0x7b0944){const _0x330059=a16_0x3300();return a16_0x3649=function(_0x36493f,_0x5f30ad){_0x36493f=_0x36493f-0x11f;let _0x267ecf=_0x330059[_0x36493f];return _0x267ecf;},a16_0x3649(_0x85cfc0,_0x7b0944);}const a16_0x5c63e4=a16_0x3649;(function(_0x42f952,_0x99927){const _0x23dc64=a16_0x3649,_0x3876d3=_0x42f952();while(!![]){try{const _0xc434b3=parseInt(_0x23dc64(0x128))/0x1+parseInt(_0x23dc64(0x12b))/0x2*(parseInt(_0x23dc64(0x12d))/0x3)+parseInt(_0x23dc64(0x127))/0x4*(parseInt(_0x23dc64(0x134))/0x5)+-parseInt(_0x23dc64(0x126))/0x6*(-parseInt(_0x23dc64(0x125))/0x7)+parseInt(_0x23dc64(0x120))/0x8+-parseInt(_0x23dc64(0x123))/0x9+-parseInt(_0x23dc64(0x121))/0xa;if(_0xc434b3===_0x99927)break;else _0x3876d3['push'](_0x3876d3['shift']());}catch(_0xca8acb){_0x3876d3['push'](_0x3876d3['shift']());}}}(a16_0x3300,0x8ec75));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x5c63e4(0x12e));exports['command']='start',exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports[a16_0x5c63e4(0x132)]=function(_0x20c7a8){const _0x5ca3b6=a16_0x5c63e4,_0x4d0692={};_0x4d0692[_0x5ca3b6(0x12c)]=_0x5ca3b6(0x136),_0x4d0692[_0x5ca3b6(0x135)]='help';const _0x2d7285=_0x4d0692;return _0x20c7a8[_0x5ca3b6(0x131)](HELP_HEADER_MESSAGE[_0x5ca3b6(0x133)])[_0x5ca3b6(0x12f)](HELP_FOOTER_MESSAGE)[_0x5ca3b6(0x130)](_0x2d7285[_0x5ca3b6(0x12c)])[_0x5ca3b6(0x124)]()[_0x5ca3b6(0x11f)]()[_0x5ca3b6(0x122)]()[_0x5ca3b6(0x129)](_0x2d7285[_0x5ca3b6(0x135)]);},exports[a16_0x5c63e4(0x12a)]=function(_0x453cd0){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a17_0x338b6c=a17_0x4c8e;function a17_0x94fe(){const _0x4ad147=['desc','ZQuNa','connectionTimeout','../../utils/createk8sClient','region','description','command','exit','invalid-grid-id','type','debug','hOvid','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','180iZSzrD','epilogue','user','../../cloudproviders/utils','grid','../../config/logger','builder','4698720OIcCEk','308EzuNJb','IXYZN','bstackAccesskey','INFO','../../config/constants','gridId','clusterName','usage','parse','HsokJ','<UsernamePlaceholder>','message','info','jlVVw','tTSVj','uZhuR','8762350bylHmU','72585GGFDuu','OTcJR','start','Skip\x20insecure\x20cert\x20verification.','argv','name','../../utils/instrumentationUtils','HgGbr','string','ygVAu','reconnecting-websocket','stringify','handler','readFileSync','203336wGtFnz','Grid\x20started','XPvCJ','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','clusterRegion','ERROR','1605744wKCJei','error','1531262BFfrfA','tpbdt','hYZfF','Browserstack','username','statusCode','default','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','1TImvVO','QJGxt','cWTiG','CAxvD','init-not-called','2407302ecYrES','mKENG','skip-tls-cert-verify','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','../../utils/webSocketUtils','replace','DLCOW','help','skipTlsCertVerify','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','bstackUsername','Starting\x20grid\x20','FFbUJ','existsSync','stack','cloudProvider','unauthorised','mEWSx','Adding\x20Websocket\x20listeners','dHSNo'];a17_0x94fe=function(){return _0x4ad147;};return a17_0x94fe();}function a17_0x4c8e(_0x51a369,_0x579ba8){const _0x94fe9b=a17_0x94fe();return a17_0x4c8e=function(_0x4c8ec5,_0x55dd13){_0x4c8ec5=_0x4c8ec5-0xc8;let _0x3b3bdc=_0x94fe9b[_0x4c8ec5];return _0x3b3bdc;},a17_0x4c8e(_0x51a369,_0x579ba8);}(function(_0x15349b,_0x574710){const _0x5f1800=a17_0x4c8e,_0x4fb2cf=_0x15349b();while(!![]){try{const _0x5c5bc6=-parseInt(_0x5f1800(0x10b))/0x1*(-parseInt(_0x5f1800(0x103))/0x2)+-parseInt(_0x5f1800(0xed))/0x3*(parseInt(_0x5f1800(0xd4))/0x4)+parseInt(_0x5f1800(0xdb))/0x5+-parseInt(_0x5f1800(0x110))/0x6+parseInt(_0x5f1800(0xdc))/0x7*(parseInt(_0x5f1800(0xfb))/0x8)+parseInt(_0x5f1800(0x101))/0x9+-parseInt(_0x5f1800(0xec))/0xa;if(_0x5c5bc6===_0x574710)break;else _0x4fb2cf['push'](_0x4fb2cf['shift']());}catch(_0x4163d7){_0x4fb2cf['push'](_0x4fb2cf['shift']());}}}(a17_0x94fe,0x9b408));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a17_0x338b6c(0xf7)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a17_0x338b6c(0xe0)),{logger}=require(a17_0x338b6c(0xd9)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a17_0x338b6c(0xf3)),webSocketUtils=require(a17_0x338b6c(0x114)),{createK8sClient}=require(a17_0x338b6c(0xca)),{getCloudProviderObject}=require(a17_0x338b6c(0xd7));exports[a17_0x338b6c(0xcd)]=a17_0x338b6c(0xd8),exports[a17_0x338b6c(0x124)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a17_0x338b6c(0xda)]=function(_0x2be5c0){const _0x50fc0b=a17_0x338b6c,_0x4ae9d3={};_0x4ae9d3[_0x50fc0b(0xe9)]=_0x50fc0b(0x113),_0x4ae9d3['mKENG']=_0x50fc0b(0xf5),_0x4ae9d3[_0x50fc0b(0xc8)]=_0x50fc0b(0xf0),_0x4ae9d3['FFbUJ']='boolean',_0x4ae9d3[_0x50fc0b(0x10e)]=_0x50fc0b(0x117);const _0x10395c=_0x4ae9d3,_0x352e15={};_0x352e15[_0x50fc0b(0xcc)]=_0x10395c[_0x50fc0b(0xe9)],_0x352e15['type']=_0x10395c[_0x50fc0b(0x111)];const _0x322e91={};_0x322e91['description']=_0x10395c[_0x50fc0b(0xc8)],_0x322e91[_0x50fc0b(0xd0)]=_0x10395c[_0x50fc0b(0x11c)],_0x322e91[_0x50fc0b(0x109)]=![];const _0xe526ae={};return _0xe526ae['grid-id']=_0x352e15,_0xe526ae[_0x50fc0b(0x112)]=_0x322e91,_0x2be5c0[_0x50fc0b(0xe3)](HELP_HEADER_MESSAGE[_0x50fc0b(0xef)])[_0x50fc0b(0xd5)](HELP_FOOTER_MESSAGE)['options'](_0xe526ae)['help'](_0x10395c[_0x50fc0b(0x10e)])[_0x50fc0b(0xf1)];},exports[a17_0x338b6c(0xf9)]=async function(_0x5f1597){const _0x15fc79=a17_0x338b6c,_0x48410f={'cWTiG':_0x15fc79(0xd3),'HgGbr':function(_0x40b816){return _0x40b816();},'fJMAB':_0x15fc79(0x119),'uZhuR':function(_0x241763,_0xa09e47,_0x1a77a3,_0x53f113,_0x46f3b4,_0x59ecd3,_0x5da94a){return _0x241763(_0xa09e47,_0x1a77a3,_0x53f113,_0x46f3b4,_0x59ecd3,_0x5da94a);},'OTcJR':'start-grid-called','tpbdt':_0x15fc79(0x10f),'IXYZN':_0x15fc79(0xe6),'NXdhC':'<PasswordPlaceholder>','ygVAu':_0x15fc79(0x122),'tTSVj':function(_0xbdf97d,_0x514639,_0xc112eb,_0x354c90){return _0xbdf97d(_0x514639,_0xc112eb,_0x354c90);},'XPvCJ':function(_0x19bb23,_0x31db73,_0x3c5a1e){return _0x19bb23(_0x31db73,_0x3c5a1e);},'HsokJ':function(_0x27730d,_0x5db8ab,_0x212f5c){return _0x27730d(_0x5db8ab,_0x212f5c);},'hOvid':_0x15fc79(0xfc),'dHSNo':function(_0x333323,_0x459e56){return _0x333323===_0x459e56;},'DLCOW':_0x15fc79(0x10a),'gdbRR':_0x15fc79(0x120),'aAOja':function(_0x1f459e,_0x7339b0){return _0x1f459e===_0x7339b0;},'QJGxt':function(_0x5df20a,_0x52eacc,_0x167b7c,_0x5c3003,_0x3e2a4e,_0x12aa92,_0x2d4754){return _0x5df20a(_0x52eacc,_0x167b7c,_0x5c3003,_0x3e2a4e,_0x12aa92,_0x2d4754);},'hYZfF':_0x15fc79(0xcf),'mEWSx':'server-error'};let _0x65c6c0;try{!_0x5f1597[_0x15fc79(0xe1)]&&(logger['error'](_0x48410f[_0x15fc79(0x10d)]),process[_0x15fc79(0xce)](0x1));!fs[_0x15fc79(0x11d)](_0x48410f[_0x15fc79(0xf4)](getCredentialsPath))&&(logger['error'](_0x48410f['fJMAB']),await _0x48410f[_0x15fc79(0xeb)](sendInstrumentationEvent,_0x5f1597,_0x48410f['OTcJR'],messageTypes['ERROR'],_0x48410f[_0x15fc79(0x104)],null,_0x5f1597),process[_0x15fc79(0xce)](0x1));logger[_0x15fc79(0xe8)](_0x15fc79(0x11b)+_0x5f1597[_0x15fc79(0xe1)]),await _0x48410f[_0x15fc79(0xeb)](sendInstrumentationEvent,_0x5f1597,_0x48410f[_0x15fc79(0xee)],messageTypes[_0x15fc79(0xdf)],null,null,_0x5f1597);const _0xb2c87a=JSON[_0x15fc79(0xe4)](fs[_0x15fc79(0xfa)](_0x48410f[_0x15fc79(0xf4)](getCredentialsPath)));global_registry[_0x15fc79(0x11a)]=_0xb2c87a[_0x15fc79(0x106)][_0x15fc79(0x107)],global_registry[_0x15fc79(0xde)]=_0xb2c87a[_0x15fc79(0x106)]['password'];const _0x487649=WS_ENDPOINT[_0x15fc79(0x115)](_0x48410f[_0x15fc79(0xdd)],_0xb2c87a[_0x15fc79(0x106)][_0x15fc79(0x107)])[_0x15fc79(0x115)](_0x48410f['NXdhC'],_0xb2c87a[_0x15fc79(0x106)]['password']),_0x17f8fc={};_0x17f8fc['WebSocket']=ws,_0x17f8fc[_0x15fc79(0xc9)]=0x36ee80,_0x65c6c0=new ReconnectingWebSocket(_0x487649,[],_0x17f8fc),logger[_0x15fc79(0xd1)](_0x48410f[_0x15fc79(0xf6)]),webSocketUtils['addListeners'](_0x65c6c0,_0x5f1597[_0x15fc79(0xd6)],_0x5f1597['password']);const [_0x408938,_0xbdadd4]=await _0x48410f[_0x15fc79(0xea)](getGridDetails,_0xb2c87a[_0x15fc79(0x106)]['username'],_0xb2c87a[_0x15fc79(0x106)]['password'],_0x5f1597[_0x15fc79(0xe1)]);if(_0xbdadd4){const _0x13fad3=_0xbdadd4[_0x15fc79(0xe8)];global_registry[_0x15fc79(0x11f)]=_0x13fad3[_0x15fc79(0x11f)],global_registry[_0x15fc79(0xff)]=_0x13fad3[_0x15fc79(0xcb)],global_registry['clusterName']=_0x13fad3[_0x15fc79(0xe2)];const _0x2a11ad=await _0x48410f['uZhuR'](getCloudProviderObject,_0x13fad3[_0x15fc79(0x11f)],_0x13fad3[_0x15fc79(0xe2)],_0x13fad3[_0x15fc79(0xf2)],_0x65c6c0,webSocketUtils,_0x5f1597),[_0xd0476b,_0x1b93eb,_0x250356,_0x4b19d9,_0x379f3e,_0x21ef2c]=await _0x48410f[_0x15fc79(0xfd)](createK8sClient,_0x2a11ad,_0x5f1597[_0x15fc79(0x118)]);await _0x48410f[_0x15fc79(0xe5)](scaleUpHubDeployment,_0x1b93eb,_0x13fad3[_0x15fc79(0xf2)]),logger[_0x15fc79(0xe8)](_0x48410f[_0x15fc79(0xd2)]),process[_0x15fc79(0xce)](0x0);}_0x48410f[_0x15fc79(0x123)](_0x408938[_0x15fc79(0x108)],0x191)&&(logger[_0x15fc79(0x102)](_0x48410f[_0x15fc79(0x116)]),await _0x48410f[_0x15fc79(0xeb)](sendInstrumentationEvent,_0x5f1597,_0x48410f[_0x15fc79(0xee)],messageTypes[_0x15fc79(0x100)],_0x48410f['gdbRR'],null,_0x5f1597),process[_0x15fc79(0xce)](0x1)),_0x48410f['aAOja'](_0x408938[_0x15fc79(0x108)],0x190)&&(logger['error'](JSON[_0x15fc79(0xe4)](_0x408938['body'])[_0x15fc79(0xe7)]),await _0x48410f[_0x15fc79(0x10c)](sendInstrumentationEvent,_0x5f1597,_0x48410f[_0x15fc79(0xee)],messageTypes[_0x15fc79(0x100)],_0x48410f[_0x15fc79(0x105)],null,_0x5f1597),process['exit'](0x1)),logger[_0x15fc79(0x102)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x15fc79(0xf8)](_0x408938)),await _0x48410f[_0x15fc79(0x10c)](sendInstrumentationEvent,_0x5f1597,_0x48410f[_0x15fc79(0xee)],messageTypes[_0x15fc79(0x100)],_0x48410f[_0x15fc79(0x121)],_0x408938,_0x5f1597),process[_0x15fc79(0xce)](0x1);}catch(_0x4bcff3){const _0xe179b6=_0x15fc79(0xfe)+_0x4bcff3+'\x20\x0a'+JSON[_0x15fc79(0xf8)](_0x4bcff3[_0x15fc79(0x11e)])+'\x20';logger[_0x15fc79(0x102)](_0xe179b6),process[_0x15fc79(0xce)](0x1);}};
|
package/ats/src/commands/stop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a18_0x131037=a18_0x2b89;(function(_0x10ebd0,_0xb63898){const _0x19e266=a18_0x2b89,_0x3b7d9a=_0x10ebd0();while(!![]){try{const _0x4e629b=parseInt(_0x19e266(0x173))/0x1+parseInt(_0x19e266(0x179))/0x2*(-parseInt(_0x19e266(0x174))/0x3)+parseInt(_0x19e266(0x17e))/0x4*(parseInt(_0x19e266(0x16c))/0x5)+parseInt(_0x19e266(0x175))/0x6*(parseInt(_0x19e266(0x180))/0x7)+parseInt(_0x19e266(0x17c))/0x8+parseInt(_0x19e266(0x16f))/0x9+parseInt(_0x19e266(0x17d))/0xa*(-parseInt(_0x19e266(0x16d))/0xb);if(_0x4e629b===_0xb63898)break;else _0x3b7d9a['push'](_0x3b7d9a['shift']());}catch(_0x2c14d7){_0x3b7d9a['push'](_0x3b7d9a['shift']());}}}(a18_0x56ef,0xa190f));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x131037(0x172));function a18_0x56ef(){const _0x554826=['5744984RDdoJz','20hBxeoZ','16HsBKSg','usage','434ooRISO','645055wpSgZX','12363571SAqhxw','strict','4934376YADHHp','builder','desc','../config/constants','1198519IcHgER','3gonHtg','10590wvLoEa','demandCommand','stop','kYcvj','361366AzhAsN','epilogue','help'];a18_0x56ef=function(){return _0x554826;};return a18_0x56ef();}function a18_0x2b89(_0x11c5c3,_0x148d7c){const _0x56efee=a18_0x56ef();return a18_0x2b89=function(_0x2b8938,_0x391967){_0x2b8938=_0x2b8938-0x16c;let _0x4ffcda=_0x56efee[_0x2b8938];return _0x4ffcda;},a18_0x2b89(_0x11c5c3,_0x148d7c);}exports['command']='stop',exports[a18_0x131037(0x171)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a18_0x131037(0x170)]=function(_0x8532e8){const _0x4b3855=a18_0x131037,_0x1b8c53={};_0x1b8c53[_0x4b3855(0x178)]='stop_commands',_0x1b8c53['ggxDT']=_0x4b3855(0x17b);const _0x59021f=_0x1b8c53;return _0x8532e8[_0x4b3855(0x17f)](HELP_HEADER_MESSAGE[_0x4b3855(0x177)])[_0x4b3855(0x17a)](HELP_FOOTER_MESSAGE)['commandDir'](_0x59021f[_0x4b3855(0x178)])[_0x4b3855(0x176)]()['recommendCommands']()[_0x4b3855(0x16e)]()[_0x4b3855(0x17b)](_0x59021f['ggxDT']);},exports['handler']=function(_0x26b297){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a19_0x8d36(){const _0x7065dd=['invalid-grid-id','sjZjU','desc','../../utils/instrumentationUtils','gPabV','boolean','../../utils/webSocketUtils','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Grid\x20stoppped.','stringify','type','reconnecting-websocket','Stopping\x20grid\x20','xucZG','argv','JaxBK','gridId','DUTgy','BlvSB','eEyCN','grid','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','../../config/logger','../../utils/gridComponents','367130IOdhZs','TOUUG','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','statusCode','IYzEl','builder','parse','bstackAccesskey','Adding\x20Websocket\x20listeners','WebSocket','error','cloudProvider','region','../../utils/utilityMethods','XABno','stop-grid-called','init-not-called','Skip\x20insecure\x20cert\x20verification.','handler','unauthorised','FqLKw','name','oCVrR','exit','../../cloudproviders/utils','info','1586268SOTYqW','aFccN','help','xKoPq','7673582QVCOCb','../../config/constants','existsSync','ERROR','skip-tls-cert-verify','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','JTpNg','options','../../utils/createk8sClient','4189030KqjJdz','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','description','pGAWU','string','command','addListeners','1ihpfVA','skipTlsCertVerify','<UsernamePlaceholder>','IoOfA','Stop\x20a\x20running\x20Automation\x20grid.','10240515XMuJgN','ftWia','username','2456331lImxEi','SdzPn','4RUcZuV','fTAaS','jrURp','veZGq','whcLC','8XrDzWn','message','password','Browserstack','replace','INFO','886290ARSNGU'];a19_0x8d36=function(){return _0x7065dd;};return a19_0x8d36();}function a19_0x2144(_0x572ccd,_0x1637ee){const _0x8d360b=a19_0x8d36();return a19_0x2144=function(_0x2144b4,_0x57235d){_0x2144b4=_0x2144b4-0x15f;let _0x3de807=_0x8d360b[_0x2144b4];return _0x3de807;},a19_0x2144(_0x572ccd,_0x1637ee);}const a19_0x2a18ba=a19_0x2144;(function(_0x1cd42f,_0x4cb7de){const _0x256a96=a19_0x2144,_0x2c7628=_0x1cd42f();while(!![]){try{const _0x491b59=-parseInt(_0x256a96(0x1b1))/0x1*(-parseInt(_0x256a96(0x19d))/0x2)+-parseInt(_0x256a96(0x1b9))/0x3*(parseInt(_0x256a96(0x15f))/0x4)+parseInt(_0x256a96(0x183))/0x5+parseInt(_0x256a96(0x16a))/0x6+-parseInt(_0x256a96(0x1a1))/0x7*(parseInt(_0x256a96(0x164))/0x8)+parseInt(_0x256a96(0x1b6))/0x9+parseInt(_0x256a96(0x1aa))/0xa;if(_0x491b59===_0x4cb7de)break;else _0x2c7628['push'](_0x2c7628['shift']());}catch(_0x2115ad){_0x2c7628['push'](_0x2c7628['shift']());}}}(a19_0x8d36,0xa028a));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x2a18ba(0x176)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x2a18ba(0x1a2)),{logger}=require(a19_0x2a18ba(0x181)),{getCredentialsPath,getGridDetails}=require(a19_0x2a18ba(0x190)),{scaleDownHubDeployment}=require(a19_0x2a18ba(0x182)),{sendInstrumentationEvent}=require(a19_0x2a18ba(0x16e)),webSocketUtils=require(a19_0x2a18ba(0x171)),{createK8sClient}=require(a19_0x2a18ba(0x1a9)),{getCloudProviderObject}=require(a19_0x2a18ba(0x19b));exports[a19_0x2a18ba(0x1af)]=a19_0x2a18ba(0x17f),exports[a19_0x2a18ba(0x16d)]=a19_0x2a18ba(0x1b5),exports[a19_0x2a18ba(0x188)]=function(_0x50d19c){const _0x3bb9e6=a19_0x2a18ba,_0x56df99={};_0x56df99[_0x3bb9e6(0x1ba)]=_0x3bb9e6(0x1a6),_0x56df99[_0x3bb9e6(0x162)]=_0x3bb9e6(0x1ae),_0x56df99[_0x3bb9e6(0x199)]=_0x3bb9e6(0x194),_0x56df99['ftWia']=_0x3bb9e6(0x170),_0x56df99[_0x3bb9e6(0x17e)]=_0x3bb9e6(0x19f);const _0x1d4039=_0x56df99,_0x54deee={};_0x54deee[_0x3bb9e6(0x1ac)]=_0x1d4039[_0x3bb9e6(0x1ba)],_0x54deee['type']=_0x1d4039[_0x3bb9e6(0x162)];const _0x2115fe={};_0x2115fe['description']=_0x1d4039[_0x3bb9e6(0x199)],_0x2115fe[_0x3bb9e6(0x175)]=_0x1d4039[_0x3bb9e6(0x1b7)],_0x2115fe['default']=![];const _0x561d1c={};return _0x561d1c['grid-id']=_0x54deee,_0x561d1c[_0x3bb9e6(0x1a5)]=_0x2115fe,_0x50d19c['usage'](HELP_HEADER_MESSAGE['stop'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x3bb9e6(0x1a8)](_0x561d1c)[_0x3bb9e6(0x19f)](_0x1d4039[_0x3bb9e6(0x17e)])[_0x3bb9e6(0x179)];},exports[a19_0x2a18ba(0x195)]=async function(_0x4b9d5b){const _0x1084b2=a19_0x2a18ba,_0x2255b7={'fTAaS':_0x1084b2(0x185),'aFccN':function(_0x5c104e){return _0x5c104e();},'xKoPq':_0x1084b2(0x172),'IYzEl':function(_0x5c17f0,_0x3fe2d5,_0x2ce4e3,_0x384c3e,_0x280902,_0x3fe59f,_0x2e5fc2){return _0x5c17f0(_0x3fe2d5,_0x2ce4e3,_0x384c3e,_0x280902,_0x3fe59f,_0x2e5fc2);},'sjZjU':_0x1084b2(0x192),'kTyvW':_0x1084b2(0x193),'BlvSB':function(_0x5535a4,_0x54b6dc,_0x5b8693,_0x469cad,_0x14256b,_0x52507c,_0xd25846){return _0x5535a4(_0x54b6dc,_0x5b8693,_0x469cad,_0x14256b,_0x52507c,_0xd25846);},'kxKKr':_0x1084b2(0x1b3),'XABno':'<PasswordPlaceholder>','jrURp':_0x1084b2(0x18b),'DUTgy':function(_0x499eb1,_0xb1b11b,_0x357028,_0x4f47d4){return _0x499eb1(_0xb1b11b,_0x357028,_0x4f47d4);},'JTpNg':function(_0x1a057e,_0x4af06a,_0x27152a){return _0x1a057e(_0x4af06a,_0x27152a);},'IoOfA':_0x1084b2(0x173),'whcLC':function(_0x869da2,_0x245cb9){return _0x869da2===_0x245cb9;},'pGAWU':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','gPabV':function(_0x4bebc3,_0x23310c,_0x597409,_0x34b588,_0x1f9a61,_0x47f886,_0x29c0da){return _0x4bebc3(_0x23310c,_0x597409,_0x34b588,_0x1f9a61,_0x47f886,_0x29c0da);},'TOUUG':_0x1084b2(0x196),'xucZG':function(_0x18f9b1,_0x14ffd4,_0x250e67,_0x6505f5,_0xa20f93,_0x148c0e,_0x1f0973){return _0x18f9b1(_0x14ffd4,_0x250e67,_0x6505f5,_0xa20f93,_0x148c0e,_0x1f0973);},'JaxBK':_0x1084b2(0x16b),'FqLKw':'server-error'};let _0x57630a;try{!_0x4b9d5b['gridId']&&(logger[_0x1084b2(0x18d)](_0x2255b7[_0x1084b2(0x160)]),process[_0x1084b2(0x19a)](0x1));!fs[_0x1084b2(0x1a3)](_0x2255b7['aFccN'](getCredentialsPath))&&(logger[_0x1084b2(0x18d)](_0x2255b7[_0x1084b2(0x1a0)]),await _0x2255b7[_0x1084b2(0x187)](sendInstrumentationEvent,_0x4b9d5b,_0x2255b7['sjZjU'],messageTypes[_0x1084b2(0x1a4)],_0x2255b7['kTyvW'],null,_0x4b9d5b),process['exit'](0x1));logger[_0x1084b2(0x19c)](_0x1084b2(0x177)+_0x4b9d5b[_0x1084b2(0x17b)]),await _0x2255b7[_0x1084b2(0x17d)](sendInstrumentationEvent,_0x4b9d5b,_0x2255b7['sjZjU'],messageTypes[_0x1084b2(0x169)],null,null,_0x4b9d5b);const _0x148504=JSON['parse'](fs['readFileSync'](_0x2255b7[_0x1084b2(0x19e)](getCredentialsPath)));global_registry['bstackUsername']=_0x148504['Browserstack'][_0x1084b2(0x1b8)],global_registry[_0x1084b2(0x18a)]=_0x148504['Browserstack']['password'];const _0x5508b2=WS_ENDPOINT[_0x1084b2(0x168)](_0x2255b7['kxKKr'],_0x148504['Browserstack'][_0x1084b2(0x1b8)])['replace'](_0x2255b7[_0x1084b2(0x191)],_0x148504[_0x1084b2(0x167)][_0x1084b2(0x166)]),_0x16f527={};_0x16f527[_0x1084b2(0x18c)]=ws,_0x16f527['connectionTimeout']=0x36ee80,_0x57630a=new ReconnectingWebSocket(_0x5508b2,[],_0x16f527),logger['debug'](_0x2255b7[_0x1084b2(0x161)]),webSocketUtils[_0x1084b2(0x1b0)](_0x57630a,_0x4b9d5b['user'],_0x4b9d5b[_0x1084b2(0x166)]);const [_0x519442,_0x3cc084]=await _0x2255b7[_0x1084b2(0x17c)](getGridDetails,_0x148504['Browserstack']['username'],_0x148504[_0x1084b2(0x167)][_0x1084b2(0x166)],_0x4b9d5b['gridId']);if(_0x3cc084){const _0x57da90=_0x3cc084[_0x1084b2(0x19c)];global_registry[_0x1084b2(0x18e)]=_0x57da90[_0x1084b2(0x18e)],global_registry['clusterRegion']=_0x57da90[_0x1084b2(0x18f)],global_registry['clusterName']=_0x57da90['clusterName'];const _0x22d823=await _0x2255b7[_0x1084b2(0x17d)](getCloudProviderObject,_0x57da90[_0x1084b2(0x18e)],_0x57da90['clusterName'],_0x57da90[_0x1084b2(0x198)],_0x57630a,webSocketUtils,_0x4b9d5b),[_0x4e897e,_0x224204,_0x51bc5a,_0xb3ef68,_0x5ec307,_0x4aacbc]=await _0x2255b7[_0x1084b2(0x1a7)](createK8sClient,_0x22d823,_0x4b9d5b[_0x1084b2(0x1b2)]);await _0x2255b7[_0x1084b2(0x1a7)](scaleDownHubDeployment,_0x224204,_0x57da90[_0x1084b2(0x198)]),logger[_0x1084b2(0x19c)](_0x2255b7[_0x1084b2(0x1b4)]),process['exit'](0x0);}_0x2255b7[_0x1084b2(0x163)](_0x519442[_0x1084b2(0x186)],0x191)&&(logger[_0x1084b2(0x18d)](_0x2255b7[_0x1084b2(0x1ad)]),await _0x2255b7[_0x1084b2(0x16f)](sendInstrumentationEvent,_0x4b9d5b,_0x2255b7[_0x1084b2(0x16c)],messageTypes[_0x1084b2(0x1a4)],_0x2255b7[_0x1084b2(0x184)],null,_0x4b9d5b),process[_0x1084b2(0x19a)](0x1)),_0x2255b7[_0x1084b2(0x163)](_0x519442[_0x1084b2(0x186)],0x190)&&(logger[_0x1084b2(0x18d)](JSON[_0x1084b2(0x189)](_0x519442['body'])[_0x1084b2(0x165)]),await _0x2255b7[_0x1084b2(0x178)](sendInstrumentationEvent,_0x4b9d5b,_0x2255b7[_0x1084b2(0x16c)],messageTypes[_0x1084b2(0x1a4)],_0x2255b7[_0x1084b2(0x17a)],null,_0x4b9d5b),process[_0x1084b2(0x19a)](0x1)),logger[_0x1084b2(0x18d)](_0x1084b2(0x180)+JSON[_0x1084b2(0x174)](_0x519442)),await _0x2255b7['xucZG'](sendInstrumentationEvent,_0x4b9d5b,_0x2255b7[_0x1084b2(0x16c)],messageTypes[_0x1084b2(0x1a4)],_0x2255b7[_0x1084b2(0x197)],_0x519442,_0x4b9d5b),process[_0x1084b2(0x19a)](0x1);}catch(_0x51d9a2){const _0x170d52=_0x1084b2(0x1ab)+_0x51d9a2+'\x20\x0a'+JSON['stringify'](_0x51d9a2['stack'])+'\x20';logger[_0x1084b2(0x18d)](_0x170d52),process[_0x1084b2(0x19a)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x5b7083=a20_0x4101;(function(_0x6ceb7d,_0x2c4a93){const _0x299b08=a20_0x4101,_0x247aad=_0x6ceb7d();while(!![]){try{const _0x398625=-parseInt(_0x299b08(0xff))/0x1+parseInt(_0x299b08(0x110))/0x2*(-parseInt(_0x299b08(0x130))/0x3)+parseInt(_0x299b08(0xf4))/0x4+-parseInt(_0x299b08(0x134))/0x5+parseInt(_0x299b08(0x10d))/0x6+parseInt(_0x299b08(0x129))/0x7+-parseInt(_0x299b08(0x135))/0x8*(parseInt(_0x299b08(0xe8))/0x9);if(_0x398625===_0x2c4a93)break;else _0x247aad['push'](_0x247aad['shift']());}catch(_0x57868a){_0x247aad['push'](_0x247aad['shift']());}}}(a20_0x4b86,0x3cf69),require(a20_0x5b7083(0x114))['config'](),exports['DASHBOARD_ENDPOINT']=process[a20_0x5b7083(0xef)][a20_0x5b7083(0x107)]||'grid.browserstack.com',exports['BS_API_URL']=process[a20_0x5b7083(0xef)][a20_0x5b7083(0xed)]||a20_0x5b7083(0x126),exports[a20_0x5b7083(0x117)]=process['env'][a20_0x5b7083(0x117)]||'grid-api.browserstack.com',exports[a20_0x5b7083(0x10e)]=a20_0x5b7083(0x103)+this[a20_0x5b7083(0x117)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a20_0x5b7083(0x121)]=a20_0x5b7083(0x12c),exports['IAM_USER_NAME']=a20_0x5b7083(0x133),exports[a20_0x5b7083(0x100)]=a20_0x5b7083(0x11a),exports['AWS']='aws',exports[a20_0x5b7083(0x11f)]='BSTACK-ATS-CLUSTER',exports[a20_0x5b7083(0x11e)]=a20_0x5b7083(0x131),exports['TURBOSCALE_DEPLOYMENT']=a20_0x5b7083(0x10c),exports[a20_0x5b7083(0x104)]='azure',exports[a20_0x5b7083(0xfc)]=a20_0x5b7083(0xf1));const a20_0x3132a0={};a20_0x3132a0['Key']=a20_0x5b7083(0x12b),a20_0x3132a0[a20_0x5b7083(0x116)]=a20_0x5b7083(0x12f);const a20_0x590e93={};a20_0x590e93[a20_0x5b7083(0x115)]=a20_0x5b7083(0xeb),a20_0x590e93['Value']='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a20_0x3132a0,a20_0x590e93];if(process['env'][a20_0x5b7083(0x124)]){const parsedTags=process[a20_0x5b7083(0xef)][a20_0x5b7083(0x124)]['split'](',');parsedTags[a20_0x5b7083(0x123)](_0xe65336=>{const _0x185fe2=a20_0x5b7083,_0x1828c1=_0xe65336[_0x185fe2(0x10b)](':'),_0x4df74c={};_0x4df74c['Key']=_0x1828c1[0x0],_0x4df74c[_0x185fe2(0x116)]=_0x1828c1[0x1],common_hst_tags_list[_0x185fe2(0x101)](_0x4df74c);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a20_0x5bcad7={};a20_0x5bcad7[a20_0x5b7083(0x12b)]=a20_0x5b7083(0x12f),a20_0x5bcad7[a20_0x5b7083(0xeb)]='BrowserStack-Automate-TurboScale',exports[a20_0x5b7083(0xee)]=a20_0x5bcad7,exports[a20_0x5b7083(0x112)]=[this[a20_0x5b7083(0x118)]];function a20_0x4b86(){const _0x301d2a=['error','[REDACTED]','CLUSTER_AUTOSCALER_STACK_NAME','CLUSTER_DEP_STACK_NAME','cliRunFinished','CP_CONFIG_FILE','LINK_MESSAGE','forEach','TURBOSCALE_CUSTOM_TAGS','LOG','api.browserstack.com','CLI_ARGS_REGEX','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','1693041flnmvA','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','browserstack:managedBy','credentials','messageTypes','grid','BrowserStack','8892lLGFPM','BSTACK-ATS-CLUSTER-AUTOSCALER','RAW_ARGS_REGEX','BrowserStackIAMUser','112205HpLpZx','645880BrSJgR','18RSEdji','SUCCESS','start','browserstack:service','configure','BS_API_URL','HST_CLUSTER_TAGS','env','CLI_RUN_STARTED','gcp','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','success','1022652qYYtck','HELP_FOOTER_MESSAGE','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','warning','info','list','UNKNOWN','GCP','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','CLI_RUN_FINISHED','162501deelqh','DEFAULT_GRID_NAME','push','unknown','wss://','AZURE','WARNING','INFO','DASHBOARD_ENDPOINT','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','cliRunStarted','split','browserstack-turboscale-grid','698250tEYgne','WS_ENDPOINT','root','12zUGATV','WS_EVENTS','SUPPORTED_CLOUD_PROVIDERS','RESOURCES','dotenv','Key','Value','AG_API_URL','AWS','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','high-scale-grid','create'];a20_0x4b86=function(){return _0x301d2a;};return a20_0x4b86();}const a20_0x37b1c9={};a20_0x37b1c9[a20_0x5b7083(0x125)]='log',a20_0x37b1c9[a20_0x5b7083(0x113)]='resourceInfo',a20_0x37b1c9['GRID_URL']='gridUrl',a20_0x37b1c9[a20_0x5b7083(0xf0)]=a20_0x5b7083(0x10a),a20_0x37b1c9[a20_0x5b7083(0xfe)]=a20_0x5b7083(0x120),exports[a20_0x5b7083(0x111)]=a20_0x37b1c9,exports['global_registry']={},exports[a20_0x5b7083(0x122)]=a20_0x5b7083(0xf7);const a20_0x1b9035={};function a20_0x4101(_0x24373b,_0x2aecad){const _0x4b86f9=a20_0x4b86();return a20_0x4101=function(_0x4101c3,_0x1c0c8f){_0x4101c3=_0x4101c3-0xe8;let _0x1530d1=_0x4b86f9[_0x4101c3];return _0x1530d1;},a20_0x4101(_0x24373b,_0x2aecad);}a20_0x1b9035[a20_0x5b7083(0x10f)]=a20_0x5b7083(0xf2)+this[a20_0x5b7083(0x122)],a20_0x1b9035['init']=a20_0x5b7083(0x119)+this[a20_0x5b7083(0x122)],a20_0x1b9035[a20_0x5b7083(0xec)]=a20_0x5b7083(0x108)+this['LINK_MESSAGE'],a20_0x1b9035[a20_0x5b7083(0x11b)]=a20_0x5b7083(0xf6)+this[a20_0x5b7083(0x122)],a20_0x1b9035[a20_0x5b7083(0xfa)]={},a20_0x1b9035['delete']='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a20_0x5b7083(0x122)],a20_0x1b9035['connect']=a20_0x5b7083(0x128)+this[a20_0x5b7083(0x122)],a20_0x1b9035[a20_0x5b7083(0xea)]=a20_0x5b7083(0x109)+this[a20_0x5b7083(0x122)],a20_0x1b9035['stop']='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this['LINK_MESSAGE'],a20_0x1b9035[a20_0x5b7083(0xfa)][a20_0x5b7083(0x10f)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this[a20_0x5b7083(0x122)],a20_0x1b9035[a20_0x5b7083(0xfa)][a20_0x5b7083(0x12e)]=a20_0x5b7083(0xfd)+this['LINK_MESSAGE'],a20_0x1b9035[a20_0x5b7083(0xfa)]['gridProfile']='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a20_0x5b7083(0x122)],exports['HELP_HEADER_MESSAGE']=a20_0x1b9035,exports[a20_0x5b7083(0xf5)]=a20_0x5b7083(0x12a);const a20_0x3a3e53={};a20_0x3a3e53[a20_0x5b7083(0xe9)]=a20_0x5b7083(0xf3),a20_0x3a3e53['ERROR']=a20_0x5b7083(0x11c),a20_0x3a3e53[a20_0x5b7083(0x106)]=a20_0x5b7083(0xf9),a20_0x3a3e53[a20_0x5b7083(0x105)]=a20_0x5b7083(0xf8),a20_0x3a3e53[a20_0x5b7083(0xfb)]=a20_0x5b7083(0x102),a20_0x3a3e53['NULL']=null,exports[a20_0x5b7083(0x12d)]=a20_0x3a3e53,exports[a20_0x5b7083(0x127)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a20_0x5b7083(0x132)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a20_0x5b7083(0x11d);
|
package/ats/src/config/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a21_0x391cb5=a21_0x56dc;(function(_0x4b44a5,_0x588c53){const _0xb6df60=a21_0x56dc,_0x6778f8=_0x4b44a5();while(!![]){try{const _0x4c13f4=-parseInt(_0xb6df60(0x143))/0x1*(parseInt(_0xb6df60(0x130))/0x2)+parseInt(_0xb6df60(0x134))/0x3*(parseInt(_0xb6df60(0x12a))/0x4)+parseInt(_0xb6df60(0x127))/0x5*(parseInt(_0xb6df60(0x12f))/0x6)+parseInt(_0xb6df60(0x147))/0x7*(-parseInt(_0xb6df60(0x12c))/0x8)+parseInt(_0xb6df60(0x146))/0x9*(parseInt(_0xb6df60(0x142))/0xa)+parseInt(_0xb6df60(0x129))/0xb*(-parseInt(_0xb6df60(0x13a))/0xc)+parseInt(_0xb6df60(0x149))/0xd*(-parseInt(_0xb6df60(0x135))/0xe);if(_0x4c13f4===_0x588c53)break;else _0x6778f8['push'](_0x6778f8['shift']());}catch(_0x42de59){_0x6778f8['push'](_0x6778f8['shift']());}}}(a21_0x2ff9,0x9ed47));function a21_0x56dc(_0x29ebb9,_0x4a465f){const _0x2ff931=a21_0x2ff9();return a21_0x56dc=function(_0x56dc7f,_0xba4c5){_0x56dc7f=_0x56dc7f-0x127;let _0x43b49e=_0x2ff931[_0x56dc7f];return _0x43b49e;},a21_0x56dc(_0x29ebb9,_0x4a465f);}function a21_0x2ff9(){const _0x5d1f0e=['122919qFFDuw','308AwxfQe','timestamp','message','name','transports','382620WuUumK','YYYY-MM-DD\x20HH:mm:ss','combine','colorize','existsSync','createLogger','mkdirSync','File','10mUfEyA','764HulXFV','format','console.info','7864947ZIpJyJ','191975PZPQTH','events.log','6617KKFSYo','195OmuCYM','\x20-\x20','77nFEkXD','116gaMeKG','join','272ATDxNa','debug','logger','126204HfrObS','2788LYadwi','fileLogger','level','Console'];a21_0x2ff9=function(){return _0x5d1f0e;};return a21_0x2ff9();}const winston=require('winston'),fs=require('fs'),path=require('path'),logDir='log';!fs[a21_0x391cb5(0x13e)](logDir)&&fs[a21_0x391cb5(0x140)](logDir);const a21_0x321500={};a21_0x321500[a21_0x391cb5(0x144)]=a21_0x391cb5(0x13b);const a21_0x304e1a={};a21_0x304e1a[a21_0x391cb5(0x132)]=!![];const a21_0x267b9b={};a21_0x267b9b[a21_0x391cb5(0x138)]=a21_0x391cb5(0x145),exports[a21_0x391cb5(0x12e)]=new winston[(a21_0x391cb5(0x13f))]({'format':winston[a21_0x391cb5(0x144)][a21_0x391cb5(0x13c)](winston[a21_0x391cb5(0x144)][a21_0x391cb5(0x136)](a21_0x321500),winston[a21_0x391cb5(0x144)][a21_0x391cb5(0x13d)](a21_0x304e1a),winston[a21_0x391cb5(0x144)]['printf'](_0xedb092=>_0xedb092[a21_0x391cb5(0x136)]+a21_0x391cb5(0x128)+_0xedb092[a21_0x391cb5(0x132)]+':\x20'+_0xedb092[a21_0x391cb5(0x137)])),'transports':[new winston[(a21_0x391cb5(0x139))][(a21_0x391cb5(0x133))](a21_0x267b9b),new winston[(a21_0x391cb5(0x139))][(a21_0x391cb5(0x141))]({'filename':path[a21_0x391cb5(0x12b)](logDir,a21_0x391cb5(0x148)),'level':a21_0x391cb5(0x12d)})]});const winstonFileLoggerParams={'transports':[new winston[(a21_0x391cb5(0x139))]['File']({'filename':path[a21_0x391cb5(0x12b)](logDir,'usage.log'),'level':a21_0x391cb5(0x12d)})]};exports[a21_0x391cb5(0x131)]=new winston['createLogger'](winstonFileLoggerParams);
|
package/ats/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a22_0x18e112=a22_0x3be2;(function(_0x2b719b,_0x51fcff){const _0x3e4f59=a22_0x3be2,_0x5cc070=_0x2b719b();while(!![]){try{const _0x20dd15=-parseInt(_0x3e4f59(0xb0))/0x1+-parseInt(_0x3e4f59(0xb5))/0x2+-parseInt(_0x3e4f59(0xac))/0x3+parseInt(_0x3e4f59(0xb6))/0x4+parseInt(_0x3e4f59(0xb4))/0x5*(parseInt(_0x3e4f59(0xab))/0x6)+parseInt(_0x3e4f59(0xb2))/0x7*(parseInt(_0x3e4f59(0xbc))/0x8)+-parseInt(_0x3e4f59(0xb1))/0x9;if(_0x20dd15===_0x51fcff)break;else _0x5cc070['push'](_0x5cc070['shift']());}catch(_0x118005){_0x5cc070['push'](_0x5cc070['shift']());}}}(a22_0x46a9,0x909c5));function a22_0x3be2(_0x5bfd19,_0x29604b){const _0x46a95d=a22_0x46a9();return a22_0x3be2=function(_0x3be2f5,_0x2da31a){_0x3be2f5=_0x3be2f5-0xab;let _0xd0a01c=_0x46a95d[_0x3be2f5];return _0xd0a01c;},a22_0x3be2(_0x5bfd19,_0x29604b);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a22_0x18e112(0xbb));process[a22_0x18e112(0xaf)]['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function run(_0x35322f){const _0x1ad5c5=a22_0x18e112,_0x29bb80={};_0x29bb80[_0x1ad5c5(0xad)]='commands',_0x29bb80[_0x1ad5c5(0xb8)]=_0x1ad5c5(0xba);const _0xf90f9c=_0x29bb80;_0x35322f[_0x1ad5c5(0xae)](HELP_HEADER_MESSAGE[_0x1ad5c5(0xb3)])[_0x1ad5c5(0xbd)](_0xf90f9c['YYyrd'])[_0x1ad5c5(0xb7)]()['help'](_0xf90f9c[_0x1ad5c5(0xb8)])['epilogue'](HELP_FOOTER_MESSAGE);}function a22_0x46a9(){const _0x2438c5=['./config/constants','2710744pTxfHZ','commandDir','958626QoYnXN','2698851jsTtbl','YYyrd','usage','env','169783hEBxyI','5078448UVQgCH','21FLKipl','root','10XSZyQj','470758LPayRl','4501220KCRZrY','demandCommand','CVxDG','exports','help'];a22_0x46a9=function(){return _0x2438c5;};return a22_0x46a9();}module[a22_0x18e112(0xb9)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a23_0x1017(_0x415a19,_0x1c9193){const _0x550dad=a23_0x550d();return a23_0x1017=function(_0x10179f,_0x58c8b7){_0x10179f=_0x10179f-0x1cf;let _0x13a264=_0x550dad[_0x10179f];return _0x13a264;},a23_0x1017(_0x415a19,_0x1c9193);}const a23_0x1f05b2=a23_0x1017;function a23_0x550d(){const _0x5c1d33=['uElfe','QVVwE','2016-11-15','QcTVw','hjZmg','Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20','\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket','OXchb','warn','rCGOC','pfYBz','\x20already\x20exists.\x20Skipping\x20Bucket\x20creation','xflBL','then','ImmmA','fWjxj','describeSecurityGroups','ikftX','elnVO','wchtm','jBLIe','Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20','aqinO','JIlFe','xAvXx','rHgFA','describeVpcs','hYgmX','dSNCC','afbSS','MNCBl','promise','apiVersion','EC2','kMfXG','HQaaV','info','jRkcb','Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20','739392SApFdb','kjqfs','VoMqm','LQIXZ','aTdld','WzebQ','PbBdL','rscZA','garRg','QDHbx','KemSO','Failed\x20to\x20fetch\x20AWS\x20Regions\x20due\x20to\x20error:\x20','35dWapuh','YzjgH','XzxDR','JEPWr','ouzyw','2391027vuWjWE','lcaDU','ImZlP','QViQC','cwZRt','13135970iQIEbC','isBucketPresent','SYEQq','EZCmo','CaebX','rsElZ','bczAG','upfcO','TSNFh','PWxOH','617603nHdxom','fetchSubnets','aws-sdk','podss','1574538grjPeU','LUeJF','PHzMF','lzVDD','ZuQqF','ZWVHM','SeSmk','BSnpi','region','pjVUK','401900JhjRHm','xAuyH','zDMoU','rslDS','aOmcL','GhVgu','zhhuI','902604dPfPhW','fetchSecurityGroups','64sUaYpO','YCZVo','uslvO','ywDXt','QTamH','awwCM','WcvQY','yZWKp','lJBSw','aYqAL','MhczZ','../config/logger','DJFzR','dcbZy','xWuBi','XrDzf','dHrIx','glmkA','QNyvk','xhhsm','IaGSG','9fGqYwY','error','describeSubnets','YzSQv','Bucket','LCOMM','Regions','CHsGa','uOsPC','fUCTX','adFvx','getAWSRegions','KFFRq','ksART','tAKZQ','catch','describeRegions','UasSl','FMLGG','bZvME','ivuGQ','IgdGv','HoKAe','Wuybs','Bucket:\x20','EswxR','IHtez','jhTiM','tmCET','jYkDk'];a23_0x550d=function(){return _0x5c1d33;};return a23_0x550d();}(function(_0x22298e,_0x461ee5){const _0x49eb6f=a23_0x1017,_0xc4b7f3=_0x22298e();while(!![]){try{const _0x5bd255=-parseInt(_0x49eb6f(0x252))/0x1+parseInt(_0x49eb6f(0x1e5))/0x2+-parseInt(_0x49eb6f(0x1d2))/0x3+parseInt(_0x49eb6f(0x1ef))/0x4*(parseInt(_0x49eb6f(0x25e))/0x5)+-parseInt(_0x49eb6f(0x1f6))/0x6+parseInt(_0x49eb6f(0x1e1))/0x7*(-parseInt(_0x49eb6f(0x1f8))/0x8)+parseInt(_0x49eb6f(0x20d))/0x9*(parseInt(_0x49eb6f(0x1d7))/0xa);if(_0x5bd255===_0x461ee5)break;else _0xc4b7f3['push'](_0xc4b7f3['shift']());}catch(_0x373638){_0xc4b7f3['push'](_0xc4b7f3['shift']());}}}(a23_0x550d,0x64784));const awsSDK=require(a23_0x1f05b2(0x1e3)),{logger}=require(a23_0x1f05b2(0x203));exports['fetchVPCs']=_0x3362ec=>{const _0x32bf15=a23_0x1f05b2,_0x16977f={'adFvx':function(_0x4f119a,_0x2dda2b){return _0x4f119a(_0x2dda2b);},'fUCTX':_0x32bf15(0x22d),'PHzMF':function(_0x30b604,_0x4f0319){return _0x30b604!==_0x4f0319;},'YCZVo':_0x32bf15(0x1eb),'afbSS':_0x32bf15(0x25b),'SAjqd':_0x32bf15(0x1d0)};return new Promise((_0x3bf668,_0x30a9f1)=>{const _0x2379d2=_0x32bf15,_0x3fdbc0={'WcvQY':function(_0xc4f831,_0x4d0319){const _0xe15d32=a23_0x1017;return _0x16977f[_0xe15d32(0x217)](_0xc4f831,_0x4d0319);},'dHrIx':_0x16977f['fUCTX'],'HQaaV':function(_0xae0d45,_0x2efc22){const _0x54bb9f=a23_0x1017;return _0x16977f[_0x54bb9f(0x1e7)](_0xae0d45,_0x2efc22);},'wMmvx':_0x16977f[_0x2379d2(0x1f9)],'DkpUp':_0x16977f[_0x2379d2(0x248)]};if(_0x16977f['PHzMF'](_0x16977f['SAjqd'],_0x16977f['SAjqd'])){const _0x24d23c={'xhhsm':function(_0xae54a4,_0x1dda25){return _0x3fdbc0['WcvQY'](_0xae54a4,_0x1dda25);}},_0x42a178={};_0x42a178['apiVersion']=_0x3fdbc0['dHrIx'],_0x42a178[_0x2379d2(0x1ed)]=_0x5b2002;const _0x1d66a6=new _0x5c3692[(_0x2379d2(0x24c))](_0x42a178);_0x1d66a6[_0x2379d2(0x23b)]()[_0x2379d2(0x24a)]()['then'](_0x3a5e7c=>{const _0x5a712a=_0x2379d2;_0x24d23c[_0x5a712a(0x20b)](_0x532141,_0x3a5e7c);})[_0x2379d2(0x21c)](_0x4d890f=>{const _0x519766=_0x2379d2;_0x38ab8f[_0x519766(0x20e)](_0x519766(0x251)+_0x4d890f),_0x3fdbc0[_0x519766(0x1fe)](_0x43b0db,_0x4d890f);});}else{const _0xfb907={};_0xfb907[_0x2379d2(0x24b)]=_0x16977f[_0x2379d2(0x216)],_0xfb907[_0x2379d2(0x1ed)]=_0x3362ec;const _0x5226c7=new awsSDK[(_0x2379d2(0x24c))](_0xfb907);_0x5226c7[_0x2379d2(0x245)]()['promise']()[_0x2379d2(0x238)](_0x56b0af=>{const _0x153385=_0x2379d2,_0x5864d6={'ImZlP':function(_0x4d6698,_0xda4d1f){const _0x21adc3=a23_0x1017;return _0x3fdbc0[_0x21adc3(0x1fe)](_0x4d6698,_0xda4d1f);},'QcTVw':_0x3fdbc0[_0x153385(0x208)]};if(_0x3fdbc0[_0x153385(0x24e)](_0x3fdbc0['wMmvx'],_0x3fdbc0['wMmvx'])){const _0x3c0477={'YDvsx':function(_0x2e145f,_0x2a5d29){const _0x113687=_0x153385;return _0x5864d6[_0x113687(0x1d4)](_0x2e145f,_0x2a5d29);}},_0x474f52={};_0x474f52[_0x153385(0x24b)]=_0x5864d6[_0x153385(0x22e)],_0x474f52['region']=_0xb4e625;const _0x2b1e29=new _0x58734e['EC2'](_0x474f52);_0x2b1e29[_0x153385(0x20f)]()[_0x153385(0x24a)]()[_0x153385(0x238)](_0x534798=>{_0x3c0477['YDvsx'](_0x3cb07e,_0x534798);})[_0x153385(0x21c)](_0x5399ee=>{const _0x58da54=_0x153385;_0x184491['error'](_0x58da54(0x230)+_0x5399ee),_0x3c0477['YDvsx'](_0x11dbf8,_0x5399ee);});}else _0x3fdbc0[_0x153385(0x1fe)](_0x3bf668,_0x56b0af);})['catch'](_0x494833=>{const _0x347597=_0x2379d2;_0x3fdbc0[_0x347597(0x24e)](_0x3fdbc0['DkpUp'],_0x3fdbc0['DkpUp'])?(_0x3d9b83[_0x347597(0x20e)](_0x347597(0x230)+_0x4e75a8),_0x3fdbc0[_0x347597(0x1fe)](_0x2ca5a2,_0x11f485)):(logger['error'](_0x347597(0x240)+_0x494833),_0x3fdbc0['WcvQY'](_0x30a9f1,_0x494833));});}});},exports[a23_0x1f05b2(0x1d8)]=_0x2d90d9=>{const _0x42527c=a23_0x1f05b2,_0x72bfc6={'XrDzf':function(_0x5628cd,_0x1584d6){return _0x5628cd!==_0x1584d6;},'KemSO':function(_0x8e19f6,_0x44138b){return _0x8e19f6(_0x44138b);},'CwwLl':function(_0x56bf47,_0x4146bd){return _0x56bf47===_0x4146bd;},'GhVgu':_0x42527c(0x1f3),'rHgFA':_0x42527c(0x1dc),'ZuQqF':function(_0x12910e,_0x36af22){return _0x12910e===_0x36af22;},'PWxOH':'GqLUD','JIlFe':_0x42527c(0x201),'OXchb':_0x42527c(0x22d),'zDMoU':_0x42527c(0x1df),'SYEQq':_0x42527c(0x1da)},_0x32ef9e=new awsSDK['S3']();return new Promise((_0x46d4eb,_0x2fe54e)=>{const _0xff1940=_0x42527c,_0x4192bb={'aqinO':function(_0x5060b8,_0x2ec675){const _0x356487=a23_0x1017;return _0x72bfc6[_0x356487(0x25c)](_0x5060b8,_0x2ec675);},'QViQC':_0x72bfc6[_0xff1940(0x232)]};if(_0x72bfc6['XrDzf'](_0x72bfc6[_0xff1940(0x1f1)],_0x72bfc6[_0xff1940(0x1d9)])){const _0x1d9cfb={};_0x1d9cfb[_0xff1940(0x211)]=_0x2d90d9,_0x32ef9e['headBucket'](_0x1d9cfb)['promise']()[_0xff1940(0x238)](_0x3f0e42=>{const _0x14451a=_0xff1940,_0x383a7a={'pjVUK':function(_0x3e73bf,_0x10cb7c){const _0x3d5429=a23_0x1017;return _0x72bfc6[_0x3d5429(0x207)](_0x3e73bf,_0x10cb7c);},'lJBSw':function(_0x470508,_0x299bcd){const _0x432f53=a23_0x1017;return _0x72bfc6[_0x432f53(0x25c)](_0x470508,_0x299bcd);}};_0x72bfc6['CwwLl'](_0x72bfc6[_0x14451a(0x1f4)],_0x72bfc6[_0x14451a(0x244)])?_0x383a7a[_0x14451a(0x1ee)](_0x3d4342,_0x46bd68)&&_0x383a7a[_0x14451a(0x1ee)](_0x56260b[_0x14451a(0x213)],_0x2ee7b5)?_0x383a7a[_0x14451a(0x200)](_0x11cf58,_0x48e826['Regions']):_0x383a7a[_0x14451a(0x200)](_0x2f20d8,{}):(logger[_0x14451a(0x233)]('Bucket:\x20'+_0x2d90d9+_0x14451a(0x236)),_0x72bfc6[_0x14451a(0x25c)](_0x46d4eb,!![]));})[_0xff1940(0x21c)](()=>{const _0x54015b=_0xff1940,_0x130a06={'MhczZ':function(_0x1c156f,_0x13fc5a){return _0x72bfc6['KemSO'](_0x1c156f,_0x13fc5a);}};if(_0x72bfc6[_0x54015b(0x1e9)](_0x72bfc6[_0x54015b(0x1e0)],_0x72bfc6[_0x54015b(0x242)])){const _0x134e24={'TZWnS':function(_0x2cebf5,_0x3895bf){return _0x4192bb['aqinO'](_0x2cebf5,_0x3895bf);}},_0x1de16a={};_0x1de16a[_0x54015b(0x24b)]=_0x4192bb[_0x54015b(0x1d5)],_0x1de16a['region']=_0x12567e;const _0x3c71be=new _0x4a85aa[(_0x54015b(0x24c))](_0x1de16a);_0x3c71be[_0x54015b(0x245)]()[_0x54015b(0x24a)]()[_0x54015b(0x238)](_0x425be7=>{const _0x168b0e=_0x54015b;_0x130a06[_0x168b0e(0x202)](_0x521ed3,_0x425be7);})[_0x54015b(0x21c)](_0x41efca=>{const _0x21e76e=_0x54015b;_0x4b41d5['error'](_0x21e76e(0x240)+_0x41efca),_0x134e24['TZWnS'](_0x1a46f7,_0x41efca);});}else logger['info'](_0x54015b(0x225)+_0x2d90d9+_0x54015b(0x231)),_0x72bfc6[_0x54015b(0x25c)](_0x46d4eb,![]);});}else _0x4192bb[_0xff1940(0x241)](_0x1ca918,_0x3b6e37['Regions']);});},exports[a23_0x1f05b2(0x1e2)]=_0x4865e4=>{const _0x36bdf4=a23_0x1f05b2,_0xa9517d={'glmkA':function(_0x2e53e3,_0x12de9b){return _0x2e53e3!==_0x12de9b;},'uOsPC':_0x36bdf4(0x23f),'jRkcb':function(_0x1a8c21,_0x32404b){return _0x1a8c21(_0x32404b);},'uslvO':function(_0x2708a0,_0x3fd972){return _0x2708a0(_0x3fd972);},'jhTiM':function(_0x4f7fc4,_0x27c3f4){return _0x4f7fc4(_0x27c3f4);},'cQpFm':_0x36bdf4(0x221),'jYkDk':_0x36bdf4(0x235),'podss':'WXttM','ouzyw':_0x36bdf4(0x22d)};return new Promise((_0x25f357,_0x59587d)=>{const _0x17cbc0=_0x36bdf4,_0x353867={'hYgmX':function(_0x22ee8f,_0x1dc437){return _0xa9517d['uslvO'](_0x22ee8f,_0x1dc437);},'rscZA':function(_0x585db8,_0x34cd12){const _0x496a59=a23_0x1017;return _0xa9517d[_0x496a59(0x228)](_0x585db8,_0x34cd12);},'XzxDR':function(_0x5bcc2a,_0x4af0fa){const _0x55676b=a23_0x1017;return _0xa9517d[_0x55676b(0x209)](_0x5bcc2a,_0x4af0fa);},'hjZmg':_0xa9517d['cQpFm'],'xWuBi':function(_0x445158,_0x473380){const _0x2d8612=a23_0x1017;return _0xa9517d[_0x2d8612(0x228)](_0x445158,_0x473380);}};if(_0xa9517d[_0x17cbc0(0x209)](_0xa9517d[_0x17cbc0(0x22a)],_0xa9517d[_0x17cbc0(0x1e4)])){const _0x99a074={};_0x99a074[_0x17cbc0(0x24b)]=_0xa9517d[_0x17cbc0(0x1d1)],_0x99a074[_0x17cbc0(0x1ed)]=_0x4865e4;const _0x4ef70c=new awsSDK[(_0x17cbc0(0x24c))](_0x99a074);_0x4ef70c[_0x17cbc0(0x20f)]()[_0x17cbc0(0x24a)]()[_0x17cbc0(0x238)](_0x4e5b24=>{const _0x81ba66=_0x17cbc0;_0xa9517d['glmkA'](_0xa9517d[_0x81ba66(0x215)],_0xa9517d['uOsPC'])?(_0xc6fb6[_0x81ba66(0x20e)]('Failed\x20to\x20fetch\x20AWS\x20Regions\x20due\x20to\x20error:\x20'+_0x98c34a),_0x353867[_0x81ba66(0x246)](_0x4ef969,_0x547d7a)):_0xa9517d[_0x81ba66(0x250)](_0x25f357,_0x4e5b24);})[_0x17cbc0(0x21c)](_0x440284=>{const _0x2c419a=_0x17cbc0,_0x1e3b0b={'upfcO':function(_0xa8fa07,_0x1baaf2){const _0x46a450=a23_0x1017;return _0x353867[_0x46a450(0x259)](_0xa8fa07,_0x1baaf2);}};_0x353867[_0x2c419a(0x1cf)](_0x353867[_0x2c419a(0x22f)],_0x353867[_0x2c419a(0x22f)])?_0x1e3b0b[_0x2c419a(0x1de)](_0x3ddc14,_0x19ff4f):(logger[_0x2c419a(0x20e)](_0x2c419a(0x230)+_0x440284),_0x353867[_0x2c419a(0x206)](_0x59587d,_0x440284));});}else _0x199482['error'](_0x17cbc0(0x251)+_0x57513a),_0xa9517d[_0x17cbc0(0x1fa)](_0x16bc78,_0x5c136d);});},exports[a23_0x1f05b2(0x1f7)]=_0x5bd2a3=>{const _0x245695=a23_0x1f05b2,_0x509136={'IHtez':_0x245695(0x22d),'wchtm':function(_0x714bb3,_0x273536){return _0x714bb3(_0x273536);},'FMLGG':function(_0x2a6741,_0x2352c9){return _0x2a6741!==_0x2352c9;},'PvbRP':_0x245695(0x21a),'clBJM':_0x245695(0x1ea),'dcbZy':function(_0x12e293,_0x351f6){return _0x12e293===_0x351f6;},'VoMqm':_0x245695(0x247),'xflBL':function(_0x2100ba,_0x3c07e3){return _0x2100ba(_0x3c07e3);},'yhylB':function(_0x536565,_0x4ca026){return _0x536565===_0x4ca026;},'yZWKp':'PumTE','JfrYT':'YgsYm'};return new Promise((_0x305555,_0x316f95)=>{const _0x4e3426=_0x245695,_0x37fce9={'zhhuI':function(_0x17e89a,_0x3c2c8){const _0x1cf014=a23_0x1017;return _0x509136[_0x1cf014(0x23e)](_0x17e89a,_0x3c2c8);},'lcaDU':_0x509136[_0x4e3426(0x227)],'QNyvk':function(_0x54a183,_0x14a524){const _0x1bd241=_0x4e3426;return _0x509136[_0x1bd241(0x205)](_0x54a183,_0x14a524);},'Wuybs':_0x509136[_0x4e3426(0x254)],'ImmmA':function(_0x55cc52,_0x151ecc){const _0x1c5820=_0x4e3426;return _0x509136[_0x1c5820(0x237)](_0x55cc52,_0x151ecc);}};if(_0x509136['yhylB'](_0x509136[_0x4e3426(0x1ff)],_0x509136['JfrYT']))_0x42171e[_0x4e3426(0x20e)](_0x4e3426(0x240)+_0x5e878b),_0x37fce9[_0x4e3426(0x1f5)](_0x12618d,_0x644a4d);else{const _0x2c95b0={};_0x2c95b0['apiVersion']=_0x509136['IHtez'],_0x2c95b0[_0x4e3426(0x1ed)]=_0x5bd2a3;const _0x393d07=new awsSDK['EC2'](_0x2c95b0);_0x393d07[_0x4e3426(0x23b)]()['promise']()['then'](_0x1dba69=>{const _0x20da6f=_0x4e3426,_0x5d3127={'garRg':function(_0x533851,_0x13d3ce){const _0x5f01a3=a23_0x1017;return _0x37fce9[_0x5f01a3(0x1f5)](_0x533851,_0x13d3ce);},'SxHxd':_0x37fce9[_0x20da6f(0x1d3)]};if(_0x37fce9[_0x20da6f(0x20a)](_0x37fce9[_0x20da6f(0x224)],_0x37fce9[_0x20da6f(0x224)]))_0x37fce9[_0x20da6f(0x239)](_0x305555,_0x1dba69);else{const _0x54568a={'QVVwE':function(_0x3feca8,_0x2cab87){const _0x20410a=_0x20da6f;return _0x5d3127[_0x20410a(0x25a)](_0x3feca8,_0x2cab87);},'kMfXG':_0x5d3127['SxHxd']};return new _0x181189((_0x3e848e,_0x703b7e)=>{const _0x24fddd=_0x20da6f,_0x338b5a={'rslDS':function(_0x14987c,_0x27a42a){const _0x59f720=a23_0x1017;return _0x54568a[_0x59f720(0x22c)](_0x14987c,_0x27a42a);}},_0x4e59ca={};_0x4e59ca[_0x24fddd(0x24b)]=_0x54568a[_0x24fddd(0x24d)],_0x4e59ca['region']=_0x442684;const _0x4cc8b8=new _0x5db16c['EC2'](_0x4e59ca);_0x4cc8b8['describeSubnets']()[_0x24fddd(0x24a)]()[_0x24fddd(0x238)](_0x2e8021=>{const _0x4e20f7=_0x24fddd;_0x338b5a[_0x4e20f7(0x1f2)](_0x3e848e,_0x2e8021);})['catch'](_0x99203b=>{const _0x63af83=_0x24fddd;_0x4967e0[_0x63af83(0x20e)](_0x63af83(0x230)+_0x99203b),_0x54568a[_0x63af83(0x22c)](_0x703b7e,_0x99203b);});});}})[_0x4e3426(0x21c)](_0x1a9d90=>{const _0x4cbb12=_0x4e3426,_0x45d2af={'CaebX':_0x509136[_0x4cbb12(0x227)],'KFFRq':function(_0x431dd2,_0x24e175){return _0x509136['wchtm'](_0x431dd2,_0x24e175);}};if(_0x509136[_0x4cbb12(0x21f)](_0x509136['PvbRP'],_0x509136['clBJM']))logger[_0x4cbb12(0x20e)]('Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20'+_0x1a9d90),_0x509136[_0x4cbb12(0x23e)](_0x316f95,_0x1a9d90);else{const _0x3614d4={'UasSl':function(_0x12d6a6,_0x5c3386){const _0xee1b4c=_0x4cbb12;return _0x45d2af[_0xee1b4c(0x219)](_0x12d6a6,_0x5c3386);}};return new _0x4dfad6((_0x2a79b0,_0x1e82ab)=>{const _0x3f2c28=_0x4cbb12,_0x2d9ec6={};_0x2d9ec6['apiVersion']=_0x45d2af[_0x3f2c28(0x1db)],_0x2d9ec6[_0x3f2c28(0x1ed)]=_0x25edeb;const _0x21e7b7=new _0x527e42['EC2'](_0x2d9ec6);_0x21e7b7[_0x3f2c28(0x245)]()['promise']()[_0x3f2c28(0x238)](_0x333c2c=>{const _0x3af73=_0x3f2c28;_0x3614d4[_0x3af73(0x21e)](_0x2a79b0,_0x333c2c);})[_0x3f2c28(0x21c)](_0x29887a=>{const _0x2cc1d7=_0x3f2c28;_0x4441b9['error'](_0x2cc1d7(0x240)+_0x29887a),_0x3614d4['UasSl'](_0x1e82ab,_0x29887a);});});}});}});},exports[a23_0x1f05b2(0x218)]=()=>{const _0xdc43a7=a23_0x1f05b2,_0x5e9ece={'tmCET':function(_0x32b52b,_0x3ab03b){return _0x32b52b(_0x3ab03b);},'DJFzR':function(_0x4f33cc,_0x4a7ec5){return _0x4f33cc!==_0x4a7ec5;},'bZvME':_0xdc43a7(0x256),'awwCM':function(_0x513f27,_0x1dbb43){return _0x513f27(_0x1dbb43);},'LCOMM':_0xdc43a7(0x22d),'YzSQv':function(_0x4283aa,_0x28aa37){return _0x4283aa===_0x28aa37;},'rCsCt':_0xdc43a7(0x255),'Dhxmz':function(_0x9bf856,_0xaf0e62){return _0x9bf856!==_0xaf0e62;},'xAuyH':_0xdc43a7(0x258),'cGRzU':_0xdc43a7(0x21b),'EswxR':_0xdc43a7(0x23d),'fWjxj':_0xdc43a7(0x222),'bAsuf':function(_0x57d2a9,_0xb658cb){return _0x57d2a9(_0xb658cb);},'TIZAZ':function(_0x45ccd4,_0x579900){return _0x45ccd4===_0x579900;},'QyPHo':_0xdc43a7(0x22b),'ccfCV':_0xdc43a7(0x25f)};return new Promise((_0x4474b8,_0x57045c)=>{const _0x2899da=_0xdc43a7,_0x2fef34={'LUeJF':function(_0x293f04,_0x4e6c75){const _0x216c31=a23_0x1017;return _0x5e9ece[_0x216c31(0x229)](_0x293f04,_0x4e6c75);},'qiMSS':function(_0x286c6b,_0x57f720){const _0x4c8f96=a23_0x1017;return _0x5e9ece[_0x4c8f96(0x1fd)](_0x286c6b,_0x57f720);},'ywDXt':_0x5e9ece[_0x2899da(0x212)],'kjqfs':function(_0x197811,_0x325c16){const _0x32b371=_0x2899da;return _0x5e9ece[_0x32b371(0x210)](_0x197811,_0x325c16);},'HoKAe':_0x5e9ece['rCsCt'],'WzebQ':function(_0x19cf7f,_0x5dbea3){return _0x5e9ece['Dhxmz'](_0x19cf7f,_0x5dbea3);},'xAvXx':function(_0x56e3ac,_0x368083){const _0x46f009=_0x2899da;return _0x5e9ece[_0x46f009(0x204)](_0x56e3ac,_0x368083);},'QTamH':_0x5e9ece[_0x2899da(0x1f0)],'yuhql':_0x5e9ece['cGRzU'],'ikftX':function(_0x4569b8,_0x117c64){const _0x54d6ca=_0x2899da;return _0x5e9ece[_0x54d6ca(0x229)](_0x4569b8,_0x117c64);},'BSnpi':function(_0xaa4a10,_0x5eb08f){const _0x306253=_0x2899da;return _0x5e9ece[_0x306253(0x210)](_0xaa4a10,_0x5eb08f);},'rCGOC':_0x5e9ece[_0x2899da(0x226)],'bczAG':_0x5e9ece[_0x2899da(0x23a)],'CHsGa':function(_0x34b30f,_0x14ba8f){return _0x5e9ece['bAsuf'](_0x34b30f,_0x14ba8f);}};if(_0x5e9ece['TIZAZ'](_0x5e9ece['QyPHo'],_0x5e9ece['ccfCV'])){const _0x3659da=new _0x3ac704['S3']();return new _0xb59d7a((_0x38cc8f,_0xb4a46a)=>{const _0x158915=_0x2899da,_0x3b1cf8={'lzVDD':function(_0x25dd56,_0x419b64){const _0x6467f=a23_0x1017;return _0x2fef34[_0x6467f(0x1e6)](_0x25dd56,_0x419b64);}},_0x2a9a85={};_0x2a9a85[_0x158915(0x211)]=_0x11e525,_0x3659da['headBucket'](_0x2a9a85)['promise']()['then'](_0xbd90b6=>{const _0x568e66=_0x158915;_0x4d3d26['warn']('Bucket:\x20'+_0x49f305+_0x568e66(0x236)),_0x3b1cf8[_0x568e66(0x1e8)](_0x38cc8f,!![]);})[_0x158915(0x21c)](()=>{const _0x2c2c9e=_0x158915;_0x50bbed[_0x2c2c9e(0x24f)](_0x2c2c9e(0x225)+_0x4a218d+_0x2c2c9e(0x231)),_0x3b1cf8[_0x2c2c9e(0x1e8)](_0x38cc8f,![]);});});}else{const _0x1cbdfe={};_0x1cbdfe[_0x2899da(0x24b)]=_0x5e9ece[_0x2899da(0x212)];const _0x5e093b=new awsSDK[(_0x2899da(0x24c))](_0x1cbdfe);_0x5e093b[_0x2899da(0x21d)]()[_0x2899da(0x24a)]()['then']((_0x3705ee,_0x139579)=>{const _0x46262b=_0x2899da,_0x1e8dea={'cwZRt':function(_0x320e00,_0x13db99){const _0x4484a8=a23_0x1017;return _0x2fef34[_0x4484a8(0x1e6)](_0x320e00,_0x13db99);},'VWlzj':_0x2fef34[_0x46262b(0x1fb)]};if(_0x2fef34[_0x46262b(0x253)](_0x2fef34[_0x46262b(0x223)],_0x2fef34[_0x46262b(0x223)]))_0x2fef34[_0x46262b(0x257)](_0x3705ee,undefined)&&_0x2fef34[_0x46262b(0x243)](_0x3705ee['Regions'],undefined)?_0x2fef34[_0x46262b(0x253)](_0x2fef34[_0x46262b(0x1fc)],_0x2fef34['yuhql'])?(_0x19a422['info'](_0x46262b(0x225)+_0x1e763f+_0x46262b(0x231)),_0x1e8dea['cwZRt'](_0x533c0b,![])):_0x2fef34[_0x46262b(0x23c)](_0x4474b8,_0x3705ee[_0x46262b(0x213)]):_0x2fef34[_0x46262b(0x1ec)](_0x2fef34[_0x46262b(0x234)],_0x2fef34[_0x46262b(0x1dd)])?_0x2fef34['qiMSS'](_0x397334,_0x181ebf):_0x2fef34[_0x46262b(0x214)](_0x4474b8,{});else{const _0x15943b={'IaGSG':function(_0x2d57d2,_0x3ba74d){const _0x355101=_0x46262b;return _0x1e8dea[_0x355101(0x1d6)](_0x2d57d2,_0x3ba74d);}};return new _0x70b37((_0x906e1a,_0x2b8558)=>{const _0x2cf14d=_0x46262b,_0x16d885={'xTsMh':function(_0x3521df,_0x53e5f9){const _0x4215ad=a23_0x1017;return _0x1e8dea[_0x4215ad(0x1d6)](_0x3521df,_0x53e5f9);}},_0xf10143={};_0xf10143[_0x2cf14d(0x24b)]=_0x1e8dea['VWlzj'],_0xf10143[_0x2cf14d(0x1ed)]=_0x45cc7e;const _0x35e446=new _0xcf3de5[(_0x2cf14d(0x24c))](_0xf10143);_0x35e446[_0x2cf14d(0x23b)]()['promise']()[_0x2cf14d(0x238)](_0xb42c20=>{_0x16d885['xTsMh'](_0x906e1a,_0xb42c20);})[_0x2cf14d(0x21c)](_0x2ba62b=>{const _0x57ca50=_0x2cf14d;_0x4ecdf[_0x57ca50(0x20e)](_0x57ca50(0x251)+_0x2ba62b),_0x15943b[_0x57ca50(0x20c)](_0x2b8558,_0x2ba62b);});});}})[_0x2899da(0x21c)](_0x5c6ba8=>{const _0x21e777=_0x2899da,_0x249c1e={'MNCBl':function(_0x5be36e,_0x4e4535){const _0x269547=a23_0x1017;return _0x5e9ece[_0x269547(0x229)](_0x5be36e,_0x4e4535);}};_0x5e9ece[_0x21e777(0x204)](_0x5e9ece[_0x21e777(0x220)],_0x5e9ece[_0x21e777(0x220)])?_0x249c1e[_0x21e777(0x249)](_0x5be2d7,_0x19da87):(logger['error'](_0x21e777(0x25d)+_0x5c6ba8),_0x5e9ece['tmCET'](_0x57045c,_0x5c6ba8));});}});},exports['awsObj']=awsSDK;
|
|
1
|
+
function a23_0x3f5b(){const _0x1f504d=['lcepI','EgDjw','EfStx','11037370jSdSUd','oFuti','\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket','apiVersion','sUqsX','xscZU','xbpnQ','dunGj','PZlul','NYHXh','ckedi','cYRkO','22ebDOEb','KhyWB','DpqvN','warn','catch','pPUPd','JAJpm','hAlQd','YsJzt','54XaLIWM','kJOoz','sluPJ','OgIlC','cfMHX','Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20','oKyaq','getAWSRegions','CNIhn','KzRhv','BYNbu','486027JWenaK','WIfVx','UHXrt','YuihD','Bucket:\x20','region','Regions','bVeGH','iTbJw','194499ginCoG','KtkAd','then','vUqXA','UIYbn','DluFE','Bucket','KepOm','error','ttOjr','DXuSR','xdthj','aws-sdk','ClFuv','describeSecurityGroups','describeSubnets','hhpbA','headBucket','qJAeT','../config/logger','BxBvp','KAqMf','hnwsm','cRHCo','UJRdT','stbdv','pNFPJ','3042245DWBKSD','UssKP','vQweG','isBucketPresent','syZxr','NWBNI','BUaFF','VdwCI','ArnTf','236592CswwFN','IxtxC','fetchVPCs','cTUCY','bAWrH','ZUmYv','LhZgd','NrAAK','475083RlUDIq','gvmCS','Dtgxi','describeRegions','XirHX','470829LNtckV','PobmJ','FKvuU','2WrVPuH','\x20already\x20exists.\x20Skipping\x20Bucket\x20creation','info','RrprJ','fetchSubnets','INpDc','96NXLAqg','tuype','EC2','Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20','promise','FwPJb','PIZML','soAMU','LnuQr','YwgxZ','VGNHo','gveUt','PWOin','Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20','umugU','vsSHD','idjfK','MlYrl','bnlBt','jnPgG','whEWf','OaBSQ','eoScn','tJAWM','nDlRf','ywwKY','VCQIC','ZukSz','yMQav','describeVpcs','ZzmEx','gGoXZ','2016-11-15','awsObj','nZFTv','sbVoT'];a23_0x3f5b=function(){return _0x1f504d;};return a23_0x3f5b();}const a23_0x51cb65=a23_0x5969;(function(_0xe38216,_0x277022){const _0x5d7d5e=a23_0x5969,_0x47ce3b=_0xe38216();while(!![]){try{const _0x3160e7=-parseInt(_0x5d7d5e(0x17b))/0x1+-parseInt(_0x5d7d5e(0x1b8))/0x2*(-parseInt(_0x5d7d5e(0x1b5))/0x3)+-parseInt(_0x5d7d5e(0x1a8))/0x4+-parseInt(_0x5d7d5e(0x19f))/0x5+parseInt(_0x5d7d5e(0x170))/0x6*(-parseInt(_0x5d7d5e(0x1b0))/0x7)+-parseInt(_0x5d7d5e(0x1be))/0x8*(parseInt(_0x5d7d5e(0x184))/0x9)+-parseInt(_0x5d7d5e(0x15b))/0xa*(-parseInt(_0x5d7d5e(0x167))/0xb);if(_0x3160e7===_0x277022)break;else _0x47ce3b['push'](_0x47ce3b['shift']());}catch(_0x188a9b){_0x47ce3b['push'](_0x47ce3b['shift']());}}}(a23_0x3f5b,0x532a0));function a23_0x5969(_0x40e7c2,_0x3b942d){const _0x3f5b83=a23_0x3f5b();return a23_0x5969=function(_0x596932,_0x270e19){_0x596932=_0x596932-0x144;let _0x6e20c3=_0x3f5b83[_0x596932];return _0x6e20c3;},a23_0x5969(_0x40e7c2,_0x3b942d);}const awsSDK=require(a23_0x51cb65(0x190)),{logger}=require(a23_0x51cb65(0x197));exports[a23_0x51cb65(0x1aa)]=_0x3ab44c=>{const _0x5ae3c3=a23_0x51cb65,_0x4eed92={'pNFPJ':function(_0xc389dd,_0xcc4ea6){return _0xc389dd(_0xcc4ea6);},'UHXrt':function(_0x7073a1,_0x5b7bfb){return _0x7073a1!==_0x5b7bfb;},'cYRkO':'xyAfB','nxjow':_0x5ae3c3(0x1ca),'XirHX':_0x5ae3c3(0x18f),'IxtxC':_0x5ae3c3(0x15c),'iTbJw':_0x5ae3c3(0x154),'bnlBt':_0x5ae3c3(0x16e),'vNvVL':_0x5ae3c3(0x165)};return new Promise((_0x463f62,_0x2e969b)=>{const _0x8dfbe1=_0x5ae3c3,_0x314b0b={'jsvBu':function(_0x2dad79,_0x2072b1){const _0x861448=a23_0x5969;return _0x4eed92[_0x861448(0x19e)](_0x2dad79,_0x2072b1);},'qJAeT':function(_0x10c9aa,_0x460ece){const _0xf35e35=a23_0x5969;return _0x4eed92[_0xf35e35(0x17d)](_0x10c9aa,_0x460ece);},'syZxr':_0x4eed92[_0x8dfbe1(0x1b4)],'cfMHX':_0x4eed92[_0x8dfbe1(0x1a9)],'tTVid':function(_0x25728f,_0x263068){const _0x4347ec=_0x8dfbe1;return _0x4eed92[_0x4347ec(0x19e)](_0x25728f,_0x263068);},'VdwCI':_0x4eed92[_0x8dfbe1(0x183)]};if(_0x4eed92['UHXrt'](_0x4eed92[_0x8dfbe1(0x146)],_0x4eed92['vNvVL'])){const _0x3ab0a2={};_0x3ab0a2['apiVersion']=_0x4eed92[_0x8dfbe1(0x183)],_0x3ab0a2[_0x8dfbe1(0x180)]=_0x3ab44c;const _0x307290=new awsSDK[(_0x8dfbe1(0x1c0))](_0x3ab0a2);_0x307290[_0x8dfbe1(0x151)]()[_0x8dfbe1(0x1c2)]()[_0x8dfbe1(0x186)](_0x197fff=>{const _0x13fe7b=_0x8dfbe1,_0x41e9a2={'KhyWB':function(_0xc74790,_0x5e6430){const _0x1ffda2=a23_0x5969;return _0x4eed92[_0x1ffda2(0x19e)](_0xc74790,_0x5e6430);}};_0x4eed92[_0x13fe7b(0x17d)](_0x4eed92[_0x13fe7b(0x166)],_0x4eed92['nxjow'])?_0x4eed92[_0x13fe7b(0x19e)](_0x463f62,_0x197fff):(_0x57495b[_0x13fe7b(0x16a)](_0x13fe7b(0x17f)+_0x17bf29+_0x13fe7b(0x1b9)),_0x41e9a2[_0x13fe7b(0x168)](_0xcda9a2,!![]));})['catch'](_0x5d7630=>{const _0x21d4cf=_0x8dfbe1;_0x314b0b[_0x21d4cf(0x196)](_0x314b0b[_0x21d4cf(0x1a3)],_0x314b0b[_0x21d4cf(0x174)])?(logger[_0x21d4cf(0x18c)](_0x21d4cf(0x1cb)+_0x5d7630),_0x314b0b['jsvBu'](_0x2e969b,_0x5d7630)):_0x314b0b['jsvBu'](_0x4a00e0,_0x46ed11[_0x21d4cf(0x181)]);});}else{const _0x55c696={'PIZML':function(_0x462e78,_0x483368){return _0x314b0b['jsvBu'](_0x462e78,_0x483368);}},_0x2df9aa={};_0x2df9aa['apiVersion']=_0x314b0b[_0x8dfbe1(0x1a6)],_0x2df9aa[_0x8dfbe1(0x180)]=_0x25884a;const _0x1492e8=new _0x539ffd[(_0x8dfbe1(0x1c0))](_0x2df9aa);_0x1492e8['describeSecurityGroups']()[_0x8dfbe1(0x1c2)]()[_0x8dfbe1(0x186)](_0xbf8097=>{_0x314b0b['tTVid'](_0x435e66,_0xbf8097);})[_0x8dfbe1(0x16b)](_0x352ab3=>{const _0x36a57f=_0x8dfbe1;_0x1e2b5d[_0x36a57f(0x18c)](_0x36a57f(0x175)+_0x352ab3),_0x55c696[_0x36a57f(0x1c4)](_0xaefb11,_0x352ab3);});}});},exports[a23_0x51cb65(0x1a2)]=_0x12dcb3=>{const _0x13a243=a23_0x51cb65,_0x32b95f={'FwPJb':function(_0x15cba5,_0x25ff2a){return _0x15cba5(_0x25ff2a);},'MlYrl':function(_0x395510,_0x137f89){return _0x395510!==_0x137f89;},'bJVNH':'hWUCi','FKvuU':_0x13a243(0x1cc),'whEWf':function(_0x49207f,_0x1366cc){return _0x49207f(_0x1366cc);},'jnPgG':function(_0x48320f,_0x3a494e){return _0x48320f===_0x3a494e;},'eoScn':_0x13a243(0x14b),'ttOjr':_0x13a243(0x16f),'yCrLn':function(_0x1ad9c4,_0x5bc6e0){return _0x1ad9c4!==_0x5bc6e0;},'BxBvp':_0x13a243(0x191),'NYHXh':'rxOXj'},_0x3a672f=new awsSDK['S3']();return new Promise((_0x102da7,_0x2bf51c)=>{const _0xcfc38d=_0x13a243,_0x275606={'NIqWs':function(_0x9e1f9c,_0x33812b){return _0x32b95f['MlYrl'](_0x9e1f9c,_0x33812b);},'bAWrH':function(_0x5b22af,_0x1c1a35){return _0x32b95f['MlYrl'](_0x5b22af,_0x1c1a35);},'JAJpm':function(_0x324ed1,_0x30e1bf){return _0x32b95f['whEWf'](_0x324ed1,_0x30e1bf);},'EUXKM':function(_0xa9b01b,_0x4d6309){const _0xd2662e=a23_0x5969;return _0x32b95f[_0xd2662e(0x147)](_0xa9b01b,_0x4d6309);},'EfStx':_0x32b95f[_0xcfc38d(0x14a)],'YuihD':_0x32b95f[_0xcfc38d(0x18d)],'gveUt':function(_0x436e9c,_0x161801){return _0x32b95f['FwPJb'](_0x436e9c,_0x161801);}};if(_0x32b95f['yCrLn'](_0x32b95f[_0xcfc38d(0x198)],_0x32b95f[_0xcfc38d(0x164)])){const _0x2ed7e7={};_0x2ed7e7['Bucket']=_0x12dcb3,_0x3a672f[_0xcfc38d(0x195)](_0x2ed7e7)[_0xcfc38d(0x1c2)]()['then'](_0x2a25b7=>{const _0x4b002f=_0xcfc38d,_0x4f613e={'oKyaq':function(_0x10aa51,_0x3f4b2b){const _0x4a2e15=a23_0x5969;return _0x32b95f[_0x4a2e15(0x1c3)](_0x10aa51,_0x3f4b2b);}};_0x32b95f[_0x4b002f(0x145)](_0x32b95f['bJVNH'],_0x32b95f[_0x4b002f(0x1b7)])?(logger[_0x4b002f(0x16a)](_0x4b002f(0x17f)+_0x12dcb3+_0x4b002f(0x1b9)),_0x32b95f[_0x4b002f(0x148)](_0x102da7,!![])):_0x4f613e[_0x4b002f(0x176)](_0xf0923f,_0x252286);})[_0xcfc38d(0x16b)](()=>{const _0x29ec0b=_0xcfc38d;_0x275606['EUXKM'](_0x275606[_0x29ec0b(0x15a)],_0x275606[_0x29ec0b(0x17e)])?_0x275606['NIqWs'](_0xf1bdce,_0x7c7b5f)&&_0x275606[_0x29ec0b(0x1ac)](_0xbcf0d1['Regions'],_0x3235b5)?_0x275606[_0x29ec0b(0x16d)](_0x4c5f6b,_0x49656d[_0x29ec0b(0x181)]):_0x275606[_0x29ec0b(0x16d)](_0x1572e5,{}):(logger['info'](_0x29ec0b(0x17f)+_0x12dcb3+_0x29ec0b(0x15d)),_0x275606[_0x29ec0b(0x16d)](_0x102da7,![]));});}else _0x2844d5[_0xcfc38d(0x18c)]('Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20'+_0x33bd8d),_0x275606[_0xcfc38d(0x1c9)](_0x3765e4,_0x504c81);});},exports[a23_0x51cb65(0x1bc)]=_0x5ce761=>{const _0x38fa04=a23_0x51cb65,_0xafc81={'VCQIC':function(_0x1a9c84,_0x2b6258){return _0x1a9c84===_0x2b6258;},'tuype':_0x38fa04(0x152),'INpDc':function(_0x5b71f1,_0x37d877){return _0x5b71f1(_0x37d877);},'nZFTv':_0x38fa04(0x154),'LhZgd':function(_0x4efda2,_0x2df06d){return _0x4efda2!==_0x2df06d;},'stbdv':_0x38fa04(0x18e),'ArnTf':_0x38fa04(0x19b),'LgSic':'pxzFg','yMQav':_0x38fa04(0x1a1)};return new Promise((_0x149957,_0xa483ef)=>{const _0x17ac71=_0x38fa04,_0x5a8cb5={'sUqsX':function(_0x8dd801,_0x385a5a){const _0x2779a7=a23_0x5969;return _0xafc81[_0x2779a7(0x1bd)](_0x8dd801,_0x385a5a);},'dIsog':function(_0x2853d3,_0x338749){const _0x55060d=a23_0x5969;return _0xafc81[_0x55060d(0x1bd)](_0x2853d3,_0x338749);},'BRRpa':_0xafc81[_0x17ac71(0x156)],'gvmCS':function(_0x326bf8,_0x578072){const _0x27b42c=_0x17ac71;return _0xafc81[_0x27b42c(0x1ae)](_0x326bf8,_0x578072);},'xxHaN':_0xafc81[_0x17ac71(0x19d)],'OgIlC':_0xafc81[_0x17ac71(0x1a7)]};if(_0xafc81['LhZgd'](_0xafc81['LgSic'],_0xafc81[_0x17ac71(0x150)])){const _0x1faad0={};_0x1faad0[_0x17ac71(0x15e)]=_0xafc81['nZFTv'],_0x1faad0['region']=_0x5ce761;const _0x48dcc5=new awsSDK[(_0x17ac71(0x1c0))](_0x1faad0);_0x48dcc5[_0x17ac71(0x193)]()[_0x17ac71(0x1c2)]()[_0x17ac71(0x186)](_0x160970=>{const _0xdd6bdf=_0x17ac71,_0x41d57c={'VGNHo':function(_0x14daa8,_0x27e4db){return _0x5a8cb5['dIsog'](_0x14daa8,_0x27e4db);},'KtkAd':_0x5a8cb5['BRRpa']};if(_0x5a8cb5[_0xdd6bdf(0x1b1)](_0x5a8cb5['xxHaN'],_0x5a8cb5[_0xdd6bdf(0x173)]))_0x5a8cb5['sUqsX'](_0x149957,_0x160970);else{const _0xdfe869={'pLEVl':function(_0x23f87a,_0x326673){const _0x4ba4b2=_0xdd6bdf;return _0x5a8cb5[_0x4ba4b2(0x15f)](_0x23f87a,_0x326673);}};return new _0x36d080((_0x50eba1,_0x425fd8)=>{const _0x4ea521=_0xdd6bdf,_0x21232e={'sbVoT':function(_0x3a2bfe,_0x5b3097){const _0x114a71=a23_0x5969;return _0x41d57c[_0x114a71(0x1c8)](_0x3a2bfe,_0x5b3097);}},_0x35a8b5={};_0x35a8b5[_0x4ea521(0x15e)]=_0x41d57c[_0x4ea521(0x185)],_0x35a8b5['region']=_0x321c45;const _0x1f4761=new _0x59fe8e[(_0x4ea521(0x1c0))](_0x35a8b5);_0x1f4761[_0x4ea521(0x192)]()['promise']()[_0x4ea521(0x186)](_0x33ea78=>{const _0x4f6a09=_0x4ea521;_0x21232e[_0x4f6a09(0x157)](_0x50eba1,_0x33ea78);})[_0x4ea521(0x16b)](_0x2a1c93=>{const _0x3f340f=_0x4ea521;_0x232975[_0x3f340f(0x18c)](_0x3f340f(0x175)+_0x2a1c93),_0xdfe869['pLEVl'](_0x425fd8,_0x2a1c93);});});}})[_0x17ac71(0x16b)](_0xfe8d30=>{const _0x4e4d9e=_0x17ac71;_0xafc81[_0x4e4d9e(0x14e)](_0xafc81[_0x4e4d9e(0x1bf)],_0xafc81[_0x4e4d9e(0x1bf)])?(logger[_0x4e4d9e(0x18c)](_0x4e4d9e(0x1c1)+_0xfe8d30),_0xafc81['INpDc'](_0xa483ef,_0xfe8d30)):(_0x179729[_0x4e4d9e(0x18c)]('Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20'+_0xaa3842),_0x5a8cb5[_0x4e4d9e(0x15f)](_0x243261,_0x3ec44d));});}else _0xafc81[_0x17ac71(0x1bd)](_0x28c87a,_0x35e783);});},exports['fetchSecurityGroups']=_0x562558=>{const _0x1dd069=a23_0x51cb65,_0x194333={'OaBSQ':function(_0x117e6f,_0xf1666f){return _0x117e6f(_0xf1666f);},'KAqMf':function(_0x240c5b,_0x30ad83){return _0x240c5b===_0x30ad83;},'BUaFF':_0x1dd069(0x189),'UssKP':function(_0x1caa13,_0x356791){return _0x1caa13(_0x356791);},'vKhYo':_0x1dd069(0x154),'WIfVx':'JyEWb','UJRdT':'MBSmo','ZUmYv':function(_0x1798bf,_0x214edb){return _0x1798bf===_0x214edb;},'NWBNI':_0x1dd069(0x18b)};return new Promise((_0xd63052,_0xf2b280)=>{const _0x1796da=_0x1dd069,_0x443901={'EgDjw':function(_0x3615b9,_0x4ea244){const _0x450f80=a23_0x5969;return _0x194333[_0x450f80(0x149)](_0x3615b9,_0x4ea244);},'soAMU':function(_0x2ac0ff,_0x3525a7){const _0x4ae9de=a23_0x5969;return _0x194333[_0x4ae9de(0x199)](_0x2ac0ff,_0x3525a7);},'lcepI':_0x194333[_0x1796da(0x1a5)],'Dtgxi':function(_0x4e7500,_0x474aaa){const _0x561182=_0x1796da;return _0x194333[_0x561182(0x1a0)](_0x4e7500,_0x474aaa);},'gGoXZ':_0x194333['vKhYo'],'HLIHS':_0x194333[_0x1796da(0x17c)],'DpqvN':_0x194333[_0x1796da(0x19c)]};if(_0x194333[_0x1796da(0x1ad)](_0x194333[_0x1796da(0x1a4)],_0x194333['NWBNI'])){const _0xff32d3={};_0xff32d3['apiVersion']=_0x194333['vKhYo'],_0xff32d3[_0x1796da(0x180)]=_0x562558;const _0xfd174a=new awsSDK[(_0x1796da(0x1c0))](_0xff32d3);_0xfd174a[_0x1796da(0x192)]()['promise']()[_0x1796da(0x186)](_0x5aac39=>{const _0x483a8b=_0x1796da,_0x450c83={'GQMPb':function(_0xe47164,_0x55b22a){return _0x443901['EgDjw'](_0xe47164,_0x55b22a);}};_0x443901[_0x483a8b(0x1c5)](_0x443901[_0x483a8b(0x158)],_0x443901[_0x483a8b(0x158)])?_0x443901[_0x483a8b(0x1b2)](_0xd63052,_0x5aac39):(_0x510400[_0x483a8b(0x18c)](_0x483a8b(0x175)+_0x46caba),_0x450c83['GQMPb'](_0x136460,_0x2f8e5f));})[_0x1796da(0x16b)](_0x4674b1=>{const _0x419d1f=_0x1796da;if(_0x443901[_0x419d1f(0x1c5)](_0x443901['HLIHS'],_0x443901[_0x419d1f(0x169)])){const _0x33b604={'vwmNN':function(_0x5e3acf,_0x1b96c0){return _0x443901['Dtgxi'](_0x5e3acf,_0x1b96c0);},'idjfK':_0x443901[_0x419d1f(0x153)]};return new _0x3d426f((_0xfeea89,_0x38b4fd)=>{const _0x53e93a=_0x419d1f,_0x106994={};_0x106994['apiVersion']=_0x33b604[_0x53e93a(0x144)],_0x106994[_0x53e93a(0x180)]=_0x10530f;const _0x3bdb23=new _0x1edcd2[(_0x53e93a(0x1c0))](_0x106994);_0x3bdb23[_0x53e93a(0x193)]()[_0x53e93a(0x1c2)]()['then'](_0x3eeb2d=>{_0x33b604['vwmNN'](_0xfeea89,_0x3eeb2d);})[_0x53e93a(0x16b)](_0xdf5446=>{const _0x1e14d0=_0x53e93a;_0x3f8c79['error'](_0x1e14d0(0x1c1)+_0xdf5446),_0x33b604['vwmNN'](_0x38b4fd,_0xdf5446);});});}else logger[_0x419d1f(0x18c)](_0x419d1f(0x175)+_0x4674b1),_0x443901[_0x419d1f(0x159)](_0xf2b280,_0x4674b1);});}else{const _0x2abce0={'hnwsm':function(_0x47d3f4,_0x1977bd){const _0x2824d7=_0x1796da;return _0x443901[_0x2824d7(0x1b2)](_0x47d3f4,_0x1977bd);}},_0x5f3d29={};_0x5f3d29[_0x1796da(0x18a)]=_0x3498a1,_0x3a138b[_0x1796da(0x195)](_0x5f3d29)[_0x1796da(0x1c2)]()[_0x1796da(0x186)](_0x437929=>{const _0x507c47=_0x1796da;_0x256ab6[_0x507c47(0x16a)](_0x507c47(0x17f)+_0x322e8e+_0x507c47(0x1b9)),_0x2abce0[_0x507c47(0x19a)](_0x5c9aec,!![]);})[_0x1796da(0x16b)](()=>{const _0x262fc0=_0x1796da;_0x2d183b[_0x262fc0(0x1ba)](_0x262fc0(0x17f)+_0x475b09+_0x262fc0(0x15d)),_0x443901['EgDjw'](_0x25ebe4,![]);});}});},exports[a23_0x51cb65(0x177)]=()=>{const _0x11558c=a23_0x51cb65,_0x446e33={'cTUCY':function(_0x312601,_0x41e107){return _0x312601(_0x41e107);},'nDlRf':function(_0x185cad,_0x24e06b){return _0x185cad===_0x24e06b;},'bNasW':_0x11558c(0x1bb),'NrAAK':_0x11558c(0x162),'LnuQr':function(_0x4bfbe4,_0x739ff3){return _0x4bfbe4!==_0x739ff3;},'kJOoz':function(_0x4a80c9,_0x2a3182){return _0x4a80c9!==_0x2a3182;},'PZlul':'errdh','WVtVn':function(_0x9c67a4,_0x1b3354){return _0x9c67a4(_0x1b3354);},'hhpbA':function(_0x464f54,_0x1e9720){return _0x464f54===_0x1e9720;},'NKiwj':_0x11558c(0x187),'ZukSz':function(_0x163a40,_0x24b1fa){return _0x163a40(_0x24b1fa);},'OvkcP':_0x11558c(0x161),'xscZU':'OGFsZ','sUTwr':function(_0x366c0f,_0x548a3c){return _0x366c0f(_0x548a3c);},'ywwKY':'2016-11-15','qlKaq':function(_0x187dad,_0x52ec90){return _0x187dad===_0x52ec90;},'sluPJ':_0x11558c(0x17a)};return new Promise((_0x92ef61,_0x560070)=>{const _0x19743d=_0x11558c,_0x5be6fa={'KzRhv':function(_0x1acf0b,_0x162ee2){return _0x446e33['ZukSz'](_0x1acf0b,_0x162ee2);},'UIYbn':function(_0x4ce318,_0x2ac0f2){return _0x446e33['sUTwr'](_0x4ce318,_0x2ac0f2);},'PobmJ':_0x446e33[_0x19743d(0x14d)]};if(_0x446e33['qlKaq'](_0x446e33[_0x19743d(0x172)],_0x446e33[_0x19743d(0x172)])){const _0x565ab6={};_0x565ab6[_0x19743d(0x15e)]=_0x446e33[_0x19743d(0x14d)];const _0x51b452=new awsSDK[(_0x19743d(0x1c0))](_0x565ab6);_0x51b452[_0x19743d(0x1b3)]()[_0x19743d(0x1c2)]()[_0x19743d(0x186)]((_0x34fef8,_0x2cb72f)=>{const _0x401beb=_0x19743d,_0x315642={'YwgxZ':function(_0x3e214f,_0x5d4094){return _0x446e33['cTUCY'](_0x3e214f,_0x5d4094);}};if(_0x446e33['nDlRf'](_0x446e33['bNasW'],_0x446e33[_0x401beb(0x1af)]))_0x315642[_0x401beb(0x1c7)](_0x44e21e,{});else{if(_0x446e33['LnuQr'](_0x34fef8,undefined)&&_0x446e33[_0x401beb(0x1c6)](_0x34fef8[_0x401beb(0x181)],undefined))_0x446e33[_0x401beb(0x171)](_0x446e33[_0x401beb(0x163)],_0x446e33[_0x401beb(0x163)])?(_0x89deb1['info'](_0x401beb(0x17f)+_0x4a3182+_0x401beb(0x15d)),_0x5be6fa[_0x401beb(0x179)](_0x24ddb2,![])):_0x446e33['WVtVn'](_0x92ef61,_0x34fef8[_0x401beb(0x181)]);else{if(_0x446e33[_0x401beb(0x194)](_0x446e33['NKiwj'],_0x446e33['NKiwj']))_0x446e33[_0x401beb(0x14f)](_0x92ef61,{});else{const _0xe96881={'pPUPd':function(_0x47da1a,_0x462eda){const _0x8d91fa=_0x401beb;return _0x5be6fa[_0x8d91fa(0x188)](_0x47da1a,_0x462eda);}},_0xf35caa={};_0xf35caa[_0x401beb(0x15e)]=_0x5be6fa['PobmJ'],_0xf35caa[_0x401beb(0x180)]=_0x4a7f7b;const _0x4a8604=new _0x4c4d9c[(_0x401beb(0x1c0))](_0xf35caa);_0x4a8604[_0x401beb(0x193)]()[_0x401beb(0x1c2)]()[_0x401beb(0x186)](_0x1bfffb=>{const _0x4371f1=_0x401beb;_0xe96881[_0x4371f1(0x16c)](_0x326d2a,_0x1bfffb);})[_0x401beb(0x16b)](_0x200a45=>{const _0x28ed52=_0x401beb;_0x504387[_0x28ed52(0x18c)](_0x28ed52(0x1c1)+_0x200a45),_0x315642['YwgxZ'](_0x31cd04,_0x200a45);});}}}})[_0x19743d(0x16b)](_0x2bb30e=>{const _0x38980d=_0x19743d,_0x3d354e={'CNIhn':function(_0x10eef6,_0xcbc1be){const _0x5925fd=a23_0x5969;return _0x446e33[_0x5925fd(0x14f)](_0x10eef6,_0xcbc1be);}};_0x446e33[_0x38980d(0x14c)](_0x446e33['OvkcP'],_0x446e33[_0x38980d(0x160)])?_0x3d354e[_0x38980d(0x178)](_0x1fba4f,_0x28a6f5):(logger['error']('Failed\x20to\x20fetch\x20AWS\x20Regions\x20due\x20to\x20error:\x20'+_0x2bb30e),_0x446e33['cTUCY'](_0x560070,_0x2bb30e));});}else{const _0x3a378e={'vsSHD':function(_0x5f3bfd,_0x2863f7){const _0x5a1c00=_0x19743d;return _0x446e33[_0x5a1c00(0x1ab)](_0x5f3bfd,_0x2863f7);}};return new _0x145822((_0x573433,_0x3bb44b)=>{const _0x400148=_0x19743d,_0x4a0e7b={'bVeGH':function(_0x15e125,_0x59267d){const _0x2afc4b=a23_0x5969;return _0x5be6fa[_0x2afc4b(0x179)](_0x15e125,_0x59267d);}},_0x645938={};_0x645938['apiVersion']=_0x5be6fa[_0x400148(0x1b6)],_0x645938[_0x400148(0x180)]=_0x508c04;const _0x5aeb5f=new _0xd975f6[(_0x400148(0x1c0))](_0x645938);_0x5aeb5f[_0x400148(0x151)]()[_0x400148(0x1c2)]()[_0x400148(0x186)](_0xbd919=>{const _0x4dc917=_0x400148;_0x4a0e7b[_0x4dc917(0x182)](_0x573433,_0xbd919);})[_0x400148(0x16b)](_0x2234fc=>{const _0x4ba55a=_0x400148;_0x384967[_0x4ba55a(0x18c)](_0x4ba55a(0x1cb)+_0x2234fc),_0x3a378e[_0x4ba55a(0x1cd)](_0x3bb44b,_0x2234fc);});});}});},exports[a23_0x51cb65(0x155)]=awsSDK;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a24_0x386f(_0x8872f1,_0x597b25){const _0x217182=a24_0x2171();return a24_0x386f=function(_0x386f36,_0x504b92){_0x386f36=_0x386f36-0x1a7;let _0x5ea3ab=_0x217182[_0x386f36];return _0x5ea3ab;},a24_0x386f(_0x8872f1,_0x597b25);}const a24_0x5dcb3f=a24_0x386f;(function(_0x450968,_0x30e76e){const _0x58c0c5=a24_0x386f,_0x184177=_0x450968();while(!![]){try{const _0x547361=-parseInt(_0x58c0c5(0x1df))/0x1*(parseInt(_0x58c0c5(0x1b6))/0x2)+parseInt(_0x58c0c5(0x1ca))/0x3+-parseInt(_0x58c0c5(0x1c0))/0x4+parseInt(_0x58c0c5(0x1cd))/0x5*(parseInt(_0x58c0c5(0x1d9))/0x6)+parseInt(_0x58c0c5(0x1de))/0x7*(-parseInt(_0x58c0c5(0x1e1))/0x8)+parseInt(_0x58c0c5(0x1db))/0x9*(parseInt(_0x58c0c5(0x1a8))/0xa)+parseInt(_0x58c0c5(0x1aa))/0xb;if(_0x547361===_0x30e76e)break;else _0x184177['push'](_0x184177['shift']());}catch(_0x3702f0){_0x184177['push'](_0x184177['shift']());}}}(a24_0x2171,0xc49d1));function a24_0x2171(){const _0x457815=['isoZO','bluebird','stackCreateComplete','15610470QBGBEj','DELETE','21100409gkmUdj','browserstack:cluster','OnFailure','StackId','promisifyAll','awsObj','utf-8','templates','autoscaler-role-creation.yaml','CloudFormation','rVYfF','Properties','4JvwWyN','js-yaml-cloudformation-schema','apiVersion','Tags','join','readFileAsync','RiICm','dKsaX','hYCRU','path','5493240EqKnXa','TemplateBody','bpusE','zCnul','push','schema','Value','Key','StackName','TNwgF','1903356XZPiAd','SrChn','../config/logger','343245gNBOnA','Resources','Waiting\x20for\x20CloudFormation\x20stack\x20to\x20complete','promise','createAutoscalerStack','Parameters','waitFor','createStack','valueOf','OKPDH','js-yaml','../config/constants','54mnTKds','OhQun','9DapJNg','browserstack:creationDate','Capabilities','413hrLdxG','506569hsGEDG','ClusterName','208784mgKiMG'];a24_0x2171=function(){return _0x457815;};return a24_0x2171();}const fs=require('fs'),path=require(a24_0x5dcb3f(0x1bf)),yaml=require(a24_0x5dcb3f(0x1d7)),{CLOUDFORMATION_SCHEMA}=require(a24_0x5dcb3f(0x1b7)),Promise=require(a24_0x5dcb3f(0x1e3)),AWS=require('./AWSUtils')[a24_0x5dcb3f(0x1af)],{CLUSTER_AUTOSCALER_STACK_NAME,COMMON_HST_TAGS}=require(a24_0x5dcb3f(0x1d8)),{logger}=require(a24_0x5dcb3f(0x1cc));Promise[a24_0x5dcb3f(0x1ae)](fs);const addAutoscalerTags=async(_0x243e60,_0x4500e6,_0x380c71)=>{const _0xa48c25=a24_0x5dcb3f;for(const _0x13dbf4 in _0x243e60[_0xa48c25(0x1ce)]){_0x243e60['Resources'][_0x13dbf4][_0xa48c25(0x1b5)]&&_0x243e60['Resources'][_0x13dbf4][_0xa48c25(0x1b5)]['Tags']&&_0x243e60['Resources'][_0x13dbf4][_0xa48c25(0x1b5)][_0xa48c25(0x1b9)]['push'](..._0x380c71);}};exports[a24_0x5dcb3f(0x1d1)]=async _0x101d2a=>{const _0x43ac68=a24_0x5dcb3f,_0x3dc23b={'xxUET':_0x43ac68(0x1ab),'zCnul':_0x43ac68(0x1dc),'hYCRU':'2010-05-15','SrChn':_0x43ac68(0x1b1),'OKPDH':_0x43ac68(0x1b2),'OhQun':_0x43ac68(0x1b0),'rVYfF':function(_0x60d124,_0x3ab7be,_0x64c65,_0x3c51bd){return _0x60d124(_0x3ab7be,_0x64c65,_0x3c51bd);},'bpusE':_0x43ac68(0x1a9),'RiICm':_0x43ac68(0x1e0),'dKsaX':'CAPABILITY_NAMED_IAM','isoZO':_0x43ac68(0x1cf),'TNwgF':_0x43ac68(0x1a7)},_0x41ecc7=COMMON_HST_TAGS,_0x82703c={};_0x82703c[_0x43ac68(0x1c7)]=_0x3dc23b['xxUET'],_0x82703c[_0x43ac68(0x1c6)]=_0x101d2a,_0x41ecc7[_0x43ac68(0x1c4)](_0x82703c),_0x41ecc7[_0x43ac68(0x1c4)]({'Key':_0x3dc23b[_0x43ac68(0x1c3)],'Value':new Date()[_0x43ac68(0x1d5)]()['toString']()});const _0x210f52={};_0x210f52[_0x43ac68(0x1b8)]=_0x3dc23b[_0x43ac68(0x1be)];const _0x503933=new AWS[(_0x43ac68(0x1b3))](_0x210f52),_0x298ce3=await fs[_0x43ac68(0x1bb)](path[_0x43ac68(0x1ba)](__dirname,'..',_0x3dc23b[_0x43ac68(0x1cb)],_0x3dc23b[_0x43ac68(0x1d6)]),_0x3dc23b[_0x43ac68(0x1da)]),_0x215d3e={};_0x215d3e[_0x43ac68(0x1c5)]=CLOUDFORMATION_SCHEMA;const _0xec58d6=yaml['load'](_0x298ce3,_0x215d3e);_0x3dc23b[_0x43ac68(0x1b4)](addAutoscalerTags,_0xec58d6,_0x101d2a,_0x41ecc7);const _0x9a48d8=JSON['stringify'](_0xec58d6),_0x32bb19={};_0x32bb19[_0x43ac68(0x1c8)]=CLUSTER_AUTOSCALER_STACK_NAME+'-'+_0x101d2a,_0x32bb19[_0x43ac68(0x1ac)]=_0x3dc23b[_0x43ac68(0x1c2)],_0x32bb19[_0x43ac68(0x1c1)]=_0x9a48d8,_0x32bb19[_0x43ac68(0x1d2)]=[{'ParameterKey':_0x3dc23b[_0x43ac68(0x1bc)],'ParameterValue':_0x101d2a}],_0x32bb19[_0x43ac68(0x1dd)]=[_0x3dc23b[_0x43ac68(0x1bd)]],_0x32bb19[_0x43ac68(0x1b9)]=_0x41ecc7;const _0x2ca490=_0x32bb19,_0x4b3f92=await _0x503933[_0x43ac68(0x1d4)](_0x2ca490)[_0x43ac68(0x1d0)]();logger['debug'](_0x3dc23b[_0x43ac68(0x1e2)]);const _0x3f6350={};return _0x3f6350['StackName']=_0x4b3f92[_0x43ac68(0x1ad)],_0x503933[_0x43ac68(0x1d3)](_0x3dc23b[_0x43ac68(0x1c9)],_0x3f6350)[_0x43ac68(0x1d0)]();};
|