browserstack-node-sdk 1.34.49 → 1.34.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.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/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.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/metadata.js +1 -0
- 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/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/processHelper.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_0xc6d1e6=a15_0x1059;function a15_0x1059(_0x4cb498,_0x567c16){const _0x1046e5=a15_0x1046();return a15_0x1059=function(_0x105929,_0x162823){_0x105929=_0x105929-0x11a;let _0x591610=_0x1046e5[_0x105929];return _0x591610;},a15_0x1059(_0x4cb498,_0x567c16);}(function(_0x52e9ec,_0x2304af){const _0x134f22=a15_0x1059,_0x497307=_0x52e9ec();while(!![]){try{const _0x495dda=parseInt(_0x134f22(0x147))/0x1*(parseInt(_0x134f22(0x166))/0x2)+parseInt(_0x134f22(0x13c))/0x3*(-parseInt(_0x134f22(0x121))/0x4)+-parseInt(_0x134f22(0x128))/0x5+parseInt(_0x134f22(0x140))/0x6+parseInt(_0x134f22(0x138))/0x7+-parseInt(_0x134f22(0x16a))/0x8*(-parseInt(_0x134f22(0x131))/0x9)+-parseInt(_0x134f22(0x136))/0xa;if(_0x495dda===_0x2304af)break;else _0x497307['push'](_0x497307['shift']());}catch(_0x1c31dd){_0x497307['push'](_0x497307['shift']());}}}(a15_0x1046,0xc5d0c));function a15_0x1046(){const _0x3ae5d1=['grid','eWFeu','exit','qydJy','dGeoV','table','statusCode','epilogue','Eqljf','forEach','fFUcA','\x0aFound\x20the\x20following\x20grids:\x0a','https://','yhXWV','command','YnukG','help','log','init-not-called','uuid','9058bsHMIH','bstackAccesskey','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','cluster-name','16DnhMgi','server-error','gLsTx','ZpuIp','parse','list-grids-called','ERROR','grid-name','bstackUsername','readFileSync','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','tsdvC','Failed\x20to\x20list\x20resources!\x20Error:\x20','16plbEhH','list','desc','options','xphYi','iFjSt','HtxNG','4173860nBUgcn','zuZiO','Browserstack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','hyEQe','allGrids','OUuHM','clusterName','argv','4580253PAEWUr','description','GET','got','kWsmD','14184080vUvrTR','/packages/cli/get-grids','11340910LmsvPU','../../utils/utilityMethods','lCREm','type','1203231sENKTX','existsSync','push','sfTIC','3564498baJqGQ','unknown-error','builder','unauthorised','grid-id','stringify','running','317EPMUuo','body','status','INFO','CNUCi','name','kbTJf','username','queued','password','error'];a15_0x1046=function(){return _0x3ae5d1;};return a15_0x1046();}const fs=require('fs'),got=require(a15_0xc6d1e6(0x134)),{table}=require(a15_0xc6d1e6(0x157)),{v4:uuidv4}=require(a15_0xc6d1e6(0x165)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0xc6d1e6(0x139)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a15_0xc6d1e6(0x160)]='grids',exports[a15_0xc6d1e6(0x123)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0xc6d1e6(0x142)]=function(_0x6c2ba0){const _0x7dde96=a15_0xc6d1e6,_0x529b14={};_0x529b14[_0x7dde96(0x127)]=_0x7dde96(0x11e),_0x529b14[_0x7dde96(0x156)]='boolean',_0x529b14[_0x7dde96(0x16d)]=_0x7dde96(0x162);const _0x5ab4e0=_0x529b14,_0x54ba68={};_0x54ba68[_0x7dde96(0x132)]=_0x5ab4e0[_0x7dde96(0x127)],_0x54ba68[_0x7dde96(0x13b)]=_0x5ab4e0['dGeoV'];const _0x261f26={};return _0x261f26['all-grids']=_0x54ba68,_0x6c2ba0['usage'](HELP_HEADER_MESSAGE[_0x7dde96(0x122)][_0x7dde96(0x152)])[_0x7dde96(0x159)](HELP_FOOTER_MESSAGE)[_0x7dde96(0x124)](_0x261f26)[_0x7dde96(0x162)](_0x5ab4e0[_0x7dde96(0x16d)])[_0x7dde96(0x130)];},exports['handler']=async function(_0x57589a){const _0x1b6582=a15_0xc6d1e6,_0x41530d={'hyEQe':function(_0x622522){return _0x622522();},'gLsTx':_0x1b6582(0x168),'CNUCi':function(_0x3cd3a1,_0x242fec,_0x5d8bef,_0x14ea80,_0x37868b,_0x1f46e7,_0x1aa881){return _0x3cd3a1(_0x242fec,_0x5d8bef,_0x14ea80,_0x37868b,_0x1f46e7,_0x1aa881);},'kbTJf':_0x1b6582(0x16f),'qydJy':_0x1b6582(0x164),'kWsmD':function(_0x4d1cb2){return _0x4d1cb2();},'OSiav':_0x1b6582(0x133),'iFjSt':function(_0x3b32c4,_0x264c84,_0x735b85){return _0x3b32c4(_0x264c84,_0x735b85);},'tsdvC':function(_0x591813,_0x4a3242){return _0x591813!==_0x4a3242;},'fSxXy':function(_0x576361,_0x515a01){return _0x576361!==_0x515a01;},'zuZiO':function(_0x4fb42e,_0x4ecf1e){return _0x4fb42e===_0x4ecf1e;},'YnukG':_0x1b6582(0x15d),'KXfWm':_0x1b6582(0x144),'xphYi':_0x1b6582(0x11b),'sfTIC':_0x1b6582(0x149),'fFUcA':_0x1b6582(0x146),'yhXWV':_0x1b6582(0x14f),'OUuHM':_0x1b6582(0x169),'wrXCh':function(_0x41964c,_0x2cd1ab){return _0x41964c(_0x2cd1ab);},'MrEcg':_0x1b6582(0x12b),'Eqljf':function(_0x56c601,_0x434262,_0x9df11e,_0x4a03ee,_0x4f67bb,_0x34e682,_0x26bd5c){return _0x56c601(_0x434262,_0x9df11e,_0x4a03ee,_0x4f67bb,_0x34e682,_0x26bd5c);},'feTMv':_0x1b6582(0x143),'lCREm':_0x1b6582(0x16b),'eWFeu':_0x1b6582(0x141)};try{global_registry['requestId']=_0x41530d['hyEQe'](uuidv4);!fs[_0x1b6582(0x13d)](_0x41530d[_0x1b6582(0x12c)](getCredentialsPath))&&(console['error'](_0x41530d[_0x1b6582(0x16c)]),await _0x41530d['CNUCi'](sendInstrumentationEvent,_0x57589a,_0x41530d[_0x1b6582(0x14d)],messageTypes[_0x1b6582(0x11a)],_0x41530d[_0x1b6582(0x155)],null,_0x57589a),process['exit'](0x1));const _0x1adf4c=JSON[_0x1b6582(0x16e)](fs[_0x1b6582(0x11d)](_0x41530d[_0x1b6582(0x135)](getCredentialsPath)));let _0x21242d=_0x1b6582(0x15e)+AG_API_URL+_0x1b6582(0x137);_0x57589a[_0x1b6582(0x12d)]&&(_0x21242d=_0x1b6582(0x15e)+AG_API_URL+'/packages/cli/get-all-grids');const _0x510cac={'method':_0x41530d['OSiav'],'headers':_0x41530d[_0x1b6582(0x126)](getAuthHeader,_0x1adf4c[_0x1b6582(0x12a)][_0x1b6582(0x14e)],_0x1adf4c[_0x1b6582(0x12a)]['password']),'throwHttpErrors':![]};global_registry[_0x1b6582(0x11c)]=_0x1adf4c[_0x1b6582(0x12a)]['username'],global_registry[_0x1b6582(0x167)]=_0x1adf4c[_0x1b6582(0x12a)][_0x1b6582(0x150)],_0x41530d[_0x1b6582(0x14b)](sendInstrumentationEvent,_0x57589a,_0x41530d['kbTJf'],messageTypes[_0x1b6582(0x14a)],null,null,_0x57589a);const _0x31ca18=await _0x41530d[_0x1b6582(0x126)](got,_0x21242d,_0x510cac);if(_0x41530d[_0x1b6582(0x11f)](_0x31ca18,null)&&_0x41530d['fSxXy'](_0x31ca18,undefined)&&_0x41530d['zuZiO'](_0x31ca18[_0x1b6582(0x158)],0xc8)){const _0x424ab5=JSON[_0x1b6582(0x16e)](_0x31ca18[_0x1b6582(0x148)]);console['log'](_0x41530d[_0x1b6582(0x161)]);const _0x42fcd7=[];_0x42fcd7['push']([_0x41530d['KXfWm'],_0x41530d[_0x1b6582(0x125)],_0x41530d[_0x1b6582(0x13f)],_0x41530d[_0x1b6582(0x15c)],_0x41530d[_0x1b6582(0x15f)],_0x41530d[_0x1b6582(0x12e)]]),_0x424ab5[_0x1b6582(0x15b)](_0x4b7792=>{const _0xa86aa0=_0x1b6582;_0x42fcd7[_0xa86aa0(0x13e)]([_0x4b7792['id'],_0x4b7792[_0xa86aa0(0x14c)],_0x4b7792[_0xa86aa0(0x149)],_0x4b7792['running'],_0x4b7792['queued'],_0x4b7792[_0xa86aa0(0x12f)]]);}),console[_0x1b6582(0x163)](_0x41530d['wrXCh'](table,_0x42fcd7)),process['exit'](0x0);}_0x41530d[_0x1b6582(0x129)](_0x31ca18['statusCode'],0x191)&&(console[_0x1b6582(0x151)](_0x41530d['MrEcg']),await _0x41530d[_0x1b6582(0x15a)](sendInstrumentationEvent,_0x57589a,_0x41530d[_0x1b6582(0x14d)],messageTypes[_0x1b6582(0x11a)],_0x41530d['feTMv'],null,_0x57589a),process[_0x1b6582(0x154)](0x1)),console[_0x1b6582(0x151)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x1b6582(0x145)](_0x31ca18)),await _0x41530d[_0x1b6582(0x15a)](sendInstrumentationEvent,_0x57589a,_0x41530d[_0x1b6582(0x14d)],messageTypes[_0x1b6582(0x11a)],_0x41530d[_0x1b6582(0x13a)],_0x31ca18,_0x57589a),process[_0x1b6582(0x154)](0x1);}catch(_0x6060fc){console[_0x1b6582(0x151)](_0x1b6582(0x120)+_0x6060fc['stack']),await _0x41530d[_0x1b6582(0x15a)](sendInstrumentationEvent,_0x57589a,_0x41530d['kbTJf'],messageTypes['ERROR'],_0x41530d[_0x1b6582(0x153)],_0x6060fc,_0x57589a),process[_0x1b6582(0x154)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a16_0x2e15a2=a16_0x423d;(function(_0x5270e8,_0xe1581){const _0x2ed157=a16_0x423d,_0x10c16b=_0x5270e8();while(!![]){try{const _0x48804a=-parseInt(_0x2ed157(0x1fb))/0x1*(parseInt(_0x2ed157(0x1f0))/0x2)+parseInt(_0x2ed157(0x206))/0x3+-parseInt(_0x2ed157(0x205))/0x4*(-parseInt(_0x2ed157(0x201))/0x5)+parseInt(_0x2ed157(0x1f8))/0x6*(parseInt(_0x2ed157(0x1f7))/0x7)+parseInt(_0x2ed157(0x1f1))/0x8+-parseInt(_0x2ed157(0x1f5))/0x9+-parseInt(_0x2ed157(0x1f2))/0xa*(parseInt(_0x2ed157(0x207))/0xb);if(_0x48804a===_0xe1581)break;else _0x10c16b['push'](_0x10c16b['shift']());}catch(_0x4c03be){_0x10c16b['push'](_0x10c16b['shift']());}}}(a16_0x3fc2,0x3d355));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x2e15a2(0x1fa));function a16_0x423d(_0x33c211,_0x589993){const _0x3fc2bb=a16_0x3fc2();return a16_0x423d=function(_0x423ddf,_0x31c8dc){_0x423ddf=_0x423ddf-0x1f0;let _0x1d0987=_0x3fc2bb[_0x423ddf];return _0x1d0987;},a16_0x423d(_0x33c211,_0x589993);}function a16_0x3fc2(){const _0x4a09dd=['450saSolL','pre_check','../config/constants','3449JdzPIi','xPzBr','pre-check','cuBuo','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','help','1812325PyWTNf','desc','command','recommendCommands','4sDpTLU','124404keeqBu','22qsyScL','50VZmoaX','436808lFjFBg','1023980LGwPhP','demandCommand','strict','2189511CxOAfv','precheck_commands','30471vZHrSB'];a16_0x3fc2=function(){return _0x4a09dd;};return a16_0x3fc2();}exports[a16_0x2e15a2(0x203)]=a16_0x2e15a2(0x1fd),exports[a16_0x2e15a2(0x202)]=a16_0x2e15a2(0x1ff),exports['builder']=function(_0x3ec5c0){const _0x120777=a16_0x2e15a2,_0x54288f={};_0x54288f[_0x120777(0x1fe)]=_0x120777(0x1f6),_0x54288f[_0x120777(0x1fc)]=_0x120777(0x200);const _0x25f0b2=_0x54288f;return _0x3ec5c0['usage'](HELP_HEADER_MESSAGE[_0x120777(0x1f9)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x25f0b2['cuBuo'])[_0x120777(0x1f3)]()[_0x120777(0x204)]()[_0x120777(0x1f4)]()['help'](_0x25f0b2['xPzBr']);},exports['handler']=function(_0x19f229){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a17_0x5c75fc=a17_0x4d29;(function(_0x100847,_0x1dadf2){const _0x39041e=a17_0x4d29,_0x2c6a46=_0x100847();while(!![]){try{const _0xe11847=parseInt(_0x39041e(0x147))/0x1*(-parseInt(_0x39041e(0x1d9))/0x2)+parseInt(_0x39041e(0x1b1))/0x3*(-parseInt(_0x39041e(0x14b))/0x4)+parseInt(_0x39041e(0xf0))/0x5+-parseInt(_0x39041e(0x154))/0x6*(-parseInt(_0x39041e(0x17b))/0x7)+-parseInt(_0x39041e(0x1d5))/0x8+parseInt(_0x39041e(0x134))/0x9*(parseInt(_0x39041e(0x183))/0xa)+parseInt(_0x39041e(0x1b6))/0xb;if(_0xe11847===_0x1dadf2)break;else _0x2c6a46['push'](_0x2c6a46['shift']());}catch(_0x32108f){_0x2c6a46['push'](_0x2c6a46['shift']());}}}(a17_0x1a36,0x43ec8));const fs=require('fs'),ws=require('ws'),got=require(a17_0x5c75fc(0x1be)),{v4:uuidv4}=require(a17_0x5c75fc(0x1cf)),ReconnectingWebSocket=require(a17_0x5c75fc(0x131)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x5c75fc(0x117)),{logger}=require(a17_0x5c75fc(0x1c8)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x5c75fc(0x142)),{sendInstrumentationEvent}=require(a17_0x5c75fc(0x18e));exports['command']='grid',exports[a17_0x5c75fc(0x135)]=a17_0x5c75fc(0x102),exports[a17_0x5c75fc(0x185)]=function(_0x148f17){const _0x3c9e81=a17_0x5c75fc,_0x1338da={};_0x1338da[_0x3c9e81(0x133)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x1338da[_0x3c9e81(0x10b)]=_0x3c9e81(0x1dc),_0x1338da[_0x3c9e81(0x170)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x1338da['FFDXW']='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x1338da['eyJoW']=_0x3c9e81(0x119),_0x1338da['icGUs']=_0x3c9e81(0x1c1);const _0x599daf=_0x1338da,_0x4e041c={};_0x4e041c[_0x3c9e81(0x12e)]=_0x599daf[_0x3c9e81(0x133)],_0x4e041c[_0x3c9e81(0xf5)]=_0x599daf[_0x3c9e81(0x10b)];const _0x5e1689={};_0x5e1689[_0x3c9e81(0x12e)]=_0x599daf['fJSVh'],_0x5e1689[_0x3c9e81(0xf5)]=_0x599daf[_0x3c9e81(0x10b)];const _0x118e41={};_0x118e41[_0x3c9e81(0x12e)]=_0x599daf[_0x3c9e81(0x189)],_0x118e41[_0x3c9e81(0xf5)]=_0x599daf[_0x3c9e81(0x10b)];const _0x56c759={};_0x56c759[_0x3c9e81(0x12e)]=_0x599daf[_0x3c9e81(0x136)],_0x56c759['type']=_0x599daf['ImFsy'];const _0x3bd583={};return _0x3bd583[_0x3c9e81(0x19a)]=_0x4e041c,_0x3bd583[_0x3c9e81(0x139)]=_0x5e1689,_0x3bd583[_0x3c9e81(0x1a3)]=_0x118e41,_0x3bd583[_0x3c9e81(0x1ed)]=_0x56c759,_0x148f17[_0x3c9e81(0x191)](HELP_HEADER_MESSAGE[_0x3c9e81(0x1e4)])[_0x3c9e81(0x13f)](HELP_FOOTER_MESSAGE)['options'](_0x3bd583)[_0x3c9e81(0x1c1)](_0x599daf[_0x3c9e81(0x15b)])[_0x3c9e81(0x110)];};async function inputValidation(_0x1dcecb,_0xd40369){const _0xa26bac=a17_0x5c75fc,_0x3e66d6={'KoIoU':_0xa26bac(0x19a),'KzyPy':_0xa26bac(0x1b5),'Flssp':_0xa26bac(0x139),'kskBp':_0xa26bac(0x169),'aBihe':_0xa26bac(0x188),'FWmYD':_0xa26bac(0x1ba),'pMUKq':'string','GPwwJ':_0xa26bac(0x12d),'vZeEI':_0xa26bac(0x104),'epuAd':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','WjHoS':_0xa26bac(0x1c1),'geouc':'region','WIHfg':_0xa26bac(0x105),'BkxKX':function(_0x15f3ff,_0x5c0f6a){return _0x15f3ff+_0x5c0f6a;},'lKbPC':_0xa26bac(0x19f),'efMNK':'Failure','vHxRm':function(_0x15161b,_0x2846e2){return _0x15161b||_0x2846e2;},'YbrNk':'N/A','qYnIP':_0xa26bac(0x1cd),'qFFig':function(_0x1f9959,_0x184ce2){return _0x1f9959===_0x184ce2;},'sgjRi':_0xa26bac(0x1cb),'ApRKk':function(_0x490f3c,_0x2d2ef5){return _0x490f3c!==_0x2d2ef5;},'DMfmJ':_0xa26bac(0x1da),'gXdFZ':'ExqYF','FQHEj':_0xa26bac(0x1a9),'FGGso':'BvYVK','pEgVl':function(_0x590866,_0x4808d6){return _0x590866!==_0x4808d6;},'VgQDF':_0xa26bac(0x148),'iEhlA':_0xa26bac(0x180),'LUbjd':function(_0x21af00,_0x5109e1){return _0x21af00>_0x5109e1;},'aDQTH':'Snpnm','mpogn':_0xa26bac(0x11d),'LumUQ':function(_0x41ee30,_0x1c40a9,_0x5754de,_0x497123,_0x5c5c17,_0x155488,_0x5a221b,_0x409085){return _0x41ee30(_0x1c40a9,_0x5754de,_0x497123,_0x5c5c17,_0x155488,_0x5a221b,_0x409085);},'eCEZV':_0xa26bac(0x184),'oFRQW':_0xa26bac(0x196),'AQbwj':_0xa26bac(0x155),'XaxUb':_0xa26bac(0x126),'xYARM':function(_0x2df08e,_0x374c1c,_0x10147e,_0xc7b06e,_0x554257,_0x30a6b5,_0x5c8645,_0x4deb59){return _0x2df08e(_0x374c1c,_0x10147e,_0xc7b06e,_0x554257,_0x30a6b5,_0x5c8645,_0x4deb59);},'fiYbl':'cloud-provider-not-supported','LVqmC':function(_0x5d055a,_0x2453c2){return _0x5d055a!==_0x2453c2;},'iFTrr':_0xa26bac(0x11c),'CsgvM':'kfrvu','gJXyd':_0xa26bac(0x10a),'fhwzr':_0xa26bac(0x18d),'EQFjG':function(_0x5ef58c,_0x3d0a92,_0x3be67c){return _0x5ef58c(_0x3d0a92,_0x3be67c);},'qttxs':function(_0x5b883c,_0x3519c2,_0x16b612,_0xa0795a,_0x2cfb34,_0x263990){return _0x5b883c(_0x3519c2,_0x16b612,_0xa0795a,_0x2cfb34,_0x263990);},'IBKwp':_0xa26bac(0x165),'aNvtv':_0xa26bac(0x1ed),'UGosw':function(_0x5c4a83,_0xd12201){return _0x5c4a83===_0xd12201;},'HphWc':function(_0x402816,_0x54e388){return _0x402816===_0x54e388;},'LnLsW':'OanyS','soRUP':function(_0x69ebbe,_0x4b374c){return _0x69ebbe(_0x4b374c);},'OgfSD':function(_0x2c9c37,_0x5ca163){return _0x2c9c37===_0x5ca163;},'nUSxZ':_0xa26bac(0x178),'LRdsL':_0xa26bac(0x193),'xqJrq':_0xa26bac(0x172),'GfNpK':_0xa26bac(0x195),'zaUhz':_0xa26bac(0x1e9),'kdfRb':_0xa26bac(0x15d),'zSlWw':_0xa26bac(0x12c),'Gopal':_0xa26bac(0x1de),'xkpGX':'iUuAJ','Afxqd':_0xa26bac(0x1b9),'hGejq':'irHil','Cqjqh':_0xa26bac(0x1e5)};let _0x209c3d;try{if(_0x3e66d6[_0xa26bac(0xf9)](_0x3e66d6[_0xa26bac(0x176)],_0x3e66d6[_0xa26bac(0x176)])){if(_0x1dcecb['clusterName']||_0x1dcecb[_0xa26bac(0x157)]||_0x1dcecb[_0xa26bac(0x1a3)]){if(_0x3e66d6[_0xa26bac(0x1dd)](_0x3e66d6['DMfmJ'],_0x3e66d6[_0xa26bac(0x10c)]))_0xb8c3e2[_0xa26bac(0x137)]('['+_0x365bb6+_0xa26bac(0xf4)+_0x6f3dbd[_0xa26bac(0x140)]+_0xa26bac(0x151)+_0x1c14b5[_0xa26bac(0x1a1)]+_0xa26bac(0x16d)+_0x4c4cea['error']),_0x268e92[_0xa26bac(0x1b5)]&&_0x2e116c[_0xa26bac(0x1b5)](_0xa26bac(0x100)+_0x252207['error'][_0xa26bac(0x11b)]);else{const _0x482572=[];!_0x1dcecb[_0xa26bac(0x194)]&&(_0x3e66d6[_0xa26bac(0x1dd)](_0x3e66d6[_0xa26bac(0x177)],_0x3e66d6[_0xa26bac(0x11a)])?_0x482572[_0xa26bac(0x1c7)](_0x3e66d6[_0xa26bac(0x1df)]):_0xd2b62f[_0xa26bac(0x1c7)](_0x3e66d6[_0xa26bac(0x1df)]));;if(!_0x1dcecb['cloudProvider']){if(_0x3e66d6['qFFig'](_0x3e66d6[_0xa26bac(0x15e)],_0x3e66d6[_0xa26bac(0x15e)]))_0x482572[_0xa26bac(0x1c7)](_0x3e66d6[_0xa26bac(0x16f)]);else{const _0x30e226={};_0x30e226[_0xa26bac(0xf5)]=_0x45f714[_0xa26bac(0x1ac)],_0x30e226[_0xa26bac(0x15a)]=_0xc09940,_0xd07350[_0xa26bac(0x146)](_0x4efe18,_0x30e226,_0x3e66d6['KzyPy'],!![]);}};!_0x1dcecb[_0xa26bac(0x1a3)]&&(_0x3e66d6[_0xa26bac(0x106)](_0x3e66d6['VgQDF'],_0x3e66d6[_0xa26bac(0x162)])?_0x482572[_0xa26bac(0x1c7)](_0x3e66d6[_0xa26bac(0x11f)]):(_0x3880e4[_0xa26bac(0x137)](_0xa26bac(0x179)+_0x280f6f['CLOUD_PROVIDER']+'\x20'),_0xe859f8[_0xa26bac(0x157)]=_0x9547fb[_0xa26bac(0x1e2)]));;_0x3e66d6[_0xa26bac(0x174)](_0x482572[_0xa26bac(0x14d)],0x0)&&(_0x3e66d6['qFFig'](_0x3e66d6[_0xa26bac(0x1c2)],_0x3e66d6[_0xa26bac(0x19b)])?_0x4808a8[_0xa26bac(0x163)](0x1):(_0x209c3d='Missing\x20required\x20arguments:\x20'+_0x482572['join'](',\x20')+_0xa26bac(0x114),await _0x3e66d6[_0xa26bac(0x13b)](reportToGalactusAndSendToEDS,_0x1dcecb,_0xd40369,_0x209c3d,messageTypes[_0xa26bac(0x1b2)],_0x3e66d6[_0xa26bac(0x190)],_0x3e66d6[_0xa26bac(0x1e7)],_0x3e66d6[_0xa26bac(0x199)]),logger[_0xa26bac(0x1b5)](_0x209c3d),process[_0xa26bac(0x163)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0xa26bac(0x1bd)](_0x1dcecb['cloudProvider'][_0xa26bac(0x111)]())&&(_0x3e66d6[_0xa26bac(0x106)](_0x3e66d6[_0xa26bac(0x1bb)],_0x3e66d6[_0xa26bac(0x1bb)])?_0x8919fb[_0xa26bac(0x1b5)](_0xa26bac(0x100)+_0x4586aa[_0xa26bac(0x1b5)][_0xa26bac(0x11b)]):(_0x209c3d=_0x3e66d6[_0xa26bac(0x115)],await _0x3e66d6[_0xa26bac(0x10d)](reportToGalactusAndSendToEDS,_0x1dcecb,_0xd40369,_0x209c3d,messageTypes[_0xa26bac(0x1b2)],_0x3e66d6['eCEZV'],_0x3e66d6[_0xa26bac(0x1ad)],_0x3e66d6[_0xa26bac(0x199)]),logger[_0xa26bac(0x1b5)](_0x209c3d),!_0x1dcecb['cloudProvider']&&(_0x3e66d6[_0xa26bac(0x15c)](_0x3e66d6[_0xa26bac(0x1b8)],_0x3e66d6[_0xa26bac(0x1b8)])?_0x175bf9['info'](_0xa26bac(0x108)+_0x3c98b7[_0xa26bac(0x194)]+_0xa26bac(0x101)):(logger[_0xa26bac(0x137)](_0xa26bac(0x179)+DEFAULT_CLUSTER_DETAILS[_0xa26bac(0x1e2)]+'\x20'),_0x1dcecb[_0xa26bac(0x157)]=DEFAULT_CLUSTER_DETAILS[_0xa26bac(0x1e2)])))),global_registry[_0xa26bac(0x194)]=_0x1dcecb['clusterName'],global_registry[_0xa26bac(0x157)]=_0x1dcecb[_0xa26bac(0x157)],global_registry[_0xa26bac(0x1c9)]=_0x1dcecb[_0xa26bac(0x1a3)];}}else{if(_0x1dcecb[_0xa26bac(0xfc)]){if(_0x3e66d6['qFFig'](_0x3e66d6[_0xa26bac(0x127)],_0x3e66d6['gJXyd']))_0x464023['push'](_0x3e66d6[_0xa26bac(0x16f)]);else{global_registry[_0xa26bac(0xfc)]=_0x1dcecb[_0xa26bac(0xfc)],logger[_0xa26bac(0x182)](_0xa26bac(0x14e)+_0x1dcecb[_0xa26bac(0xfc)]);const _0x37d86b=_0xa26bac(0xfe)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0xd69ba6={};_0xd69ba6['method']=_0x3e66d6[_0xa26bac(0x1ef)],_0xd69ba6['headers']=global_registry[_0xa26bac(0x123)],_0xd69ba6['throwHttpErrors']=![];const _0x5d64b8=_0xd69ba6,_0x57cc76=await _0x3e66d6[_0xa26bac(0x1d3)](got,_0x37d86b,_0x5d64b8),_0x1168a9=await _0x3e66d6[_0xa26bac(0x1e3)](responseValidation,_0x57cc76,_0x3e66d6[_0xa26bac(0x159)],_0x3e66d6['aNvtv'],_0x1dcecb,_0xd40369);let _0x32c9b8={};if(_0x3e66d6['UGosw'](_0x1168a9,0xc8)){if(_0x3e66d6['HphWc'](_0x3e66d6[_0xa26bac(0x1db)],_0x3e66d6['LnLsW'])){const _0x90e7cc=JSON[_0xa26bac(0x17d)](_0x57cc76['body']),_0x3eb3b3=_0x90e7cc[_0xa26bac(0x152)](_0x56322c=>_0x56322c[_0xa26bac(0x124)]===_0x1dcecb[_0xa26bac(0xfc)])||null;_0x3e66d6[_0xa26bac(0x181)](isUndefined,_0x3eb3b3)?_0x3e66d6['OgfSD'](_0x3e66d6[_0xa26bac(0x118)],_0x3e66d6[_0xa26bac(0x149)])?_0x329010+=_0xa26bac(0x1a7)+_0x38e722[_0xa26bac(0x194)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':(_0x209c3d=_0xa26bac(0x1a0)+_0x1dcecb['gridProfile']+_0xa26bac(0x1b7),await _0x3e66d6['xYARM'](reportToGalactusAndSendToEDS,_0x1dcecb,_0xd40369,_0x209c3d,messageTypes[_0xa26bac(0x1b2)],_0x3e66d6[_0xa26bac(0x190)],_0x3e66d6[_0xa26bac(0x167)],_0x3e66d6[_0xa26bac(0x199)]),logger[_0xa26bac(0x1b5)](_0x209c3d),process['exit'](0x1)):_0x3e66d6['HphWc'](_0x3e66d6['GfNpK'],_0x3e66d6[_0xa26bac(0x173)])?_0x5a4a49+=_0xa26bac(0x1a7)+_0x349a96['clusterName']+'\x20'+(_0x245da1?_0x3e66d6[_0xa26bac(0x17c)]:_0x3e66d6['aBihe'])+'\x0a\x0a':_0x32c9b8=_0x3eb3b3;}else{const _0x409f0f={};_0x409f0f[_0xa26bac(0x12e)]=_0x3e66d6[_0xa26bac(0x1a4)],_0x409f0f[_0xa26bac(0xf5)]=_0x3e66d6[_0xa26bac(0x128)];const _0x57a3a8={};_0x57a3a8[_0xa26bac(0x12e)]=_0x3e66d6[_0xa26bac(0x1e1)],_0x57a3a8[_0xa26bac(0xf5)]=_0x3e66d6['pMUKq'];const _0x3c2816={};_0x3c2816[_0xa26bac(0x12e)]=_0x3e66d6['vZeEI'],_0x3c2816[_0xa26bac(0xf5)]=_0x3e66d6[_0xa26bac(0x128)];const _0x34ecf9={};_0x34ecf9[_0xa26bac(0x12e)]=_0x3e66d6[_0xa26bac(0x18b)],_0x34ecf9[_0xa26bac(0xf5)]=_0x3e66d6[_0xa26bac(0x128)];const _0x24274c={};return _0x24274c[_0xa26bac(0x19a)]=_0x409f0f,_0x24274c[_0xa26bac(0x139)]=_0x57a3a8,_0x24274c['region']=_0x3c2816,_0x24274c['grid-profile']=_0x34ecf9,_0x4ab5df['usage'](_0x283299[_0xa26bac(0x1e4)])['epilogue'](_0x388b20)[_0xa26bac(0x1c6)](_0x24274c)[_0xa26bac(0x1c1)](_0x3e66d6['WjHoS'])[_0xa26bac(0x110)];}}else _0x3e66d6[_0xa26bac(0x1dd)](_0x3e66d6[_0xa26bac(0x1ae)],_0x3e66d6['zSlWw'])?process['exit'](0x1):_0x585f7e=_0x424765;const _0x478dd5={};_0x478dd5['type']=WS_EVENTS[_0xa26bac(0x1ac)],_0x478dd5[_0xa26bac(0x15a)]=_0x3e66d6[_0xa26bac(0x1b4)],webSocketUtils['sendEventToBackend'](_0xd40369,_0x478dd5),global_registry['cloudProvider']=_0x32c9b8[_0xa26bac(0x157)],global_registry[_0xa26bac(0x1c9)]=_0x32c9b8[_0xa26bac(0x1a3)],global_registry[_0xa26bac(0x194)]=_0x32c9b8[_0xa26bac(0x194)];}}else _0x3e66d6[_0xa26bac(0x1dd)](_0x3e66d6[_0xa26bac(0x143)],_0x3e66d6['Afxqd'])?(logger['error'](_0x3e66d6[_0xa26bac(0x1c0)]),process['exit'](0x1)):_0x2106fd[_0xa26bac(0x1c7)](_0x3e66d6[_0xa26bac(0x11f)]);}}else _0x4a5097[_0xa26bac(0x1b5)](_0x3e66d6['WIHfg']),_0x5c90eb[_0xa26bac(0x163)](0x1);}catch(_0x424b56){if(_0x3e66d6[_0xa26bac(0x164)](_0x3e66d6['hGejq'],_0x3e66d6['Cqjqh'])){const {header:_0x4b11e2,response:_0x409a56}=_0x58b0c9,{status:_0x4363f3,data:_0x4d09ff,error:_0x20abaf}=_0x409a56;_0x41a554+=_0x4b11e2+'\x20#'+_0x3e66d6[_0xa26bac(0x197)](_0x126dd6,0x1)+'\x0a',_0x4b4b29+=_0xa26bac(0x138)+(_0x4363f3?_0x3e66d6[_0xa26bac(0x14a)]:_0x3e66d6[_0xa26bac(0xff)])+'\x0a',_0x4be88d+=_0xa26bac(0x1ea)+_0x3e66d6[_0xa26bac(0x121)](_0x4d09ff,_0x3e66d6[_0xa26bac(0x1bf)])+'\x0a',_0x20abaf&&(_0x463140+=_0x3e66d6[_0xa26bac(0x14c)],_0x904d75+=_0xa26bac(0xf3)+(_0x20abaf[_0xa26bac(0x15a)]||_0x3e66d6[_0xa26bac(0x1bf)])+'\x0a',_0x3f9a40+=_0xa26bac(0x12a)+(_0x20abaf['code']||_0x3e66d6[_0xa26bac(0x1bf)])+'\x0a',_0x444ee5+=_0xa26bac(0x1e6)+(_0x20abaf[_0xa26bac(0x11b)]||_0x3e66d6['YbrNk'])+'\x0a'),_0x54a052+='\x0a\x0a';}else _0x209c3d=_0xa26bac(0x107)+_0x424b56+':\x20'+_0x424b56[_0xa26bac(0x11b)],logger[_0xa26bac(0x1b5)](_0x209c3d),await _0x3e66d6[_0xa26bac(0x10d)](reportToGalactusAndSendToEDS,_0x1dcecb,_0xd40369,_0x209c3d,messageTypes[_0xa26bac(0x1b2)],_0x3e66d6[_0xa26bac(0x190)],_0x3e66d6['fiYbl'],_0x3e66d6[_0xa26bac(0x199)]),process[_0xa26bac(0x163)](0x1);}}function a17_0x1a36(){const _0x4294d5=['name','1|4|0|2|3','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','CsgvM','pMUKq','stack\x20trace\x20','\x20\x20Code:\x20','LRGCR','pRxuF','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','description','code','getUTCMinutes','reconnecting-websocket','hQPYJ','YWXUN','97164rpiPom','desc','eyJoW','info','Status:\x20','cloud-provider','<UsernamePlaceholder>','LumUQ','Failure','Report\x20saved\x20in\x20','taWTE','epilogue','status','GSZnB','../../utils/webSocketUtils','xkpGX','haUwS','isCliToolInstalled','sendEventToBackend','8592ResRVv','zWvSp','LRdsL','lKbPC','44mHXYtW','qYnIP','length','grid\x20profile\x20flow\x20','jcIni','Icdxc','\x20data\x20:\x20','find','cJNUD','3048aZFpYC','hEgfd','getUTCMonth','cloudProvider','SSL\x20Configured','IBKwp','message','icGUs','LVqmC','YdwlU','FGGso','GUZZm','checkAccess','aCUzR','iEhlA','exit','HphWc','pre-check','init','xqJrq','delay','is\x20already\x20present','WPHSO','existsSync','\x20===\x0a\x0a','\x20error\x20:\x20','split','Flssp','fJSVh','Kfirc','pre-check-grid-profile-empty','zaUhz','LUbjd','jUDOh','sgjRi','gXdFZ','bzSDY','Setting\x20cloud\x20provider\x20as\x20','getUTCDate','3031CWWSIj','kskBp','parse','pre-check-failed','OtnXC','rUFOg','soRUP','debug','450BbhJaz','pre-check-grid-called','builder','requestId','\x20region\x20-\x20','will\x20be\x20created','FFDXW','Vidja','epuAd','fnMyL','GET','../../utils/instrumentationUtils','stringify','eCEZV','usage','header','RpTqv','clusterName','OwpIU','pre-check-cluster-args-not-passed','BkxKX','qICOf','KzyPy','cluster-name','mpogn','utf-8','vBtTt','User\x20Access','Success','Invalid\x20input.\x20grid\x20profiles:\x20','data','obdTy','region','FWmYD','isTrialGridAccessible','toolInstalledResp','Cluster\x20','isTls1_2_SUPPORTED','QLktm','connectionTimeout','ssrQP','LOG','fiYbl','kdfRb','N/A','vXOMB','135834sbOHHU','ERROR','username','Gopal','error','5532978UAsKpm','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','iFTrr','YqLxF','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','AQbwj','Whitelisted\x20browserstack','includes','got','YbrNk','WIHfg','help','aDQTH','log/report_','.txt','writeFileSync','options','push','../../config/logger','clusterRegion','xMnAI','JMCEZ','IAmge','Error\x20Details:\x0a','REdaC','uuid','DvxTp','EJIcx','wdFFI','EQFjG','Cluster\x20details\x0a-----------------------\x0a','3163536JmNlNV','isClusterPresent','Gzebv','bstackAccesskey','42wukWRW','EelSI','LnLsW','string','ApRKk','Grid\x20profile\x20fetched\x20for\x20pre-check','KoIoU','xnvMT','GPwwJ','CLOUD_PROVIDER','qttxs','pre_check','ztMEj','\x20\x20Stack:\x20','oFRQW','Browserstack','MmFeJ','Message:\x20','replace','password','grid-profile','response','fhwzr','716830LfmEUb','NLTGS','forEach','\x20\x20Message:\x20',']\x20status\x20:\x20','type','GCdsJ','jAfOe','Tool\x20Installed','qFFig','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','RdCoE','gridProfile','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','https://','efMNK','error\x20stack\x20:\x20','`\x20already\x20exists','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','unable\x20to\x20verify\x20if\x20cluster\x20`','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','pEgVl','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','Cluster\x20`','`\x20is\x20present\x20in\x20region\x20`','IEsVS','ImFsy','DMfmJ','xYARM','DwmqR','cOkEJ','argv','toLowerCase','BazpT','readFileSync','.\x20Please\x20provide\x20all\x20required\x20arguments.','XaxUb','`\x20,error\x20:\x20','../../utils/utilityMethods','nUSxZ','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','FQHEj','stack','ueqvQ','rKHbE','LXagB','geouc','RYWqp','vHxRm','WebSocket','authHeader'];a17_0x1a36=function(){return _0x4294d5;};return a17_0x1a36();}function printResponse(_0x5cf5c2,_0x146619){const _0x5da91d=a17_0x5c75fc,_0x20f2ca={};_0x20f2ca['OwmcI']=_0x5da91d(0x1cd),_0x20f2ca[_0x5da91d(0x15f)]=_0x5da91d(0x1af),_0x20f2ca['jcIni']=function(_0x36cc5e,_0x5af92d){return _0x36cc5e===_0x5af92d;},_0x20f2ca[_0x5da91d(0x1b0)]=_0x5da91d(0x1ca);const _0x9b033a=_0x20f2ca;logger[_0x5da91d(0x137)]('['+_0x5cf5c2+_0x5da91d(0xf4)+_0x146619[_0x5da91d(0x140)]+'\x20data\x20:\x20'+_0x146619['data']+_0x5da91d(0x16d)+_0x146619[_0x5da91d(0x1b5)]),_0x146619[_0x5da91d(0x1b5)]&&(_0x9b033a[_0x5da91d(0x14f)](_0x9b033a[_0x5da91d(0x1b0)],_0x9b033a[_0x5da91d(0x1b0)])?logger['error'](_0x5da91d(0x100)+_0x146619[_0x5da91d(0x1b5)][_0x5da91d(0x11b)]):(_0x16ea1d+=_0x9b033a['OwmcI'],_0x332d43+=_0x5da91d(0xf3)+(_0x973aad[_0x5da91d(0x15a)]||_0x9b033a['GUZZm'])+'\x0a',_0x27ccf7+=_0x5da91d(0x12a)+(_0x25759c[_0x5da91d(0x12f)]||_0x9b033a[_0x5da91d(0x15f)])+'\x0a',_0x5016d0+=_0x5da91d(0x1e6)+(_0x232abe[_0x5da91d(0x11b)]||_0x9b033a[_0x5da91d(0x15f)])+'\x0a'));}async function generateReport(_0x203646,_0xf6e35a){const _0x177b0e=a17_0x5c75fc,_0x317027={'OtnXC':function(_0xe71d13,_0x7b9ddf){return _0xe71d13+_0x7b9ddf;},'xnvMT':'Success','cOkEJ':_0x177b0e(0x13c),'REdaC':function(_0x19a648,_0x24fff1){return _0x19a648||_0x24fff1;},'EJIcx':_0x177b0e(0x1af),'Icdxc':_0x177b0e(0x1cd),'jAfOe':_0x177b0e(0x1d4),'hQPYJ':function(_0x2d49f8,_0x51ad74){return _0x2d49f8!=_0x51ad74;},'svDeP':_0x177b0e(0x169),'Vidja':'will\x20be\x20created','GSZnB':function(_0xe066f2){return _0xe066f2();}};let _0x2fede1='===\x20Precheck\x20Report\x20-\x20'+global_registry['cloudProvider']+_0x177b0e(0x16c);return _0x203646[_0x177b0e(0xf2)]((_0x2ebf9d,_0x35dfad)=>{const _0x47f933=_0x177b0e,{header:_0x1cad5c,response:_0x30c4cd}=_0x2ebf9d,{status:_0x2fb0bf,data:_0x5168f0,error:_0x10f79f}=_0x30c4cd;_0x2fede1+=_0x1cad5c+'\x20#'+_0x317027[_0x47f933(0x17f)](_0x35dfad,0x1)+'\x0a',_0x2fede1+='Status:\x20'+(_0x2fb0bf?_0x317027[_0x47f933(0x1e0)]:_0x317027[_0x47f933(0x10f)])+'\x0a',_0x2fede1+=_0x47f933(0x1ea)+_0x317027[_0x47f933(0x1ce)](_0x5168f0,_0x317027['EJIcx'])+'\x0a',_0x10f79f&&(_0x2fede1+=_0x317027[_0x47f933(0x150)],_0x2fede1+=_0x47f933(0xf3)+(_0x10f79f[_0x47f933(0x15a)]||_0x317027[_0x47f933(0x1d1)])+'\x0a',_0x2fede1+=_0x47f933(0x12a)+(_0x10f79f[_0x47f933(0x12f)]||_0x317027[_0x47f933(0x1d1)])+'\x0a',_0x2fede1+=_0x47f933(0x1e6)+(_0x10f79f[_0x47f933(0x11b)]||_0x317027[_0x47f933(0x1d1)])+'\x0a'),_0x2fede1+='\x0a\x0a';}),_0x2fede1+=_0x317027[_0x177b0e(0xf7)],_0x317027[_0x177b0e(0x132)](_0xf6e35a,null)?_0x2fede1+='Cluster\x20'+global_registry[_0x177b0e(0x194)]+'\x20'+(_0xf6e35a?_0x317027['svDeP']:_0x317027[_0x177b0e(0x18a)])+'\x0a\x0a':_0x2fede1+=_0x177b0e(0x1a7)+global_registry[_0x177b0e(0x194)]+_0x177b0e(0xfa),_0x2fede1+=_0x317027[_0x177b0e(0x141)](getSystemMetaData),_0x2fede1;}function a17_0x4d29(_0x588fb1,_0x13f421){const _0x1a36bc=a17_0x1a36();return a17_0x4d29=function(_0x4d2934,_0x86dc99){_0x4d2934=_0x4d2934-0xf0;let _0x543aa5=_0x1a36bc[_0x4d2934];return _0x543aa5;},a17_0x4d29(_0x588fb1,_0x13f421);};exports['handler']=async function(_0x31f8ff){const _0x2632aa=a17_0x5c75fc,_0x375d17={'IAmge':function(_0x5a42a9){return _0x5a42a9();},'Kfirc':_0x2632aa(0xfd),'NLTGS':function(_0x2ad247,_0x5907d7,_0x130612,_0x3d097b,_0x3b3f4a,_0x5a6593,_0x2f0dd3,_0x282b71){return _0x2ad247(_0x5907d7,_0x130612,_0x3d097b,_0x3b3f4a,_0x5a6593,_0x2f0dd3,_0x282b71);},'RYWqp':_0x2632aa(0x184),'IwILl':'credential-not-found','jUDOh':_0x2632aa(0x1b5),'GCdsJ':function(_0x376222,_0x85a33c,_0x2fbbd8,_0x542cd6,_0x5049d4,_0x5d1632,_0x461c52){return _0x376222(_0x85a33c,_0x2fbbd8,_0x542cd6,_0x5049d4,_0x5d1632,_0x461c52);},'cJNUD':function(_0x23cfa5){return _0x23cfa5();},'qICOf':_0x2632aa(0x13a),'taWTE':'<PasswordPlaceholder>','wdFFI':function(_0x41e199,_0x50a5ad,_0xf1fc6e){return _0x41e199(_0x50a5ad,_0xf1fc6e);},'vBtTt':function(_0x1ff8fb,_0x734443,_0x3f5143){return _0x1ff8fb(_0x734443,_0x3f5143);},'LRGCR':'dummy-grid','WPHSO':function(_0x4c34ae,_0x2c7480,_0x3bb7de){return _0x4c34ae(_0x2c7480,_0x3bb7de);},'BazpT':_0x2632aa(0x1a6),'RAcxC':_0x2632aa(0x125),'aCUzR':function(_0x5e3123,_0xe62f7f,_0x5b4837){return _0x5e3123(_0xe62f7f,_0x5b4837);},'LXagB':'accessResp','DvxTp':function(_0x49721d){return _0x49721d();},'obdTy':function(_0x388d9d,_0x36d23f,_0x40a8e7){return _0x388d9d(_0x36d23f,_0x40a8e7);},'sefKI':_0x2632aa(0x1a5),'OhGFZ':function(_0x4cb414,_0x422178){return _0x4cb414(_0x422178);},'daLdy':'TLSv1_2_client_method','haUwS':_0x2632aa(0x1a8),'RdCoE':_0x2632aa(0xf8),'fDqdK':_0x2632aa(0x19e),'fnMyL':_0x2632aa(0x1bc),'DwmqR':_0x2632aa(0x158),'Gzebv':function(_0x52c86b,_0x331821){return _0x52c86b+_0x331821;},'ssrQP':_0x2632aa(0x19c),'WPWZz':_0x2632aa(0x17e)};let _0xf15cad,_0x3e2380;try{global_registry[_0x2632aa(0x186)]=_0x375d17[_0x2632aa(0x1cc)](uuidv4);!fs[_0x2632aa(0x16b)](_0x375d17[_0x2632aa(0x1cc)](getCredentialsPath))&&(_0x3e2380=_0x375d17[_0x2632aa(0x171)],logger[_0x2632aa(0x1b5)](_0x3e2380),await _0x375d17[_0x2632aa(0xf1)](reportToGalactusAndSendToEDS,_0x31f8ff,_0xf15cad,_0x3e2380,messageTypes['ERROR'],_0x375d17[_0x2632aa(0x120)],_0x375d17['IwILl'],_0x375d17[_0x2632aa(0x175)]),process[_0x2632aa(0x163)](0x1));_0x375d17[_0x2632aa(0xf6)](sendInstrumentationEvent,_0x31f8ff,_0x375d17[_0x2632aa(0x120)],messageTypes['INFO'],null,null,_0x31f8ff);const _0x1a96ad=JSON['parse'](fs[_0x2632aa(0x113)](_0x375d17[_0x2632aa(0x153)](getCredentialsPath)));global_registry['bstackUsername']=_0x1a96ad[_0x2632aa(0x1e8)][_0x2632aa(0x1b3)],global_registry[_0x2632aa(0x1d8)]=_0x1a96ad['Browserstack'][_0x2632aa(0x1ec)];const _0x1ec266=WS_ENDPOINT[_0x2632aa(0x1eb)](_0x375d17[_0x2632aa(0x198)],_0x1a96ad[_0x2632aa(0x1e8)][_0x2632aa(0x1b3)])[_0x2632aa(0x1eb)](_0x375d17[_0x2632aa(0x13e)],_0x1a96ad[_0x2632aa(0x1e8)]['password']),_0x4cc09a={};_0x4cc09a[_0x2632aa(0x122)]=ws,_0x4cc09a[_0x2632aa(0x1aa)]=0x36ee80,_0xf15cad=new ReconnectingWebSocket(_0x1ec266,[],_0x4cc09a),global_registry[_0x2632aa(0x123)]=_0x375d17[_0x2632aa(0x1d2)](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),await _0x375d17[_0x2632aa(0x19d)](inputValidation,_0x31f8ff,_0xf15cad),logger['info']('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry['cloudProvider']+_0x2632aa(0x187)+global_registry[_0x2632aa(0x1c9)]);let _0x46d73a=await _0x375d17[_0x2632aa(0xf6)](getCloudProviderObjectWithOutInit,global_registry[_0x2632aa(0x157)],global_registry[_0x2632aa(0x194)],_0x375d17[_0x2632aa(0x12b)],_0xf15cad,webSocketUtils,_0x31f8ff);const _0x922d06=await _0x46d73a[_0x2632aa(0x145)]();_0x375d17['WPHSO'](printResponse,_0x375d17[_0x2632aa(0x112)],_0x922d06),_0x46d73a=await _0x46d73a[_0x2632aa(0x166)]();let _0x4a0005=![];try{_0x4a0005=await _0x46d73a[_0x2632aa(0x1d6)]();}catch(_0x430cbb){const _0x4303e0=_0x375d17['RAcxC'][_0x2632aa(0x16e)]('|');let _0x9763e0=0x0;while(!![]){switch(_0x4303e0[_0x9763e0++]){case'0':logger[_0x2632aa(0x1b5)](_0x3e2380);continue;case'1':_0x3e2380=_0x2632aa(0x103)+global_registry[_0x2632aa(0x194)]+_0x2632aa(0x109)+global_registry['clusterRegion']+_0x2632aa(0x116)+_0x430cbb;continue;case'2':_0x3e2380+='\x0a'+JSON[_0x2632aa(0x18f)](_0x430cbb[_0x2632aa(0x11b)]);continue;case'3':await _0x375d17['NLTGS'](reportToGalactusAndSendToEDS,_0x31f8ff,_0xf15cad,_0x3e2380,messageTypes[_0x2632aa(0x1b2)],_0x375d17[_0x2632aa(0x120)],'cluster-check-failed-'+global_registry[_0x2632aa(0x157)],_0x375d17[_0x2632aa(0x175)]);continue;case'4':_0x4a0005=null;continue;}break;}}_0x4a0005&&logger[_0x2632aa(0x137)](_0x2632aa(0x108)+global_registry[_0x2632aa(0x194)]+_0x2632aa(0x101));const _0x2b3b6e=await _0x46d73a[_0x2632aa(0x160)]();_0x375d17[_0x2632aa(0x161)](printResponse,_0x375d17[_0x2632aa(0x11e)],_0x2b3b6e);const _0x18ad96=await _0x375d17[_0x2632aa(0x1d0)](curlRequest);_0x375d17[_0x2632aa(0x1a2)](printResponse,_0x375d17['sefKI'],_0x18ad96);const _0x5dd4ae=await _0x375d17['OhGFZ'](isTlsSupported,_0x375d17['daLdy']);_0x375d17['wdFFI'](printResponse,_0x375d17[_0x2632aa(0x144)],_0x5dd4ae);const _0x566bf4={};_0x566bf4[_0x2632aa(0x192)]=_0x375d17[_0x2632aa(0xfb)],_0x566bf4[_0x2632aa(0x1ee)]=_0x922d06;const _0x4be47e={};_0x4be47e[_0x2632aa(0x192)]=_0x375d17['fDqdK'],_0x4be47e[_0x2632aa(0x1ee)]=_0x2b3b6e;const _0x3dabf6={};_0x3dabf6[_0x2632aa(0x192)]=_0x375d17[_0x2632aa(0x18c)],_0x3dabf6['response']=_0x18ad96;const _0x286306={};_0x286306[_0x2632aa(0x192)]=_0x375d17[_0x2632aa(0x10e)],_0x286306[_0x2632aa(0x1ee)]=_0x5dd4ae;const _0x1ce037=[_0x566bf4,_0x4be47e,_0x3dabf6,_0x286306],_0x3fb7cd=await _0x375d17[_0x2632aa(0x16a)](generateReport,_0x1ce037,_0x4a0005),_0x137788=new Date(),_0x32ffcf=_0x137788['getUTCFullYear']()+'_'+_0x375d17[_0x2632aa(0x1d7)](_0x137788[_0x2632aa(0x156)](),0x1)+'_'+_0x137788[_0x2632aa(0x17a)]()+'_'+_0x137788['getUTCHours']()+'_'+_0x137788[_0x2632aa(0x130)](),_0x5a0700=_0x2632aa(0x1c3)+_0x32ffcf+_0x2632aa(0x1c4);fs[_0x2632aa(0x1c5)](_0x5a0700,_0x3fb7cd,_0x375d17[_0x2632aa(0x1ab)]),logger[_0x2632aa(0x137)](_0x2632aa(0x13d)+_0x5a0700),process[_0x2632aa(0x163)](0x0);}catch(_0x549009){let _0x410a6c='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x549009+'\x20';logger[_0x2632aa(0x1b5)](_0x410a6c),_0x410a6c+='\x0a'+JSON[_0x2632aa(0x18f)](_0x549009[_0x2632aa(0x11b)]),logger['debug'](_0x2632aa(0x129)+_0x549009[_0x2632aa(0x11b)]);if(_0xf15cad){const _0x6257b7={};_0x6257b7[_0x2632aa(0xf5)]=WS_EVENTS['LOG'],_0x6257b7[_0x2632aa(0x15a)]=_0x410a6c,webSocketUtils[_0x2632aa(0x146)](_0xf15cad,_0x6257b7,_0x375d17[_0x2632aa(0x175)],!![]);}await webSocketUtils[_0x2632aa(0x168)](0x7d0);const _0x3d2e59={};_0x3d2e59['error']=_0x410a6c,await _0x375d17[_0x2632aa(0xf6)](sendInstrumentationEvent,_0x31f8ff,_0x375d17[_0x2632aa(0x120)],messageTypes['ERROR'],_0x375d17['WPWZz'],_0x3d2e59,_0x31f8ff),process['exit'](0x1);}};
|
|
1
|
+
const a17_0x4f986d=a17_0x1e2d;(function(_0x3c9419,_0x531143){const _0x2c8e2b=a17_0x1e2d,_0x4f700b=_0x3c9419();while(!![]){try{const _0xd23d83=-parseInt(_0x2c8e2b(0x147))/0x1*(parseInt(_0x2c8e2b(0x202))/0x2)+-parseInt(_0x2c8e2b(0x160))/0x3+-parseInt(_0x2c8e2b(0x1ae))/0x4*(-parseInt(_0x2c8e2b(0x133))/0x5)+-parseInt(_0x2c8e2b(0x17b))/0x6+parseInt(_0x2c8e2b(0x16c))/0x7*(-parseInt(_0x2c8e2b(0x1da))/0x8)+parseInt(_0x2c8e2b(0x12f))/0x9*(-parseInt(_0x2c8e2b(0x163))/0xa)+-parseInt(_0x2c8e2b(0x1bb))/0xb*(-parseInt(_0x2c8e2b(0x157))/0xc);if(_0xd23d83===_0x531143)break;else _0x4f700b['push'](_0x4f700b['shift']());}catch(_0x2b47d2){_0x4f700b['push'](_0x4f700b['shift']());}}}(a17_0x51cc,0x8e76f));const fs=require('fs'),ws=require('ws'),got=require(a17_0x4f986d(0x1c0)),{v4:uuidv4}=require(a17_0x4f986d(0x13b)),ReconnectingWebSocket=require(a17_0x4f986d(0x1c6)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x4f986d(0x209)),{logger}=require(a17_0x4f986d(0x21a)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x4f986d(0x1f9)),{getCloudProviderObjectWithOutInit}=require(a17_0x4f986d(0x188)),webSocketUtils=require(a17_0x4f986d(0x127)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x4f986d(0x222)]=a17_0x4f986d(0x1c2),exports[a17_0x4f986d(0x138)]=a17_0x4f986d(0x155),exports[a17_0x4f986d(0x156)]=function(_0x5588e1){const _0x2187b3=a17_0x4f986d,_0xf3a0c={};_0xf3a0c[_0x2187b3(0x1e8)]=_0x2187b3(0x122),_0xf3a0c[_0x2187b3(0x1e0)]=_0x2187b3(0x169),_0xf3a0c[_0x2187b3(0x1bc)]=_0x2187b3(0x128),_0xf3a0c[_0x2187b3(0x124)]=_0x2187b3(0x17f),_0xf3a0c['Knxfk']='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0xf3a0c['asxzH']='help';const _0x3f8875=_0xf3a0c,_0x5a663f={};_0x5a663f[_0x2187b3(0x1f3)]=_0x3f8875[_0x2187b3(0x1e8)],_0x5a663f[_0x2187b3(0x1fe)]=_0x3f8875[_0x2187b3(0x1e0)];const _0x4f4b8a={};_0x4f4b8a[_0x2187b3(0x1f3)]=_0x3f8875[_0x2187b3(0x1bc)],_0x4f4b8a[_0x2187b3(0x1fe)]=_0x3f8875[_0x2187b3(0x1e0)];const _0x481670={};_0x481670[_0x2187b3(0x1f3)]=_0x3f8875['DwGkj'],_0x481670[_0x2187b3(0x1fe)]=_0x3f8875[_0x2187b3(0x1e0)];const _0x5e8f7f={};_0x5e8f7f['description']=_0x3f8875[_0x2187b3(0x1c9)],_0x5e8f7f['type']=_0x3f8875[_0x2187b3(0x1e0)];const _0x1ae7c6={};return _0x1ae7c6[_0x2187b3(0x1af)]=_0x5a663f,_0x1ae7c6[_0x2187b3(0x216)]=_0x4f4b8a,_0x1ae7c6[_0x2187b3(0x214)]=_0x481670,_0x1ae7c6[_0x2187b3(0x1f1)]=_0x5e8f7f,_0x5588e1[_0x2187b3(0x144)](HELP_HEADER_MESSAGE[_0x2187b3(0x21b)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x1ae7c6)[_0x2187b3(0x1d9)](_0x3f8875[_0x2187b3(0x14e)])[_0x2187b3(0x219)];};function a17_0x1e2d(_0x25dc11,_0x19e1c4){const _0x51ccfe=a17_0x51cc();return a17_0x1e2d=function(_0x1e2dd2,_0x1c7440){_0x1e2dd2=_0x1e2dd2-0x121;let _0x101b40=_0x51ccfe[_0x1e2dd2];return _0x101b40;},a17_0x1e2d(_0x25dc11,_0x19e1c4);}async function inputValidation(_0x3bdf51,_0x2d5996){const _0x1f08c8=a17_0x4f986d,_0xe42e49={'vJSUe':function(_0x526099,_0xbccbb8){return _0x526099+_0xbccbb8;},'CDwIf':'Success','HmBTU':_0x1f08c8(0x1ba),'ZSARw':function(_0x523072,_0x538819){return _0x523072||_0x538819;},'QRyTa':_0x1f08c8(0x1d7),'ZCXpU':_0x1f08c8(0x132),'VnDCY':_0x1f08c8(0x141),'ARhuG':_0x1f08c8(0x14b),'rXVuZ':_0x1f08c8(0x20d),'EKhNM':_0x1f08c8(0x122),'GMuhv':_0x1f08c8(0x169),'uICkL':_0x1f08c8(0x128),'sXQbI':_0x1f08c8(0x17f),'tfJhv':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','AvKrr':'help','HYBCM':_0x1f08c8(0x1fc),'nYuJt':'region','pEktM':_0x1f08c8(0x1af),'SsVZE':function(_0x4a138c,_0x1daffe){return _0x4a138c===_0x1daffe;},'ruhrn':'eAbdq','OCbTO':_0x1f08c8(0x177),'cnggu':function(_0x356b40,_0x399f44){return _0x356b40!==_0x399f44;},'HMBMz':_0x1f08c8(0x15a),'vITQK':_0x1f08c8(0x18d),'qEmIP':function(_0x4d8bbf,_0x1ee075){return _0x4d8bbf===_0x1ee075;},'gWKKG':_0x1f08c8(0x1a3),'HFhdr':'lltVI','YdCwi':_0x1f08c8(0x216),'EdcFY':_0x1f08c8(0x1fa),'nHTvB':function(_0xc83bf6,_0x11f396){return _0xc83bf6>_0x11f396;},'kFdKi':_0x1f08c8(0x1d1),'CqmcZ':_0x1f08c8(0x1d2),'rnbSM':function(_0x52965b,_0x18819e,_0x4bf1d6,_0x4fbef8,_0x16d682,_0x29c1d,_0x4d1083,_0x5c517c){return _0x52965b(_0x18819e,_0x4bf1d6,_0x4fbef8,_0x16d682,_0x29c1d,_0x4d1083,_0x5c517c);},'ZsbvL':'pre-check-grid-called','OKnNe':_0x1f08c8(0x13f),'nqpoy':function(_0xfd718c,_0x4ee616){return _0xfd718c!==_0x4ee616;},'EzTCE':_0x1f08c8(0x152),'MrsHp':_0x1f08c8(0x1a1),'zguYj':_0x1f08c8(0x154),'rfHok':_0x1f08c8(0x1db),'GhYzC':_0x1f08c8(0x185),'KyzJD':'sdOdr','TJOta':function(_0x4b7f34,_0x49ffdb){return _0x4b7f34!==_0x49ffdb;},'cWZMC':_0x1f08c8(0x146),'UKztD':_0x1f08c8(0x134),'WIXAc':_0x1f08c8(0x170),'zvkeg':function(_0x2127c7,_0x5cb996,_0x534b17){return _0x2127c7(_0x5cb996,_0x534b17);},'fPTEP':function(_0x4aa85f,_0x324ba1,_0x336003,_0x395073,_0x2dbbad,_0x85e819){return _0x4aa85f(_0x324ba1,_0x336003,_0x395073,_0x2dbbad,_0x85e819);},'xUDPU':_0x1f08c8(0x15f),'rrEqi':_0x1f08c8(0x1f1),'pOZIj':function(_0xe9ef92,_0x28ac99){return _0xe9ef92===_0x28ac99;},'KUhtK':'tvClO','zrsFE':'tPvQO','OkGrM':function(_0x39e541,_0x48e2be){return _0x39e541(_0x48e2be);},'hjIry':_0x1f08c8(0x18f),'kSBJQ':'pre-check-grid-profile-empty','nGXUE':'vucCG','wigQE':'RErJy','RMCmY':function(_0x4cc6ef,_0x1654c7){return _0x4cc6ef!==_0x1654c7;},'KeWZw':_0x1f08c8(0x175),'HosOR':'IdUIX','aWLVo':'Grid\x20profile\x20fetched\x20for\x20pre-check','cjqkI':function(_0x226735,_0x551837){return _0x226735!==_0x551837;},'ADhnh':'iSOBH','smHnM':function(_0x353638,_0x4e3af9){return _0x353638!==_0x4e3af9;},'FcrVf':_0x1f08c8(0x14f),'SDhXy':_0x1f08c8(0x174)};let _0x5c384d;try{if(_0xe42e49['SsVZE'](_0xe42e49[_0x1f08c8(0x1b1)],_0xe42e49[_0x1f08c8(0x215)]))_0x20dc4e+='Cluster\x20'+_0x4911f9[_0x1f08c8(0x1ff)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';else{if(_0x3bdf51[_0x1f08c8(0x1ff)]||_0x3bdf51[_0x1f08c8(0x125)]||_0x3bdf51[_0x1f08c8(0x214)]){if(_0xe42e49[_0x1f08c8(0x13a)](_0xe42e49['HMBMz'],_0xe42e49[_0x1f08c8(0x1f2)])){const _0x5b4133=[];if(!_0x3bdf51[_0x1f08c8(0x1ff)]){if(_0xe42e49[_0x1f08c8(0x19a)](_0xe42e49[_0x1f08c8(0x194)],_0xe42e49['gWKKG']))_0x5b4133[_0x1f08c8(0x20b)](_0xe42e49[_0x1f08c8(0x208)]);else{const {header:_0x1edbb7,response:_0x497f27}=_0x575919,{status:_0x4c00d0,data:_0x118a39,error:_0x494734}=_0x497f27;_0x5c332c+=_0x1edbb7+'\x20#'+_0xe42e49[_0x1f08c8(0x162)](_0x537b73,0x1)+'\x0a',_0x43009e+=_0x1f08c8(0x158)+(_0x4c00d0?_0xe42e49[_0x1f08c8(0x180)]:_0xe42e49[_0x1f08c8(0x18a)])+'\x0a',_0x108e5c+=_0x1f08c8(0x1ac)+_0xe42e49[_0x1f08c8(0x12e)](_0x118a39,_0xe42e49[_0x1f08c8(0x1fd)])+'\x0a',_0x494734&&(_0x14eb32+=_0xe42e49[_0x1f08c8(0x1f6)],_0x3ca349+=_0x1f08c8(0x201)+(_0x494734[_0x1f08c8(0x17a)]||_0xe42e49[_0x1f08c8(0x1fd)])+'\x0a',_0x3da23f+=_0x1f08c8(0x191)+(_0x494734[_0x1f08c8(0x1b5)]||_0xe42e49[_0x1f08c8(0x1fd)])+'\x0a',_0x31bb37+=_0x1f08c8(0x18e)+(_0x494734[_0x1f08c8(0x1b9)]||_0xe42e49[_0x1f08c8(0x1fd)])+'\x0a'),_0x49f44f+='\x0a\x0a';}};!_0x3bdf51[_0x1f08c8(0x125)]&&(_0xe42e49[_0x1f08c8(0x19a)](_0xe42e49['HFhdr'],_0xe42e49[_0x1f08c8(0x213)])?_0x5b4133[_0x1f08c8(0x20b)](_0xe42e49[_0x1f08c8(0x1e5)]):_0x487a67[_0x1f08c8(0x197)](0x1));;!_0x3bdf51[_0x1f08c8(0x214)]&&(_0xe42e49[_0x1f08c8(0x13a)](_0xe42e49[_0x1f08c8(0x1b6)],_0xe42e49[_0x1f08c8(0x1b6)])?_0x2ef1b7[_0x1f08c8(0x141)]('error\x20stack\x20:\x20'+_0x4c25f1[_0x1f08c8(0x141)][_0x1f08c8(0x1b9)]):_0x5b4133[_0x1f08c8(0x20b)](_0xe42e49[_0x1f08c8(0x1a9)]));;if(_0xe42e49[_0x1f08c8(0x171)](_0x5b4133['length'],0x0)){if(_0xe42e49[_0x1f08c8(0x13a)](_0xe42e49[_0x1f08c8(0x184)],_0xe42e49[_0x1f08c8(0x211)]))_0x5c384d=_0x1f08c8(0x1dd)+_0x5b4133[_0x1f08c8(0x131)](',\x20')+_0x1f08c8(0x16a),await _0xe42e49[_0x1f08c8(0x1a5)](reportToGalactusAndSendToEDS,_0x3bdf51,_0x2d5996,_0x5c384d,messageTypes[_0x1f08c8(0x19b)],_0xe42e49[_0x1f08c8(0x140)],_0xe42e49['OKnNe'],_0xe42e49[_0x1f08c8(0x1be)]),logger[_0x1f08c8(0x141)](_0x5c384d),process['exit'](0x1);else{const _0xc50515={};_0xc50515[_0x1f08c8(0x1fe)]=_0x34d7fa['LOG'],_0xc50515[_0x1f08c8(0x17a)]=_0x40bf2f,_0x25f707[_0x1f08c8(0x19f)](_0x11a5b7,_0xc50515,_0xe42e49[_0x1f08c8(0x1be)],!![]);}}!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x1f08c8(0x19d)](_0x3bdf51[_0x1f08c8(0x125)][_0x1f08c8(0x173)]())&&(_0xe42e49['nqpoy'](_0xe42e49[_0x1f08c8(0x1d8)],_0xe42e49[_0x1f08c8(0x217)])?(_0x5c384d=_0xe42e49[_0x1f08c8(0x19c)],await _0xe42e49[_0x1f08c8(0x1a5)](reportToGalactusAndSendToEDS,_0x3bdf51,_0x2d5996,_0x5c384d,messageTypes[_0x1f08c8(0x19b)],_0xe42e49[_0x1f08c8(0x140)],_0xe42e49[_0x1f08c8(0x136)],_0xe42e49[_0x1f08c8(0x1be)]),logger[_0x1f08c8(0x141)](_0x5c384d),!_0x3bdf51[_0x1f08c8(0x125)]&&(_0xe42e49['nqpoy'](_0xe42e49['GhYzC'],_0xe42e49['KyzJD'])?(logger[_0x1f08c8(0x139)](_0x1f08c8(0x195)+DEFAULT_CLUSTER_DETAILS[_0x1f08c8(0x16b)]+'\x20'),_0x3bdf51['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x1f08c8(0x16b)]):_0x413a20+=_0x1f08c8(0x137)+_0x2cf504['clusterName']+'\x20'+(_0x3c1ac7?_0xe42e49['ARhuG']:_0xe42e49[_0x1f08c8(0x206)])+'\x0a\x0a')):_0x19129e=_0x5adacf),global_registry[_0x1f08c8(0x1ff)]=_0x3bdf51['clusterName'],global_registry[_0x1f08c8(0x125)]=_0x3bdf51[_0x1f08c8(0x125)],global_registry[_0x1f08c8(0x1ec)]=_0x3bdf51[_0x1f08c8(0x214)];}else _0x31f5cd+=_0xe42e49[_0x1f08c8(0x1f6)],_0x1844f6+=_0x1f08c8(0x201)+(_0x21e851['message']||_0xe42e49[_0x1f08c8(0x1fd)])+'\x0a',_0x4e9705+=_0x1f08c8(0x191)+(_0x2733ae[_0x1f08c8(0x1b5)]||_0xe42e49[_0x1f08c8(0x1fd)])+'\x0a',_0x519388+=_0x1f08c8(0x18e)+(_0x51c72b['stack']||_0xe42e49['QRyTa'])+'\x0a';}else{if(_0x3bdf51[_0x1f08c8(0x1d6)]){if(_0xe42e49[_0x1f08c8(0x1df)](_0xe42e49[_0x1f08c8(0x1ed)],_0xe42e49[_0x1f08c8(0x123)])){global_registry['gridProfile']=_0x3bdf51[_0x1f08c8(0x1d6)],logger['debug'](_0x1f08c8(0x148)+_0x3bdf51[_0x1f08c8(0x1d6)]);const _0x4c775e='https://'+AG_API_URL+_0x1f08c8(0x193),_0x470138={};_0x470138[_0x1f08c8(0x1dc)]=_0xe42e49[_0x1f08c8(0x1cb)],_0x470138[_0x1f08c8(0x16d)]=global_registry[_0x1f08c8(0x1fb)],_0x470138[_0x1f08c8(0x1d5)]=![];const _0x3bad49=_0x470138,_0x5975ce=await _0xe42e49[_0x1f08c8(0x1f0)](got,_0x4c775e,_0x3bad49),_0x51418a=await _0xe42e49[_0x1f08c8(0x1ce)](responseValidation,_0x5975ce,_0xe42e49[_0x1f08c8(0x21e)],_0xe42e49[_0x1f08c8(0x164)],_0x3bdf51,_0x2d5996);let _0x308be4={};if(_0xe42e49['qEmIP'](_0x51418a,0xc8)){if(_0xe42e49['pOZIj'](_0xe42e49[_0x1f08c8(0x1c7)],_0xe42e49[_0x1f08c8(0x1a6)])){const _0x720efb={};_0x720efb[_0x1f08c8(0x1f3)]=_0xe42e49[_0x1f08c8(0x198)],_0x720efb[_0x1f08c8(0x1fe)]=_0xe42e49[_0x1f08c8(0x149)];const _0x544bbf={};_0x544bbf[_0x1f08c8(0x1f3)]=_0xe42e49[_0x1f08c8(0x192)],_0x544bbf[_0x1f08c8(0x1fe)]=_0xe42e49[_0x1f08c8(0x149)];const _0x296d77={};_0x296d77[_0x1f08c8(0x1f3)]=_0xe42e49[_0x1f08c8(0x17e)],_0x296d77['type']=_0xe42e49[_0x1f08c8(0x149)];const _0x7d66a1={};_0x7d66a1[_0x1f08c8(0x1f3)]=_0xe42e49[_0x1f08c8(0x181)],_0x7d66a1['type']=_0xe42e49['GMuhv'];const _0x92bcd2={};return _0x92bcd2[_0x1f08c8(0x1af)]=_0x720efb,_0x92bcd2[_0x1f08c8(0x216)]=_0x544bbf,_0x92bcd2[_0x1f08c8(0x214)]=_0x296d77,_0x92bcd2['grid-profile']=_0x7d66a1,_0x23aeb3[_0x1f08c8(0x144)](_0x30d80a[_0x1f08c8(0x21b)])[_0x1f08c8(0x20c)](_0x27fc13)[_0x1f08c8(0x178)](_0x92bcd2)[_0x1f08c8(0x1d9)](_0xe42e49[_0x1f08c8(0x159)])[_0x1f08c8(0x219)];}else{const _0x43799a=JSON[_0x1f08c8(0x13d)](_0x5975ce['body']),_0x3eb271=_0x43799a[_0x1f08c8(0x204)](_0x4c8a47=>_0x4c8a47[_0x1f08c8(0x196)]===_0x3bdf51['gridProfile'])||null;_0xe42e49[_0x1f08c8(0x1d0)](isUndefined,_0x3eb271)?_0xe42e49[_0x1f08c8(0x19e)](_0xe42e49[_0x1f08c8(0x153)],_0xe42e49[_0x1f08c8(0x153)])?(_0x5c384d=_0x1f08c8(0x189)+_0x3bdf51[_0x1f08c8(0x1d6)]+_0x1f08c8(0x199),await _0xe42e49['rnbSM'](reportToGalactusAndSendToEDS,_0x3bdf51,_0x2d5996,_0x5c384d,messageTypes[_0x1f08c8(0x19b)],_0xe42e49[_0x1f08c8(0x140)],_0xe42e49['kSBJQ'],_0xe42e49[_0x1f08c8(0x1be)]),logger[_0x1f08c8(0x141)](_0x5c384d),process['exit'](0x1)):(_0x4ee43c[_0x1f08c8(0x139)](_0x1f08c8(0x195)+_0x229931[_0x1f08c8(0x16b)]+'\x20'),_0x5cdcbe[_0x1f08c8(0x125)]=_0x25e43a['CLOUD_PROVIDER']):_0xe42e49[_0x1f08c8(0x20e)](_0xe42e49[_0x1f08c8(0x210)],_0xe42e49[_0x1f08c8(0x182)])?_0x308be4=_0x3eb271:(_0x1c2571['error'](_0xe42e49[_0x1f08c8(0x13c)]),_0x5dc696[_0x1f08c8(0x197)](0x1));}}else _0xe42e49[_0x1f08c8(0x1e7)](_0xe42e49['KeWZw'],_0xe42e49[_0x1f08c8(0x190)])?process[_0x1f08c8(0x197)](0x1):_0xd319db[_0x1f08c8(0x20b)](_0xe42e49[_0x1f08c8(0x1a9)]);const _0x328376={};_0x328376[_0x1f08c8(0x1fe)]=WS_EVENTS[_0x1f08c8(0x1bd)],_0x328376['message']=_0xe42e49['aWLVo'],webSocketUtils[_0x1f08c8(0x19f)](_0x2d5996,_0x328376),global_registry[_0x1f08c8(0x125)]=_0x308be4[_0x1f08c8(0x125)],global_registry['clusterRegion']=_0x308be4['region'],global_registry[_0x1f08c8(0x1ff)]=_0x308be4[_0x1f08c8(0x1ff)];}else _0x492be[_0x1f08c8(0x139)]('Cluster\x20`'+_0x4f1dcf['clusterName']+_0x1f08c8(0x12b));}else _0xe42e49['cjqkI'](_0xe42e49[_0x1f08c8(0x1cf)],_0xe42e49[_0x1f08c8(0x1cf)])?(_0x5989e1[_0x1f08c8(0x139)]('['+_0x3f0282+_0x1f08c8(0x1f4)+_0xa828b7['status']+'\x20data\x20:\x20'+_0x5229c9[_0x1f08c8(0x1ca)]+_0x1f08c8(0x18c)+_0x33b5d9[_0x1f08c8(0x141)]),_0x9749f7[_0x1f08c8(0x141)]&&_0x3729b8[_0x1f08c8(0x141)](_0x1f08c8(0x15d)+_0x423b58[_0x1f08c8(0x141)][_0x1f08c8(0x1b9)])):(logger['error'](_0xe42e49[_0x1f08c8(0x13c)]),process[_0x1f08c8(0x197)](0x1));}}}catch(_0x321d29){_0xe42e49[_0x1f08c8(0x12c)](_0xe42e49[_0x1f08c8(0x1eb)],_0xe42e49['SDhXy'])?(_0x5c384d=_0x1f08c8(0x1a7)+_0x321d29+':\x20'+_0x321d29[_0x1f08c8(0x1b9)],logger['error'](_0x5c384d),await _0xe42e49[_0x1f08c8(0x1a5)](reportToGalactusAndSendToEDS,_0x3bdf51,_0x2d5996,_0x5c384d,messageTypes[_0x1f08c8(0x19b)],_0xe42e49[_0x1f08c8(0x140)],_0xe42e49[_0x1f08c8(0x136)],_0xe42e49[_0x1f08c8(0x1be)]),process[_0x1f08c8(0x197)](0x1)):_0x133a2e[_0x1f08c8(0x20b)](_0xe42e49[_0x1f08c8(0x208)]);}}function printResponse(_0x4863ce,_0x3e00a8){const _0x112bce=a17_0x4f986d,_0x460c33={};_0x460c33[_0x112bce(0x179)]=_0x112bce(0x216),_0x460c33[_0x112bce(0x142)]=function(_0x1e29e9,_0x5586e4){return _0x1e29e9===_0x5586e4;},_0x460c33['gclBh']='ECAMK';const _0x580bc1=_0x460c33;logger['info']('['+_0x4863ce+_0x112bce(0x1f4)+_0x3e00a8[_0x112bce(0x183)]+_0x112bce(0x18b)+_0x3e00a8[_0x112bce(0x1ca)]+_0x112bce(0x18c)+_0x3e00a8['error']),_0x3e00a8['error']&&(_0x580bc1[_0x112bce(0x142)](_0x580bc1[_0x112bce(0x1a0)],_0x580bc1[_0x112bce(0x1a0)])?logger[_0x112bce(0x141)](_0x112bce(0x15d)+_0x3e00a8[_0x112bce(0x141)][_0x112bce(0x1b9)]):_0x12c02e[_0x112bce(0x20b)](_0x580bc1['yMZir']));}async function generateReport(_0x1e5f76,_0x4c713f){const _0x2d718d=a17_0x4f986d,_0x2790fb={'umols':function(_0x3a19b3,_0x36fb31){return _0x3a19b3+_0x36fb31;},'xmAOL':_0x2d718d(0x167),'JIIKA':_0x2d718d(0x1ba),'pykTt':function(_0x1a1345,_0x52c3dc){return _0x1a1345||_0x52c3dc;},'uQizu':_0x2d718d(0x1d7),'PhfhW':_0x2d718d(0x132),'TdoND':_0x2d718d(0x1b2),'wtuTT':function(_0x50b558,_0x225f8f){return _0x50b558!=_0x225f8f;},'gvmen':_0x2d718d(0x14b),'wyGRl':_0x2d718d(0x20d),'lrpof':function(_0x755930){return _0x755930();}};let _0x20f5e8=_0x2d718d(0x1ea)+global_registry[_0x2d718d(0x125)]+_0x2d718d(0x166);return _0x1e5f76[_0x2d718d(0x176)]((_0x5dd8cc,_0x7133b1)=>{const _0x54d5a9=_0x2d718d,{header:_0x1544a9,response:_0x4bb083}=_0x5dd8cc,{status:_0x1d1f3a,data:_0x56ce5a,error:_0x32d700}=_0x4bb083;_0x20f5e8+=_0x1544a9+'\x20#'+_0x2790fb['umols'](_0x7133b1,0x1)+'\x0a',_0x20f5e8+=_0x54d5a9(0x158)+(_0x1d1f3a?_0x2790fb[_0x54d5a9(0x1e2)]:_0x2790fb[_0x54d5a9(0x186)])+'\x0a',_0x20f5e8+=_0x54d5a9(0x1ac)+_0x2790fb[_0x54d5a9(0x129)](_0x56ce5a,_0x2790fb[_0x54d5a9(0x1a2)])+'\x0a',_0x32d700&&(_0x20f5e8+=_0x2790fb[_0x54d5a9(0x1e6)],_0x20f5e8+='\x20\x20Message:\x20'+(_0x32d700['message']||_0x2790fb['uQizu'])+'\x0a',_0x20f5e8+=_0x54d5a9(0x191)+(_0x32d700['code']||_0x2790fb[_0x54d5a9(0x1a2)])+'\x0a',_0x20f5e8+='\x20\x20Stack:\x20'+(_0x32d700[_0x54d5a9(0x1b9)]||_0x2790fb[_0x54d5a9(0x1a2)])+'\x0a'),_0x20f5e8+='\x0a\x0a';}),_0x20f5e8+=_0x2790fb[_0x2d718d(0x168)],_0x2790fb[_0x2d718d(0x1de)](_0x4c713f,null)?_0x20f5e8+=_0x2d718d(0x137)+global_registry[_0x2d718d(0x1ff)]+'\x20'+(_0x4c713f?_0x2790fb['gvmen']:_0x2790fb['wyGRl'])+'\x0a\x0a':_0x20f5e8+=_0x2d718d(0x137)+global_registry[_0x2d718d(0x1ff)]+_0x2d718d(0x135),_0x20f5e8+=_0x2790fb[_0x2d718d(0x121)](getSystemMetaData),_0x20f5e8;};exports['handler']=async function(_0x39bbe6){const _0x1b3959=a17_0x4f986d,_0x505afa={'DWcjz':function(_0x341bab){return _0x341bab();},'pkXVn':_0x1b3959(0x15c),'TLDaT':function(_0x6dde4,_0x1a1fe7,_0x44d4ec,_0x57e5f9,_0x94cc55,_0x262e9c,_0x26e0be,_0xbd0fa4){return _0x6dde4(_0x1a1fe7,_0x44d4ec,_0x57e5f9,_0x94cc55,_0x262e9c,_0x26e0be,_0xbd0fa4);},'okyYB':_0x1b3959(0x1e4),'GBySQ':_0x1b3959(0x1e9),'HokRR':'error','TxLza':function(_0x35a77b,_0x26ef0b,_0x4cd25d,_0x206c89,_0x2023cb,_0x274413,_0x47233c){return _0x35a77b(_0x26ef0b,_0x4cd25d,_0x206c89,_0x2023cb,_0x274413,_0x47233c);},'vAZmb':function(_0x1021a1){return _0x1021a1();},'PDOni':_0x1b3959(0x145),'gKBwZ':_0x1b3959(0x14d),'bUafF':function(_0x362453,_0x52ebb9,_0x2ce061){return _0x362453(_0x52ebb9,_0x2ce061);},'UcgJT':function(_0x123629,_0x3ebb2f,_0x3f21a0){return _0x123629(_0x3ebb2f,_0x3f21a0);},'RnemT':function(_0x1aa111,_0x41cfc5,_0x3196c6,_0x1f387a,_0x3a7205,_0x14ac79,_0x168bc4){return _0x1aa111(_0x41cfc5,_0x3196c6,_0x1f387a,_0x3a7205,_0x14ac79,_0x168bc4);},'alXKC':_0x1b3959(0x20a),'OaHCL':function(_0x56f068,_0x435143,_0x274fee){return _0x56f068(_0x435143,_0x274fee);},'UHgdE':_0x1b3959(0x150),'YoZob':'2|0|1|3|4','WpLrR':function(_0x593193,_0x38e6c6,_0x3edbcf){return _0x593193(_0x38e6c6,_0x3edbcf);},'tOuHW':_0x1b3959(0x14c),'FacQF':function(_0x1028ce,_0xc036b5,_0xc52982){return _0x1028ce(_0xc036b5,_0xc52982);},'aeIBa':'isTrialGridAccessible','UWXSR':function(_0x2af7d2,_0x43443e){return _0x2af7d2(_0x43443e);},'OJATA':_0x1b3959(0x187),'VgYjV':function(_0x3919f5,_0x55678e,_0x33d898){return _0x3919f5(_0x55678e,_0x33d898);},'uiqoP':'isTls1_2_SUPPORTED','BgkPm':_0x1b3959(0x1b3),'yAuJM':_0x1b3959(0x1d4),'dlnSy':_0x1b3959(0x221),'KVYRX':_0x1b3959(0x1f5),'aXzRB':function(_0x37abee,_0xe54b09,_0x5d4896){return _0x37abee(_0xe54b09,_0x5d4896);},'OhKQX':function(_0x3679d3,_0x508f8b){return _0x3679d3+_0x508f8b;},'UoGWq':_0x1b3959(0x1b0),'yJgJT':function(_0x271d8f,_0x244667,_0xba8a55,_0x4e19bc,_0x16bd51,_0x3a43db,_0x441d1d){return _0x271d8f(_0x244667,_0xba8a55,_0x4e19bc,_0x16bd51,_0x3a43db,_0x441d1d);},'JeJUE':_0x1b3959(0x1ee)};let _0x3f7ec4,_0x1ae2e2;try{global_registry['requestId']=_0x505afa[_0x1b3959(0x16e)](uuidv4);!fs[_0x1b3959(0x1aa)](_0x505afa[_0x1b3959(0x16e)](getCredentialsPath))&&(_0x1ae2e2=_0x505afa[_0x1b3959(0x21d)],logger[_0x1b3959(0x141)](_0x1ae2e2),await _0x505afa[_0x1b3959(0x1a8)](reportToGalactusAndSendToEDS,_0x39bbe6,_0x3f7ec4,_0x1ae2e2,messageTypes[_0x1b3959(0x19b)],_0x505afa[_0x1b3959(0x1c8)],_0x505afa[_0x1b3959(0x220)],_0x505afa['HokRR']),process[_0x1b3959(0x197)](0x1));_0x505afa['TxLza'](sendInstrumentationEvent,_0x39bbe6,_0x505afa['okyYB'],messageTypes['INFO'],null,null,_0x39bbe6);const _0x1dc4a5=JSON[_0x1b3959(0x13d)](fs['readFileSync'](_0x505afa[_0x1b3959(0x1b7)](getCredentialsPath)));global_registry[_0x1b3959(0x1e1)]=_0x1dc4a5[_0x1b3959(0x1e3)][_0x1b3959(0x151)],global_registry['bstackAccesskey']=_0x1dc4a5[_0x1b3959(0x1e3)][_0x1b3959(0x207)];const _0x90010f=WS_ENDPOINT[_0x1b3959(0x13e)](_0x505afa[_0x1b3959(0x172)],_0x1dc4a5['Browserstack']['username'])[_0x1b3959(0x13e)](_0x505afa[_0x1b3959(0x165)],_0x1dc4a5[_0x1b3959(0x1e3)][_0x1b3959(0x207)]),_0x260778={};_0x260778[_0x1b3959(0x15b)]=ws,_0x260778[_0x1b3959(0x14a)]=0x36ee80,_0x3f7ec4=new ReconnectingWebSocket(_0x90010f,[],_0x260778),global_registry[_0x1b3959(0x1fb)]=_0x505afa['bUafF'](getAuthHeader,global_registry[_0x1b3959(0x1e1)],global_registry[_0x1b3959(0x17c)]),await _0x505afa['UcgJT'](inputValidation,_0x39bbe6,_0x3f7ec4),logger['info'](_0x1b3959(0x126)+global_registry['cloudProvider']+'\x20region\x20-\x20'+global_registry[_0x1b3959(0x1ec)]);let _0x30e8a8=await _0x505afa['RnemT'](getCloudProviderObjectWithOutInit,global_registry[_0x1b3959(0x125)],global_registry['clusterName'],_0x505afa[_0x1b3959(0x1ef)],_0x3f7ec4,webSocketUtils,_0x39bbe6);const _0x2d85c8=await _0x30e8a8['isCliToolInstalled']();_0x505afa['OaHCL'](printResponse,_0x505afa[_0x1b3959(0x21c)],_0x2d85c8),_0x30e8a8=await _0x30e8a8['init']();let _0x24415b=![];try{_0x24415b=await _0x30e8a8['isClusterPresent']();}catch(_0x3266ee){const _0xe0c112=_0x505afa[_0x1b3959(0x12a)][_0x1b3959(0x1ab)]('|');let _0x48d424=0x0;while(!![]){switch(_0xe0c112[_0x48d424++]){case'0':_0x24415b=null;continue;case'1':logger['error'](_0x1ae2e2);continue;case'2':_0x1ae2e2=_0x1b3959(0x1c3)+global_registry[_0x1b3959(0x1ff)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x1b3959(0x1ec)]+'`\x20,error\x20:\x20'+_0x3266ee;continue;case'3':_0x1ae2e2+='\x0a'+JSON[_0x1b3959(0x1c5)](_0x3266ee[_0x1b3959(0x1b9)]);continue;case'4':await _0x505afa[_0x1b3959(0x1a8)](reportToGalactusAndSendToEDS,_0x39bbe6,_0x3f7ec4,_0x1ae2e2,messageTypes[_0x1b3959(0x19b)],_0x505afa['okyYB'],_0x1b3959(0x200)+global_registry[_0x1b3959(0x125)],_0x505afa[_0x1b3959(0x21f)]);continue;}break;}}_0x24415b&&logger[_0x1b3959(0x139)](_0x1b3959(0x1bf)+global_registry[_0x1b3959(0x1ff)]+'`\x20already\x20exists');const _0x1afea2=await _0x30e8a8[_0x1b3959(0x16f)]();_0x505afa[_0x1b3959(0x1d3)](printResponse,_0x505afa[_0x1b3959(0x1a4)],_0x1afea2);const _0x4ad512=await _0x505afa[_0x1b3959(0x1b7)](curlRequest);_0x505afa[_0x1b3959(0x1cd)](printResponse,_0x505afa[_0x1b3959(0x1c1)],_0x4ad512);const _0x392f57=await _0x505afa[_0x1b3959(0x1f8)](isTlsSupported,_0x505afa['OJATA']);_0x505afa['VgYjV'](printResponse,_0x505afa[_0x1b3959(0x20f)],_0x392f57);const _0x12495e={};_0x12495e['header']=_0x505afa[_0x1b3959(0x1cc)],_0x12495e['response']=_0x2d85c8;const _0xf77ba6={};_0xf77ba6[_0x1b3959(0x1c4)]=_0x505afa['yAuJM'],_0xf77ba6['response']=_0x1afea2;const _0x39a28a={};_0x39a28a['header']=_0x505afa['dlnSy'],_0x39a28a[_0x1b3959(0x130)]=_0x4ad512;const _0x5a22c7={};_0x5a22c7[_0x1b3959(0x1c4)]=_0x505afa[_0x1b3959(0x1ad)],_0x5a22c7['response']=_0x392f57;const _0x52bd28=[_0x12495e,_0xf77ba6,_0x39a28a,_0x5a22c7],_0x36dd89=await _0x505afa[_0x1b3959(0x205)](generateReport,_0x52bd28,_0x24415b),_0x22b696=new Date(),_0x415310=_0x22b696[_0x1b3959(0x17d)]()+'_'+_0x505afa['OhKQX'](_0x22b696['getUTCMonth'](),0x1)+'_'+_0x22b696['getUTCDate']()+'_'+_0x22b696['getUTCHours']()+'_'+_0x22b696[_0x1b3959(0x161)](),_0x24f769=_0x1b3959(0x15e)+_0x415310+_0x1b3959(0x12d);fs[_0x1b3959(0x212)](_0x24f769,_0x36dd89,_0x505afa[_0x1b3959(0x203)]),logger[_0x1b3959(0x139)](_0x1b3959(0x143)+_0x24f769),process['exit'](0x0);}catch(_0x2afe24){let _0x29f49d=_0x1b3959(0x1b8)+_0x2afe24+'\x20';logger['error'](_0x29f49d),_0x29f49d+='\x0a'+JSON[_0x1b3959(0x1c5)](_0x2afe24[_0x1b3959(0x1b9)]),logger['debug'](_0x1b3959(0x1f7)+_0x2afe24['stack']);if(_0x3f7ec4){const _0x6f443={};_0x6f443[_0x1b3959(0x1fe)]=WS_EVENTS[_0x1b3959(0x1bd)],_0x6f443[_0x1b3959(0x17a)]=_0x29f49d,webSocketUtils[_0x1b3959(0x19f)](_0x3f7ec4,_0x6f443,_0x505afa[_0x1b3959(0x21f)],!![]);}await webSocketUtils[_0x1b3959(0x218)](0x7d0);const _0x53beb5={};_0x53beb5[_0x1b3959(0x141)]=_0x29f49d,await _0x505afa['yJgJT'](sendInstrumentationEvent,_0x39bbe6,_0x505afa[_0x1b3959(0x1c8)],messageTypes['ERROR'],_0x505afa[_0x1b3959(0x1b4)],_0x53beb5,_0x39bbe6),process[_0x1b3959(0x197)](0x1);}};function a17_0x51cc(){const _0x25c5f6=['zrsFE','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','TLDaT','nYuJt','existsSync','split','Message:\x20','KVYRX','136IOMMIQ','cluster-name','utf-8','ruhrn','Cluster\x20details\x0a-----------------------\x0a','Tool\x20Installed','JeJUE','code','EdcFY','vAZmb','Failed\x20in\x20pre-check!\x20Error:\x20','stack','Failure','7536859jbsyUi','rEzwv','LOG','VnDCY','Cluster\x20`','got','aeIBa','grid','unable\x20to\x20verify\x20if\x20cluster\x20`','header','stringify','reconnecting-websocket','KUhtK','okyYB','Knxfk','data','WIXAc','BgkPm','FacQF','fPTEP','ADhnh','OkGrM','oEVCV','NgiVR','WpLrR','User\x20Access','throwHttpErrors','gridProfile','N/A','EzTCE','help','763936XnRLst','cloud-provider-not-supported','method','Missing\x20required\x20arguments:\x20','wtuTT','TJOta','padZo','bstackUsername','xmAOL','Browserstack','pre-check-grid-called','YdCwi','PhfhW','RMCmY','BLgYY','credential-not-found','===\x20Precheck\x20Report\x20-\x20','FcrVf','clusterRegion','cWZMC','pre-check-failed','alXKC','zvkeg','grid-profile','vITQK','description',']\x20status\x20:\x20','SSL\x20Configured','ZCXpU','stack\x20trace\x20','UWXSR','../../config/constants','bllTr','authHeader','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','QRyTa','type','clusterName','cluster-check-failed-','\x20\x20Message:\x20','21064nTCYca','UoGWq','find','aXzRB','rXVuZ','password','pEktM','../../utils/utilityMethods','dummy-grid','push','epilogue','will\x20be\x20created','nqpoy','uiqoP','nGXUE','CqmcZ','writeFileSync','HFhdr','region','OCbTO','cloud-provider','MrsHp','delay','argv','../../config/logger','pre_check','UHgdE','pkXVn','xUDPU','HokRR','GBySQ','Whitelisted\x20browserstack','command','lrpof','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','UKztD','DwGkj','cloudProvider','Pre-check\x20running\x20for\x20Cloud\x20-\x20','../../utils/webSocketUtils','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','pykTt','YoZob','`\x20already\x20exists','smHnM','.txt','ZSARw','5491467xpayJP','response','join','Error\x20Details:\x0a','134110guijWP','xfQrD','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','rfHok','Cluster\x20','desc','info','cnggu','uuid','HYBCM','parse','replace','pre-check-cluster-args-not-passed','ZsbvL','error','KNpKX','Report\x20saved\x20in\x20','usage','<UsernamePlaceholder>','ACbMp','4ewRzYD','grid\x20profile\x20flow\x20','GMuhv','connectionTimeout','is\x20already\x20present','accessResp','<PasswordPlaceholder>','asxzH','JhAAh','toolInstalledResp','username','DjDhU','hjIry','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','builder','24rZxQCi','Status:\x20','AvKrr','Jpmzx','WebSocket','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','error\x20stack\x20:\x20','log/report_','pre-check','194106VYbGnD','getUTCMinutes','vJSUe','10xGAMCH','rrEqi','gKBwZ','\x20===\x0a\x0a','Success','TdoND','string','.\x20Please\x20provide\x20all\x20required\x20arguments.','CLOUD_PROVIDER','21PCiEKE','headers','DWcjz','checkAccess','GET','nHTvB','PDOni','toLowerCase','joeeI','jqmUW','forEach','EPRiA','options','yMZir','message','4171692jiEbqq','bstackAccesskey','getUTCFullYear','sXQbI','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','CDwIf','tfJhv','wigQE','status','kFdKi','oVSLR','JIIKA','TLSv1_2_client_method','../../cloudproviders/utils','Invalid\x20input.\x20grid\x20profiles:\x20','HmBTU','\x20data\x20:\x20','\x20error\x20:\x20','HsLKt','\x20\x20Stack:\x20','kUspl','HosOR','\x20\x20Code:\x20','uICkL','/packages/cli/get-all-grid-profiles','gWKKG','Setting\x20cloud\x20provider\x20as\x20','name','exit','EKhNM','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','qEmIP','ERROR','zguYj','includes','SsVZE','sendEventToBackend','gclBh','KvcQo','uQizu','dCkCk','tOuHW','rnbSM'];a17_0x51cc=function(){return _0x25c5f6;};return a17_0x51cc();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a18_0x237a61=a18_0x3d8a;function a18_0x3d8a(_0x27bace,_0x24dedc){const _0x5c4695=a18_0x5c46();return a18_0x3d8a=function(_0x3d8afc,_0x2d7b27){_0x3d8afc=_0x3d8afc-0x129;let _0x1e5bbe=_0x5c4695[_0x3d8afc];return _0x1e5bbe;},a18_0x3d8a(_0x27bace,_0x24dedc);}(function(_0x5ec327,_0x55a3fe){const _0x75073c=a18_0x3d8a,_0x468e7f=_0x5ec327();while(!![]){try{const _0x7b5043=parseInt(_0x75073c(0x12a))/0x1+parseInt(_0x75073c(0x138))/0x2*(-parseInt(_0x75073c(0x134))/0x3)+parseInt(_0x75073c(0x13e))/0x4+parseInt(_0x75073c(0x137))/0x5*(parseInt(_0x75073c(0x135))/0x6)+parseInt(_0x75073c(0x130))/0x7+parseInt(_0x75073c(0x133))/0x8*(-parseInt(_0x75073c(0x12f))/0x9)+-parseInt(_0x75073c(0x131))/0xa;if(_0x7b5043===_0x55a3fe)break;else _0x468e7f['push'](_0x468e7f['shift']());}catch(_0x1b62af){_0x468e7f['push'](_0x468e7f['shift']());}}}(a18_0x5c46,0x3031b));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']='start',exports[a18_0x237a61(0x13c)]=a18_0x237a61(0x139),exports[a18_0x237a61(0x136)]=function(_0x46db55){const _0x2f3ad6=a18_0x237a61,_0x45684b={};_0x45684b['MiAtF']=_0x2f3ad6(0x132),_0x45684b[_0x2f3ad6(0x12d)]=_0x2f3ad6(0x129);const _0x4b782b=_0x45684b;return _0x46db55['usage'](HELP_HEADER_MESSAGE[_0x2f3ad6(0x12e)])[_0x2f3ad6(0x13a)](HELP_FOOTER_MESSAGE)['commandDir'](_0x4b782b[_0x2f3ad6(0x13b)])[_0x2f3ad6(0x13d)]()[_0x2f3ad6(0x13f)]()[_0x2f3ad6(0x12c)]()['help'](_0x4b782b[_0x2f3ad6(0x12d)]);},exports[a18_0x237a61(0x12b)]=function(_0x37e0e3){};function a18_0x5c46(){const _0x241eef=['329645PIVfkY','2578uhOXoe','Start\x20an\x20existing\x20Automation\x20grid.','epilogue','MiAtF','desc','demandCommand','696248HFEijS','recommendCommands','help','380234dFAoTC','handler','strict','xJnuB','start','207CtSnWN','942242giPaCi','2503500lwIDWW','start_commands','127632ghjZTC','321yOELIf','24GsZCZr','builder'];a18_0x5c46=function(){return _0x241eef;};return a18_0x5c46();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a19_0x1f1b52=a19_0x43d8;(function(_0x2e301a,_0x2df42d){const _0x4b4224=a19_0x43d8,_0x4e0c2a=_0x2e301a();while(!![]){try{const _0x3d16e8=-parseInt(_0x4b4224(0x139))/0x1*(-parseInt(_0x4b4224(0x10f))/0x2)+-parseInt(_0x4b4224(0x121))/0x3+-parseInt(_0x4b4224(0x129))/0x4*(-parseInt(_0x4b4224(0x11d))/0x5)+-parseInt(_0x4b4224(0x11b))/0x6*(-parseInt(_0x4b4224(0x113))/0x7)+parseInt(_0x4b4224(0x116))/0x8+-parseInt(_0x4b4224(0x109))/0x9+-parseInt(_0x4b4224(0x138))/0xa*(parseInt(_0x4b4224(0x115))/0xb);if(_0x3d16e8===_0x2df42d)break;else _0x4e0c2a['push'](_0x4e0c2a['shift']());}catch(_0x59c9f5){_0x4e0c2a['push'](_0x4e0c2a['shift']());}}}(a19_0x1335,0x97456));function a19_0x1335(){const _0x1b6814=['readFileSync','jxOaA','error','start-grid-called','INFO','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','iLKBB','username','message','help','cloudProvider','../../utils/gridComponents','Start\x20an\x20existing\x20Automation\x20grid.','UOIpM','AvCbB','vGIrG','HZKtp','handler','name','gridId','KnMjR','<PasswordPlaceholder>','../../utils/webSocketUtils','aZkCn','xlveG','lwsAa','password','user','../../config/constants','saFkD','Grid\x20started','nXlhW','existsSync','debug','epilogue','replace','parse','clusterRegion','eFoBa','type','info','init-not-called','jkqgj','6061176lazewn','bstackAccesskey','../../utils/instrumentationUtils','stringify','exit','desc','630GMzOfv','grid','jKbqd','description','24983GXgyzL','default','1243DXZyiN','2590416HYgWTQ','jIWeP','body','statusCode','connectionTimeout','1338PquIQy','grid-id','5787445irMTYc','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','hMLTe','ERROR','1366602YxJCvk','stack','Skip\x20insecure\x20cert\x20verification.','Starting\x20grid\x20','zVMwg','../../cloudproviders/utils','RMhcb','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','4JBTsPO','server-error','invalid-grid-id','BGBtr','reconnecting-websocket','region','argv','clusterName','uIoFf','addListeners','skip-tls-cert-verify','sxGBj','bstackUsername','Browserstack','opBRe','63530zriHUb','601XKJhar','usage','boolean','unauthorised','skipTlsCertVerify','string','start'];a19_0x1335=function(){return _0x1b6814;};return a19_0x1335();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x1f1b52(0x12d)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x1f1b52(0x15d)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x1f1b52(0x14c)),{sendInstrumentationEvent}=require(a19_0x1f1b52(0x10b)),webSocketUtils=require(a19_0x1f1b52(0x157)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0x1f1b52(0x126));function a19_0x43d8(_0x10449c,_0x2c711b){const _0x1335f9=a19_0x1335();return a19_0x43d8=function(_0x43d8c5,_0x29684d){_0x43d8c5=_0x43d8c5-0x108;let _0x1f97bd=_0x1335f9[_0x43d8c5];return _0x1f97bd;},a19_0x43d8(_0x10449c,_0x2c711b);}exports['command']=a19_0x1f1b52(0x110),exports[a19_0x1f1b52(0x10e)]=a19_0x1f1b52(0x14d),exports['builder']=function(_0x178d2d){const _0x367f89=a19_0x1f1b52,_0x5453b1={};_0x5453b1[_0x367f89(0x11f)]=_0x367f89(0x146),_0x5453b1[_0x367f89(0x160)]=_0x367f89(0x13e),_0x5453b1[_0x367f89(0x131)]=_0x367f89(0x123),_0x5453b1['sxGBj']=_0x367f89(0x13b),_0x5453b1[_0x367f89(0x137)]=_0x367f89(0x14a);const _0x1e89ce=_0x5453b1,_0x48b1b6={};_0x48b1b6[_0x367f89(0x112)]=_0x1e89ce[_0x367f89(0x11f)],_0x48b1b6[_0x367f89(0x168)]=_0x1e89ce['nXlhW'];const _0x5dd25f={};_0x5dd25f['description']=_0x1e89ce[_0x367f89(0x131)],_0x5dd25f['type']=_0x1e89ce[_0x367f89(0x134)],_0x5dd25f[_0x367f89(0x114)]=![];const _0x47df58={};return _0x47df58[_0x367f89(0x11c)]=_0x48b1b6,_0x47df58[_0x367f89(0x133)]=_0x5dd25f,_0x178d2d[_0x367f89(0x13a)](HELP_HEADER_MESSAGE[_0x367f89(0x13f)])[_0x367f89(0x163)](HELP_FOOTER_MESSAGE)['options'](_0x47df58)[_0x367f89(0x14a)](_0x1e89ce[_0x367f89(0x137)])[_0x367f89(0x12f)];},exports[a19_0x1f1b52(0x152)]=async function(_0x1bf9ea){const _0x5cfd46=a19_0x1f1b52,_0x228451={'RJsGr':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','lwsAa':function(_0x5be318){return _0x5be318();},'jIWeP':_0x5cfd46(0x11e),'RMhcb':function(_0x2a04f7,_0xcc4239,_0x2ff57c,_0x9c005f,_0x56c4e2,_0x1d5469,_0x546d07){return _0x2a04f7(_0xcc4239,_0x2ff57c,_0x9c005f,_0x56c4e2,_0x1d5469,_0x546d07);},'HZKtp':_0x5cfd46(0x143),'aZkCn':_0x5cfd46(0x16a),'TvIWi':function(_0x5ea815){return _0x5ea815();},'YjNmg':'<UsernamePlaceholder>','xlveG':_0x5cfd46(0x156),'zVMwg':'Adding\x20Websocket\x20listeners','KnMjR':function(_0xab85a2,_0x200a0a,_0x10116a,_0xbcd4c2){return _0xab85a2(_0x200a0a,_0x10116a,_0xbcd4c2);},'UOIpM':function(_0x4d0e4b,_0xf4f83f,_0x47a37a,_0x5f561e,_0x12a030,_0xa10993,_0x4bc3b7){return _0x4d0e4b(_0xf4f83f,_0x47a37a,_0x5f561e,_0x12a030,_0xa10993,_0x4bc3b7);},'iLKBB':function(_0x42460d,_0x103b36,_0x25527c){return _0x42460d(_0x103b36,_0x25527c);},'jKbqd':function(_0x984307,_0x1a9a89,_0x1354fc){return _0x984307(_0x1a9a89,_0x1354fc);},'BGBtr':_0x5cfd46(0x15f),'jxOaA':function(_0x1fa647,_0x4f1ba6){return _0x1fa647===_0x4f1ba6;},'YGpXL':_0x5cfd46(0x145),'vGIrG':function(_0x4e7d10,_0x342b33,_0x5f2817,_0x1c83d2,_0x444588,_0x592d9c,_0x51e425){return _0x4e7d10(_0x342b33,_0x5f2817,_0x1c83d2,_0x444588,_0x592d9c,_0x51e425);},'saFkD':_0x5cfd46(0x13c),'jkqgj':_0x5cfd46(0x12b),'eFoBa':function(_0x54bc15,_0x7c142f,_0x35c55f,_0x145c8c,_0x30eea3,_0x151afe,_0x505acb){return _0x54bc15(_0x7c142f,_0x35c55f,_0x145c8c,_0x30eea3,_0x151afe,_0x505acb);},'AvCbB':_0x5cfd46(0x12a)};let _0x10dd10;try{!_0x1bf9ea['gridId']&&(logger[_0x5cfd46(0x142)](_0x228451['RJsGr']),process['exit'](0x1));!fs[_0x5cfd46(0x161)](_0x228451[_0x5cfd46(0x15a)](getCredentialsPath))&&(logger[_0x5cfd46(0x142)](_0x228451[_0x5cfd46(0x117)]),await _0x228451[_0x5cfd46(0x127)](sendInstrumentationEvent,_0x1bf9ea,_0x228451[_0x5cfd46(0x151)],messageTypes[_0x5cfd46(0x120)],_0x228451[_0x5cfd46(0x158)],null,_0x1bf9ea),process['exit'](0x1));logger[_0x5cfd46(0x169)](_0x5cfd46(0x124)+_0x1bf9ea[_0x5cfd46(0x154)]),await _0x228451[_0x5cfd46(0x127)](sendInstrumentationEvent,_0x1bf9ea,_0x228451['HZKtp'],messageTypes[_0x5cfd46(0x144)],null,null,_0x1bf9ea);const _0x4e3867=JSON[_0x5cfd46(0x165)](fs[_0x5cfd46(0x140)](_0x228451['TvIWi'](getCredentialsPath)));global_registry[_0x5cfd46(0x135)]=_0x4e3867[_0x5cfd46(0x136)]['username'],global_registry[_0x5cfd46(0x10a)]=_0x4e3867[_0x5cfd46(0x136)][_0x5cfd46(0x15b)];const _0x102617=WS_ENDPOINT[_0x5cfd46(0x164)](_0x228451['YjNmg'],_0x4e3867[_0x5cfd46(0x136)][_0x5cfd46(0x148)])[_0x5cfd46(0x164)](_0x228451[_0x5cfd46(0x159)],_0x4e3867[_0x5cfd46(0x136)]['password']),_0x26004f={};_0x26004f['WebSocket']=ws,_0x26004f[_0x5cfd46(0x11a)]=0x36ee80,_0x10dd10=new ReconnectingWebSocket(_0x102617,[],_0x26004f),logger[_0x5cfd46(0x162)](_0x228451[_0x5cfd46(0x125)]),webSocketUtils[_0x5cfd46(0x132)](_0x10dd10,_0x1bf9ea[_0x5cfd46(0x15c)],_0x1bf9ea[_0x5cfd46(0x15b)]);const [_0x16603c,_0x4d43d9]=await _0x228451[_0x5cfd46(0x155)](getGridDetails,_0x4e3867[_0x5cfd46(0x136)][_0x5cfd46(0x148)],_0x4e3867['Browserstack'][_0x5cfd46(0x15b)],_0x1bf9ea[_0x5cfd46(0x154)]);if(_0x4d43d9){const _0x614d6f=_0x4d43d9['info'];global_registry['cloudProvider']=_0x614d6f[_0x5cfd46(0x14b)],global_registry[_0x5cfd46(0x166)]=_0x614d6f[_0x5cfd46(0x12e)],global_registry[_0x5cfd46(0x130)]=_0x614d6f[_0x5cfd46(0x130)];const _0x28d502=await _0x228451['UOIpM'](getCloudProviderObject,_0x614d6f['cloudProvider'],_0x614d6f[_0x5cfd46(0x130)],_0x614d6f[_0x5cfd46(0x153)],_0x10dd10,webSocketUtils,_0x1bf9ea),[_0x2d02ab,_0x3c208d,_0x500bfa,_0x1bda17,_0x11aa65,_0xf6e2dc]=await _0x228451[_0x5cfd46(0x147)](createK8sClient,_0x28d502,_0x1bf9ea[_0x5cfd46(0x13d)]);await _0x228451[_0x5cfd46(0x111)](scaleUpHubDeployment,_0x3c208d,_0x614d6f[_0x5cfd46(0x153)]),logger[_0x5cfd46(0x169)](_0x228451[_0x5cfd46(0x12c)]),process[_0x5cfd46(0x10d)](0x0);}_0x228451['jxOaA'](_0x16603c[_0x5cfd46(0x119)],0x191)&&(logger['error'](_0x228451['YGpXL']),await _0x228451[_0x5cfd46(0x150)](sendInstrumentationEvent,_0x1bf9ea,_0x228451[_0x5cfd46(0x151)],messageTypes['ERROR'],_0x228451[_0x5cfd46(0x15e)],null,_0x1bf9ea),process['exit'](0x1)),_0x228451[_0x5cfd46(0x141)](_0x16603c['statusCode'],0x190)&&(logger[_0x5cfd46(0x142)](JSON[_0x5cfd46(0x165)](_0x16603c[_0x5cfd46(0x118)])[_0x5cfd46(0x149)]),await _0x228451[_0x5cfd46(0x14e)](sendInstrumentationEvent,_0x1bf9ea,_0x228451['HZKtp'],messageTypes['ERROR'],_0x228451[_0x5cfd46(0x108)],null,_0x1bf9ea),process[_0x5cfd46(0x10d)](0x1)),logger[_0x5cfd46(0x142)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x5cfd46(0x10c)](_0x16603c)),await _0x228451[_0x5cfd46(0x167)](sendInstrumentationEvent,_0x1bf9ea,_0x228451['HZKtp'],messageTypes[_0x5cfd46(0x120)],_0x228451[_0x5cfd46(0x14f)],_0x16603c,_0x1bf9ea),process[_0x5cfd46(0x10d)](0x1);}catch(_0x3ce5e2){const _0x393caa=_0x5cfd46(0x128)+_0x3ce5e2+'\x20\x0a'+JSON[_0x5cfd46(0x10c)](_0x3ce5e2[_0x5cfd46(0x122)])+'\x20';logger[_0x5cfd46(0x142)](_0x393caa),process[_0x5cfd46(0x10d)](0x1);}};
|
package/ats/src/commands/stop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a20_0x5849(){const _0x200a66=['../config/constants','397432bClNMe','5741262ZLjeBC','epilogue','qfbDt','RPPZz','331510hImkxn','commandDir','recommendCommands','desc','18siUOCI','878565CdLzPr','341XvWpJG','255828VVdKOW','demandCommand','3704jqBtvd','24SpcaOM','stop','command','29049096ewqxIo','handler','1wjfMyt','strict','2667kYZmKj'];a20_0x5849=function(){return _0x200a66;};return a20_0x5849();}const a20_0x36fe24=a20_0x38cb;(function(_0x348779,_0x3bf6c8){const _0x35773f=a20_0x38cb,_0x31c78f=_0x348779();while(!![]){try{const _0x5eaf4c=-parseInt(_0x35773f(0x84))/0x1*(-parseInt(_0x35773f(0x94))/0x2)+-parseInt(_0x35773f(0x97))/0x3*(-parseInt(_0x35773f(0x88))/0x4)+-parseInt(_0x35773f(0x92))/0x5*(-parseInt(_0x35773f(0x91))/0x6)+-parseInt(_0x35773f(0x86))/0x7*(parseInt(_0x35773f(0x96))/0x8)+parseInt(_0x35773f(0x89))/0x9+-parseInt(_0x35773f(0x8d))/0xa*(-parseInt(_0x35773f(0x93))/0xb)+-parseInt(_0x35773f(0x82))/0xc;if(_0x5eaf4c===_0x3bf6c8)break;else _0x31c78f['push'](_0x31c78f['shift']());}catch(_0x4b0766){_0x31c78f['push'](_0x31c78f['shift']());}}}(a20_0x5849,0x7e8d3));function a20_0x38cb(_0x2f2fa6,_0x388dca){const _0x58494f=a20_0x5849();return a20_0x38cb=function(_0x38cbf8,_0x3ac909){_0x38cbf8=_0x38cbf8-0x80;let _0x1b24b5=_0x58494f[_0x38cbf8];return _0x1b24b5;},a20_0x38cb(_0x2f2fa6,_0x388dca);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x36fe24(0x87));exports[a20_0x36fe24(0x81)]=a20_0x36fe24(0x80),exports[a20_0x36fe24(0x90)]='Stop\x20a\x20running\x20Automation\x20grid.',exports['builder']=function(_0xbdbf61){const _0x45f1bd=a20_0x36fe24,_0xf5063d={};_0xf5063d[_0x45f1bd(0x8b)]='stop_commands',_0xf5063d[_0x45f1bd(0x8c)]='help';const _0x49be8e=_0xf5063d;return _0xbdbf61['usage'](HELP_HEADER_MESSAGE[_0x45f1bd(0x80)])[_0x45f1bd(0x8a)](HELP_FOOTER_MESSAGE)[_0x45f1bd(0x8e)](_0x49be8e[_0x45f1bd(0x8b)])[_0x45f1bd(0x95)]()[_0x45f1bd(0x8f)]()[_0x45f1bd(0x85)]()['help'](_0x49be8e[_0x45f1bd(0x8c)]);},exports[a20_0x36fe24(0x83)]=function(_0x46bb78){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a21_0x3f99(){const _0x1f8d6c=['gUeEg','CaWMa','8rqyeDd','5068452OwCbFc','fyRDY','ZEidY','help','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','../../config/logger','addListeners','1250204iUhDUC','kVmRt','region','bstackAccesskey','bstackUsername','info','Browserstack','replace','TtYIq','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','options','../../utils/instrumentationUtils','Stop\x20a\x20running\x20Automation\x20grid.','grid','usage','clusterName','25358040PMFcKm','statusCode','1835082wKnxxp','error','IpjvU','<PasswordPlaceholder>','gridId','NhtiI','default','type','invalid-grid-id','password','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','grid-id','user','name','CfQtw','stop','<UsernamePlaceholder>','AgwMr','message','WebSocket','ERROR','stringify','init-not-called','../../utils/utilityMethods','argv','description','DOVin','IWfGI','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','../../config/constants','534331uSGmiM','debug','builder','parse','clusterRegion','../../utils/createk8sClient','LvVAl','1718787ugOfLV','exit','Adding\x20Websocket\x20listeners','WwiYq','epilogue','../../utils/webSocketUtils','YWXoJ','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','CHfFz','wyFEy','existsSync','skipTlsCertVerify','reconnecting-websocket','cloudProvider','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','2209055ymfWGT','string','sKreq','../../utils/gridComponents','NpJun','stop-grid-called','handler','readFileSync','jZYlV','inItf','unauthorised','username','Stopping\x20grid\x20','nfPfW','stack','boolean'];a21_0x3f99=function(){return _0x1f8d6c;};return a21_0x3f99();}function a21_0x1c0a(_0x3eedd3,_0xb4f3ee){const _0x3f9907=a21_0x3f99();return a21_0x1c0a=function(_0x1c0a0a,_0x33fd2e){_0x1c0a0a=_0x1c0a0a-0x17d;let _0x4784dd=_0x3f9907[_0x1c0a0a];return _0x4784dd;},a21_0x1c0a(_0x3eedd3,_0xb4f3ee);}const a21_0x2a26ad=a21_0x1c0a;(function(_0x3fccb4,_0x5a3479){const _0x54492f=a21_0x1c0a,_0x3ecb1f=_0x3fccb4();while(!![]){try{const _0x28b5e0=parseInt(_0x54492f(0x1a5))/0x1+parseInt(_0x54492f(0x1d5))/0x2+parseInt(_0x54492f(0x187))/0x3+-parseInt(_0x54492f(0x1cd))/0x4*(-parseInt(_0x54492f(0x1bb))/0x5)+parseInt(_0x54492f(0x1ce))/0x6+parseInt(_0x54492f(0x1ac))/0x7+-parseInt(_0x54492f(0x185))/0x8;if(_0x28b5e0===_0x5a3479)break;else _0x3ecb1f['push'](_0x3ecb1f['shift']());}catch(_0x4f18c6){_0x3ecb1f['push'](_0x3ecb1f['shift']());}}}(a21_0x3f99,0x8c72d));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x2a26ad(0x1b8)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x2a26ad(0x1a4)),{logger}=require(a21_0x2a26ad(0x1d3)),{getCredentialsPath,getGridDetails}=require(a21_0x2a26ad(0x19e)),{scaleDownHubDeployment}=require(a21_0x2a26ad(0x1be)),{sendInstrumentationEvent}=require(a21_0x2a26ad(0x180)),webSocketUtils=require(a21_0x2a26ad(0x1b1)),{createK8sClient}=require(a21_0x2a26ad(0x1aa)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports['command']=a21_0x2a26ad(0x182),exports['desc']=a21_0x2a26ad(0x181),exports[a21_0x2a26ad(0x1a7)]=function(_0x3f6560){const _0x2c60e7=a21_0x2a26ad,_0x191dfc={};_0x191dfc[_0x2c60e7(0x1c8)]=_0x2c60e7(0x1a3),_0x191dfc[_0x2c60e7(0x1a1)]=_0x2c60e7(0x1bc),_0x191dfc[_0x2c60e7(0x1bd)]='Skip\x20insecure\x20cert\x20verification.',_0x191dfc[_0x2c60e7(0x1cb)]=_0x2c60e7(0x1ca),_0x191dfc['WwiYq']=_0x2c60e7(0x1d1);const _0x114c28=_0x191dfc,_0x4b41f3={};_0x4b41f3[_0x2c60e7(0x1a0)]=_0x114c28['nfPfW'],_0x4b41f3[_0x2c60e7(0x18e)]=_0x114c28[_0x2c60e7(0x1a1)];const _0xb2d253={};_0xb2d253[_0x2c60e7(0x1a0)]=_0x114c28[_0x2c60e7(0x1bd)],_0xb2d253['type']=_0x114c28[_0x2c60e7(0x1cb)],_0xb2d253[_0x2c60e7(0x18d)]=![];const _0x211dfa={};return _0x211dfa[_0x2c60e7(0x192)]=_0x4b41f3,_0x211dfa['skip-tls-cert-verify']=_0xb2d253,_0x3f6560[_0x2c60e7(0x183)](HELP_HEADER_MESSAGE[_0x2c60e7(0x196)])[_0x2c60e7(0x1b0)](HELP_FOOTER_MESSAGE)[_0x2c60e7(0x17f)](_0x211dfa)[_0x2c60e7(0x1d1)](_0x114c28[_0x2c60e7(0x1af)])[_0x2c60e7(0x19f)];},exports[a21_0x2a26ad(0x1c1)]=async function(_0x4e4c10){const _0x59aaad=a21_0x2a26ad,_0x586a5={'CHfFz':_0x59aaad(0x1b3),'AgwMr':function(_0x143063){return _0x143063();},'TtYIq':_0x59aaad(0x1ba),'IWfGI':function(_0x4abf06,_0x267743,_0x191d62,_0x13a08e,_0x8e90d3,_0x336cf8,_0x33b7fe){return _0x4abf06(_0x267743,_0x191d62,_0x13a08e,_0x8e90d3,_0x336cf8,_0x33b7fe);},'inItf':_0x59aaad(0x1c0),'fyRDY':_0x59aaad(0x19d),'SGmDD':function(_0x18db97,_0xa617cb,_0x4c50e0,_0xe2bf92,_0x583d8c,_0xed29f0,_0x265ec6){return _0x18db97(_0xa617cb,_0x4c50e0,_0xe2bf92,_0x583d8c,_0xed29f0,_0x265ec6);},'IpjvU':_0x59aaad(0x197),'NhtiI':_0x59aaad(0x18a),'wyFEy':_0x59aaad(0x1ae),'WVYyo':function(_0x23699d,_0x3f4b53,_0x5d4719,_0x37b258){return _0x23699d(_0x3f4b53,_0x5d4719,_0x37b258);},'CaWMa':function(_0x4f64ab,_0x2b2465,_0x3a018b){return _0x4f64ab(_0x2b2465,_0x3a018b);},'kVmRt':'Grid\x20stoppped.','LvVAl':function(_0x252905,_0x6cbefa){return _0x252905===_0x6cbefa;},'YWXoJ':_0x59aaad(0x17e),'CfQtw':_0x59aaad(0x1c5),'NpJun':function(_0x12b46b,_0x1f6d09,_0x3a2a3d,_0x3de154,_0x15ce54,_0x28ef18,_0x29f366){return _0x12b46b(_0x1f6d09,_0x3a2a3d,_0x3de154,_0x15ce54,_0x28ef18,_0x29f366);},'jZYlV':_0x59aaad(0x18f),'ZEidY':'server-error'};let _0x259eb6;try{!_0x4e4c10[_0x59aaad(0x18b)]&&(logger[_0x59aaad(0x188)](_0x586a5[_0x59aaad(0x1b4)]),process[_0x59aaad(0x1ad)](0x1));!fs[_0x59aaad(0x1b6)](_0x586a5['AgwMr'](getCredentialsPath))&&(logger[_0x59aaad(0x188)](_0x586a5[_0x59aaad(0x17d)]),await _0x586a5[_0x59aaad(0x1a2)](sendInstrumentationEvent,_0x4e4c10,_0x586a5[_0x59aaad(0x1c4)],messageTypes[_0x59aaad(0x19b)],_0x586a5[_0x59aaad(0x1cf)],null,_0x4e4c10),process[_0x59aaad(0x1ad)](0x1));logger[_0x59aaad(0x1da)](_0x59aaad(0x1c7)+_0x4e4c10[_0x59aaad(0x18b)]),await _0x586a5['SGmDD'](sendInstrumentationEvent,_0x4e4c10,_0x586a5['inItf'],messageTypes['INFO'],null,null,_0x4e4c10);const _0x4cf23c=JSON[_0x59aaad(0x1a8)](fs[_0x59aaad(0x1c2)](_0x586a5[_0x59aaad(0x198)](getCredentialsPath)));global_registry[_0x59aaad(0x1d9)]=_0x4cf23c[_0x59aaad(0x1db)][_0x59aaad(0x1c6)],global_registry[_0x59aaad(0x1d8)]=_0x4cf23c[_0x59aaad(0x1db)][_0x59aaad(0x190)];const _0x2eb3b0=WS_ENDPOINT[_0x59aaad(0x1dc)](_0x586a5[_0x59aaad(0x189)],_0x4cf23c[_0x59aaad(0x1db)][_0x59aaad(0x1c6)])[_0x59aaad(0x1dc)](_0x586a5[_0x59aaad(0x18c)],_0x4cf23c[_0x59aaad(0x1db)][_0x59aaad(0x190)]),_0x1b6f96={};_0x1b6f96[_0x59aaad(0x19a)]=ws,_0x1b6f96['connectionTimeout']=0x36ee80,_0x259eb6=new ReconnectingWebSocket(_0x2eb3b0,[],_0x1b6f96),logger[_0x59aaad(0x1a6)](_0x586a5[_0x59aaad(0x1b5)]),webSocketUtils[_0x59aaad(0x1d4)](_0x259eb6,_0x4e4c10[_0x59aaad(0x193)],_0x4e4c10[_0x59aaad(0x190)]);const [_0x34cf8b,_0xe081cb]=await _0x586a5['WVYyo'](getGridDetails,_0x4cf23c[_0x59aaad(0x1db)]['username'],_0x4cf23c[_0x59aaad(0x1db)][_0x59aaad(0x190)],_0x4e4c10[_0x59aaad(0x18b)]);if(_0xe081cb){const _0x197109=_0xe081cb[_0x59aaad(0x1da)];global_registry['cloudProvider']=_0x197109[_0x59aaad(0x1b9)],global_registry[_0x59aaad(0x1a9)]=_0x197109[_0x59aaad(0x1d7)],global_registry[_0x59aaad(0x184)]=_0x197109[_0x59aaad(0x184)];const _0x763ad8=await _0x586a5[_0x59aaad(0x1a2)](getCloudProviderObject,_0x197109[_0x59aaad(0x1b9)],_0x197109[_0x59aaad(0x184)],_0x197109['name'],_0x259eb6,webSocketUtils,_0x4e4c10),[_0xa811ce,_0x51fe58,_0x281e26,_0x41fb13,_0x79162b,_0x59d441]=await _0x586a5['CaWMa'](createK8sClient,_0x763ad8,_0x4e4c10[_0x59aaad(0x1b7)]);await _0x586a5[_0x59aaad(0x1cc)](scaleDownHubDeployment,_0x51fe58,_0x197109[_0x59aaad(0x194)]),logger[_0x59aaad(0x1da)](_0x586a5[_0x59aaad(0x1d6)]),process[_0x59aaad(0x1ad)](0x0);}_0x586a5[_0x59aaad(0x1ab)](_0x34cf8b[_0x59aaad(0x186)],0x191)&&(logger['error'](_0x586a5[_0x59aaad(0x1b2)]),await _0x586a5['SGmDD'](sendInstrumentationEvent,_0x4e4c10,_0x586a5[_0x59aaad(0x1c4)],messageTypes[_0x59aaad(0x19b)],_0x586a5[_0x59aaad(0x195)],null,_0x4e4c10),process[_0x59aaad(0x1ad)](0x1)),_0x586a5[_0x59aaad(0x1ab)](_0x34cf8b[_0x59aaad(0x186)],0x190)&&(logger['error'](JSON[_0x59aaad(0x1a8)](_0x34cf8b['body'])[_0x59aaad(0x199)]),await _0x586a5[_0x59aaad(0x1bf)](sendInstrumentationEvent,_0x4e4c10,_0x586a5[_0x59aaad(0x1c4)],messageTypes[_0x59aaad(0x19b)],_0x586a5[_0x59aaad(0x1c3)],null,_0x4e4c10),process[_0x59aaad(0x1ad)](0x1)),logger[_0x59aaad(0x188)](_0x59aaad(0x1d2)+JSON[_0x59aaad(0x19c)](_0x34cf8b)),await _0x586a5['IWfGI'](sendInstrumentationEvent,_0x4e4c10,_0x586a5['inItf'],messageTypes[_0x59aaad(0x19b)],_0x586a5[_0x59aaad(0x1d0)],_0x34cf8b,_0x4e4c10),process[_0x59aaad(0x1ad)](0x1);}catch(_0x5255d4){const _0x3434b7=_0x59aaad(0x191)+_0x5255d4+'\x20\x0a'+JSON[_0x59aaad(0x19c)](_0x5255d4[_0x59aaad(0x1c9)])+'\x20';logger['error'](_0x3434b7),process[_0x59aaad(0x1ad)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x3cbc87=a22_0x5b5d;(function(_0x27f9a,_0x252a88){const _0x129b88=a22_0x5b5d,_0x3cabde=_0x27f9a();while(!![]){try{const _0x591fea=-parseInt(_0x129b88(0x1e3))/0x1*(-parseInt(_0x129b88(0x1c9))/0x2)+parseInt(_0x129b88(0x215))/0x3+-parseInt(_0x129b88(0x1c2))/0x4*(-parseInt(_0x129b88(0x1e2))/0x5)+parseInt(_0x129b88(0x1e1))/0x6+-parseInt(_0x129b88(0x1e7))/0x7*(parseInt(_0x129b88(0x1ff))/0x8)+parseInt(_0x129b88(0x1f5))/0x9*(-parseInt(_0x129b88(0x213))/0xa)+-parseInt(_0x129b88(0x1c5))/0xb;if(_0x591fea===_0x252a88)break;else _0x3cabde['push'](_0x3cabde['shift']());}catch(_0x5277dd){_0x3cabde['push'](_0x3cabde['shift']());}}}(a22_0x572c,0x7252b),require(a22_0x3cbc87(0x1d0))[a22_0x3cbc87(0x1af)](),exports[a22_0x3cbc87(0x1ef)]=process[a22_0x3cbc87(0x20e)][a22_0x3cbc87(0x1ef)]||a22_0x3cbc87(0x1cc),exports[a22_0x3cbc87(0x1be)]=process['env'][a22_0x3cbc87(0x1be)]||a22_0x3cbc87(0x203),exports[a22_0x3cbc87(0x208)]=process[a22_0x3cbc87(0x20e)]['AG_API_URL']||a22_0x3cbc87(0x1d4),exports[a22_0x3cbc87(0x1b4)]=a22_0x3cbc87(0x1e9)+this[a22_0x3cbc87(0x208)]+a22_0x3cbc87(0x1fb),exports['CP_CONFIG_FILE']=a22_0x3cbc87(0x1cf),exports['IAM_USER_NAME']=a22_0x3cbc87(0x1d3),exports[a22_0x3cbc87(0x1b3)]=a22_0x3cbc87(0x1b8),exports['AWS']=a22_0x3cbc87(0x1a9),exports['CLUSTER_DEP_STACK_NAME']='BSTACK-ATS-CLUSTER',exports[a22_0x3cbc87(0x1f8)]=a22_0x3cbc87(0x1ad),exports[a22_0x3cbc87(0x1f9)]=a22_0x3cbc87(0x1d5),exports[a22_0x3cbc87(0x1b7)]=a22_0x3cbc87(0x1ca),exports[a22_0x3cbc87(0x1ac)]=a22_0x3cbc87(0x1b9),exports[a22_0x3cbc87(0x1c6)]=a22_0x3cbc87(0x1df),exports[a22_0x3cbc87(0x1fd)]=[this['AWS'],this[a22_0x3cbc87(0x1ac)],this[a22_0x3cbc87(0x1c6)]]);const a22_0xd9883a={};a22_0xd9883a[a22_0x3cbc87(0x1d7)]=a22_0x3cbc87(0x1e0),a22_0xd9883a[a22_0x3cbc87(0x1ec)]=a22_0x3cbc87(0x1c4);const a22_0x54125c={};a22_0x54125c['Key']=a22_0x3cbc87(0x1cb),a22_0x54125c[a22_0x3cbc87(0x1ec)]=a22_0x3cbc87(0x1ae);const common_hst_tags_list=[a22_0xd9883a,a22_0x54125c];if(process['env'][a22_0x3cbc87(0x1b5)]){const parsedTags=process[a22_0x3cbc87(0x20e)][a22_0x3cbc87(0x1b5)]['split'](',');parsedTags[a22_0x3cbc87(0x201)](_0x559dc7=>{const _0x3ca32d=a22_0x3cbc87,_0x1c1a91=_0x559dc7[_0x3ca32d(0x1cd)](':'),_0x1920d4={};_0x1920d4[_0x3ca32d(0x1d7)]=_0x1c1a91[0x0],_0x1920d4[_0x3ca32d(0x1ec)]=_0x1c1a91[0x1],common_hst_tags_list[_0x3ca32d(0x1f3)](_0x1920d4);});}exports[a22_0x3cbc87(0x1ab)]=common_hst_tags_list;const a22_0x106128={};a22_0x106128[a22_0x3cbc87(0x1e0)]=a22_0x3cbc87(0x1c4),a22_0x106128[a22_0x3cbc87(0x1cb)]='BrowserStack-Automate-TurboScale',exports[a22_0x3cbc87(0x214)]=a22_0x106128,exports[a22_0x3cbc87(0x1b2)]=[this[a22_0x3cbc87(0x1dc)]];const a22_0x280d4a={};function a22_0x5b5d(_0x29bf71,_0x5d2698){const _0x572ce=a22_0x572c();return a22_0x5b5d=function(_0x5b5dbd,_0x56643e){_0x5b5dbd=_0x5b5dbd-0x1a8;let _0x5dff02=_0x572ce[_0x5b5dbd];return _0x5dff02;},a22_0x5b5d(_0x29bf71,_0x5d2698);}a22_0x280d4a[a22_0x3cbc87(0x1f2)]=a22_0x3cbc87(0x1fa),a22_0x280d4a[a22_0x3cbc87(0x1c0)]=a22_0x3cbc87(0x1ea),a22_0x280d4a[a22_0x3cbc87(0x1ed)]=a22_0x3cbc87(0x1fe),a22_0x280d4a[a22_0x3cbc87(0x200)]=a22_0x3cbc87(0x1d8),a22_0x280d4a[a22_0x3cbc87(0x1d1)]=a22_0x3cbc87(0x209),exports[a22_0x3cbc87(0x212)]=a22_0x280d4a,exports[a22_0x3cbc87(0x216)]={},exports[a22_0x3cbc87(0x1f0)]=a22_0x3cbc87(0x1e4);const a22_0x2863f5={};a22_0x2863f5[a22_0x3cbc87(0x1c7)]=a22_0x3cbc87(0x1c1)+this[a22_0x3cbc87(0x1f0)],a22_0x2863f5[a22_0x3cbc87(0x1ba)]=a22_0x3cbc87(0x207)+this[a22_0x3cbc87(0x1f0)],a22_0x2863f5['configure']=a22_0x3cbc87(0x211)+this[a22_0x3cbc87(0x1f0)],a22_0x2863f5[a22_0x3cbc87(0x20c)]=a22_0x3cbc87(0x202)+this[a22_0x3cbc87(0x1f0)],a22_0x2863f5[a22_0x3cbc87(0x1d6)]={},a22_0x2863f5[a22_0x3cbc87(0x1f6)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x3cbc87(0x1f0)],a22_0x2863f5['connect']=a22_0x3cbc87(0x20f)+this['LINK_MESSAGE'],a22_0x2863f5[a22_0x3cbc87(0x206)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x3cbc87(0x1f0)],a22_0x2863f5[a22_0x3cbc87(0x1aa)]=a22_0x3cbc87(0x1a8)+this[a22_0x3cbc87(0x1f0)],a22_0x2863f5['pre_check']=a22_0x3cbc87(0x1de)+this[a22_0x3cbc87(0x1f0)],a22_0x2863f5[a22_0x3cbc87(0x1d6)]['root']=a22_0x3cbc87(0x1f1)+this['LINK_MESSAGE'],a22_0x2863f5[a22_0x3cbc87(0x1d6)][a22_0x3cbc87(0x205)]=a22_0x3cbc87(0x1eb)+this['LINK_MESSAGE'],a22_0x2863f5[a22_0x3cbc87(0x1d6)][a22_0x3cbc87(0x1b0)]=a22_0x3cbc87(0x1f4)+this[a22_0x3cbc87(0x1f0)],exports[a22_0x3cbc87(0x210)]=a22_0x2863f5,exports[a22_0x3cbc87(0x1ce)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x4f22ff={};a22_0x4f22ff['SUCCESS']=a22_0x3cbc87(0x1dd),a22_0x4f22ff[a22_0x3cbc87(0x1c3)]=a22_0x3cbc87(0x204),a22_0x4f22ff[a22_0x3cbc87(0x20a)]=a22_0x3cbc87(0x20b),a22_0x4f22ff[a22_0x3cbc87(0x1da)]=a22_0x3cbc87(0x1f7),a22_0x4f22ff[a22_0x3cbc87(0x1bb)]='unknown',a22_0x4f22ff['NULL']=null,exports[a22_0x3cbc87(0x1fc)]=a22_0x4f22ff,exports[a22_0x3cbc87(0x1d9)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x3cbc87(0x1c8)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x3cbc87(0x1bf);const a22_0x4eca8b={};a22_0x4eca8b[a22_0x3cbc87(0x1b1)]=a22_0x3cbc87(0x20d);const a22_0x260133={};a22_0x260133[a22_0x3cbc87(0x1db)]=a22_0x4eca8b,exports[a22_0x3cbc87(0x1bd)]=a22_0x260133,exports[a22_0x3cbc87(0x1e6)]=a22_0x3cbc87(0x1ee);const a22_0x3f1092={};a22_0x3f1092[a22_0x3cbc87(0x1bc)]=a22_0x3cbc87(0x217),a22_0x3f1092[a22_0x3cbc87(0x1d2)]=a22_0x3cbc87(0x1a9),a22_0x3f1092[a22_0x3cbc87(0x1b6)]=a22_0x3cbc87(0x1e8),exports[a22_0x3cbc87(0x1e5)]=a22_0x3f1092;function a22_0x572c(){const _0x5ebb99=['ALL_SUPPORTED_CLOUD_PROVIDERS','gridUrl','6745432XCKJJV','CLI_RUN_STARTED','forEach','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','api.browserstack.com','error','grid','start','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','AG_API_URL','cliRunFinished','INFO','info','create','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','env','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','HELP_HEADER_MESSAGE','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','WS_EVENTS','28780bEBJRP','HST_CLUSTER_TAGS','2733744CaNCel','global_registry','high-scale-grid-cluster','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','aws','stop','COMMON_HST_TAGS','AZURE','BSTACK-ATS-CLUSTER-AUTOSCALER','BrowserStack-Automate-TurboScale','config','gridProfile','grid-profile','SUPPORTED_CLOUD_PROVIDERS','DEFAULT_GRID_NAME','WS_ENDPOINT','TURBOSCALE_CUSTOM_TAGS','REGION','TURBOSCALE_DEPLOYMENT','high-scale-grid','azure','init','UNKNOWN','CLUSTER','MessageDescription','BS_API_URL','[REDACTED]','RESOURCES','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','777236jTNFdt','ERROR','BrowserStack','7403330gEjZxi','GCP','root','RAW_ARGS_REGEX','675714AVCoBG','browserstack-turboscale-grid','browserstack:service','grid.browserstack.com','split','HELP_FOOTER_MESSAGE','credentials','dotenv','CLI_RUN_FINISHED','CLOUD_PROVIDER','BrowserStackIAMUser','grid-api.browserstack.com','BSTACK-ATS-CLUSTER-HUB-HA','list','Key','cliRunStarted','CLI_ARGS_REGEX','WARNING','pre-check','AWS','success','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','gcp','browserstack:managedBy','3150606QbYmaW','20wZmwxj','1LwnHAN','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','DEFAULT_CLUSTER_DETAILS','TRIAL_GRID_URL','7JOuXcq','us-east-1','wss://','resourceInfo','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','Value','GRID_URL','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','DASHBOARD_ENDPOINT','LINK_MESSAGE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','LOG','push','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','1773YRaurs','delete','warning','CLUSTER_AUTOSCALER_STACK_NAME','CLUSTER_HUB_HA_STACK_NAME','log','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','messageTypes'];a22_0x572c=function(){return _0x5ebb99;};return a22_0x572c();}
|
package/ats/src/config/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a23_0x58ab30=a23_0x5626;(function(_0x50b1d0,_0x3f9bcf){const _0x20c06a=a23_0x5626,_0x147dbc=_0x50b1d0();while(!![]){try{const _0x17fe4f=-parseInt(_0x20c06a(0xbf))/0x1*(parseInt(_0x20c06a(0xb7))/0x2)+-parseInt(_0x20c06a(0xac))/0x3+-parseInt(_0x20c06a(0xa0))/0x4*(-parseInt(_0x20c06a(0xa8))/0x5)+-parseInt(_0x20c06a(0xb6))/0x6*(-parseInt(_0x20c06a(0xb8))/0x7)+-parseInt(_0x20c06a(0xbe))/0x8*(-parseInt(_0x20c06a(0xae))/0x9)+parseInt(_0x20c06a(0xab))/0xa+-parseInt(_0x20c06a(0xad))/0xb;if(_0x17fe4f===_0x3f9bcf)break;else _0x147dbc['push'](_0x147dbc['shift']());}catch(_0x495f9c){_0x147dbc['push'](_0x147dbc['shift']());}}}(a23_0x9367,0xc67d1));const winston=require(a23_0x58ab30(0xbd)),fs=require('fs'),path=require(a23_0x58ab30(0xa9)),logDir='log';!fs[a23_0x58ab30(0xa3)](logDir)&&fs[a23_0x58ab30(0xb2)](logDir);function a23_0x5626(_0x50b536,_0x3ba061){const _0x936709=a23_0x9367();return a23_0x5626=function(_0x56263b,_0xdf8df){_0x56263b=_0x56263b-0xa0;let _0x36f08c=_0x936709[_0x56263b];return _0x36f08c;},a23_0x5626(_0x50b536,_0x3ba061);}const a23_0x11d44f={};a23_0x11d44f[a23_0x58ab30(0xb3)]=a23_0x58ab30(0xb4);const a23_0x1d72a5={};a23_0x1d72a5[a23_0x58ab30(0xa6)]=!![];const a23_0x364c22={};a23_0x364c22[a23_0x58ab30(0xb0)]=a23_0x58ab30(0xbc),exports[a23_0x58ab30(0xc0)]=new winston['createLogger']({'format':winston[a23_0x58ab30(0xb3)][a23_0x58ab30(0xb5)](winston[a23_0x58ab30(0xb3)][a23_0x58ab30(0xa2)](a23_0x11d44f),winston[a23_0x58ab30(0xb3)][a23_0x58ab30(0xaf)](a23_0x1d72a5),winston[a23_0x58ab30(0xb3)][a23_0x58ab30(0xb9)](_0x2f6384=>_0x2f6384[a23_0x58ab30(0xa2)]+'\x20-\x20'+_0x2f6384[a23_0x58ab30(0xa6)]+':\x20'+_0x2f6384[a23_0x58ab30(0xbb)])),'transports':[new winston['transports'][(a23_0x58ab30(0xa4))](a23_0x364c22),new winston[(a23_0x58ab30(0xba))][(a23_0x58ab30(0xc1))]({'filename':path[a23_0x58ab30(0xa1)](logDir,a23_0x58ab30(0xb1)),'level':a23_0x58ab30(0xa7)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x58ab30(0xba))]['File']({'filename':path[a23_0x58ab30(0xa1)](logDir,'usage.log'),'level':a23_0x58ab30(0xa7)})]};exports[a23_0x58ab30(0xa5)]=new winston[(a23_0x58ab30(0xaa))](winstonFileLoggerParams);function a23_0x9367(){const _0x382b5d=['winston','4632EuXPWy','2755KSELqU','logger','File','23012AvSmlh','join','timestamp','existsSync','Console','fileLogger','level','debug','1145cshHnc','path','createLogger','13662240gouANM','690090mcBWGM','23351405LatCmT','6147ekGaHL','colorize','name','events.log','mkdirSync','format','YYYY-MM-DD\x20HH:mm:ss','combine','7962iCzVXZ','778AiPdtr','6111rhJUQc','printf','transports','message','console.info'];a23_0x9367=function(){return _0x382b5d;};return a23_0x9367();}
|
package/ats/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';function a24_0x1554(_0x4a2b63,_0x2d6eb2){const _0x33c315=a24_0x33c3();return a24_0x1554=function(_0x155428,_0x5bc403){_0x155428=_0x155428-0x131;let _0x47d0d3=_0x33c315[_0x155428];return _0x47d0d3;},a24_0x1554(_0x4a2b63,_0x2d6eb2);}function a24_0x33c3(){const _0x3b29cc=['HcMJq','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','usage','root','commands','demandCommand','ESObZ','1368744YOAoYp','1646372TNUfXC','epilogue','107100YMRRXl','14389536DDPPyt','1568773FzKiFt','814604cRGjsh','help','commandDir','7045575sysgzg','60eJMEtT'];a24_0x33c3=function(){return _0x3b29cc;};return a24_0x33c3();}const a24_0x3e0caa=a24_0x1554;(function(_0x18084a,_0x3ff421){const _0x4a051a=a24_0x1554,_0xda7e31=_0x18084a();while(!![]){try{const _0x517093=parseInt(_0x4a051a(0x13d))/0x1+parseInt(_0x4a051a(0x13b))/0x2+-parseInt(_0x4a051a(0x138))/0x3+parseInt(_0x4a051a(0x139))/0x4+-parseInt(_0x4a051a(0x141))/0x5+parseInt(_0x4a051a(0x142))/0x6*(-parseInt(_0x4a051a(0x13e))/0x7)+parseInt(_0x4a051a(0x13c))/0x8;if(_0x517093===_0x3ff421)break;else _0xda7e31['push'](_0xda7e31['shift']());}catch(_0x4a3ceb){_0xda7e31['push'](_0xda7e31['shift']());}}}(a24_0x33c3,0xc42c5));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process['env'][a24_0x3e0caa(0x132)]=0x1;function run(_0x22895c){const _0x4c963f=a24_0x3e0caa,_0x45b58e={};_0x45b58e['ESObZ']=_0x4c963f(0x135),_0x45b58e[_0x4c963f(0x131)]=_0x4c963f(0x13f);const _0x323d2f=_0x45b58e;_0x22895c[_0x4c963f(0x133)](HELP_HEADER_MESSAGE[_0x4c963f(0x134)])[_0x4c963f(0x140)](_0x323d2f[_0x4c963f(0x137)])[_0x4c963f(0x136)]()[_0x4c963f(0x13f)](_0x323d2f[_0x4c963f(0x131)])[_0x4c963f(0x13a)](HELP_FOOTER_MESSAGE);}module['exports']=run;
|