browserstack-node-sdk 1.47.0 → 1.47.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.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/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.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/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.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/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -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/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a15_0x2f8c5=a15_0x35fb;(function(_0x495661,_0x42c78e){const _0x3291d7=a15_0x35fb,_0x1373cd=_0x495661();while(!![]){try{const _0x26dcb8=-parseInt(_0x3291d7(0x161))/0x1*(-parseInt(_0x3291d7(0x11a))/0x2)+parseInt(_0x3291d7(0x145))/0x3+parseInt(_0x3291d7(0x13e))/0x4*(parseInt(_0x3291d7(0x15d))/0x5)+-parseInt(_0x3291d7(0x153))/0x6*(parseInt(_0x3291d7(0x122))/0x7)+parseInt(_0x3291d7(0x13c))/0x8+parseInt(_0x3291d7(0x137))/0x9*(parseInt(_0x3291d7(0x16c))/0xa)+parseInt(_0x3291d7(0x151))/0xb*(-parseInt(_0x3291d7(0x128))/0xc);if(_0x26dcb8===_0x42c78e)break;else _0x1373cd['push'](_0x1373cd['shift']());}catch(_0x289875){_0x1373cd['push'](_0x1373cd['shift']());}}}(a15_0x2049,0x60c17));const fs=require('fs'),got=require(a15_0x2f8c5(0x165)),{table}=require('table'),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x2f8c5(0x16b)),{getCredentialsPath,getAuthHeader}=require(a15_0x2f8c5(0x14b)),{sendInstrumentationEvent}=require(a15_0x2f8c5(0x160));function a15_0x35fb(_0x4eca7d,_0x2debcd){const _0x204915=a15_0x2049();return a15_0x35fb=function(_0x35fbd6,_0x1b1c37){_0x35fbd6=_0x35fbd6-0x119;let _0x39f270=_0x204915[_0x35fbd6];return _0x39f270;},a15_0x35fb(_0x4eca7d,_0x2debcd);}exports[a15_0x2f8c5(0x133)]=a15_0x2f8c5(0x129),exports[a15_0x2f8c5(0x138)]=a15_0x2f8c5(0x143),exports[a15_0x2f8c5(0x168)]=function(_0x319343){const _0x785f44=a15_0x2f8c5,_0x3d5dbc={};_0x3d5dbc['LXJeD']=_0x785f44(0x15b),_0x3d5dbc[_0x785f44(0x130)]=_0x785f44(0x147),_0x3d5dbc[_0x785f44(0x123)]=_0x785f44(0x131);const _0x496f30=_0x3d5dbc,_0x2898c8={};_0x2898c8['description']=_0x496f30['LXJeD'],_0x2898c8[_0x785f44(0x157)]=_0x496f30[_0x785f44(0x130)];const _0x35cd60={};return _0x35cd60[_0x785f44(0x164)]=_0x2898c8,_0x319343['usage'](HELP_HEADER_MESSAGE[_0x785f44(0x152)]['grid'])[_0x785f44(0x15a)](HELP_FOOTER_MESSAGE)[_0x785f44(0x135)](_0x35cd60)[_0x785f44(0x131)](_0x496f30['jtQAv'])['argv'];},exports[a15_0x2f8c5(0x150)]=async function(_0x2a86d3){const _0x54f32f=a15_0x2f8c5,_0x5b7f9b={'uxwSn':function(_0x3eab55){return _0x3eab55();},'huovF':_0x54f32f(0x11f),'VndDO':function(_0x2d6bf5,_0x3b8bb7,_0x1084b1,_0x45ac61,_0x1e6b0d,_0x5f56d1,_0x2ecde0){return _0x2d6bf5(_0x3b8bb7,_0x1084b1,_0x45ac61,_0x1e6b0d,_0x5f56d1,_0x2ecde0);},'ENFVw':_0x54f32f(0x156),'NSldz':'init-not-called','SckAR':function(_0x17ccb9){return _0x17ccb9();},'AxNXy':_0x54f32f(0x11d),'yHMKl':function(_0x4e30b4,_0x362441,_0x47e7ff){return _0x4e30b4(_0x362441,_0x47e7ff);},'FjAZi':function(_0xbaa309,_0x211742,_0x4c6563,_0x371ee1,_0x718ed5,_0x2d36b7,_0xffce92){return _0xbaa309(_0x211742,_0x4c6563,_0x371ee1,_0x718ed5,_0x2d36b7,_0xffce92);},'ZdLpK':function(_0x36d35a,_0x204f90,_0xdc04bc){return _0x36d35a(_0x204f90,_0xdc04bc);},'QZGDZ':function(_0x24173,_0x139f54){return _0x24173!==_0x139f54;},'PGNbT':function(_0x22beb0,_0x2f61f5){return _0x22beb0!==_0x2f61f5;},'ZsCCG':function(_0x43f001,_0x74983){return _0x43f001===_0x74983;},'ABVAK':'\x0aFound\x20the\x20following\x20grids:\x0a','HOVqx':_0x54f32f(0x16a),'BsUQb':_0x54f32f(0x13b),'pQNyg':_0x54f32f(0x12b),'zwADt':_0x54f32f(0x132),'vwbQb':'queued','VRWWz':_0x54f32f(0x162),'IYnmo':function(_0x2e2bd1,_0x339b35){return _0x2e2bd1(_0x339b35);},'ynIzS':_0x54f32f(0x159),'FkHYu':_0x54f32f(0x16e),'txqbf':function(_0x25fdc3,_0x57172a,_0x111990,_0x400ac6,_0x55f427,_0x1dff3d,_0x13c04a){return _0x25fdc3(_0x57172a,_0x111990,_0x400ac6,_0x55f427,_0x1dff3d,_0x13c04a);},'HCQJV':_0x54f32f(0x149),'DKtED':function(_0x404d85,_0x5cb97f,_0x361bcb,_0x2b7911,_0x41892e,_0x17b5ea,_0x56d04c){return _0x404d85(_0x5cb97f,_0x361bcb,_0x2b7911,_0x41892e,_0x17b5ea,_0x56d04c);},'Augtl':_0x54f32f(0x146)};try{global_registry[_0x54f32f(0x127)]=_0x5b7f9b[_0x54f32f(0x141)](uuidv4);!fs[_0x54f32f(0x126)](_0x5b7f9b[_0x54f32f(0x141)](getCredentialsPath))&&(console[_0x54f32f(0x134)](_0x5b7f9b[_0x54f32f(0x12f)]),await _0x5b7f9b[_0x54f32f(0x13f)](sendInstrumentationEvent,_0x2a86d3,_0x5b7f9b[_0x54f32f(0x158)],messageTypes[_0x54f32f(0x121)],_0x5b7f9b['NSldz'],null,_0x2a86d3),process['exit'](0x1));const _0x2522c7=JSON[_0x54f32f(0x120)](fs['readFileSync'](_0x5b7f9b[_0x54f32f(0x148)](getCredentialsPath)));let _0x3cdfe9=_0x54f32f(0x166)+AG_API_URL+_0x54f32f(0x154);_0x2a86d3[_0x54f32f(0x169)]&&(_0x3cdfe9=_0x54f32f(0x166)+AG_API_URL+_0x54f32f(0x11c));const _0x4cfc2d={'method':_0x5b7f9b['AxNXy'],'headers':_0x5b7f9b[_0x54f32f(0x14d)](getAuthHeader,_0x2522c7[_0x54f32f(0x13d)][_0x54f32f(0x14f)],_0x2522c7[_0x54f32f(0x13d)][_0x54f32f(0x11e)]),'throwHttpErrors':![]};global_registry[_0x54f32f(0x124)]=_0x2522c7[_0x54f32f(0x13d)]['username'],global_registry['bstackAccesskey']=_0x2522c7[_0x54f32f(0x13d)][_0x54f32f(0x11e)],_0x5b7f9b[_0x54f32f(0x16d)](sendInstrumentationEvent,_0x2a86d3,_0x5b7f9b[_0x54f32f(0x158)],messageTypes[_0x54f32f(0x163)],null,null,_0x2a86d3);const _0x567f6d=await _0x5b7f9b[_0x54f32f(0x136)](got,_0x3cdfe9,_0x4cfc2d);if(_0x5b7f9b[_0x54f32f(0x13a)](_0x567f6d,null)&&_0x5b7f9b['PGNbT'](_0x567f6d,undefined)&&_0x5b7f9b[_0x54f32f(0x155)](_0x567f6d[_0x54f32f(0x14e)],0xc8)){const _0x55566f=JSON[_0x54f32f(0x120)](_0x567f6d[_0x54f32f(0x15f)]);console['log'](_0x5b7f9b[_0x54f32f(0x144)]);const _0x213e73=[];_0x213e73[_0x54f32f(0x12a)]([_0x5b7f9b[_0x54f32f(0x14c)],_0x5b7f9b[_0x54f32f(0x139)],_0x5b7f9b['pQNyg'],_0x5b7f9b[_0x54f32f(0x15c)],_0x5b7f9b[_0x54f32f(0x142)],_0x5b7f9b[_0x54f32f(0x125)]]),_0x55566f[_0x54f32f(0x12e)](_0x35b544=>{const _0x4659ea=_0x54f32f;_0x213e73[_0x4659ea(0x12a)]([_0x35b544['id'],_0x35b544[_0x4659ea(0x140)],_0x35b544[_0x4659ea(0x12b)],_0x35b544[_0x4659ea(0x132)],_0x35b544['queued'],_0x35b544[_0x4659ea(0x12c)]]);}),console['log'](_0x5b7f9b['IYnmo'](table,_0x213e73)),process['exit'](0x0);}_0x5b7f9b[_0x54f32f(0x155)](_0x567f6d[_0x54f32f(0x14e)],0x191)&&(console[_0x54f32f(0x134)](_0x5b7f9b[_0x54f32f(0x12d)]),await _0x5b7f9b[_0x54f32f(0x16d)](sendInstrumentationEvent,_0x2a86d3,_0x5b7f9b[_0x54f32f(0x158)],messageTypes[_0x54f32f(0x121)],_0x5b7f9b['FkHYu'],null,_0x2a86d3),process[_0x54f32f(0x167)](0x1)),console['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x54f32f(0x11b)](_0x567f6d)),await _0x5b7f9b[_0x54f32f(0x119)](sendInstrumentationEvent,_0x2a86d3,_0x5b7f9b[_0x54f32f(0x158)],messageTypes[_0x54f32f(0x121)],_0x5b7f9b[_0x54f32f(0x15e)],_0x567f6d,_0x2a86d3),process[_0x54f32f(0x167)](0x1);}catch(_0x5cf6c8){console[_0x54f32f(0x134)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x5cf6c8[_0x54f32f(0x14a)]),await _0x5b7f9b['DKtED'](sendInstrumentationEvent,_0x2a86d3,_0x5b7f9b[_0x54f32f(0x158)],messageTypes[_0x54f32f(0x121)],_0x5b7f9b['Augtl'],_0x5cf6c8,_0x2a86d3),process[_0x54f32f(0x167)](0x1);}};function a15_0x2049(){const _0x21c096=['ZsCCG','list-grids-called','type','ENFVw','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','epilogue','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','zwADt','5lhnRPM','HCQJV','body','../../utils/instrumentationUtils','222368xyhdRx','cluster-name','INFO','all-grids','got','https://','exit','builder','allGrids','grid-id','../../config/constants','8980HiBWtw','FjAZi','unauthorised','txqbf','4ffYoUO','stringify','/packages/cli/get-all-grids','GET','password','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','parse','ERROR','60389HYvgSL','jtQAv','bstackUsername','VRWWz','existsSync','requestId','10884IdPpvl','grids','push','status','clusterName','ynIzS','forEach','huovF','iIEOb','help','running','command','error','options','ZdLpK','2637mDVRjX','desc','BsUQb','QZGDZ','grid-name','1459240WYiTjp','Browserstack','1814708haqqnb','VndDO','name','uxwSn','vwbQb','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','ABVAK','1126377QvqbZz','unknown-error','boolean','SckAR','server-error','stack','../../utils/utilityMethods','HOVqx','yHMKl','statusCode','username','handler','13849yhLdhL','list','126BqAoZY','/packages/cli/get-grids'];a15_0x2049=function(){return _0x21c096;};return a15_0x2049();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16_0x88901e=a16_0x3800;function a16_0x2373(){const _0x3a8de7=['671236tBNaIr','../config/constants','Xghqs','4089180UycLtk','2AoatWX','handler','pre-check','6803910WrSqwr','7357EXvkuS','precheck_commands','help','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','command','epilogue','3872LxPwZy','demandCommand','51470172yZtsqv','pre_check','SpKnu','5661825HgKhUK','usage','strict','9393065rpAnHR','commandDir'];a16_0x2373=function(){return _0x3a8de7;};return a16_0x2373();}function a16_0x3800(_0x1810ea,_0x1dfe3b){const _0x237301=a16_0x2373();return a16_0x3800=function(_0x3800af,_0x46460e){_0x3800af=_0x3800af-0x12d;let _0x5caa1d=_0x237301[_0x3800af];return _0x5caa1d;},a16_0x3800(_0x1810ea,_0x1dfe3b);}(function(_0x13d016,_0x4cb3a9){const _0x273ddb=a16_0x3800,_0x951853=_0x13d016();while(!![]){try{const _0xccae94=parseInt(_0x273ddb(0x140))/0x1*(parseInt(_0x273ddb(0x13c))/0x2)+-parseInt(_0x273ddb(0x137))/0x3+-parseInt(_0x273ddb(0x13f))/0x4+-parseInt(_0x273ddb(0x13a))/0x5+-parseInt(_0x273ddb(0x143))/0x6+parseInt(_0x273ddb(0x144))/0x7*(parseInt(_0x273ddb(0x132))/0x8)+parseInt(_0x273ddb(0x134))/0x9;if(_0xccae94===_0x4cb3a9)break;else _0x951853['push'](_0x951853['shift']());}catch(_0xb47cc){_0x951853['push'](_0x951853['shift']());}}}(a16_0x2373,0xee714));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x88901e(0x13d));exports[a16_0x88901e(0x130)]=a16_0x88901e(0x142),exports['desc']=a16_0x88901e(0x12f),exports['builder']=function(_0x1f7777){const _0x34d1e4=a16_0x88901e,_0x4f19a5={};_0x4f19a5[_0x34d1e4(0x13e)]=_0x34d1e4(0x12d),_0x4f19a5[_0x34d1e4(0x136)]=_0x34d1e4(0x12e);const _0x2fea59=_0x4f19a5;return _0x1f7777[_0x34d1e4(0x138)](HELP_HEADER_MESSAGE[_0x34d1e4(0x135)])[_0x34d1e4(0x131)](HELP_FOOTER_MESSAGE)[_0x34d1e4(0x13b)](_0x2fea59[_0x34d1e4(0x13e)])[_0x34d1e4(0x133)]()['recommendCommands']()[_0x34d1e4(0x139)]()[_0x34d1e4(0x12e)](_0x2fea59[_0x34d1e4(0x136)]);},exports[a16_0x88901e(0x141)]=function(_0x4482d6){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a17_0x2f66(_0x68c8bc,_0x2e0024){const _0x33ce5f=a17_0x33ce();return a17_0x2f66=function(_0x2f66da,_0x4d3a7a){_0x2f66da=_0x2f66da-0x18d;let _0x1da5a4=_0x33ce5f[_0x2f66da];return _0x1da5a4;},a17_0x2f66(_0x68c8bc,_0x2e0024);}function a17_0x33ce(){const _0x42dfaa=['OinXM','bSRtv','xYsuS','name','.\x20Please\x20provide\x20all\x20required\x20arguments.','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','region','agpUz','OqFnS','WOzYc','stack\x20trace\x20','WXTqC','log/report_','https://','vKemF','fFXUY','zZnwy','Whitelisted\x20browserstack','../../utils/instrumentationUtils','type','Error\x20Details:\x0a','../../config/logger','username','exit','cloud-provider-not-supported','TEdXa','XSVIf','handler','TWAtw','Sottd','replace','pre-check-grid-called','BBJJz','wTarR','cluster-check-failed-','cloud-provider','qvgNK','uoqqg','rdGxD','cluster-name','error\x20stack\x20:\x20','clusterName','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','YVUkT','yehtP','stringify','body','ZTbhf','requestId','OWLjp','uabNZ','pLNVh','header','response','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','<UsernamePlaceholder>','getUTCMonth','info','throwHttpErrors','mhFgf','IlyyE','pre_check','WJPmg','getUTCFullYear','eMLNQ','8943660pJfSKP','data','QklnW','ZKSmZ','Tool\x20Installed','hFuQq','vWLbd','lDtFJ','`\x20is\x20present\x20in\x20region\x20`','NJtJX','gridProfile','suwez','CLOUD_PROVIDER','method','clusterRegion','HJseP','NcUXD','pFQLX','lpyzI','3582837lXIRBL','ZsVvX','init','.txt','PotqK','===\x20Precheck\x20Report\x20-\x20','jJHQB','toolInstalledResp','dHZKv','oBfGh','fjbdD','kgUSt','string','QRpyT','ZGKHH','../../utils/webSocketUtils','nxtdI','OEDeY','GET','existsSync','command','parse','accessResp','push','options','DMoVV','isClusterPresent','PJajj','Failure','Grid\x20profile\x20fetched\x20for\x20pre-check','credential-not-found','`\x20already\x20exists','Invalid\x20input.\x20grid\x20profiles:\x20','message','Browserstack','connectionTimeout','cEdFL','length','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','stack','VhdLe','Setting\x20cloud\x20provider\x20as\x20','\x20error\x20:\x20','TLSv1_2_client_method','2756932yLMIKV','split','../../utils/utilityMethods','2890324MkHUzz','eLlPD','qzrZw','oCeJq','KNuSB','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','grid','Status:\x20','Message:\x20','reconnecting-websocket','lsOtF','\x20\x20Stack:\x20','readFileSync','Missing\x20required\x20arguments:\x20','kDLzr','ZmmBb','bNOUv','yLQtj','`\x20,error\x20:\x20','delay','desc','isTls1_2_SUPPORTED','AUQot','VGhMM','forEach','wZyMS','tsTLe','pre-check-cluster-args-not-passed','Cluster\x20','vKsEx','find','bstackAccesskey','code','pre-check','AfoNu','VRGtP','zZxtg','usage','description','\x20data\x20:\x20','grid\x20profile\x20flow\x20','HXdiO','LPdFV','oPkls','iQcjo','WaFng','0|4|3|1|2','hisgN','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','error','getUTCHours','is\x20already\x20present','help','1451787FWnYNI','epilogue','AQglj','GSlQf','debug','1308066BTyHNl','pEjQW','nXPZE','pre-check-failed','NNuSC','argft','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','XLAat','Tbrdo','cHhFv','aLBWh','pkzrQ','QNeYo','\x20\x20Message:\x20','grid-profile','TEaAD','mIGZd','Erxjx','hMWGF','7zJYwLW','password','nBLlh','../../cloudproviders/utils','DFPKF','HKnmG','CBhaH','wewkd','tNtYA','FRNlx','Kermw','will\x20be\x20created','LOG',']\x20status\x20:\x20','bOkBc','uAKqu','aozKg','qAamm','LXxYS','\x20\x20Code:\x20','bstackUsername','Izcct','sendEventToBackend','UOzGk','argv','qlwas','Success','checkAccess','isTrialGridAccessible','tKWWd','authHeader','getUTCMinutes','\x20region\x20-\x20','Report\x20saved\x20in\x20','13127800yBvZLw','uGIWR','ERROR','N/A','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','DqMKn','got','cloudProvider','VsdSH','WebSocket','JJAhO','isCliToolInstalled','wiMog','edNlf','INFO','Failed\x20in\x20pre-check!\x20Error:\x20','builder','Cluster\x20`','GONfs','sRwGr','includes'];a17_0x33ce=function(){return _0x42dfaa;};return a17_0x33ce();}const a17_0x29a230=a17_0x2f66;(function(_0x55d49d,_0x41b10a){const _0x52548a=a17_0x2f66,_0x16b64b=_0x55d49d();while(!![]){try{const _0x10f50e=parseInt(_0x52548a(0x291))/0x1+-parseInt(_0x52548a(0x259))/0x2+parseInt(_0x52548a(0x22d))/0x3+-parseInt(_0x52548a(0x25c))/0x4+parseInt(_0x52548a(0x21a))/0x5+parseInt(_0x52548a(0x18f))/0x6*(parseInt(_0x52548a(0x1a2))/0x7)+-parseInt(_0x52548a(0x1c4))/0x8;if(_0x10f50e===_0x41b10a)break;else _0x16b64b['push'](_0x16b64b['shift']());}catch(_0x3a6bf5){_0x16b64b['push'](_0x16b64b['shift']());}}}(a17_0x33ce,0xde5c3));const fs=require('fs'),ws=require('ws'),got=require(a17_0x29a230(0x1ca)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x29a230(0x265)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x29a230(0x25b)),{logger}=require(a17_0x29a230(0x1ee)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require(a17_0x29a230(0x1a5)),webSocketUtils=require(a17_0x29a230(0x23c)),{sendInstrumentationEvent}=require(a17_0x29a230(0x1eb));exports[a17_0x29a230(0x241)]=a17_0x29a230(0x262),exports[a17_0x29a230(0x270)]=a17_0x29a230(0x261),exports[a17_0x29a230(0x1d4)]=function(_0x3bc60e){const _0x5b68ce=a17_0x29a230,_0xec0622={};_0xec0622[_0x5b68ce(0x20c)]=_0x5b68ce(0x195),_0xec0622[_0x5b68ce(0x199)]=_0x5b68ce(0x239),_0xec0622[_0x5b68ce(0x1d0)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0xec0622[_0x5b68ce(0x1f3)]=_0x5b68ce(0x253),_0xec0622['AHpvO']='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0xec0622[_0x5b68ce(0x193)]=_0x5b68ce(0x290);const _0x11c09e=_0xec0622,_0x23920a={};_0x23920a[_0x5b68ce(0x282)]=_0x11c09e[_0x5b68ce(0x20c)],_0x23920a[_0x5b68ce(0x1ec)]=_0x11c09e[_0x5b68ce(0x199)];const _0x5a822b={};_0x5a822b[_0x5b68ce(0x282)]=_0x11c09e[_0x5b68ce(0x1d0)],_0x5a822b[_0x5b68ce(0x1ec)]=_0x11c09e['aLBWh'];const _0x123649={};_0x123649[_0x5b68ce(0x282)]=_0x11c09e[_0x5b68ce(0x1f3)],_0x123649[_0x5b68ce(0x1ec)]=_0x11c09e['aLBWh'];const _0xaa85e4={};_0xaa85e4[_0x5b68ce(0x282)]=_0x11c09e['AHpvO'],_0xaa85e4[_0x5b68ce(0x1ec)]=_0x11c09e[_0x5b68ce(0x199)];const _0x14f29d={};return _0x14f29d[_0x5b68ce(0x200)]=_0x23920a,_0x14f29d['cloud-provider']=_0x5a822b,_0x14f29d['region']=_0x123649,_0x14f29d[_0x5b68ce(0x19d)]=_0xaa85e4,_0x3bc60e[_0x5b68ce(0x281)](HELP_HEADER_MESSAGE[_0x5b68ce(0x216)])[_0x5b68ce(0x292)](HELP_FOOTER_MESSAGE)[_0x5b68ce(0x245)](_0x14f29d)[_0x5b68ce(0x290)](_0x11c09e[_0x5b68ce(0x193)])[_0x5b68ce(0x1ba)];};async function inputValidation(_0x48a872,_0x36c542){const _0x5bf44c=a17_0x29a230,_0x7eebab={'oBfGh':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','dHZKv':'string','VhdLe':_0x5bf44c(0x203),'iQcjo':_0x5bf44c(0x253),'BBJJz':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','kyYjw':_0x5bf44c(0x290),'KgBLC':'Error\x20Details:\x0a','Sottd':_0x5bf44c(0x1c7),'aCqpK':_0x5bf44c(0x28f),'YVUkT':_0x5bf44c(0x1ad),'QNeYo':_0x5bf44c(0x200),'oPkls':'error','ZTbhf':_0x5bf44c(0x1df),'edNlf':_0x5bf44c(0x1fc),'uabNZ':_0x5bf44c(0x1c8),'fjbdD':function(_0x481460,_0x15e8d2){return _0x481460!==_0x15e8d2;},'XLAat':'WOdIz','OqFnS':_0x5bf44c(0x229),'abfgW':'etnca','qXJkw':_0x5bf44c(0x22a),'VGhMM':function(_0xbcf3e,_0x41680c){return _0xbcf3e===_0x41680c;},'DqMKn':_0x5bf44c(0x198),'Izcct':_0x5bf44c(0x279),'AQglj':_0x5bf44c(0x217),'Kermw':_0x5bf44c(0x191),'suwez':'wsFdp','LnaZa':_0x5bf44c(0x1ff),'VRGtP':function(_0x514017,_0x3bc453){return _0x514017>_0x3bc453;},'lDtFJ':function(_0x238ced,_0x50e06d){return _0x238ced!==_0x50e06d;},'qatJd':'pbrNr','QklnW':function(_0x5f480a,_0x19649d,_0x433163,_0x1d10fe,_0x5f0cee,_0x52dbbf,_0x145f01,_0x27d967){return _0x5f480a(_0x19649d,_0x433163,_0x1d10fe,_0x5f0cee,_0x52dbbf,_0x145f01,_0x27d967);},'lsOtF':_0x5bf44c(0x1f8),'GSlQf':_0x5bf44c(0x277),'VsdSH':_0x5bf44c(0x246),'qvgNK':_0x5bf44c(0x1a4),'bOkBc':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','bNOUv':_0x5bf44c(0x1f1),'OinXM':function(_0x568db5,_0x1de972){return _0x568db5===_0x1de972;},'vcLmT':_0x5bf44c(0x20a),'cEdFL':_0x5bf44c(0x1fe),'oCeJq':function(_0x5a071c,_0x106150){return _0x5a071c!==_0x106150;},'eLlPD':_0x5bf44c(0x1e7),'vIRLV':_0x5bf44c(0x23f),'bSRtv':function(_0xebb6a9,_0x2199a3,_0x26776c){return _0xebb6a9(_0x2199a3,_0x26776c);},'ieSfw':function(_0x677022,_0x454584,_0x451b36,_0xbcda2c,_0x530572,_0x57e094){return _0x677022(_0x454584,_0x451b36,_0xbcda2c,_0x530572,_0x57e094);},'fFXUY':_0x5bf44c(0x27d),'wZyMS':_0x5bf44c(0x19d),'Erxjx':'iAnFM','UOzGk':function(_0x16a101,_0x176564){return _0x16a101(_0x176564);},'pEjQW':function(_0x5de0e0,_0x54ba8d){return _0x5de0e0===_0x54ba8d;},'wTarR':_0x5bf44c(0x1d7),'hMWGF':_0x5bf44c(0x1b3),'HqHce':'pre-check-grid-profile-empty','AjnVQ':'ItzUV','ZmmBb':_0x5bf44c(0x26d),'jJHQB':_0x5bf44c(0x22b),'ZsVvX':_0x5bf44c(0x24a),'aozKg':_0x5bf44c(0x1aa),'uAKqu':_0x5bf44c(0x19f),'kDLzr':_0x5bf44c(0x1a8),'FRNlx':_0x5bf44c(0x238),'AUQot':function(_0x4dce31,_0x4d3473,_0x56850e,_0x25b0ed,_0x3fc906,_0x2e4c29,_0xd5020f,_0x3dfe96){return _0x4dce31(_0x4d3473,_0x56850e,_0x25b0ed,_0x3fc906,_0x2e4c29,_0xd5020f,_0x3dfe96);}};let _0x34d680;try{if(_0x7eebab['fjbdD'](_0x7eebab[_0x5bf44c(0x196)],_0x7eebab[_0x5bf44c(0x1e1)])){if(_0x48a872[_0x5bf44c(0x202)]||_0x48a872[_0x5bf44c(0x1cb)]||_0x48a872[_0x5bf44c(0x1df)]){if(_0x7eebab['fjbdD'](_0x7eebab['abfgW'],_0x7eebab['qXJkw'])){const _0x50796a=[];!_0x48a872[_0x5bf44c(0x202)]&&(_0x7eebab[_0x5bf44c(0x273)](_0x7eebab[_0x5bf44c(0x1c9)],_0x7eebab[_0x5bf44c(0x1b7)])?(_0x496767[_0x5bf44c(0x212)]('['+_0x77aa9d+_0x5bf44c(0x1af)+_0x47c38a['status']+'\x20data\x20:\x20'+_0x3aa31b[_0x5bf44c(0x21b)]+_0x5bf44c(0x257)+_0x5da84e[_0x5bf44c(0x28d)]),_0x532fb2[_0x5bf44c(0x28d)]&&_0x4d1e1b[_0x5bf44c(0x28d)](_0x5bf44c(0x201)+_0xcf545a[_0x5bf44c(0x28d)][_0x5bf44c(0x254)])):_0x50796a[_0x5bf44c(0x244)](_0x7eebab[_0x5bf44c(0x19b)]));;if(!_0x48a872['cloudProvider']){if(_0x7eebab[_0x5bf44c(0x273)](_0x7eebab[_0x5bf44c(0x293)],_0x7eebab[_0x5bf44c(0x1ac)])){const _0x45abfe={};_0x45abfe['description']=_0x7eebab[_0x5bf44c(0x236)],_0x45abfe[_0x5bf44c(0x1ec)]=_0x7eebab['dHZKv'];const _0x2384a6={};_0x2384a6[_0x5bf44c(0x282)]=_0x7eebab[_0x5bf44c(0x255)],_0x2384a6[_0x5bf44c(0x1ec)]=_0x7eebab[_0x5bf44c(0x235)];const _0x1b9271={};_0x1b9271[_0x5bf44c(0x282)]=_0x7eebab[_0x5bf44c(0x288)],_0x1b9271['type']=_0x7eebab[_0x5bf44c(0x235)];const _0x3a3cb2={};_0x3a3cb2[_0x5bf44c(0x282)]=_0x7eebab[_0x5bf44c(0x1f9)],_0x3a3cb2[_0x5bf44c(0x1ec)]=_0x7eebab[_0x5bf44c(0x235)];const _0x4dcc8d={};return _0x4dcc8d[_0x5bf44c(0x200)]=_0x45abfe,_0x4dcc8d[_0x5bf44c(0x1fc)]=_0x2384a6,_0x4dcc8d[_0x5bf44c(0x1df)]=_0x1b9271,_0x4dcc8d[_0x5bf44c(0x19d)]=_0x3a3cb2,_0x4f94b6['usage'](_0x3c2789['pre_check'])[_0x5bf44c(0x292)](_0x5c3d01)['options'](_0x4dcc8d)[_0x5bf44c(0x290)](_0x7eebab['kyYjw'])[_0x5bf44c(0x1ba)];}else _0x50796a['push'](_0x7eebab[_0x5bf44c(0x1d1)]);};!_0x48a872[_0x5bf44c(0x1df)]&&(_0x7eebab[_0x5bf44c(0x237)](_0x7eebab[_0x5bf44c(0x225)],_0x7eebab['LnaZa'])?_0x50796a[_0x5bf44c(0x244)](_0x7eebab['ZTbhf']):_0x306dcf[_0x5bf44c(0x212)]('Cluster\x20`'+_0x3bdbba['clusterName']+'`\x20already\x20exists'));;_0x7eebab[_0x5bf44c(0x27f)](_0x50796a[_0x5bf44c(0x252)],0x0)&&(_0x7eebab[_0x5bf44c(0x221)](_0x7eebab['qatJd'],_0x7eebab['qatJd'])?_0x20dff5[_0x5bf44c(0x1f0)](0x1):(_0x34d680=_0x5bf44c(0x269)+_0x50796a['join'](',\x20')+_0x5bf44c(0x1dd),await _0x7eebab[_0x5bf44c(0x21c)](reportToGalactusAndSendToEDS,_0x48a872,_0x36c542,_0x34d680,messageTypes[_0x5bf44c(0x1c6)],_0x7eebab[_0x5bf44c(0x266)],_0x7eebab[_0x5bf44c(0x18d)],_0x7eebab[_0x5bf44c(0x287)]),logger[_0x5bf44c(0x28d)](_0x34d680),process[_0x5bf44c(0x1f0)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x5bf44c(0x1d8)](_0x48a872[_0x5bf44c(0x1cb)]['toLowerCase']())&&(_0x7eebab[_0x5bf44c(0x273)](_0x7eebab[_0x5bf44c(0x1cc)],_0x7eebab[_0x5bf44c(0x1fd)])?_0x1f2ec4[_0x5bf44c(0x28d)]('error\x20stack\x20:\x20'+_0x5626d6[_0x5bf44c(0x28d)]['stack']):(_0x34d680=_0x7eebab[_0x5bf44c(0x1b0)],await _0x7eebab[_0x5bf44c(0x21c)](reportToGalactusAndSendToEDS,_0x48a872,_0x36c542,_0x34d680,messageTypes[_0x5bf44c(0x1c6)],_0x7eebab[_0x5bf44c(0x266)],_0x7eebab[_0x5bf44c(0x26c)],_0x7eebab['oPkls']),logger[_0x5bf44c(0x28d)](_0x34d680),!_0x48a872['cloudProvider']&&(_0x7eebab[_0x5bf44c(0x1d9)](_0x7eebab['vcLmT'],_0x7eebab[_0x5bf44c(0x251)])?(_0x54edca+=_0x7eebab['KgBLC'],_0x30b17d+=_0x5bf44c(0x19c)+(_0x32b83f['message']||_0x7eebab[_0x5bf44c(0x1f6)])+'\x0a',_0x144891+='\x20\x20Code:\x20'+(_0x4378c4[_0x5bf44c(0x27c)]||_0x7eebab[_0x5bf44c(0x1f6)])+'\x0a',_0x2e2d5f+=_0x5bf44c(0x267)+(_0x5bded1[_0x5bf44c(0x254)]||_0x7eebab[_0x5bf44c(0x1f6)])+'\x0a'):(logger[_0x5bf44c(0x212)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x48a872[_0x5bf44c(0x1cb)]=DEFAULT_CLUSTER_DETAILS[_0x5bf44c(0x226)])))),global_registry['clusterName']=_0x48a872[_0x5bf44c(0x202)],global_registry[_0x5bf44c(0x1cb)]=_0x48a872[_0x5bf44c(0x1cb)],global_registry[_0x5bf44c(0x228)]=_0x48a872['region'];}else _0x13f512[_0x5bf44c(0x212)](_0x5bf44c(0x256)+_0x2bb1ea[_0x5bf44c(0x226)]+'\x20'),_0x2dbcc3[_0x5bf44c(0x1cb)]=_0x115228[_0x5bf44c(0x226)];}else{if(_0x48a872['gridProfile']){if(_0x7eebab['oCeJq'](_0x7eebab[_0x5bf44c(0x25d)],_0x7eebab[_0x5bf44c(0x25d)]))_0x5c7f26+='Cluster\x20'+_0x29f470[_0x5bf44c(0x202)]+_0x5bf44c(0x1de);else{global_registry[_0x5bf44c(0x224)]=_0x48a872[_0x5bf44c(0x224)],logger[_0x5bf44c(0x18e)](_0x5bf44c(0x284)+_0x48a872[_0x5bf44c(0x224)]);const _0x4bce8b=_0x5bf44c(0x1e6)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x142af8={};_0x142af8[_0x5bf44c(0x227)]=_0x7eebab['vIRLV'],_0x142af8['headers']=global_registry[_0x5bf44c(0x1c0)],_0x142af8[_0x5bf44c(0x213)]=![];const _0x3fec8b=_0x142af8,_0x3b67ad=await _0x7eebab[_0x5bf44c(0x1da)](got,_0x4bce8b,_0x3fec8b),_0x76d67e=await _0x7eebab['ieSfw'](responseValidation,_0x3b67ad,_0x7eebab[_0x5bf44c(0x1e8)],_0x7eebab[_0x5bf44c(0x275)],_0x48a872,_0x36c542);let _0x2b459d={};if(_0x7eebab[_0x5bf44c(0x1d9)](_0x76d67e,0xc8)){if(_0x7eebab[_0x5bf44c(0x273)](_0x7eebab[_0x5bf44c(0x1a0)],_0x7eebab[_0x5bf44c(0x1a0)])){const _0x5e844a=JSON[_0x5bf44c(0x242)](_0x3b67ad[_0x5bf44c(0x207)]),_0x168f17=_0x5e844a[_0x5bf44c(0x27a)](_0x186cce=>_0x186cce[_0x5bf44c(0x1dc)]===_0x48a872[_0x5bf44c(0x224)])||null;_0x7eebab[_0x5bf44c(0x1b9)](isUndefined,_0x168f17)?_0x7eebab[_0x5bf44c(0x190)](_0x7eebab[_0x5bf44c(0x1fa)],_0x7eebab[_0x5bf44c(0x1a1)])?_0x4219cb+=_0x5bf44c(0x278)+_0x349556[_0x5bf44c(0x202)]+'\x20'+(_0x48a1d6?_0x7eebab['aCqpK']:_0x7eebab[_0x5bf44c(0x204)])+'\x0a\x0a':(_0x34d680=_0x5bf44c(0x24d)+_0x48a872[_0x5bf44c(0x224)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x7eebab[_0x5bf44c(0x21c)](reportToGalactusAndSendToEDS,_0x48a872,_0x36c542,_0x34d680,messageTypes[_0x5bf44c(0x1c6)],_0x7eebab[_0x5bf44c(0x266)],_0x7eebab['HqHce'],_0x7eebab[_0x5bf44c(0x287)]),logger[_0x5bf44c(0x28d)](_0x34d680),process[_0x5bf44c(0x1f0)](0x1)):_0x7eebab[_0x5bf44c(0x221)](_0x7eebab['AjnVQ'],_0x7eebab[_0x5bf44c(0x26b)])?_0x2b459d=_0x168f17:_0x4e4d10=_0x4844f2;}else _0x42e64d['push'](_0x7eebab[_0x5bf44c(0x19b)]);}else{if(_0x7eebab[_0x5bf44c(0x1d9)](_0x7eebab[_0x5bf44c(0x233)],_0x7eebab[_0x5bf44c(0x233)]))process['exit'](0x1);else{const _0x24f0ce={};_0x24f0ce[_0x5bf44c(0x1ec)]=_0x407b4f['LOG'],_0x24f0ce['message']=_0x18dc13,_0x3f5000[_0x5bf44c(0x1b8)](_0x5ce005,_0x24f0ce,_0x7eebab['oPkls'],!![]);}}const _0x5af3bb={};_0x5af3bb[_0x5bf44c(0x1ec)]=WS_EVENTS[_0x5bf44c(0x1ae)],_0x5af3bb[_0x5bf44c(0x24e)]=_0x7eebab[_0x5bf44c(0x22e)],webSocketUtils[_0x5bf44c(0x1b8)](_0x36c542,_0x5af3bb),global_registry['cloudProvider']=_0x2b459d[_0x5bf44c(0x1cb)],global_registry['clusterRegion']=_0x2b459d[_0x5bf44c(0x1df)],global_registry['clusterName']=_0x2b459d[_0x5bf44c(0x202)];}}else _0x7eebab[_0x5bf44c(0x25f)](_0x7eebab[_0x5bf44c(0x1b2)],_0x7eebab[_0x5bf44c(0x1b1)])?(logger[_0x5bf44c(0x28d)](_0x7eebab[_0x5bf44c(0x20b)]),process[_0x5bf44c(0x1f0)](0x1)):_0x59435d[_0x5bf44c(0x244)](_0x7eebab[_0x5bf44c(0x208)]);}}else _0x36ee34[_0x5bf44c(0x244)](_0x7eebab['edNlf']);}catch(_0x4d520b){_0x7eebab[_0x5bf44c(0x273)](_0x7eebab[_0x5bf44c(0x26a)],_0x7eebab[_0x5bf44c(0x1ab)])?(_0x3ce95e[_0x5bf44c(0x28d)](_0x7eebab[_0x5bf44c(0x20b)]),_0x1378a5[_0x5bf44c(0x1f0)](0x1)):(_0x34d680=_0x5bf44c(0x20f)+_0x4d520b+':\x20'+_0x4d520b[_0x5bf44c(0x254)],logger[_0x5bf44c(0x28d)](_0x34d680),await _0x7eebab[_0x5bf44c(0x272)](reportToGalactusAndSendToEDS,_0x48a872,_0x36c542,_0x34d680,messageTypes[_0x5bf44c(0x1c6)],_0x7eebab[_0x5bf44c(0x266)],_0x7eebab[_0x5bf44c(0x26c)],_0x7eebab[_0x5bf44c(0x287)]),process['exit'](0x1));}}function printResponse(_0x49c816,_0x2ff2f4){const _0x50cfd6=a17_0x29a230,_0x233cff={};_0x233cff[_0x50cfd6(0x1a7)]=function(_0x12d096,_0x3f2859){return _0x12d096+_0x3f2859;},_0x233cff[_0x50cfd6(0x197)]=_0x50cfd6(0x1bc),_0x233cff['ZKSmZ']=_0x50cfd6(0x249),_0x233cff['DFPKF']=function(_0x5455fa,_0x14e1aa){return _0x5455fa||_0x14e1aa;},_0x233cff[_0x50cfd6(0x25e)]=_0x50cfd6(0x1c7),_0x233cff[_0x50cfd6(0x1ce)]=_0x50cfd6(0x1ed),_0x233cff[_0x50cfd6(0x280)]=function(_0x59702f,_0x461af8){return _0x59702f!==_0x461af8;},_0x233cff[_0x50cfd6(0x276)]=_0x50cfd6(0x215);const _0x55c8a3=_0x233cff;logger[_0x50cfd6(0x212)]('['+_0x49c816+_0x50cfd6(0x1af)+_0x2ff2f4['status']+_0x50cfd6(0x283)+_0x2ff2f4[_0x50cfd6(0x21b)]+_0x50cfd6(0x257)+_0x2ff2f4['error']);if(_0x2ff2f4[_0x50cfd6(0x28d)]){if(_0x55c8a3[_0x50cfd6(0x280)](_0x55c8a3[_0x50cfd6(0x276)],_0x55c8a3[_0x50cfd6(0x276)])){const {header:_0x1d7877,response:_0x1fc10a}=_0x1c25d0,{status:_0x12d8ff,data:_0x3f50a2,error:_0x5d1ca5}=_0x1fc10a;_0x23c8d0+=_0x1d7877+'\x20#'+_0x55c8a3[_0x50cfd6(0x1a7)](_0x344041,0x1)+'\x0a',_0x432e84+=_0x50cfd6(0x263)+(_0x12d8ff?_0x55c8a3[_0x50cfd6(0x197)]:_0x55c8a3[_0x50cfd6(0x21d)])+'\x0a',_0x2e8239+=_0x50cfd6(0x264)+_0x55c8a3[_0x50cfd6(0x1a6)](_0x3f50a2,_0x55c8a3[_0x50cfd6(0x25e)])+'\x0a',_0x5d1ca5&&(_0x27ecd7+=_0x55c8a3[_0x50cfd6(0x1ce)],_0x420f1c+='\x20\x20Message:\x20'+(_0x5d1ca5[_0x50cfd6(0x24e)]||_0x55c8a3[_0x50cfd6(0x25e)])+'\x0a',_0xd168b+='\x20\x20Code:\x20'+(_0x5d1ca5[_0x50cfd6(0x27c)]||_0x55c8a3['qzrZw'])+'\x0a',_0x49b703+=_0x50cfd6(0x267)+(_0x5d1ca5[_0x50cfd6(0x254)]||_0x55c8a3['qzrZw'])+'\x0a'),_0x38853d+='\x0a\x0a';}else logger['error'](_0x50cfd6(0x201)+_0x2ff2f4['error'][_0x50cfd6(0x254)]);}}async function generateReport(_0xcec4d7,_0x12eebf){const _0x19be35=a17_0x29a230,_0x136f2a={'hFuQq':function(_0x316247,_0x1287a1){return _0x316247+_0x1287a1;},'TWAtw':_0x19be35(0x1bc),'eMLNQ':_0x19be35(0x249),'OHRIS':function(_0x4ccc81,_0x497994){return _0x4ccc81||_0x497994;},'HXdiO':_0x19be35(0x1c7),'QRpyT':'Error\x20Details:\x0a','CRLym':'Cluster\x20details\x0a-----------------------\x0a','uGIWR':function(_0x160aba,_0xdfe1f4){return _0x160aba!=_0xdfe1f4;},'WaFng':_0x19be35(0x28f),'vWLbd':_0x19be35(0x1ad),'hisgN':function(_0x55da93){return _0x55da93();}};let _0x2d8fd6=_0x19be35(0x232)+global_registry[_0x19be35(0x1cb)]+'\x20===\x0a\x0a';return _0xcec4d7[_0x19be35(0x274)]((_0x186e1a,_0x39cf04)=>{const _0x1d9083=_0x19be35,{header:_0x48a511,response:_0x4d1dce}=_0x186e1a,{status:_0xe5e7b0,data:_0xd24633,error:_0xae60dd}=_0x4d1dce;_0x2d8fd6+=_0x48a511+'\x20#'+_0x136f2a[_0x1d9083(0x21f)](_0x39cf04,0x1)+'\x0a',_0x2d8fd6+=_0x1d9083(0x263)+(_0xe5e7b0?_0x136f2a[_0x1d9083(0x1f5)]:_0x136f2a[_0x1d9083(0x219)])+'\x0a',_0x2d8fd6+=_0x1d9083(0x264)+_0x136f2a['OHRIS'](_0xd24633,_0x136f2a[_0x1d9083(0x285)])+'\x0a',_0xae60dd&&(_0x2d8fd6+=_0x136f2a[_0x1d9083(0x23a)],_0x2d8fd6+=_0x1d9083(0x19c)+(_0xae60dd['message']||_0x136f2a[_0x1d9083(0x285)])+'\x0a',_0x2d8fd6+=_0x1d9083(0x1b5)+(_0xae60dd[_0x1d9083(0x27c)]||_0x136f2a[_0x1d9083(0x285)])+'\x0a',_0x2d8fd6+='\x20\x20Stack:\x20'+(_0xae60dd[_0x1d9083(0x254)]||_0x136f2a[_0x1d9083(0x285)])+'\x0a'),_0x2d8fd6+='\x0a\x0a';}),_0x2d8fd6+=_0x136f2a['CRLym'],_0x136f2a[_0x19be35(0x1c5)](_0x12eebf,null)?_0x2d8fd6+=_0x19be35(0x278)+global_registry['clusterName']+'\x20'+(_0x12eebf?_0x136f2a[_0x19be35(0x289)]:_0x136f2a[_0x19be35(0x220)])+'\x0a\x0a':_0x2d8fd6+=_0x19be35(0x278)+global_registry[_0x19be35(0x202)]+_0x19be35(0x1de),_0x2d8fd6+=_0x136f2a[_0x19be35(0x28b)](getSystemMetaData),_0x2d8fd6;};exports[a17_0x29a230(0x1f4)]=async function(_0xeaea1d){const _0x3c834=a17_0x29a230,_0x47a2c2={'KNuSB':function(_0x283239){return _0x283239();},'TEaAD':function(_0x398398){return _0x398398();},'Ajglk':_0x3c834(0x28c),'yehtP':function(_0x5109c4,_0x1cafd7,_0x41bd4b,_0x3878f0,_0x20eac8,_0x279c0f,_0x343a8e,_0x4aef2b){return _0x5109c4(_0x1cafd7,_0x41bd4b,_0x3878f0,_0x20eac8,_0x279c0f,_0x343a8e,_0x4aef2b);},'PotqK':_0x3c834(0x1f8),'zZnwy':_0x3c834(0x24b),'wewkd':'error','argft':function(_0x2b703a,_0x316652,_0x1c2fa0,_0x2690ae,_0x1c22d7,_0xb91666,_0x11c5b4){return _0x2b703a(_0x316652,_0x1c2fa0,_0x2690ae,_0x1c22d7,_0xb91666,_0x11c5b4);},'GONfs':_0x3c834(0x210),'lpyzI':'<PasswordPlaceholder>','agpUz':function(_0x1c307d,_0x55ceaf,_0x3816d1){return _0x1c307d(_0x55ceaf,_0x3816d1);},'OEDeY':function(_0x8c4dba,_0x3529b3,_0x37a420,_0x190739,_0x488dc7,_0x383ce1,_0x8d0b40){return _0x8c4dba(_0x3529b3,_0x37a420,_0x190739,_0x488dc7,_0x383ce1,_0x8d0b40);},'ZGKHH':'dummy-grid','ApoiO':_0x3c834(0x234),'pkzrQ':_0x3c834(0x28a),'JhCSD':function(_0x104f83,_0x13948b,_0x9f33ed,_0xa1ceea,_0x4e0f36,_0x50a4b2,_0x5bae12,_0xa9d460){return _0x104f83(_0x13948b,_0x9f33ed,_0xa1ceea,_0x4e0f36,_0x50a4b2,_0x5bae12,_0xa9d460);},'nxtdI':_0x3c834(0x243),'qlwas':function(_0x1565a1){return _0x1565a1();},'LXxYS':function(_0x257a78,_0xf00bb3,_0x4bb786){return _0x257a78(_0xf00bb3,_0x4bb786);},'AfoNu':_0x3c834(0x1be),'wQFWz':function(_0x193d9d,_0x3e4924){return _0x193d9d(_0x3e4924);},'tKWWd':_0x3c834(0x258),'WXTqC':_0x3c834(0x271),'LPdFV':_0x3c834(0x21e),'TEdXa':'User\x20Access','ZkwcC':_0x3c834(0x1ea),'PJajj':'SSL\x20Configured','WOzYc':function(_0x39eee4,_0x3b4133,_0x1d051a){return _0x39eee4(_0x3b4133,_0x1d051a);},'TSxZY':function(_0x12c71b,_0x3f66da){return _0x12c71b+_0x3f66da;},'NJtJX':'utf-8','mhFgf':function(_0x139d67,_0x2b1a41,_0x48f26b,_0x499ef2,_0x134bec,_0x47a765,_0x57c9a7){return _0x139d67(_0x2b1a41,_0x48f26b,_0x499ef2,_0x134bec,_0x47a765,_0x57c9a7);},'xYsuS':_0x3c834(0x192)};let _0x1424df,_0x3cf469;try{global_registry[_0x3c834(0x209)]=_0x47a2c2[_0x3c834(0x260)](uuidv4);!fs[_0x3c834(0x240)](_0x47a2c2[_0x3c834(0x19e)](getCredentialsPath))&&(_0x3cf469=_0x47a2c2['Ajglk'],logger[_0x3c834(0x28d)](_0x3cf469),await _0x47a2c2[_0x3c834(0x205)](reportToGalactusAndSendToEDS,_0xeaea1d,_0x1424df,_0x3cf469,messageTypes[_0x3c834(0x1c6)],_0x47a2c2[_0x3c834(0x231)],_0x47a2c2[_0x3c834(0x1e9)],_0x47a2c2[_0x3c834(0x1a9)]),process[_0x3c834(0x1f0)](0x1));_0x47a2c2[_0x3c834(0x194)](sendInstrumentationEvent,_0xeaea1d,_0x47a2c2[_0x3c834(0x231)],messageTypes[_0x3c834(0x1d2)],null,null,_0xeaea1d);const _0x40fd2b=JSON['parse'](fs[_0x3c834(0x268)](_0x47a2c2[_0x3c834(0x19e)](getCredentialsPath)));global_registry[_0x3c834(0x1b6)]=_0x40fd2b[_0x3c834(0x24f)][_0x3c834(0x1ef)],global_registry[_0x3c834(0x27b)]=_0x40fd2b[_0x3c834(0x24f)][_0x3c834(0x1a3)];const _0x35e834=WS_ENDPOINT[_0x3c834(0x1f7)](_0x47a2c2[_0x3c834(0x1d6)],_0x40fd2b[_0x3c834(0x24f)][_0x3c834(0x1ef)])[_0x3c834(0x1f7)](_0x47a2c2[_0x3c834(0x22c)],_0x40fd2b[_0x3c834(0x24f)]['password']),_0x2aa260={};_0x2aa260[_0x3c834(0x1cd)]=ws,_0x2aa260[_0x3c834(0x250)]=0x36ee80,_0x1424df=new ReconnectingWebSocket(_0x35e834,[],_0x2aa260),global_registry[_0x3c834(0x1c0)]=_0x47a2c2[_0x3c834(0x1e0)](getAuthHeader,global_registry[_0x3c834(0x1b6)],global_registry['bstackAccesskey']),await _0x47a2c2['agpUz'](inputValidation,_0xeaea1d,_0x1424df),logger[_0x3c834(0x212)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0x3c834(0x1cb)]+_0x3c834(0x1c2)+global_registry['clusterRegion']);let _0x2105f5=await _0x47a2c2[_0x3c834(0x23e)](getCloudProviderObjectWithOutInit,global_registry[_0x3c834(0x1cb)],global_registry['clusterName'],_0x47a2c2[_0x3c834(0x23b)],_0x1424df,webSocketUtils,_0xeaea1d);const _0x5a91cd=await _0x2105f5[_0x3c834(0x1cf)]();_0x47a2c2[_0x3c834(0x1e0)](printResponse,_0x47a2c2['ApoiO'],_0x5a91cd),_0x2105f5=await _0x2105f5[_0x3c834(0x22f)]();let _0x4a6d6d=![];try{_0x4a6d6d=await _0x2105f5[_0x3c834(0x247)]();}catch(_0x426ac1){const _0x4b45df=_0x47a2c2[_0x3c834(0x19a)][_0x3c834(0x25a)]('|');let _0x9ca3d2=0x0;while(!![]){switch(_0x4b45df[_0x9ca3d2++]){case'0':_0x3cf469='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry['clusterName']+_0x3c834(0x222)+global_registry[_0x3c834(0x228)]+_0x3c834(0x26e)+_0x426ac1;continue;case'1':_0x3cf469+='\x0a'+JSON[_0x3c834(0x206)](_0x426ac1[_0x3c834(0x254)]);continue;case'2':await _0x47a2c2['JhCSD'](reportToGalactusAndSendToEDS,_0xeaea1d,_0x1424df,_0x3cf469,messageTypes[_0x3c834(0x1c6)],_0x47a2c2['PotqK'],_0x3c834(0x1fb)+global_registry[_0x3c834(0x1cb)],_0x47a2c2[_0x3c834(0x1a9)]);continue;case'3':logger[_0x3c834(0x28d)](_0x3cf469);continue;case'4':_0x4a6d6d=null;continue;}break;}}_0x4a6d6d&&logger[_0x3c834(0x212)](_0x3c834(0x1d5)+global_registry['clusterName']+_0x3c834(0x24c));const _0x10ac2c=await _0x2105f5[_0x3c834(0x1bd)]();_0x47a2c2[_0x3c834(0x1e0)](printResponse,_0x47a2c2[_0x3c834(0x23d)],_0x10ac2c);const _0x5f0212=await _0x47a2c2[_0x3c834(0x1bb)](curlRequest);_0x47a2c2[_0x3c834(0x1b4)](printResponse,_0x47a2c2[_0x3c834(0x27e)],_0x5f0212);const _0x3e2c36=await _0x47a2c2['wQFWz'](isTlsSupported,_0x47a2c2[_0x3c834(0x1bf)]);_0x47a2c2[_0x3c834(0x1e0)](printResponse,_0x47a2c2[_0x3c834(0x1e4)],_0x3e2c36);const _0x5412ce={};_0x5412ce[_0x3c834(0x20d)]=_0x47a2c2[_0x3c834(0x286)],_0x5412ce[_0x3c834(0x20e)]=_0x5a91cd;const _0xb56bba={};_0xb56bba[_0x3c834(0x20d)]=_0x47a2c2[_0x3c834(0x1f2)],_0xb56bba['response']=_0x10ac2c;const _0x15465a={};_0x15465a[_0x3c834(0x20d)]=_0x47a2c2['ZkwcC'],_0x15465a['response']=_0x5f0212;const _0x49d94c={};_0x49d94c[_0x3c834(0x20d)]=_0x47a2c2[_0x3c834(0x248)],_0x49d94c[_0x3c834(0x20e)]=_0x3e2c36;const _0x5a2604=[_0x5412ce,_0xb56bba,_0x15465a,_0x49d94c],_0x4e3dad=await _0x47a2c2[_0x3c834(0x1e2)](generateReport,_0x5a2604,_0x4a6d6d),_0x50e6fc=new Date(),_0x916dfe=_0x50e6fc[_0x3c834(0x218)]()+'_'+_0x47a2c2['TSxZY'](_0x50e6fc[_0x3c834(0x211)](),0x1)+'_'+_0x50e6fc['getUTCDate']()+'_'+_0x50e6fc[_0x3c834(0x28e)]()+'_'+_0x50e6fc[_0x3c834(0x1c1)](),_0x525d82=_0x3c834(0x1e5)+_0x916dfe+_0x3c834(0x230);fs['writeFileSync'](_0x525d82,_0x4e3dad,_0x47a2c2[_0x3c834(0x223)]),logger[_0x3c834(0x212)](_0x3c834(0x1c3)+_0x525d82),process['exit'](0x0);}catch(_0xd36207){let _0x38ff4a=_0x3c834(0x1d3)+_0xd36207+'\x20';logger[_0x3c834(0x28d)](_0x38ff4a),_0x38ff4a+='\x0a'+JSON[_0x3c834(0x206)](_0xd36207[_0x3c834(0x254)]),logger[_0x3c834(0x18e)](_0x3c834(0x1e3)+_0xd36207[_0x3c834(0x254)]);if(_0x1424df){const _0x3939cf={};_0x3939cf[_0x3c834(0x1ec)]=WS_EVENTS[_0x3c834(0x1ae)],_0x3939cf['message']=_0x38ff4a,webSocketUtils[_0x3c834(0x1b8)](_0x1424df,_0x3939cf,_0x47a2c2[_0x3c834(0x1a9)],!![]);}await webSocketUtils[_0x3c834(0x26f)](0x7d0);const _0x134ecb={};_0x134ecb[_0x3c834(0x28d)]=_0x38ff4a,await _0x47a2c2[_0x3c834(0x214)](sendInstrumentationEvent,_0xeaea1d,_0x47a2c2[_0x3c834(0x231)],messageTypes[_0x3c834(0x1c6)],_0x47a2c2[_0x3c834(0x1db)],_0x134ecb,_0xeaea1d),process['exit'](0x1);}};
|
|
1
|
+
const a17_0x2c4660=a17_0xd8bc;(function(_0x25fb6e,_0x9f5fc){const _0x516055=a17_0xd8bc,_0x3a5031=_0x25fb6e();while(!![]){try{const _0x4fe117=parseInt(_0x516055(0x1af))/0x1*(-parseInt(_0x516055(0x1c3))/0x2)+parseInt(_0x516055(0x27d))/0x3+parseInt(_0x516055(0x1d7))/0x4*(-parseInt(_0x516055(0x235))/0x5)+parseInt(_0x516055(0x1d9))/0x6+-parseInt(_0x516055(0x1b3))/0x7*(parseInt(_0x516055(0x252))/0x8)+-parseInt(_0x516055(0x26b))/0x9+-parseInt(_0x516055(0x272))/0xa*(-parseInt(_0x516055(0x255))/0xb);if(_0x4fe117===_0x9f5fc)break;else _0x3a5031['push'](_0x3a5031['shift']());}catch(_0x510cf9){_0x3a5031['push'](_0x3a5031['shift']());}}}(a17_0x2963,0x6e508));const fs=require('fs'),ws=require('ws'),got=require(a17_0x2c4660(0x21e)),{v4:uuidv4}=require(a17_0x2c4660(0x201)),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x2c4660(0x222)),{logger}=require(a17_0x2c4660(0x1de)),{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_0x2c4660(0x294)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x2c4660(0x208)),{sendInstrumentationEvent}=require(a17_0x2c4660(0x1f1));function a17_0x2963(){const _0x100b6b=['../../utils/instrumentationUtils','Pre-check\x20running\x20for\x20Cloud\x20-\x20','requestId','isTls1_2_SUPPORTED','oTJCk','is\x20already\x20present','sendEventToBackend','code','.txt','xtXxZ','unable\x20to\x20verify\x20if\x20cluster\x20`','init','uQOhj','nTPdm','header','===\x20Precheck\x20Report\x20-\x20','uuid','CLOUD_PROVIDER','JUXtt','utf-8','XYduq','frXWb','OhkCq','../../utils/webSocketUtils','\x20data\x20:\x20','bstackUsername','cloud-provider','Failed\x20in\x20pre-check!\x20Error:\x20','error','pre-check-failed','xSrxg','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','wEyLk','QziPI','isClusterPresent','SSL\x20Configured','Missing\x20required\x20arguments:\x20','Cluster\x20','\x20\x20Stack:\x20','aDajO','https://','INFO','hbtGS','MkhCZ','TLSv1_2_client_method','got','ERROR','CjwTR','Ybnea','../../utils/utilityMethods','length','\x20region\x20-\x20','SdnEi','checkAccess','Tool\x20Installed','vSrfh','stack','accessResp','yjfKY','find','ettxl','\x20error\x20:\x20','User\x20Access','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','gVIPW','GliLs','OEgbK','oWgIO','57055OYmIlZ','GaHGc','Cluster\x20details\x0a-----------------------\x0a','cscOI','credential-not-found','KJndU','OBLGx','DqDjX','BAVqM','FKERd','3|2|0|4|1','name','kqBjR','\x20\x20Message:\x20','method','type','vfTod','handler','OWSCP','grid-profile','ghuKF','body','vZxRR','description','.\x20Please\x20provide\x20all\x20required\x20arguments.','parse','pre-check-grid-profile-empty','AJAkx','lsIoZ','864488NqhzWm','info','NhHxr','198YYvFMF','HeOXx','NCNCL','XCTaL','GET','fwUsk','mrUff','RupEP','bnBUh','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','cloudProvider','string','command','yJRVW','argv','nyNSJ','will\x20be\x20created','eTaGO','debug','options','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','BoyDV','8023275FmJqmk','kqiNo','LTstx','Invalid\x20input.\x20grid\x20profiles:\x20','ccBtr','push','pre_check','671320vMfvDI','dicDF','readFileSync','data','VzPxI','Error\x20Details:\x0a','Report\x20saved\x20in\x20','ZidHS','eCMZL','message','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','1194684KvOVGe','ARxYj','Otqrd','throwHttpErrors','AjwUa','epilogue','region','CROCg','gPFvp','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','wLhQc','existsSync','eNKSt','Message:\x20','toLowerCase','FBRES','CYNXm','snNuG','QKKVn','oYZjc','N/A','stringify','eEDDL','../../config/constants','OoBcl','rWrRb','znCxk','response','usage','Pbnkk','bstackAccesskey','ObQzH','pVjzK','ktqKa','getUTCMonth','EAMRp','log/report_','cluster-name','FGCsT','includes','split','getUTCMinutes','isTrialGridAccessible','cluster-check-failed-','Grid\x20profile\x20fetched\x20for\x20pre-check','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','ughbf','IObGA','WebSocket','isCliToolInstalled','authHeader','43504JDGZOq','ksUmb','WZdiN','XGPav','14XpWQQW','Browserstack','status','pre-check-grid-called','SWvXZ','aHHyU','wAyxE','gridProfile','Cluster\x20`','clusterName','vIRSJ','KHYpe','tUoMn','help','`\x20is\x20present\x20in\x20region\x20`','GCZUt','38zxpyRQ','DKwjk','pre-check','delay','vvbxa','join','\x20\x20Code:\x20','clusterRegion','Status:\x20','getUTCDate','exit','cloud-provider-not-supported','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','mVLPi','qVCJG',']\x20status\x20:\x20','fOEpD','username','pSTaX','CaAld','12SnkwLV','MuTra','4881900IGmIqf','GwZLL','grid\x20profile\x20flow\x20','izZMK','Success','../../config/logger','SMLGl','RKHIM','OHEYm','grid','dummy-grid','`\x20already\x20exists','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','LOG','error\x20stack\x20:\x20','eYbqu','replace','LcIlK','Setting\x20cloud\x20provider\x20as\x20','wUasW','writeFileSync','MzgrV','builder','desc'];a17_0x2963=function(){return _0x100b6b;};return a17_0x2963();}exports[a17_0x2c4660(0x261)]=a17_0x2c4660(0x1e2),exports[a17_0x2c4660(0x1f0)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a17_0x2c4660(0x1ef)]=function(_0x400fba){const _0x10be64=a17_0x2c4660,_0x328a30={};_0x328a30[_0x10be64(0x25d)]=_0x10be64(0x25e),_0x328a30[_0x10be64(0x1e0)]=_0x10be64(0x260),_0x328a30['MzgrV']='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x328a30[_0x10be64(0x1bf)]=_0x10be64(0x210),_0x328a30[_0x10be64(0x284)]=_0x10be64(0x27c),_0x328a30[_0x10be64(0x290)]='help';const _0x291ab8=_0x328a30,_0x13cbc1={};_0x13cbc1[_0x10be64(0x24c)]=_0x291ab8['bnBUh'],_0x13cbc1[_0x10be64(0x244)]=_0x291ab8['RKHIM'];const _0xb5771b={};_0xb5771b[_0x10be64(0x24c)]=_0x291ab8[_0x10be64(0x1ee)],_0xb5771b[_0x10be64(0x244)]=_0x291ab8['RKHIM'];const _0x593b17={};_0x593b17[_0x10be64(0x24c)]=_0x291ab8[_0x10be64(0x1bf)],_0x593b17[_0x10be64(0x244)]=_0x291ab8['RKHIM'];const _0x5e124e={};_0x5e124e['description']=_0x291ab8[_0x10be64(0x284)],_0x5e124e[_0x10be64(0x244)]=_0x291ab8[_0x10be64(0x1e0)];const _0x2a96d7={};return _0x2a96d7[_0x10be64(0x2a2)]=_0x13cbc1,_0x2a96d7[_0x10be64(0x20b)]=_0xb5771b,_0x2a96d7[_0x10be64(0x283)]=_0x593b17,_0x2a96d7['grid-profile']=_0x5e124e,_0x400fba[_0x10be64(0x299)](HELP_HEADER_MESSAGE[_0x10be64(0x271)])[_0x10be64(0x282)](HELP_FOOTER_MESSAGE)[_0x10be64(0x268)](_0x2a96d7)['help'](_0x291ab8[_0x10be64(0x290)])['argv'];};async function inputValidation(_0x2c049b,_0x531e81){const _0x377e57=a17_0x2c4660,_0xe1e416={'HeOXx':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','AjwUa':_0x377e57(0x260),'BoyDV':_0x377e57(0x1cf),'znCxk':_0x377e57(0x210),'rIfSz':_0x377e57(0x27c),'uQOhj':_0x377e57(0x1c0),'SMLGl':_0x377e57(0x269),'OHEYm':_0x377e57(0x283),'NCNCL':_0x377e57(0x277),'FGCsT':_0x377e57(0x291),'nTPdm':_0x377e57(0x20b),'SdnEi':function(_0x4745f9,_0x378a2f){return _0x4745f9+_0x378a2f;},'OBLGx':'Success','RupEP':'Failure','FMQAi':function(_0x497cf5,_0x4185ac){return _0x497cf5||_0x4185ac;},'GCZUt':_0x377e57(0x2a2),'AJAkx':_0x377e57(0x20d),'GspYg':_0x377e57(0x1f6),'IRsFI':_0x377e57(0x265),'dicDF':function(_0x3cb6d9,_0x47e76f){return _0x3cb6d9!==_0x47e76f;},'wUasW':_0x377e57(0x23c),'vZxRR':_0x377e57(0x23e),'qVCJG':'REeOu','pVjzK':function(_0x311f65,_0x3a9425){return _0x311f65===_0x3a9425;},'vfTod':'FgDuj','vSrfh':_0x377e57(0x203),'SWvXZ':'sMdkZ','vIRSJ':_0x377e57(0x258),'Ybnea':_0x377e57(0x29e),'NhHxr':function(_0x616190,_0xb6d4f9){return _0x616190>_0xb6d4f9;},'EAMRp':_0x377e57(0x23d),'eCMZL':function(_0x9b21f6,_0x4bd435,_0x2a7e38,_0x3fe0da,_0x9c0f68,_0x1366c3,_0x4dbce7,_0x26600a){return _0x9b21f6(_0x4bd435,_0x2a7e38,_0x3fe0da,_0x9c0f68,_0x1366c3,_0x4dbce7,_0x26600a);},'fOEpD':_0x377e57(0x1b6),'ITOOK':'pre-check-cluster-args-not-passed','BxUZx':_0x377e57(0x29c),'RqxUn':_0x377e57(0x1dc),'wAyxE':_0x377e57(0x230),'GaHGc':function(_0x322805,_0x836dd2,_0xd2a27,_0x3d372c,_0x108ab4,_0x1f25d0,_0x28d2a7,_0x317936){return _0x322805(_0x836dd2,_0xd2a27,_0x3d372c,_0x108ab4,_0x1f25d0,_0x28d2a7,_0x317936);},'CaAld':_0x377e57(0x1ce),'XkHWH':function(_0x1c959,_0x4413a8){return _0x1c959===_0x4413a8;},'MkhCZ':_0x377e57(0x1fa),'aHHyU':'nLDze','GwZLL':_0x377e57(0x26c),'Inzoi':_0x377e57(0x259),'XzUOp':function(_0x3a487b,_0x3e6437,_0x5cdfd8){return _0x3a487b(_0x3e6437,_0x5cdfd8);},'frXWb':function(_0x20c3eb,_0x278fdf,_0x10d05a,_0x37e7d6,_0x222d57,_0x47c4d4){return _0x20c3eb(_0x278fdf,_0x10d05a,_0x37e7d6,_0x222d57,_0x47c4d4);},'eYbqu':_0x377e57(0x1c5),'LTstx':_0x377e57(0x248),'fwUsk':function(_0x3aecae,_0x3f5295){return _0x3aecae===_0x3f5295;},'Otqrd':function(_0x16ee66,_0x519e46){return _0x16ee66!==_0x519e46;},'ARxYj':_0x377e57(0x1aa),'GliLs':function(_0x27f79c,_0x3ab60d){return _0x27f79c(_0x3ab60d);},'Pbnkk':function(_0x3831ad,_0x5201d3){return _0x3831ad!==_0x5201d3;},'XGPav':'zoRwj','pSTaX':_0x377e57(0x24f),'nyNSJ':function(_0x1e5253,_0x1ba9b1){return _0x1e5253!==_0x1ba9b1;},'snNuG':'caOfW','DKwjk':_0x377e57(0x205),'OhkCq':_0x377e57(0x1a8),'eNKSt':_0x377e57(0x28d),'ruDSY':'qpcyd','wLhQc':_0x377e57(0x266),'ghuKF':_0x377e57(0x22d),'OEgbK':function(_0x5e54de,_0x23a6c8,_0x164f64,_0x101d67,_0x4bd06b,_0x186d41,_0x232d79,_0x2c1baf){return _0x5e54de(_0x23a6c8,_0x164f64,_0x101d67,_0x4bd06b,_0x186d41,_0x232d79,_0x2c1baf);}};let _0x17529b;try{if(_0xe1e416['dicDF'](_0xe1e416[_0x377e57(0x1ec)],_0xe1e416['wUasW'])){const _0x5f271a={};_0x5f271a[_0x377e57(0x24c)]=_0xe1e416[_0x377e57(0x256)],_0x5f271a[_0x377e57(0x244)]=_0xe1e416['AjwUa'];const _0x30fa05={};_0x30fa05['description']=_0xe1e416[_0x377e57(0x26a)],_0x30fa05[_0x377e57(0x244)]=_0xe1e416[_0x377e57(0x281)];const _0x31dced={};_0x31dced[_0x377e57(0x24c)]=_0xe1e416[_0x377e57(0x297)],_0x31dced[_0x377e57(0x244)]=_0xe1e416['AjwUa'];const _0x459b50={};_0x459b50[_0x377e57(0x24c)]=_0xe1e416['rIfSz'],_0x459b50[_0x377e57(0x244)]=_0xe1e416[_0x377e57(0x281)];const _0x59c982={};return _0x59c982[_0x377e57(0x2a2)]=_0x5f271a,_0x59c982[_0x377e57(0x20b)]=_0x30fa05,_0x59c982[_0x377e57(0x283)]=_0x31dced,_0x59c982[_0x377e57(0x248)]=_0x459b50,_0x6c7c91['usage'](_0x2d8a5e['pre_check'])[_0x377e57(0x282)](_0xd5292f)[_0x377e57(0x268)](_0x59c982)[_0x377e57(0x1c0)](_0xe1e416[_0x377e57(0x1fd)])[_0x377e57(0x263)];}else{if(_0x2c049b[_0x377e57(0x1bc)]||_0x2c049b[_0x377e57(0x25f)]||_0x2c049b[_0x377e57(0x283)]){if(_0xe1e416['dicDF'](_0xe1e416[_0x377e57(0x24b)],_0xe1e416[_0x377e57(0x1d1)])){const _0x303b92=[];!_0x2c049b[_0x377e57(0x1bc)]&&(_0xe1e416[_0x377e57(0x29d)](_0xe1e416['vfTod'],_0xe1e416[_0x377e57(0x245)])?_0x303b92[_0x377e57(0x270)](_0xe1e416[_0x377e57(0x1c2)]):(_0x3a5367[_0x377e57(0x20d)](_0xe1e416[_0x377e57(0x1df)]),_0x4bef28[_0x377e57(0x1cd)](0x1)));;!_0x2c049b[_0x377e57(0x25f)]&&(_0xe1e416[_0x377e57(0x273)](_0xe1e416[_0x377e57(0x228)],_0xe1e416[_0x377e57(0x1b7)])?_0x303b92['push'](_0xe1e416[_0x377e57(0x1fe)]):_0x1e201e[_0x377e57(0x270)](_0xe1e416[_0x377e57(0x1e1)]));;!_0x2c049b[_0x377e57(0x283)]&&(_0xe1e416[_0x377e57(0x273)](_0xe1e416[_0x377e57(0x1bd)],_0xe1e416[_0x377e57(0x221)])?_0x303b92[_0x377e57(0x270)](_0xe1e416[_0x377e57(0x1e1)]):(_0x84e6e7+=_0xe1e416['NCNCL'],_0x12901a+=_0x377e57(0x242)+(_0x3eb15c[_0x377e57(0x27b)]||_0xe1e416[_0x377e57(0x2a3)])+'\x0a',_0x16c214+=_0x377e57(0x1c9)+(_0x2e2f3a[_0x377e57(0x1f8)]||_0xe1e416[_0x377e57(0x2a3)])+'\x0a',_0x194531+=_0x377e57(0x217)+(_0x275f3b['stack']||_0xe1e416[_0x377e57(0x2a3)])+'\x0a'));;_0xe1e416[_0x377e57(0x254)](_0x303b92[_0x377e57(0x223)],0x0)&&(_0xe1e416[_0x377e57(0x29d)](_0xe1e416[_0x377e57(0x2a0)],_0xe1e416[_0x377e57(0x2a0)])?(_0x17529b=_0x377e57(0x215)+_0x303b92[_0x377e57(0x1c8)](',\x20')+_0x377e57(0x24d),await _0xe1e416[_0x377e57(0x27a)](reportToGalactusAndSendToEDS,_0x2c049b,_0x531e81,_0x17529b,messageTypes[_0x377e57(0x21f)],_0xe1e416[_0x377e57(0x1d3)],_0xe1e416['ITOOK'],_0xe1e416[_0x377e57(0x250)]),logger[_0x377e57(0x20d)](_0x17529b),process[_0x377e57(0x1cd)](0x1)):_0x14c472[_0x377e57(0x1cd)](0x1)),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x377e57(0x1a3)](_0x2c049b[_0x377e57(0x25f)][_0x377e57(0x28b)]())&&(_0xe1e416[_0x377e57(0x29d)](_0xe1e416['BxUZx'],_0xe1e416['RqxUn'])?(_0x2a06e4[_0x377e57(0x253)]('['+_0x3b49d7+_0x377e57(0x1d2)+_0x1c3e1a[_0x377e57(0x1b5)]+_0x377e57(0x209)+_0x178acd[_0x377e57(0x275)]+_0x377e57(0x22e)+_0xd92b3d['error']),_0x13c07b[_0x377e57(0x20d)]&&_0x21da15[_0x377e57(0x20d)]('error\x20stack\x20:\x20'+_0x37cfab['error'][_0x377e57(0x229)])):(_0x17529b=_0xe1e416[_0x377e57(0x1b9)],await _0xe1e416[_0x377e57(0x236)](reportToGalactusAndSendToEDS,_0x2c049b,_0x531e81,_0x17529b,messageTypes[_0x377e57(0x21f)],_0xe1e416[_0x377e57(0x1d3)],_0xe1e416[_0x377e57(0x1d6)],_0xe1e416[_0x377e57(0x250)]),logger[_0x377e57(0x20d)](_0x17529b),!_0x2c049b[_0x377e57(0x25f)]&&(_0xe1e416['XkHWH'](_0xe1e416['MkhCZ'],_0xe1e416[_0x377e57(0x21c)])?(logger[_0x377e57(0x253)](_0x377e57(0x1eb)+DEFAULT_CLUSTER_DETAILS[_0x377e57(0x202)]+'\x20'),_0x2c049b[_0x377e57(0x25f)]=DEFAULT_CLUSTER_DETAILS[_0x377e57(0x202)]):_0x4e9480[_0x377e57(0x270)](_0xe1e416['nTPdm'])))),global_registry[_0x377e57(0x1bc)]=_0x2c049b['clusterName'],global_registry[_0x377e57(0x25f)]=_0x2c049b[_0x377e57(0x25f)],global_registry[_0x377e57(0x1ca)]=_0x2c049b[_0x377e57(0x283)];}else{const {header:_0x4df2ae,response:_0x5a0d23}=_0xc34855,{status:_0x54227d,data:_0x3976ab,error:_0x46102c}=_0x5a0d23;_0x4121ad+=_0x4df2ae+'\x20#'+_0xe1e416[_0x377e57(0x225)](_0x23ad98,0x1)+'\x0a',_0x38c488+=_0x377e57(0x1cb)+(_0x54227d?_0xe1e416[_0x377e57(0x23b)]:_0xe1e416[_0x377e57(0x25c)])+'\x0a',_0x4cd13a+=_0x377e57(0x28a)+_0xe1e416['FMQAi'](_0x3976ab,_0xe1e416['FGCsT'])+'\x0a',_0x46102c&&(_0x129b32+=_0xe1e416[_0x377e57(0x257)],_0x60b0f0+=_0x377e57(0x242)+(_0x46102c[_0x377e57(0x27b)]||_0xe1e416['FGCsT'])+'\x0a',_0x941c4c+='\x20\x20Code:\x20'+(_0x46102c[_0x377e57(0x1f8)]||_0xe1e416[_0x377e57(0x2a3)])+'\x0a',_0x32c702+=_0x377e57(0x217)+(_0x46102c['stack']||_0xe1e416[_0x377e57(0x2a3)])+'\x0a'),_0x166e1f+='\x0a\x0a';}}else{if(_0x2c049b[_0x377e57(0x1ba)]){if(_0xe1e416[_0x377e57(0x273)](_0xe1e416[_0x377e57(0x1b8)],_0xe1e416[_0x377e57(0x1da)])){global_registry[_0x377e57(0x1ba)]=_0x2c049b[_0x377e57(0x1ba)],logger[_0x377e57(0x267)](_0x377e57(0x1db)+_0x2c049b[_0x377e57(0x1ba)]);const _0x24c20b=_0x377e57(0x219)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x408e09={};_0x408e09[_0x377e57(0x243)]=_0xe1e416['Inzoi'],_0x408e09['headers']=global_registry[_0x377e57(0x1ae)],_0x408e09[_0x377e57(0x280)]=![];const _0x57b639=_0x408e09,_0x2c9033=await _0xe1e416['XzUOp'](got,_0x24c20b,_0x57b639),_0x53fc85=await _0xe1e416[_0x377e57(0x206)](responseValidation,_0x2c9033,_0xe1e416[_0x377e57(0x1e8)],_0xe1e416[_0x377e57(0x26d)],_0x2c049b,_0x531e81);let _0x1d3ec3={};if(_0xe1e416[_0x377e57(0x25a)](_0x53fc85,0xc8)){if(_0xe1e416[_0x377e57(0x27f)](_0xe1e416[_0x377e57(0x27e)],_0xe1e416['ARxYj']))_0x457185[_0x377e57(0x270)](_0xe1e416[_0x377e57(0x1c2)]);else{const _0x4ccc84=JSON[_0x377e57(0x24e)](_0x2c9033[_0x377e57(0x24a)]),_0x1286aa=_0x4ccc84[_0x377e57(0x22c)](_0x56403c=>_0x56403c[_0x377e57(0x240)]===_0x2c049b[_0x377e57(0x1ba)])||null;_0xe1e416[_0x377e57(0x232)](isUndefined,_0x1286aa)?_0xe1e416[_0x377e57(0x29a)](_0xe1e416[_0x377e57(0x1b2)],_0xe1e416[_0x377e57(0x1b2)])?_0x326538=_0x5714d9:(_0x17529b=_0x377e57(0x26e)+_0x2c049b[_0x377e57(0x1ba)]+_0x377e57(0x286),await _0xe1e416[_0x377e57(0x27a)](reportToGalactusAndSendToEDS,_0x2c049b,_0x531e81,_0x17529b,messageTypes[_0x377e57(0x21f)],_0xe1e416['fOEpD'],_0xe1e416[_0x377e57(0x1d5)],_0xe1e416['AJAkx']),logger['error'](_0x17529b),process[_0x377e57(0x1cd)](0x1)):_0xe1e416[_0x377e57(0x264)](_0xe1e416[_0x377e57(0x28e)],_0xe1e416['snNuG'])?_0x2156dd[_0x377e57(0x253)](_0x377e57(0x1bb)+_0x367845[_0x377e57(0x1bc)]+'`\x20already\x20exists'):_0x1d3ec3=_0x1286aa;}}else _0xe1e416[_0x377e57(0x25a)](_0xe1e416['DKwjk'],_0xe1e416[_0x377e57(0x1c4)])?process['exit'](0x1):_0x328b45[_0x377e57(0x20d)]('error\x20stack\x20:\x20'+_0x5891f0[_0x377e57(0x20d)]['stack']);const _0x39a076={};_0x39a076['type']=WS_EVENTS[_0x377e57(0x1e6)],_0x39a076['message']=_0xe1e416[_0x377e57(0x207)],webSocketUtils[_0x377e57(0x1f7)](_0x531e81,_0x39a076),global_registry['cloudProvider']=_0x1d3ec3[_0x377e57(0x25f)],global_registry[_0x377e57(0x1ca)]=_0x1d3ec3[_0x377e57(0x283)],global_registry[_0x377e57(0x1bc)]=_0x1d3ec3['clusterName'];}else _0x460778[_0x377e57(0x253)]('Setting\x20cloud\x20provider\x20as\x20'+_0x558698[_0x377e57(0x202)]+'\x20'),_0x4c1d5c[_0x377e57(0x25f)]=_0x2b5e86[_0x377e57(0x202)];}else{if(_0xe1e416['dicDF'](_0xe1e416[_0x377e57(0x289)],_0xe1e416['ruDSY']))logger[_0x377e57(0x20d)](_0xe1e416['SMLGl']),process['exit'](0x1);else{const _0x5a18f5={};_0x5a18f5[_0x377e57(0x244)]=_0xcb520e['LOG'],_0x5a18f5[_0x377e57(0x27b)]=_0x19bb1d,_0x2a088c[_0x377e57(0x1f7)](_0x4819e0,_0x5a18f5,_0xe1e416[_0x377e57(0x250)],!![]);}}}}}catch(_0xe657d6){_0xe1e416[_0x377e57(0x25a)](_0xe1e416[_0x377e57(0x287)],_0xe1e416[_0x377e57(0x249)])?_0x167ac2+=_0x377e57(0x216)+_0x4eb144['clusterName']+'\x20'+(_0x3a889d?_0xe1e416['GspYg']:_0xe1e416['IRsFI'])+'\x0a\x0a':(_0x17529b='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0xe657d6+':\x20'+_0xe657d6[_0x377e57(0x229)],logger['error'](_0x17529b),await _0xe1e416[_0x377e57(0x233)](reportToGalactusAndSendToEDS,_0x2c049b,_0x531e81,_0x17529b,messageTypes[_0x377e57(0x21f)],_0xe1e416[_0x377e57(0x1d3)],_0xe1e416[_0x377e57(0x1d6)],_0xe1e416[_0x377e57(0x250)]),process['exit'](0x1));}}function printResponse(_0x32ed47,_0xd42ae){const _0x49667c=a17_0x2c4660,_0x47f37c={};_0x47f37c['xSrxg']=function(_0x5d8b14,_0x48c190){return _0x5d8b14===_0x48c190;},_0x47f37c['bFgDo']='DALLY',_0x47f37c[_0x49667c(0x23a)]=_0x49667c(0x262);const _0x5e2058=_0x47f37c;logger[_0x49667c(0x253)]('['+_0x32ed47+']\x20status\x20:\x20'+_0xd42ae[_0x49667c(0x1b5)]+'\x20data\x20:\x20'+_0xd42ae[_0x49667c(0x275)]+_0x49667c(0x22e)+_0xd42ae['error']),_0xd42ae[_0x49667c(0x20d)]&&(_0x5e2058[_0x49667c(0x20f)](_0x5e2058['bFgDo'],_0x5e2058[_0x49667c(0x23a)])?_0x1bcfa8+=_0x49667c(0x216)+_0x7c99bd['clusterName']+_0x49667c(0x1a9):logger[_0x49667c(0x20d)](_0x49667c(0x1e7)+_0xd42ae[_0x49667c(0x20d)]['stack']));}async function generateReport(_0x4ac187,_0x90ce20){const _0x374607=a17_0x2c4660,_0x3d7ab3={'IObGA':function(_0x3ec3b4,_0x532876){return _0x3ec3b4+_0x532876;},'gPFvp':_0x374607(0x1dd),'aDajO':'Failure','JfxLM':function(_0x24bd1a,_0x108495){return _0x24bd1a||_0x108495;},'ksUmb':_0x374607(0x291),'FBRES':_0x374607(0x277),'LcIlK':_0x374607(0x237),'MuTra':function(_0x4ca929,_0x48554e){return _0x4ca929!=_0x48554e;},'lsIoZ':_0x374607(0x1f6),'sEcrQ':'will\x20be\x20created','jsnFO':function(_0x5db020){return _0x5db020();}};let _0x118314=_0x374607(0x200)+global_registry[_0x374607(0x25f)]+'\x20===\x0a\x0a';return _0x4ac187['forEach']((_0x27ab37,_0x324a42)=>{const _0x13fac8=_0x374607,{header:_0x1032c2,response:_0x50ee7d}=_0x27ab37,{status:_0x741ca3,data:_0x5376af,error:_0x5c030a}=_0x50ee7d;_0x118314+=_0x1032c2+'\x20#'+_0x3d7ab3[_0x13fac8(0x1ab)](_0x324a42,0x1)+'\x0a',_0x118314+=_0x13fac8(0x1cb)+(_0x741ca3?_0x3d7ab3[_0x13fac8(0x285)]:_0x3d7ab3[_0x13fac8(0x218)])+'\x0a',_0x118314+=_0x13fac8(0x28a)+_0x3d7ab3['JfxLM'](_0x5376af,_0x3d7ab3['ksUmb'])+'\x0a',_0x5c030a&&(_0x118314+=_0x3d7ab3[_0x13fac8(0x28c)],_0x118314+=_0x13fac8(0x242)+(_0x5c030a[_0x13fac8(0x27b)]||_0x3d7ab3[_0x13fac8(0x1b0)])+'\x0a',_0x118314+=_0x13fac8(0x1c9)+(_0x5c030a['code']||_0x3d7ab3[_0x13fac8(0x1b0)])+'\x0a',_0x118314+=_0x13fac8(0x217)+(_0x5c030a[_0x13fac8(0x229)]||_0x3d7ab3[_0x13fac8(0x1b0)])+'\x0a'),_0x118314+='\x0a\x0a';}),_0x118314+=_0x3d7ab3[_0x374607(0x1ea)],_0x3d7ab3[_0x374607(0x1d8)](_0x90ce20,null)?_0x118314+=_0x374607(0x216)+global_registry['clusterName']+'\x20'+(_0x90ce20?_0x3d7ab3[_0x374607(0x251)]:_0x3d7ab3['sEcrQ'])+'\x0a\x0a':_0x118314+=_0x374607(0x216)+global_registry[_0x374607(0x1bc)]+_0x374607(0x1a9),_0x118314+=_0x3d7ab3['jsnFO'](getSystemMetaData),_0x118314;};function a17_0xd8bc(_0x200987,_0x2bda18){const _0x296393=a17_0x2963();return a17_0xd8bc=function(_0xd8bc15,_0x17ed41){_0xd8bc15=_0xd8bc15-0x1a3;let _0x510fe6=_0x296393[_0xd8bc15];return _0x510fe6;},a17_0xd8bc(_0x200987,_0x2bda18);}exports[a17_0x2c4660(0x246)]=async function(_0xc9123a){const _0xa759a=a17_0x2c4660,_0x26e6b6={'OWSCP':function(_0x56e5cf){return _0x56e5cf();},'QKKVn':_0xa759a(0x1e5),'CjwTR':function(_0x285e9f,_0x151869,_0x37ec0b,_0x18e526,_0x21d290,_0x31f155,_0x4ce0a2,_0x2ff5bf){return _0x285e9f(_0x151869,_0x37ec0b,_0x18e526,_0x21d290,_0x31f155,_0x4ce0a2,_0x2ff5bf);},'gVIPW':_0xa759a(0x1b6),'eEDDL':_0xa759a(0x239),'mrUff':_0xa759a(0x20d),'oWgIO':function(_0x11f3df,_0x10e1b6,_0x1e4ac7,_0x414c11,_0x592f29,_0x1e6bba,_0x3bfb74){return _0x11f3df(_0x10e1b6,_0x1e4ac7,_0x414c11,_0x592f29,_0x1e6bba,_0x3bfb74);},'JSFio':function(_0x11ef21){return _0x11ef21();},'WZdiN':'<UsernamePlaceholder>','yjfKY':'<PasswordPlaceholder>','VzPxI':function(_0x12b3a1,_0x59370e,_0x5b21a0){return _0x12b3a1(_0x59370e,_0x5b21a0);},'oTJCk':function(_0x3fc031,_0x3046ae,_0x380cdf){return _0x3fc031(_0x3046ae,_0x380cdf);},'vvbxa':_0xa759a(0x1e3),'ccBtr':'toolInstalledResp','hbtGS':_0xa759a(0x23f),'rWrRb':_0xa759a(0x22a),'mVLPi':function(_0x5825a3){return _0x5825a3();},'ZidHS':_0xa759a(0x1a6),'OoBcl':function(_0x4f623a,_0x5aedf9){return _0x4f623a(_0x5aedf9);},'YxHsH':_0xa759a(0x21d),'AfxkS':_0xa759a(0x1f4),'kqBjR':_0xa759a(0x227),'JBAOa':_0xa759a(0x22f),'tDvsn':'Whitelisted\x20browserstack','KHYpe':_0xa759a(0x214),'cscOI':function(_0x2e46f0,_0x20330c,_0x3d5fe8){return _0x2e46f0(_0x20330c,_0x3d5fe8);},'sMtIV':function(_0x4fc06b,_0x148121){return _0x4fc06b+_0x148121;},'JwACq':_0xa759a(0x204),'wEyLk':function(_0x1cac2d,_0x4da909,_0x5c0c19,_0x36fb64,_0x1c5653,_0x5ae5ec,_0x43e752){return _0x1cac2d(_0x4da909,_0x5c0c19,_0x36fb64,_0x1c5653,_0x5ae5ec,_0x43e752);},'QziPI':_0xa759a(0x20e)};let _0x249ec1,_0x301a3d;try{global_registry[_0xa759a(0x1f3)]=_0x26e6b6[_0xa759a(0x247)](uuidv4);!fs[_0xa759a(0x288)](_0x26e6b6[_0xa759a(0x247)](getCredentialsPath))&&(_0x301a3d=_0x26e6b6[_0xa759a(0x28f)],logger['error'](_0x301a3d),await _0x26e6b6[_0xa759a(0x220)](reportToGalactusAndSendToEDS,_0xc9123a,_0x249ec1,_0x301a3d,messageTypes[_0xa759a(0x21f)],_0x26e6b6['gVIPW'],_0x26e6b6[_0xa759a(0x293)],_0x26e6b6[_0xa759a(0x25b)]),process[_0xa759a(0x1cd)](0x1));_0x26e6b6['oWgIO'](sendInstrumentationEvent,_0xc9123a,_0x26e6b6[_0xa759a(0x231)],messageTypes[_0xa759a(0x21a)],null,null,_0xc9123a);const _0x3aa2d9=JSON[_0xa759a(0x24e)](fs[_0xa759a(0x274)](_0x26e6b6['JSFio'](getCredentialsPath)));global_registry[_0xa759a(0x20a)]=_0x3aa2d9[_0xa759a(0x1b4)][_0xa759a(0x1d4)],global_registry[_0xa759a(0x29b)]=_0x3aa2d9['Browserstack']['password'];const _0x5b0cde=WS_ENDPOINT[_0xa759a(0x1e9)](_0x26e6b6[_0xa759a(0x1b1)],_0x3aa2d9[_0xa759a(0x1b4)][_0xa759a(0x1d4)])[_0xa759a(0x1e9)](_0x26e6b6[_0xa759a(0x22b)],_0x3aa2d9[_0xa759a(0x1b4)]['password']),_0x271ce8={};_0x271ce8[_0xa759a(0x1ac)]=ws,_0x271ce8['connectionTimeout']=0x36ee80,_0x249ec1=new ReconnectingWebSocket(_0x5b0cde,[],_0x271ce8),global_registry[_0xa759a(0x1ae)]=_0x26e6b6[_0xa759a(0x276)](getAuthHeader,global_registry[_0xa759a(0x20a)],global_registry[_0xa759a(0x29b)]),await _0x26e6b6[_0xa759a(0x1f5)](inputValidation,_0xc9123a,_0x249ec1),logger[_0xa759a(0x253)](_0xa759a(0x1f2)+global_registry[_0xa759a(0x25f)]+_0xa759a(0x224)+global_registry[_0xa759a(0x1ca)]);let _0x33495f=await _0x26e6b6[_0xa759a(0x234)](getCloudProviderObjectWithOutInit,global_registry[_0xa759a(0x25f)],global_registry[_0xa759a(0x1bc)],_0x26e6b6[_0xa759a(0x1c7)],_0x249ec1,webSocketUtils,_0xc9123a);const _0x90d40a=await _0x33495f[_0xa759a(0x1ad)]();_0x26e6b6['oTJCk'](printResponse,_0x26e6b6[_0xa759a(0x26f)],_0x90d40a),_0x33495f=await _0x33495f[_0xa759a(0x1fc)]();let _0x1563ca=![];try{_0x1563ca=await _0x33495f[_0xa759a(0x213)]();}catch(_0x5f1001){const _0x3bfdf7=_0x26e6b6[_0xa759a(0x21b)][_0xa759a(0x1a4)]('|');let _0x129c22=0x0;while(!![]){switch(_0x3bfdf7[_0x129c22++]){case'0':logger['error'](_0x301a3d);continue;case'1':await _0x26e6b6[_0xa759a(0x220)](reportToGalactusAndSendToEDS,_0xc9123a,_0x249ec1,_0x301a3d,messageTypes[_0xa759a(0x21f)],_0x26e6b6[_0xa759a(0x231)],_0xa759a(0x1a7)+global_registry[_0xa759a(0x25f)],_0x26e6b6[_0xa759a(0x25b)]);continue;case'2':_0x1563ca=null;continue;case'3':_0x301a3d=_0xa759a(0x1fb)+global_registry['clusterName']+_0xa759a(0x1c1)+global_registry[_0xa759a(0x1ca)]+'`\x20,error\x20:\x20'+_0x5f1001;continue;case'4':_0x301a3d+='\x0a'+JSON[_0xa759a(0x292)](_0x5f1001[_0xa759a(0x229)]);continue;}break;}}_0x1563ca&&logger[_0xa759a(0x253)](_0xa759a(0x1bb)+global_registry[_0xa759a(0x1bc)]+_0xa759a(0x1e4));const _0x33a7af=await _0x33495f[_0xa759a(0x226)]();_0x26e6b6['oTJCk'](printResponse,_0x26e6b6[_0xa759a(0x296)],_0x33a7af);const _0x277113=await _0x26e6b6[_0xa759a(0x1d0)](curlRequest);_0x26e6b6[_0xa759a(0x1f5)](printResponse,_0x26e6b6[_0xa759a(0x279)],_0x277113);const _0x369a7d=await _0x26e6b6[_0xa759a(0x295)](isTlsSupported,_0x26e6b6['YxHsH']);_0x26e6b6[_0xa759a(0x276)](printResponse,_0x26e6b6['AfxkS'],_0x369a7d);const _0x45c190={};_0x45c190['header']=_0x26e6b6[_0xa759a(0x241)],_0x45c190[_0xa759a(0x298)]=_0x90d40a;const _0x32f3b1={};_0x32f3b1[_0xa759a(0x1ff)]=_0x26e6b6['JBAOa'],_0x32f3b1[_0xa759a(0x298)]=_0x33a7af;const _0x500a21={};_0x500a21[_0xa759a(0x1ff)]=_0x26e6b6['tDvsn'],_0x500a21[_0xa759a(0x298)]=_0x277113;const _0x3e997c={};_0x3e997c[_0xa759a(0x1ff)]=_0x26e6b6[_0xa759a(0x1be)],_0x3e997c['response']=_0x369a7d;const _0x418d43=[_0x45c190,_0x32f3b1,_0x500a21,_0x3e997c],_0x1546b5=await _0x26e6b6[_0xa759a(0x238)](generateReport,_0x418d43,_0x1563ca),_0x3991dd=new Date(),_0x5e143b=_0x3991dd['getUTCFullYear']()+'_'+_0x26e6b6['sMtIV'](_0x3991dd[_0xa759a(0x29f)](),0x1)+'_'+_0x3991dd[_0xa759a(0x1cc)]()+'_'+_0x3991dd['getUTCHours']()+'_'+_0x3991dd[_0xa759a(0x1a5)](),_0x47f70e=_0xa759a(0x2a1)+_0x5e143b+_0xa759a(0x1f9);fs[_0xa759a(0x1ed)](_0x47f70e,_0x1546b5,_0x26e6b6['JwACq']),logger['info'](_0xa759a(0x278)+_0x47f70e),process[_0xa759a(0x1cd)](0x0);}catch(_0x32db4d){let _0x53f71d=_0xa759a(0x20c)+_0x32db4d+'\x20';logger[_0xa759a(0x20d)](_0x53f71d),_0x53f71d+='\x0a'+JSON[_0xa759a(0x292)](_0x32db4d[_0xa759a(0x229)]),logger[_0xa759a(0x267)]('stack\x20trace\x20'+_0x32db4d[_0xa759a(0x229)]);if(_0x249ec1){const _0x5dfcde={};_0x5dfcde[_0xa759a(0x244)]=WS_EVENTS[_0xa759a(0x1e6)],_0x5dfcde['message']=_0x53f71d,webSocketUtils[_0xa759a(0x1f7)](_0x249ec1,_0x5dfcde,_0x26e6b6[_0xa759a(0x25b)],!![]);}await webSocketUtils[_0xa759a(0x1c6)](0x7d0);const _0x346ccf={};_0x346ccf['error']=_0x53f71d,await _0x26e6b6[_0xa759a(0x211)](sendInstrumentationEvent,_0xc9123a,_0x26e6b6[_0xa759a(0x231)],messageTypes[_0xa759a(0x21f)],_0x26e6b6[_0xa759a(0x212)],_0x346ccf,_0xc9123a),process['exit'](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a18_0x589156=a18_0x32a5;(function(_0x223685,_0x2abb24){const _0x270769=a18_0x32a5,_0x6419b2=_0x223685();while(!![]){try{const _0x57c8c0=parseInt(_0x270769(0xb6))/0x1*(-parseInt(_0x270769(0xb4))/0x2)+parseInt(_0x270769(0xab))/0x3+parseInt(_0x270769(0xa7))/0x4*(parseInt(_0x270769(0xb8))/0x5)+-parseInt(_0x270769(0xae))/0x6*(parseInt(_0x270769(0xa4))/0x7)+-parseInt(_0x270769(0xbb))/0x8+-parseInt(_0x270769(0xaf))/0x9+parseInt(_0x270769(0xb5))/0xa;if(_0x57c8c0===_0x2abb24)break;else _0x6419b2['push'](_0x6419b2['shift']());}catch(_0x3bcc8b){_0x6419b2['push'](_0x6419b2['shift']());}}}(a18_0x1df2,0x48d14));function a18_0x1df2(){const _0x7a6299=['strict','../config/constants','commandDir','epilogue','794KvvFeX','12724800yjVzgN','1265AjPLiv','handler','223435YaMiMk','usage','builder','2367952UFzNuD','Start\x20an\x20existing\x20Automation\x20grid.','help','2268ZAxyNX','demandCommand','xKKrT','28RiDRwy','start','ymPSU','desc','427548jgVczc','start_commands','command','4566TGZNBT','3463038tTppWA'];a18_0x1df2=function(){return _0x7a6299;};return a18_0x1df2();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x589156(0xb1));function a18_0x32a5(_0x49ea4e,_0x57de8b){const _0x1df22c=a18_0x1df2();return a18_0x32a5=function(_0x32a5ca,_0x177430){_0x32a5ca=_0x32a5ca-0xa3;let _0xa0108=_0x1df22c[_0x32a5ca];return _0xa0108;},a18_0x32a5(_0x49ea4e,_0x57de8b);}exports[a18_0x589156(0xad)]='start',exports[a18_0x589156(0xaa)]=a18_0x589156(0xbc),exports[a18_0x589156(0xba)]=function(_0x4a7832){const _0x5e2d57=a18_0x589156,_0x4a57f1={};_0x4a57f1[_0x5e2d57(0xa6)]=_0x5e2d57(0xac),_0x4a57f1[_0x5e2d57(0xa9)]=_0x5e2d57(0xa3);const _0x4a752c=_0x4a57f1;return _0x4a7832[_0x5e2d57(0xb9)](HELP_HEADER_MESSAGE[_0x5e2d57(0xa8)])[_0x5e2d57(0xb3)](HELP_FOOTER_MESSAGE)[_0x5e2d57(0xb2)](_0x4a752c[_0x5e2d57(0xa6)])[_0x5e2d57(0xa5)]()['recommendCommands']()[_0x5e2d57(0xb0)]()[_0x5e2d57(0xa3)](_0x4a752c[_0x5e2d57(0xa9)]);},exports[a18_0x589156(0xb7)]=function(_0x358a08){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a19_0x57677c=a19_0x42c5;(function(_0x4eaf4c,_0x252a75){const _0x171b05=a19_0x42c5,_0x4b1b28=_0x4eaf4c();while(!![]){try{const _0x5d4325=parseInt(_0x171b05(0x14c))/0x1+parseInt(_0x171b05(0x16a))/0x2+parseInt(_0x171b05(0x139))/0x3*(-parseInt(_0x171b05(0x149))/0x4)+parseInt(_0x171b05(0x16c))/0x5*(-parseInt(_0x171b05(0x15e))/0x6)+-parseInt(_0x171b05(0x15d))/0x7*(parseInt(_0x171b05(0x175))/0x8)+parseInt(_0x171b05(0x145))/0x9+-parseInt(_0x171b05(0x11e))/0xa*(-parseInt(_0x171b05(0x121))/0xb);if(_0x5d4325===_0x252a75)break;else _0x4b1b28['push'](_0x4b1b28['shift']());}catch(_0x5ca424){_0x4b1b28['push'](_0x4b1b28['shift']());}}}(a19_0x46d2,0xf1441));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x57677c(0x166)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x57677c(0x156)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x57677c(0x126)),{scaleUpHubDeployment}=require(a19_0x57677c(0x122)),{sendInstrumentationEvent}=require(a19_0x57677c(0x151)),webSocketUtils=require(a19_0x57677c(0x16f)),{createK8sClient}=require(a19_0x57677c(0x137)),{getCloudProviderObject}=require(a19_0x57677c(0x120));exports['command']='grid',exports[a19_0x57677c(0x16e)]=a19_0x57677c(0x14a),exports[a19_0x57677c(0x16b)]=function(_0x2e1918){const _0x3d0ccc=a19_0x57677c,_0x22ced9={};_0x22ced9[_0x3d0ccc(0x11c)]=_0x3d0ccc(0x153),_0x22ced9['atoyS']=_0x3d0ccc(0x160),_0x22ced9[_0x3d0ccc(0x172)]=_0x3d0ccc(0x138),_0x22ced9[_0x3d0ccc(0x164)]=_0x3d0ccc(0x11b),_0x22ced9['oGqmt']=_0x3d0ccc(0x155);const _0x424c05=_0x22ced9,_0x19e458={};_0x19e458[_0x3d0ccc(0x143)]=_0x424c05[_0x3d0ccc(0x11c)],_0x19e458[_0x3d0ccc(0x140)]=_0x424c05['atoyS'];const _0x57014c={};_0x57014c[_0x3d0ccc(0x143)]=_0x424c05['zdnep'],_0x57014c[_0x3d0ccc(0x140)]=_0x424c05['ebyGm'],_0x57014c[_0x3d0ccc(0x13c)]=![];const _0x2f5ff2={};return _0x2f5ff2['grid-id']=_0x19e458,_0x2f5ff2[_0x3d0ccc(0x173)]=_0x57014c,_0x2e1918[_0x3d0ccc(0x12a)](HELP_HEADER_MESSAGE['start'])[_0x3d0ccc(0x13d)](HELP_FOOTER_MESSAGE)[_0x3d0ccc(0x15b)](_0x2f5ff2)[_0x3d0ccc(0x155)](_0x424c05['oGqmt'])[_0x3d0ccc(0x130)];},exports[a19_0x57677c(0x135)]=async function(_0x214a77){const _0x2967a2=a19_0x57677c,_0x497884={'SwtsD':_0x2967a2(0x146),'ZoIip':function(_0x491ba5){return _0x491ba5();},'rnTNZ':_0x2967a2(0x163),'qdulc':function(_0x468ef3,_0x22d0a6,_0x200583,_0x20182e,_0x3fbd9e,_0x196b35,_0x26ea31){return _0x468ef3(_0x22d0a6,_0x200583,_0x20182e,_0x3fbd9e,_0x196b35,_0x26ea31);},'CnhhH':_0x2967a2(0x13f),'UkCXz':_0x2967a2(0x12c),'evFbK':function(_0x1e0c07,_0x4cec94,_0x4e9da5,_0x3f2a15,_0x9f0a6c,_0xbf09c9,_0x2bcf00){return _0x1e0c07(_0x4cec94,_0x4e9da5,_0x3f2a15,_0x9f0a6c,_0xbf09c9,_0x2bcf00);},'MRAKL':'<UsernamePlaceholder>','wCrfH':_0x2967a2(0x165),'PvHJs':_0x2967a2(0x14d),'hcdiS':function(_0x27d0a6,_0x38a70f,_0x5d041a,_0x28f74a){return _0x27d0a6(_0x38a70f,_0x5d041a,_0x28f74a);},'PEqEz':function(_0x282c61,_0x3eb4a1,_0x126fd1){return _0x282c61(_0x3eb4a1,_0x126fd1);},'vSClL':_0x2967a2(0x152),'KLanM':function(_0x2702a3,_0x4da7be){return _0x2702a3===_0x4da7be;},'GtoBW':_0x2967a2(0x12d),'AVLZp':_0x2967a2(0x11f),'eFGIG':function(_0x3902f2,_0x1bea07){return _0x3902f2===_0x1bea07;},'JaYFY':'invalid-grid-id','bTIao':_0x2967a2(0x129)};let _0x4e34ec;try{!_0x214a77[_0x2967a2(0x171)]&&(logger[_0x2967a2(0x148)](_0x497884['SwtsD']),process[_0x2967a2(0x15f)](0x1));!fs[_0x2967a2(0x147)](_0x497884[_0x2967a2(0x123)](getCredentialsPath))&&(logger[_0x2967a2(0x148)](_0x497884[_0x2967a2(0x133)]),await _0x497884[_0x2967a2(0x144)](sendInstrumentationEvent,_0x214a77,_0x497884[_0x2967a2(0x13e)],messageTypes[_0x2967a2(0x142)],_0x497884[_0x2967a2(0x11d)],null,_0x214a77),process[_0x2967a2(0x15f)](0x1));logger['info'](_0x2967a2(0x134)+_0x214a77['gridId']),await _0x497884[_0x2967a2(0x136)](sendInstrumentationEvent,_0x214a77,_0x497884[_0x2967a2(0x13e)],messageTypes[_0x2967a2(0x125)],null,null,_0x214a77);const _0x5566e7=JSON['parse'](fs[_0x2967a2(0x162)](_0x497884[_0x2967a2(0x123)](getCredentialsPath)));global_registry[_0x2967a2(0x169)]=_0x5566e7[_0x2967a2(0x132)]['username'],global_registry[_0x2967a2(0x16d)]=_0x5566e7[_0x2967a2(0x132)]['password'];const _0x479286=WS_ENDPOINT[_0x2967a2(0x141)](_0x497884[_0x2967a2(0x12e)],_0x5566e7[_0x2967a2(0x132)][_0x2967a2(0x159)])[_0x2967a2(0x141)](_0x497884['wCrfH'],_0x5566e7[_0x2967a2(0x132)][_0x2967a2(0x13b)]),_0x4babf4={};_0x4babf4[_0x2967a2(0x12b)]=ws,_0x4babf4[_0x2967a2(0x167)]=0x36ee80,_0x4e34ec=new ReconnectingWebSocket(_0x479286,[],_0x4babf4),logger[_0x2967a2(0x168)](_0x497884[_0x2967a2(0x127)]),webSocketUtils['addListeners'](_0x4e34ec,_0x214a77['user'],_0x214a77['password']);const [_0x500e73,_0x4f1ce1]=await _0x497884[_0x2967a2(0x13a)](getGridDetails,_0x5566e7[_0x2967a2(0x132)]['username'],_0x5566e7[_0x2967a2(0x132)]['password'],_0x214a77['gridId']);if(_0x4f1ce1){const _0x8f2d13=_0x4f1ce1[_0x2967a2(0x174)];global_registry[_0x2967a2(0x154)]=_0x8f2d13['cloudProvider'],global_registry[_0x2967a2(0x14b)]=_0x8f2d13[_0x2967a2(0x131)],global_registry[_0x2967a2(0x14e)]=_0x8f2d13['clusterName'];const _0x1ee47d=await _0x497884[_0x2967a2(0x136)](getCloudProviderObject,_0x8f2d13[_0x2967a2(0x154)],_0x8f2d13[_0x2967a2(0x14e)],_0x8f2d13[_0x2967a2(0x157)],_0x4e34ec,webSocketUtils,_0x214a77),[_0x56ab9e,_0x1eaaf3,_0x31e7de,_0x1e9e0b,_0x28599b,_0x527fd1]=await _0x497884['PEqEz'](createK8sClient,_0x1ee47d,_0x214a77['skipTlsCertVerify']);await _0x497884[_0x2967a2(0x161)](scaleUpHubDeployment,_0x1eaaf3,_0x8f2d13['name']),logger[_0x2967a2(0x174)](_0x497884[_0x2967a2(0x150)]),process['exit'](0x0);}_0x497884[_0x2967a2(0x15a)](_0x500e73['statusCode'],0x191)&&(logger['error'](_0x497884[_0x2967a2(0x170)]),await _0x497884['qdulc'](sendInstrumentationEvent,_0x214a77,_0x497884[_0x2967a2(0x13e)],messageTypes['ERROR'],_0x497884[_0x2967a2(0x176)],null,_0x214a77),process[_0x2967a2(0x15f)](0x1)),_0x497884[_0x2967a2(0x14f)](_0x500e73['statusCode'],0x190)&&(logger[_0x2967a2(0x148)](JSON[_0x2967a2(0x158)](_0x500e73['body'])[_0x2967a2(0x124)]),await _0x497884[_0x2967a2(0x136)](sendInstrumentationEvent,_0x214a77,_0x497884[_0x2967a2(0x13e)],messageTypes[_0x2967a2(0x142)],_0x497884[_0x2967a2(0x128)],null,_0x214a77),process[_0x2967a2(0x15f)](0x1)),logger[_0x2967a2(0x148)](_0x2967a2(0x12f)+JSON[_0x2967a2(0x15c)](_0x500e73)),await _0x497884[_0x2967a2(0x136)](sendInstrumentationEvent,_0x214a77,_0x497884[_0x2967a2(0x13e)],messageTypes['ERROR'],_0x497884['bTIao'],_0x500e73,_0x214a77),process['exit'](0x1);}catch(_0x1d1f8d){const _0x43ec2f='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x1d1f8d+'\x20\x0a'+JSON[_0x2967a2(0x15c)](_0x1d1f8d['stack'])+'\x20';logger['error'](_0x43ec2f),process[_0x2967a2(0x15f)](0x1);}};function a19_0x42c5(_0x44a75f,_0x37a1e0){const _0x46d274=a19_0x46d2();return a19_0x42c5=function(_0x42c553,_0x53a095){_0x42c553=_0x42c553-0x11b;let _0x3ca4c7=_0x46d274[_0x42c553];return _0x3ca4c7;},a19_0x42c5(_0x44a75f,_0x37a1e0);}function a19_0x46d2(){const _0x18007b=['PEqEz','readFileSync','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ebyGm','<PasswordPlaceholder>','reconnecting-websocket','connectionTimeout','debug','bstackUsername','753832CanQrl','builder','130TbLrLb','bstackAccesskey','desc','../../utils/webSocketUtils','GtoBW','gridId','zdnep','skip-tls-cert-verify','info','8ozouPd','AVLZp','boolean','fFYWK','UkCXz','13040wWdSaq','unauthorised','../../cloudproviders/utils','1045PpBpIc','../../utils/gridComponents','ZoIip','message','INFO','../../utils/utilityMethods','PvHJs','JaYFY','server-error','usage','WebSocket','init-not-called','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','MRAKL','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','argv','region','Browserstack','rnTNZ','Starting\x20grid\x20','handler','evFbK','../../utils/createk8sClient','Skip\x20insecure\x20cert\x20verification.','1620582ewljSp','hcdiS','password','default','epilogue','CnhhH','start-grid-called','type','replace','ERROR','description','qdulc','1334061qoeGZp','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','existsSync','error','4HAraIe','Start\x20an\x20existing\x20Automation\x20grid.','clusterRegion','1094959qLgOIl','Adding\x20Websocket\x20listeners','clusterName','eFGIG','vSClL','../../utils/instrumentationUtils','Grid\x20started','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','cloudProvider','help','../../config/constants','name','parse','username','KLanM','options','stringify','1472737PeIErC','1194BtKncZ','exit','string'];a19_0x46d2=function(){return _0x18007b;};return a19_0x46d2();}
|
package/ats/src/commands/stop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x55879f=a20_0x5a42;(function(_0x3c1ccc,_0x19491f){const _0x182b31=a20_0x5a42,_0x43c38a=_0x3c1ccc();while(!![]){try{const _0x198566=-parseInt(_0x182b31(0x1eb))/0x1+-parseInt(_0x182b31(0x1ec))/0x2*(parseInt(_0x182b31(0x1f2))/0x3)+-parseInt(_0x182b31(0x1ff))/0x4+-parseInt(_0x182b31(0x1f4))/0x5+-parseInt(_0x182b31(0x1fe))/0x6*(parseInt(_0x182b31(0x1f8))/0x7)+parseInt(_0x182b31(0x1f3))/0x8*(-parseInt(_0x182b31(0x1fd))/0x9)+parseInt(_0x182b31(0x1ef))/0xa;if(_0x198566===_0x19491f)break;else _0x43c38a['push'](_0x43c38a['shift']());}catch(_0x36830a){_0x43c38a['push'](_0x43c38a['shift']());}}}(a20_0x4d26,0xcc564));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a20_0x5a42(_0x1918ae,_0x44e910){const _0x4d26a7=a20_0x4d26();return a20_0x5a42=function(_0x5a4203,_0x3d58b3){_0x5a4203=_0x5a4203-0x1ea;let _0x1dcac4=_0x4d26a7[_0x5a4203];return _0x1dcac4;},a20_0x5a42(_0x1918ae,_0x44e910);}function a20_0x4d26(){const _0xfdfea2=['435858UoiWJj','8qnfziN','stop','commandDir','70440850eElRuJ','desc','stop_commands','679605HPalVQ','56DnuRZM','7499725gduZJS','epilogue','builder','help','5709249eXQAod','HWsfm','recommendCommands','cBcYA','demandCommand','1610883tJtvzh','12jrcrBP','1924220JIfOzR','usage'];a20_0x4d26=function(){return _0xfdfea2;};return a20_0x4d26();}exports['command']=a20_0x55879f(0x1ed),exports[a20_0x55879f(0x1f0)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x55879f(0x1f6)]=function(_0x7b27cd){const _0x582a0e=a20_0x55879f,_0x1bc4af={};_0x1bc4af[_0x582a0e(0x1f9)]=_0x582a0e(0x1f1),_0x1bc4af[_0x582a0e(0x1fb)]='help';const _0x2f72ac=_0x1bc4af;return _0x7b27cd[_0x582a0e(0x1ea)](HELP_HEADER_MESSAGE['stop'])[_0x582a0e(0x1f5)](HELP_FOOTER_MESSAGE)[_0x582a0e(0x1ee)](_0x2f72ac[_0x582a0e(0x1f9)])[_0x582a0e(0x1fc)]()[_0x582a0e(0x1fa)]()['strict']()[_0x582a0e(0x1f7)](_0x2f72ac[_0x582a0e(0x1fb)]);},exports['handler']=function(_0x3ac375){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a21_0x1bb4(_0x1c5f13,_0x1ae782){const _0x85f553=a21_0x85f5();return a21_0x1bb4=function(_0x1bb43b,_0x3e4e79){_0x1bb43b=_0x1bb43b-0x1b4;let _0x408721=_0x85f553[_0x1bb43b];return _0x408721;},a21_0x1bb4(_0x1c5f13,_0x1ae782);}const a21_0x3f1994=a21_0x1bb4;(function(_0x146026,_0x47c27e){const _0x589e0c=a21_0x1bb4,_0x1743c2=_0x146026();while(!![]){try{const _0x5d87d5=-parseInt(_0x589e0c(0x1d4))/0x1+parseInt(_0x589e0c(0x203))/0x2*(parseInt(_0x589e0c(0x1fb))/0x3)+-parseInt(_0x589e0c(0x1c8))/0x4*(-parseInt(_0x589e0c(0x1ba))/0x5)+-parseInt(_0x589e0c(0x1ce))/0x6*(parseInt(_0x589e0c(0x1f7))/0x7)+-parseInt(_0x589e0c(0x1f9))/0x8+parseInt(_0x589e0c(0x1ee))/0x9*(-parseInt(_0x589e0c(0x200))/0xa)+parseInt(_0x589e0c(0x1db))/0xb;if(_0x5d87d5===_0x47c27e)break;else _0x1743c2['push'](_0x1743c2['shift']());}catch(_0x4e7fac){_0x1743c2['push'](_0x1743c2['shift']());}}}(a21_0x85f5,0xe4878));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x3f1994(0x1e1)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x3f1994(0x20a)),{logger}=require(a21_0x3f1994(0x1ef)),{getCredentialsPath,getGridDetails}=require(a21_0x3f1994(0x20d)),{scaleDownHubDeployment}=require(a21_0x3f1994(0x1d8)),{sendInstrumentationEvent}=require(a21_0x3f1994(0x1e0)),webSocketUtils=require(a21_0x3f1994(0x204)),{createK8sClient}=require(a21_0x3f1994(0x1c3)),{getCloudProviderObject}=require(a21_0x3f1994(0x1e7));exports[a21_0x3f1994(0x1df)]=a21_0x3f1994(0x1d0),exports['desc']=a21_0x3f1994(0x1be),exports[a21_0x3f1994(0x1dc)]=function(_0x47601c){const _0x294bc0=a21_0x3f1994,_0x146481={};_0x146481[_0x294bc0(0x1f4)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x146481[_0x294bc0(0x1f3)]=_0x294bc0(0x1e8),_0x146481[_0x294bc0(0x1fa)]=_0x294bc0(0x1c5),_0x146481[_0x294bc0(0x20c)]=_0x294bc0(0x201),_0x146481[_0x294bc0(0x1b5)]=_0x294bc0(0x1de);const _0x1261c0=_0x146481,_0x1f2896={};_0x1f2896[_0x294bc0(0x1e6)]=_0x1261c0[_0x294bc0(0x1f4)],_0x1f2896['type']=_0x1261c0['CQaXg'];const _0x2668f0={};_0x2668f0[_0x294bc0(0x1e6)]=_0x1261c0[_0x294bc0(0x1fa)],_0x2668f0['type']=_0x1261c0[_0x294bc0(0x20c)],_0x2668f0[_0x294bc0(0x1e4)]=![];const _0x155bc1={};return _0x155bc1[_0x294bc0(0x1bf)]=_0x1f2896,_0x155bc1[_0x294bc0(0x1d6)]=_0x2668f0,_0x47601c[_0x294bc0(0x1b6)](HELP_HEADER_MESSAGE['stop'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x294bc0(0x1f2)](_0x155bc1)[_0x294bc0(0x1de)](_0x1261c0[_0x294bc0(0x1b5)])[_0x294bc0(0x1cb)];},exports['handler']=async function(_0x27696e){const _0x395b5b=a21_0x3f1994,_0x3ebb26={'yxsjb':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','fbawZ':function(_0x12150e){return _0x12150e();},'GnqNQ':_0x395b5b(0x1f8),'FPSRn':function(_0x35c082,_0x37fbfd,_0x312426,_0x201249,_0x2ff577,_0xd2043a,_0x147f8f){return _0x35c082(_0x37fbfd,_0x312426,_0x201249,_0x2ff577,_0xd2043a,_0x147f8f);},'gBtNC':_0x395b5b(0x20b),'NalzT':_0x395b5b(0x1b9),'ZXdzj':function(_0x50d300){return _0x50d300();},'tMXkL':_0x395b5b(0x1cf),'JmlQC':_0x395b5b(0x207),'ruoej':_0x395b5b(0x1d3),'VRtOl':function(_0x11803a,_0xb1bc5c,_0x525c76,_0xa6dd32){return _0x11803a(_0xb1bc5c,_0x525c76,_0xa6dd32);},'jPYyH':function(_0x521714,_0x4907f7,_0x50c2a3,_0x315407,_0x4153e1,_0x4b4f4f,_0xf1b541){return _0x521714(_0x4907f7,_0x50c2a3,_0x315407,_0x4153e1,_0x4b4f4f,_0xf1b541);},'zZWLE':function(_0x597e54,_0x35c5ac,_0x4427d9){return _0x597e54(_0x35c5ac,_0x4427d9);},'Uvkbo':'Grid\x20stoppped.','jJyhB':function(_0x5ad3f1,_0x18c04a){return _0x5ad3f1===_0x18c04a;},'tKkAz':_0x395b5b(0x1d7),'ZQRAe':_0x395b5b(0x1b7),'EbaaN':function(_0x2abb0c,_0x21123e){return _0x2abb0c===_0x21123e;},'rzdYM':function(_0x2d1701,_0x25fff1,_0x1011d0,_0x402827,_0x213927,_0x348f4d,_0x410d03){return _0x2d1701(_0x25fff1,_0x1011d0,_0x402827,_0x213927,_0x348f4d,_0x410d03);},'CYqLi':_0x395b5b(0x1bb),'mEMaw':'server-error'};let _0x2d6442;try{!_0x27696e[_0x395b5b(0x206)]&&(logger[_0x395b5b(0x20e)](_0x3ebb26[_0x395b5b(0x1ca)]),process['exit'](0x1));!fs['existsSync'](_0x3ebb26[_0x395b5b(0x1c0)](getCredentialsPath))&&(logger['error'](_0x3ebb26['GnqNQ']),await _0x3ebb26['FPSRn'](sendInstrumentationEvent,_0x27696e,_0x3ebb26['gBtNC'],messageTypes['ERROR'],_0x3ebb26[_0x395b5b(0x1ea)],null,_0x27696e),process['exit'](0x1));logger['info'](_0x395b5b(0x1d9)+_0x27696e[_0x395b5b(0x206)]),await _0x3ebb26[_0x395b5b(0x1c1)](sendInstrumentationEvent,_0x27696e,_0x3ebb26[_0x395b5b(0x1fc)],messageTypes[_0x395b5b(0x1d2)],null,null,_0x27696e);const _0x29f3bc=JSON['parse'](fs['readFileSync'](_0x3ebb26[_0x395b5b(0x1c9)](getCredentialsPath)));global_registry[_0x395b5b(0x209)]=_0x29f3bc['Browserstack'][_0x395b5b(0x1e9)],global_registry[_0x395b5b(0x1e5)]=_0x29f3bc['Browserstack'][_0x395b5b(0x1c2)];const _0x3a105f=WS_ENDPOINT[_0x395b5b(0x1c4)](_0x3ebb26[_0x395b5b(0x1e2)],_0x29f3bc[_0x395b5b(0x1cc)][_0x395b5b(0x1e9)])['replace'](_0x3ebb26[_0x395b5b(0x1c7)],_0x29f3bc[_0x395b5b(0x1cc)]['password']),_0x453cb5={};_0x453cb5['WebSocket']=ws,_0x453cb5[_0x395b5b(0x1ff)]=0x36ee80,_0x2d6442=new ReconnectingWebSocket(_0x3a105f,[],_0x453cb5),logger[_0x395b5b(0x205)](_0x3ebb26['ruoej']),webSocketUtils['addListeners'](_0x2d6442,_0x27696e[_0x395b5b(0x1cd)],_0x27696e[_0x395b5b(0x1c2)]);const [_0x4c8eb7,_0x54fbd0]=await _0x3ebb26[_0x395b5b(0x1f1)](getGridDetails,_0x29f3bc['Browserstack']['username'],_0x29f3bc[_0x395b5b(0x1cc)][_0x395b5b(0x1c2)],_0x27696e['gridId']);if(_0x54fbd0){const _0x208ebe=_0x54fbd0['info'];global_registry[_0x395b5b(0x1da)]=_0x208ebe['cloudProvider'],global_registry[_0x395b5b(0x1b4)]=_0x208ebe['region'],global_registry['clusterName']=_0x208ebe[_0x395b5b(0x1c6)];const _0x2a9bf3=await _0x3ebb26[_0x395b5b(0x1dd)](getCloudProviderObject,_0x208ebe[_0x395b5b(0x1da)],_0x208ebe[_0x395b5b(0x1c6)],_0x208ebe[_0x395b5b(0x1ec)],_0x2d6442,webSocketUtils,_0x27696e),[_0x58754e,_0x53ab76,_0x28cf60,_0x2ec91b,_0x2090cb,_0x4f28d7]=await _0x3ebb26[_0x395b5b(0x1b8)](createK8sClient,_0x2a9bf3,_0x27696e['skipTlsCertVerify']);await _0x3ebb26['zZWLE'](scaleDownHubDeployment,_0x53ab76,_0x208ebe['name']),logger['info'](_0x3ebb26[_0x395b5b(0x1f0)]),process[_0x395b5b(0x1f5)](0x0);}_0x3ebb26['jJyhB'](_0x4c8eb7[_0x395b5b(0x202)],0x191)&&(logger['error'](_0x3ebb26[_0x395b5b(0x1eb)]),await _0x3ebb26[_0x395b5b(0x1c1)](sendInstrumentationEvent,_0x27696e,_0x3ebb26[_0x395b5b(0x1fc)],messageTypes[_0x395b5b(0x1bd)],_0x3ebb26['ZQRAe'],null,_0x27696e),process[_0x395b5b(0x1f5)](0x1)),_0x3ebb26[_0x395b5b(0x1f6)](_0x4c8eb7['statusCode'],0x190)&&(logger['error'](JSON[_0x395b5b(0x1ed)](_0x4c8eb7['body'])[_0x395b5b(0x1fd)]),await _0x3ebb26[_0x395b5b(0x1bc)](sendInstrumentationEvent,_0x27696e,_0x3ebb26[_0x395b5b(0x1fc)],messageTypes['ERROR'],_0x3ebb26[_0x395b5b(0x1e3)],null,_0x27696e),process[_0x395b5b(0x1f5)](0x1)),logger[_0x395b5b(0x20e)](_0x395b5b(0x1d5)+JSON[_0x395b5b(0x208)](_0x4c8eb7)),await _0x3ebb26[_0x395b5b(0x1dd)](sendInstrumentationEvent,_0x27696e,_0x3ebb26['gBtNC'],messageTypes[_0x395b5b(0x1bd)],_0x3ebb26['mEMaw'],_0x4c8eb7,_0x27696e),process[_0x395b5b(0x1f5)](0x1);}catch(_0x1bff3b){const _0x5b9a71=_0x395b5b(0x1fe)+_0x1bff3b+'\x20\x0a'+JSON[_0x395b5b(0x208)](_0x1bff3b[_0x395b5b(0x1d1)])+'\x20';logger['error'](_0x5b9a71),process[_0x395b5b(0x1f5)](0x1);}};function a21_0x85f5(){const _0x490ef8=['replace','Skip\x20insecure\x20cert\x20verification.','clusterName','JmlQC','452fMwpOb','ZXdzj','yxsjb','argv','Browserstack','user','284286IuJnxF','<UsernamePlaceholder>','grid','stack','INFO','Adding\x20Websocket\x20listeners','1112546LolmWs','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','skip-tls-cert-verify','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../utils/gridComponents','Stopping\x20grid\x20','cloudProvider','27774637tBTTfl','builder','jPYyH','help','command','../../utils/instrumentationUtils','reconnecting-websocket','tMXkL','CYqLi','default','bstackAccesskey','description','../../cloudproviders/utils','string','username','NalzT','tKkAz','name','parse','18XfhIsV','../../config/logger','Uvkbo','VRtOl','options','CQaXg','ndCEN','exit','EbaaN','105GffYhy','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','3051048annjnb','qyjod','2964IiINGq','gBtNC','message','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','connectionTimeout','6838190AzLtlq','boolean','statusCode','1902QSuZZH','../../utils/webSocketUtils','debug','gridId','<PasswordPlaceholder>','stringify','bstackUsername','../../config/constants','stop-grid-called','yeEIk','../../utils/utilityMethods','error','clusterRegion','VdPVr','usage','unauthorised','zZWLE','init-not-called','46185LdIyDi','invalid-grid-id','rzdYM','ERROR','Stop\x20a\x20running\x20Automation\x20grid.','grid-id','fbawZ','FPSRn','password','../../utils/createk8sClient'];a21_0x85f5=function(){return _0x490ef8;};return a21_0x85f5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x51b860=a22_0x38be;(function(_0x2692be,_0x1c1e3e){const _0x582780=a22_0x38be,_0xd461b4=_0x2692be();while(!![]){try{const _0x4f3715=parseInt(_0x582780(0x1c1))/0x1+parseInt(_0x582780(0x1ee))/0x2+-parseInt(_0x582780(0x1d2))/0x3*(-parseInt(_0x582780(0x209))/0x4)+parseInt(_0x582780(0x1d6))/0x5+-parseInt(_0x582780(0x1ba))/0x6*(parseInt(_0x582780(0x20c))/0x7)+-parseInt(_0x582780(0x212))/0x8+parseInt(_0x582780(0x1ad))/0x9*(-parseInt(_0x582780(0x202))/0xa);if(_0x4f3715===_0x1c1e3e)break;else _0xd461b4['push'](_0xd461b4['shift']());}catch(_0x6d1681){_0xd461b4['push'](_0xd461b4['shift']());}}}(a22_0x5d54,0x3847b),require(a22_0x51b860(0x1d7))[a22_0x51b860(0x1a8)]());let gridURL=a22_0x51b860(0x1fa),bsApiUrl=a22_0x51b860(0x1b9),agApiUrl=a22_0x51b860(0x1bc);const _env=(process[a22_0x51b860(0x1f6)]['BROWSERSTACK_ENV']||a22_0x51b860(0x20d))[a22_0x51b860(0x1dd)]();if(_env===a22_0x51b860(0x1aa)||_env===a22_0x51b860(0x1e5))gridURL=a22_0x51b860(0x1c0),bsApiUrl='api-devhst.bsstag.com',agApiUrl='grid-api-devhst.bsstag.com';else(_env===a22_0x51b860(0x1af)||_env==='pre-prod')&&(gridURL='grid-preprod.bsstag.com',bsApiUrl=a22_0x51b860(0x20b),agApiUrl=a22_0x51b860(0x1e9));function a22_0x5d54(){const _0x4aecd0=['BSTACK-ATS-CLUSTER-AUTOSCALER','preprod','us-east-1','forEach','browserstack:managedBy','CLI_RUN_FINISHED','log','list','create','UNKNOWN','HELP_HEADER_MESSAGE','api.browserstack.com','23124yVKZID','BrowserStack-Automate-TurboScale','grid-api.browserstack.com','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','CLUSTER_HUB_HA_STACK_NAME','CLI_ARGS_REGEX','grid-devhst.bsstag.com','140366dNLdqq','LINK_MESSAGE','grid','browserstack:service','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','CLUSTER','HST_CLUSTER_TAGS','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','init','browserstack-turboscale-grid','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','TRIAL_GRID_URL','INFO','TURBOSCALE_DEPLOYMENT','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','LOG','CLUSTER_DEP_STACK_NAME','90873RQcGpM','start','BSTACK-ATS-CLUSTER-HUB-HA','DEFAULT_GRID_NAME','757945DEMffp','dotenv','Key','resourceInfo','AG_API_URL','cliRunStarted','REGION','toLowerCase','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','global_registry','root','BS_API_URL','WARNING','WS_EVENTS','connect','stag','RESOURCES','REDACTED','SUCCESS','grid-api-preprod.bsstag.com','gridUrl','ERROR','delete','COMMON_HST_TAGS','119192faEIrm','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','AWS','stop','TURBOSCALE_CUSTOM_TAGS','BSTACK-ATS-CLUSTER','split','CLOUD_PROVIDER','env','Value','gridProfile','CLUSTER_AUTOSCALER_STACK_NAME','grid.browserstack.com','unknown','success','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','DEFAULT_CLUSTER_DETAILS','CLI_RUN_STARTED','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','SUPPORTED_CLOUD_PROVIDERS','80OhHMJE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','WS_ENDPOINT','AZURE','GRID_URL','DASHBOARD_ENDPOINT','[REDACTED]','56cbHNWJ','BrowserStack','api-preprod.bsstag.com','70EMnNrR','prod','BrowserStackIAMUser','grid-profile','pre-check','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','3509072UDdclx','gcp','aws','ALL_SUPPORTED_CLOUD_PROVIDERS','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','HELP_FOOTER_MESSAGE','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','config','cliRunFinished','staging','GCP','info','76419bTyoOj'];a22_0x5d54=function(){return _0x4aecd0;};return a22_0x5d54();}exports['DASHBOARD_ENDPOINT']=process[a22_0x51b860(0x1f6)][a22_0x51b860(0x207)]||gridURL,exports[a22_0x51b860(0x1e1)]=process[a22_0x51b860(0x1f6)][a22_0x51b860(0x1e1)]||bsApiUrl,exports[a22_0x51b860(0x1da)]=process['env'][a22_0x51b860(0x1da)]||agApiUrl,exports[a22_0x51b860(0x204)]='wss://'+this[a22_0x51b860(0x1da)]+a22_0x51b860(0x211),exports['CP_CONFIG_FILE']='credentials',exports['IAM_USER_NAME']=a22_0x51b860(0x20e),exports[a22_0x51b860(0x1d5)]='high-scale-grid',exports[a22_0x51b860(0x1f0)]=a22_0x51b860(0x214),exports[a22_0x51b860(0x1d1)]=a22_0x51b860(0x1f3),exports[a22_0x51b860(0x1f9)]=a22_0x51b860(0x1ae),exports[a22_0x51b860(0x1be)]=a22_0x51b860(0x1d4),exports[a22_0x51b860(0x1ce)]=a22_0x51b860(0x1ca),exports[a22_0x51b860(0x205)]='azure',exports[a22_0x51b860(0x1ab)]=a22_0x51b860(0x213),exports[a22_0x51b860(0x215)]=[this[a22_0x51b860(0x1f0)],this['AZURE'],this[a22_0x51b860(0x1ab)]];const a22_0x2ed173={};a22_0x2ed173[a22_0x51b860(0x1d8)]=a22_0x51b860(0x1b2),a22_0x2ed173['Value']=a22_0x51b860(0x20a);const a22_0x269562={};function a22_0x38be(_0x2ace78,_0x167e5d){const _0x5d54ff=a22_0x5d54();return a22_0x38be=function(_0x38be9b,_0x1ff9c7){_0x38be9b=_0x38be9b-0x1a7;let _0x446ed3=_0x5d54ff[_0x38be9b];return _0x446ed3;},a22_0x38be(_0x2ace78,_0x167e5d);}a22_0x269562['Key']=a22_0x51b860(0x1c4),a22_0x269562[a22_0x51b860(0x1f7)]=a22_0x51b860(0x1bb);const common_hst_tags_list=[a22_0x2ed173,a22_0x269562];if(process[a22_0x51b860(0x1f6)][a22_0x51b860(0x1f2)]){const parsedTags=process['env'][a22_0x51b860(0x1f2)][a22_0x51b860(0x1f4)](',');parsedTags[a22_0x51b860(0x1b1)](_0x371cc4=>{const _0x512fcc=a22_0x51b860,_0x16cd34=_0x371cc4[_0x512fcc(0x1f4)](':'),_0x25f75c={};_0x25f75c[_0x512fcc(0x1d8)]=_0x16cd34[0x0],_0x25f75c['Value']=_0x16cd34[0x1],common_hst_tags_list['push'](_0x25f75c);});}exports[a22_0x51b860(0x1ed)]=common_hst_tags_list;const a22_0x1f7acd={};a22_0x1f7acd[a22_0x51b860(0x1b2)]=a22_0x51b860(0x20a),a22_0x1f7acd[a22_0x51b860(0x1c4)]=a22_0x51b860(0x1bb),exports[a22_0x51b860(0x1c7)]=a22_0x1f7acd,exports[a22_0x51b860(0x201)]=[this[a22_0x51b860(0x1f0)]];const a22_0x34e7a1={};a22_0x34e7a1[a22_0x51b860(0x1d0)]=a22_0x51b860(0x1b4),a22_0x34e7a1[a22_0x51b860(0x1e6)]=a22_0x51b860(0x1d9),a22_0x34e7a1[a22_0x51b860(0x206)]=a22_0x51b860(0x1ea),a22_0x34e7a1[a22_0x51b860(0x1ff)]=a22_0x51b860(0x1db),a22_0x34e7a1[a22_0x51b860(0x1b3)]=a22_0x51b860(0x1a9),exports[a22_0x51b860(0x1e3)]=a22_0x34e7a1,exports[a22_0x51b860(0x1df)]={},exports[a22_0x51b860(0x1c2)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x503ba8={};a22_0x503ba8['root']=a22_0x51b860(0x1c5)+this[a22_0x51b860(0x1c2)],a22_0x503ba8[a22_0x51b860(0x1c9)]=a22_0x51b860(0x1ef)+this[a22_0x51b860(0x1c2)],a22_0x503ba8['configure']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a22_0x51b860(0x1c2)],a22_0x503ba8[a22_0x51b860(0x1b6)]=a22_0x51b860(0x1fd)+this[a22_0x51b860(0x1c2)],a22_0x503ba8[a22_0x51b860(0x1b5)]={},a22_0x503ba8[a22_0x51b860(0x1ec)]=a22_0x51b860(0x1c8)+this['LINK_MESSAGE'],a22_0x503ba8[a22_0x51b860(0x1e4)]=a22_0x51b860(0x1de)+this[a22_0x51b860(0x1c2)],a22_0x503ba8[a22_0x51b860(0x1d3)]=a22_0x51b860(0x200)+this[a22_0x51b860(0x1c2)],a22_0x503ba8[a22_0x51b860(0x1f1)]=a22_0x51b860(0x216)+this[a22_0x51b860(0x1c2)],a22_0x503ba8['pre_check']='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this[a22_0x51b860(0x1c2)],a22_0x503ba8[a22_0x51b860(0x1b5)][a22_0x51b860(0x1e0)]=a22_0x51b860(0x203)+this[a22_0x51b860(0x1c2)],a22_0x503ba8[a22_0x51b860(0x1b5)][a22_0x51b860(0x1c3)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this['LINK_MESSAGE'],a22_0x503ba8[a22_0x51b860(0x1b5)][a22_0x51b860(0x1f8)]=a22_0x51b860(0x1cb)+this[a22_0x51b860(0x1c2)],exports[a22_0x51b860(0x1b8)]=a22_0x503ba8,exports[a22_0x51b860(0x217)]=a22_0x51b860(0x1a7);const a22_0x4dffcc={};a22_0x4dffcc[a22_0x51b860(0x1e8)]=a22_0x51b860(0x1fc),a22_0x4dffcc[a22_0x51b860(0x1eb)]='error',a22_0x4dffcc[a22_0x51b860(0x1cd)]=a22_0x51b860(0x1ac),a22_0x4dffcc[a22_0x51b860(0x1e2)]='warning',a22_0x4dffcc[a22_0x51b860(0x1b7)]=a22_0x51b860(0x1fb),a22_0x4dffcc['NULL']=null,exports['messageTypes']=a22_0x4dffcc,exports[a22_0x51b860(0x1bf)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x51b860(0x1e7)]=a22_0x51b860(0x208);const a22_0x4c7926={};a22_0x4c7926[a22_0x51b860(0x20f)]=a22_0x51b860(0x1bd);const a22_0x2664df={};a22_0x2664df[a22_0x51b860(0x210)]=a22_0x4c7926,exports['MessageDescription']=a22_0x2664df,exports[a22_0x51b860(0x1cc)]=a22_0x51b860(0x1cf);const a22_0x4a6c3e={};a22_0x4a6c3e[a22_0x51b860(0x1c6)]='high-scale-grid-cluster',a22_0x4a6c3e[a22_0x51b860(0x1f5)]=a22_0x51b860(0x214),a22_0x4a6c3e[a22_0x51b860(0x1dc)]=a22_0x51b860(0x1b0),exports[a22_0x51b860(0x1fe)]=a22_0x4a6c3e;
|
package/ats/src/config/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a23_0x555d(_0x119fa5,_0x4cd29c){const _0x5492e9=a23_0x5492();return a23_0x555d=function(_0x555d6c,_0x85e01c){_0x555d6c=_0x555d6c-0xfc;let _0x4c177a=_0x5492e9[_0x555d6c];return _0x4c177a;},a23_0x555d(_0x119fa5,_0x4cd29c);}const a23_0x4adcb4=a23_0x555d;(function(_0x1e55dc,_0x4cb928){const _0x58d848=a23_0x555d,_0x4e3e51=_0x1e55dc();while(!![]){try{const _0x351897=-parseInt(_0x58d848(0x11d))/0x1*(-parseInt(_0x58d848(0x116))/0x2)+parseInt(_0x58d848(0x118))/0x3*(parseInt(_0x58d848(0x106))/0x4)+-parseInt(_0x58d848(0xfd))/0x5+parseInt(_0x58d848(0x10d))/0x6+parseInt(_0x58d848(0x119))/0x7+-parseInt(_0x58d848(0x104))/0x8+-parseInt(_0x58d848(0x11b))/0x9;if(_0x351897===_0x4cb928)break;else _0x4e3e51['push'](_0x4e3e51['shift']());}catch(_0x5c973e){_0x4e3e51['push'](_0x4e3e51['shift']());}}}(a23_0x5492,0x4b214));const winston=require(a23_0x4adcb4(0x10e)),fs=require('fs'),path=require(a23_0x4adcb4(0x111)),logDir=a23_0x4adcb4(0x11a);!fs[a23_0x4adcb4(0xff)](logDir)&&fs[a23_0x4adcb4(0x107)](logDir);const a23_0x18edce={};a23_0x18edce[a23_0x4adcb4(0x101)]=a23_0x4adcb4(0x109);const a23_0x1d998f={};function a23_0x5492(){const _0x485eb5=['6044121tbQubL','Console','149lvlnjX','debug','50070xGiNPD','events.log','existsSync','colorize','format','timestamp','join','1170912amGoKP','usage.log','1008284urnHYg','mkdirSync','message','YYYY-MM-DD\x20HH:mm:ss','transports','logger','File','281286ozhqxw','winston','\x20-\x20','printf','path','createLogger','combine','fileLogger','name','6862NSAHhA','level','3cUAuZA','2278556vjXzgE','log'];a23_0x5492=function(){return _0x485eb5;};return a23_0x5492();}a23_0x1d998f['level']=!![];const a23_0x16c7e4={};a23_0x16c7e4[a23_0x4adcb4(0x115)]='console.info',exports[a23_0x4adcb4(0x10b)]=new winston[(a23_0x4adcb4(0x112))]({'format':winston[a23_0x4adcb4(0x101)][a23_0x4adcb4(0x113)](winston[a23_0x4adcb4(0x101)][a23_0x4adcb4(0x102)](a23_0x18edce),winston['format'][a23_0x4adcb4(0x100)](a23_0x1d998f),winston[a23_0x4adcb4(0x101)][a23_0x4adcb4(0x110)](_0x207608=>_0x207608[a23_0x4adcb4(0x102)]+a23_0x4adcb4(0x10f)+_0x207608[a23_0x4adcb4(0x117)]+':\x20'+_0x207608[a23_0x4adcb4(0x108)])),'transports':[new winston[(a23_0x4adcb4(0x10a))][(a23_0x4adcb4(0x11c))](a23_0x16c7e4),new winston['transports'][(a23_0x4adcb4(0x10c))]({'filename':path[a23_0x4adcb4(0x103)](logDir,a23_0x4adcb4(0xfe)),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x4adcb4(0x10a))][(a23_0x4adcb4(0x10c))]({'filename':path['join'](logDir,a23_0x4adcb4(0x105)),'level':a23_0x4adcb4(0xfc)})]};exports[a23_0x4adcb4(0x114)]=new winston['createLogger'](winstonFileLoggerParams);
|
package/ats/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a24_0xf616b3=a24_0x23b8;(function(_0x54ab01,_0x28b8a4){const _0x4573d7=a24_0x23b8,_0xac8119=_0x54ab01();while(!![]){try{const _0x2a720a=parseInt(_0x4573d7(0x145))/0x1*(-parseInt(_0x4573d7(0x13c))/0x2)+parseInt(_0x4573d7(0x137))/0x3+-parseInt(_0x4573d7(0x13d))/0x4*(-parseInt(_0x4573d7(0x13a))/0x5)+parseInt(_0x4573d7(0x143))/0x6*(-parseInt(_0x4573d7(0x13b))/0x7)+parseInt(_0x4573d7(0x138))/0x8*(parseInt(_0x4573d7(0x133))/0x9)+-parseInt(_0x4573d7(0x132))/0xa*(-parseInt(_0x4573d7(0x142))/0xb)+-parseInt(_0x4573d7(0x134))/0xc*(-parseInt(_0x4573d7(0x136))/0xd);if(_0x2a720a===_0x28b8a4)break;else _0xac8119['push'](_0xac8119['shift']());}catch(_0x27eb84){_0xac8119['push'](_0xac8119['shift']());}}}(a24_0x31a7,0xafd5a));function a24_0x23b8(_0x1e7a52,_0x28727b){const _0x31a7a1=a24_0x31a7();return a24_0x23b8=function(_0x23b87f,_0x12544){_0x23b87f=_0x23b87f-0x132;let _0x58c93b=_0x31a7a1[_0x23b87f];return _0x58c93b;},a24_0x23b8(_0x1e7a52,_0x28727b);}function a24_0x31a7(){const _0x1e6d71=['help','2197490bVyGse','76374tcwfbB','48bcxGGv','exports','774176CxqUEa','1842804EGelfG','152DLzjQn','root','5UXrVBk','28777klTNAY','226VYCzTd','892856wisRCu','epilogue','env','commandDir','usage','66StpfRl','768FTRpeE','demandCommand','11584faOpGv','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','RNFrz'];a24_0x31a7=function(){return _0x1e6d71;};return a24_0x31a7();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process[a24_0xf616b3(0x13f)][a24_0xf616b3(0x146)]=0x1;function run(_0x2fa3b1){const _0x1ff9e0=a24_0xf616b3,_0x3446c4={};_0x3446c4['kiiSE']='commands',_0x3446c4['RNFrz']='help';const _0x548335=_0x3446c4;_0x2fa3b1[_0x1ff9e0(0x141)](HELP_HEADER_MESSAGE[_0x1ff9e0(0x139)])[_0x1ff9e0(0x140)](_0x548335['kiiSE'])[_0x1ff9e0(0x144)]()[_0x1ff9e0(0x148)](_0x548335[_0x1ff9e0(0x147)])[_0x1ff9e0(0x13e)](HELP_FOOTER_MESSAGE);}module[a24_0xf616b3(0x135)]=run;
|