browserstack-node-sdk 1.42.7 → 1.43.0
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/cucumber-sessionDetails.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/playwright-patcher.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/customSequencer.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/load/index.js +1 -1
- package/src/bin/load/loadUtils.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/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.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/accessibilityRetryHelper.js +1 -0
- 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/classLogger.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 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.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/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.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
|
-
function
|
|
1
|
+
function a15_0x37ec(_0x39fdfd,_0x1c8f5d){const _0x2ff1e4=a15_0x2ff1();return a15_0x37ec=function(_0x37ec09,_0x16db42){_0x37ec09=_0x37ec09-0x147;let _0x25040a=_0x2ff1e4[_0x37ec09];return _0x25040a;},a15_0x37ec(_0x39fdfd,_0x1c8f5d);}function a15_0x2ff1(){const _0x6d8d2e=['builder','/packages/cli/get-all-grids','server-error','gddfD','queued','sBfBK','unknown-error','DgXgv','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../utils/instrumentationUtils','push','../../utils/utilityMethods','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','grids','username','EMEGF','grid-name','YgwrT','1951610ugAIcA','desc','https://','uuid','allGrids','name','grid','115BApDJz','running','CGjWQ','error','vUQCo','DsIvx','list-grids-called','../../config/constants','existsSync','argv','type','command','2123114nUDjQH','EXiCc','195032vaHXZx','5201778iUItDN','hpjNV','list','CDCoZ','524570vftQhK','tPlqs','3kTSApH','epilogue','parse','description','handler','66xjUNxS','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','stack','help','cHaoM','WiOsx','4122672YEzZrg','1481678bqVUre','body','Browserstack','readFileSync','qzUoz','log','stringify','unauthorised','OhFjW','statusCode','boolean','all-grids','ERROR','bstackUsername','Failed\x20to\x20list\x20resources!\x20Error:\x20','ETKkn','cluster-name','password','exit','\x0aFound\x20the\x20following\x20grids:\x0a','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','24MMiVvs','poAPv','GET','clusterName','uklQn','got','9UmgBio','/packages/cli/get-grids'];a15_0x2ff1=function(){return _0x6d8d2e;};return a15_0x2ff1();}const a15_0xbafc42=a15_0x37ec;(function(_0xe363a7,_0x1d78f5){const _0x64f705=a15_0x37ec,_0x577611=_0xe363a7();while(!![]){try{const _0x4085c2=parseInt(_0x64f705(0x181))/0x1+-parseInt(_0x64f705(0x18f))/0x2*(parseInt(_0x64f705(0x183))/0x3)+parseInt(_0x64f705(0x17c))/0x4*(-parseInt(_0x64f705(0x16e))/0x5)+-parseInt(_0x64f705(0x17d))/0x6+-parseInt(_0x64f705(0x17a))/0x7*(-parseInt(_0x64f705(0x14d))/0x8)+-parseInt(_0x64f705(0x153))/0x9*(parseInt(_0x64f705(0x167))/0xa)+parseInt(_0x64f705(0x188))/0xb*(parseInt(_0x64f705(0x18e))/0xc);if(_0x4085c2===_0x1d78f5)break;else _0x577611['push'](_0x577611['shift']());}catch(_0x465a72){_0x577611['push'](_0x577611['shift']());}}}(a15_0x2ff1,0x8b817));const fs=require('fs'),got=require(a15_0xbafc42(0x152)),{table}=require('table'),{v4:uuidv4}=require(a15_0xbafc42(0x16a)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0xbafc42(0x175)),{getCredentialsPath,getAuthHeader}=require(a15_0xbafc42(0x160)),{sendInstrumentationEvent}=require(a15_0xbafc42(0x15e));exports[a15_0xbafc42(0x179)]=a15_0xbafc42(0x162),exports[a15_0xbafc42(0x168)]=a15_0xbafc42(0x14c),exports[a15_0xbafc42(0x155)]=function(_0xa2de90){const _0x532bfe=a15_0xbafc42,_0x21a60d={};_0x21a60d['ZEkwj']='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x21a60d[_0x532bfe(0x151)]=_0x532bfe(0x199),_0x21a60d[_0x532bfe(0x172)]=_0x532bfe(0x18b);const _0x471f72=_0x21a60d,_0x4dffdf={};_0x4dffdf[_0x532bfe(0x186)]=_0x471f72['ZEkwj'],_0x4dffdf[_0x532bfe(0x178)]=_0x471f72[_0x532bfe(0x151)];const _0x2ecbe8={};return _0x2ecbe8[_0x532bfe(0x19a)]=_0x4dffdf,_0xa2de90['usage'](HELP_HEADER_MESSAGE[_0x532bfe(0x17f)][_0x532bfe(0x16d)])[_0x532bfe(0x184)](HELP_FOOTER_MESSAGE)['options'](_0x2ecbe8)[_0x532bfe(0x18b)](_0x471f72[_0x532bfe(0x172)])[_0x532bfe(0x177)];},exports[a15_0xbafc42(0x187)]=async function(_0x44e458){const _0x1deccd=a15_0xbafc42,_0x28f23d={'WiOsx':function(_0x56e646){return _0x56e646();},'gddfD':function(_0x9b9773){return _0x9b9773();},'ruYbV':_0x1deccd(0x161),'EXiCc':function(_0x43e502,_0x42de44,_0x4ec611,_0x509173,_0x3004a5,_0x5a1469,_0x248ef3){return _0x43e502(_0x42de44,_0x4ec611,_0x509173,_0x3004a5,_0x5a1469,_0x248ef3);},'DgXgv':_0x1deccd(0x174),'poAPv':'init-not-called','hpjNV':_0x1deccd(0x14f),'ETKkn':function(_0x10e2a2,_0x5c12fa,_0xc5eedb){return _0x10e2a2(_0x5c12fa,_0xc5eedb);},'OhFjW':function(_0x149a96,_0x45f920,_0x579c46,_0x3189c3,_0x1b9446,_0x155ba2,_0x273a65){return _0x149a96(_0x45f920,_0x579c46,_0x3189c3,_0x1b9446,_0x155ba2,_0x273a65);},'mAHTo':function(_0x17f18f,_0x10d9b0,_0x723a51){return _0x17f18f(_0x10d9b0,_0x723a51);},'DsIvx':function(_0x300f6c,_0x3992f8){return _0x300f6c!==_0x3992f8;},'sBfBK':function(_0x5ab3fe,_0x56846f){return _0x5ab3fe===_0x56846f;},'xjuKa':_0x1deccd(0x14b),'qzUoz':'grid-id','YgwrT':_0x1deccd(0x165),'cHaoM':'status','CDCoZ':_0x1deccd(0x16f),'NjLYG':_0x1deccd(0x159),'tPlqs':_0x1deccd(0x148),'gLUQi':function(_0x11f42e,_0x452c1c){return _0x11f42e(_0x452c1c);},'RwVpd':function(_0x19d50f,_0x1bc170){return _0x19d50f===_0x1bc170;},'CGjWQ':_0x1deccd(0x15d),'whovb':_0x1deccd(0x196),'UVYMQ':function(_0x489caf,_0x6c1515,_0x1296fa,_0x4a99c4,_0x4b2115,_0x20e395,_0x2c6ea8){return _0x489caf(_0x6c1515,_0x1296fa,_0x4a99c4,_0x4b2115,_0x20e395,_0x2c6ea8);},'NhCtt':_0x1deccd(0x157),'EMEGF':_0x1deccd(0x15b)};try{global_registry['requestId']=_0x28f23d[_0x1deccd(0x18d)](uuidv4);!fs[_0x1deccd(0x176)](_0x28f23d[_0x1deccd(0x158)](getCredentialsPath))&&(console[_0x1deccd(0x171)](_0x28f23d['ruYbV']),await _0x28f23d[_0x1deccd(0x17b)](sendInstrumentationEvent,_0x44e458,_0x28f23d[_0x1deccd(0x15c)],messageTypes[_0x1deccd(0x19b)],_0x28f23d[_0x1deccd(0x14e)],null,_0x44e458),process[_0x1deccd(0x14a)](0x1));const _0x478462=JSON[_0x1deccd(0x185)](fs[_0x1deccd(0x192)](_0x28f23d[_0x1deccd(0x18d)](getCredentialsPath)));let _0x1449e1=_0x1deccd(0x169)+AG_API_URL+_0x1deccd(0x154);_0x44e458[_0x1deccd(0x16b)]&&(_0x1449e1=_0x1deccd(0x169)+AG_API_URL+_0x1deccd(0x156));const _0x295266={'method':_0x28f23d[_0x1deccd(0x17e)],'headers':_0x28f23d[_0x1deccd(0x147)](getAuthHeader,_0x478462[_0x1deccd(0x191)][_0x1deccd(0x163)],_0x478462[_0x1deccd(0x191)][_0x1deccd(0x149)]),'throwHttpErrors':![]};global_registry[_0x1deccd(0x19c)]=_0x478462[_0x1deccd(0x191)][_0x1deccd(0x163)],global_registry['bstackAccesskey']=_0x478462[_0x1deccd(0x191)][_0x1deccd(0x149)],_0x28f23d[_0x1deccd(0x197)](sendInstrumentationEvent,_0x44e458,_0x28f23d['DgXgv'],messageTypes['INFO'],null,null,_0x44e458);const _0x37e0a7=await _0x28f23d['mAHTo'](got,_0x1449e1,_0x295266);if(_0x28f23d[_0x1deccd(0x173)](_0x37e0a7,null)&&_0x28f23d[_0x1deccd(0x173)](_0x37e0a7,undefined)&&_0x28f23d[_0x1deccd(0x15a)](_0x37e0a7[_0x1deccd(0x198)],0xc8)){const _0x3c9741=JSON[_0x1deccd(0x185)](_0x37e0a7[_0x1deccd(0x190)]);console[_0x1deccd(0x194)](_0x28f23d['xjuKa']);const _0x13618b=[];_0x13618b[_0x1deccd(0x15f)]([_0x28f23d[_0x1deccd(0x193)],_0x28f23d[_0x1deccd(0x166)],_0x28f23d[_0x1deccd(0x18c)],_0x28f23d[_0x1deccd(0x180)],_0x28f23d['NjLYG'],_0x28f23d[_0x1deccd(0x182)]]),_0x3c9741['forEach'](_0x1f336d=>{const _0x5d6d81=_0x1deccd;_0x13618b[_0x5d6d81(0x15f)]([_0x1f336d['id'],_0x1f336d[_0x5d6d81(0x16c)],_0x1f336d['status'],_0x1f336d['running'],_0x1f336d[_0x5d6d81(0x159)],_0x1f336d[_0x5d6d81(0x150)]]);}),console[_0x1deccd(0x194)](_0x28f23d['gLUQi'](table,_0x13618b)),process[_0x1deccd(0x14a)](0x0);}_0x28f23d['RwVpd'](_0x37e0a7['statusCode'],0x191)&&(console[_0x1deccd(0x171)](_0x28f23d[_0x1deccd(0x170)]),await _0x28f23d['EXiCc'](sendInstrumentationEvent,_0x44e458,_0x28f23d[_0x1deccd(0x15c)],messageTypes[_0x1deccd(0x19b)],_0x28f23d['whovb'],null,_0x44e458),process[_0x1deccd(0x14a)](0x1)),console[_0x1deccd(0x171)](_0x1deccd(0x189)+JSON[_0x1deccd(0x195)](_0x37e0a7)),await _0x28f23d['UVYMQ'](sendInstrumentationEvent,_0x44e458,_0x28f23d[_0x1deccd(0x15c)],messageTypes[_0x1deccd(0x19b)],_0x28f23d['NhCtt'],_0x37e0a7,_0x44e458),process['exit'](0x1);}catch(_0x153c6f){console[_0x1deccd(0x171)](_0x1deccd(0x19d)+_0x153c6f[_0x1deccd(0x18a)]),await _0x28f23d[_0x1deccd(0x197)](sendInstrumentationEvent,_0x44e458,_0x28f23d[_0x1deccd(0x15c)],messageTypes[_0x1deccd(0x19b)],_0x28f23d[_0x1deccd(0x164)],_0x153c6f,_0x44e458),process[_0x1deccd(0x14a)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a16_0x39c2(_0x2b4016,_0x10b7b7){const _0x29a1fa=a16_0x29a1();return a16_0x39c2=function(_0x39c296,_0x54bde4){_0x39c296=_0x39c296-0x18f;let _0x1f7c4a=_0x29a1fa[_0x39c296];return _0x1f7c4a;},a16_0x39c2(_0x2b4016,_0x10b7b7);}const a16_0x23bb7c=a16_0x39c2;(function(_0x3890f1,_0x268ead){const _0xa9a329=a16_0x39c2,_0xa4907c=_0x3890f1();while(!![]){try{const _0x2aefd8=-parseInt(_0xa9a329(0x1a1))/0x1*(parseInt(_0xa9a329(0x198))/0x2)+-parseInt(_0xa9a329(0x193))/0x3+-parseInt(_0xa9a329(0x1a6))/0x4*(parseInt(_0xa9a329(0x19c))/0x5)+parseInt(_0xa9a329(0x192))/0x6*(parseInt(_0xa9a329(0x190))/0x7)+-parseInt(_0xa9a329(0x19b))/0x8*(parseInt(_0xa9a329(0x1ab))/0x9)+parseInt(_0xa9a329(0x194))/0xa*(-parseInt(_0xa9a329(0x19f))/0xb)+parseInt(_0xa9a329(0x1a0))/0xc*(parseInt(_0xa9a329(0x1a4))/0xd);if(_0x2aefd8===_0x268ead)break;else _0xa4907c['push'](_0xa4907c['shift']());}catch(_0x55508c){_0xa4907c['push'](_0xa4907c['shift']());}}}(a16_0x29a1,0x8b963));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x23bb7c(0x19d));function a16_0x29a1(){const _0x3d7279=['39504127yBBHwT','pre-check','7852vltKbW','help','commandDir','precheck_commands','demandCommand','54mCBvHj','pre_check','7tjDXVr','recommendCommands','4436970wRfyHZ','1325586TYRElE','1730vPHJRl','NBzPn','strict','handler','70yRIRQS','builder','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','950952qTyNOJ','2395qQilxg','../config/constants','epilogue','44693XtHsGJ','12WQLAmd','11665oUKQLb','command','usage'];a16_0x29a1=function(){return _0x3d7279;};return a16_0x29a1();}exports[a16_0x23bb7c(0x1a2)]=a16_0x23bb7c(0x1a5),exports['desc']=a16_0x23bb7c(0x19a),exports[a16_0x23bb7c(0x199)]=function(_0x40323f){const _0x4c89f8=a16_0x23bb7c,_0x562a7d={};_0x562a7d['lsjnD']=_0x4c89f8(0x1a9),_0x562a7d[_0x4c89f8(0x195)]=_0x4c89f8(0x1a7);const _0x5a2045=_0x562a7d;return _0x40323f[_0x4c89f8(0x1a3)](HELP_HEADER_MESSAGE[_0x4c89f8(0x18f)])[_0x4c89f8(0x19e)](HELP_FOOTER_MESSAGE)[_0x4c89f8(0x1a8)](_0x5a2045['lsjnD'])[_0x4c89f8(0x1aa)]()[_0x4c89f8(0x191)]()[_0x4c89f8(0x196)]()['help'](_0x5a2045[_0x4c89f8(0x195)]);},exports[a16_0x23bb7c(0x197)]=function(_0x46fbc2){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a17_0x3b23b4=a17_0x4f2e;(function(_0x5cc7a4,_0x4d1503){const _0x1c72ba=a17_0x4f2e,_0x1413d4=_0x5cc7a4();while(!![]){try{const _0x2dd175=parseInt(_0x1c72ba(0x237))/0x1+-parseInt(_0x1c72ba(0x207))/0x2+-parseInt(_0x1c72ba(0x2aa))/0x3*(parseInt(_0x1c72ba(0x1cc))/0x4)+parseInt(_0x1c72ba(0x1dc))/0x5*(parseInt(_0x1c72ba(0x247))/0x6)+parseInt(_0x1c72ba(0x1ce))/0x7*(-parseInt(_0x1c72ba(0x1f6))/0x8)+-parseInt(_0x1c72ba(0x26b))/0x9*(-parseInt(_0x1c72ba(0x20a))/0xa)+parseInt(_0x1c72ba(0x22a))/0xb;if(_0x2dd175===_0x4d1503)break;else _0x1413d4['push'](_0x1413d4['shift']());}catch(_0x1998ed){_0x1413d4['push'](_0x1413d4['shift']());}}}(a17_0x5a37,0x246c0));const fs=require('fs'),ws=require('ws'),got=require(a17_0x3b23b4(0x2ac)),{v4:uuidv4}=require(a17_0x3b23b4(0x262)),ReconnectingWebSocket=require(a17_0x3b23b4(0x212)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x3b23b4(0x1c8)),{logger}=require(a17_0x3b23b4(0x1b5)),{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_0x3b23b4(0x1f9)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x3b23b4(0x238)),{sendInstrumentationEvent}=require(a17_0x3b23b4(0x1b2));function a17_0x5a37(){const _0x245faf=['Yqqhy','UqqBU','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','FaxkM','N/A','YypAh','cedbw','/packages/cli/get-all-grid-profiles','\x20region\x20-\x20','DoUSf','PCcLr','MEsdo','1644bAIKLU','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','IDULv','message','dozFS','OXSEe','WebSocket','===\x20Precheck\x20Report\x20-\x20','oEaLW','npHta','FGyrY','readFileSync','ELoVu','raQGU','ZLLlc','Whitelisted\x20browserstack','<UsernamePlaceholder>','User\x20Access','ditbQ','Missing\x20required\x20arguments:\x20','Failure','iEEBC','jquqf','grid','forEach','ETTjo','lzMNE','uuid','status','getUTCMinutes','help','epilogue','`\x20,error\x20:\x20','aRFsr','wjBhA','ROsGz','31446YCfULg','stringify','odXMq','pSTXw','LOG','stack\x20trace\x20','cloudProvider','authHeader','zxJfJ','description','VWQWe','grid\x20profile\x20flow\x20','FHwTG','buZya','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','oPDNK','KorlP','\x20\x20Message:\x20','JSKhF','tOUyW','join','accessResp','MxsFN','VMpwJ','gkGEn','wmEws','dNYDs','exit','WXcIA','push','DrKNg','.txt','tztQl','AQeMt','getUTCHours','code','Browserstack','getUTCFullYear','command','nrbaf','AHkQn','qLHZz','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region',']\x20status\x20:\x20','BCKEZ','connectionTimeout','UdEih','xCQor','header','qxzZP','XeNKN','hBxlo','IcSKc','\x20data\x20:\x20','WOZLs','bstackUsername','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','options','Message:\x20','oXTBX','bTUao','Opfrh','headers','6iUDoXH','jovYx','got','SQGlS','\x20===\x0a\x0a','CXjMw','debug','gylTh','pSWLG','KYytK','tDAzA','includes','../../utils/instrumentationUtils','clusterRegion','Report\x20saved\x20in\x20','../../config/logger','response','`\x20already\x20exists','body','bstackAccesskey','ivzdH','grid-profile','IaeYC','credential-not-found','unable\x20to\x20verify\x20if\x20cluster\x20`','usage','jVxfZ','init','GET','Setting\x20cloud\x20provider\x20as\x20','\x20error\x20:\x20','length','ERROR','ZQsHV','../../utils/utilityMethods','YFaLs','IowOS','msZEz','506392wYFztf','vlnPk','1112237KnwjKb','TLSv1_2_client_method','delay','cloud-provider','QDBdu','\x20\x20Stack:\x20','LXdpJ','Invalid\x20input.\x20grid\x20profiles:\x20','Status:\x20','gLFKd','cluster-name','ukNaj','bQscv','pre-check-failed','2050QoFmGm','is\x20already\x20present','string','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','tpmel','toLowerCase','oJxjX','pre_check','type','ozNBA','cloud-provider-not-supported','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','Success','gridProfile','eEvNb','rQpnj','replace','split','mlsza','hGDDq','FCRPN','IdJYj','JrMDz','wJQrl','handler','error\x20stack\x20:\x20','8tQATkI','thycr','isCliToolInstalled','../../config/constants','desc','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','\x20\x20Code:\x20','ySQOW','Grid\x20profile\x20fetched\x20for\x20pre-check','dXwky','getUTCDate','ZIvxH','getUTCMonth','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','WIjPj','SSL\x20Configured','iJqen','468652VeahEY','password','JMynb','340DjCJDF','utf-8','VEVXT','Cluster\x20`','parse','region','XTfSt','yXzPS','reconnecting-websocket','KwqWM','stack','Error\x20Details:\x0a','ZWWER','BaNOs','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','2|4|3|1|0','method','Cluster\x20','CLOUD_PROVIDER','Pre-check\x20running\x20for\x20Cloud\x20-\x20','tLkPP','clusterName','name','YqVNl','vARYS','twzBv','toolInstalledResp','vYPSk','data','checkAccess','Failed\x20in\x20pre-check!\x20Error:\x20','sendEventToBackend','4142281ofVPOd','pre-check','isvIy','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','isClusterPresent','nylzK','rTxav','fymVV','error','LivPY','info','YeOSd','will\x20be\x20created','187890ZGoRrV','../../utils/webSocketUtils','log/report_','isTls1_2_SUPPORTED'];a17_0x5a37=function(){return _0x245faf;};return a17_0x5a37();}exports[a17_0x3b23b4(0x291)]=a17_0x3b23b4(0x25e),exports[a17_0x3b23b4(0x1fa)]=a17_0x3b23b4(0x279),exports['builder']=function(_0x46bfbb){const _0x31be11=a17_0x3b23b4,_0x942fc={};_0x942fc['dozFS']=_0x31be11(0x23d),_0x942fc['wJQrl']=_0x31be11(0x1de),_0x942fc[_0x31be11(0x26d)]=_0x31be11(0x2a3),_0x942fc[_0x31be11(0x28c)]=_0x31be11(0x248),_0x942fc[_0x31be11(0x2af)]=_0x31be11(0x203),_0x942fc[_0x31be11(0x246)]=_0x31be11(0x265);const _0x282ea2=_0x942fc,_0x1d3849={};_0x1d3849[_0x31be11(0x274)]=_0x282ea2[_0x31be11(0x24b)],_0x1d3849[_0x31be11(0x1e4)]=_0x282ea2[_0x31be11(0x1f3)];const _0x5b6bb9={};_0x5b6bb9['description']=_0x282ea2[_0x31be11(0x26d)],_0x5b6bb9[_0x31be11(0x1e4)]=_0x282ea2['wJQrl'];const _0x3e0f4a={};_0x3e0f4a[_0x31be11(0x274)]=_0x282ea2['AQeMt'],_0x3e0f4a[_0x31be11(0x1e4)]=_0x282ea2[_0x31be11(0x1f3)];const _0x1091f7={};_0x1091f7[_0x31be11(0x274)]=_0x282ea2['CXjMw'],_0x1091f7['type']=_0x282ea2[_0x31be11(0x1f3)];const _0x36eb4f={};return _0x36eb4f[_0x31be11(0x1d8)]=_0x1d3849,_0x36eb4f[_0x31be11(0x1d1)]=_0x5b6bb9,_0x36eb4f[_0x31be11(0x20f)]=_0x3e0f4a,_0x36eb4f[_0x31be11(0x1bb)]=_0x1091f7,_0x46bfbb[_0x31be11(0x1bf)](HELP_HEADER_MESSAGE[_0x31be11(0x1e3)])[_0x31be11(0x266)](HELP_FOOTER_MESSAGE)[_0x31be11(0x2a4)](_0x36eb4f)[_0x31be11(0x265)](_0x282ea2[_0x31be11(0x246)])['argv'];};async function inputValidation(_0x5c791e,_0x5aebcf){const _0x1556ce=a17_0x3b23b4,_0x4c8df1={'ROsGz':_0x1556ce(0x232),'Ugqrz':_0x1556ce(0x23d),'zxJfJ':'string','oPDNK':_0x1556ce(0x2a3),'UqqBU':_0x1556ce(0x248),'DoUSf':_0x1556ce(0x203),'NBDCq':_0x1556ce(0x265),'IaeYC':_0x1556ce(0x1d8),'VMpwJ':_0x1556ce(0x295),'YqVNl':function(_0x2a0e8d,_0x4b21b6){return _0x2a0e8d+_0x4b21b6;},'twzBv':_0x1556ce(0x1e8),'aQKVB':_0x1556ce(0x25b),'msZEz':function(_0x465296,_0x2ce77d){return _0x465296||_0x2ce77d;},'bQscv':'N/A','IcSKc':_0x1556ce(0x215),'itnRN':_0x1556ce(0x1dd),'dNYDs':_0x1556ce(0x236),'jquqf':_0x1556ce(0x1d1),'aRFsr':function(_0x34ee35,_0x58126e){return _0x34ee35!==_0x58126e;},'JikjW':_0x1556ce(0x1f7),'UvXQb':_0x1556ce(0x209),'dXwky':function(_0x56479b,_0x52a6c8){return _0x56479b===_0x52a6c8;},'vARYS':'Uemab','KYytK':function(_0x389fbb,_0x24e735){return _0x389fbb!==_0x24e735;},'tpmel':_0x1556ce(0x261),'wjBhA':_0x1556ce(0x22f),'wmEws':_0x1556ce(0x29c),'YeOSd':_0x1556ce(0x297),'ksGVY':_0x1556ce(0x23b),'riDmp':_0x1556ce(0x253),'ZWWER':_0x1556ce(0x20f),'ukNaj':function(_0x5b4955,_0x208f12){return _0x5b4955>_0x208f12;},'ditbQ':_0x1556ce(0x275),'WXcIA':_0x1556ce(0x245),'WOZLs':function(_0x12f49e,_0x47d729,_0x2aa527,_0x1d5126,_0x2fee33,_0x47e424,_0x445cd8,_0x5b6020){return _0x12f49e(_0x47d729,_0x2aa527,_0x1d5126,_0x2fee33,_0x47e424,_0x445cd8,_0x5b6020);},'FHwTG':'pre-check-grid-called','FCRPN':'pre-check-cluster-args-not-passed','xzGOJ':function(_0x5ed734,_0x6a2f2f){return _0x5ed734!==_0x6a2f2f;},'KorlP':_0x1556ce(0x2b4),'ZIvxH':_0x1556ce(0x22d),'pNDLo':_0x1556ce(0x1e6),'ivzdH':function(_0x573bbd,_0x168946){return _0x573bbd!==_0x168946;},'UdEih':'nfXXy','eEvNb':function(_0x17308f,_0x2eeae0){return _0x17308f===_0x2eeae0;},'lkKYF':_0x1556ce(0x23e),'iEEBC':_0x1556ce(0x24f),'oXTBX':_0x1556ce(0x1c2),'AHkQn':function(_0x37f311,_0x27ecfc,_0x3c7ebe){return _0x37f311(_0x27ecfc,_0x3c7ebe);},'OXSEe':function(_0x9ff1f1,_0x7659eb,_0x4f6ffe,_0x49a80a,_0x54db22,_0x7abacb){return _0x9ff1f1(_0x7659eb,_0x4f6ffe,_0x49a80a,_0x54db22,_0x7abacb);},'jovYx':_0x1556ce(0x22b),'KpYLp':_0x1556ce(0x1bb),'elfmu':_0x1556ce(0x254),'ZQWJc':function(_0x949141,_0x5bb083){return _0x949141(_0x5bb083);},'hGDDq':function(_0x4fd96e,_0xa45690){return _0x4fd96e!==_0xa45690;},'vYPSk':_0x1556ce(0x231),'JSKhF':'pre-check-grid-profile-empty','WIjPj':'Jvajr','ZLLlc':'QVnGK','qLHZz':_0x1556ce(0x28b),'bTUao':_0x1556ce(0x1fe),'KwqWM':_0x1556ce(0x1eb),'YFaLs':_0x1556ce(0x21e),'ETTjo':function(_0x777856,_0x2ba190){return _0x777856===_0x2ba190;},'isvIy':_0x1556ce(0x210)};let _0x11e858;try{if(_0x4c8df1[_0x1556ce(0x268)](_0x4c8df1['JikjW'],_0x4c8df1['UvXQb'])){if(_0x5c791e['clusterName']||_0x5c791e[_0x1556ce(0x271)]||_0x5c791e[_0x1556ce(0x20f)]){if(_0x4c8df1[_0x1556ce(0x1ff)](_0x4c8df1[_0x1556ce(0x222)],_0x4c8df1[_0x1556ce(0x222)])){const _0xaa35b8=[];!_0x5c791e[_0x1556ce(0x21f)]&&(_0x4c8df1['KYytK'](_0x4c8df1[_0x1556ce(0x1e0)],_0x4c8df1[_0x1556ce(0x269)])?_0xaa35b8[_0x1556ce(0x288)](_0x4c8df1[_0x1556ce(0x1bc)]):_0x4d64f3['info'](_0x1556ce(0x20d)+_0x573a20[_0x1556ce(0x21f)]+_0x1556ce(0x1b7)));;if(!_0x5c791e['cloudProvider']){if(_0x4c8df1['dXwky'](_0x4c8df1[_0x1556ce(0x284)],_0x4c8df1[_0x1556ce(0x235)])){const _0x18ca36={};_0x18ca36[_0x1556ce(0x1e4)]=_0x51cf20[_0x1556ce(0x26f)],_0x18ca36[_0x1556ce(0x24a)]=_0x3bc148,_0x25f7a9[_0x1556ce(0x229)](_0x414166,_0x18ca36,_0x4c8df1[_0x1556ce(0x26a)],!![]);}else _0xaa35b8[_0x1556ce(0x288)](_0x4c8df1[_0x1556ce(0x25d)]);};!_0x5c791e[_0x1556ce(0x20f)]&&(_0x4c8df1[_0x1556ce(0x1ff)](_0x4c8df1['ksGVY'],_0x4c8df1['riDmp'])?(_0x2aff6e[_0x1556ce(0x234)](_0x1556ce(0x1c3)+_0x343376['CLOUD_PROVIDER']+'\x20'),_0x507fe5['cloudProvider']=_0x582c2b[_0x1556ce(0x21c)]):_0xaa35b8[_0x1556ce(0x288)](_0x4c8df1[_0x1556ce(0x216)]));;if(_0x4c8df1[_0x1556ce(0x1d9)](_0xaa35b8[_0x1556ce(0x1c5)],0x0)){if(_0x4c8df1[_0x1556ce(0x2b3)](_0x4c8df1[_0x1556ce(0x259)],_0x4c8df1[_0x1556ce(0x287)]))_0x11e858=_0x1556ce(0x25a)+_0xaa35b8[_0x1556ce(0x27f)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x4c8df1['WOZLs'](reportToGalactusAndSendToEDS,_0x5c791e,_0x5aebcf,_0x11e858,messageTypes[_0x1556ce(0x1c6)],_0x4c8df1[_0x1556ce(0x277)],_0x4c8df1[_0x1556ce(0x1f0)],_0x4c8df1['ROsGz']),logger[_0x1556ce(0x232)](_0x11e858),process[_0x1556ce(0x286)](0x1);else{const _0x8b7acb={};_0x8b7acb[_0x1556ce(0x274)]=_0x4c8df1['Ugqrz'],_0x8b7acb[_0x1556ce(0x1e4)]=_0x4c8df1[_0x1556ce(0x273)];const _0x5d21f5={};_0x5d21f5[_0x1556ce(0x274)]=_0x4c8df1[_0x1556ce(0x27a)],_0x5d21f5[_0x1556ce(0x1e4)]=_0x4c8df1[_0x1556ce(0x273)];const _0x3517ed={};_0x3517ed[_0x1556ce(0x274)]=_0x4c8df1[_0x1556ce(0x23c)],_0x3517ed[_0x1556ce(0x1e4)]=_0x4c8df1['zxJfJ'];const _0x19c15d={};_0x19c15d[_0x1556ce(0x274)]=_0x4c8df1[_0x1556ce(0x244)],_0x19c15d[_0x1556ce(0x1e4)]=_0x4c8df1['zxJfJ'];const _0xf5b738={};return _0xf5b738[_0x1556ce(0x1d8)]=_0x8b7acb,_0xf5b738[_0x1556ce(0x1d1)]=_0x5d21f5,_0xf5b738[_0x1556ce(0x20f)]=_0x3517ed,_0xf5b738[_0x1556ce(0x1bb)]=_0x19c15d,_0x3c246e[_0x1556ce(0x1bf)](_0x11e770['pre_check'])[_0x1556ce(0x266)](_0x1163df)[_0x1556ce(0x2a4)](_0xf5b738)['help'](_0x4c8df1['NBDCq'])['argv'];}}!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x1556ce(0x1b1)](_0x5c791e[_0x1556ce(0x271)][_0x1556ce(0x1e1)]())&&(_0x4c8df1['xzGOJ'](_0x4c8df1[_0x1556ce(0x27b)],_0x4c8df1[_0x1556ce(0x27b)])?_0x202fb5[_0x1556ce(0x288)](_0x4c8df1[_0x1556ce(0x1bc)]):(_0x11e858=_0x4c8df1[_0x1556ce(0x201)],await _0x4c8df1[_0x1556ce(0x2a1)](reportToGalactusAndSendToEDS,_0x5c791e,_0x5aebcf,_0x11e858,messageTypes[_0x1556ce(0x1c6)],_0x4c8df1[_0x1556ce(0x277)],_0x4c8df1['pNDLo'],_0x4c8df1['ROsGz']),logger[_0x1556ce(0x232)](_0x11e858),!_0x5c791e[_0x1556ce(0x271)]&&(_0x4c8df1['ivzdH'](_0x4c8df1[_0x1556ce(0x299)],_0x4c8df1[_0x1556ce(0x299)])?_0x1472e9[_0x1556ce(0x232)](_0x1556ce(0x1f5)+_0x45e7bd[_0x1556ce(0x232)]['stack']):(logger[_0x1556ce(0x234)](_0x1556ce(0x1c3)+DEFAULT_CLUSTER_DETAILS[_0x1556ce(0x21c)]+'\x20'),_0x5c791e[_0x1556ce(0x271)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER'])))),global_registry[_0x1556ce(0x21f)]=_0x5c791e['clusterName'],global_registry[_0x1556ce(0x271)]=_0x5c791e[_0x1556ce(0x271)],global_registry[_0x1556ce(0x1b3)]=_0x5c791e['region'];}else _0x1ebae2['info']('['+_0x9eba50+']\x20status\x20:\x20'+_0x2e1b62[_0x1556ce(0x263)]+_0x1556ce(0x2a0)+_0x89e54d[_0x1556ce(0x226)]+'\x20error\x20:\x20'+_0x5adc42['error']),_0x54ce21[_0x1556ce(0x232)]&&_0x1858c9[_0x1556ce(0x232)]('error\x20stack\x20:\x20'+_0x57294d[_0x1556ce(0x232)][_0x1556ce(0x214)]);}else{if(_0x5c791e['gridProfile']){if(_0x4c8df1[_0x1556ce(0x1ea)](_0x4c8df1['lkKYF'],_0x4c8df1[_0x1556ce(0x25c)]))_0x4b7aab[_0x1556ce(0x232)](_0x4c8df1[_0x1556ce(0x282)]),_0x3502a5[_0x1556ce(0x286)](0x1);else{global_registry[_0x1556ce(0x1e9)]=_0x5c791e[_0x1556ce(0x1e9)],logger[_0x1556ce(0x2b0)](_0x1556ce(0x276)+_0x5c791e[_0x1556ce(0x1e9)]);const _0x2112d7='https://'+AG_API_URL+_0x1556ce(0x242),_0x35ea78={};_0x35ea78[_0x1556ce(0x21a)]=_0x4c8df1[_0x1556ce(0x2a6)],_0x35ea78[_0x1556ce(0x2a9)]=global_registry['authHeader'],_0x35ea78['throwHttpErrors']=![];const _0x1f6b0e=_0x35ea78,_0x2d1def=await _0x4c8df1[_0x1556ce(0x293)](got,_0x2112d7,_0x1f6b0e),_0x61d6cf=await _0x4c8df1[_0x1556ce(0x24c)](responseValidation,_0x2d1def,_0x4c8df1[_0x1556ce(0x2ab)],_0x4c8df1['KpYLp'],_0x5c791e,_0x5aebcf);let _0x46b3ea={};if(_0x4c8df1[_0x1556ce(0x1ea)](_0x61d6cf,0xc8)){if(_0x4c8df1[_0x1556ce(0x1ba)](_0x4c8df1['elfmu'],_0x4c8df1['elfmu'])){const {header:_0x40111c,response:_0x5087db}=_0x1b5130,{status:_0x357d5f,data:_0x53a1ed,error:_0x2e407c}=_0x5087db;_0xf00a70+=_0x40111c+'\x20#'+_0x4c8df1[_0x1556ce(0x221)](_0x737f63,0x1)+'\x0a',_0x38c65d+=_0x1556ce(0x1d6)+(_0x357d5f?_0x4c8df1[_0x1556ce(0x223)]:_0x4c8df1['aQKVB'])+'\x0a',_0x52eeb5+=_0x1556ce(0x2a5)+_0x4c8df1[_0x1556ce(0x1cb)](_0x53a1ed,_0x4c8df1[_0x1556ce(0x1da)])+'\x0a',_0x2e407c&&(_0x426533+=_0x4c8df1[_0x1556ce(0x29f)],_0x18e08b+=_0x1556ce(0x27c)+(_0x2e407c[_0x1556ce(0x24a)]||_0x4c8df1[_0x1556ce(0x1da)])+'\x0a',_0xfe6d6d+=_0x1556ce(0x1fc)+(_0x2e407c[_0x1556ce(0x28e)]||_0x4c8df1[_0x1556ce(0x1da)])+'\x0a',_0x10a204+=_0x1556ce(0x1d3)+(_0x2e407c['stack']||_0x4c8df1[_0x1556ce(0x1da)])+'\x0a'),_0xfe2560+='\x0a\x0a';}else{const _0x46bfc8=JSON[_0x1556ce(0x20e)](_0x2d1def[_0x1556ce(0x1b8)]),_0x5d3e61=_0x46bfc8['find'](_0x59bb50=>_0x59bb50[_0x1556ce(0x220)]===_0x5c791e[_0x1556ce(0x1e9)])||null;_0x4c8df1['ZQWJc'](isUndefined,_0x5d3e61)?_0x4c8df1[_0x1556ce(0x1ef)](_0x4c8df1['vYPSk'],_0x4c8df1[_0x1556ce(0x225)])?_0x361e43+=_0x1556ce(0x21b)+_0x52d505[_0x1556ce(0x21f)]+'\x20'+(_0x5796b9?_0x4c8df1['itnRN']:_0x4c8df1[_0x1556ce(0x285)])+'\x0a\x0a':(_0x11e858=_0x1556ce(0x1d5)+_0x5c791e[_0x1556ce(0x1e9)]+_0x1556ce(0x1e7),await _0x4c8df1[_0x1556ce(0x2a1)](reportToGalactusAndSendToEDS,_0x5c791e,_0x5aebcf,_0x11e858,messageTypes[_0x1556ce(0x1c6)],_0x4c8df1[_0x1556ce(0x277)],_0x4c8df1[_0x1556ce(0x27d)],_0x4c8df1['ROsGz']),logger[_0x1556ce(0x232)](_0x11e858),process[_0x1556ce(0x286)](0x1)):_0x4c8df1[_0x1556ce(0x1ea)](_0x4c8df1[_0x1556ce(0x204)],_0x4c8df1[_0x1556ce(0x255)])?_0x29dfdb+=_0x1556ce(0x21b)+_0x2262c2[_0x1556ce(0x21f)]+_0x1556ce(0x1df):_0x46b3ea=_0x5d3e61;}}else _0x4c8df1[_0x1556ce(0x1ef)](_0x4c8df1[_0x1556ce(0x294)],_0x4c8df1[_0x1556ce(0x294)])?(_0x26f256+=_0x4c8df1[_0x1556ce(0x29f)],_0x2fb7d7+=_0x1556ce(0x27c)+(_0x42786b[_0x1556ce(0x24a)]||_0x4c8df1[_0x1556ce(0x1da)])+'\x0a',_0x5b6d52+=_0x1556ce(0x1fc)+(_0x24e16b['code']||_0x4c8df1[_0x1556ce(0x1da)])+'\x0a',_0x17f2d8+=_0x1556ce(0x1d3)+(_0x5378cd[_0x1556ce(0x214)]||_0x4c8df1['bQscv'])+'\x0a'):process[_0x1556ce(0x286)](0x1);const _0x1da674={};_0x1da674[_0x1556ce(0x1e4)]=WS_EVENTS[_0x1556ce(0x26f)],_0x1da674[_0x1556ce(0x24a)]=_0x4c8df1[_0x1556ce(0x2a7)],webSocketUtils[_0x1556ce(0x229)](_0x5aebcf,_0x1da674),global_registry[_0x1556ce(0x271)]=_0x46b3ea[_0x1556ce(0x271)],global_registry[_0x1556ce(0x1b3)]=_0x46b3ea[_0x1556ce(0x20f)],global_registry[_0x1556ce(0x21f)]=_0x46b3ea[_0x1556ce(0x21f)];}}else _0x4c8df1['hGDDq'](_0x4c8df1[_0x1556ce(0x213)],_0x4c8df1[_0x1556ce(0x1c9)])?(logger[_0x1556ce(0x232)](_0x4c8df1['VMpwJ']),process['exit'](0x1)):_0x10ad27=_0x1c4d6b;}}else _0x4b3146[_0x1556ce(0x286)](0x1);}catch(_0x3f4633){_0x4c8df1[_0x1556ce(0x260)](_0x4c8df1[_0x1556ce(0x22c)],_0x4c8df1[_0x1556ce(0x22c)])?(_0x11e858=_0x1556ce(0x218)+_0x3f4633+':\x20'+_0x3f4633[_0x1556ce(0x214)],logger[_0x1556ce(0x232)](_0x11e858),await _0x4c8df1['WOZLs'](reportToGalactusAndSendToEDS,_0x5c791e,_0x5aebcf,_0x11e858,messageTypes[_0x1556ce(0x1c6)],_0x4c8df1[_0x1556ce(0x277)],_0x4c8df1['pNDLo'],_0x4c8df1['ROsGz']),process[_0x1556ce(0x286)](0x1)):_0x354fe0[_0x1556ce(0x288)](_0x4c8df1['jquqf']);}}function printResponse(_0x5db037,_0x3cd99f){const _0xa51358=a17_0x3b23b4,_0x5bcf14={};_0x5bcf14[_0xa51358(0x1e2)]=_0xa51358(0x20f),_0x5bcf14[_0xa51358(0x1c7)]=function(_0x32d8e3,_0x5f1334){return _0x32d8e3===_0x5f1334;},_0x5bcf14[_0xa51358(0x27e)]='tRiuG',_0x5bcf14[_0xa51358(0x1e5)]=_0xa51358(0x26e);const _0x32ca75=_0x5bcf14;logger[_0xa51358(0x234)]('['+_0x5db037+_0xa51358(0x296)+_0x3cd99f[_0xa51358(0x263)]+_0xa51358(0x2a0)+_0x3cd99f[_0xa51358(0x226)]+_0xa51358(0x1c4)+_0x3cd99f['error']),_0x3cd99f[_0xa51358(0x232)]&&(_0x32ca75['ZQsHV'](_0x32ca75[_0xa51358(0x27e)],_0x32ca75['ozNBA'])?_0x34d312['push'](_0x32ca75[_0xa51358(0x1e2)]):logger[_0xa51358(0x232)]('error\x20stack\x20:\x20'+_0x3cd99f[_0xa51358(0x232)][_0xa51358(0x214)]));}function a17_0x4f2e(_0x240957,_0x26979c){const _0x5a37a9=a17_0x5a37();return a17_0x4f2e=function(_0x4f2e09,_0x4cb122){_0x4f2e09=_0x4f2e09-0x1b1;let _0x357962=_0x5a37a9[_0x4f2e09];return _0x357962;},a17_0x4f2e(_0x240957,_0x26979c);}async function generateReport(_0x4ed127,_0x17c68d){const _0x2b7e67=a17_0x3b23b4,_0x28aa2a={'PfLYK':function(_0x41c4bf,_0x2ed62e){return _0x41c4bf+_0x2ed62e;},'iydNY':'Success','mlsza':_0x2b7e67(0x25b),'buZya':function(_0x167aae,_0x45c867){return _0x167aae||_0x45c867;},'YypAh':_0x2b7e67(0x23f),'gylTh':_0x2b7e67(0x215),'iJqen':'Cluster\x20details\x0a-----------------------\x0a','FGyrY':function(_0x412d87,_0x46f33e){return _0x412d87!=_0x46f33e;},'IDULv':_0x2b7e67(0x1dd),'yXzPS':_0x2b7e67(0x236),'pygnY':function(_0x5a74e4){return _0x5a74e4();}};let _0x1ce5a3=_0x2b7e67(0x24e)+global_registry['cloudProvider']+_0x2b7e67(0x2ae);return _0x4ed127[_0x2b7e67(0x25f)]((_0x1401e7,_0xa7ed1)=>{const _0x5a4093=_0x2b7e67,{header:_0x33903d,response:_0xe0fb3c}=_0x1401e7,{status:_0x3c8449,data:_0x1b8642,error:_0x2dfe89}=_0xe0fb3c;_0x1ce5a3+=_0x33903d+'\x20#'+_0x28aa2a['PfLYK'](_0xa7ed1,0x1)+'\x0a',_0x1ce5a3+=_0x5a4093(0x1d6)+(_0x3c8449?_0x28aa2a['iydNY']:_0x28aa2a[_0x5a4093(0x1ee)])+'\x0a',_0x1ce5a3+=_0x5a4093(0x2a5)+_0x28aa2a[_0x5a4093(0x278)](_0x1b8642,_0x28aa2a[_0x5a4093(0x240)])+'\x0a',_0x2dfe89&&(_0x1ce5a3+=_0x28aa2a[_0x5a4093(0x2b1)],_0x1ce5a3+=_0x5a4093(0x27c)+(_0x2dfe89[_0x5a4093(0x24a)]||_0x28aa2a['YypAh'])+'\x0a',_0x1ce5a3+=_0x5a4093(0x1fc)+(_0x2dfe89[_0x5a4093(0x28e)]||_0x28aa2a[_0x5a4093(0x240)])+'\x0a',_0x1ce5a3+=_0x5a4093(0x1d3)+(_0x2dfe89[_0x5a4093(0x214)]||_0x28aa2a['YypAh'])+'\x0a'),_0x1ce5a3+='\x0a\x0a';}),_0x1ce5a3+=_0x28aa2a[_0x2b7e67(0x206)],_0x28aa2a[_0x2b7e67(0x251)](_0x17c68d,null)?_0x1ce5a3+='Cluster\x20'+global_registry[_0x2b7e67(0x21f)]+'\x20'+(_0x17c68d?_0x28aa2a[_0x2b7e67(0x249)]:_0x28aa2a[_0x2b7e67(0x211)])+'\x0a\x0a':_0x1ce5a3+=_0x2b7e67(0x21b)+global_registry[_0x2b7e67(0x21f)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x1ce5a3+=_0x28aa2a['pygnY'](getSystemMetaData),_0x1ce5a3;};exports[a17_0x3b23b4(0x1f4)]=async function(_0x50bbec){const _0x38e0d8=a17_0x3b23b4,_0x405bcc={'LXdpJ':function(_0x3e8de4){return _0x3e8de4();},'pzDof':function(_0x2c999c){return _0x2c999c();},'VEVXT':_0x38e0d8(0x1fb),'nrbaf':function(_0x16c0ce,_0x6f986f,_0x278caa,_0x2d30c5,_0x4a2ab0,_0x2ebb1f,_0x290381,_0x57b270){return _0x16c0ce(_0x6f986f,_0x278caa,_0x2d30c5,_0x4a2ab0,_0x2ebb1f,_0x290381,_0x57b270);},'gLFKd':'pre-check-grid-called','jVxfZ':_0x38e0d8(0x1bd),'rTxav':_0x38e0d8(0x232),'npHta':function(_0x5024d9,_0x3456bd,_0xf9e615,_0x48aa65,_0x3c18f0,_0x3918cb,_0x53ae85){return _0x5024d9(_0x3456bd,_0xf9e615,_0x48aa65,_0x3c18f0,_0x3918cb,_0x53ae85);},'gkGEn':_0x38e0d8(0x257),'ySQOW':'<PasswordPlaceholder>','MxsFN':function(_0x3ec305,_0xdc097f,_0x19401c){return _0x3ec305(_0xdc097f,_0x19401c);},'vESCO':function(_0x18845a,_0x2d904b,_0x3ea541){return _0x18845a(_0x2d904b,_0x3ea541);},'hBxlo':function(_0x4e40c2,_0x5dfd98,_0x45f9b0,_0x1d1248,_0xfbdfe,_0x53003a,_0x3b200b){return _0x4e40c2(_0x5dfd98,_0x45f9b0,_0x1d1248,_0xfbdfe,_0x53003a,_0x3b200b);},'cedbw':'dummy-grid','wwSvv':function(_0x3586c5,_0x4cebdf,_0x20661b){return _0x3586c5(_0x4cebdf,_0x20661b);},'BaNOs':_0x38e0d8(0x224),'LivPY':_0x38e0d8(0x219),'xCQor':function(_0x20c007,_0x263189,_0x53ae62,_0x3fc9e5,_0x10d43d,_0x1b4697,_0x562d0f,_0x41b818){return _0x20c007(_0x263189,_0x53ae62,_0x3fc9e5,_0x10d43d,_0x1b4697,_0x562d0f,_0x41b818);},'Opfrh':_0x38e0d8(0x280),'pSWLG':function(_0x557d00){return _0x557d00();},'SQGlS':function(_0x314b21,_0xdd5775,_0x14b665){return _0x314b21(_0xdd5775,_0x14b665);},'ikvdt':'isTrialGridAccessible','ETySx':function(_0x2ce930,_0x4a2bce){return _0x2ce930(_0x4a2bce);},'QDBdu':_0x38e0d8(0x1cf),'IowOS':function(_0x3a0f28,_0x455a10,_0x5f31cd){return _0x3a0f28(_0x455a10,_0x5f31cd);},'zMUOb':_0x38e0d8(0x23a),'JrMDz':'Tool\x20Installed','DrKNg':_0x38e0d8(0x258),'yLXBm':_0x38e0d8(0x256),'vlnPk':_0x38e0d8(0x205),'XeNKN':function(_0x3eb2ea,_0x244372,_0x3287df){return _0x3eb2ea(_0x244372,_0x3287df);},'AefdU':function(_0x171867,_0x485ab4){return _0x171867+_0x485ab4;},'MgAGI':_0x38e0d8(0x20b),'IdJYj':function(_0x2f905f,_0x27ce11,_0x7fd545,_0x434434,_0x2402b3,_0x526aba,_0x41db12){return _0x2f905f(_0x27ce11,_0x7fd545,_0x434434,_0x2402b3,_0x526aba,_0x41db12);},'gXJaK':_0x38e0d8(0x1db)};let _0x118434,_0x396019;try{global_registry['requestId']=_0x405bcc[_0x38e0d8(0x1d4)](uuidv4);!fs['existsSync'](_0x405bcc['pzDof'](getCredentialsPath))&&(_0x396019=_0x405bcc[_0x38e0d8(0x20c)],logger[_0x38e0d8(0x232)](_0x396019),await _0x405bcc[_0x38e0d8(0x292)](reportToGalactusAndSendToEDS,_0x50bbec,_0x118434,_0x396019,messageTypes[_0x38e0d8(0x1c6)],_0x405bcc[_0x38e0d8(0x1d7)],_0x405bcc[_0x38e0d8(0x1c0)],_0x405bcc['rTxav']),process[_0x38e0d8(0x286)](0x1));_0x405bcc[_0x38e0d8(0x250)](sendInstrumentationEvent,_0x50bbec,_0x405bcc[_0x38e0d8(0x1d7)],messageTypes['INFO'],null,null,_0x50bbec);const _0x104fa6=JSON[_0x38e0d8(0x20e)](fs[_0x38e0d8(0x252)](_0x405bcc['LXdpJ'](getCredentialsPath)));global_registry[_0x38e0d8(0x2a2)]=_0x104fa6['Browserstack']['username'],global_registry['bstackAccesskey']=_0x104fa6[_0x38e0d8(0x28f)]['password'];const _0x560874=WS_ENDPOINT['replace'](_0x405bcc[_0x38e0d8(0x283)],_0x104fa6[_0x38e0d8(0x28f)]['username'])[_0x38e0d8(0x1ec)](_0x405bcc[_0x38e0d8(0x1fd)],_0x104fa6[_0x38e0d8(0x28f)][_0x38e0d8(0x208)]),_0x4cafc9={};_0x4cafc9[_0x38e0d8(0x24d)]=ws,_0x4cafc9[_0x38e0d8(0x298)]=0x36ee80,_0x118434=new ReconnectingWebSocket(_0x560874,[],_0x4cafc9),global_registry[_0x38e0d8(0x272)]=_0x405bcc[_0x38e0d8(0x281)](getAuthHeader,global_registry[_0x38e0d8(0x2a2)],global_registry[_0x38e0d8(0x1b9)]),await _0x405bcc['vESCO'](inputValidation,_0x50bbec,_0x118434),logger[_0x38e0d8(0x234)](_0x38e0d8(0x21d)+global_registry[_0x38e0d8(0x271)]+_0x38e0d8(0x243)+global_registry[_0x38e0d8(0x1b3)]);let _0x583331=await _0x405bcc[_0x38e0d8(0x29e)](getCloudProviderObjectWithOutInit,global_registry[_0x38e0d8(0x271)],global_registry[_0x38e0d8(0x21f)],_0x405bcc[_0x38e0d8(0x241)],_0x118434,webSocketUtils,_0x50bbec);const _0x3b5349=await _0x583331[_0x38e0d8(0x1f8)]();_0x405bcc['wwSvv'](printResponse,_0x405bcc[_0x38e0d8(0x217)],_0x3b5349),_0x583331=await _0x583331[_0x38e0d8(0x1c1)]();let _0x70b294=![];try{_0x70b294=await _0x583331[_0x38e0d8(0x22e)]();}catch(_0x36116c){const _0x855fe7=_0x405bcc[_0x38e0d8(0x233)][_0x38e0d8(0x1ed)]('|');let _0x506d09=0x0;while(!![]){switch(_0x855fe7[_0x506d09++]){case'0':await _0x405bcc[_0x38e0d8(0x29a)](reportToGalactusAndSendToEDS,_0x50bbec,_0x118434,_0x396019,messageTypes[_0x38e0d8(0x1c6)],_0x405bcc[_0x38e0d8(0x1d7)],'cluster-check-failed-'+global_registry[_0x38e0d8(0x271)],_0x405bcc['rTxav']);continue;case'1':_0x396019+='\x0a'+JSON[_0x38e0d8(0x26c)](_0x36116c[_0x38e0d8(0x214)]);continue;case'2':_0x396019=_0x38e0d8(0x1be)+global_registry[_0x38e0d8(0x21f)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x38e0d8(0x1b3)]+_0x38e0d8(0x267)+_0x36116c;continue;case'3':logger[_0x38e0d8(0x232)](_0x396019);continue;case'4':_0x70b294=null;continue;}break;}}_0x70b294&&logger['info'](_0x38e0d8(0x20d)+global_registry['clusterName']+_0x38e0d8(0x1b7));const _0x117912=await _0x583331[_0x38e0d8(0x227)]();_0x405bcc['MxsFN'](printResponse,_0x405bcc[_0x38e0d8(0x2a8)],_0x117912);const _0x3d824d=await _0x405bcc[_0x38e0d8(0x2b2)](curlRequest);_0x405bcc[_0x38e0d8(0x2ad)](printResponse,_0x405bcc['ikvdt'],_0x3d824d);const _0x24ad1c=await _0x405bcc['ETySx'](isTlsSupported,_0x405bcc[_0x38e0d8(0x1d2)]);_0x405bcc[_0x38e0d8(0x1ca)](printResponse,_0x405bcc['zMUOb'],_0x24ad1c);const _0x5e179a={};_0x5e179a[_0x38e0d8(0x29b)]=_0x405bcc[_0x38e0d8(0x1f2)],_0x5e179a[_0x38e0d8(0x1b6)]=_0x3b5349;const _0x23dc9d={};_0x23dc9d[_0x38e0d8(0x29b)]=_0x405bcc[_0x38e0d8(0x289)],_0x23dc9d[_0x38e0d8(0x1b6)]=_0x117912;const _0xd71ec4={};_0xd71ec4[_0x38e0d8(0x29b)]=_0x405bcc['yLXBm'],_0xd71ec4['response']=_0x3d824d;const _0x1b9cc3={};_0x1b9cc3['header']=_0x405bcc[_0x38e0d8(0x1cd)],_0x1b9cc3['response']=_0x24ad1c;const _0x23d763=[_0x5e179a,_0x23dc9d,_0xd71ec4,_0x1b9cc3],_0x12d6db=await _0x405bcc[_0x38e0d8(0x29d)](generateReport,_0x23d763,_0x70b294),_0x119caa=new Date(),_0x1b9c9a=_0x119caa[_0x38e0d8(0x290)]()+'_'+_0x405bcc['AefdU'](_0x119caa[_0x38e0d8(0x202)](),0x1)+'_'+_0x119caa[_0x38e0d8(0x200)]()+'_'+_0x119caa[_0x38e0d8(0x28d)]()+'_'+_0x119caa[_0x38e0d8(0x264)](),_0x1244bd=_0x38e0d8(0x239)+_0x1b9c9a+_0x38e0d8(0x28a);fs['writeFileSync'](_0x1244bd,_0x12d6db,_0x405bcc['MgAGI']),logger[_0x38e0d8(0x234)](_0x38e0d8(0x1b4)+_0x1244bd),process['exit'](0x0);}catch(_0x3c6ae8){let _0x374078=_0x38e0d8(0x228)+_0x3c6ae8+'\x20';logger[_0x38e0d8(0x232)](_0x374078),_0x374078+='\x0a'+JSON['stringify'](_0x3c6ae8[_0x38e0d8(0x214)]),logger[_0x38e0d8(0x2b0)](_0x38e0d8(0x270)+_0x3c6ae8[_0x38e0d8(0x214)]);if(_0x118434){const _0xa60cf1={};_0xa60cf1['type']=WS_EVENTS[_0x38e0d8(0x26f)],_0xa60cf1[_0x38e0d8(0x24a)]=_0x374078,webSocketUtils[_0x38e0d8(0x229)](_0x118434,_0xa60cf1,_0x405bcc[_0x38e0d8(0x230)],!![]);}await webSocketUtils[_0x38e0d8(0x1d0)](0x7d0);const _0x3224c7={};_0x3224c7[_0x38e0d8(0x232)]=_0x374078,await _0x405bcc[_0x38e0d8(0x1f1)](sendInstrumentationEvent,_0x50bbec,_0x405bcc[_0x38e0d8(0x1d7)],messageTypes[_0x38e0d8(0x1c6)],_0x405bcc['gXJaK'],_0x3224c7,_0x50bbec),process[_0x38e0d8(0x286)](0x1);}};
|
|
1
|
+
const a17_0x42cf53=a17_0x413e;function a17_0x467f(){const _0x228e6e=['HmOYn','exit','jWQPR','IGSuH','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','split','lkfar','Error\x20Details:\x0a','vGvXn','getUTCFullYear','pre-check-grid-profile-empty','Vxkal','data','sLiBD','debug','faNuD','zuEmD','OZuaQ','eWfTD','CBpCk','aZHDj','Missing\x20required\x20arguments:\x20','MitUe','qNwnL','WebSocket','eURsj','code','clusterName','\x20\x20Stack:\x20','DPPEq','response','getUTCMinutes','myYRj','cidfT','ILNLe','ueLMS','bstackUsername','init','Jczqk','body','grid\x20profile\x20flow\x20','NbRgq','gwPFp','epilogue','pre-check-cluster-args-not-passed','desc','password','TLSv1_2_client_method','Cluster\x20details\x0a-----------------------\x0a','NSGwP','string','`\x20is\x20present\x20in\x20region\x20`','DErOB','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','push','isTrialGridAccessible','grid-profile','YtadT','WavGI','mpuFM','GET','qsczB','N/A','User\x20Access','options','command','FfwCb','delay','fOiav','grid','ynkwz','isTls1_2_SUPPORTED','/packages/cli/get-all-grid-profiles','connectionTimeout','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','vFGTb','HfSuQ','../../utils/utilityMethods','sNkMU','CJaIX','ERROR','SSL\x20Configured','.txt','CqzAf','bstackAccesskey','NgvMQ','Failure','../../cloudproviders/utils','cloud-provider','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','dZQWw','replace','Setting\x20cloud\x20provider\x20as\x20','cluster-name','UzNsK','accessResp','eqQtA','Report\x20saved\x20in\x20','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','===\x20Precheck\x20Report\x20-\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','eakcm','GnfXd','Cluster\x20','Success','\x20===\x0a\x0a','username','Grid\x20profile\x20fetched\x20for\x20pre-check','acycu','parse','PdHzT','1733877nSpbin','JXwXr','gridProfile','SvMQg','EUirF','pTWUm','message','ucIZu','readFileSync','log/report_','vwCut','ylyZL','bNEhq','XAeZb','type','XqkuF','requestId','IuIOJ','uWAWK','dcQpP','MBwlS','error','Message:\x20','185ugasho','5708JMTwRr','Gntoe','\x20error\x20:\x20','DdqWy','https://','rzzfS','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','CCLaZ','pre-check-failed','YEEot','utf-8','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','931693EvZdfe','is\x20already\x20present','HqJBj','HTobT','error\x20stack\x20:\x20','sendEventToBackend','BmJFm','Browserstack','lmoga','clusterRegion','../../utils/instrumentationUtils','\x20data\x20:\x20','LOG','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','`\x20already\x20exists','GfDPm','unable\x20to\x20verify\x20if\x20cluster\x20`','ODiJB','description','208104EhptZI','gefHH','Pre-check\x20running\x20for\x20Cloud\x20-\x20','DlZSB','\x20region\x20-\x20','stack\x20trace\x20','cloud-provider-not-supported','XwhNA','stringify','iYSzw','tduit','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','uuid','KyXmV','laCjh','join','headers','../../utils/webSocketUtils','miuGJ','<UsernamePlaceholder>','info','nTgCk','AXgjH','CLOUD_PROVIDER','oTEXu','header','aRkUG','7811720vnKgvI','qDasg','getUTCMonth','existsSync','\x20\x20Code:\x20','dbOjP','699MCICXR','Status:\x20','FGxRD','AnDel','getUTCHours','1263216HaRIih','checkAccess','IuxTO','reconnecting-websocket','Cluster\x20`','Whitelisted\x20browserstack','SmXeu','cloudProvider','Nupfx','RgIgR','hdHaq','uexaB','region','writeFileSync','getUTCDate','kGvaH','will\x20be\x20created','stack','hdnGv','got','Invalid\x20input.\x20grid\x20profiles:\x20','ezrAA','keczi','argv','xCVCj','rDuva','pre-check-grid-called','pre_check',']\x20status\x20:\x20','help','UVBaZ','rwdhh','kmkjy','tTCJM','1|2|0|3|4','.\x20Please\x20provide\x20all\x20required\x20arguments.','authHeader','usage','forEach','mXXFG','\x20\x20Message:\x20','oJIFn','aEIYn','throwHttpErrors','status','YWfJu','RUDGB','tLKfw','158478Qsxags','lxCJv','10lrbBmd','mCSso','AfbUM','YKibr','kBEqY','includes','LaIUL'];a17_0x467f=function(){return _0x228e6e;};return a17_0x467f();}(function(_0x30d5da,_0x3f33b1){const _0x4e7d6b=a17_0x413e,_0x1cd9e8=_0x30d5da();while(!![]){try{const _0x39fe79=parseInt(_0x4e7d6b(0xd7))/0x1+parseInt(_0x4e7d6b(0x167))/0x2*(parseInt(_0x4e7d6b(0xa2))/0x3)+-parseInt(_0x4e7d6b(0xa7))/0x4+parseInt(_0x4e7d6b(0x166))/0x5*(parseInt(_0x4e7d6b(0x81))/0x6)+parseInt(_0x4e7d6b(0x173))/0x7+-parseInt(_0x4e7d6b(0x9c))/0x8+-parseInt(_0x4e7d6b(0x14f))/0x9*(parseInt(_0x4e7d6b(0xd9))/0xa);if(_0x39fe79===_0x3f33b1)break;else _0x1cd9e8['push'](_0x1cd9e8['shift']());}catch(_0x2de207){_0x1cd9e8['push'](_0x1cd9e8['shift']());}}}(a17_0x467f,0xb8501));const fs=require('fs'),ws=require('ws'),got=require(a17_0x42cf53(0xba)),{v4:uuidv4}=require(a17_0x42cf53(0x8d)),ReconnectingWebSocket=require(a17_0x42cf53(0xaa)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x42cf53(0x12d)),{logger}=require('../../config/logger'),{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(a17_0x42cf53(0x137)),webSocketUtils=require(a17_0x42cf53(0x92)),{sendInstrumentationEvent}=require(a17_0x42cf53(0x78));exports[a17_0x42cf53(0x121)]=a17_0x42cf53(0x125),exports[a17_0x42cf53(0x10d)]=a17_0x42cf53(0x142),exports['builder']=function(_0x49928c){const _0x304d15=a17_0x42cf53,_0x37be4b={};_0x37be4b[_0x304d15(0xc0)]=_0x304d15(0x16d),_0x37be4b[_0x304d15(0xb2)]=_0x304d15(0x112),_0x37be4b[_0x304d15(0x11b)]=_0x304d15(0x139),_0x37be4b[_0x304d15(0xf6)]=_0x304d15(0x115),_0x37be4b['dZQWw']=_0x304d15(0x12a),_0x37be4b[_0x304d15(0xe2)]=_0x304d15(0xc4);const _0x4f4f2e=_0x37be4b,_0x3a0149={};_0x3a0149[_0x304d15(0x80)]=_0x4f4f2e[_0x304d15(0xc0)],_0x3a0149[_0x304d15(0x15d)]=_0x4f4f2e[_0x304d15(0xb2)];const _0x41d479={};_0x41d479['description']=_0x4f4f2e[_0x304d15(0x11b)],_0x41d479[_0x304d15(0x15d)]=_0x4f4f2e[_0x304d15(0xb2)];const _0x31b087={};_0x31b087[_0x304d15(0x80)]=_0x4f4f2e[_0x304d15(0xf6)],_0x31b087[_0x304d15(0x15d)]=_0x4f4f2e['uexaB'];const _0x48ace0={};_0x48ace0['description']=_0x4f4f2e[_0x304d15(0x13a)],_0x48ace0[_0x304d15(0x15d)]=_0x4f4f2e[_0x304d15(0xb2)];const _0x3192ad={};return _0x3192ad['cluster-name']=_0x3a0149,_0x3192ad['cloud-provider']=_0x41d479,_0x3192ad[_0x304d15(0xb3)]=_0x31b087,_0x3192ad['grid-profile']=_0x48ace0,_0x49928c[_0x304d15(0xcc)](HELP_HEADER_MESSAGE[_0x304d15(0xc2)])[_0x304d15(0x10b)](HELP_FOOTER_MESSAGE)[_0x304d15(0x120)](_0x3192ad)[_0x304d15(0xc4)](_0x4f4f2e[_0x304d15(0xe2)])[_0x304d15(0xbe)];};async function inputValidation(_0x388c90,_0x299032){const _0x386caf=a17_0x42cf53,_0xfb6a61={'myYRj':_0x386caf(0x13d),'CBpCk':_0x386caf(0x16d),'HfSuQ':_0x386caf(0x112),'VnjOw':_0x386caf(0x139),'kBEqY':_0x386caf(0x115),'WLGMS':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','PshmN':_0x386caf(0xc4),'tTCJM':_0x386caf(0x164),'HWkqG':_0x386caf(0x174),'YWfJu':_0x386caf(0xb7),'pTWUm':_0x386caf(0xe7),'UzNsK':_0x386caf(0x11e),'acycu':function(_0x484139,_0x110c68){return _0x484139+_0x110c68;},'OZuaQ':_0x386caf(0x148),'FfwCb':_0x386caf(0x136),'VPmST':function(_0x4df15d,_0x333688){return _0x4df15d||_0x333688;},'XqkuF':_0x386caf(0xb3),'WavGI':_0x386caf(0x138),'AfbUM':function(_0x56787d,_0x37d14e){return _0x56787d!==_0x37d14e;},'sNkMU':'FLxyt','qDasg':function(_0x483798,_0x2123b0){return _0x483798===_0x2123b0;},'nTgCk':_0x386caf(0x124),'lkfar':_0x386caf(0xef),'XAeZb':_0x386caf(0x126),'GnfXd':_0x386caf(0x7d),'IuIOJ':function(_0x2a4e63,_0x754226){return _0x2a4e63===_0x754226;},'Jczqk':'waUsm','VfamF':'gRHGR','dMspS':function(_0x1f2fb5,_0x3f0152){return _0x1f2fb5>_0x3f0152;},'tduit':function(_0x386f97,_0x213d7f){return _0x386f97===_0x213d7f;},'AnDel':_0x386caf(0xd5),'kmkjy':'Zlfhk','UVBaZ':function(_0x195427,_0x2a16e8,_0x749d31,_0x5afa3b,_0x16454f,_0x38b1cb,_0x33f31f,_0xd3b186){return _0x195427(_0x2a16e8,_0x749d31,_0x5afa3b,_0x16454f,_0x38b1cb,_0x33f31f,_0xd3b186);},'eqQtA':_0x386caf(0xc1),'laCjh':_0x386caf(0x10c),'gwPFp':function(_0x4be337,_0x4938e5){return _0x4be337===_0x4938e5;},'FGxRD':'QTrYG','qNwnL':_0x386caf(0xe4),'keczi':_0x386caf(0x87),'AaDOS':function(_0x13808b,_0x456e3a){return _0x13808b!==_0x456e3a;},'CCLaZ':_0x386caf(0x176),'YtadT':_0x386caf(0xf9),'dbOjP':'qzhUS','JXwXr':_0x386caf(0x133),'sLiBD':_0x386caf(0x11c),'Gntoe':function(_0x213944,_0xca2272,_0x2edfac){return _0x213944(_0xca2272,_0x2edfac);},'PCoWL':function(_0x10444c,_0x18894d,_0x2f9f70,_0x179b4e,_0x10741e,_0x35ad48){return _0x10444c(_0x18894d,_0x2f9f70,_0x179b4e,_0x10741e,_0x35ad48);},'aZHDj':'pre-check','Lqekr':'grid-profile','DErOB':function(_0x519d96,_0x21b2ca){return _0x519d96===_0x21b2ca;},'ylyZL':'DRIqV','DlZSB':_0x386caf(0xdc),'uDrLD':function(_0x2d2fa8,_0x58da74){return _0x2d2fa8(_0x58da74);},'EUirF':function(_0x32a938,_0x1f270b){return _0x32a938===_0x1f270b;},'DPPEq':_0x386caf(0x16a),'hdHaq':function(_0x4ac4fe,_0x2d0d5b,_0x100098,_0x493652,_0x21179a,_0x1f79d7,_0x7c4093,_0x8855e3){return _0x4ac4fe(_0x2d0d5b,_0x100098,_0x493652,_0x21179a,_0x1f79d7,_0x7c4093,_0x8855e3);},'mXXFG':_0x386caf(0xea),'vGvXn':function(_0x1b5618,_0x118fd8){return _0x1b5618!==_0x118fd8;},'esMkj':'kutfm','tLKfw':_0x386caf(0x97),'HqJBj':'tlfjJ','miuGJ':_0x386caf(0x14b),'aEIYn':_0x386caf(0xdf),'vFGTb':'bxyfi','HmOYn':_0x386caf(0x8c),'KyXmV':function(_0x4c9776,_0x5e8df1){return _0x4c9776===_0x5e8df1;},'HcyGd':_0x386caf(0x101),'lmoga':'eHNNt','NgvMQ':function(_0x49f93f,_0x473699,_0x58d512,_0x5dd426,_0x2aa429,_0x3963b1,_0x5dfb4e,_0x57ff5a){return _0x49f93f(_0x473699,_0x58d512,_0x5dd426,_0x2aa429,_0x3963b1,_0x5dfb4e,_0x57ff5a);}};let _0x1c5f83;try{if(_0xfb6a61[_0x386caf(0xdb)](_0xfb6a61['sNkMU'],_0xfb6a61[_0x386caf(0x12e)]))_0x4b49fc[_0x386caf(0xe1)](0x1);else{if(_0x388c90[_0x386caf(0xfb)]||_0x388c90[_0x386caf(0xae)]||_0x388c90[_0x386caf(0xb3)]){if(_0xfb6a61[_0x386caf(0x9d)](_0xfb6a61[_0x386caf(0x96)],_0xfb6a61[_0x386caf(0xe6)]))_0x48bfa7[_0x386caf(0x95)](_0x386caf(0x13c)+_0x53d1e6[_0x386caf(0x98)]+'\x20'),_0x459bfc[_0x386caf(0xae)]=_0x257a56[_0x386caf(0x98)];else{const _0x415552=[];!_0x388c90[_0x386caf(0xfb)]&&(_0xfb6a61[_0x386caf(0x9d)](_0xfb6a61['XAeZb'],_0xfb6a61[_0x386caf(0x15c)])?_0x415552[_0x386caf(0x116)](_0xfb6a61[_0x386caf(0x100)]):_0x34b74e[_0x386caf(0x95)](_0x386caf(0xab)+_0x2f5116[_0x386caf(0xfb)]+'`\x20already\x20exists'));;!_0x388c90['cloudProvider']&&(_0xfb6a61[_0x386caf(0x9d)](_0xfb6a61[_0x386caf(0x146)],_0xfb6a61[_0x386caf(0x146)])?_0x415552[_0x386caf(0x116)](_0xfb6a61[_0x386caf(0x11a)]):_0x522034['push'](_0xfb6a61['myYRj']));;if(!_0x388c90[_0x386caf(0xb3)]){if(_0xfb6a61[_0x386caf(0x160)](_0xfb6a61[_0x386caf(0x106)],_0xfb6a61['VfamF'])){const _0x400b62={};_0x400b62['description']=_0xfb6a61[_0x386caf(0xf3)],_0x400b62[_0x386caf(0x15d)]=_0xfb6a61[_0x386caf(0x12c)];const _0x111418={};_0x111418[_0x386caf(0x80)]=_0xfb6a61['VnjOw'],_0x111418[_0x386caf(0x15d)]=_0xfb6a61[_0x386caf(0x12c)];const _0x163527={};_0x163527[_0x386caf(0x80)]=_0xfb6a61[_0x386caf(0xdd)],_0x163527[_0x386caf(0x15d)]=_0xfb6a61['HfSuQ'];const _0x22c92e={};_0x22c92e[_0x386caf(0x80)]=_0xfb6a61['WLGMS'],_0x22c92e[_0x386caf(0x15d)]=_0xfb6a61['HfSuQ'];const _0x7e7941={};return _0x7e7941[_0x386caf(0x13d)]=_0x400b62,_0x7e7941['cloud-provider']=_0x111418,_0x7e7941['region']=_0x163527,_0x7e7941[_0x386caf(0x118)]=_0x22c92e,_0x2c5a83[_0x386caf(0xcc)](_0x4fe6f4['pre_check'])['epilogue'](_0x4a18c4)[_0x386caf(0x120)](_0x7e7941)['help'](_0xfb6a61['PshmN'])[_0x386caf(0xbe)];}else _0x415552[_0x386caf(0x116)](_0xfb6a61['XqkuF']);};if(_0xfb6a61['dMspS'](_0x415552['length'],0x0)){if(_0xfb6a61[_0x386caf(0x8b)](_0xfb6a61[_0x386caf(0xa5)],_0xfb6a61[_0x386caf(0xc7)])){const _0xec4ba5={};_0xec4ba5[_0x386caf(0x15d)]=_0x38187c['LOG'],_0xec4ba5[_0x386caf(0x155)]=_0xde2d5a,_0x50395a[_0x386caf(0x178)](_0x1d221c,_0xec4ba5,_0xfb6a61[_0x386caf(0xc8)],!![]);}else _0x1c5f83=_0x386caf(0xf5)+_0x415552[_0x386caf(0x90)](',\x20')+_0x386caf(0xca),await _0xfb6a61['UVBaZ'](reportToGalactusAndSendToEDS,_0x388c90,_0x299032,_0x1c5f83,messageTypes[_0x386caf(0x130)],_0xfb6a61[_0x386caf(0x140)],_0xfb6a61[_0x386caf(0x8f)],_0xfb6a61[_0x386caf(0xc8)]),logger[_0x386caf(0x164)](_0x1c5f83),process['exit'](0x1);}!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x386caf(0xde)](_0x388c90['cloudProvider']['toLowerCase']())&&(_0xfb6a61[_0x386caf(0x10a)](_0xfb6a61[_0x386caf(0xa4)],_0xfb6a61[_0x386caf(0xa4)])?(_0x1c5f83=_0xfb6a61[_0x386caf(0xf7)],await _0xfb6a61[_0x386caf(0xc5)](reportToGalactusAndSendToEDS,_0x388c90,_0x299032,_0x1c5f83,messageTypes[_0x386caf(0x130)],_0xfb6a61['eqQtA'],_0xfb6a61['keczi'],_0xfb6a61['tTCJM']),logger[_0x386caf(0x164)](_0x1c5f83),!_0x388c90[_0x386caf(0xae)]&&(_0xfb6a61['AaDOS'](_0xfb6a61[_0x386caf(0x16e)],_0xfb6a61[_0x386caf(0x119)])?(logger[_0x386caf(0x95)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x388c90[_0x386caf(0xae)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']):_0x426c75+=_0x386caf(0x147)+_0x14b6a8[_0x386caf(0xfb)]+'\x20'+(_0x4894a4?_0xfb6a61['HWkqG']:_0xfb6a61[_0x386caf(0xd4)])+'\x0a\x0a')):(_0x1889d3[_0x386caf(0x95)]('['+_0x5edca7+_0x386caf(0xc3)+_0x21b3c7[_0x386caf(0xd3)]+_0x386caf(0x79)+_0x242274[_0x386caf(0xec)]+_0x386caf(0x169)+_0x61027e[_0x386caf(0x164)]),_0x3b13a1[_0x386caf(0x164)]&&_0x255f31['error']('error\x20stack\x20:\x20'+_0xc522fa[_0x386caf(0x164)][_0x386caf(0xb8)]))),global_registry['clusterName']=_0x388c90['clusterName'],global_registry[_0x386caf(0xae)]=_0x388c90[_0x386caf(0xae)],global_registry[_0x386caf(0x77)]=_0x388c90[_0x386caf(0xb3)];}}else{if(_0x388c90[_0x386caf(0x151)]){if(_0xfb6a61[_0x386caf(0xdb)](_0xfb6a61[_0x386caf(0xa1)],_0xfb6a61[_0x386caf(0x150)])){global_registry[_0x386caf(0x151)]=_0x388c90['gridProfile'],logger[_0x386caf(0xee)](_0x386caf(0x108)+_0x388c90['gridProfile']);const _0x3f9cd9=_0x386caf(0x16b)+AG_API_URL+_0x386caf(0x128),_0x87d202={};_0x87d202['method']=_0xfb6a61[_0x386caf(0xed)],_0x87d202[_0x386caf(0x91)]=global_registry['authHeader'],_0x87d202[_0x386caf(0xd2)]=![];const _0x2215f3=_0x87d202,_0x1f27f4=await _0xfb6a61[_0x386caf(0x168)](got,_0x3f9cd9,_0x2215f3),_0x283332=await _0xfb6a61['PCoWL'](responseValidation,_0x1f27f4,_0xfb6a61[_0x386caf(0xf4)],_0xfb6a61['Lqekr'],_0x388c90,_0x299032);let _0x2170d9={};if(_0xfb6a61[_0x386caf(0x9d)](_0x283332,0xc8)){if(_0xfb6a61[_0x386caf(0x114)](_0xfb6a61[_0x386caf(0x15a)],_0xfb6a61[_0x386caf(0x84)]))_0x3d1af5[_0x386caf(0x164)](_0x386caf(0x177)+_0x585408[_0x386caf(0x164)][_0x386caf(0xb8)]);else{const _0x5f549c=JSON[_0x386caf(0x14d)](_0x1f27f4[_0x386caf(0x107)]),_0x511bb8=_0x5f549c['find'](_0x41f772=>_0x41f772['name']===_0x388c90[_0x386caf(0x151)])||null;if(_0xfb6a61['uDrLD'](isUndefined,_0x511bb8))_0xfb6a61[_0x386caf(0x153)](_0xfb6a61[_0x386caf(0xfd)],_0xfb6a61['DPPEq'])?(_0x1c5f83=_0x386caf(0xbb)+_0x388c90[_0x386caf(0x151)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0xfb6a61[_0x386caf(0xb1)](reportToGalactusAndSendToEDS,_0x388c90,_0x299032,_0x1c5f83,messageTypes[_0x386caf(0x130)],_0xfb6a61[_0x386caf(0x140)],_0xfb6a61[_0x386caf(0xce)],_0xfb6a61[_0x386caf(0xc8)]),logger['error'](_0x1c5f83),process[_0x386caf(0xe1)](0x1)):(_0x3a7a91+=_0xfb6a61[_0x386caf(0x154)],_0x587d08+=_0x386caf(0xcf)+(_0x346794[_0x386caf(0x155)]||_0xfb6a61[_0x386caf(0x13e)])+'\x0a',_0x1c16f2+=_0x386caf(0xa0)+(_0x2cac2d['code']||_0xfb6a61[_0x386caf(0x13e)])+'\x0a',_0x599afb+='\x20\x20Stack:\x20'+(_0x477232[_0x386caf(0xb8)]||_0xfb6a61['UzNsK'])+'\x0a');else{if(_0xfb6a61[_0x386caf(0xe8)](_0xfb6a61['esMkj'],_0xfb6a61[_0x386caf(0xd6)]))_0x2170d9=_0x511bb8;else{const {header:_0x5519f6,response:_0x494d15}=_0x57bcb8,{status:_0x3a4400,data:_0x52fde2,error:_0x5aa1c7}=_0x494d15;_0x408a84+=_0x5519f6+'\x20#'+_0xfb6a61[_0x386caf(0x14c)](_0x5759c0,0x1)+'\x0a',_0x2af844+=_0x386caf(0xa3)+(_0x3a4400?_0xfb6a61[_0x386caf(0xf1)]:_0xfb6a61[_0x386caf(0x122)])+'\x0a',_0xf899b2+=_0x386caf(0x165)+_0xfb6a61['VPmST'](_0x52fde2,_0xfb6a61[_0x386caf(0x13e)])+'\x0a',_0x5aa1c7&&(_0x23e1da+=_0xfb6a61['pTWUm'],_0x4116c9+='\x20\x20Message:\x20'+(_0x5aa1c7[_0x386caf(0x155)]||_0xfb6a61[_0x386caf(0x13e)])+'\x0a',_0x332ad7+=_0x386caf(0xa0)+(_0x5aa1c7['code']||_0xfb6a61[_0x386caf(0x13e)])+'\x0a',_0xfdfeef+=_0x386caf(0xfc)+(_0x5aa1c7['stack']||_0xfb6a61[_0x386caf(0x13e)])+'\x0a'),_0x42e1d9+='\x0a\x0a';}}}}else _0xfb6a61[_0x386caf(0xdb)](_0xfb6a61[_0x386caf(0x175)],_0xfb6a61[_0x386caf(0x175)])?_0x2a1aff[_0x386caf(0x116)](_0xfb6a61[_0x386caf(0x15e)]):process[_0x386caf(0xe1)](0x1);const _0x144f3c={};_0x144f3c[_0x386caf(0x15d)]=WS_EVENTS['LOG'],_0x144f3c[_0x386caf(0x155)]=_0xfb6a61[_0x386caf(0x93)],webSocketUtils[_0x386caf(0x178)](_0x299032,_0x144f3c),global_registry['cloudProvider']=_0x2170d9[_0x386caf(0xae)],global_registry[_0x386caf(0x77)]=_0x2170d9[_0x386caf(0xb3)],global_registry['clusterName']=_0x2170d9['clusterName'];}else _0x4fa52e['push'](_0xfb6a61[_0x386caf(0x11a)]);}else _0xfb6a61[_0x386caf(0x160)](_0xfb6a61[_0x386caf(0xd1)],_0xfb6a61[_0x386caf(0x12b)])?_0x2ce86e=_0x829d2b:(logger[_0x386caf(0x164)](_0xfb6a61[_0x386caf(0xe0)]),process[_0x386caf(0xe1)](0x1));}}}catch(_0x17b5f7){_0xfb6a61[_0x386caf(0x8e)](_0xfb6a61['HcyGd'],_0xfb6a61[_0x386caf(0x76)])?_0x327ac0+=_0x386caf(0x147)+_0x44bcf6[_0x386caf(0xfb)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':(_0x1c5f83=_0x386caf(0x172)+_0x17b5f7+':\x20'+_0x17b5f7[_0x386caf(0xb8)],logger['error'](_0x1c5f83),await _0xfb6a61[_0x386caf(0x135)](reportToGalactusAndSendToEDS,_0x388c90,_0x299032,_0x1c5f83,messageTypes['ERROR'],_0xfb6a61[_0x386caf(0x140)],_0xfb6a61[_0x386caf(0xbd)],_0xfb6a61['tTCJM']),process[_0x386caf(0xe1)](0x1));}}function printResponse(_0x42a980,_0x3b4f89){const _0x203446=a17_0x42cf53,_0x46f623={};_0x46f623[_0x203446(0xad)]=_0x203446(0x8c),_0x46f623['PdHzT']=function(_0x1c9c42,_0x42dcd0){return _0x1c9c42!==_0x42dcd0;},_0x46f623['IGSuH']='ZliMq',_0x46f623[_0x203446(0x111)]=_0x203446(0x74);const _0x4db549=_0x46f623;logger[_0x203446(0x95)]('['+_0x42a980+_0x203446(0xc3)+_0x3b4f89[_0x203446(0xd3)]+_0x203446(0x79)+_0x3b4f89['data']+_0x203446(0x169)+_0x3b4f89[_0x203446(0x164)]),_0x3b4f89[_0x203446(0x164)]&&(_0x4db549[_0x203446(0x14e)](_0x4db549[_0x203446(0xe3)],_0x4db549[_0x203446(0x111)])?logger['error'](_0x203446(0x177)+_0x3b4f89[_0x203446(0x164)][_0x203446(0xb8)]):(_0x671fea[_0x203446(0x164)](_0x4db549[_0x203446(0xad)]),_0x1a221a[_0x203446(0xe1)](0x1)));}async function generateReport(_0x29ec8a,_0x3218bf){const _0x4b2745=a17_0x42cf53,_0x1bbc1a={'dcQpP':function(_0x1a23d3,_0x3baf7a){return _0x1a23d3+_0x3baf7a;},'pPccJ':_0x4b2745(0x148),'ueLMS':_0x4b2745(0x136),'DhaTM':function(_0x2c7041,_0xcd5afb){return _0x2c7041||_0xcd5afb;},'ucIZu':_0x4b2745(0x11e),'bNEhq':_0x4b2745(0xe7),'IuxTO':_0x4b2745(0x110),'XwhNA':function(_0x1c0324,_0x1913b8){return _0x1c0324!=_0x1913b8;},'Vxkal':_0x4b2745(0x174),'RgIgR':'will\x20be\x20created','xCVCj':function(_0x5a6965){return _0x5a6965();}};let _0x24af93=_0x4b2745(0x143)+global_registry[_0x4b2745(0xae)]+_0x4b2745(0x149);return _0x29ec8a[_0x4b2745(0xcd)]((_0x420da1,_0x4b30b1)=>{const _0x5dd41a=_0x4b2745,{header:_0x3cf69e,response:_0x363212}=_0x420da1,{status:_0x7e6c2c,data:_0xd77e05,error:_0x3fde73}=_0x363212;_0x24af93+=_0x3cf69e+'\x20#'+_0x1bbc1a[_0x5dd41a(0x162)](_0x4b30b1,0x1)+'\x0a',_0x24af93+=_0x5dd41a(0xa3)+(_0x7e6c2c?_0x1bbc1a['pPccJ']:_0x1bbc1a[_0x5dd41a(0x103)])+'\x0a',_0x24af93+='Message:\x20'+_0x1bbc1a['DhaTM'](_0xd77e05,_0x1bbc1a[_0x5dd41a(0x156)])+'\x0a',_0x3fde73&&(_0x24af93+=_0x1bbc1a[_0x5dd41a(0x15b)],_0x24af93+='\x20\x20Message:\x20'+(_0x3fde73[_0x5dd41a(0x155)]||_0x1bbc1a[_0x5dd41a(0x156)])+'\x0a',_0x24af93+='\x20\x20Code:\x20'+(_0x3fde73[_0x5dd41a(0xfa)]||_0x1bbc1a['ucIZu'])+'\x0a',_0x24af93+='\x20\x20Stack:\x20'+(_0x3fde73['stack']||_0x1bbc1a['ucIZu'])+'\x0a'),_0x24af93+='\x0a\x0a';}),_0x24af93+=_0x1bbc1a[_0x4b2745(0xa9)],_0x1bbc1a[_0x4b2745(0x88)](_0x3218bf,null)?_0x24af93+='Cluster\x20'+global_registry[_0x4b2745(0xfb)]+'\x20'+(_0x3218bf?_0x1bbc1a[_0x4b2745(0xeb)]:_0x1bbc1a[_0x4b2745(0xb0)])+'\x0a\x0a':_0x24af93+='Cluster\x20'+global_registry[_0x4b2745(0xfb)]+_0x4b2745(0x7b),_0x24af93+=_0x1bbc1a[_0x4b2745(0xbf)](getSystemMetaData),_0x24af93;}function a17_0x413e(_0x307b5a,_0x11bc54){const _0x467f43=a17_0x467f();return a17_0x413e=function(_0x413e9e,_0x55b0fc){_0x413e9e=_0x413e9e-0x74;let _0x571fa9=_0x467f43[_0x413e9e];return _0x571fa9;},a17_0x413e(_0x307b5a,_0x11bc54);};exports['handler']=async function(_0xf2a7d3){const _0x3ab2a4=a17_0x42cf53,_0x23d81a={'MBwlS':function(_0x2a5409){return _0x2a5409();},'YEEot':function(_0x4fe3f7){return _0x4fe3f7();},'mCSso':_0x3ab2a4(0x144),'hdnGv':function(_0x570f88,_0x2ed002,_0x37a282,_0x19bbcc,_0xa15980,_0x1321d4,_0x3784a8,_0x3b17a7){return _0x570f88(_0x2ed002,_0x37a282,_0x19bbcc,_0xa15980,_0x1321d4,_0x3784a8,_0x3b17a7);},'NbRgq':_0x3ab2a4(0xc1),'rzzfS':'credential-not-found','eakcm':_0x3ab2a4(0x164),'ODiJB':function(_0xf5e606,_0x16bf06,_0x50a858,_0x6548ab,_0x3278d9,_0x4e8979,_0xac6048){return _0xf5e606(_0x16bf06,_0x50a858,_0x6548ab,_0x3278d9,_0x4e8979,_0xac6048);},'ILNLe':function(_0x24f72c){return _0x24f72c();},'oJIFn':_0x3ab2a4(0x94),'gAZED':'<PasswordPlaceholder>','uWAWK':function(_0x48af9e,_0x225bd7,_0x3e7f55){return _0x48af9e(_0x225bd7,_0x3e7f55);},'NmOxC':'dummy-grid','JVeyQ':'toolInstalledResp','knklt':_0x3ab2a4(0xc9),'lxCJv':function(_0x2e6635,_0x17b6f7,_0x8fba94){return _0x2e6635(_0x17b6f7,_0x8fba94);},'oTEXu':_0x3ab2a4(0x13f),'zuEmD':function(_0x4e1fa3){return _0x4e1fa3();},'Nupfx':function(_0x2fd126,_0x312668,_0x24d95a){return _0x2fd126(_0x312668,_0x24d95a);},'ezrAA':_0x3ab2a4(0x117),'CJaIX':function(_0x4a1aa2,_0x388460){return _0x4a1aa2(_0x388460);},'gCIzO':_0x3ab2a4(0x10f),'rwdhh':function(_0x70ee68,_0x3d38c9,_0x27a490){return _0x70ee68(_0x3d38c9,_0x27a490);},'eWfTD':_0x3ab2a4(0x127),'aRkUG':'Tool\x20Installed','qsczB':_0x3ab2a4(0x11f),'kGvaH':_0x3ab2a4(0xac),'gefHH':_0x3ab2a4(0x131),'vwCut':function(_0x1643e3,_0x37454b,_0x490df5){return _0x1643e3(_0x37454b,_0x490df5);},'iYSzw':function(_0x49a519,_0x50b073){return _0x49a519+_0x50b073;},'ugZhG':_0x3ab2a4(0x171),'SvMQg':_0x3ab2a4(0x16f)};let _0x354033,_0x3685ba;try{global_registry[_0x3ab2a4(0x15f)]=_0x23d81a[_0x3ab2a4(0x163)](uuidv4);!fs[_0x3ab2a4(0x9f)](_0x23d81a[_0x3ab2a4(0x170)](getCredentialsPath))&&(_0x3685ba=_0x23d81a[_0x3ab2a4(0xda)],logger['error'](_0x3685ba),await _0x23d81a[_0x3ab2a4(0xb9)](reportToGalactusAndSendToEDS,_0xf2a7d3,_0x354033,_0x3685ba,messageTypes[_0x3ab2a4(0x130)],_0x23d81a['NbRgq'],_0x23d81a[_0x3ab2a4(0x16c)],_0x23d81a[_0x3ab2a4(0x145)]),process[_0x3ab2a4(0xe1)](0x1));_0x23d81a['ODiJB'](sendInstrumentationEvent,_0xf2a7d3,_0x23d81a[_0x3ab2a4(0x109)],messageTypes['INFO'],null,null,_0xf2a7d3);const _0x362a03=JSON[_0x3ab2a4(0x14d)](fs[_0x3ab2a4(0x157)](_0x23d81a[_0x3ab2a4(0x102)](getCredentialsPath)));global_registry[_0x3ab2a4(0x104)]=_0x362a03['Browserstack'][_0x3ab2a4(0x14a)],global_registry[_0x3ab2a4(0x134)]=_0x362a03['Browserstack'][_0x3ab2a4(0x10e)];const _0x3e1786=WS_ENDPOINT[_0x3ab2a4(0x13b)](_0x23d81a[_0x3ab2a4(0xd0)],_0x362a03[_0x3ab2a4(0x75)][_0x3ab2a4(0x14a)])[_0x3ab2a4(0x13b)](_0x23d81a['gAZED'],_0x362a03[_0x3ab2a4(0x75)]['password']),_0x1e99b3={};_0x1e99b3[_0x3ab2a4(0xf8)]=ws,_0x1e99b3[_0x3ab2a4(0x129)]=0x36ee80,_0x354033=new ReconnectingWebSocket(_0x3e1786,[],_0x1e99b3),global_registry[_0x3ab2a4(0xcb)]=_0x23d81a[_0x3ab2a4(0x161)](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),await _0x23d81a['uWAWK'](inputValidation,_0xf2a7d3,_0x354033),logger[_0x3ab2a4(0x95)](_0x3ab2a4(0x83)+global_registry['cloudProvider']+_0x3ab2a4(0x85)+global_registry[_0x3ab2a4(0x77)]);let _0x4b127f=await _0x23d81a[_0x3ab2a4(0x7f)](getCloudProviderObjectWithOutInit,global_registry[_0x3ab2a4(0xae)],global_registry[_0x3ab2a4(0xfb)],_0x23d81a['NmOxC'],_0x354033,webSocketUtils,_0xf2a7d3);const _0x17bf8a=await _0x4b127f['isCliToolInstalled']();_0x23d81a[_0x3ab2a4(0x161)](printResponse,_0x23d81a['JVeyQ'],_0x17bf8a),_0x4b127f=await _0x4b127f[_0x3ab2a4(0x105)]();let _0x2c723d=![];try{_0x2c723d=await _0x4b127f['isClusterPresent']();}catch(_0x40f3ca){const _0x2d8fa0=_0x23d81a['knklt'][_0x3ab2a4(0xe5)]('|');let _0x4ac2f9=0x0;while(!![]){switch(_0x2d8fa0[_0x4ac2f9++]){case'0':logger[_0x3ab2a4(0x164)](_0x3685ba);continue;case'1':_0x3685ba=_0x3ab2a4(0x7e)+global_registry[_0x3ab2a4(0xfb)]+_0x3ab2a4(0x113)+global_registry[_0x3ab2a4(0x77)]+'`\x20,error\x20:\x20'+_0x40f3ca;continue;case'2':_0x2c723d=null;continue;case'3':_0x3685ba+='\x0a'+JSON[_0x3ab2a4(0x89)](_0x40f3ca['stack']);continue;case'4':await _0x23d81a[_0x3ab2a4(0xb9)](reportToGalactusAndSendToEDS,_0xf2a7d3,_0x354033,_0x3685ba,messageTypes[_0x3ab2a4(0x130)],_0x23d81a[_0x3ab2a4(0x109)],'cluster-check-failed-'+global_registry['cloudProvider'],_0x23d81a[_0x3ab2a4(0x145)]);continue;}break;}}_0x2c723d&&logger['info']('Cluster\x20`'+global_registry[_0x3ab2a4(0xfb)]+_0x3ab2a4(0x7c));const _0x1c3906=await _0x4b127f[_0x3ab2a4(0xa8)]();_0x23d81a[_0x3ab2a4(0xd8)](printResponse,_0x23d81a[_0x3ab2a4(0x99)],_0x1c3906);const _0x3e4c12=await _0x23d81a[_0x3ab2a4(0xf0)](curlRequest);_0x23d81a[_0x3ab2a4(0xaf)](printResponse,_0x23d81a[_0x3ab2a4(0xbc)],_0x3e4c12);const _0x173bff=await _0x23d81a[_0x3ab2a4(0x12f)](isTlsSupported,_0x23d81a['gCIzO']);_0x23d81a[_0x3ab2a4(0xc6)](printResponse,_0x23d81a[_0x3ab2a4(0xf2)],_0x173bff);const _0x4fe7f4={};_0x4fe7f4[_0x3ab2a4(0x9a)]=_0x23d81a[_0x3ab2a4(0x9b)],_0x4fe7f4['response']=_0x17bf8a;const _0x3e69ff={};_0x3e69ff[_0x3ab2a4(0x9a)]=_0x23d81a[_0x3ab2a4(0x11d)],_0x3e69ff[_0x3ab2a4(0xfe)]=_0x1c3906;const _0x1d1f41={};_0x1d1f41[_0x3ab2a4(0x9a)]=_0x23d81a[_0x3ab2a4(0xb6)],_0x1d1f41['response']=_0x3e4c12;const _0xf4f330={};_0xf4f330['header']=_0x23d81a[_0x3ab2a4(0x82)],_0xf4f330[_0x3ab2a4(0xfe)]=_0x173bff;const _0x5152b2=[_0x4fe7f4,_0x3e69ff,_0x1d1f41,_0xf4f330],_0x184dc2=await _0x23d81a[_0x3ab2a4(0x159)](generateReport,_0x5152b2,_0x2c723d),_0x586a48=new Date(),_0x352f0c=_0x586a48[_0x3ab2a4(0xe9)]()+'_'+_0x23d81a[_0x3ab2a4(0x8a)](_0x586a48[_0x3ab2a4(0x9e)](),0x1)+'_'+_0x586a48[_0x3ab2a4(0xb5)]()+'_'+_0x586a48[_0x3ab2a4(0xa6)]()+'_'+_0x586a48[_0x3ab2a4(0xff)](),_0x24bdcf=_0x3ab2a4(0x158)+_0x352f0c+_0x3ab2a4(0x132);fs[_0x3ab2a4(0xb4)](_0x24bdcf,_0x184dc2,_0x23d81a['ugZhG']),logger[_0x3ab2a4(0x95)](_0x3ab2a4(0x141)+_0x24bdcf),process[_0x3ab2a4(0xe1)](0x0);}catch(_0x2b5bc7){let _0x15013c='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x2b5bc7+'\x20';logger[_0x3ab2a4(0x164)](_0x15013c),_0x15013c+='\x0a'+JSON['stringify'](_0x2b5bc7[_0x3ab2a4(0xb8)]),logger['debug'](_0x3ab2a4(0x86)+_0x2b5bc7[_0x3ab2a4(0xb8)]);if(_0x354033){const _0x4ac20d={};_0x4ac20d['type']=WS_EVENTS[_0x3ab2a4(0x7a)],_0x4ac20d[_0x3ab2a4(0x155)]=_0x15013c,webSocketUtils[_0x3ab2a4(0x178)](_0x354033,_0x4ac20d,_0x23d81a[_0x3ab2a4(0x145)],!![]);}await webSocketUtils[_0x3ab2a4(0x123)](0x7d0);const _0x1b3bc1={};_0x1b3bc1['error']=_0x15013c,await _0x23d81a[_0x3ab2a4(0x7f)](sendInstrumentationEvent,_0xf2a7d3,_0x23d81a[_0x3ab2a4(0x109)],messageTypes['ERROR'],_0x23d81a[_0x3ab2a4(0x152)],_0x1b3bc1,_0xf2a7d3),process[_0x3ab2a4(0xe1)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a18_0x34fce9=a18_0x1729;(function(_0x586507,_0x224201){const _0x5e8387=a18_0x1729,_0xb12650=_0x586507();while(!![]){try{const _0x16ecef=-parseInt(_0x5e8387(0x1ee))/0x1*(parseInt(_0x5e8387(0x1ed))/0x2)+-parseInt(_0x5e8387(0x1fe))/0x3*(-parseInt(_0x5e8387(0x1ec))/0x4)+parseInt(_0x5e8387(0x1e7))/0x5+-parseInt(_0x5e8387(0x1f6))/0x6+-parseInt(_0x5e8387(0x1e8))/0x7*(parseInt(_0x5e8387(0x1f1))/0x8)+parseInt(_0x5e8387(0x1f2))/0x9+parseInt(_0x5e8387(0x1ea))/0xa*(parseInt(_0x5e8387(0x1e9))/0xb);if(_0x16ecef===_0x224201)break;else _0xb12650['push'](_0xb12650['shift']());}catch(_0x477b9c){_0xb12650['push'](_0xb12650['shift']());}}}(a18_0x450b,0x22a78));function a18_0x1729(_0x21bc9b,_0x34404e){const _0x450bdd=a18_0x450b();return a18_0x1729=function(_0x1729dc,_0x5add49){_0x1729dc=_0x1729dc-0x1e7;let _0x581dea=_0x450bdd[_0x1729dc];return _0x581dea;},a18_0x1729(_0x21bc9b,_0x34404e);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x34fce9(0x1ef));function a18_0x450b(){const _0x410bd4=['42ZCLyCh','4946vPbhtu','../config/constants','usage','33448KsSSkJ','2022003ZsBTyD','command','builder','JSTtm','429786vkRzZl','desc','help','demandCommand','start_commands','handler','start','commandDir','6QkYXyU','strict','EYGlL','163235NlaHDg','441YboOWS','1077252jcPULW','30aQOLzl','recommendCommands','59468kvaGnh'];a18_0x450b=function(){return _0x410bd4;};return a18_0x450b();}exports[a18_0x34fce9(0x1f3)]=a18_0x34fce9(0x1fc),exports[a18_0x34fce9(0x1f7)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a18_0x34fce9(0x1f4)]=function(_0x1cfb12){const _0x4d34ee=a18_0x34fce9,_0x41dbd9={};_0x41dbd9[_0x4d34ee(0x200)]=_0x4d34ee(0x1fa),_0x41dbd9[_0x4d34ee(0x1f5)]=_0x4d34ee(0x1f8);const _0x34fc11=_0x41dbd9;return _0x1cfb12[_0x4d34ee(0x1f0)](HELP_HEADER_MESSAGE[_0x4d34ee(0x1fc)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4d34ee(0x1fd)](_0x34fc11['EYGlL'])[_0x4d34ee(0x1f9)]()[_0x4d34ee(0x1eb)]()[_0x4d34ee(0x1ff)]()['help'](_0x34fc11[_0x4d34ee(0x1f5)]);},exports[a18_0x34fce9(0x1fb)]=function(_0x4d3ada){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a19_0x189e(){const _0x4481ff=['WrvDO','unauthorised','grid','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Skip\x20insecure\x20cert\x20verification.','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','desc','help','argv','WHaUy','stringify','type','info','username','UYLKR','builder','ERROR','command','description','INFO','default','evfEi','grid-id','UgulM','connectionTimeout','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','kskwb','statusCode','server-error','skipTlsCertVerify','../../utils/gridComponents','../../utils/createk8sClient','debug','Grid\x20started','error','bstackUsername','<PasswordPlaceholder>','body','invalid-grid-id','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','ZKHZL','14vcVOft','init-not-called','wvbtR','jbJli','JfWAz','reconnecting-websocket','clusterName','replace','password','19756HDMUwS','Adding\x20Websocket\x20listeners','95nRtIPp','6451272rSWbYc','123xEHDBb','addListeners','bstackAccesskey','4164yoLGvc','OCkGF','WebSocket','Starting\x20grid\x20','message','qVyLV','UIHYq','388712puZZAx','Start\x20an\x20existing\x20Automation\x20grid.','name','usage','readFileSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','user','options','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','bWQhz','286356EKSWon','Browserstack','../../utils/instrumentationUtils','Njujf','bWuQe','81237efKEhs','105pIimcL','boolean','nqLjZ','exit','80684jtGEtF','region','../../utils/utilityMethods','10687860PFjAmz','gridId','existsSync','cloudProvider','jedos','stack','oIDmd'];a19_0x189e=function(){return _0x4481ff;};return a19_0x189e();}const a19_0x82ae23=a19_0x4a0f;(function(_0x5344f3,_0x51cdda){const _0x25a1d2=a19_0x4a0f,_0x2ad563=_0x5344f3();while(!![]){try{const _0x457ac4=-parseInt(_0x25a1d2(0x8a))/0x1*(-parseInt(_0x25a1d2(0xc2))/0x2)+parseInt(_0x25a1d2(0xcf))/0x3*(-parseInt(_0x25a1d2(0x8f))/0x4)+parseInt(_0x25a1d2(0xcd))/0x5*(-parseInt(_0x25a1d2(0x85))/0x6)+-parseInt(_0x25a1d2(0x8b))/0x7*(-parseInt(_0x25a1d2(0x7b))/0x8)+-parseInt(_0x25a1d2(0xce))/0x9+parseInt(_0x25a1d2(0x92))/0xa+parseInt(_0x25a1d2(0xcb))/0xb*(parseInt(_0x25a1d2(0xd2))/0xc);if(_0x457ac4===_0x51cdda)break;else _0x2ad563['push'](_0x2ad563['shift']());}catch(_0x4d7713){_0x2ad563['push'](_0x2ad563['shift']());}}}(a19_0x189e,0x838ff));function a19_0x4a0f(_0x5c7204,_0x5b2e36){const _0x189e15=a19_0x189e();return a19_0x4a0f=function(_0x4a0f25,_0x356bae){_0x4a0f25=_0x4a0f25-0x75;let _0x5dcec1=_0x189e15[_0x4a0f25];return _0x5dcec1;},a19_0x4a0f(_0x5c7204,_0x5b2e36);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x82ae23(0xc7)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x82ae23(0x91)),{scaleUpHubDeployment}=require(a19_0x82ae23(0xb7)),{sendInstrumentationEvent}=require(a19_0x82ae23(0x87)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x82ae23(0xb8)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x82ae23(0xaa)]=a19_0x82ae23(0x9b),exports[a19_0x82ae23(0x9f)]=a19_0x82ae23(0x7c),exports[a19_0x82ae23(0xa8)]=function(_0x2fa2d0){const _0x4bf6c8=a19_0x82ae23,_0x482a2c={};_0x482a2c[_0x4bf6c8(0xb0)]=_0x4bf6c8(0xc0),_0x482a2c['bWuQe']='string',_0x482a2c[_0x4bf6c8(0xc1)]=_0x4bf6c8(0x9d),_0x482a2c['qVyLV']=_0x4bf6c8(0x8c),_0x482a2c[_0x4bf6c8(0xc5)]='help';const _0x5d8a15=_0x482a2c,_0x560df8={};_0x560df8[_0x4bf6c8(0xab)]=_0x5d8a15[_0x4bf6c8(0xb0)],_0x560df8[_0x4bf6c8(0xa4)]=_0x5d8a15[_0x4bf6c8(0x89)];const _0x13b9eb={};_0x13b9eb[_0x4bf6c8(0xab)]=_0x5d8a15['ZKHZL'],_0x13b9eb[_0x4bf6c8(0xa4)]=_0x5d8a15[_0x4bf6c8(0x79)],_0x13b9eb[_0x4bf6c8(0xad)]=![];const _0x22b65a={};return _0x22b65a[_0x4bf6c8(0xaf)]=_0x560df8,_0x22b65a['skip-tls-cert-verify']=_0x13b9eb,_0x2fa2d0[_0x4bf6c8(0x7e)](HELP_HEADER_MESSAGE['start'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4bf6c8(0x82)](_0x22b65a)[_0x4bf6c8(0xa0)](_0x5d8a15['jbJli'])[_0x4bf6c8(0xa1)];},exports['handler']=async function(_0x27cbf1){const _0x5dbc44=a19_0x82ae23,_0x1a3356={'nqLjZ':_0x5dbc44(0xb2),'JfWAz':function(_0x593aa1){return _0x593aa1();},'avRqJ':_0x5dbc44(0x83),'Njujf':function(_0xa90c32,_0xea941d,_0x524d60,_0x31008a,_0x133d53,_0x146b1f,_0xf71929){return _0xa90c32(_0xea941d,_0x524d60,_0x31008a,_0x133d53,_0x146b1f,_0xf71929);},'jedos':'start-grid-called','WrvDO':_0x5dbc44(0xc3),'RfvWw':function(_0x32bf33){return _0x32bf33();},'bWQhz':'<UsernamePlaceholder>','wvbtR':_0x5dbc44(0xbd),'LYDiW':_0x5dbc44(0xcc),'boFdW':function(_0x32d6e5,_0x24037a,_0x93005d,_0x511602){return _0x32d6e5(_0x24037a,_0x93005d,_0x511602);},'OCkGF':function(_0x5e4593,_0x59d9a1,_0x56c4b4){return _0x5e4593(_0x59d9a1,_0x56c4b4);},'UYLKR':function(_0xbdc636,_0x484b0a,_0x3808cb){return _0xbdc636(_0x484b0a,_0x3808cb);},'WHaUy':_0x5dbc44(0xba),'evfEi':function(_0x37bc4e,_0x4c57f3){return _0x37bc4e===_0x4c57f3;},'kskwb':_0x5dbc44(0x80),'UIHYq':_0x5dbc44(0x9a),'oIDmd':_0x5dbc44(0xbf),'ZqQzc':_0x5dbc44(0xb5)};let _0x34a345;try{!_0x27cbf1[_0x5dbc44(0x93)]&&(logger[_0x5dbc44(0xbb)](_0x1a3356[_0x5dbc44(0x8d)]),process[_0x5dbc44(0x8e)](0x1));!fs[_0x5dbc44(0x94)](_0x1a3356[_0x5dbc44(0xc6)](getCredentialsPath))&&(logger[_0x5dbc44(0xbb)](_0x1a3356['avRqJ']),await _0x1a3356[_0x5dbc44(0x88)](sendInstrumentationEvent,_0x27cbf1,_0x1a3356[_0x5dbc44(0x96)],messageTypes[_0x5dbc44(0xa9)],_0x1a3356[_0x5dbc44(0x99)],null,_0x27cbf1),process[_0x5dbc44(0x8e)](0x1));logger[_0x5dbc44(0xa5)](_0x5dbc44(0x77)+_0x27cbf1[_0x5dbc44(0x93)]),await _0x1a3356[_0x5dbc44(0x88)](sendInstrumentationEvent,_0x27cbf1,_0x1a3356[_0x5dbc44(0x96)],messageTypes[_0x5dbc44(0xac)],null,null,_0x27cbf1);const _0xd62598=JSON['parse'](fs[_0x5dbc44(0x7f)](_0x1a3356['RfvWw'](getCredentialsPath)));global_registry[_0x5dbc44(0xbc)]=_0xd62598[_0x5dbc44(0x86)]['username'],global_registry[_0x5dbc44(0xd1)]=_0xd62598[_0x5dbc44(0x86)][_0x5dbc44(0xca)];const _0x38f924=WS_ENDPOINT[_0x5dbc44(0xc9)](_0x1a3356[_0x5dbc44(0x84)],_0xd62598['Browserstack']['username'])[_0x5dbc44(0xc9)](_0x1a3356[_0x5dbc44(0xc4)],_0xd62598[_0x5dbc44(0x86)]['password']),_0x1eb902={};_0x1eb902[_0x5dbc44(0x76)]=ws,_0x1eb902[_0x5dbc44(0xb1)]=0x36ee80,_0x34a345=new ReconnectingWebSocket(_0x38f924,[],_0x1eb902),logger[_0x5dbc44(0xb9)](_0x1a3356['LYDiW']),webSocketUtils[_0x5dbc44(0xd0)](_0x34a345,_0x27cbf1[_0x5dbc44(0x81)],_0x27cbf1[_0x5dbc44(0xca)]);const [_0x4d38ba,_0x1e0600]=await _0x1a3356['boFdW'](getGridDetails,_0xd62598[_0x5dbc44(0x86)][_0x5dbc44(0xa6)],_0xd62598[_0x5dbc44(0x86)][_0x5dbc44(0xca)],_0x27cbf1[_0x5dbc44(0x93)]);if(_0x1e0600){const _0x23a539=_0x1e0600[_0x5dbc44(0xa5)];global_registry[_0x5dbc44(0x95)]=_0x23a539['cloudProvider'],global_registry['clusterRegion']=_0x23a539[_0x5dbc44(0x90)],global_registry[_0x5dbc44(0xc8)]=_0x23a539[_0x5dbc44(0xc8)];const _0x6cafce=await _0x1a3356[_0x5dbc44(0x88)](getCloudProviderObject,_0x23a539[_0x5dbc44(0x95)],_0x23a539['clusterName'],_0x23a539[_0x5dbc44(0x7d)],_0x34a345,webSocketUtils,_0x27cbf1),[_0x316399,_0x2e05df,_0x280cb3,_0x24a559,_0x114e41,_0x2c945b]=await _0x1a3356[_0x5dbc44(0x75)](createK8sClient,_0x6cafce,_0x27cbf1[_0x5dbc44(0xb6)]);await _0x1a3356[_0x5dbc44(0xa7)](scaleUpHubDeployment,_0x2e05df,_0x23a539['name']),logger['info'](_0x1a3356[_0x5dbc44(0xa2)]),process[_0x5dbc44(0x8e)](0x0);}_0x1a3356[_0x5dbc44(0xae)](_0x4d38ba[_0x5dbc44(0xb4)],0x191)&&(logger[_0x5dbc44(0xbb)](_0x1a3356[_0x5dbc44(0xb3)]),await _0x1a3356[_0x5dbc44(0x88)](sendInstrumentationEvent,_0x27cbf1,_0x1a3356[_0x5dbc44(0x96)],messageTypes[_0x5dbc44(0xa9)],_0x1a3356[_0x5dbc44(0x7a)],null,_0x27cbf1),process['exit'](0x1)),_0x1a3356[_0x5dbc44(0xae)](_0x4d38ba[_0x5dbc44(0xb4)],0x190)&&(logger[_0x5dbc44(0xbb)](JSON['parse'](_0x4d38ba[_0x5dbc44(0xbe)])[_0x5dbc44(0x78)]),await _0x1a3356[_0x5dbc44(0x88)](sendInstrumentationEvent,_0x27cbf1,_0x1a3356[_0x5dbc44(0x96)],messageTypes[_0x5dbc44(0xa9)],_0x1a3356[_0x5dbc44(0x98)],null,_0x27cbf1),process[_0x5dbc44(0x8e)](0x1)),logger['error'](_0x5dbc44(0x9c)+JSON[_0x5dbc44(0xa3)](_0x4d38ba)),await _0x1a3356[_0x5dbc44(0x88)](sendInstrumentationEvent,_0x27cbf1,_0x1a3356[_0x5dbc44(0x96)],messageTypes[_0x5dbc44(0xa9)],_0x1a3356['ZqQzc'],_0x4d38ba,_0x27cbf1),process[_0x5dbc44(0x8e)](0x1);}catch(_0x5788cf){const _0x50adda=_0x5dbc44(0x9e)+_0x5788cf+'\x20\x0a'+JSON['stringify'](_0x5788cf[_0x5dbc44(0x97)])+'\x20';logger['error'](_0x50adda),process[_0x5dbc44(0x8e)](0x1);}};
|
package/ats/src/commands/stop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x547f5c=a20_0x2783;function a20_0x2783(_0x93be7f,_0x4acc70){const _0x11ec89=a20_0x11ec();return a20_0x2783=function(_0x27836c,_0x5a29ca){_0x27836c=_0x27836c-0x132;let _0x488e2b=_0x11ec89[_0x27836c];return _0x488e2b;},a20_0x2783(_0x93be7f,_0x4acc70);}(function(_0xf640e9,_0x4f1dcc){const _0x3c7c1d=a20_0x2783,_0x4ab71c=_0xf640e9();while(!![]){try{const _0x524314=-parseInt(_0x3c7c1d(0x149))/0x1+parseInt(_0x3c7c1d(0x13d))/0x2*(-parseInt(_0x3c7c1d(0x146))/0x3)+-parseInt(_0x3c7c1d(0x136))/0x4+-parseInt(_0x3c7c1d(0x147))/0x5+-parseInt(_0x3c7c1d(0x13f))/0x6*(parseInt(_0x3c7c1d(0x143))/0x7)+-parseInt(_0x3c7c1d(0x144))/0x8+parseInt(_0x3c7c1d(0x13a))/0x9;if(_0x524314===_0x4f1dcc)break;else _0x4ab71c['push'](_0x4ab71c['shift']());}catch(_0xadb075){_0x4ab71c['push'](_0x4ab71c['shift']());}}}(a20_0x11ec,0x8d29a));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x547f5c(0x148));function a20_0x11ec(){const _0x2a7b30=['desc','handler','38047491SjaGow','SVhoX','stop','1473238PwVpcb','Stop\x20a\x20running\x20Automation\x20grid.','678906tNleJe','demandCommand','stop_commands','usage','7PEVoDU','4614320osjExQ','builder','3XRkVRK','4652515tkyjDj','../config/constants','1083773bINTqI','strict','help','command','Ikqal','833844LdineK','recommendCommands'];a20_0x11ec=function(){return _0x2a7b30;};return a20_0x11ec();}exports[a20_0x547f5c(0x134)]='stop',exports[a20_0x547f5c(0x138)]=a20_0x547f5c(0x13e),exports[a20_0x547f5c(0x145)]=function(_0x2db100){const _0x1cb761=a20_0x547f5c,_0x39f57b={};_0x39f57b['Ikqal']=_0x1cb761(0x141),_0x39f57b[_0x1cb761(0x13b)]=_0x1cb761(0x133);const _0x13aff7=_0x39f57b;return _0x2db100[_0x1cb761(0x142)](HELP_HEADER_MESSAGE[_0x1cb761(0x13c)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x13aff7[_0x1cb761(0x135)])[_0x1cb761(0x140)]()[_0x1cb761(0x137)]()[_0x1cb761(0x132)]()['help'](_0x13aff7[_0x1cb761(0x13b)]);},exports[a20_0x547f5c(0x139)]=function(_0x7fc353){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a21_0x4e8a3c=a21_0x3d11;(function(_0x9387d7,_0x2e1892){const _0xc47129=a21_0x3d11,_0x1fff1d=_0x9387d7();while(!![]){try{const _0x1c5da9=parseInt(_0xc47129(0x1c7))/0x1+-parseInt(_0xc47129(0x1e5))/0x2+parseInt(_0xc47129(0x1c5))/0x3*(-parseInt(_0xc47129(0x1ee))/0x4)+-parseInt(_0xc47129(0x1e8))/0x5*(-parseInt(_0xc47129(0x1bb))/0x6)+-parseInt(_0xc47129(0x1f5))/0x7*(-parseInt(_0xc47129(0x1ed))/0x8)+parseInt(_0xc47129(0x1a0))/0x9+-parseInt(_0xc47129(0x1ab))/0xa;if(_0x1c5da9===_0x2e1892)break;else _0x1fff1d['push'](_0x1fff1d['shift']());}catch(_0x4ca9b8){_0x1fff1d['push'](_0x1fff1d['shift']());}}}(a21_0x5724,0xe1358));function a21_0x3d11(_0x2498f7,_0x1d774f){const _0x57244b=a21_0x5724();return a21_0x3d11=function(_0x3d1126,_0x5c7cb5){_0x3d1126=_0x3d1126-0x19d;let _0x4d01e2=_0x57244b[_0x3d1126];return _0x4d01e2;},a21_0x3d11(_0x2498f7,_0x1d774f);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x4e8a3c(0x1f6)),{getCredentialsPath,getGridDetails}=require(a21_0x4e8a3c(0x1b0)),{scaleDownHubDeployment}=require(a21_0x4e8a3c(0x1a6)),{sendInstrumentationEvent}=require(a21_0x4e8a3c(0x1f1)),webSocketUtils=require(a21_0x4e8a3c(0x1b3)),{createK8sClient}=require(a21_0x4e8a3c(0x1f3)),{getCloudProviderObject}=require(a21_0x4e8a3c(0x1c6));function a21_0x5724(){const _0x4922a9=['skip-tls-cert-verify','7EEeRMM','../../config/logger','parse','error','BQSas','addListeners','usage','16320438bGWzJP','epilogue','Adding\x20Websocket\x20listeners','default','uObAj','clusterName','../../utils/gridComponents','bstackAccesskey','yukRv','TjGvv','VtqAQ','12864640FtxdFK','pvOZD','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','exit','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','../../utils/utilityMethods','yzeDT','bZnzm','../../utils/webSocketUtils','<UsernamePlaceholder>','dCSbN','Skip\x20insecure\x20cert\x20verification.','Stop\x20a\x20running\x20Automation\x20grid.','stop','BIKcU','info','288186RzEgFD','gridId','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','message','stop-grid-called','skipTlsCertVerify','Browserstack','ggKks','pvllj','command','51PHjirl','../../cloudproviders/utils','1058935AQrhcV','DUpbi','boolean','UsPyX','help','cloudProvider','Peevn','Zqneb','INFO','IwOME','ERROR','clusterRegion','server-error','password','options','zoFfS','<PasswordPlaceholder>','name','PuuTT','Yacuf','existsSync','connectionTimeout','IQAUk','dLaPW','handler','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','grid-id','statusCode','Stopping\x20grid\x20','grid','2289420gkkolZ','description','stack','25xxKazF','username','WkjrP','Grid\x20stoppped.','stringify','12815248QtBCTB','320176QzuRej','replace','bstackUsername','../../utils/instrumentationUtils','user','../../utils/createk8sClient'];a21_0x5724=function(){return _0x4922a9;};return a21_0x5724();}exports[a21_0x4e8a3c(0x1c4)]=a21_0x4e8a3c(0x1e4),exports['desc']=a21_0x4e8a3c(0x1b7),exports['builder']=function(_0x1ee0b8){const _0x186abf=a21_0x4e8a3c,_0x4e7437={};_0x4e7437[_0x186abf(0x1c2)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x4e7437[_0x186abf(0x1ac)]='string',_0x4e7437[_0x186abf(0x1b5)]=_0x186abf(0x1b6),_0x4e7437['pvllj']=_0x186abf(0x1c9),_0x4e7437[_0x186abf(0x1ca)]=_0x186abf(0x1cb);const _0x17d556=_0x4e7437,_0x154d60={};_0x154d60[_0x186abf(0x1e6)]=_0x17d556[_0x186abf(0x1c2)],_0x154d60['type']=_0x17d556['pvOZD'];const _0x21a91e={};_0x21a91e['description']=_0x17d556[_0x186abf(0x1b5)],_0x21a91e['type']=_0x17d556[_0x186abf(0x1c3)],_0x21a91e[_0x186abf(0x1a3)]=![];const _0x2d2ffe={};return _0x2d2ffe[_0x186abf(0x1e1)]=_0x154d60,_0x2d2ffe[_0x186abf(0x1f4)]=_0x21a91e,_0x1ee0b8[_0x186abf(0x19f)](HELP_HEADER_MESSAGE[_0x186abf(0x1b8)])[_0x186abf(0x1a1)](HELP_FOOTER_MESSAGE)[_0x186abf(0x1d5)](_0x2d2ffe)['help'](_0x17d556[_0x186abf(0x1ca)])['argv'];},exports[a21_0x4e8a3c(0x1df)]=async function(_0x580146){const _0x15ccb2=a21_0x4e8a3c,_0x8b2024={'eocXo':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','DUpbi':function(_0xd0e05f){return _0xd0e05f();},'bZnzm':_0x15ccb2(0x1e0),'yzeDT':function(_0xb1d941,_0x5944e0,_0x5b609e,_0x124349,_0x41faac,_0x10605d,_0xbb5fc8){return _0xb1d941(_0x5944e0,_0x5b609e,_0x124349,_0x41faac,_0x10605d,_0xbb5fc8);},'Peevn':_0x15ccb2(0x1bf),'PuuTT':'init-not-called','Zqneb':_0x15ccb2(0x1b4),'TjGvv':_0x15ccb2(0x1d7),'zoFfS':_0x15ccb2(0x1a2),'VtqAQ':function(_0x1542c9,_0x1d60f9,_0x4b4d1f,_0x1fde9d){return _0x1542c9(_0x1d60f9,_0x4b4d1f,_0x1fde9d);},'IQAUk':function(_0x208262,_0x4a8297,_0x336b91){return _0x208262(_0x4a8297,_0x336b91);},'WkjrP':_0x15ccb2(0x1eb),'Yacuf':function(_0x1f6a6a,_0x1a56c1){return _0x1f6a6a===_0x1a56c1;},'IwOME':_0x15ccb2(0x1ad),'dLaPW':function(_0x37f318,_0x8d04d8,_0xdac47b,_0x4b80ba,_0x59b89d,_0x2a7fc2,_0x374e20){return _0x37f318(_0x8d04d8,_0xdac47b,_0x4b80ba,_0x59b89d,_0x2a7fc2,_0x374e20);},'UbVDF':'unauthorised','BIKcU':function(_0x1b07ea,_0x211608){return _0x1b07ea===_0x211608;},'BQSas':function(_0x5c15ca,_0x4131fb,_0x3e1275,_0x2d5b8c,_0x52a1ee,_0x58aa2b,_0x2e6cca){return _0x5c15ca(_0x4131fb,_0x3e1275,_0x2d5b8c,_0x52a1ee,_0x58aa2b,_0x2e6cca);},'uObAj':'invalid-grid-id','yukRv':function(_0xbedf2a,_0x27c72b,_0x3ce5d7,_0x1d2de5,_0x3f71d3,_0x2bc88d,_0x579f25){return _0xbedf2a(_0x27c72b,_0x3ce5d7,_0x1d2de5,_0x3f71d3,_0x2bc88d,_0x579f25);},'yTwIT':_0x15ccb2(0x1d3)};let _0x365df5;try{!_0x580146[_0x15ccb2(0x1bc)]&&(logger[_0x15ccb2(0x1f8)](_0x8b2024['eocXo']),process[_0x15ccb2(0x1ae)](0x1));!fs[_0x15ccb2(0x1db)](_0x8b2024[_0x15ccb2(0x1c8)](getCredentialsPath))&&(logger['error'](_0x8b2024[_0x15ccb2(0x1b2)]),await _0x8b2024[_0x15ccb2(0x1b1)](sendInstrumentationEvent,_0x580146,_0x8b2024[_0x15ccb2(0x1cd)],messageTypes[_0x15ccb2(0x1d1)],_0x8b2024[_0x15ccb2(0x1d9)],null,_0x580146),process[_0x15ccb2(0x1ae)](0x1));logger['info'](_0x15ccb2(0x1e3)+_0x580146[_0x15ccb2(0x1bc)]),await _0x8b2024[_0x15ccb2(0x1b1)](sendInstrumentationEvent,_0x580146,_0x8b2024[_0x15ccb2(0x1cd)],messageTypes[_0x15ccb2(0x1cf)],null,null,_0x580146);const _0x195b99=JSON[_0x15ccb2(0x1f7)](fs['readFileSync'](_0x8b2024[_0x15ccb2(0x1c8)](getCredentialsPath)));global_registry[_0x15ccb2(0x1f0)]=_0x195b99[_0x15ccb2(0x1c1)]['username'],global_registry[_0x15ccb2(0x1a7)]=_0x195b99['Browserstack'][_0x15ccb2(0x1d4)];const _0x2a7998=WS_ENDPOINT[_0x15ccb2(0x1ef)](_0x8b2024[_0x15ccb2(0x1ce)],_0x195b99[_0x15ccb2(0x1c1)][_0x15ccb2(0x1e9)])[_0x15ccb2(0x1ef)](_0x8b2024[_0x15ccb2(0x1a9)],_0x195b99['Browserstack']['password']),_0x5b95be={};_0x5b95be['WebSocket']=ws,_0x5b95be[_0x15ccb2(0x1dc)]=0x36ee80,_0x365df5=new ReconnectingWebSocket(_0x2a7998,[],_0x5b95be),logger['debug'](_0x8b2024[_0x15ccb2(0x1d6)]),webSocketUtils[_0x15ccb2(0x19e)](_0x365df5,_0x580146[_0x15ccb2(0x1f2)],_0x580146[_0x15ccb2(0x1d4)]);const [_0x3be7b6,_0x432c4e]=await _0x8b2024[_0x15ccb2(0x1aa)](getGridDetails,_0x195b99[_0x15ccb2(0x1c1)]['username'],_0x195b99[_0x15ccb2(0x1c1)][_0x15ccb2(0x1d4)],_0x580146['gridId']);if(_0x432c4e){const _0x2e3f8a=_0x432c4e[_0x15ccb2(0x1ba)];global_registry[_0x15ccb2(0x1cc)]=_0x2e3f8a[_0x15ccb2(0x1cc)],global_registry[_0x15ccb2(0x1d2)]=_0x2e3f8a['region'],global_registry[_0x15ccb2(0x1a5)]=_0x2e3f8a[_0x15ccb2(0x1a5)];const _0x3f0741=await _0x8b2024[_0x15ccb2(0x1b1)](getCloudProviderObject,_0x2e3f8a[_0x15ccb2(0x1cc)],_0x2e3f8a[_0x15ccb2(0x1a5)],_0x2e3f8a[_0x15ccb2(0x1d8)],_0x365df5,webSocketUtils,_0x580146),[_0x5ad8e3,_0x3dd579,_0x41e80e,_0x140021,_0x5bc26c,_0x33279f]=await _0x8b2024[_0x15ccb2(0x1dd)](createK8sClient,_0x3f0741,_0x580146[_0x15ccb2(0x1c0)]);await _0x8b2024['IQAUk'](scaleDownHubDeployment,_0x3dd579,_0x2e3f8a[_0x15ccb2(0x1d8)]),logger[_0x15ccb2(0x1ba)](_0x8b2024[_0x15ccb2(0x1ea)]),process[_0x15ccb2(0x1ae)](0x0);}_0x8b2024[_0x15ccb2(0x1da)](_0x3be7b6['statusCode'],0x191)&&(logger[_0x15ccb2(0x1f8)](_0x8b2024[_0x15ccb2(0x1d0)]),await _0x8b2024[_0x15ccb2(0x1de)](sendInstrumentationEvent,_0x580146,_0x8b2024[_0x15ccb2(0x1cd)],messageTypes[_0x15ccb2(0x1d1)],_0x8b2024['UbVDF'],null,_0x580146),process[_0x15ccb2(0x1ae)](0x1)),_0x8b2024[_0x15ccb2(0x1b9)](_0x3be7b6[_0x15ccb2(0x1e2)],0x190)&&(logger['error'](JSON['parse'](_0x3be7b6['body'])[_0x15ccb2(0x1be)]),await _0x8b2024[_0x15ccb2(0x19d)](sendInstrumentationEvent,_0x580146,_0x8b2024[_0x15ccb2(0x1cd)],messageTypes[_0x15ccb2(0x1d1)],_0x8b2024[_0x15ccb2(0x1a4)],null,_0x580146),process[_0x15ccb2(0x1ae)](0x1)),logger[_0x15ccb2(0x1f8)](_0x15ccb2(0x1af)+JSON[_0x15ccb2(0x1ec)](_0x3be7b6)),await _0x8b2024[_0x15ccb2(0x1a8)](sendInstrumentationEvent,_0x580146,_0x8b2024['Peevn'],messageTypes[_0x15ccb2(0x1d1)],_0x8b2024['yTwIT'],_0x3be7b6,_0x580146),process['exit'](0x1);}catch(_0x5417e3){const _0x4e5b50=_0x15ccb2(0x1bd)+_0x5417e3+'\x20\x0a'+JSON[_0x15ccb2(0x1ec)](_0x5417e3[_0x15ccb2(0x1e7)])+'\x20';logger['error'](_0x4e5b50),process[_0x15ccb2(0x1ae)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x5b355c=a22_0x3d8c;(function(_0x1e100b,_0x1d77e8){const _0x8f2c03=a22_0x3d8c,_0x5d9af6=_0x1e100b();while(!![]){try{const _0x232f47=parseInt(_0x8f2c03(0x12c))/0x1+parseInt(_0x8f2c03(0x174))/0x2*(-parseInt(_0x8f2c03(0x133))/0x3)+parseInt(_0x8f2c03(0x16d))/0x4+parseInt(_0x8f2c03(0x17a))/0x5*(-parseInt(_0x8f2c03(0x171))/0x6)+parseInt(_0x8f2c03(0x13f))/0x7*(parseInt(_0x8f2c03(0x13e))/0x8)+parseInt(_0x8f2c03(0x16c))/0x9*(-parseInt(_0x8f2c03(0x180))/0xa)+parseInt(_0x8f2c03(0x165))/0xb*(parseInt(_0x8f2c03(0x156))/0xc);if(_0x232f47===_0x1d77e8)break;else _0x5d9af6['push'](_0x5d9af6['shift']());}catch(_0x322a73){_0x5d9af6['push'](_0x5d9af6['shift']());}}}(a22_0x19ac,0x3367a),require(a22_0x5b355c(0x125))[a22_0x5b355c(0x12d)]());function a22_0x3d8c(_0x4fc7cf,_0x38da04){const _0x19acd2=a22_0x19ac();return a22_0x3d8c=function(_0x3d8c71,_0x55a2cd){_0x3d8c71=_0x3d8c71-0x111;let _0x155f46=_0x19acd2[_0x3d8c71];return _0x155f46;},a22_0x3d8c(_0x4fc7cf,_0x38da04);}let gridURL=a22_0x5b355c(0x14b),bsApiUrl=a22_0x5b355c(0x12a),agApiUrl=a22_0x5b355c(0x152);const _env=(process['env'][a22_0x5b355c(0x11e)]||a22_0x5b355c(0x163))['toLowerCase']();if(_env==='staging'||_env===a22_0x5b355c(0x15d))gridURL=a22_0x5b355c(0x122),bsApiUrl=a22_0x5b355c(0x138),agApiUrl=a22_0x5b355c(0x17e);else(_env===a22_0x5b355c(0x169)||_env==='pre-prod')&&(gridURL=a22_0x5b355c(0x148),bsApiUrl=a22_0x5b355c(0x14f),agApiUrl=a22_0x5b355c(0x14d));exports[a22_0x5b355c(0x129)]=process[a22_0x5b355c(0x130)][a22_0x5b355c(0x129)]||gridURL,exports[a22_0x5b355c(0x121)]=process['env'][a22_0x5b355c(0x121)]||bsApiUrl,exports[a22_0x5b355c(0x142)]=process[a22_0x5b355c(0x130)][a22_0x5b355c(0x142)]||agApiUrl,exports['WS_ENDPOINT']=a22_0x5b355c(0x117)+this['AG_API_URL']+a22_0x5b355c(0x135),exports['CP_CONFIG_FILE']=a22_0x5b355c(0x14a),exports[a22_0x5b355c(0x13a)]=a22_0x5b355c(0x149),exports[a22_0x5b355c(0x179)]=a22_0x5b355c(0x136),exports[a22_0x5b355c(0x153)]=a22_0x5b355c(0x173),exports['CLUSTER_DEP_STACK_NAME']=a22_0x5b355c(0x147),exports[a22_0x5b355c(0x164)]=a22_0x5b355c(0x150),exports['CLUSTER_HUB_HA_STACK_NAME']='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x5b355c(0x146)]=a22_0x5b355c(0x113),exports['AZURE']=a22_0x5b355c(0x119),exports['GCP']=a22_0x5b355c(0x17b),exports[a22_0x5b355c(0x15c)]=[this[a22_0x5b355c(0x153)],this[a22_0x5b355c(0x137)],this['GCP']];const a22_0x58fdd7={};a22_0x58fdd7[a22_0x5b355c(0x13c)]=a22_0x5b355c(0x143),a22_0x58fdd7[a22_0x5b355c(0x178)]=a22_0x5b355c(0x127);const a22_0x40513d={};a22_0x40513d['Key']=a22_0x5b355c(0x16a),a22_0x40513d['Value']=a22_0x5b355c(0x170);const common_hst_tags_list=[a22_0x58fdd7,a22_0x40513d];if(process[a22_0x5b355c(0x130)]['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x5b355c(0x130)][a22_0x5b355c(0x15b)][a22_0x5b355c(0x12f)](',');parsedTags[a22_0x5b355c(0x111)](_0x38894f=>{const _0x23af32=a22_0x5b355c,_0x5d3d37=_0x38894f[_0x23af32(0x12f)](':'),_0x17444b={};_0x17444b['Key']=_0x5d3d37[0x0],_0x17444b[_0x23af32(0x178)]=_0x5d3d37[0x1],common_hst_tags_list[_0x23af32(0x168)](_0x17444b);});}exports[a22_0x5b355c(0x151)]=common_hst_tags_list;const a22_0xfab5cb={};a22_0xfab5cb[a22_0x5b355c(0x143)]='BrowserStack',a22_0xfab5cb[a22_0x5b355c(0x16a)]='BrowserStack-Automate-TurboScale',exports[a22_0x5b355c(0x126)]=a22_0xfab5cb,exports[a22_0x5b355c(0x176)]=[this[a22_0x5b355c(0x153)]];const a22_0x2b342e={};a22_0x2b342e['LOG']=a22_0x5b355c(0x160),a22_0x2b342e[a22_0x5b355c(0x16b)]=a22_0x5b355c(0x161),a22_0x2b342e[a22_0x5b355c(0x13b)]='gridUrl',a22_0x2b342e['CLI_RUN_STARTED']='cliRunStarted',a22_0x2b342e[a22_0x5b355c(0x12b)]='cliRunFinished',exports['WS_EVENTS']=a22_0x2b342e,exports[a22_0x5b355c(0x15a)]={},exports['LINK_MESSAGE']=a22_0x5b355c(0x181);const a22_0x4496bd={};a22_0x4496bd[a22_0x5b355c(0x11a)]=a22_0x5b355c(0x17f)+this[a22_0x5b355c(0x16f)],a22_0x4496bd[a22_0x5b355c(0x140)]=a22_0x5b355c(0x17d)+this[a22_0x5b355c(0x16f)],a22_0x4496bd[a22_0x5b355c(0x118)]=a22_0x5b355c(0x154)+this[a22_0x5b355c(0x16f)],a22_0x4496bd[a22_0x5b355c(0x132)]=a22_0x5b355c(0x157)+this['LINK_MESSAGE'],a22_0x4496bd[a22_0x5b355c(0x162)]={},a22_0x4496bd[a22_0x5b355c(0x131)]=a22_0x5b355c(0x115)+this[a22_0x5b355c(0x16f)],a22_0x4496bd[a22_0x5b355c(0x139)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x5b355c(0x16f)],a22_0x4496bd[a22_0x5b355c(0x172)]=a22_0x5b355c(0x116)+this[a22_0x5b355c(0x16f)],a22_0x4496bd['stop']=a22_0x5b355c(0x14c)+this[a22_0x5b355c(0x16f)],a22_0x4496bd[a22_0x5b355c(0x11f)]=a22_0x5b355c(0x141)+this[a22_0x5b355c(0x16f)],a22_0x4496bd[a22_0x5b355c(0x162)][a22_0x5b355c(0x11a)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this['LINK_MESSAGE'],a22_0x4496bd[a22_0x5b355c(0x162)][a22_0x5b355c(0x155)]=a22_0x5b355c(0x158)+this[a22_0x5b355c(0x16f)],a22_0x4496bd[a22_0x5b355c(0x162)][a22_0x5b355c(0x16e)]=a22_0x5b355c(0x144)+this[a22_0x5b355c(0x16f)],exports[a22_0x5b355c(0x15f)]=a22_0x4496bd,exports[a22_0x5b355c(0x15e)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x359148={};function a22_0x19ac(){const _0x200784=['root','MessageDescription','success','[REDACTED]','BROWSERSTACK_ENV','pre_check','grid-profile','BS_API_URL','grid-devhst.bsstag.com','messageTypes','high-scale-grid-cluster','dotenv','HST_CLUSTER_TAGS','BrowserStack','info','DASHBOARD_ENDPOINT','api.browserstack.com','CLI_RUN_FINISHED','129449CffsnR','config','INFO','split','env','delete','create','53199IoTCEc','CLI_ARGS_REGEX','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','high-scale-grid','AZURE','api-devhst.bsstag.com','connect','IAM_USER_NAME','GRID_URL','Key','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','289624iFEBXe','7uQAKHM','init','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','AG_API_URL','browserstack:managedBy','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','ERROR','TURBOSCALE_DEPLOYMENT','BSTACK-ATS-CLUSTER','grid-preprod.bsstag.com','BrowserStackIAMUser','credentials','grid.browserstack.com','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','grid-api-preprod.bsstag.com','warning','api-preprod.bsstag.com','BSTACK-ATS-CLUSTER-AUTOSCALER','COMMON_HST_TAGS','grid-api.browserstack.com','AWS','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','grid','1300440IQzVTw','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','REGION','global_registry','TURBOSCALE_CUSTOM_TAGS','ALL_SUPPORTED_CLOUD_PROVIDERS','stag','HELP_FOOTER_MESSAGE','HELP_HEADER_MESSAGE','log','resourceInfo','list','prod','CLUSTER_AUTOSCALER_STACK_NAME','88BqdUYh','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','CLOUD_PROVIDER','push','preprod','browserstack:service','RESOURCES','84654LGAedS','225016FuXFjI','gridProfile','LINK_MESSAGE','BrowserStack-Automate-TurboScale','6ZtSscQ','start','aws','26PbbKqe','REDACTED','SUPPORTED_CLOUD_PROVIDERS','SUCCESS','Value','DEFAULT_GRID_NAME','1357715KzTujM','gcp','NULL','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','grid-api-devhst.bsstag.com','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','400eXDenV','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','forEach','us-east-1','browserstack-turboscale-grid','pre-check','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','wss://','configure','azure'];a22_0x19ac=function(){return _0x200784;};return a22_0x19ac();}a22_0x359148[a22_0x5b355c(0x177)]=a22_0x5b355c(0x11c),a22_0x359148[a22_0x5b355c(0x145)]='error',a22_0x359148[a22_0x5b355c(0x12e)]=a22_0x5b355c(0x128),a22_0x359148['WARNING']=a22_0x5b355c(0x14e),a22_0x359148['UNKNOWN']='unknown',a22_0x359148[a22_0x5b355c(0x17c)]=null,exports[a22_0x5b355c(0x123)]=a22_0x359148,exports[a22_0x5b355c(0x134)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x5b355c(0x175)]=a22_0x5b355c(0x11d);const a22_0x429a1f={};a22_0x429a1f[a22_0x5b355c(0x120)]=a22_0x5b355c(0x13d);const a22_0x4bc8fb={};a22_0x4bc8fb[a22_0x5b355c(0x114)]=a22_0x429a1f,exports[a22_0x5b355c(0x11b)]=a22_0x4bc8fb,exports['TRIAL_GRID_URL']=a22_0x5b355c(0x166);const a22_0x2f3c92={};a22_0x2f3c92['CLUSTER']=a22_0x5b355c(0x124),a22_0x2f3c92[a22_0x5b355c(0x167)]=a22_0x5b355c(0x173),a22_0x2f3c92[a22_0x5b355c(0x159)]=a22_0x5b355c(0x112),exports['DEFAULT_CLUSTER_DETAILS']=a22_0x2f3c92;
|
package/ats/src/config/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a23_0x3e25(_0x517beb,_0x18fdfc){const _0x2c65ac=a23_0x2c65();return a23_0x3e25=function(_0x3e2581,_0x2e2b9e){_0x3e2581=_0x3e2581-0xd0;let _0x5090cf=_0x2c65ac[_0x3e2581];return _0x5090cf;},a23_0x3e25(_0x517beb,_0x18fdfc);}const a23_0x295554=a23_0x3e25;(function(_0x12c9ea,_0x3f6a06){const _0x2950a8=a23_0x3e25,_0xf28a3d=_0x12c9ea();while(!![]){try{const _0x26a8d8=parseInt(_0x2950a8(0xe4))/0x1*(parseInt(_0x2950a8(0xd7))/0x2)+-parseInt(_0x2950a8(0xf2))/0x3*(parseInt(_0x2950a8(0xd0))/0x4)+parseInt(_0x2950a8(0xee))/0x5*(-parseInt(_0x2950a8(0xf1))/0x6)+parseInt(_0x2950a8(0xe9))/0x7+parseInt(_0x2950a8(0xd2))/0x8*(-parseInt(_0x2950a8(0xd3))/0x9)+-parseInt(_0x2950a8(0xe2))/0xa+-parseInt(_0x2950a8(0xef))/0xb*(-parseInt(_0x2950a8(0xde))/0xc);if(_0x26a8d8===_0x3f6a06)break;else _0xf28a3d['push'](_0xf28a3d['shift']());}catch(_0x5e66aa){_0xf28a3d['push'](_0xf28a3d['shift']());}}}(a23_0x2c65,0xb64b2));const winston=require(a23_0x295554(0xeb)),fs=require('fs'),path=require('path'),logDir=a23_0x295554(0xe5);!fs[a23_0x295554(0xd9)](logDir)&&fs[a23_0x295554(0xdb)](logDir);const a23_0x2b92bd={};a23_0x2b92bd[a23_0x295554(0xf0)]=a23_0x295554(0xea);const a23_0x568e80={};function a23_0x2c65(){const _0x5ea999=['Console','\x20-\x20','35WDsrHm','478621JkLwpX','format','1229130HpFPUS','532029lRlNLo','24jcCpVS','console.info','310568iYmKYA','99diCCGJ','transports','fileLogger','logger','22pwyqWO','File','existsSync','usage.log','mkdirSync','level','combine','696SKUPHB','createLogger','name','join','12624180thbioW','events.log','103868NsvXwJ','log','message','debug','timestamp','8875860KVnDia','YYYY-MM-DD\x20HH:mm:ss','winston'];a23_0x2c65=function(){return _0x5ea999;};return a23_0x2c65();}a23_0x568e80['level']=!![];const a23_0x595a1b={};a23_0x595a1b[a23_0x295554(0xe0)]=a23_0x295554(0xd1),exports[a23_0x295554(0xd6)]=new winston[(a23_0x295554(0xdf))]({'format':winston['format'][a23_0x295554(0xdd)](winston[a23_0x295554(0xf0)][a23_0x295554(0xe8)](a23_0x2b92bd),winston[a23_0x295554(0xf0)]['colorize'](a23_0x568e80),winston['format']['printf'](_0x4cfadd=>_0x4cfadd[a23_0x295554(0xe8)]+a23_0x295554(0xed)+_0x4cfadd[a23_0x295554(0xdc)]+':\x20'+_0x4cfadd[a23_0x295554(0xe6)])),'transports':[new winston[(a23_0x295554(0xd4))][(a23_0x295554(0xec))](a23_0x595a1b),new winston['transports'][(a23_0x295554(0xd8))]({'filename':path[a23_0x295554(0xe1)](logDir,a23_0x295554(0xe3)),'level':a23_0x295554(0xe7)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x295554(0xd4))][(a23_0x295554(0xd8))]({'filename':path[a23_0x295554(0xe1)](logDir,a23_0x295554(0xda)),'level':'debug'})]};exports[a23_0x295554(0xd5)]=new winston[(a23_0x295554(0xdf))](winstonFileLoggerParams);
|
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_0x240a(_0x2cea11,_0x5a01a3){const _0x2d41f8=a24_0x2d41();return a24_0x240a=function(_0x240a74,_0x16adf8){_0x240a74=_0x240a74-0x1b9;let _0x36e483=_0x2d41f8[_0x240a74];return _0x36e483;},a24_0x240a(_0x2cea11,_0x5a01a3);}const a24_0x283e82=a24_0x240a;(function(_0x4f4bc7,_0x54a0db){const _0x3bccb4=a24_0x240a,_0x3e6138=_0x4f4bc7();while(!![]){try{const _0x3e8463=parseInt(_0x3bccb4(0x1b9))/0x1+parseInt(_0x3bccb4(0x1c8))/0x2*(-parseInt(_0x3bccb4(0x1c4))/0x3)+-parseInt(_0x3bccb4(0x1cc))/0x4+parseInt(_0x3bccb4(0x1cd))/0x5+-parseInt(_0x3bccb4(0x1bf))/0x6*(parseInt(_0x3bccb4(0x1c5))/0x7)+parseInt(_0x3bccb4(0x1c2))/0x8+parseInt(_0x3bccb4(0x1ba))/0x9*(parseInt(_0x3bccb4(0x1bb))/0xa);if(_0x3e8463===_0x54a0db)break;else _0x3e6138['push'](_0x3e6138['shift']());}catch(_0x4af8d8){_0x3e6138['push'](_0x3e6138['shift']());}}}(a24_0x2d41,0xaf9a6));function a24_0x2d41(){const _0xb1bd1c=['help','usage','341616IgWcuD','env','23292XRuceO','773213OHyguJ','root','demandCommand','238GETCCs','./config/constants','exports','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','5074712tSvHfa','116145uEGLyK','1177042cYbKaj','9nqyKwl','21107270usFakb','commands','JbCmE','JOEDn','24ISODAR'];a24_0x2d41=function(){return _0xb1bd1c;};return a24_0x2d41();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x283e82(0x1c9));process[a24_0x283e82(0x1c3)][a24_0x283e82(0x1cb)]=0x1;function run(_0x5875db){const _0x3feb24=a24_0x283e82,_0xead691={};_0xead691[_0x3feb24(0x1bd)]=_0x3feb24(0x1bc),_0xead691[_0x3feb24(0x1be)]=_0x3feb24(0x1c0);const _0x363804=_0xead691;_0x5875db[_0x3feb24(0x1c1)](HELP_HEADER_MESSAGE[_0x3feb24(0x1c6)])['commandDir'](_0x363804[_0x3feb24(0x1bd)])[_0x3feb24(0x1c7)]()[_0x3feb24(0x1c0)](_0x363804[_0x3feb24(0x1be)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x283e82(0x1ca)]=run;
|