browserstack-node-sdk 1.36.7 → 1.37.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 -66
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -0
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/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/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/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 -0
- package/src/helpers/test-orchestration/failfastManager.js +1 -0
- package/src/helpers/test-orchestration/fileHelper.js +1 -0
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -0
- package/src/helpers/test-orchestration/requestUtils.js +1 -0
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -0
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -0
- 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
- package/src/helpers/test-orchestration/fail-fast/fileHelper.js +0 -1
- package/src/helpers/test-orchestration/fail-fast/jest.js +0 -1
- package/src/helpers/test-orchestration/fail-fast/requestUtils.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15_0x403b23=a15_0x34a0;function a15_0x34a0(_0x5592ac,_0x7b5d30){const _0xab622b=a15_0xab62();return a15_0x34a0=function(_0x34a0ff,_0x341663){_0x34a0ff=_0x34a0ff-0xa1;let _0x4a2bd3=_0xab622b[_0x34a0ff];return _0x4a2bd3;},a15_0x34a0(_0x5592ac,_0x7b5d30);}(function(_0x4839d3,_0x698695){const _0x34abcc=a15_0x34a0,_0x56237c=_0x4839d3();while(!![]){try{const _0x195a35=parseInt(_0x34abcc(0xd2))/0x1+-parseInt(_0x34abcc(0xb7))/0x2*(parseInt(_0x34abcc(0xb6))/0x3)+-parseInt(_0x34abcc(0xe3))/0x4*(parseInt(_0x34abcc(0xc2))/0x5)+-parseInt(_0x34abcc(0xe4))/0x6*(-parseInt(_0x34abcc(0xca))/0x7)+-parseInt(_0x34abcc(0xa3))/0x8*(-parseInt(_0x34abcc(0xf2))/0x9)+-parseInt(_0x34abcc(0xde))/0xa+-parseInt(_0x34abcc(0xec))/0xb*(-parseInt(_0x34abcc(0xb9))/0xc);if(_0x195a35===_0x698695)break;else _0x56237c['push'](_0x56237c['shift']());}catch(_0x5a0214){_0x56237c['push'](_0x56237c['shift']());}}}(a15_0xab62,0x56f80));const fs=require('fs'),got=require('got'),{table}=require(a15_0x403b23(0xcc)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x403b23(0xf1)),{getCredentialsPath,getAuthHeader}=require(a15_0x403b23(0xd4)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a15_0x403b23(0xe9)]=a15_0x403b23(0xaa),exports[a15_0x403b23(0xef)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x1a0df1){const _0x324f19=a15_0x403b23,_0x25bef7={};_0x25bef7['LYeEm']=_0x324f19(0xc1),_0x25bef7['dOPSz']=_0x324f19(0xe5),_0x25bef7[_0x324f19(0xcd)]=_0x324f19(0xc5);const _0x49cf8d=_0x25bef7,_0x230fb1={};_0x230fb1[_0x324f19(0xdf)]=_0x49cf8d[_0x324f19(0xd8)],_0x230fb1['type']=_0x49cf8d['dOPSz'];const _0x4af3e4={};return _0x4af3e4[_0x324f19(0xea)]=_0x230fb1,_0x1a0df1[_0x324f19(0xd7)](HELP_HEADER_MESSAGE['list'][_0x324f19(0xc3)])[_0x324f19(0xdb)](HELP_FOOTER_MESSAGE)[_0x324f19(0xdd)](_0x4af3e4)[_0x324f19(0xc5)](_0x49cf8d['tBhbE'])[_0x324f19(0xe6)];},exports[a15_0x403b23(0xa1)]=async function(_0x38e183){const _0x20fd18=a15_0x403b23,_0x4b6d50={'Etmta':function(_0x1a5bda){return _0x1a5bda();},'wLbrE':function(_0x53861d){return _0x53861d();},'bXpXy':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','bGLXI':function(_0x402f03,_0x5c4e10,_0x175940,_0x2737b3,_0x5f04b9,_0x46f191,_0x2e98b1){return _0x402f03(_0x5c4e10,_0x175940,_0x2737b3,_0x5f04b9,_0x46f191,_0x2e98b1);},'CLBum':_0x20fd18(0xb1),'Quqxh':_0x20fd18(0xaf),'IpZzd':_0x20fd18(0xd1),'FAmvF':function(_0x47e49e,_0x747e04,_0x24fdc4){return _0x47e49e(_0x747e04,_0x24fdc4);},'GcfjF':function(_0x17c15a,_0x317fd8,_0x54d7ad,_0xd4cd45,_0x23dfa1,_0x581eca,_0x1e1897){return _0x17c15a(_0x317fd8,_0x54d7ad,_0xd4cd45,_0x23dfa1,_0x581eca,_0x1e1897);},'IsVPD':function(_0x2fa06f,_0x340b96,_0x10ab6f){return _0x2fa06f(_0x340b96,_0x10ab6f);},'MPQDB':function(_0x74aab,_0x596f46){return _0x74aab!==_0x596f46;},'XlPDg':function(_0x31866,_0x1e29a8){return _0x31866===_0x1e29a8;},'pqeiM':_0x20fd18(0xc8),'TahLt':_0x20fd18(0xd5),'VtAsz':_0x20fd18(0xa9),'wWEnL':_0x20fd18(0xf3),'YHICH':_0x20fd18(0xba),'mezmu':'queued','PymUA':_0x20fd18(0xda),'JAmVj':function(_0x24db4c,_0x22549e){return _0x24db4c(_0x22549e);},'aTyYd':function(_0x53910c,_0x454ec6){return _0x53910c===_0x454ec6;},'fahli':_0x20fd18(0xa2),'mkurE':function(_0x281977,_0x4e3aa2,_0x662534,_0x43390c,_0x5bb963,_0x316fde,_0x5a33ac){return _0x281977(_0x4e3aa2,_0x662534,_0x43390c,_0x5bb963,_0x316fde,_0x5a33ac);},'mWMpc':'unauthorised','Kflag':_0x20fd18(0xdc),'OhQYO':_0x20fd18(0xd9)};try{global_registry[_0x20fd18(0xb0)]=_0x4b6d50['Etmta'](uuidv4);!fs[_0x20fd18(0xae)](_0x4b6d50[_0x20fd18(0xc6)](getCredentialsPath))&&(console['error'](_0x4b6d50['bXpXy']),await _0x4b6d50['bGLXI'](sendInstrumentationEvent,_0x38e183,_0x4b6d50[_0x20fd18(0xf5)],messageTypes['ERROR'],_0x4b6d50[_0x20fd18(0xd6)],null,_0x38e183),process[_0x20fd18(0xed)](0x1));const _0x3a6f7f=JSON[_0x20fd18(0xb5)](fs['readFileSync'](_0x4b6d50[_0x20fd18(0xbb)](getCredentialsPath)));let _0x5e0d52=_0x20fd18(0xf0)+AG_API_URL+_0x20fd18(0xa7);_0x38e183[_0x20fd18(0xb4)]&&(_0x5e0d52=_0x20fd18(0xf0)+AG_API_URL+'/packages/cli/get-all-grids');const _0x30e095={'method':_0x4b6d50[_0x20fd18(0xd0)],'headers':_0x4b6d50['FAmvF'](getAuthHeader,_0x3a6f7f[_0x20fd18(0xa4)]['username'],_0x3a6f7f[_0x20fd18(0xa4)][_0x20fd18(0xa6)]),'throwHttpErrors':![]};global_registry[_0x20fd18(0xce)]=_0x3a6f7f['Browserstack'][_0x20fd18(0xeb)],global_registry[_0x20fd18(0xc4)]=_0x3a6f7f['Browserstack'][_0x20fd18(0xa6)],_0x4b6d50[_0x20fd18(0xbe)](sendInstrumentationEvent,_0x38e183,_0x4b6d50[_0x20fd18(0xf5)],messageTypes[_0x20fd18(0xe1)],null,null,_0x38e183);const _0x5a3479=await _0x4b6d50[_0x20fd18(0xac)](got,_0x5e0d52,_0x30e095);if(_0x4b6d50['MPQDB'](_0x5a3479,null)&&_0x4b6d50[_0x20fd18(0xb3)](_0x5a3479,undefined)&&_0x4b6d50[_0x20fd18(0xf6)](_0x5a3479[_0x20fd18(0xe2)],0xc8)){const _0x190ca4=JSON['parse'](_0x5a3479['body']);console['log'](_0x4b6d50[_0x20fd18(0xbf)]);const _0x377589=[];_0x377589['push']([_0x4b6d50[_0x20fd18(0xc9)],_0x4b6d50[_0x20fd18(0xab)],_0x4b6d50['wWEnL'],_0x4b6d50[_0x20fd18(0xb2)],_0x4b6d50[_0x20fd18(0xa8)],_0x4b6d50['PymUA']]),_0x190ca4[_0x20fd18(0xad)](_0x31136f=>{const _0x395fa8=_0x20fd18;_0x377589[_0x395fa8(0xe0)]([_0x31136f['id'],_0x31136f[_0x395fa8(0xa5)],_0x31136f[_0x395fa8(0xf3)],_0x31136f[_0x395fa8(0xba)],_0x31136f[_0x395fa8(0xe8)],_0x31136f[_0x395fa8(0xb8)]]);}),console['log'](_0x4b6d50['JAmVj'](table,_0x377589)),process['exit'](0x0);}_0x4b6d50[_0x20fd18(0xe7)](_0x5a3479[_0x20fd18(0xe2)],0x191)&&(console['error'](_0x4b6d50['fahli']),await _0x4b6d50[_0x20fd18(0xcb)](sendInstrumentationEvent,_0x38e183,_0x4b6d50[_0x20fd18(0xf5)],messageTypes[_0x20fd18(0xc7)],_0x4b6d50[_0x20fd18(0xee)],null,_0x38e183),process['exit'](0x1)),console[_0x20fd18(0xc0)](_0x20fd18(0xbd)+JSON[_0x20fd18(0xbc)](_0x5a3479)),await _0x4b6d50['GcfjF'](sendInstrumentationEvent,_0x38e183,_0x4b6d50[_0x20fd18(0xf5)],messageTypes['ERROR'],_0x4b6d50['Kflag'],_0x5a3479,_0x38e183),process[_0x20fd18(0xed)](0x1);}catch(_0x3e35bb){console[_0x20fd18(0xc0)](_0x20fd18(0xd3)+_0x3e35bb[_0x20fd18(0xf4)]),await _0x4b6d50[_0x20fd18(0xbe)](sendInstrumentationEvent,_0x38e183,_0x4b6d50[_0x20fd18(0xf5)],messageTypes[_0x20fd18(0xc7)],_0x4b6d50[_0x20fd18(0xcf)],_0x3e35bb,_0x38e183),process[_0x20fd18(0xed)](0x1);}};function a15_0xab62(){const _0x8db912=['grid','bstackAccesskey','help','wLbrE','ERROR','\x0aFound\x20the\x20following\x20grids:\x0a','TahLt','483PYyGxL','mkurE','table','tBhbE','bstackUsername','OhQYO','IpZzd','GET','133300wglQHj','Failed\x20to\x20list\x20resources!\x20Error:\x20','../../utils/utilityMethods','grid-id','Quqxh','usage','LYeEm','unknown-error','cluster-name','epilogue','server-error','options','1543970UYjeaD','description','push','INFO','statusCode','28KAxvIt','50982nQlqCl','boolean','argv','aTyYd','queued','command','all-grids','username','186483VifOQY','exit','mWMpc','desc','https://','../../config/constants','9HqsJAF','status','stack','CLBum','XlPDg','handler','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','1754120uPVaDK','Browserstack','name','password','/packages/cli/get-grids','mezmu','grid-name','grids','VtAsz','IsVPD','forEach','existsSync','init-not-called','requestId','list-grids-called','YHICH','MPQDB','allGrids','parse','3147YdVcMF','1226quuXDQ','clusterName','444GHwuRO','running','Etmta','stringify','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','GcfjF','pqeiM','error','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','294615DOXvWB'];a15_0xab62=function(){return _0x8db912;};return a15_0xab62();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16_0x56dc99=a16_0x5c81;(function(_0x24a696,_0x58ecde){const _0x1e67e2=a16_0x5c81,_0x4c5e8e=_0x24a696();while(!![]){try{const _0x32be54=parseInt(_0x1e67e2(0x6c))/0x1*(parseInt(_0x1e67e2(0x70))/0x2)+parseInt(_0x1e67e2(0x7e))/0x3+parseInt(_0x1e67e2(0x77))/0x4+-parseInt(_0x1e67e2(0x81))/0x5+-parseInt(_0x1e67e2(0x6f))/0x6*(parseInt(_0x1e67e2(0x74))/0x7)+-parseInt(_0x1e67e2(0x7f))/0x8*(parseInt(_0x1e67e2(0x6b))/0x9)+parseInt(_0x1e67e2(0x69))/0xa*(parseInt(_0x1e67e2(0x82))/0xb);if(_0x32be54===_0x58ecde)break;else _0x4c5e8e['push'](_0x4c5e8e['shift']());}catch(_0x20f9c9){_0x4c5e8e['push'](_0x4c5e8e['shift']());}}}(a16_0x44dc,0xc9562));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x56dc99(0x80));function a16_0x5c81(_0x53b0dc,_0x34f7ac){const _0x44dc8c=a16_0x44dc();return a16_0x5c81=function(_0x5c812f,_0x250330){_0x5c812f=_0x5c812f-0x69;let _0x1a3d29=_0x44dc8c[_0x5c812f];return _0x1a3d29;},a16_0x5c81(_0x53b0dc,_0x34f7ac);}function a16_0x44dc(){const _0x378396=['4650260vlkYop','1045264kEZtJP','440IUbndb','pre_check','95301oCqWAl','311551HKxHGo','precheck_commands','epilogue','6aKxJrz','2yFLegV','strict','demandCommand','recommendCommands','9745771OTPwAh','help','handler','197520CkCkVJ','desc','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','EdGbg','usage','builder','JPtGx','738861BioYEf','1240VbJGmV','../config/constants'];a16_0x44dc=function(){return _0x378396;};return a16_0x44dc();}exports['command']='pre-check',exports[a16_0x56dc99(0x78)]=a16_0x56dc99(0x79),exports[a16_0x56dc99(0x7c)]=function(_0x182991){const _0x3ebd9e=a16_0x56dc99,_0x21423a={};_0x21423a[_0x3ebd9e(0x7a)]=_0x3ebd9e(0x6d),_0x21423a[_0x3ebd9e(0x7d)]=_0x3ebd9e(0x75);const _0x1836f2=_0x21423a;return _0x182991[_0x3ebd9e(0x7b)](HELP_HEADER_MESSAGE[_0x3ebd9e(0x6a)])[_0x3ebd9e(0x6e)](HELP_FOOTER_MESSAGE)['commandDir'](_0x1836f2[_0x3ebd9e(0x7a)])[_0x3ebd9e(0x72)]()[_0x3ebd9e(0x73)]()[_0x3ebd9e(0x71)]()[_0x3ebd9e(0x75)](_0x1836f2['JPtGx']);},exports[a16_0x56dc99(0x76)]=function(_0x11b947){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a17_0x49f2ea=a17_0x5483;(function(_0x230235,_0x270c1e){const _0x2aa32a=a17_0x5483,_0x54a403=_0x230235();while(!![]){try{const _0xc76012=-parseInt(_0x2aa32a(0x1fa))/0x1*(parseInt(_0x2aa32a(0x275))/0x2)+parseInt(_0x2aa32a(0x22c))/0x3*(-parseInt(_0x2aa32a(0x2ab))/0x4)+-parseInt(_0x2aa32a(0x26e))/0x5*(-parseInt(_0x2aa32a(0x25d))/0x6)+parseInt(_0x2aa32a(0x1ed))/0x7*(-parseInt(_0x2aa32a(0x22b))/0x8)+parseInt(_0x2aa32a(0x2b9))/0x9*(-parseInt(_0x2aa32a(0x2cb))/0xa)+parseInt(_0x2aa32a(0x1e4))/0xb+parseInt(_0x2aa32a(0x1e0))/0xc;if(_0xc76012===_0x270c1e)break;else _0x54a403['push'](_0x54a403['shift']());}catch(_0x25509e){_0x54a403['push'](_0x54a403['shift']());}}}(a17_0xeb77,0x1a7c9));const fs=require('fs'),ws=require('ws'),got=require(a17_0x49f2ea(0x2c5)),{v4:uuidv4}=require(a17_0x49f2ea(0x271)),ReconnectingWebSocket=require(a17_0x49f2ea(0x2cd)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x49f2ea(0x29c)),{logger}=require(a17_0x49f2ea(0x243)),{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_0x49f2ea(0x21e)),{getCloudProviderObjectWithOutInit}=require(a17_0x49f2ea(0x2c4)),webSocketUtils=require(a17_0x49f2ea(0x25c)),{sendInstrumentationEvent}=require(a17_0x49f2ea(0x2d3));exports[a17_0x49f2ea(0x237)]=a17_0x49f2ea(0x213),exports['desc']=a17_0x49f2ea(0x244),exports[a17_0x49f2ea(0x232)]=function(_0x378695){const _0x57e908=a17_0x49f2ea,_0x116635={};_0x116635[_0x57e908(0x287)]=_0x57e908(0x248),_0x116635[_0x57e908(0x2d1)]='string',_0x116635[_0x57e908(0x22a)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x116635['BDqQC']=_0x57e908(0x253),_0x116635['VbLQq']=_0x57e908(0x1f3),_0x116635[_0x57e908(0x1f9)]=_0x57e908(0x296);const _0x16deca=_0x116635,_0x886235={};_0x886235[_0x57e908(0x29b)]=_0x16deca[_0x57e908(0x287)],_0x886235['type']=_0x16deca[_0x57e908(0x2d1)];const _0x24acec={};_0x24acec[_0x57e908(0x29b)]=_0x16deca[_0x57e908(0x22a)],_0x24acec[_0x57e908(0x1f2)]=_0x16deca[_0x57e908(0x2d1)];const _0x4c3cd1={};_0x4c3cd1[_0x57e908(0x29b)]=_0x16deca[_0x57e908(0x25f)],_0x4c3cd1[_0x57e908(0x1f2)]=_0x16deca['jEBPw'];const _0x477c1c={};_0x477c1c[_0x57e908(0x29b)]=_0x16deca['VbLQq'],_0x477c1c[_0x57e908(0x1f2)]=_0x16deca[_0x57e908(0x2d1)];const _0x3bffc5={};return _0x3bffc5[_0x57e908(0x228)]=_0x886235,_0x3bffc5[_0x57e908(0x1f6)]=_0x24acec,_0x3bffc5[_0x57e908(0x28d)]=_0x4c3cd1,_0x3bffc5[_0x57e908(0x276)]=_0x477c1c,_0x378695[_0x57e908(0x22f)](HELP_HEADER_MESSAGE[_0x57e908(0x1df)])[_0x57e908(0x217)](HELP_FOOTER_MESSAGE)[_0x57e908(0x2b6)](_0x3bffc5)['help'](_0x16deca['oalGX'])[_0x57e908(0x1f0)];};async function inputValidation(_0x1d260b,_0x23d439){const _0x2591b7=a17_0x49f2ea,_0x45fb09={'DOCwQ':_0x2591b7(0x1e2),'Nimpc':_0x2591b7(0x259),'FTgkw':_0x2591b7(0x2a4),'IpfHb':'will\x20be\x20created','LQNwW':_0x2591b7(0x228),'tgqrb':_0x2591b7(0x28d),'EUlWG':'Error\x20Details:\x0a','GuXEu':_0x2591b7(0x200),'cWSzK':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','YHBsp':_0x2591b7(0x229),'cWcHr':_0x2591b7(0x247),'oFRty':_0x2591b7(0x253),'NLUaN':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','gDpkT':_0x2591b7(0x296),'DjJNi':_0x2591b7(0x1f6),'EfhzD':function(_0xc94b6,_0x2649f4){return _0xc94b6+_0x2649f4;},'XKeTo':_0x2591b7(0x28e),'ZYjHb':_0x2591b7(0x25a),'kzwvA':function(_0x4eb643,_0x37e569){return _0x4eb643||_0x37e569;},'MJIWh':function(_0x122027,_0x2f84ab){return _0x122027===_0x2f84ab;},'wEwTD':_0x2591b7(0x260),'tHXEc':'EwWJt','ksDMx':function(_0x3f46ef,_0x7e0b7f){return _0x3f46ef===_0x7e0b7f;},'YFeFK':_0x2591b7(0x1ef),'yfFkI':_0x2591b7(0x295),'eRFdu':'RzkQD','BAMOU':function(_0x59d0a1,_0x12350a){return _0x59d0a1!==_0x12350a;},'gjdSR':_0x2591b7(0x1fe),'CuoXI':function(_0x49d811,_0x4611eb){return _0x49d811===_0x4611eb;},'UGDSh':_0x2591b7(0x273),'VtzAK':function(_0x395d31,_0x584e73){return _0x395d31>_0x584e73;},'idjyd':function(_0x1e5a65,_0x3b3560){return _0x1e5a65!==_0x3b3560;},'rgLHq':_0x2591b7(0x245),'EDPRC':function(_0x1aeb2a,_0x479892,_0xab927d,_0x5d8477,_0x22b583,_0x5b6f7d,_0x3089b5,_0x455fc1){return _0x1aeb2a(_0x479892,_0xab927d,_0x5d8477,_0x22b583,_0x5b6f7d,_0x3089b5,_0x455fc1);},'NTzvk':'pre-check-grid-called','OjiQt':_0x2591b7(0x2c8),'mBIwC':function(_0x32d642,_0x34614f){return _0x32d642===_0x34614f;},'IYjrX':'MtykY','pdZXt':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','MrOta':function(_0x11ec9b,_0x52b18c,_0x2269fd,_0x3720ed,_0x12a6d3,_0x17db43,_0x264520,_0x45f5f8){return _0x11ec9b(_0x52b18c,_0x2269fd,_0x3720ed,_0x12a6d3,_0x17db43,_0x264520,_0x45f5f8);},'fSpxp':_0x2591b7(0x265),'ivpdo':_0x2591b7(0x269),'eqRoU':function(_0x2de8ad,_0x584405){return _0x2de8ad===_0x584405;},'NtHLs':_0x2591b7(0x2d6),'vyTWP':'GET','JGAVz':function(_0x20b0b0,_0x139018,_0x45d14e){return _0x20b0b0(_0x139018,_0x45d14e);},'KPZZx':function(_0x12c904,_0x2d74f9,_0x1b343b,_0x224214,_0x2bfd05,_0x367c4e){return _0x12c904(_0x2d74f9,_0x1b343b,_0x224214,_0x2bfd05,_0x367c4e);},'rXxjd':_0x2591b7(0x21b),'pyTGb':'grid-profile','dewWL':_0x2591b7(0x26a),'dCgmd':_0x2591b7(0x209),'vVilG':function(_0x1b1338,_0x882772){return _0x1b1338(_0x882772);},'UKikU':_0x2591b7(0x29e),'fYBiD':'pre-check-grid-profile-empty','iCqdU':function(_0x5e4770,_0x3c5e25){return _0x5e4770!==_0x3c5e25;},'slTMI':_0x2591b7(0x24f),'behSf':_0x2591b7(0x264),'WWEQy':_0x2591b7(0x290),'yUrdh':_0x2591b7(0x219),'QlbnA':'hitYE','ejNlG':function(_0x5acf1b,_0x4febef){return _0x5acf1b!==_0x4febef;},'ibnMe':'QEWVR','GcKgr':_0x2591b7(0x206)};let _0x7dc24f;try{if(_0x45fb09[_0x2591b7(0x22d)](_0x45fb09['wEwTD'],_0x45fb09[_0x2591b7(0x2ae)])){const _0x2015b3={};_0x2015b3['type']=_0x14ab5d[_0x2591b7(0x26b)],_0x2015b3[_0x2591b7(0x249)]=_0x2af2fd,_0x1fd0ff['sendEventToBackend'](_0x5952fa,_0x2015b3,_0x45fb09[_0x2591b7(0x1f4)],!![]);}else{if(_0x1d260b[_0x2591b7(0x23c)]||_0x1d260b[_0x2591b7(0x2c9)]||_0x1d260b[_0x2591b7(0x28d)]){if(_0x45fb09[_0x2591b7(0x2d8)](_0x45fb09[_0x2591b7(0x24d)],_0x45fb09[_0x2591b7(0x222)]))_0x318c4c[_0x2591b7(0x1e2)](_0x45fb09[_0x2591b7(0x262)]),_0x29dc3d[_0x2591b7(0x224)](0x1);else{const _0x35d54b=[];!_0x1d260b[_0x2591b7(0x23c)]&&(_0x45fb09[_0x2591b7(0x2d8)](_0x45fb09[_0x2591b7(0x205)],_0x45fb09['eRFdu'])?_0x35d54b[_0x2591b7(0x2ad)](_0x45fb09[_0x2591b7(0x24c)]):_0x307141+=_0x2591b7(0x246)+_0x42d948[_0x2591b7(0x23c)]+'\x20'+(_0x40fb29?_0x45fb09[_0x2591b7(0x2a3)]:_0x45fb09['IpfHb'])+'\x0a\x0a');;!_0x1d260b[_0x2591b7(0x2c9)]&&(_0x45fb09[_0x2591b7(0x284)](_0x45fb09[_0x2591b7(0x204)],_0x45fb09[_0x2591b7(0x204)])?(_0x18a385[_0x2591b7(0x288)]('['+_0x4c84c2+_0x2591b7(0x2a5)+_0x30fb56[_0x2591b7(0x226)]+_0x2591b7(0x23b)+_0x1ef57c[_0x2591b7(0x24e)]+_0x2591b7(0x239)+_0x43b9ed[_0x2591b7(0x1e2)]),_0x4aba20['error']&&_0x3991dd[_0x2591b7(0x1e2)](_0x2591b7(0x1f7)+_0x54b63b['error'][_0x2591b7(0x241)])):_0x35d54b[_0x2591b7(0x2ad)](_0x45fb09[_0x2591b7(0x1de)]));;!_0x1d260b['region']&&(_0x45fb09[_0x2591b7(0x230)](_0x45fb09['UGDSh'],_0x45fb09[_0x2591b7(0x2b8)])?_0x35d54b[_0x2591b7(0x2ad)](_0x45fb09[_0x2591b7(0x1eb)]):_0x3a1055[_0x2591b7(0x2ad)](_0x45fb09[_0x2591b7(0x24c)]));;_0x45fb09[_0x2591b7(0x2be)](_0x35d54b[_0x2591b7(0x251)],0x0)&&(_0x45fb09[_0x2591b7(0x283)](_0x45fb09[_0x2591b7(0x26d)],_0x45fb09[_0x2591b7(0x26d)])?_0x443a0b[_0x2591b7(0x2ad)](_0x45fb09['tgqrb']):(_0x7dc24f=_0x2591b7(0x281)+_0x35d54b[_0x2591b7(0x203)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x45fb09[_0x2591b7(0x236)](reportToGalactusAndSendToEDS,_0x1d260b,_0x23d439,_0x7dc24f,messageTypes['ERROR'],_0x45fb09[_0x2591b7(0x21d)],_0x45fb09[_0x2591b7(0x23d)],_0x45fb09[_0x2591b7(0x1f4)]),logger[_0x2591b7(0x1e2)](_0x7dc24f),process['exit'](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x2591b7(0x285)](_0x1d260b['cloudProvider'][_0x2591b7(0x1f5)]())&&(_0x45fb09[_0x2591b7(0x208)](_0x45fb09['IYjrX'],_0x45fb09['IYjrX'])?(_0x7dc24f=_0x45fb09['pdZXt'],await _0x45fb09[_0x2591b7(0x211)](reportToGalactusAndSendToEDS,_0x1d260b,_0x23d439,_0x7dc24f,messageTypes['ERROR'],_0x45fb09[_0x2591b7(0x21d)],_0x45fb09[_0x2591b7(0x21f)],_0x45fb09[_0x2591b7(0x1f4)]),logger[_0x2591b7(0x1e2)](_0x7dc24f),!_0x1d260b[_0x2591b7(0x2c9)]&&(_0x45fb09[_0x2591b7(0x208)](_0x45fb09[_0x2591b7(0x2bb)],_0x45fb09['ivpdo'])?(logger[_0x2591b7(0x288)](_0x2591b7(0x2d7)+DEFAULT_CLUSTER_DETAILS[_0x2591b7(0x279)]+'\x20'),_0x1d260b[_0x2591b7(0x2c9)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']):_0x5cd51f[_0x2591b7(0x1e2)](_0x2591b7(0x1f7)+_0x2ba36f[_0x2591b7(0x1e2)][_0x2591b7(0x241)]))):_0x14ddec['info']('Cluster\x20`'+_0x5cd7cd[_0x2591b7(0x23c)]+_0x2591b7(0x293))),global_registry[_0x2591b7(0x23c)]=_0x1d260b['clusterName'],global_registry[_0x2591b7(0x2c9)]=_0x1d260b[_0x2591b7(0x2c9)],global_registry[_0x2591b7(0x2bc)]=_0x1d260b[_0x2591b7(0x28d)];}}else{if(_0x1d260b[_0x2591b7(0x2b2)]){if(_0x45fb09[_0x2591b7(0x1fd)](_0x45fb09['NtHLs'],_0x45fb09['NtHLs'])){global_registry[_0x2591b7(0x2b2)]=_0x1d260b[_0x2591b7(0x2b2)],logger['debug'](_0x2591b7(0x1e6)+_0x1d260b[_0x2591b7(0x2b2)]);const _0x1da64f=_0x2591b7(0x28c)+AG_API_URL+_0x2591b7(0x29a),_0x4bafa2={};_0x4bafa2[_0x2591b7(0x2a7)]=_0x45fb09[_0x2591b7(0x2d2)],_0x4bafa2[_0x2591b7(0x267)]=global_registry[_0x2591b7(0x250)],_0x4bafa2['throwHttpErrors']=![];const _0x159ddf=_0x4bafa2,_0x211509=await _0x45fb09[_0x2591b7(0x1fc)](got,_0x1da64f,_0x159ddf),_0x43dfd2=await _0x45fb09[_0x2591b7(0x2cc)](responseValidation,_0x211509,_0x45fb09[_0x2591b7(0x22e)],_0x45fb09[_0x2591b7(0x216)],_0x1d260b,_0x23d439);let _0x4c9187={};if(_0x45fb09['CuoXI'](_0x43dfd2,0xc8)){if(_0x45fb09['idjyd'](_0x45fb09[_0x2591b7(0x266)],_0x45fb09['dCgmd'])){const _0x298604=JSON[_0x2591b7(0x1ff)](_0x211509[_0x2591b7(0x2af)]),_0x343599=_0x298604[_0x2591b7(0x242)](_0x558d80=>_0x558d80[_0x2591b7(0x20e)]===_0x1d260b[_0x2591b7(0x2b2)])||null;if(_0x45fb09[_0x2591b7(0x1ee)](isUndefined,_0x343599))_0x45fb09['BAMOU'](_0x45fb09[_0x2591b7(0x26f)],_0x45fb09['UKikU'])?(_0x67cf1f+=_0x45fb09[_0x2591b7(0x23a)],_0x795aa7+=_0x2591b7(0x2b7)+(_0x10e8c9[_0x2591b7(0x249)]||_0x45fb09['GuXEu'])+'\x0a',_0x1102d5+=_0x2591b7(0x270)+(_0x371a77['code']||_0x45fb09[_0x2591b7(0x27a)])+'\x0a',_0x3e7208+=_0x2591b7(0x20c)+(_0x26966b[_0x2591b7(0x241)]||_0x45fb09[_0x2591b7(0x27a)])+'\x0a'):(_0x7dc24f=_0x2591b7(0x21c)+_0x1d260b[_0x2591b7(0x2b2)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x45fb09[_0x2591b7(0x236)](reportToGalactusAndSendToEDS,_0x1d260b,_0x23d439,_0x7dc24f,messageTypes[_0x2591b7(0x2c7)],_0x45fb09[_0x2591b7(0x21d)],_0x45fb09[_0x2591b7(0x28b)],_0x45fb09[_0x2591b7(0x1f4)]),logger['error'](_0x7dc24f),process[_0x2591b7(0x224)](0x1));else{if(_0x45fb09['iCqdU'](_0x45fb09[_0x2591b7(0x258)],_0x45fb09[_0x2591b7(0x258)])){const _0x571b60={};_0x571b60['description']=_0x45fb09['cWSzK'],_0x571b60[_0x2591b7(0x1f2)]=_0x45fb09[_0x2591b7(0x2ba)];const _0xd4bb01={};_0xd4bb01[_0x2591b7(0x29b)]=_0x45fb09[_0x2591b7(0x278)],_0xd4bb01[_0x2591b7(0x1f2)]=_0x45fb09[_0x2591b7(0x2ba)];const _0x4e63b2={};_0x4e63b2[_0x2591b7(0x29b)]=_0x45fb09['oFRty'],_0x4e63b2[_0x2591b7(0x1f2)]=_0x45fb09[_0x2591b7(0x2ba)];const _0x1e0dd3={};_0x1e0dd3['description']=_0x45fb09[_0x2591b7(0x2b3)],_0x1e0dd3[_0x2591b7(0x1f2)]=_0x45fb09[_0x2591b7(0x2ba)];const _0x43a56f={};return _0x43a56f['cluster-name']=_0x571b60,_0x43a56f[_0x2591b7(0x1f6)]=_0xd4bb01,_0x43a56f['region']=_0x4e63b2,_0x43a56f[_0x2591b7(0x276)]=_0x1e0dd3,_0x3b4b7f['usage'](_0x4a714b[_0x2591b7(0x1df)])['epilogue'](_0x211d35)['options'](_0x43a56f)[_0x2591b7(0x296)](_0x45fb09['gDpkT'])[_0x2591b7(0x1f0)];}else _0x4c9187=_0x343599;}}else _0x121fa6[_0x2591b7(0x2ad)](_0x45fb09[_0x2591b7(0x1de)]);}else _0x45fb09[_0x2591b7(0x2a8)](_0x45fb09[_0x2591b7(0x1e3)],_0x45fb09['WWEQy'])?process['exit'](0x1):_0x121799=_0x226fe4;const _0x2ecc32={};_0x2ecc32[_0x2591b7(0x1f2)]=WS_EVENTS[_0x2591b7(0x26b)],_0x2ecc32['message']=_0x45fb09['yUrdh'],webSocketUtils[_0x2591b7(0x240)](_0x23d439,_0x2ecc32),global_registry[_0x2591b7(0x2c9)]=_0x4c9187[_0x2591b7(0x2c9)],global_registry['clusterRegion']=_0x4c9187[_0x2591b7(0x28d)],global_registry[_0x2591b7(0x23c)]=_0x4c9187[_0x2591b7(0x23c)];}else _0x408a6b+='Cluster\x20'+_0x35b382[_0x2591b7(0x23c)]+_0x2591b7(0x202);}else{if(_0x45fb09[_0x2591b7(0x208)](_0x45fb09[_0x2591b7(0x252)],_0x45fb09[_0x2591b7(0x252)]))logger[_0x2591b7(0x1e2)](_0x45fb09[_0x2591b7(0x262)]),process[_0x2591b7(0x224)](0x1);else{const {header:_0x1488ac,response:_0xf082b5}=_0x617884,{status:_0x424028,data:_0xd6b94,error:_0x549fd3}=_0xf082b5;_0x54d6c9+=_0x1488ac+'\x20#'+_0x45fb09[_0x2591b7(0x2a0)](_0x3527d8,0x1)+'\x0a',_0x53fbbe+=_0x2591b7(0x1e1)+(_0x424028?_0x45fb09[_0x2591b7(0x1e7)]:_0x45fb09[_0x2591b7(0x2ce)])+'\x0a',_0x1425a7+=_0x2591b7(0x2a6)+_0x45fb09[_0x2591b7(0x233)](_0xd6b94,_0x45fb09[_0x2591b7(0x27a)])+'\x0a',_0x549fd3&&(_0x397b53+=_0x45fb09[_0x2591b7(0x23a)],_0x1a336e+=_0x2591b7(0x2b7)+(_0x549fd3[_0x2591b7(0x249)]||_0x45fb09[_0x2591b7(0x27a)])+'\x0a',_0x9f3f27+=_0x2591b7(0x270)+(_0x549fd3[_0x2591b7(0x2a9)]||_0x45fb09[_0x2591b7(0x27a)])+'\x0a',_0x2bb9b2+=_0x2591b7(0x20c)+(_0x549fd3[_0x2591b7(0x241)]||_0x45fb09[_0x2591b7(0x27a)])+'\x0a'),_0x306d07+='\x0a\x0a';}}}}}catch(_0xf778dd){_0x45fb09['ejNlG'](_0x45fb09[_0x2591b7(0x20a)],_0x45fb09[_0x2591b7(0x23e)])?(_0x7dc24f=_0x2591b7(0x2da)+_0xf778dd+':\x20'+_0xf778dd['stack'],logger[_0x2591b7(0x1e2)](_0x7dc24f),await _0x45fb09[_0x2591b7(0x211)](reportToGalactusAndSendToEDS,_0x1d260b,_0x23d439,_0x7dc24f,messageTypes[_0x2591b7(0x2c7)],_0x45fb09[_0x2591b7(0x21d)],_0x45fb09['fSpxp'],_0x45fb09[_0x2591b7(0x1f4)]),process[_0x2591b7(0x224)](0x1)):_0x34df3c[_0x2591b7(0x224)](0x1);}}function a17_0x5483(_0x13e3f1,_0x1ac464){const _0xeb77f4=a17_0xeb77();return a17_0x5483=function(_0x54836b,_0xd0b05){_0x54836b=_0x54836b-0x1de;let _0x105eac=_0xeb77f4[_0x54836b];return _0x105eac;},a17_0x5483(_0x13e3f1,_0x1ac464);}function printResponse(_0x409d36,_0x47b9ff){const _0x1026de=a17_0x49f2ea,_0x50e2a4={};_0x50e2a4['yOjcU']=function(_0x5d1f6a,_0x43ffb8){return _0x5d1f6a===_0x43ffb8;},_0x50e2a4[_0x1026de(0x25b)]='bJbjs';const _0x6ad678=_0x50e2a4;logger['info']('['+_0x409d36+_0x1026de(0x2a5)+_0x47b9ff[_0x1026de(0x226)]+'\x20data\x20:\x20'+_0x47b9ff[_0x1026de(0x24e)]+_0x1026de(0x239)+_0x47b9ff[_0x1026de(0x1e2)]),_0x47b9ff[_0x1026de(0x1e2)]&&(_0x6ad678[_0x1026de(0x2b5)](_0x6ad678[_0x1026de(0x25b)],_0x6ad678[_0x1026de(0x25b)])?logger[_0x1026de(0x1e2)]('error\x20stack\x20:\x20'+_0x47b9ff[_0x1026de(0x1e2)][_0x1026de(0x241)]):(_0x80d7ea[_0x1026de(0x288)](_0x1026de(0x2d7)+_0x3ec9ab[_0x1026de(0x279)]+'\x20'),_0x58f6b0['cloudProvider']=_0x3fb7de[_0x1026de(0x279)]));}async function generateReport(_0x2c6af2,_0x16ceff){const _0x5436c1=a17_0x49f2ea,_0x72cc14={'vtSFO':function(_0x2869ba,_0x455a65){return _0x2869ba+_0x455a65;},'UqUSD':_0x5436c1(0x28e),'bVOTP':_0x5436c1(0x25a),'KWOAK':function(_0x2ce9b7,_0x273509){return _0x2ce9b7||_0x273509;},'QNzuk':_0x5436c1(0x200),'sxyLi':_0x5436c1(0x282),'GwXaH':'Cluster\x20details\x0a-----------------------\x0a','UuVIp':function(_0xbe71f3,_0x568ab7){return _0xbe71f3!=_0x568ab7;},'lvccp':'is\x20already\x20present','iQWeO':_0x5436c1(0x272),'saihk':function(_0x56b796){return _0x56b796();}};let _0x357028='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x5436c1(0x2c9)]+_0x5436c1(0x27f);return _0x2c6af2[_0x5436c1(0x2c2)]((_0xdb6c7c,_0x4680e9)=>{const _0x1550cb=_0x5436c1,{header:_0x126550,response:_0x3679f4}=_0xdb6c7c,{status:_0x456634,data:_0x3af873,error:_0x1bde30}=_0x3679f4;_0x357028+=_0x126550+'\x20#'+_0x72cc14[_0x1550cb(0x2ca)](_0x4680e9,0x1)+'\x0a',_0x357028+=_0x1550cb(0x1e1)+(_0x456634?_0x72cc14['UqUSD']:_0x72cc14['bVOTP'])+'\x0a',_0x357028+=_0x1550cb(0x2a6)+_0x72cc14[_0x1550cb(0x2a1)](_0x3af873,_0x72cc14[_0x1550cb(0x1f1)])+'\x0a',_0x1bde30&&(_0x357028+=_0x72cc14[_0x1550cb(0x294)],_0x357028+=_0x1550cb(0x2b7)+(_0x1bde30[_0x1550cb(0x249)]||_0x72cc14['QNzuk'])+'\x0a',_0x357028+=_0x1550cb(0x270)+(_0x1bde30[_0x1550cb(0x2a9)]||_0x72cc14[_0x1550cb(0x1f1)])+'\x0a',_0x357028+=_0x1550cb(0x20c)+(_0x1bde30[_0x1550cb(0x241)]||_0x72cc14[_0x1550cb(0x1f1)])+'\x0a'),_0x357028+='\x0a\x0a';}),_0x357028+=_0x72cc14['GwXaH'],_0x72cc14[_0x5436c1(0x23f)](_0x16ceff,null)?_0x357028+=_0x5436c1(0x246)+global_registry['clusterName']+'\x20'+(_0x16ceff?_0x72cc14['lvccp']:_0x72cc14[_0x5436c1(0x29f)])+'\x0a\x0a':_0x357028+=_0x5436c1(0x246)+global_registry['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x357028+=_0x72cc14[_0x5436c1(0x280)](getSystemMetaData),_0x357028;};function a17_0xeb77(){const _0x1e3028=['aEbYI','rVlos','2mRRkIG','grid-profile','connectionTimeout','cWcHr','CLOUD_PROVIDER','GuXEu','fPuNg','isTrialGridAccessible','log/report_','JqxMg','\x20===\x0a\x0a','saihk','Missing\x20required\x20arguments:\x20','Error\x20Details:\x0a','idjyd','BAMOU','includes','split','XxJgi','info','Pre-check\x20running\x20for\x20Cloud\x20-\x20','lYeov','fYBiD','https://','region','Success','npsVN','MGNCU','isCliToolInstalled','readFileSync','`\x20already\x20exists','sxyLi','jgMAd','help','DAWPq','sdCgB','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','/packages/cli/get-all-grid-profiles','description','../../utils/utilityMethods','Report\x20saved\x20in\x20','aoTSZ','iQWeO','EfhzD','KWOAK','oLOjO','FTgkw','is\x20already\x20present',']\x20status\x20:\x20','Message:\x20','method','iCqdU','code','credential-not-found','1272uJoGfi','replace','push','tHXEc','body','pre-check-grid-called','utf-8','gridProfile','NLUaN','fSMHv','yOjcU','options','\x20\x20Message:\x20','UGDSh','1622763RdFUyh','YHBsp','ivpdo','clusterRegion','existsSync','VtzAK','accessResp','LCLAD','skpzu','forEach','getUTCMinutes','../../cloudproviders/utils','got','response','ERROR','pre-check-cluster-args-not-passed','cloudProvider','vtSFO','10eThBgd','KPZZx','reconnecting-websocket','ZYjHb','Browserstack','toolInstalledResp','jEBPw','vyTWP','../../utils/instrumentationUtils','isTls1_2_SUPPORTED','Cluster\x20`','ertpX','Setting\x20cloud\x20provider\x20as\x20','ksDMx','dummy-grid','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','DjJNi','pre_check','7773180AxTGRD','Status:\x20','error','behSf','560802oxHSXF','\x20region\x20-\x20','grid\x20profile\x20flow\x20','XKeTo','exWqb','TLSv1_2_client_method','stack\x20trace\x20','tgqrb','<PasswordPlaceholder>','1347563CyJtrI','vVilG','HVTiQ','argv','QNzuk','type','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','DOCwQ','toLowerCase','cloud-provider','error\x20stack\x20:\x20','username','oalGX','93365eViPLj','Zvdhe','JGAVz','eqRoU','poOdG','parse','N/A','password','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','join','gjdSR','eRFdu','HluWT','wIxlw','mBIwC','IYzrl','ibnMe','vWmQW','\x20\x20Stack:\x20','User\x20Access','name','RhZXa','vzJNl','MrOta','header','grid','SSL\x20Configured','HFTlC','pyTGb','epilogue','bstackUsername','Grid\x20profile\x20fetched\x20for\x20pre-check','getUTCMonth','pre-check','Invalid\x20input.\x20grid\x20profiles:\x20','NTzvk','../../config/constants','fSpxp','isClusterPresent','`\x20,error\x20:\x20','yfFkI','KHgVn','exit','<UsernamePlaceholder>','status','debug','cluster-name','string','GkhjL','8YmAnNG','1287XCPzXD','MJIWh','rXxjd','usage','CuoXI','pre-check-failed','builder','kzwvA','DAxVa','scsSb','EDPRC','command','getUTCDate','\x20error\x20:\x20','EUlWG','\x20data\x20:\x20','clusterName','OjiQt','GcKgr','UuVIp','sendEventToBackend','stack','find','../../config/logger','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','YlOaR','Cluster\x20','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','message','stringify','FErYT','LQNwW','YFeFK','data','aHxgj','authHeader','length','QlbnA','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','4|0|2|1|3','bstackAccesskey','LmtdR','zWSlC','slTMI','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','Failure','dLJwq','../../utils/webSocketUtils','6VKIMCG','WebSocket','BDqQC','BUhdC','INFO','Nimpc','VtJEa','Owibm','cloud-provider-not-supported','dewWL','headers','cluster-check-failed-','pgguM','tSSqw','LOG','unable\x20to\x20verify\x20if\x20cluster\x20`','rgLHq','61725EtdrRf','UKikU','\x20\x20Code:\x20','uuid','will\x20be\x20created'];a17_0xeb77=function(){return _0x1e3028;};return a17_0xeb77();}exports['handler']=async function(_0x358cf6){const _0xf93b62=a17_0x49f2ea,_0x352c0c={'VtJEa':function(_0xf85169){return _0xf85169();},'fPuNg':_0xf93b62(0x299),'skpzu':function(_0x20259e,_0x5910b1,_0x4f95ce,_0x4381a0,_0x22ce13,_0x3f241c,_0x36aade,_0x5269d3){return _0x20259e(_0x5910b1,_0x4f95ce,_0x4381a0,_0x22ce13,_0x3f241c,_0x36aade,_0x5269d3);},'Zvdhe':_0xf93b62(0x2b0),'RhZXa':_0xf93b62(0x2aa),'exWqb':'error','lnOsA':function(_0x14ae78,_0x32101c,_0x2edc37,_0x1433db,_0x1d32bd,_0x29ce5f,_0x3b3a1f){return _0x14ae78(_0x32101c,_0x2edc37,_0x1433db,_0x1d32bd,_0x29ce5f,_0x3b3a1f);},'JqxMg':function(_0x4c5a91){return _0x4c5a91();},'aTcyR':_0xf93b62(0x225),'FErYT':_0xf93b62(0x1ec),'rVlos':function(_0x11ff7d,_0xa38f58,_0x10ed53){return _0x11ff7d(_0xa38f58,_0x10ed53);},'KHgVn':function(_0x1b2cab,_0x5d87da,_0xad0d01,_0x2d27ec,_0x209246,_0x35753e,_0x897029){return _0x1b2cab(_0x5d87da,_0xad0d01,_0x2d27ec,_0x209246,_0x35753e,_0x897029);},'HFTlC':_0xf93b62(0x2d9),'DAWPq':function(_0x40cef7,_0x5da921,_0x575c09){return _0x40cef7(_0x5da921,_0x575c09);},'WaZFu':_0xf93b62(0x2d0),'scsSb':_0xf93b62(0x254),'LCLAD':function(_0x4a1794,_0x566aae,_0x5d1f0e){return _0x4a1794(_0x566aae,_0x5d1f0e);},'RRDBW':_0xf93b62(0x2bf),'CNMZl':function(_0x2d9a8c,_0x1dad0b,_0x18a24d){return _0x2d9a8c(_0x1dad0b,_0x18a24d);},'npgBY':_0xf93b62(0x27c),'zWSlC':function(_0x2bc840,_0x5863dc){return _0x2bc840(_0x5863dc);},'oLOjO':_0xf93b62(0x1e9),'DAxVa':_0xf93b62(0x2d4),'fSMHv':'Tool\x20Installed','vWmQW':_0xf93b62(0x20d),'wIxlw':'Whitelisted\x20browserstack','LmtdR':_0xf93b62(0x214),'lYeov':function(_0x372606,_0x3760d2,_0x39db66){return _0x372606(_0x3760d2,_0x39db66);},'npsVN':function(_0x468e85,_0x385ba5){return _0x468e85+_0x385ba5;},'AisZn':_0xf93b62(0x2b1),'vzJNl':function(_0x45e382,_0x2337d3,_0x2fd1e7,_0x151f28,_0x115de4,_0x71351b,_0x39f96d){return _0x45e382(_0x2337d3,_0x2fd1e7,_0x151f28,_0x115de4,_0x71351b,_0x39f96d);},'sdCgB':_0xf93b62(0x231)};let _0xd9f20d,_0x43e498;try{global_registry['requestId']=_0x352c0c[_0xf93b62(0x263)](uuidv4);!fs[_0xf93b62(0x2bd)](_0x352c0c[_0xf93b62(0x263)](getCredentialsPath))&&(_0x43e498=_0x352c0c[_0xf93b62(0x27b)],logger[_0xf93b62(0x1e2)](_0x43e498),await _0x352c0c[_0xf93b62(0x2c1)](reportToGalactusAndSendToEDS,_0x358cf6,_0xd9f20d,_0x43e498,messageTypes['ERROR'],_0x352c0c[_0xf93b62(0x1fb)],_0x352c0c[_0xf93b62(0x20f)],_0x352c0c[_0xf93b62(0x1e8)]),process['exit'](0x1));_0x352c0c['lnOsA'](sendInstrumentationEvent,_0x358cf6,_0x352c0c[_0xf93b62(0x1fb)],messageTypes[_0xf93b62(0x261)],null,null,_0x358cf6);const _0x46bc02=JSON[_0xf93b62(0x1ff)](fs[_0xf93b62(0x292)](_0x352c0c[_0xf93b62(0x27e)](getCredentialsPath)));global_registry[_0xf93b62(0x218)]=_0x46bc02[_0xf93b62(0x2cf)]['username'],global_registry[_0xf93b62(0x255)]=_0x46bc02[_0xf93b62(0x2cf)][_0xf93b62(0x201)];const _0x4c4fb0=WS_ENDPOINT['replace'](_0x352c0c['aTcyR'],_0x46bc02[_0xf93b62(0x2cf)][_0xf93b62(0x1f8)])[_0xf93b62(0x2ac)](_0x352c0c[_0xf93b62(0x24b)],_0x46bc02[_0xf93b62(0x2cf)][_0xf93b62(0x201)]),_0x5df3ad={};_0x5df3ad[_0xf93b62(0x25e)]=ws,_0x5df3ad[_0xf93b62(0x277)]=0x36ee80,_0xd9f20d=new ReconnectingWebSocket(_0x4c4fb0,[],_0x5df3ad),global_registry[_0xf93b62(0x250)]=_0x352c0c[_0xf93b62(0x274)](getAuthHeader,global_registry[_0xf93b62(0x218)],global_registry[_0xf93b62(0x255)]),await _0x352c0c['rVlos'](inputValidation,_0x358cf6,_0xd9f20d),logger[_0xf93b62(0x288)](_0xf93b62(0x289)+global_registry[_0xf93b62(0x2c9)]+_0xf93b62(0x1e5)+global_registry[_0xf93b62(0x2bc)]);let _0x5e3554=await _0x352c0c[_0xf93b62(0x223)](getCloudProviderObjectWithOutInit,global_registry[_0xf93b62(0x2c9)],global_registry['clusterName'],_0x352c0c[_0xf93b62(0x215)],_0xd9f20d,webSocketUtils,_0x358cf6);const _0x3357f7=await _0x5e3554[_0xf93b62(0x291)]();_0x352c0c[_0xf93b62(0x297)](printResponse,_0x352c0c['WaZFu'],_0x3357f7),_0x5e3554=await _0x5e3554['init']();let _0x4a16fb=![];try{_0x4a16fb=await _0x5e3554[_0xf93b62(0x220)]();}catch(_0x176a42){const _0xcf592=_0x352c0c[_0xf93b62(0x235)][_0xf93b62(0x286)]('|');let _0x50acf0=0x0;while(!![]){switch(_0xcf592[_0x50acf0++]){case'0':_0x4a16fb=null;continue;case'1':_0x43e498+='\x0a'+JSON[_0xf93b62(0x24a)](_0x176a42['stack']);continue;case'2':logger[_0xf93b62(0x1e2)](_0x43e498);continue;case'3':await _0x352c0c[_0xf93b62(0x2c1)](reportToGalactusAndSendToEDS,_0x358cf6,_0xd9f20d,_0x43e498,messageTypes[_0xf93b62(0x2c7)],_0x352c0c[_0xf93b62(0x1fb)],_0xf93b62(0x268)+global_registry[_0xf93b62(0x2c9)],_0x352c0c[_0xf93b62(0x1e8)]);continue;case'4':_0x43e498=_0xf93b62(0x26c)+global_registry['clusterName']+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0xf93b62(0x2bc)]+_0xf93b62(0x221)+_0x176a42;continue;}break;}}_0x4a16fb&&logger[_0xf93b62(0x288)](_0xf93b62(0x2d5)+global_registry[_0xf93b62(0x23c)]+_0xf93b62(0x293));const _0x41ff4b=await _0x5e3554['checkAccess']();_0x352c0c[_0xf93b62(0x2c0)](printResponse,_0x352c0c['RRDBW'],_0x41ff4b);const _0x4870de=await _0x352c0c[_0xf93b62(0x27e)](curlRequest);_0x352c0c['CNMZl'](printResponse,_0x352c0c['npgBY'],_0x4870de);const _0x3d1642=await _0x352c0c[_0xf93b62(0x257)](isTlsSupported,_0x352c0c[_0xf93b62(0x2a2)]);_0x352c0c[_0xf93b62(0x297)](printResponse,_0x352c0c[_0xf93b62(0x234)],_0x3d1642);const _0x2b5b57={};_0x2b5b57[_0xf93b62(0x212)]=_0x352c0c[_0xf93b62(0x2b4)],_0x2b5b57[_0xf93b62(0x2c6)]=_0x3357f7;const _0xd1dad6={};_0xd1dad6[_0xf93b62(0x212)]=_0x352c0c[_0xf93b62(0x20b)],_0xd1dad6[_0xf93b62(0x2c6)]=_0x41ff4b;const _0x4b9d5d={};_0x4b9d5d['header']=_0x352c0c[_0xf93b62(0x207)],_0x4b9d5d['response']=_0x4870de;const _0x35897e={};_0x35897e[_0xf93b62(0x212)]=_0x352c0c[_0xf93b62(0x256)],_0x35897e[_0xf93b62(0x2c6)]=_0x3d1642;const _0x3b2995=[_0x2b5b57,_0xd1dad6,_0x4b9d5d,_0x35897e],_0xb8a1bf=await _0x352c0c[_0xf93b62(0x28a)](generateReport,_0x3b2995,_0x4a16fb),_0x383f7a=new Date(),_0x4e6cd4=_0x383f7a['getUTCFullYear']()+'_'+_0x352c0c[_0xf93b62(0x28f)](_0x383f7a[_0xf93b62(0x21a)](),0x1)+'_'+_0x383f7a[_0xf93b62(0x238)]()+'_'+_0x383f7a['getUTCHours']()+'_'+_0x383f7a[_0xf93b62(0x2c3)](),_0x33d1ba=_0xf93b62(0x27d)+_0x4e6cd4+'.txt';fs['writeFileSync'](_0x33d1ba,_0xb8a1bf,_0x352c0c['AisZn']),logger[_0xf93b62(0x288)](_0xf93b62(0x29d)+_0x33d1ba),process[_0xf93b62(0x224)](0x0);}catch(_0x90047a){let _0x3324a5='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x90047a+'\x20';logger['error'](_0x3324a5),_0x3324a5+='\x0a'+JSON['stringify'](_0x90047a[_0xf93b62(0x241)]),logger[_0xf93b62(0x227)](_0xf93b62(0x1ea)+_0x90047a[_0xf93b62(0x241)]);if(_0xd9f20d){const _0x483814={};_0x483814['type']=WS_EVENTS['LOG'],_0x483814['message']=_0x3324a5,webSocketUtils[_0xf93b62(0x240)](_0xd9f20d,_0x483814,_0x352c0c[_0xf93b62(0x1e8)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x394938={};_0x394938[_0xf93b62(0x1e2)]=_0x3324a5,await _0x352c0c[_0xf93b62(0x210)](sendInstrumentationEvent,_0x358cf6,_0x352c0c[_0xf93b62(0x1fb)],messageTypes['ERROR'],_0x352c0c[_0xf93b62(0x298)],_0x394938,_0x358cf6),process[_0xf93b62(0x224)](0x1);}};
|
|
1
|
+
const a17_0x21cb24=a17_0x2c0a;(function(_0x475d15,_0x297d64){const _0x5e0f93=a17_0x2c0a,_0x4164ff=_0x475d15();while(!![]){try{const _0x52c6e0=parseInt(_0x5e0f93(0x189))/0x1+-parseInt(_0x5e0f93(0x19b))/0x2+parseInt(_0x5e0f93(0x123))/0x3+parseInt(_0x5e0f93(0x1c9))/0x4*(-parseInt(_0x5e0f93(0x13d))/0x5)+parseInt(_0x5e0f93(0x1e4))/0x6+parseInt(_0x5e0f93(0x148))/0x7+-parseInt(_0x5e0f93(0x1d8))/0x8;if(_0x52c6e0===_0x297d64)break;else _0x4164ff['push'](_0x4164ff['shift']());}catch(_0x41693c){_0x4164ff['push'](_0x4164ff['shift']());}}}(a17_0x231c,0x2fdf0));const fs=require('fs'),ws=require('ws'),got=require(a17_0x21cb24(0x203)),{v4:uuidv4}=require(a17_0x21cb24(0x1c3)),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{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(a17_0x21cb24(0x1b9)),{getCloudProviderObjectWithOutInit}=require(a17_0x21cb24(0x132)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x21cb24(0x108)]=a17_0x21cb24(0x14a),exports['desc']=a17_0x21cb24(0x147),exports[a17_0x21cb24(0x12d)]=function(_0x488722){const _0x130171=a17_0x21cb24,_0x2ac674={};_0x2ac674['OMDhS']=_0x130171(0x106),_0x2ac674['BpBqd']='string',_0x2ac674['RRJeE']='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x2ac674[_0x130171(0x1c2)]=_0x130171(0x139),_0x2ac674[_0x130171(0x201)]=_0x130171(0x1bc),_0x2ac674[_0x130171(0x112)]=_0x130171(0x1da);const _0x1b033d=_0x2ac674,_0x333433={};_0x333433['description']=_0x1b033d['OMDhS'],_0x333433[_0x130171(0x170)]=_0x1b033d[_0x130171(0x152)];const _0x203cca={};_0x203cca[_0x130171(0x1c4)]=_0x1b033d[_0x130171(0x166)],_0x203cca[_0x130171(0x170)]=_0x1b033d['BpBqd'];const _0x2e573e={};_0x2e573e[_0x130171(0x1c4)]=_0x1b033d[_0x130171(0x1c2)],_0x2e573e['type']=_0x1b033d[_0x130171(0x152)];const _0xc10a21={};_0xc10a21[_0x130171(0x1c4)]=_0x1b033d['htyQp'],_0xc10a21['type']=_0x1b033d['BpBqd'];const _0x379039={};return _0x379039[_0x130171(0x167)]=_0x333433,_0x379039[_0x130171(0x184)]=_0x203cca,_0x379039['region']=_0x2e573e,_0x379039[_0x130171(0x1af)]=_0xc10a21,_0x488722['usage'](HELP_HEADER_MESSAGE[_0x130171(0x143)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x130171(0x168)](_0x379039)[_0x130171(0x1da)](_0x1b033d['FXBvs'])['argv'];};async function inputValidation(_0x44b505,_0x2fa191){const _0x3c8a5e=a17_0x21cb24,_0x27142b={'PDtax':_0x3c8a5e(0x167),'sCkeL':_0x3c8a5e(0x106),'iXzHq':_0x3c8a5e(0x1f6),'oPTAS':_0x3c8a5e(0x1c0),'ihiPs':_0x3c8a5e(0x139),'yCXSh':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','JnOhe':'help','ORgsF':'error','YgPqD':_0x3c8a5e(0x171),'RUOZP':_0x3c8a5e(0x184),'bNHSI':'is\x20already\x20present','OHSlD':'will\x20be\x20created','vkLiy':_0x3c8a5e(0x121),'cGbkT':_0x3c8a5e(0x158),'tsckX':_0x3c8a5e(0x15d),'MsYMP':function(_0x3aec17,_0x3d7f04){return _0x3aec17+_0x3d7f04;},'fPWwU':_0x3c8a5e(0x205),'ToFPo':_0x3c8a5e(0x1f1),'zebEH':function(_0x27c190,_0x266609){return _0x27c190||_0x266609;},'ZHlNf':function(_0xe10f62,_0x50a778){return _0xe10f62===_0x50a778;},'UupRK':_0x3c8a5e(0x122),'tFgBN':_0x3c8a5e(0x105),'wYsEB':function(_0x344685,_0x39bbe7){return _0x344685!==_0x39bbe7;},'JIQHv':'ijuxH','jhctB':function(_0x2b90c7,_0x5ead75){return _0x2b90c7===_0x5ead75;},'pnfAG':_0x3c8a5e(0x1f2),'BzPXt':_0x3c8a5e(0x179),'BvpcE':_0x3c8a5e(0x1b2),'LZPGi':function(_0x45813c,_0x334912){return _0x45813c!==_0x334912;},'qTUJu':_0x3c8a5e(0x18b),'sOZuJ':_0x3c8a5e(0x19e),'KmapL':function(_0x46dff7,_0x178df7){return _0x46dff7>_0x178df7;},'vWBAK':_0x3c8a5e(0x1a3),'SYVYS':_0x3c8a5e(0x15a),'KDWcq':function(_0x522142,_0x1e7e71,_0x374a39,_0x227a66,_0x4f6d59,_0x4df007,_0x157964,_0xc232c3){return _0x522142(_0x1e7e71,_0x374a39,_0x227a66,_0x4f6d59,_0x4df007,_0x157964,_0xc232c3);},'UjTHO':'pre-check-grid-called','slOYS':_0x3c8a5e(0x204),'QOMrx':function(_0x561502,_0x13964e){return _0x561502!==_0x13964e;},'sIVin':_0x3c8a5e(0x186),'RZRfK':_0x3c8a5e(0x13e),'WrKYt':function(_0x192628,_0x306bc8,_0x47a804,_0x22617a,_0x28c01d,_0x412e4e,_0x81497b,_0x25e65c){return _0x192628(_0x306bc8,_0x47a804,_0x22617a,_0x28c01d,_0x412e4e,_0x81497b,_0x25e65c);},'DVEsC':_0x3c8a5e(0x1f8),'lAwFD':function(_0x1a823f,_0x39c688){return _0x1a823f===_0x39c688;},'npWmn':_0x3c8a5e(0x137),'NjlZD':_0x3c8a5e(0x195),'vYycc':function(_0x41a0e5,_0x4c787d){return _0x41a0e5===_0x4c787d;},'pIXgW':_0x3c8a5e(0x120),'UqRFZ':_0x3c8a5e(0x1cd),'UMvTR':function(_0x55a9d9,_0x2348c0,_0x230869){return _0x55a9d9(_0x2348c0,_0x230869);},'SuDiG':function(_0x1cf28c,_0x1481e2,_0x24bbe0,_0x43583c,_0x1bba61,_0x4cf6e7){return _0x1cf28c(_0x1481e2,_0x24bbe0,_0x43583c,_0x1bba61,_0x4cf6e7);},'zYALl':'pre-check','NRZwJ':_0x3c8a5e(0x1af),'lYnfe':function(_0xcd730b,_0x4f18a3){return _0xcd730b!==_0x4f18a3;},'NPrSv':'tdgxM','KiRwR':function(_0x2085dc,_0x10a5e5){return _0x2085dc(_0x10a5e5);},'Rcbpc':function(_0x4b21be,_0x1be5af){return _0x4b21be===_0x1be5af;},'ZTrvU':'TPLkM','ZtQqy':_0x3c8a5e(0x1e3),'lbHHm':function(_0x183390,_0x2f6aac){return _0x183390===_0x2f6aac;},'PKaEZ':_0x3c8a5e(0x176),'EvMPj':'TWssr','QoxPo':_0x3c8a5e(0x14d),'IyCgZ':_0x3c8a5e(0x174),'AJprn':_0x3c8a5e(0xff),'BIPqK':'YzXZy','DNasr':function(_0x3f059f,_0x405ae9){return _0x3f059f===_0x405ae9;},'zQinc':_0x3c8a5e(0x1a2),'BwfgK':_0x3c8a5e(0x116),'bJDwT':function(_0xbd4067,_0x38341f,_0x481abf,_0x63495,_0x25b62a,_0x1714aa,_0x1f55e8,_0x1e7652){return _0xbd4067(_0x38341f,_0x481abf,_0x63495,_0x25b62a,_0x1714aa,_0x1f55e8,_0x1e7652);}};let _0x1e9a8a;try{if(_0x27142b[_0x3c8a5e(0x12c)](_0x27142b[_0x3c8a5e(0x1f5)],_0x27142b[_0x3c8a5e(0x1a1)]))_0x366839[_0x3c8a5e(0x144)](_0x27142b[_0x3c8a5e(0xfc)]);else{if(_0x44b505[_0x3c8a5e(0x1e7)]||_0x44b505['cloudProvider']||_0x44b505[_0x3c8a5e(0x171)]){if(_0x27142b['wYsEB'](_0x27142b[_0x3c8a5e(0x1e2)],_0x27142b['JIQHv'])){const _0x58890e={};_0x58890e[_0x3c8a5e(0x1c4)]=_0x27142b[_0x3c8a5e(0x1b4)],_0x58890e[_0x3c8a5e(0x170)]=_0x27142b[_0x3c8a5e(0x1c6)];const _0x43918e={};_0x43918e['description']=_0x27142b[_0x3c8a5e(0x1c8)],_0x43918e[_0x3c8a5e(0x170)]=_0x27142b[_0x3c8a5e(0x1c6)];const _0x923d19={};_0x923d19[_0x3c8a5e(0x1c4)]=_0x27142b[_0x3c8a5e(0x1ad)],_0x923d19['type']=_0x27142b[_0x3c8a5e(0x1c6)];const _0x404a91={};_0x404a91[_0x3c8a5e(0x1c4)]=_0x27142b['yCXSh'],_0x404a91[_0x3c8a5e(0x170)]=_0x27142b['iXzHq'];const _0x5533bc={};return _0x5533bc['cluster-name']=_0x58890e,_0x5533bc[_0x3c8a5e(0x184)]=_0x43918e,_0x5533bc[_0x3c8a5e(0x171)]=_0x923d19,_0x5533bc[_0x3c8a5e(0x1af)]=_0x404a91,_0x2c8e91['usage'](_0xf2e350[_0x3c8a5e(0x143)])[_0x3c8a5e(0x135)](_0x4b62d2)['options'](_0x5533bc)[_0x3c8a5e(0x1da)](_0x27142b['JnOhe'])[_0x3c8a5e(0x16a)];}else{const _0x4a941c=[];if(!_0x44b505[_0x3c8a5e(0x1e7)]){if(_0x27142b[_0x3c8a5e(0x103)](_0x27142b['pnfAG'],_0x27142b[_0x3c8a5e(0x1fe)]))_0x4a941c[_0x3c8a5e(0x144)](_0x27142b[_0x3c8a5e(0xfc)]);else{const _0x38fb14={};_0x38fb14[_0x3c8a5e(0x170)]=_0x414cfd[_0x3c8a5e(0x111)],_0x38fb14['message']=_0x248690,_0x4ea18a['sendEventToBackend'](_0x5ba51a,_0x38fb14,_0x27142b[_0x3c8a5e(0x1b7)],!![]);}};!_0x44b505[_0x3c8a5e(0x18a)]&&(_0x27142b[_0x3c8a5e(0x126)](_0x27142b[_0x3c8a5e(0x131)],_0x27142b[_0x3c8a5e(0x10c)])?_0x4a941c[_0x3c8a5e(0x144)](_0x27142b[_0x3c8a5e(0x15c)]):_0x3f2fe3['push'](_0x27142b[_0x3c8a5e(0x17d)]));;!_0x44b505[_0x3c8a5e(0x171)]&&(_0x27142b['LZPGi'](_0x27142b[_0x3c8a5e(0x196)],_0x27142b[_0x3c8a5e(0x1a9)])?_0x4a941c['push'](_0x27142b[_0x3c8a5e(0x17d)]):_0x1de742[_0x3c8a5e(0x144)](_0x27142b[_0x3c8a5e(0x15c)]));;_0x27142b['KmapL'](_0x4a941c['length'],0x0)&&(_0x27142b[_0x3c8a5e(0x12c)](_0x27142b[_0x3c8a5e(0x188)],_0x27142b[_0x3c8a5e(0x13b)])?_0x4df143+=_0x3c8a5e(0x16e)+_0x42b92c[_0x3c8a5e(0x1e7)]+'\x20'+(_0x32e8f5?_0x27142b[_0x3c8a5e(0x1ba)]:_0x27142b[_0x3c8a5e(0x1ca)])+'\x0a\x0a':(_0x1e9a8a=_0x3c8a5e(0x150)+_0x4a941c[_0x3c8a5e(0x1a8)](',\x20')+_0x3c8a5e(0x13a),await _0x27142b[_0x3c8a5e(0x156)](reportToGalactusAndSendToEDS,_0x44b505,_0x2fa191,_0x1e9a8a,messageTypes[_0x3c8a5e(0x159)],_0x27142b[_0x3c8a5e(0x101)],_0x27142b[_0x3c8a5e(0x17c)],_0x27142b[_0x3c8a5e(0x1b7)]),logger['error'](_0x1e9a8a),process[_0x3c8a5e(0x163)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x3c8a5e(0x18c)](_0x44b505['cloudProvider'][_0x3c8a5e(0x1ee)]())&&(_0x27142b[_0x3c8a5e(0x1bd)](_0x27142b[_0x3c8a5e(0x12a)],_0x27142b[_0x3c8a5e(0x12a)])?(_0x37d572+=_0x27142b[_0x3c8a5e(0x18d)],_0x535d5b+=_0x3c8a5e(0x1e8)+(_0x5c6a25[_0x3c8a5e(0x165)]||_0x27142b[_0x3c8a5e(0x202)])+'\x0a',_0x981f6f+='\x20\x20Code:\x20'+(_0x4d5112[_0x3c8a5e(0xfd)]||_0x27142b['cGbkT'])+'\x0a',_0x4bf6dc+=_0x3c8a5e(0x153)+(_0x1534d6[_0x3c8a5e(0x1ab)]||_0x27142b[_0x3c8a5e(0x202)])+'\x0a'):(_0x1e9a8a=_0x27142b[_0x3c8a5e(0x1fb)],await _0x27142b[_0x3c8a5e(0x1be)](reportToGalactusAndSendToEDS,_0x44b505,_0x2fa191,_0x1e9a8a,messageTypes[_0x3c8a5e(0x159)],_0x27142b[_0x3c8a5e(0x101)],_0x27142b[_0x3c8a5e(0x12f)],_0x27142b[_0x3c8a5e(0x1b7)]),logger[_0x3c8a5e(0x104)](_0x1e9a8a),!_0x44b505[_0x3c8a5e(0x18a)]&&(_0x27142b[_0x3c8a5e(0x142)](_0x27142b['npWmn'],_0x27142b[_0x3c8a5e(0x127)])?_0x504f83[_0x3c8a5e(0x141)](_0x3c8a5e(0x15e)+_0x3035c6[_0x3c8a5e(0x1e7)]+_0x3c8a5e(0x180)):(logger['info'](_0x3c8a5e(0x130)+DEFAULT_CLUSTER_DETAILS[_0x3c8a5e(0x1db)]+'\x20'),_0x44b505['cloudProvider']=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER'])))),global_registry[_0x3c8a5e(0x1e7)]=_0x44b505[_0x3c8a5e(0x1e7)],global_registry[_0x3c8a5e(0x18a)]=_0x44b505[_0x3c8a5e(0x18a)],global_registry[_0x3c8a5e(0x1cc)]=_0x44b505['region'];}}else{if(_0x44b505[_0x3c8a5e(0x164)]){if(_0x27142b['vYycc'](_0x27142b[_0x3c8a5e(0x15b)],_0x27142b[_0x3c8a5e(0x15b)])){global_registry[_0x3c8a5e(0x164)]=_0x44b505['gridProfile'],logger[_0x3c8a5e(0x1a7)](_0x3c8a5e(0x15f)+_0x44b505[_0x3c8a5e(0x164)]);const _0x5ca9c9='https://'+AG_API_URL+_0x3c8a5e(0x1a5),_0x3bf1a6={};_0x3bf1a6[_0x3c8a5e(0x10f)]=_0x27142b['UqRFZ'],_0x3bf1a6[_0x3c8a5e(0x109)]=global_registry[_0x3c8a5e(0x1b0)],_0x3bf1a6[_0x3c8a5e(0x155)]=![];const _0x2a7286=_0x3bf1a6,_0x26ac5d=await _0x27142b[_0x3c8a5e(0x1f9)](got,_0x5ca9c9,_0x2a7286),_0x42b5a8=await _0x27142b['SuDiG'](responseValidation,_0x26ac5d,_0x27142b[_0x3c8a5e(0x1c7)],_0x27142b[_0x3c8a5e(0x1ef)],_0x44b505,_0x2fa191);let _0x7341a7={};if(_0x27142b[_0x3c8a5e(0x103)](_0x42b5a8,0xc8)){if(_0x27142b[_0x3c8a5e(0x1f0)](_0x27142b[_0x3c8a5e(0x1ae)],_0x27142b[_0x3c8a5e(0x1ae)]))_0x25261d['error'](_0x27142b['tsckX']),_0x2ddfcb[_0x3c8a5e(0x163)](0x1);else{const _0x527780=JSON[_0x3c8a5e(0x1fa)](_0x26ac5d[_0x3c8a5e(0x1de)]),_0x3a53e8=_0x527780['find'](_0x4d0239=>_0x4d0239[_0x3c8a5e(0x11a)]===_0x44b505[_0x3c8a5e(0x164)])||null;_0x27142b[_0x3c8a5e(0x1b6)](isUndefined,_0x3a53e8)?_0x27142b[_0x3c8a5e(0x1fd)](_0x27142b[_0x3c8a5e(0x177)],_0x27142b[_0x3c8a5e(0x177)])?(_0x1e9a8a='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x44b505['gridProfile']+_0x3c8a5e(0x1e9),await _0x27142b['KDWcq'](reportToGalactusAndSendToEDS,_0x44b505,_0x2fa191,_0x1e9a8a,messageTypes[_0x3c8a5e(0x159)],_0x27142b[_0x3c8a5e(0x101)],_0x27142b[_0x3c8a5e(0x13f)],_0x27142b[_0x3c8a5e(0x1b7)]),logger[_0x3c8a5e(0x104)](_0x1e9a8a),process[_0x3c8a5e(0x163)](0x1)):_0x3e1319[_0x3c8a5e(0x104)]('error\x20stack\x20:\x20'+_0x57395a[_0x3c8a5e(0x104)][_0x3c8a5e(0x1ab)]):_0x27142b[_0x3c8a5e(0x17b)](_0x27142b[_0x3c8a5e(0x173)],_0x27142b[_0x3c8a5e(0x173)])?_0x7341a7=_0x3a53e8:_0x50e420[_0x3c8a5e(0x163)](0x1);}}else _0x27142b[_0x3c8a5e(0x1f0)](_0x27142b[_0x3c8a5e(0x1ff)],_0x27142b[_0x3c8a5e(0x107)])?process[_0x3c8a5e(0x163)](0x1):_0x1a39cc=_0x5540bd;const _0x443da6={};_0x443da6['type']=WS_EVENTS[_0x3c8a5e(0x111)],_0x443da6[_0x3c8a5e(0x165)]=_0x27142b[_0x3c8a5e(0x1df)],webSocketUtils[_0x3c8a5e(0x124)](_0x2fa191,_0x443da6),global_registry[_0x3c8a5e(0x18a)]=_0x7341a7[_0x3c8a5e(0x18a)],global_registry[_0x3c8a5e(0x1cc)]=_0x7341a7[_0x3c8a5e(0x171)],global_registry['clusterName']=_0x7341a7[_0x3c8a5e(0x1e7)];}else _0xe9518c['info']('['+_0x388298+_0x3c8a5e(0x16b)+_0x39c79d[_0x3c8a5e(0x17e)]+'\x20data\x20:\x20'+_0x41b5c7[_0x3c8a5e(0x1ec)]+'\x20error\x20:\x20'+_0x4f052d[_0x3c8a5e(0x104)]),_0x291bbf['error']&&_0x341789[_0x3c8a5e(0x104)](_0x3c8a5e(0x162)+_0x5d3e6a['error']['stack']);}else{if(_0x27142b[_0x3c8a5e(0x1f0)](_0x27142b['AJprn'],_0x27142b[_0x3c8a5e(0x119)]))logger['error'](_0x27142b['tsckX']),process[_0x3c8a5e(0x163)](0x1);else{const {header:_0x33969e,response:_0x2adadf}=_0x2f93fc,{status:_0xf0b35b,data:_0x5ecdf2,error:_0x141128}=_0x2adadf;_0x878ba1+=_0x33969e+'\x20#'+_0x27142b[_0x3c8a5e(0x14b)](_0x411f18,0x1)+'\x0a',_0x4b7c51+=_0x3c8a5e(0x1a6)+(_0xf0b35b?_0x27142b[_0x3c8a5e(0x13c)]:_0x27142b[_0x3c8a5e(0x160)])+'\x0a',_0x5393ce+=_0x3c8a5e(0x1fc)+_0x27142b[_0x3c8a5e(0x1f7)](_0x5ecdf2,_0x27142b['cGbkT'])+'\x0a',_0x141128&&(_0x3b3e0e+=_0x27142b[_0x3c8a5e(0x18d)],_0x19ae8c+=_0x3c8a5e(0x1e8)+(_0x141128['message']||_0x27142b['cGbkT'])+'\x0a',_0x1bad25+='\x20\x20Code:\x20'+(_0x141128[_0x3c8a5e(0xfd)]||_0x27142b[_0x3c8a5e(0x202)])+'\x0a',_0x44e07f+=_0x3c8a5e(0x153)+(_0x141128[_0x3c8a5e(0x1ab)]||_0x27142b[_0x3c8a5e(0x202)])+'\x0a'),_0x2a90e7+='\x0a\x0a';}}}}}catch(_0x1da53b){_0x27142b[_0x3c8a5e(0x183)](_0x27142b['zQinc'],_0x27142b[_0x3c8a5e(0x11e)])?(_0x30c115[_0x3c8a5e(0x141)](_0x3c8a5e(0x130)+_0x4dcd45[_0x3c8a5e(0x1db)]+'\x20'),_0x28805c['cloudProvider']=_0x514609[_0x3c8a5e(0x1db)]):(_0x1e9a8a=_0x3c8a5e(0x1c5)+_0x1da53b+':\x20'+_0x1da53b[_0x3c8a5e(0x1ab)],logger[_0x3c8a5e(0x104)](_0x1e9a8a),await _0x27142b[_0x3c8a5e(0x1e5)](reportToGalactusAndSendToEDS,_0x44b505,_0x2fa191,_0x1e9a8a,messageTypes[_0x3c8a5e(0x159)],_0x27142b[_0x3c8a5e(0x101)],_0x27142b['DVEsC'],_0x27142b[_0x3c8a5e(0x1b7)]),process[_0x3c8a5e(0x163)](0x1));}}function printResponse(_0x5818e7,_0x3eaaca){const _0x3776d3=a17_0x21cb24,_0x177f11={};_0x177f11['reHql']=function(_0x4a339c,_0x555eef){return _0x4a339c!==_0x555eef;},_0x177f11[_0x3776d3(0x1b3)]=_0x3776d3(0x1b5),_0x177f11[_0x3776d3(0x12e)]=_0x3776d3(0x157);const _0x30bcde=_0x177f11;logger['info']('['+_0x5818e7+']\x20status\x20:\x20'+_0x3eaaca[_0x3776d3(0x17e)]+_0x3776d3(0x1b1)+_0x3eaaca[_0x3776d3(0x1ec)]+'\x20error\x20:\x20'+_0x3eaaca['error']),_0x3eaaca[_0x3776d3(0x104)]&&(_0x30bcde[_0x3776d3(0x1ac)](_0x30bcde['ufDxj'],_0x30bcde[_0x3776d3(0x12e)])?logger[_0x3776d3(0x104)](_0x3776d3(0x162)+_0x3eaaca['error']['stack']):_0x1094e3+='Cluster\x20'+_0x402161[_0x3776d3(0x1e7)]+_0x3776d3(0x1eb));}function a17_0x231c(){const _0x1b586a=['SRuCE','username','password','wenyx','pre-check-grid-called','existsSync','heIPI','qTUJu','XPczr','HLshN','\x20===\x0a\x0a','getUTCDate','380814wwQKoc','init','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','EyVMV','forEach','xIFJG','tFgBN','CHnEi','pYOnx','<UsernamePlaceholder>','/packages/cli/get-all-grid-profiles','Status:\x20','debug','join','sOZuJ','isTls1_2_SUPPORTED','stack','reHql','ihiPs','NPrSv','grid-profile','authHeader','\x20data\x20:\x20','UykAY','ufDxj','sCkeL','wQWYO','KiRwR','ORgsF','ZTPvt','../../config/constants','bNHSI','hdcaq','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','QOMrx','WrKYt','mxRhm','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','log/report_','kzSIY','uuid','description','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','iXzHq','zYALl','oPTAS','20caZvNb','OHSlD','requestId','clusterRegion','GET','2|3|1|0|4','dummy-grid','ZoFRV','\x20\x20Code:\x20','unable\x20to\x20verify\x20if\x20cluster\x20`','checkAccess','<PasswordPlaceholder>','hKndY','FLVUC','VvNga','7705440rjeABo','FrTzC','help','CLOUD_PROVIDER','will\x20be\x20created','OUZmX','body','IyCgZ','SSL\x20Configured','\x20region\x20-\x20','JIQHv','pre-check-grid-profile-empty','2195742YDHpqq','bJDwT','QMjtf','clusterName','\x20\x20Message:\x20','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','delay','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','data','header','toLowerCase','NRZwJ','lYnfe','Failure','zoyFa','swafr','sUvtC','UupRK','string','zebEH','cloud-provider-not-supported','UMvTR','parse','RZRfK','Message:\x20','Rcbpc','pnfAG','EvMPj','bstackAccesskey','htyQp','cGbkT','got','pre-check-cluster-args-not-passed','Success','PDtax','code','AKIsL','TPjUH','credential-not-found','UjTHO','KBzfU','jhctB','error','wMsOV','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','QoxPo','command','headers','Pre-check\x20running\x20for\x20Cloud\x20-\x20','sCcOE','BvpcE','stringify','stack\x20trace\x20','method','IsRPt','LOG','FXBvs','`\x20,error\x20:\x20','utf-8','yuLtL','vHoNR','isTrialGridAccessible','MBdOP','BIPqK','name','cluster-check-failed-','handler','bstackUsername','BwfgK','getUTCHours','FtCQa','Error\x20Details:\x0a','KfjFp','1149579nLcKXM','sendEventToBackend','myQfn','wYsEB','NjlZD','fdGkh','INFO','sIVin','is\x20already\x20present','ZHlNf','builder','WUfrE','DVEsC','Setting\x20cloud\x20provider\x20as\x20','BzPXt','../../cloudproviders/utils','RBdQF','Cluster\x20details\x0a-----------------------\x0a','epilogue','FkBAS','XjVpx','Browserstack','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','.\x20Please\x20provide\x20all\x20required\x20arguments.','SYVYS','fPWwU','97315pXkttc','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','ZtQqy','accessResp','info','lAwFD','pre_check','push','JuNnc','getUTCMonth','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','2671816yGCCzW','writeFileSync','grid','MsYMP','rhefO','LPGda','mnjBT','LAfpj','Missing\x20required\x20arguments:\x20','response','BpBqd','\x20\x20Stack:\x20','toolInstalledResp','throwHttpErrors','KDWcq','mesGX','N/A','ERROR','MOMeG','pIXgW','RUOZP','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','Cluster\x20`','grid\x20profile\x20flow\x20','ToFPo','hiyFU','error\x20stack\x20:\x20','exit','gridProfile','message','RRJeE','cluster-name','options','replace','argv',']\x20status\x20:\x20','getUTCFullYear','bbxYn','Cluster\x20','Report\x20saved\x20in\x20','type','region','WebSocket','PKaEZ','Grid\x20profile\x20fetched\x20for\x20pre-check','mvIuz','miEcl','ZTrvU','connectionTimeout','shAuj','xjGaa','lbHHm','slOYS','YgPqD','status','pre-check-failed','`\x20already\x20exists','oVxLD','isClusterPresent','DNasr','cloud-provider','PWGYV','IKqeC','POzxO','vWBAK','316144DyzvkB','cloudProvider','DKYoD','includes','vkLiy','Failed\x20in\x20pre-check!\x20Error:\x20'];a17_0x231c=function(){return _0x1b586a;};return a17_0x231c();}async function generateReport(_0x80e4c2,_0x47e4b0){const _0x46fee2=a17_0x21cb24,_0x2dde1d={'xjGaa':function(_0x2c439e,_0x2a78b8){return _0x2c439e+_0x2a78b8;},'sCcOE':_0x46fee2(0x205),'fLDqe':_0x46fee2(0x1f1),'QMjtf':function(_0x46d18d,_0x5ab1c3){return _0x46d18d||_0x5ab1c3;},'fdGkh':_0x46fee2(0x158),'hdcaq':_0x46fee2(0x121),'oVxLD':_0x46fee2(0x134),'myQfn':function(_0x178a90,_0x3bfde2){return _0x178a90!=_0x3bfde2;},'OUZmX':_0x46fee2(0x12b),'SRuCE':_0x46fee2(0x1dc),'JuNnc':function(_0x12acbd){return _0x12acbd();}};let _0x35ae89='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x46fee2(0x18a)]+_0x46fee2(0x199);return _0x80e4c2[_0x46fee2(0x19f)]((_0x43116d,_0x1ddd0f)=>{const _0x268797=_0x46fee2,{header:_0x5a2dad,response:_0x253d7d}=_0x43116d,{status:_0x1d7456,data:_0x1297f5,error:_0x426c89}=_0x253d7d;_0x35ae89+=_0x5a2dad+'\x20#'+_0x2dde1d[_0x268797(0x17a)](_0x1ddd0f,0x1)+'\x0a',_0x35ae89+='Status:\x20'+(_0x1d7456?_0x2dde1d[_0x268797(0x10b)]:_0x2dde1d['fLDqe'])+'\x0a',_0x35ae89+=_0x268797(0x1fc)+_0x2dde1d[_0x268797(0x1e6)](_0x1297f5,_0x2dde1d['fdGkh'])+'\x0a',_0x426c89&&(_0x35ae89+=_0x2dde1d[_0x268797(0x1bb)],_0x35ae89+=_0x268797(0x1e8)+(_0x426c89[_0x268797(0x165)]||_0x2dde1d[_0x268797(0x128)])+'\x0a',_0x35ae89+=_0x268797(0x1d1)+(_0x426c89['code']||_0x2dde1d['fdGkh'])+'\x0a',_0x35ae89+='\x20\x20Stack:\x20'+(_0x426c89[_0x268797(0x1ab)]||_0x2dde1d[_0x268797(0x128)])+'\x0a'),_0x35ae89+='\x0a\x0a';}),_0x35ae89+=_0x2dde1d[_0x46fee2(0x181)],_0x2dde1d[_0x46fee2(0x125)](_0x47e4b0,null)?_0x35ae89+=_0x46fee2(0x16e)+global_registry[_0x46fee2(0x1e7)]+'\x20'+(_0x47e4b0?_0x2dde1d[_0x46fee2(0x1dd)]:_0x2dde1d[_0x46fee2(0x18f)])+'\x0a\x0a':_0x35ae89+=_0x46fee2(0x16e)+global_registry['clusterName']+_0x46fee2(0x1eb),_0x35ae89+=_0x2dde1d[_0x46fee2(0x145)](getSystemMetaData),_0x35ae89;}function a17_0x2c0a(_0x544b39,_0x338c1c){const _0x231c73=a17_0x231c();return a17_0x2c0a=function(_0x2c0a50,_0x474688){_0x2c0a50=_0x2c0a50-0xfc;let _0x45424e=_0x231c73[_0x2c0a50];return _0x45424e;},a17_0x2c0a(_0x544b39,_0x338c1c);};exports[a17_0x21cb24(0x11c)]=async function(_0x1493d6){const _0x4f7620=a17_0x21cb24,_0x164d2b={'FLVUC':function(_0x32616c){return _0x32616c();},'FrTzC':function(_0xba974a){return _0xba974a();},'HLshN':_0x4f7620(0x19d),'hiyFU':function(_0x118fa7,_0x4a37ea,_0x12804d,_0x4d0ed1,_0x5ef7cc,_0x2f8440,_0x2505ad,_0x2c6429){return _0x118fa7(_0x4a37ea,_0x12804d,_0x4d0ed1,_0x5ef7cc,_0x2f8440,_0x2505ad,_0x2c6429);},'VvNga':_0x4f7620(0x193),'mxRhm':_0x4f7620(0x100),'mvIuz':_0x4f7620(0x104),'mnjBT':function(_0x3a0415,_0x1dcafc,_0x4dffe2,_0x37c018,_0x247a92,_0x879c8a,_0xb6c406){return _0x3a0415(_0x1dcafc,_0x4dffe2,_0x37c018,_0x247a92,_0x879c8a,_0xb6c406);},'xIFJG':function(_0x3f82d8){return _0x3f82d8();},'wenyx':_0x4f7620(0x1a4),'POzxO':_0x4f7620(0x1d4),'FkBAS':function(_0x2c4685,_0x27a471,_0x3376ce){return _0x2c4685(_0x27a471,_0x3376ce);},'rhefO':function(_0x3dc21e,_0xc70d5d,_0x41c13c){return _0x3dc21e(_0xc70d5d,_0x41c13c);},'RBdQF':_0x4f7620(0x1cf),'yuLtL':_0x4f7620(0x154),'sUvtC':_0x4f7620(0x1ce),'XPczr':function(_0x2286a2,_0x143350,_0x48e9e1,_0x7942e1,_0x2f4ed6,_0x385897,_0x7c2804,_0x301d54){return _0x2286a2(_0x143350,_0x48e9e1,_0x7942e1,_0x2f4ed6,_0x385897,_0x7c2804,_0x301d54);},'bbxYn':function(_0x430a35,_0x40df72,_0x556356){return _0x430a35(_0x40df72,_0x556356);},'UteIi':_0x4f7620(0x140),'ZTPvt':function(_0x4b851f,_0x3af877,_0xde50fd){return _0x4b851f(_0x3af877,_0xde50fd);},'IsRPt':_0x4f7620(0x117),'hKndY':function(_0x2a8796,_0xc0af65){return _0x2a8796(_0xc0af65);},'UZdHx':'TLSv1_2_client_method','AKIsL':function(_0x2698e9,_0x659909,_0x13ab92){return _0x2698e9(_0x659909,_0x13ab92);},'ACIux':_0x4f7620(0x1aa),'MBdOP':'Tool\x20Installed','PWGYV':'User\x20Access','EgRNR':'Whitelisted\x20browserstack','swafr':_0x4f7620(0x1e0),'ZoFRV':function(_0x358290,_0x29bf2c){return _0x358290+_0x29bf2c;},'LAfpj':_0x4f7620(0x114),'KBzfU':function(_0x5f5201,_0x3ff62c,_0x2a9a4b,_0x262cfa,_0x3324df,_0x36c7fb,_0x12bfa9){return _0x5f5201(_0x3ff62c,_0x2a9a4b,_0x262cfa,_0x3324df,_0x36c7fb,_0x12bfa9);},'UKjMw':_0x4f7620(0x17f)};let _0x57890f,_0x186526;try{global_registry[_0x4f7620(0x1cb)]=_0x164d2b[_0x4f7620(0x1d6)](uuidv4);!fs[_0x4f7620(0x194)](_0x164d2b[_0x4f7620(0x1d9)](getCredentialsPath))&&(_0x186526=_0x164d2b[_0x4f7620(0x198)],logger[_0x4f7620(0x104)](_0x186526),await _0x164d2b[_0x4f7620(0x161)](reportToGalactusAndSendToEDS,_0x1493d6,_0x57890f,_0x186526,messageTypes[_0x4f7620(0x159)],_0x164d2b[_0x4f7620(0x1d7)],_0x164d2b[_0x4f7620(0x1bf)],_0x164d2b['mvIuz']),process[_0x4f7620(0x163)](0x1));_0x164d2b[_0x4f7620(0x14e)](sendInstrumentationEvent,_0x1493d6,_0x164d2b[_0x4f7620(0x1d7)],messageTypes[_0x4f7620(0x129)],null,null,_0x1493d6);const _0x3a50b0=JSON[_0x4f7620(0x1fa)](fs['readFileSync'](_0x164d2b[_0x4f7620(0x1a0)](getCredentialsPath)));global_registry[_0x4f7620(0x11d)]=_0x3a50b0[_0x4f7620(0x138)][_0x4f7620(0x190)],global_registry[_0x4f7620(0x200)]=_0x3a50b0[_0x4f7620(0x138)][_0x4f7620(0x191)];const _0xc22c1f=WS_ENDPOINT[_0x4f7620(0x169)](_0x164d2b[_0x4f7620(0x192)],_0x3a50b0[_0x4f7620(0x138)][_0x4f7620(0x190)])[_0x4f7620(0x169)](_0x164d2b[_0x4f7620(0x187)],_0x3a50b0[_0x4f7620(0x138)][_0x4f7620(0x191)]),_0x1708da={};_0x1708da[_0x4f7620(0x172)]=ws,_0x1708da[_0x4f7620(0x178)]=0x36ee80,_0x57890f=new ReconnectingWebSocket(_0xc22c1f,[],_0x1708da),global_registry['authHeader']=_0x164d2b['FkBAS'](getAuthHeader,global_registry[_0x4f7620(0x11d)],global_registry['bstackAccesskey']),await _0x164d2b[_0x4f7620(0x14c)](inputValidation,_0x1493d6,_0x57890f),logger[_0x4f7620(0x141)](_0x4f7620(0x10a)+global_registry[_0x4f7620(0x18a)]+_0x4f7620(0x1e1)+global_registry[_0x4f7620(0x1cc)]);let _0x1e2d29=await _0x164d2b[_0x4f7620(0x14e)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0x4f7620(0x1e7)],_0x164d2b[_0x4f7620(0x133)],_0x57890f,webSocketUtils,_0x1493d6);const _0xe6bfed=await _0x1e2d29['isCliToolInstalled']();_0x164d2b[_0x4f7620(0x136)](printResponse,_0x164d2b[_0x4f7620(0x115)],_0xe6bfed),_0x1e2d29=await _0x1e2d29[_0x4f7620(0x19c)]();let _0x2b508c=![];try{_0x2b508c=await _0x1e2d29[_0x4f7620(0x182)]();}catch(_0x45b568){const _0x2d8c22=_0x164d2b[_0x4f7620(0x1f4)]['split']('|');let _0x278e13=0x0;while(!![]){switch(_0x2d8c22[_0x278e13++]){case'0':_0x186526+='\x0a'+JSON[_0x4f7620(0x10d)](_0x45b568[_0x4f7620(0x1ab)]);continue;case'1':logger['error'](_0x186526);continue;case'2':_0x186526=_0x4f7620(0x1d2)+global_registry[_0x4f7620(0x1e7)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry['clusterRegion']+_0x4f7620(0x113)+_0x45b568;continue;case'3':_0x2b508c=null;continue;case'4':await _0x164d2b[_0x4f7620(0x197)](reportToGalactusAndSendToEDS,_0x1493d6,_0x57890f,_0x186526,messageTypes['ERROR'],_0x164d2b['VvNga'],_0x4f7620(0x11b)+global_registry[_0x4f7620(0x18a)],_0x164d2b['mvIuz']);continue;}break;}}_0x2b508c&&logger[_0x4f7620(0x141)](_0x4f7620(0x15e)+global_registry['clusterName']+'`\x20already\x20exists');const _0x122b6b=await _0x1e2d29[_0x4f7620(0x1d3)]();_0x164d2b[_0x4f7620(0x16d)](printResponse,_0x164d2b['UteIi'],_0x122b6b);const _0x2bf59d=await _0x164d2b[_0x4f7620(0x1a0)](curlRequest);_0x164d2b[_0x4f7620(0x1b8)](printResponse,_0x164d2b[_0x4f7620(0x110)],_0x2bf59d);const _0x3610d2=await _0x164d2b[_0x4f7620(0x1d5)](isTlsSupported,_0x164d2b['UZdHx']);_0x164d2b[_0x4f7620(0xfe)](printResponse,_0x164d2b['ACIux'],_0x3610d2);const _0xb9835={};_0xb9835[_0x4f7620(0x1ed)]=_0x164d2b[_0x4f7620(0x118)],_0xb9835[_0x4f7620(0x151)]=_0xe6bfed;const _0x54b60d={};_0x54b60d[_0x4f7620(0x1ed)]=_0x164d2b[_0x4f7620(0x185)],_0x54b60d[_0x4f7620(0x151)]=_0x122b6b;const _0x13e3ff={};_0x13e3ff['header']=_0x164d2b['EgRNR'],_0x13e3ff['response']=_0x2bf59d;const _0x14621f={};_0x14621f['header']=_0x164d2b[_0x4f7620(0x1f3)],_0x14621f[_0x4f7620(0x151)]=_0x3610d2;const _0x101a0e=[_0xb9835,_0x54b60d,_0x13e3ff,_0x14621f],_0x11b1a5=await _0x164d2b[_0x4f7620(0x1b8)](generateReport,_0x101a0e,_0x2b508c),_0x574e7e=new Date(),_0x2e3146=_0x574e7e[_0x4f7620(0x16c)]()+'_'+_0x164d2b[_0x4f7620(0x1d0)](_0x574e7e[_0x4f7620(0x146)](),0x1)+'_'+_0x574e7e[_0x4f7620(0x19a)]()+'_'+_0x574e7e[_0x4f7620(0x11f)]()+'_'+_0x574e7e['getUTCMinutes'](),_0x44d423=_0x4f7620(0x1c1)+_0x2e3146+'.txt';fs[_0x4f7620(0x149)](_0x44d423,_0x11b1a5,_0x164d2b[_0x4f7620(0x14f)]),logger[_0x4f7620(0x141)](_0x4f7620(0x16f)+_0x44d423),process[_0x4f7620(0x163)](0x0);}catch(_0x5379d3){let _0x4927fd=_0x4f7620(0x18e)+_0x5379d3+'\x20';logger['error'](_0x4927fd),_0x4927fd+='\x0a'+JSON[_0x4f7620(0x10d)](_0x5379d3[_0x4f7620(0x1ab)]),logger[_0x4f7620(0x1a7)](_0x4f7620(0x10e)+_0x5379d3[_0x4f7620(0x1ab)]);if(_0x57890f){const _0x4cbf6d={};_0x4cbf6d[_0x4f7620(0x170)]=WS_EVENTS[_0x4f7620(0x111)],_0x4cbf6d[_0x4f7620(0x165)]=_0x4927fd,webSocketUtils['sendEventToBackend'](_0x57890f,_0x4cbf6d,_0x164d2b[_0x4f7620(0x175)],!![]);}await webSocketUtils[_0x4f7620(0x1ea)](0x7d0);const _0x47d74b={};_0x47d74b['error']=_0x4927fd,await _0x164d2b[_0x4f7620(0x102)](sendInstrumentationEvent,_0x1493d6,_0x164d2b['VvNga'],messageTypes[_0x4f7620(0x159)],_0x164d2b['UKjMw'],_0x47d74b,_0x1493d6),process[_0x4f7620(0x163)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a18_0x2eeebf=a18_0x4bac;(function(_0x5b036f,_0x4cafbe){const _0x27f3c6=a18_0x4bac,_0x196c68=_0x5b036f();while(!![]){try{const _0x5dbcc8=-parseInt(_0x27f3c6(0x1bb))/0x1+parseInt(_0x27f3c6(0x1b2))/0x2*(parseInt(_0x27f3c6(0x1a7))/0x3)+-parseInt(_0x27f3c6(0x1b1))/0x4+parseInt(_0x27f3c6(0x1b8))/0x5+-parseInt(_0x27f3c6(0x1ac))/0x6+parseInt(_0x27f3c6(0x1b5))/0x7*(-parseInt(_0x27f3c6(0x1b3))/0x8)+parseInt(_0x27f3c6(0x1b0))/0x9*(parseInt(_0x27f3c6(0x1b7))/0xa);if(_0x5dbcc8===_0x4cafbe)break;else _0x196c68['push'](_0x196c68['shift']());}catch(_0x12fd8f){_0x196c68['push'](_0x196c68['shift']());}}}(a18_0xb623,0x1e43f));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x2eeebf(0x1ba));exports[a18_0x2eeebf(0x1ae)]=a18_0x2eeebf(0x1aa),exports[a18_0x2eeebf(0x1bc)]=a18_0x2eeebf(0x1a8),exports[a18_0x2eeebf(0x1b9)]=function(_0xea95f){const _0x28b8b6=a18_0x2eeebf,_0x370413={};_0x370413[_0x28b8b6(0x1b4)]=_0x28b8b6(0x1bf),_0x370413['yKfyE']='help';const _0x42a5c1=_0x370413;return _0xea95f[_0x28b8b6(0x1b6)](HELP_HEADER_MESSAGE[_0x28b8b6(0x1aa)])[_0x28b8b6(0x1ad)](HELP_FOOTER_MESSAGE)[_0x28b8b6(0x1bd)](_0x42a5c1['sZuaF'])['demandCommand']()[_0x28b8b6(0x1ab)]()[_0x28b8b6(0x1a9)]()['help'](_0x42a5c1[_0x28b8b6(0x1be)]);},exports[a18_0x2eeebf(0x1af)]=function(_0x4835a4){};function a18_0x4bac(_0x422c83,_0x5780bb){const _0xb623b1=a18_0xb623();return a18_0x4bac=function(_0x4bac8e,_0x5d6004){_0x4bac8e=_0x4bac8e-0x1a7;let _0x1b0415=_0xb623b1[_0x4bac8e];return _0x1b0415;},a18_0x4bac(_0x422c83,_0x5780bb);}function a18_0xb623(){const _0x36eaa3=['strict','start','recommendCommands','1247442FMLwjS','epilogue','command','handler','279KPelAq','144248dqdIlO','66964NWtFzt','32BvmgGG','sZuaF','156737rHxuzj','usage','97310amxPui','529635HJfQZb','builder','../config/constants','184462JVZIGe','desc','commandDir','yKfyE','start_commands','21ndGWQd','Start\x20an\x20existing\x20Automation\x20grid.'];a18_0xb623=function(){return _0x36eaa3;};return a18_0xb623();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a19_0x20b5(){const _0x21191c=['PvGtN','hTone','bstackAccesskey','clusterName','BfaZG','info','qNdEr','139839LLtjCw','gahhJ','Adding\x20Websocket\x20listeners','invalid-grid-id','builder','../../utils/utilityMethods','2192212QGxFCX','grid-id','7774929atiEyp','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','sYvvC','type','handler','SUFlm','default','usage','../../utils/webSocketUtils','Skip\x20insecure\x20cert\x20verification.','string','init-not-called','Ehtnl','epilogue','3OpMoYj','wbXtD','stringify','354wHsCfj','region','server-error','stack','../../cloudproviders/utils','../../utils/gridComponents','Start\x20an\x20existing\x20Automation\x20grid.','8MiuNyc','exit','error','jMHpY','uUnIX','skipTlsCertVerify','parse','eNHEd','bstackUsername','help','4578150iizYfb','rLdRY','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Browserstack','addListeners','message','tODGG','name','tTVoY','start','../../utils/createk8sClient','FixHJ','ERROR','gridId','username','argv','user','<UsernamePlaceholder>','6142790pxpEGo','body','<PasswordPlaceholder>','password','969252GOTAKo','YSFGv','readFileSync','Iozcp','AclvL','statusCode','JIMeg','QJYzn','XaIpq','../../utils/instrumentationUtils','description','connectionTimeout','ytDLy','ClLXY','grid','unauthorised','WhUBG','replace','KkNdV','4256592ShQMrx','cloudProvider','desc','FkQwM'];a19_0x20b5=function(){return _0x21191c;};return a19_0x20b5();}const a19_0xe21a2c=a19_0x21f2;(function(_0x956f33,_0x28572f){const _0x44b23f=a19_0x21f2,_0x1af73e=_0x956f33();while(!![]){try{const _0x39b0f5=parseInt(_0x44b23f(0x10a))/0x1+-parseInt(_0x44b23f(0x12e))/0x2*(-parseInt(_0x44b23f(0x13f))/0x3)+-parseInt(_0x44b23f(0x11d))/0x4+parseInt(_0x44b23f(0x106))/0x5+-parseInt(_0x44b23f(0x142))/0x6*(parseInt(_0x44b23f(0x128))/0x7)+parseInt(_0x44b23f(0x149))/0x8*(-parseInt(_0x44b23f(0x130))/0x9)+parseInt(_0x44b23f(0xf4))/0xa;if(_0x39b0f5===_0x28572f)break;else _0x1af73e['push'](_0x1af73e['shift']());}catch(_0x4bf8af){_0x1af73e['push'](_0x1af73e['shift']());}}}(a19_0x20b5,0x9d7c3));function a19_0x21f2(_0x54517d,_0x2d7a8e){const _0x20b5e1=a19_0x20b5();return a19_0x21f2=function(_0x21f21a,_0xb0a7dc){_0x21f21a=_0x21f21a-0xf0;let _0x38b18c=_0x20b5e1[_0x21f21a];return _0x38b18c;},a19_0x21f2(_0x54517d,_0x2d7a8e);}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('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0xe21a2c(0x12d)),{scaleUpHubDeployment}=require(a19_0xe21a2c(0x147)),{sendInstrumentationEvent}=require(a19_0xe21a2c(0x113)),webSocketUtils=require(a19_0xe21a2c(0x139)),{createK8sClient}=require(a19_0xe21a2c(0xfe)),{getCloudProviderObject}=require(a19_0xe21a2c(0x146));exports['command']=a19_0xe21a2c(0x118),exports[a19_0xe21a2c(0x11f)]=a19_0xe21a2c(0x148),exports[a19_0xe21a2c(0x12c)]=function(_0xb5cae2){const _0x1faf66=a19_0xe21a2c,_0x984896={};_0x984896[_0x1faf66(0xfa)]='Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.',_0x984896['BfaZG']=_0x1faf66(0x13b),_0x984896[_0x1faf66(0x111)]=_0x1faf66(0x13a),_0x984896[_0x1faf66(0x121)]='boolean',_0x984896[_0x1faf66(0x127)]=_0x1faf66(0xf3);const _0x479164=_0x984896,_0x239a8a={};_0x239a8a[_0x1faf66(0x114)]=_0x479164['tODGG'],_0x239a8a[_0x1faf66(0x134)]=_0x479164[_0x1faf66(0x125)];const _0x4aaa9a={};_0x4aaa9a['description']=_0x479164[_0x1faf66(0x111)],_0x4aaa9a['type']=_0x479164['PvGtN'],_0x4aaa9a[_0x1faf66(0x137)]=![];const _0x4f18a1={};return _0x4f18a1[_0x1faf66(0x12f)]=_0x239a8a,_0x4f18a1['skip-tls-cert-verify']=_0x4aaa9a,_0xb5cae2[_0x1faf66(0x138)](HELP_HEADER_MESSAGE[_0x1faf66(0xfd)])[_0x1faf66(0x13e)](HELP_FOOTER_MESSAGE)['options'](_0x4f18a1)[_0x1faf66(0xf3)](_0x479164[_0x1faf66(0x127)])[_0x1faf66(0x103)];},exports[a19_0xe21a2c(0x135)]=async function(_0x4ac496){const _0x41fce0=a19_0xe21a2c,_0x14461d={'jMHpY':_0x41fce0(0x132),'rLdRY':function(_0x506644){return _0x506644();},'KkNdV':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ClLXY':function(_0x24062c,_0x69c139,_0xcdde60,_0xde64a6,_0x10ec7e,_0x80b217,_0x3f151a){return _0x24062c(_0x69c139,_0xcdde60,_0xde64a6,_0x10ec7e,_0x80b217,_0x3f151a);},'gahhJ':'start-grid-called','tTVoY':_0x41fce0(0x13c),'hTone':function(_0x13aaba,_0x76192e,_0x5b8352,_0x5b08c6,_0x4e0143,_0x588a7a,_0x463b1d){return _0x13aaba(_0x76192e,_0x5b8352,_0x5b08c6,_0x4e0143,_0x588a7a,_0x463b1d);},'eNHEd':function(_0xaeab22){return _0xaeab22();},'WhUBG':_0x41fce0(0x105),'YSFGv':_0x41fce0(0x108),'sYvvC':_0x41fce0(0x12a),'uUnIX':function(_0x102407,_0x3fb49d,_0x1f21a6,_0x2686b6){return _0x102407(_0x3fb49d,_0x1f21a6,_0x2686b6);},'Ehtnl':function(_0x148f29,_0x3cdf62,_0x5394ff,_0xc00e3e,_0x1512e5,_0x4d7d3f,_0x3edd24){return _0x148f29(_0x3cdf62,_0x5394ff,_0xc00e3e,_0x1512e5,_0x4d7d3f,_0x3edd24);},'XaIpq':function(_0x1c23b1,_0x1a77f0,_0x4e741c){return _0x1c23b1(_0x1a77f0,_0x4e741c);},'AclvL':function(_0x555e2b,_0x49080e,_0x8fd6a2){return _0x555e2b(_0x49080e,_0x8fd6a2);},'SUFlm':'Grid\x20started','cNGzc':function(_0x2f6552,_0xbad343){return _0x2f6552===_0xbad343;},'wbXtD':_0x41fce0(0xf6),'ytDLy':function(_0x10c260,_0x15bcff,_0x440bad,_0x50acea,_0x2dc6bd,_0x534013,_0x17fe0f){return _0x10c260(_0x15bcff,_0x440bad,_0x50acea,_0x2dc6bd,_0x534013,_0x17fe0f);},'Iozcp':_0x41fce0(0x119),'FkQwM':function(_0x15b4dd,_0x315e6c){return _0x15b4dd===_0x315e6c;},'JIMeg':_0x41fce0(0x12b),'FixHJ':function(_0x21e363,_0x1324cf,_0x31a4c5,_0x110df5,_0x3b7a8e,_0x3e5d89,_0x185369){return _0x21e363(_0x1324cf,_0x31a4c5,_0x110df5,_0x3b7a8e,_0x3e5d89,_0x185369);},'xTzNA':_0x41fce0(0x144)};let _0x423850;try{!_0x4ac496['gridId']&&(logger[_0x41fce0(0x14b)](_0x14461d[_0x41fce0(0x14c)]),process[_0x41fce0(0x14a)](0x1));!fs['existsSync'](_0x14461d[_0x41fce0(0xf5)](getCredentialsPath))&&(logger[_0x41fce0(0x14b)](_0x14461d[_0x41fce0(0x11c)]),await _0x14461d[_0x41fce0(0x117)](sendInstrumentationEvent,_0x4ac496,_0x14461d[_0x41fce0(0x129)],messageTypes[_0x41fce0(0x100)],_0x14461d[_0x41fce0(0xfc)],null,_0x4ac496),process[_0x41fce0(0x14a)](0x1));logger[_0x41fce0(0x126)]('Starting\x20grid\x20'+_0x4ac496[_0x41fce0(0x101)]),await _0x14461d[_0x41fce0(0x122)](sendInstrumentationEvent,_0x4ac496,_0x14461d[_0x41fce0(0x129)],messageTypes['INFO'],null,null,_0x4ac496);const _0x50ff8f=JSON[_0x41fce0(0xf0)](fs[_0x41fce0(0x10c)](_0x14461d[_0x41fce0(0xf1)](getCredentialsPath)));global_registry[_0x41fce0(0xf2)]=_0x50ff8f['Browserstack'][_0x41fce0(0x102)],global_registry[_0x41fce0(0x123)]=_0x50ff8f[_0x41fce0(0xf7)]['password'];const _0x9b2b29=WS_ENDPOINT[_0x41fce0(0x11b)](_0x14461d[_0x41fce0(0x11a)],_0x50ff8f['Browserstack'][_0x41fce0(0x102)])[_0x41fce0(0x11b)](_0x14461d[_0x41fce0(0x10b)],_0x50ff8f[_0x41fce0(0xf7)][_0x41fce0(0x109)]),_0x2195f5={};_0x2195f5['WebSocket']=ws,_0x2195f5[_0x41fce0(0x115)]=0x36ee80,_0x423850=new ReconnectingWebSocket(_0x9b2b29,[],_0x2195f5),logger['debug'](_0x14461d[_0x41fce0(0x133)]),webSocketUtils[_0x41fce0(0xf8)](_0x423850,_0x4ac496[_0x41fce0(0x104)],_0x4ac496['password']);const [_0x4295a9,_0x3befd9]=await _0x14461d[_0x41fce0(0x14d)](getGridDetails,_0x50ff8f['Browserstack'][_0x41fce0(0x102)],_0x50ff8f[_0x41fce0(0xf7)][_0x41fce0(0x109)],_0x4ac496[_0x41fce0(0x101)]);if(_0x3befd9){const _0x48e6b1=_0x3befd9['info'];global_registry[_0x41fce0(0x11e)]=_0x48e6b1[_0x41fce0(0x11e)],global_registry['clusterRegion']=_0x48e6b1[_0x41fce0(0x143)],global_registry[_0x41fce0(0x124)]=_0x48e6b1[_0x41fce0(0x124)];const _0x31f2f0=await _0x14461d[_0x41fce0(0x13d)](getCloudProviderObject,_0x48e6b1[_0x41fce0(0x11e)],_0x48e6b1[_0x41fce0(0x124)],_0x48e6b1[_0x41fce0(0xfb)],_0x423850,webSocketUtils,_0x4ac496),[_0x53f313,_0x1245d5,_0x4b0dd4,_0x1e3517,_0x1dc0e3,_0x4d5af3]=await _0x14461d[_0x41fce0(0x112)](createK8sClient,_0x31f2f0,_0x4ac496[_0x41fce0(0x14e)]);await _0x14461d[_0x41fce0(0x10e)](scaleUpHubDeployment,_0x1245d5,_0x48e6b1[_0x41fce0(0xfb)]),logger['info'](_0x14461d[_0x41fce0(0x136)]),process[_0x41fce0(0x14a)](0x0);}_0x14461d['cNGzc'](_0x4295a9[_0x41fce0(0x10f)],0x191)&&(logger['error'](_0x14461d[_0x41fce0(0x140)]),await _0x14461d[_0x41fce0(0x116)](sendInstrumentationEvent,_0x4ac496,_0x14461d[_0x41fce0(0x129)],messageTypes[_0x41fce0(0x100)],_0x14461d[_0x41fce0(0x10d)],null,_0x4ac496),process[_0x41fce0(0x14a)](0x1)),_0x14461d[_0x41fce0(0x120)](_0x4295a9[_0x41fce0(0x10f)],0x190)&&(logger[_0x41fce0(0x14b)](JSON[_0x41fce0(0xf0)](_0x4295a9[_0x41fce0(0x107)])[_0x41fce0(0xf9)]),await _0x14461d[_0x41fce0(0x116)](sendInstrumentationEvent,_0x4ac496,_0x14461d[_0x41fce0(0x129)],messageTypes['ERROR'],_0x14461d[_0x41fce0(0x110)],null,_0x4ac496),process['exit'](0x1)),logger[_0x41fce0(0x14b)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x41fce0(0x141)](_0x4295a9)),await _0x14461d[_0x41fce0(0xff)](sendInstrumentationEvent,_0x4ac496,_0x14461d['gahhJ'],messageTypes['ERROR'],_0x14461d['xTzNA'],_0x4295a9,_0x4ac496),process[_0x41fce0(0x14a)](0x1);}catch(_0x11e063){const _0x5e27a9=_0x41fce0(0x131)+_0x11e063+'\x20\x0a'+JSON['stringify'](_0x11e063[_0x41fce0(0x145)])+'\x20';logger[_0x41fce0(0x14b)](_0x5e27a9),process[_0x41fce0(0x14a)](0x1);}};
|
package/ats/src/commands/stop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a20_0x4998bf=a20_0x12a0;(function(_0x4a50ed,_0x1d38d5){const _0x33b35f=a20_0x12a0,_0x33b94b=_0x4a50ed();while(!![]){try{const _0x12c24f=-parseInt(_0x33b35f(0x1d7))/0x1+-parseInt(_0x33b35f(0x1d4))/0x2+-parseInt(_0x33b35f(0x1ca))/0x3+parseInt(_0x33b35f(0x1c9))/0x4*(parseInt(_0x33b35f(0x1bf))/0x5)+-parseInt(_0x33b35f(0x1bd))/0x6*(-parseInt(_0x33b35f(0x1cb))/0x7)+-parseInt(_0x33b35f(0x1c2))/0x8*(-parseInt(_0x33b35f(0x1c4))/0x9)+-parseInt(_0x33b35f(0x1bc))/0xa*(-parseInt(_0x33b35f(0x1ce))/0xb);if(_0x12c24f===_0x1d38d5)break;else _0x33b94b['push'](_0x33b94b['shift']());}catch(_0x5ab901){_0x33b94b['push'](_0x33b94b['shift']());}}}(a20_0x2bd0,0xcfcbd));function a20_0x2bd0(){const _0x84b925=['stop_commands','handler','8gHRNHK','820662qPmknW','11244821VdSXVz','../config/constants','demandCommand','4684944qHMdct','epilogue','commandDir','help','recommendCommands','desc','2690036TzrTos','strict','stop','1681751tCJzAS','10AaSfoo','6toSDkr','Stop\x20a\x20running\x20Automation\x20grid.','1237975WHxxAB','RNXlf','zRjDN','8lGsWsZ','command','14615631PrIddY','usage','builder'];a20_0x2bd0=function(){return _0x84b925;};return a20_0x2bd0();}function a20_0x12a0(_0x1586e6,_0x14cb29){const _0x2bd071=a20_0x2bd0();return a20_0x12a0=function(_0x12a0cc,_0x5af283){_0x12a0cc=_0x12a0cc-0x1bc;let _0x175886=_0x2bd071[_0x12a0cc];return _0x175886;},a20_0x12a0(_0x1586e6,_0x14cb29);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x4998bf(0x1cc));exports[a20_0x4998bf(0x1c3)]=a20_0x4998bf(0x1d6),exports[a20_0x4998bf(0x1d3)]=a20_0x4998bf(0x1be),exports[a20_0x4998bf(0x1c6)]=function(_0x3f24a9){const _0x52966b=a20_0x4998bf,_0x94f87={};_0x94f87[_0x52966b(0x1c1)]=_0x52966b(0x1c7),_0x94f87[_0x52966b(0x1c0)]=_0x52966b(0x1d1);const _0x3f33e5=_0x94f87;return _0x3f24a9[_0x52966b(0x1c5)](HELP_HEADER_MESSAGE[_0x52966b(0x1d6)])[_0x52966b(0x1cf)](HELP_FOOTER_MESSAGE)[_0x52966b(0x1d0)](_0x3f33e5['zRjDN'])[_0x52966b(0x1cd)]()[_0x52966b(0x1d2)]()[_0x52966b(0x1d5)]()[_0x52966b(0x1d1)](_0x3f33e5[_0x52966b(0x1c0)]);},exports[a20_0x4998bf(0x1c8)]=function(_0x3c6f7f){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a21_0x531523=a21_0x14ce;function a21_0x1e7d(){const _0x36f133=['Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','epilogue','Stop\x20a\x20running\x20Automation\x20grid.','phhlm','command','stringify','stack','default','handler','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','hkumy','statusCode','message','Skip\x20insecure\x20cert\x20verification.','options','readFileSync','connectionTimeout','qGccg','Adding\x20Websocket\x20listeners','gridId','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','cloudProvider','Okjne','parse','help','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','135INoJHX','../../config/logger','name','grid-id','exit','grid','tnGmC','2FxaHRl','replace','lzjIx','eEfUR','ERROR','stop','username','../../cloudproviders/utils','../../utils/webSocketUtils','zpSNc','2062370KmzgCQ','builder','error','BynlA','9099220ZeUBPn','NLizh','1321563iURdFw','9206834eJqyog','<UsernamePlaceholder>','nWxot','MzjDh','password','PyKma','kILuv','mukOn','zYOVq','<PasswordPlaceholder>','type','cMTCl','../../utils/createk8sClient','NgEGu','rUjKA','invalid-grid-id','7070304joXNai','skip-tls-cert-verify','description','reconnecting-websocket','existsSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','clusterName','WWBPm','desc','1096426RvkNgb','init-not-called','Grid\x20stoppped.','Idydl','server-error','vFBzD','bstackUsername','argv','body','INFO','403976MHLgvO','Browserstack','info','6PwFrpt','../../utils/utilityMethods','clusterRegion','usage','Xsgee','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'];a21_0x1e7d=function(){return _0x36f133;};return a21_0x1e7d();}(function(_0x260a7d,_0x2bb3cb){const _0x54a860=a21_0x14ce,_0x1b22f9=_0x260a7d();while(!![]){try{const _0x73c2cc=-parseInt(_0x54a860(0x1f9))/0x1*(parseInt(_0x54a860(0x22d))/0x2)+-parseInt(_0x54a860(0x1df))/0x3+parseInt(_0x54a860(0x1f0))/0x4+parseInt(_0x54a860(0x1d9))/0x5+-parseInt(_0x54a860(0x206))/0x6*(parseInt(_0x54a860(0x1e0))/0x7)+-parseInt(_0x54a860(0x203))/0x8*(-parseInt(_0x54a860(0x226))/0x9)+parseInt(_0x54a860(0x1dd))/0xa;if(_0x73c2cc===_0x2bb3cb)break;else _0x1b22f9['push'](_0x1b22f9['shift']());}catch(_0x2e3b10){_0x1b22f9['push'](_0x1b22f9['shift']());}}}(a21_0x1e7d,0xf2f92));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x531523(0x1f3)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x531523(0x227)),{getCredentialsPath,getGridDetails}=require(a21_0x531523(0x207)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a21_0x531523(0x1d7)),{createK8sClient}=require(a21_0x531523(0x1ec)),{getCloudProviderObject}=require(a21_0x531523(0x1d6));function a21_0x14ce(_0xb5e8f5,_0x3aa09b){const _0x1e7dc3=a21_0x1e7d();return a21_0x14ce=function(_0x14cee7,_0x5971d0){_0x14cee7=_0x14cee7-0x1d5;let _0x44a17f=_0x1e7dc3[_0x14cee7];return _0x44a17f;},a21_0x14ce(_0xb5e8f5,_0x3aa09b);}exports[a21_0x531523(0x210)]=a21_0x531523(0x22b),exports[a21_0x531523(0x1f8)]=a21_0x531523(0x20e),exports[a21_0x531523(0x1da)]=function(_0x204f0b){const _0x4abad6=a21_0x531523,_0x226029={};_0x226029['lzjIx']=_0x4abad6(0x220),_0x226029[_0x4abad6(0x1e3)]='string',_0x226029['mukOn']=_0x4abad6(0x219),_0x226029[_0x4abad6(0x230)]='boolean',_0x226029[_0x4abad6(0x1de)]=_0x4abad6(0x224);const _0x555d3d=_0x226029,_0x5f3fe3={};_0x5f3fe3['description']=_0x555d3d[_0x4abad6(0x22f)],_0x5f3fe3['type']=_0x555d3d['MzjDh'];const _0x4eef40={};_0x4eef40[_0x4abad6(0x1f2)]=_0x555d3d[_0x4abad6(0x1e7)],_0x4eef40[_0x4abad6(0x1ea)]=_0x555d3d['eEfUR'],_0x4eef40[_0x4abad6(0x213)]=![];const _0x387236={};return _0x387236[_0x4abad6(0x229)]=_0x5f3fe3,_0x387236[_0x4abad6(0x1f1)]=_0x4eef40,_0x204f0b[_0x4abad6(0x209)](HELP_HEADER_MESSAGE[_0x4abad6(0x232)])[_0x4abad6(0x20d)](HELP_FOOTER_MESSAGE)[_0x4abad6(0x21a)](_0x387236)[_0x4abad6(0x224)](_0x555d3d[_0x4abad6(0x1de)])[_0x4abad6(0x200)];},exports[a21_0x531523(0x214)]=async function(_0xd30302){const _0x1cb2fc=a21_0x531523,_0x21ad44={'zpSNc':_0x1cb2fc(0x225),'phhlm':function(_0x4f5f50){return _0x4f5f50();},'rUjKA':_0x1cb2fc(0x20c),'qGccg':function(_0x5c9d5d,_0x25b2ae,_0x41552b,_0x22ccf1,_0x3f9ed0,_0x291b70,_0x22dfdd){return _0x5c9d5d(_0x25b2ae,_0x41552b,_0x22ccf1,_0x3f9ed0,_0x291b70,_0x22dfdd);},'vFBzD':'stop-grid-called','BynlA':_0x1cb2fc(0x1fa),'DZowA':function(_0x196175,_0x1875de,_0x33f2a5,_0x5c23c9,_0x2bce96,_0x42bc5b,_0x33dccb){return _0x196175(_0x1875de,_0x33f2a5,_0x5c23c9,_0x2bce96,_0x42bc5b,_0x33dccb);},'nWxot':function(_0x34a509){return _0x34a509();},'wYaQT':_0x1cb2fc(0x1e1),'dzReD':_0x1cb2fc(0x1e9),'NgEGu':_0x1cb2fc(0x21e),'PyKma':function(_0x7fad8d,_0x4b8db5,_0x1a0b87,_0x350382){return _0x7fad8d(_0x4b8db5,_0x1a0b87,_0x350382);},'Xsgee':function(_0x11e4a2,_0x2f9b77,_0x39033c,_0x35cc41,_0x540d0e,_0x1ff91c,_0x43208e){return _0x11e4a2(_0x2f9b77,_0x39033c,_0x35cc41,_0x540d0e,_0x1ff91c,_0x43208e);},'WWBPm':function(_0x109e51,_0x113de7,_0x4985c3){return _0x109e51(_0x113de7,_0x4985c3);},'zYOVq':function(_0x229fd1,_0x29d041,_0x2e4e3d){return _0x229fd1(_0x29d041,_0x2e4e3d);},'dYDaD':_0x1cb2fc(0x1fb),'kILuv':function(_0xbf406f,_0x32d740){return _0xbf406f===_0x32d740;},'AnZVf':_0x1cb2fc(0x215),'hkumy':function(_0x533d85,_0x16edb1,_0x5a4bce,_0x197f81,_0x4a1b97,_0x24bca1,_0x45d3ea){return _0x533d85(_0x16edb1,_0x5a4bce,_0x197f81,_0x4a1b97,_0x24bca1,_0x45d3ea);},'cMTCl':'unauthorised','Idydl':function(_0x81582d,_0x38a571){return _0x81582d===_0x38a571;},'tnGmC':function(_0x30d9a0,_0x36c747,_0x1ddb25,_0x189c2e,_0x203670,_0x585035,_0x649180){return _0x30d9a0(_0x36c747,_0x1ddb25,_0x189c2e,_0x203670,_0x585035,_0x649180);},'nQRkD':_0x1cb2fc(0x1ef),'Okjne':_0x1cb2fc(0x1fd)};let _0x2bcadb;try{!_0xd30302[_0x1cb2fc(0x21f)]&&(logger['error'](_0x21ad44[_0x1cb2fc(0x1d8)]),process['exit'](0x1));!fs[_0x1cb2fc(0x1f4)](_0x21ad44[_0x1cb2fc(0x20f)](getCredentialsPath))&&(logger[_0x1cb2fc(0x1db)](_0x21ad44[_0x1cb2fc(0x1ee)]),await _0x21ad44[_0x1cb2fc(0x21d)](sendInstrumentationEvent,_0xd30302,_0x21ad44['vFBzD'],messageTypes[_0x1cb2fc(0x231)],_0x21ad44[_0x1cb2fc(0x1dc)],null,_0xd30302),process[_0x1cb2fc(0x22a)](0x1));logger['info']('Stopping\x20grid\x20'+_0xd30302['gridId']),await _0x21ad44['DZowA'](sendInstrumentationEvent,_0xd30302,_0x21ad44[_0x1cb2fc(0x1fe)],messageTypes[_0x1cb2fc(0x202)],null,null,_0xd30302);const _0x3ead4c=JSON[_0x1cb2fc(0x223)](fs[_0x1cb2fc(0x21b)](_0x21ad44[_0x1cb2fc(0x1e2)](getCredentialsPath)));global_registry[_0x1cb2fc(0x1ff)]=_0x3ead4c[_0x1cb2fc(0x204)][_0x1cb2fc(0x1d5)],global_registry['bstackAccesskey']=_0x3ead4c[_0x1cb2fc(0x204)]['password'];const _0x59d084=WS_ENDPOINT[_0x1cb2fc(0x22e)](_0x21ad44['wYaQT'],_0x3ead4c['Browserstack'][_0x1cb2fc(0x1d5)])[_0x1cb2fc(0x22e)](_0x21ad44['dzReD'],_0x3ead4c[_0x1cb2fc(0x204)]['password']),_0x503fea={};_0x503fea['WebSocket']=ws,_0x503fea[_0x1cb2fc(0x21c)]=0x36ee80,_0x2bcadb=new ReconnectingWebSocket(_0x59d084,[],_0x503fea),logger['debug'](_0x21ad44[_0x1cb2fc(0x1ed)]),webSocketUtils['addListeners'](_0x2bcadb,_0xd30302['user'],_0xd30302[_0x1cb2fc(0x1e4)]);const [_0x4db74d,_0x4d76e8]=await _0x21ad44[_0x1cb2fc(0x1e5)](getGridDetails,_0x3ead4c['Browserstack'][_0x1cb2fc(0x1d5)],_0x3ead4c['Browserstack'][_0x1cb2fc(0x1e4)],_0xd30302[_0x1cb2fc(0x21f)]);if(_0x4d76e8){const _0x286303=_0x4d76e8[_0x1cb2fc(0x205)];global_registry[_0x1cb2fc(0x221)]=_0x286303[_0x1cb2fc(0x221)],global_registry[_0x1cb2fc(0x208)]=_0x286303['region'],global_registry[_0x1cb2fc(0x1f6)]=_0x286303[_0x1cb2fc(0x1f6)];const _0x516460=await _0x21ad44[_0x1cb2fc(0x20a)](getCloudProviderObject,_0x286303[_0x1cb2fc(0x221)],_0x286303['clusterName'],_0x286303[_0x1cb2fc(0x228)],_0x2bcadb,webSocketUtils,_0xd30302),[_0x276a41,_0x4fea74,_0x57dd18,_0x471915,_0x169a8c,_0x236672]=await _0x21ad44[_0x1cb2fc(0x1f7)](createK8sClient,_0x516460,_0xd30302['skipTlsCertVerify']);await _0x21ad44[_0x1cb2fc(0x1e8)](scaleDownHubDeployment,_0x4fea74,_0x286303[_0x1cb2fc(0x228)]),logger[_0x1cb2fc(0x205)](_0x21ad44['dYDaD']),process[_0x1cb2fc(0x22a)](0x0);}_0x21ad44[_0x1cb2fc(0x1e6)](_0x4db74d[_0x1cb2fc(0x217)],0x191)&&(logger['error'](_0x21ad44['AnZVf']),await _0x21ad44[_0x1cb2fc(0x216)](sendInstrumentationEvent,_0xd30302,_0x21ad44['vFBzD'],messageTypes['ERROR'],_0x21ad44[_0x1cb2fc(0x1eb)],null,_0xd30302),process[_0x1cb2fc(0x22a)](0x1)),_0x21ad44[_0x1cb2fc(0x1fc)](_0x4db74d[_0x1cb2fc(0x217)],0x190)&&(logger['error'](JSON[_0x1cb2fc(0x223)](_0x4db74d[_0x1cb2fc(0x201)])[_0x1cb2fc(0x218)]),await _0x21ad44[_0x1cb2fc(0x22c)](sendInstrumentationEvent,_0xd30302,_0x21ad44[_0x1cb2fc(0x1fe)],messageTypes['ERROR'],_0x21ad44['nQRkD'],null,_0xd30302),process[_0x1cb2fc(0x22a)](0x1)),logger[_0x1cb2fc(0x1db)](_0x1cb2fc(0x1f5)+JSON[_0x1cb2fc(0x211)](_0x4db74d)),await _0x21ad44[_0x1cb2fc(0x21d)](sendInstrumentationEvent,_0xd30302,_0x21ad44[_0x1cb2fc(0x1fe)],messageTypes['ERROR'],_0x21ad44[_0x1cb2fc(0x222)],_0x4db74d,_0xd30302),process['exit'](0x1);}catch(_0x5ea6d0){const _0x5b6061=_0x1cb2fc(0x20b)+_0x5ea6d0+'\x20\x0a'+JSON[_0x1cb2fc(0x211)](_0x5ea6d0[_0x1cb2fc(0x212)])+'\x20';logger[_0x1cb2fc(0x1db)](_0x5b6061),process[_0x1cb2fc(0x22a)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x25972c=a22_0x2bd8;(function(_0x135b66,_0x801a46){const _0x2cfd6d=a22_0x2bd8,_0x1289d3=_0x135b66();while(!![]){try{const _0x17cc06=-parseInt(_0x2cfd6d(0x1c9))/0x1*(-parseInt(_0x2cfd6d(0x1e8))/0x2)+-parseInt(_0x2cfd6d(0x1c0))/0x3+-parseInt(_0x2cfd6d(0x1a7))/0x4*(parseInt(_0x2cfd6d(0x1cd))/0x5)+-parseInt(_0x2cfd6d(0x1c2))/0x6*(-parseInt(_0x2cfd6d(0x1a8))/0x7)+-parseInt(_0x2cfd6d(0x20b))/0x8*(parseInt(_0x2cfd6d(0x1e5))/0x9)+-parseInt(_0x2cfd6d(0x1b3))/0xa+parseInt(_0x2cfd6d(0x1c5))/0xb;if(_0x17cc06===_0x801a46)break;else _0x1289d3['push'](_0x1289d3['shift']());}catch(_0x5ad352){_0x1289d3['push'](_0x1289d3['shift']());}}}(a22_0x5406,0xd14e1),require(a22_0x25972c(0x1fa))[a22_0x25972c(0x1bd)]());let gridURL=a22_0x25972c(0x1d9),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x25972c(0x1fb);const _env=(process['env'][a22_0x25972c(0x20a)]||'prod')[a22_0x25972c(0x1ac)]();if(_env===a22_0x25972c(0x1b4)||_env===a22_0x25972c(0x1f9))gridURL=a22_0x25972c(0x1e2),bsApiUrl=a22_0x25972c(0x1de),agApiUrl=a22_0x25972c(0x1f3);else(_env===a22_0x25972c(0x20d)||_env===a22_0x25972c(0x1ec))&&(gridURL='grid-preprod.bsstag.com',bsApiUrl=a22_0x25972c(0x1b2),agApiUrl=a22_0x25972c(0x1ee));exports[a22_0x25972c(0x1e3)]=process['env'][a22_0x25972c(0x1e3)]||gridURL,exports[a22_0x25972c(0x1c3)]=process[a22_0x25972c(0x1c1)][a22_0x25972c(0x1c3)]||bsApiUrl,exports[a22_0x25972c(0x1ed)]=process['env']['AG_API_URL']||agApiUrl,exports[a22_0x25972c(0x1bc)]=a22_0x25972c(0x207)+this['AG_API_URL']+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x25972c(0x201)]=a22_0x25972c(0x1aa),exports[a22_0x25972c(0x1d7)]='BrowserStackIAMUser',exports[a22_0x25972c(0x1b6)]='high-scale-grid',exports[a22_0x25972c(0x1e7)]=a22_0x25972c(0x1d3),exports['CLUSTER_DEP_STACK_NAME']=a22_0x25972c(0x1ce),exports['CLUSTER_AUTOSCALER_STACK_NAME']='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x25972c(0x1b8)]=a22_0x25972c(0x1cf),exports['TURBOSCALE_DEPLOYMENT']='browserstack-turboscale-grid',exports[a22_0x25972c(0x1a9)]=a22_0x25972c(0x1ea),exports['GCP']=a22_0x25972c(0x1ba),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x25972c(0x1e7)],this[a22_0x25972c(0x1a9)],this[a22_0x25972c(0x1fd)]];const a22_0x1721d8={};a22_0x1721d8['Key']=a22_0x25972c(0x1e4),a22_0x1721d8[a22_0x25972c(0x1e9)]='BrowserStack';const a22_0x2689bb={};a22_0x2689bb[a22_0x25972c(0x1d5)]=a22_0x25972c(0x209),a22_0x2689bb[a22_0x25972c(0x1e9)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x1721d8,a22_0x2689bb];function a22_0x5406(){const _0x5e9279=['warning','29UNInMB','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','INFO','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','3187955iSVQvV','BSTACK-ATS-CLUSTER','BSTACK-ATS-CLUSTER-HUB-HA','HELP_FOOTER_MESSAGE','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','CLUSTER','aws','SUCCESS','Key','ERROR','IAM_USER_NAME','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','grid.browserstack.com','TRIAL_GRID_URL','init','REDACTED','us-east-1','api-devhst.bsstag.com','cliRunStarted','WS_EVENTS','CLI_ARGS_REGEX','grid-devhst.bsstag.com','DASHBOARD_ENDPOINT','browserstack:managedBy','731529uGmZzs','root','AWS','284FyADNL','Value','azure','gridUrl','pre-prod','AG_API_URL','grid-api-preprod.bsstag.com','WARNING','forEach','resourceInfo','global_registry','grid-api-devhst.bsstag.com','grid','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','info','HST_CLUSTER_TAGS','stag','dotenv','grid-api.browserstack.com','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','GCP','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','create','messageTypes','CP_CONFIG_FILE','CLOUD_PROVIDER','list','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','RESOURCES','SUPPORTED_CLOUD_PROVIDERS','wss://','BrowserStack','browserstack:service','BROWSERSTACK_ENV','16RPoIDJ','stop','preprod','COMMON_HST_TAGS','pre-check','4RlpfUD','1307929Fvkwzi','AZURE','credentials','connect','toLowerCase','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','TURBOSCALE_CUSTOM_TAGS','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','LINK_MESSAGE','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','api-preprod.bsstag.com','14961000iRyFzG','staging','split','DEFAULT_GRID_NAME','start','CLUSTER_HUB_HA_STACK_NAME','MessageDescription','gcp','delete','WS_ENDPOINT','config','push','pre_check','4752114scXmPY','env','12Aeftew','BS_API_URL','GRID_URL','47957712SQMCpe','RAW_ARGS_REGEX','LOG'];a22_0x5406=function(){return _0x5e9279;};return a22_0x5406();}if(process[a22_0x25972c(0x1c1)][a22_0x25972c(0x1ae)]){const parsedTags=process[a22_0x25972c(0x1c1)][a22_0x25972c(0x1ae)]['split'](',');parsedTags[a22_0x25972c(0x1f0)](_0x2067be=>{const _0x111f5c=a22_0x25972c,_0x32273c=_0x2067be[_0x111f5c(0x1b5)](':'),_0x3014d7={};_0x3014d7[_0x111f5c(0x1d5)]=_0x32273c[0x0],_0x3014d7[_0x111f5c(0x1e9)]=_0x32273c[0x1],common_hst_tags_list[_0x111f5c(0x1be)](_0x3014d7);});}exports[a22_0x25972c(0x20e)]=common_hst_tags_list;function a22_0x2bd8(_0x4ff6d8,_0x16187d){const _0x540615=a22_0x5406();return a22_0x2bd8=function(_0x2bd807,_0x3887d6){_0x2bd807=_0x2bd807-0x1a6;let _0x1f73f9=_0x540615[_0x2bd807];return _0x1f73f9;},a22_0x2bd8(_0x4ff6d8,_0x16187d);}const a22_0x17eb9a={};a22_0x17eb9a[a22_0x25972c(0x1e4)]=a22_0x25972c(0x208),a22_0x17eb9a[a22_0x25972c(0x209)]='BrowserStack-Automate-TurboScale',exports[a22_0x25972c(0x1f8)]=a22_0x17eb9a,exports[a22_0x25972c(0x206)]=[this[a22_0x25972c(0x1e7)]];const a22_0x2c511b={};a22_0x2c511b[a22_0x25972c(0x1c7)]='log',a22_0x2c511b[a22_0x25972c(0x205)]=a22_0x25972c(0x1f1),a22_0x2c511b[a22_0x25972c(0x1c4)]=a22_0x25972c(0x1eb),a22_0x2c511b['CLI_RUN_STARTED']=a22_0x25972c(0x1df),a22_0x2c511b['CLI_RUN_FINISHED']='cliRunFinished',exports[a22_0x25972c(0x1e0)]=a22_0x2c511b,exports[a22_0x25972c(0x1f2)]={},exports[a22_0x25972c(0x1b0)]=a22_0x25972c(0x1ca);const a22_0x388a82={};a22_0x388a82['root']='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x1db)]=a22_0x25972c(0x1d8)+this[a22_0x25972c(0x1b0)],a22_0x388a82['configure']=a22_0x25972c(0x1fe)+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x1ff)]=a22_0x25972c(0x1b1)+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x203)]={},a22_0x388a82[a22_0x25972c(0x1bb)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x1ab)]=a22_0x25972c(0x1af)+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x1b7)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x20c)]=a22_0x25972c(0x1cc)+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x1bf)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x203)][a22_0x25972c(0x1e6)]=a22_0x25972c(0x1f5)+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x203)][a22_0x25972c(0x1f4)]=a22_0x25972c(0x1f6)+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x203)]['gridProfile']=a22_0x25972c(0x204)+this[a22_0x25972c(0x1b0)],exports['HELP_HEADER_MESSAGE']=a22_0x388a82,exports[a22_0x25972c(0x1d0)]=a22_0x25972c(0x1ad);const a22_0x403a58={};a22_0x403a58[a22_0x25972c(0x1d4)]='success',a22_0x403a58[a22_0x25972c(0x1d6)]='error',a22_0x403a58[a22_0x25972c(0x1cb)]=a22_0x25972c(0x1f7),a22_0x403a58[a22_0x25972c(0x1ef)]=a22_0x25972c(0x1c8),a22_0x403a58['UNKNOWN']='unknown',a22_0x403a58['NULL']=null,exports[a22_0x25972c(0x200)]=a22_0x403a58,exports[a22_0x25972c(0x1e1)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x25972c(0x1c6)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x25972c(0x1dc)]='[REDACTED]';const a22_0x110c5d={};a22_0x110c5d['grid-profile']=a22_0x25972c(0x1d1);const a22_0x54c30d={};a22_0x54c30d[a22_0x25972c(0x1a6)]=a22_0x110c5d,exports[a22_0x25972c(0x1b9)]=a22_0x54c30d,exports[a22_0x25972c(0x1da)]=a22_0x25972c(0x1fc);const a22_0x307531={};a22_0x307531[a22_0x25972c(0x1d2)]='high-scale-grid-cluster',a22_0x307531[a22_0x25972c(0x202)]=a22_0x25972c(0x1d3),a22_0x307531['REGION']=a22_0x25972c(0x1dd),exports['DEFAULT_CLUSTER_DETAILS']=a22_0x307531;
|
package/ats/src/config/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a23_0x50a082=a23_0x1cfe;(function(_0x36cf67,_0x556334){const _0x421a4a=a23_0x1cfe,_0x3abf98=_0x36cf67();while(!![]){try{const _0x4fa30a=parseInt(_0x421a4a(0x17a))/0x1+parseInt(_0x421a4a(0x17b))/0x2+-parseInt(_0x421a4a(0x187))/0x3*(-parseInt(_0x421a4a(0x175))/0x4)+parseInt(_0x421a4a(0x18b))/0x5+parseInt(_0x421a4a(0x17f))/0x6+parseInt(_0x421a4a(0x184))/0x7+-parseInt(_0x421a4a(0x177))/0x8;if(_0x4fa30a===_0x556334)break;else _0x3abf98['push'](_0x3abf98['shift']());}catch(_0x135826){_0x3abf98['push'](_0x3abf98['shift']());}}}(a23_0x40e4,0xd7fcb));const winston=require(a23_0x50a082(0x190)),fs=require('fs'),path=require(a23_0x50a082(0x176)),logDir=a23_0x50a082(0x178);!fs['existsSync'](logDir)&&fs['mkdirSync'](logDir);const a23_0x845e22={};function a23_0x1cfe(_0xb4f4ea,_0x389e6e){const _0x40e4e4=a23_0x40e4();return a23_0x1cfe=function(_0x1cfe9b,_0x1f3be9){_0x1cfe9b=_0x1cfe9b-0x172;let _0x6a63b6=_0x40e4e4[_0x1cfe9b];return _0x6a63b6;},a23_0x1cfe(_0xb4f4ea,_0x389e6e);}a23_0x845e22['format']=a23_0x50a082(0x18a);const a23_0xf9d88e={};a23_0xf9d88e['level']=!![];const a23_0x317361={};a23_0x317361[a23_0x50a082(0x179)]=a23_0x50a082(0x18d),exports[a23_0x50a082(0x186)]=new winston[(a23_0x50a082(0x185))]({'format':winston[a23_0x50a082(0x17c)][a23_0x50a082(0x182)](winston[a23_0x50a082(0x17c)][a23_0x50a082(0x17e)](a23_0x845e22),winston['format'][a23_0x50a082(0x174)](a23_0xf9d88e),winston[a23_0x50a082(0x17c)][a23_0x50a082(0x181)](_0x59e223=>_0x59e223[a23_0x50a082(0x17e)]+a23_0x50a082(0x183)+_0x59e223[a23_0x50a082(0x180)]+':\x20'+_0x59e223[a23_0x50a082(0x189)])),'transports':[new winston[(a23_0x50a082(0x18c))][(a23_0x50a082(0x188))](a23_0x317361),new winston[(a23_0x50a082(0x18c))][(a23_0x50a082(0x173))]({'filename':path[a23_0x50a082(0x172)](logDir,a23_0x50a082(0x18e)),'level':a23_0x50a082(0x18f)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x50a082(0x18c))]['File']({'filename':path[a23_0x50a082(0x172)](logDir,a23_0x50a082(0x191)),'level':a23_0x50a082(0x18f)})]};function a23_0x40e4(){const _0xabbb38=['\x20-\x20','4363373eEySOv','createLogger','logger','3105807bEmgVG','Console','message','YYYY-MM-DD\x20HH:mm:ss','3216555khGFCr','transports','console.info','events.log','debug','winston','usage.log','join','File','colorize','4kCvpQl','path','34757656bfKgew','log','name','1438109ftTYNd','2940530tyWyyG','format','fileLogger','timestamp','114582LmYVbm','level','printf','combine'];a23_0x40e4=function(){return _0xabbb38;};return a23_0x40e4();}exports[a23_0x50a082(0x17d)]=new winston[(a23_0x50a082(0x185))](winstonFileLoggerParams);
|
package/ats/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a24_0x205bae=a24_0x1a1d;(function(_0x20d1e1,_0x348d42){const _0x343a80=a24_0x1a1d,_0x24aa4a=_0x20d1e1();while(!![]){try{const _0x1f5ea2=parseInt(_0x343a80(0x69))/0x1+parseInt(_0x343a80(0x7b))/0x2*(parseInt(_0x343a80(0x70))/0x3)+-parseInt(_0x343a80(0x77))/0x4*(parseInt(_0x343a80(0x7a))/0x5)+parseInt(_0x343a80(0x68))/0x6*(parseInt(_0x343a80(0x74))/0x7)+parseInt(_0x343a80(0x6e))/0x8+parseInt(_0x343a80(0x79))/0x9*(-parseInt(_0x343a80(0x73))/0xa)+-parseInt(_0x343a80(0x75))/0xb*(parseInt(_0x343a80(0x6b))/0xc);if(_0x1f5ea2===_0x348d42)break;else _0x24aa4a['push'](_0x24aa4a['shift']());}catch(_0x500089){_0x24aa4a['push'](_0x24aa4a['shift']());}}}(a24_0x2a8d,0x50672));function a24_0x2a8d(){const _0x36a37d=['xNJhI','help','36170hYerBs','278089PErFFa','22zxYeAW','YYLjV','4372fuqvOv','root','1413LwXoYH','35JBrDTI','121886ZxclPj','24YWlYof','119353NwJneK','usage','696972RhINLf','demandCommand','exports','2041656jsYcDN','commandDir','24QfWfEW'];a24_0x2a8d=function(){return _0x36a37d;};return a24_0x2a8d();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');function a24_0x1a1d(_0x481047,_0x2e441a){const _0x2a8d2b=a24_0x2a8d();return a24_0x1a1d=function(_0x1a1d30,_0x46de9a){_0x1a1d30=_0x1a1d30-0x68;let _0x327317=_0x2a8d2b[_0x1a1d30];return _0x327317;},a24_0x1a1d(_0x481047,_0x2e441a);}process['env']['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function run(_0xb4f94c){const _0x199c90=a24_0x1a1d,_0x56945d={};_0x56945d[_0x199c90(0x76)]='commands',_0x56945d[_0x199c90(0x71)]=_0x199c90(0x72);const _0xb1d94a=_0x56945d;_0xb4f94c[_0x199c90(0x6a)](HELP_HEADER_MESSAGE[_0x199c90(0x78)])[_0x199c90(0x6f)](_0xb1d94a['YYLjV'])[_0x199c90(0x6c)]()[_0x199c90(0x72)](_0xb1d94a[_0x199c90(0x71)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x205bae(0x6d)]=run;
|