browserstack-node-sdk 1.40.6 → 1.40.8
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/browserstack.pw.yml.sample +1 -0
- package/browserstack.yml.sample +1 -0
- 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_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -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_0x3a490a=a15_0x29ae;(function(_0x2382d1,_0x33e52f){const _0x5f0093=a15_0x29ae,_0x2bebe8=_0x2382d1();while(!![]){try{const _0xb3bb9f=-parseInt(_0x5f0093(0x158))/0x1+-parseInt(_0x5f0093(0x145))/0x2+parseInt(_0x5f0093(0x16c))/0x3+-parseInt(_0x5f0093(0x193))/0x4+-parseInt(_0x5f0093(0x189))/0x5*(parseInt(_0x5f0093(0x176))/0x6)+parseInt(_0x5f0093(0x195))/0x7*(parseInt(_0x5f0093(0x180))/0x8)+-parseInt(_0x5f0093(0x156))/0x9*(-parseInt(_0x5f0093(0x14c))/0xa);if(_0xb3bb9f===_0x33e52f)break;else _0x2bebe8['push'](_0x2bebe8['shift']());}catch(_0x361b0a){_0x2bebe8['push'](_0x2bebe8['shift']());}}}(a15_0x225f,0x2f907));const fs=require('fs'),got=require(a15_0x3a490a(0x160)),{table}=require(a15_0x3a490a(0x169)),{v4:uuidv4}=require(a15_0x3a490a(0x16e)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x3a490a(0x179)),{getCredentialsPath,getAuthHeader}=require(a15_0x3a490a(0x148)),{sendInstrumentationEvent}=require(a15_0x3a490a(0x17e));function a15_0x29ae(_0x18d0bc,_0x1f385c){const _0x225fea=a15_0x225f();return a15_0x29ae=function(_0x29ae89,_0x121b1){_0x29ae89=_0x29ae89-0x13c;let _0x5306fe=_0x225fea[_0x29ae89];return _0x5306fe;},a15_0x29ae(_0x18d0bc,_0x1f385c);}exports[a15_0x3a490a(0x18d)]='grids',exports['desc']='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x3a490a(0x164)]=function(_0x4db567){const _0x459749=a15_0x3a490a,_0x4ba77f={};_0x4ba77f[_0x459749(0x18f)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x4ba77f['BoluA']=_0x459749(0x17c),_0x4ba77f[_0x459749(0x174)]=_0x459749(0x15d);const _0x1ad1fa=_0x4ba77f,_0x3560e0={};_0x3560e0['description']=_0x1ad1fa[_0x459749(0x18f)],_0x3560e0[_0x459749(0x157)]=_0x1ad1fa['BoluA'];const _0xdd706c={};return _0xdd706c[_0x459749(0x143)]=_0x3560e0,_0x4db567['usage'](HELP_HEADER_MESSAGE[_0x459749(0x162)][_0x459749(0x13e)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x459749(0x17d)](_0xdd706c)[_0x459749(0x15d)](_0x1ad1fa['TyZbF'])[_0x459749(0x15f)];},exports[a15_0x3a490a(0x187)]=async function(_0x3b7319){const _0x4b2cf0=a15_0x3a490a,_0x61f0b4={'vgwOu':function(_0x367ed6){return _0x367ed6();},'vCLkq':function(_0x23b0a5){return _0x23b0a5();},'NnXDi':_0x4b2cf0(0x177),'rRwCE':function(_0x3d3396,_0x5c5a58,_0x53598c,_0x4eccf4,_0x5f20c1,_0x4a8bb0,_0x264243){return _0x3d3396(_0x5c5a58,_0x53598c,_0x4eccf4,_0x5f20c1,_0x4a8bb0,_0x264243);},'AeGRJ':'list-grids-called','txqwv':_0x4b2cf0(0x194),'tbUjv':function(_0x31001d){return _0x31001d();},'cpWrA':_0x4b2cf0(0x13d),'tVRPZ':function(_0x518b78,_0x44051c,_0x40b1b1){return _0x518b78(_0x44051c,_0x40b1b1);},'rzmrx':function(_0xe83f0d,_0xd997de,_0x4cf939,_0x549f96,_0x5d210c,_0x591d6e,_0x11b172){return _0xe83f0d(_0xd997de,_0x4cf939,_0x549f96,_0x5d210c,_0x591d6e,_0x11b172);},'rWUiW':function(_0x31df21,_0x4beb61){return _0x31df21!==_0x4beb61;},'FEdel':function(_0x32d9e6,_0x4c45b0){return _0x32d9e6!==_0x4c45b0;},'eSZhQ':function(_0x399c19,_0x535c3d){return _0x399c19===_0x535c3d;},'ngwkg':'\x0aFound\x20the\x20following\x20grids:\x0a','XndDJ':_0x4b2cf0(0x182),'middA':_0x4b2cf0(0x15e),'nZPxQ':_0x4b2cf0(0x159),'RqzSt':_0x4b2cf0(0x170),'xokzN':'queued','uMuuf':_0x4b2cf0(0x172),'bWtIJ':function(_0x473270,_0x2683ea){return _0x473270(_0x2683ea);},'IvBkv':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','FWCNu':_0x4b2cf0(0x15c),'TnEqZ':function(_0x1edcbf,_0xabe6fc,_0x5d2493,_0x27c275,_0xe75b6b,_0x290d73,_0x3d55ce){return _0x1edcbf(_0xabe6fc,_0x5d2493,_0x27c275,_0xe75b6b,_0x290d73,_0x3d55ce);},'mKbsA':_0x4b2cf0(0x142),'xGHqV':function(_0x3edb4f,_0x2a2065,_0x1462fb,_0x29869e,_0x55972b,_0x2a074c,_0x57d899){return _0x3edb4f(_0x2a2065,_0x1462fb,_0x29869e,_0x55972b,_0x2a074c,_0x57d899);},'BdZrX':_0x4b2cf0(0x146)};try{global_registry[_0x4b2cf0(0x173)]=_0x61f0b4[_0x4b2cf0(0x141)](uuidv4);!fs[_0x4b2cf0(0x192)](_0x61f0b4[_0x4b2cf0(0x15a)](getCredentialsPath))&&(console[_0x4b2cf0(0x18a)](_0x61f0b4[_0x4b2cf0(0x18b)]),await _0x61f0b4[_0x4b2cf0(0x190)](sendInstrumentationEvent,_0x3b7319,_0x61f0b4[_0x4b2cf0(0x152)],messageTypes['ERROR'],_0x61f0b4[_0x4b2cf0(0x150)],null,_0x3b7319),process['exit'](0x1));const _0x3446f8=JSON[_0x4b2cf0(0x165)](fs[_0x4b2cf0(0x154)](_0x61f0b4[_0x4b2cf0(0x153)](getCredentialsPath)));let _0xb4a64c=_0x4b2cf0(0x186)+AG_API_URL+'/packages/cli/get-grids';_0x3b7319['allGrids']&&(_0xb4a64c=_0x4b2cf0(0x186)+AG_API_URL+_0x4b2cf0(0x163));const _0x5d61dd={'method':_0x61f0b4[_0x4b2cf0(0x14d)],'headers':_0x61f0b4[_0x4b2cf0(0x147)](getAuthHeader,_0x3446f8[_0x4b2cf0(0x13f)][_0x4b2cf0(0x17a)],_0x3446f8[_0x4b2cf0(0x13f)]['password']),'throwHttpErrors':![]};global_registry[_0x4b2cf0(0x166)]=_0x3446f8[_0x4b2cf0(0x13f)][_0x4b2cf0(0x17a)],global_registry[_0x4b2cf0(0x149)]=_0x3446f8['Browserstack']['password'],_0x61f0b4[_0x4b2cf0(0x14b)](sendInstrumentationEvent,_0x3b7319,_0x61f0b4[_0x4b2cf0(0x152)],messageTypes[_0x4b2cf0(0x16a)],null,null,_0x3b7319);const _0x582133=await _0x61f0b4[_0x4b2cf0(0x147)](got,_0xb4a64c,_0x5d61dd);if(_0x61f0b4[_0x4b2cf0(0x16f)](_0x582133,null)&&_0x61f0b4['FEdel'](_0x582133,undefined)&&_0x61f0b4[_0x4b2cf0(0x17f)](_0x582133[_0x4b2cf0(0x168)],0xc8)){const _0x3ee0a3=JSON[_0x4b2cf0(0x165)](_0x582133[_0x4b2cf0(0x151)]);console['log'](_0x61f0b4[_0x4b2cf0(0x17b)]);const _0x1f1d3e=[];_0x1f1d3e[_0x4b2cf0(0x161)]([_0x61f0b4[_0x4b2cf0(0x185)],_0x61f0b4[_0x4b2cf0(0x155)],_0x61f0b4[_0x4b2cf0(0x171)],_0x61f0b4[_0x4b2cf0(0x144)],_0x61f0b4[_0x4b2cf0(0x167)],_0x61f0b4[_0x4b2cf0(0x18e)]]),_0x3ee0a3[_0x4b2cf0(0x188)](_0x177bdc=>{const _0x446b6e=_0x4b2cf0;_0x1f1d3e['push']([_0x177bdc['id'],_0x177bdc['name'],_0x177bdc[_0x446b6e(0x159)],_0x177bdc['running'],_0x177bdc[_0x446b6e(0x18c)],_0x177bdc[_0x446b6e(0x178)]]);}),console[_0x4b2cf0(0x140)](_0x61f0b4[_0x4b2cf0(0x181)](table,_0x1f1d3e)),process[_0x4b2cf0(0x175)](0x0);}_0x61f0b4[_0x4b2cf0(0x17f)](_0x582133['statusCode'],0x191)&&(console['error'](_0x61f0b4['IvBkv']),await _0x61f0b4['rzmrx'](sendInstrumentationEvent,_0x3b7319,_0x61f0b4[_0x4b2cf0(0x152)],messageTypes[_0x4b2cf0(0x16d)],_0x61f0b4[_0x4b2cf0(0x14a)],null,_0x3b7319),process['exit'](0x1)),console['error'](_0x4b2cf0(0x184)+JSON[_0x4b2cf0(0x15b)](_0x582133)),await _0x61f0b4[_0x4b2cf0(0x14e)](sendInstrumentationEvent,_0x3b7319,_0x61f0b4['AeGRJ'],messageTypes[_0x4b2cf0(0x16d)],_0x61f0b4[_0x4b2cf0(0x13c)],_0x582133,_0x3b7319),process[_0x4b2cf0(0x175)](0x1);}catch(_0x56ce25){console['error'](_0x4b2cf0(0x16b)+_0x56ce25[_0x4b2cf0(0x183)]),await _0x61f0b4[_0x4b2cf0(0x191)](sendInstrumentationEvent,_0x3b7319,_0x61f0b4['AeGRJ'],messageTypes[_0x4b2cf0(0x16d)],_0x61f0b4[_0x4b2cf0(0x14f)],_0x56ce25,_0x3b7319),process['exit'](0x1);}};function a15_0x225f(){const _0x283d1c=['parse','bstackUsername','xokzN','statusCode','table','INFO','Failed\x20to\x20list\x20resources!\x20Error:\x20','134250iECirX','ERROR','uuid','rWUiW','running','nZPxQ','cluster-name','requestId','TyZbF','exit','48798JHPKYj','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','clusterName','../../config/constants','username','ngwkg','boolean','options','../../utils/instrumentationUtils','eSZhQ','391248vQXfJf','bWtIJ','grid-id','stack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','XndDJ','https://','handler','forEach','135CONWkd','error','NnXDi','queued','command','uMuuf','uqEan','rRwCE','xGHqV','existsSync','1553416EaKsKS','init-not-called','35FXceLa','mKbsA','GET','grid','Browserstack','log','vgwOu','server-error','all-grids','RqzSt','233654ofGRqG','unknown-error','tVRPZ','../../utils/utilityMethods','bstackAccesskey','FWCNu','rzmrx','510mEoKDt','cpWrA','TnEqZ','BdZrX','txqwv','body','AeGRJ','tbUjv','readFileSync','middA','161307xaGImA','type','283758SaRbGA','status','vCLkq','stringify','unauthorised','help','grid-name','argv','got','push','list','/packages/cli/get-all-grids','builder'];a15_0x225f=function(){return _0x283d1c;};return a15_0x225f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16_0x34873e=a16_0x5550;(function(_0x429e54,_0x3d5fc6){const _0xad9144=a16_0x5550,_0x22e33f=_0x429e54();while(!![]){try{const _0x43984b=parseInt(_0xad9144(0x1ef))/0x1+-parseInt(_0xad9144(0x1f3))/0x2*(parseInt(_0xad9144(0x1ec))/0x3)+-parseInt(_0xad9144(0x1f1))/0x4*(parseInt(_0xad9144(0x1fd))/0x5)+-parseInt(_0xad9144(0x1ee))/0x6*(parseInt(_0xad9144(0x1f0))/0x7)+parseInt(_0xad9144(0x1ed))/0x8*(parseInt(_0xad9144(0x1f6))/0x9)+parseInt(_0xad9144(0x1fa))/0xa+parseInt(_0xad9144(0x200))/0xb;if(_0x43984b===_0x3d5fc6)break;else _0x22e33f['push'](_0x22e33f['shift']());}catch(_0x44ce14){_0x22e33f['push'](_0x22e33f['shift']());}}}(a16_0x145c,0xd4007));function a16_0x5550(_0x5e80e9,_0x2ec80b){const _0x145ce1=a16_0x145c();return a16_0x5550=function(_0x5550bc,_0x2928c3){_0x5550bc=_0x5550bc-0x1ec;let _0x32f305=_0x145ce1[_0x5550bc];return _0x32f305;},a16_0x5550(_0x5e80e9,_0x2ec80b);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x34873e(0x1f4));function a16_0x145c(){const _0x5dbbfd=['8yDhPjT','198rZBBDD','994233rVEJiC','287077xAJFMm','16UcAffq','mAQhE','778OcIYMP','../config/constants','usage','9264438wCSSZx','pre_check','precheck_commands','command','1652010rNbvhc','yKXPv','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','1749875qJazUD','recommendCommands','handler','19239693rmDOAB','2439yuUAjg'];a16_0x145c=function(){return _0x5dbbfd;};return a16_0x145c();}exports[a16_0x34873e(0x1f9)]='pre-check',exports['desc']=a16_0x34873e(0x1fc),exports['builder']=function(_0x58a915){const _0x4e08f9=a16_0x34873e,_0x147f25={};_0x147f25[_0x4e08f9(0x1f2)]=_0x4e08f9(0x1f8),_0x147f25[_0x4e08f9(0x1fb)]='help';const _0x14edeb=_0x147f25;return _0x58a915[_0x4e08f9(0x1f5)](HELP_HEADER_MESSAGE[_0x4e08f9(0x1f7)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x14edeb[_0x4e08f9(0x1f2)])['demandCommand']()[_0x4e08f9(0x1fe)]()['strict']()['help'](_0x14edeb[_0x4e08f9(0x1fb)]);},exports[a16_0x34873e(0x1ff)]=function(_0x42b201){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a17_0x1fbbf4=a17_0x1a59;(function(_0x2b249c,_0x34dbd7){const _0x5c3898=a17_0x1a59,_0x2498b7=_0x2b249c();while(!![]){try{const _0x5bc5fb=parseInt(_0x5c3898(0x164))/0x1+-parseInt(_0x5c3898(0x1c6))/0x2*(parseInt(_0x5c3898(0x121))/0x3)+-parseInt(_0x5c3898(0x19f))/0x4*(parseInt(_0x5c3898(0x1b9))/0x5)+parseInt(_0x5c3898(0x1d5))/0x6*(parseInt(_0x5c3898(0x1cd))/0x7)+parseInt(_0x5c3898(0x193))/0x8*(-parseInt(_0x5c3898(0x1f6))/0x9)+-parseInt(_0x5c3898(0x142))/0xa+parseInt(_0x5c3898(0x1fa))/0xb;if(_0x5bc5fb===_0x34dbd7)break;else _0x2498b7['push'](_0x2498b7['shift']());}catch(_0x51aad6){_0x2498b7['push'](_0x2498b7['shift']());}}}(a17_0x2184,0x243b7));function a17_0x2184(){const _0x7fbcf3=['dummy-grid','Pre-check\x20running\x20for\x20Cloud\x20-\x20','error','stringify','NZPde','qwpbu','stack\x20trace\x20','eaarA','MoITV','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','prekp','parse','iBKws','wGRhB','NZPAC','Invalid\x20input.\x20grid\x20profiles:\x20','`\x20already\x20exists','existsSync','unable\x20to\x20verify\x20if\x20cluster\x20`','Error\x20Details:\x0a','delay','FLIcV','is\x20already\x20present','Grid\x20profile\x20fetched\x20for\x20pre-check','QGrlw','getUTCFullYear','pre-check','dykdH','code','AswtC','HzubY','EudJT','.\x20Please\x20provide\x20all\x20required\x20arguments.','AOrrJ','cloud-provider','will\x20be\x20created','IUbWG','aHPzS','QSdRv','1208EpHTva','Failed\x20in\x20pre-check!\x20Error:\x20','civpA','OStmO','`\x20is\x20present\x20in\x20region\x20`','qHqss','help','split','credential-not-found','Tool\x20Installed','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','jYren','4toBWsM','GAubp','username','hkRXJ','PKnPe','WGWOp','../../config/constants','utf-8','ntMpv','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','\x20===\x0a\x0a','toLowerCase','CLOUD_PROVIDER','jJDZP','debug','gridProfile','hhFkG','TnuTb','AuCQO','fNHxL','description','headers','header','Failure','TLveM','ERROR','567595QMKJqx','VZLYk','JRhFo','KVbxs','wcJUH','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','NtZzk','lgnVK','MpcaY','gwtsm','argv','<PasswordPlaceholder>','22hahzKj','getUTCDate','Report\x20saved\x20in\x20','byoml','connectionTimeout','grid\x20profile\x20flow\x20','../../utils/webSocketUtils','3997MVxQWy','desc','JJfBI','Whitelisted\x20browserstack','ySGKU','bfMGM','User\x20Access','authHeader','150lfbBkd','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','qZNVD','epilogue','\x20\x20Message:\x20','BQZmC','tkLBz','toolInstalledResp','NgGGx','bstackAccesskey','push','stack','clusterRegion','isCliToolInstalled','WebSocket','YyybL','reconnecting-websocket','bstackUsername','gkWOg','pre-check-grid-called','/packages/cli/get-all-grid-profiles','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','INFO','got','mzmHq','ONeSd','HHSah','UlAxH','accessResp','Browserstack','uDLTF','FvupY','HTMLl','15831sBFzIw','BXlgs','kztFd','getUTCMonth','8617345IYQrnk','clusterName','PwibL','mWJAo','NTzXZ','0|3|1|2|4','getUTCMinutes','\x20\x20Stack:\x20','region','DmWXH','length','password','`\x20,error\x20:\x20','info','isClusterPresent','error\x20stack\x20:\x20','Pxzsd','<UsernamePlaceholder>','init',']\x20status\x20:\x20','xWnIz','AHVmq','Status:\x20','OZBDb','rAHri','ajTUd','qVsAM','QDNyv','LOG','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','\x20error\x20:\x20','DAsdp','qbSjg','GET','\x20\x20Code:\x20','19641DTtypE','xHxLz','CXUgb','name','options','N/A','log/report_','Success','hhzII','builder','method','type','pre-check-cluster-args-not-passed','../../utils/utilityMethods','hirfV','pre-check-grid-profile-empty','../../utils/instrumentationUtils','uwPtW','MiRib','requestId','response','body','ScXab','OcfmI','vRLdg','join','replace','PNsvq','kkZiZ','Cluster\x20details\x0a-----------------------\x0a','qUATe','kCmId','pSteh','2704560oXIDWA','Cluster\x20','getUTCHours','ksdrw','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Setting\x20cloud\x20provider\x20as\x20','gVsYN','zjlde','ZPBOy','SSL\x20Configured','exit','iFDpE','tZlUp','grid-profile','vzIKE','Message:\x20','jDWZX','HOyhD','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','DSRci','vBedU','Cluster\x20`','checkAccess','kqmec','Ndflq','uagZE','xBXtb','FWlpq','message','grid','ZLcAB','cloudProvider','cluster-name','JsFwd','72338VgnEIk','usage','kIXtD','sendEventToBackend','data','xaXOi','vGTcE','status'];a17_0x2184=function(){return _0x7fbcf3;};return a17_0x2184();}const fs=require('fs'),ws=require('ws'),got=require(a17_0x1fbbf4(0x1ec)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x1fbbf4(0x1e5)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x1fbbf4(0x12e)),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x1fbbf4(0x1a5)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x1fbbf4(0x1cc)),{sendInstrumentationEvent}=require(a17_0x1fbbf4(0x131));exports['command']=a17_0x1fbbf4(0x15f),exports[a17_0x1fbbf4(0x1ce)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a17_0x1fbbf4(0x12a)]=function(_0x17ca6e){const _0xc40112=a17_0x1fbbf4,_0x5cb237={};_0x5cb237[_0xc40112(0x141)]=_0xc40112(0x1d6),_0x5cb237[_0xc40112(0x14e)]='string',_0x5cb237['FvupY']=_0xc40112(0x19d),_0x5cb237[_0xc40112(0x1a0)]=_0xc40112(0x154),_0x5cb237[_0xc40112(0x1a7)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x5cb237[_0xc40112(0x1a3)]='help';const _0x38d484=_0x5cb237,_0x329b86={};_0x329b86[_0xc40112(0x1b3)]=_0x38d484[_0xc40112(0x141)],_0x329b86[_0xc40112(0x12c)]=_0x38d484[_0xc40112(0x14e)];const _0xf56c83={};_0xf56c83[_0xc40112(0x1b3)]=_0x38d484[_0xc40112(0x1f4)],_0xf56c83[_0xc40112(0x12c)]=_0x38d484[_0xc40112(0x14e)];const _0x3a12ab={};_0x3a12ab[_0xc40112(0x1b3)]=_0x38d484[_0xc40112(0x1a0)],_0x3a12ab[_0xc40112(0x12c)]=_0x38d484[_0xc40112(0x14e)];const _0x50b74e={};_0x50b74e[_0xc40112(0x1b3)]=_0x38d484[_0xc40112(0x1a7)],_0x50b74e['type']=_0x38d484['tZlUp'];const _0x4ab983={};return _0x4ab983['cluster-name']=_0x329b86,_0x4ab983[_0xc40112(0x18e)]=_0xf56c83,_0x4ab983[_0xc40112(0x202)]=_0x3a12ab,_0x4ab983[_0xc40112(0x14f)]=_0x50b74e,_0x17ca6e[_0xc40112(0x165)](HELP_HEADER_MESSAGE['pre_check'])[_0xc40112(0x1d8)](HELP_FOOTER_MESSAGE)['options'](_0x4ab983)['help'](_0x38d484[_0xc40112(0x1a3)])[_0xc40112(0x1c4)];};function a17_0x1a59(_0x32d6ac,_0x17039c){const _0x218433=a17_0x2184();return a17_0x1a59=function(_0x1a593c,_0x12ad2b){_0x1a593c=_0x1a593c-0x10d;let _0x14917f=_0x218433[_0x1a593c];return _0x14917f;},a17_0x1a59(_0x32d6ac,_0x17039c);}async function inputValidation(_0x49f0f5,_0x3aa222){const _0x5358d1=a17_0x1fbbf4,_0x4e8daa={'eTVow':_0x5358d1(0x1d6),'bfMGM':'string','TnuTb':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','eaCJR':_0x5358d1(0x154),'GHwHd':_0x5358d1(0x1a8),'umJpj':'help','hhzII':_0x5358d1(0x182),'QSdRv':_0x5358d1(0x18f),'KVbxs':'Error\x20Details:\x0a','IUbWG':_0x5358d1(0x126),'kztFd':_0x5358d1(0x202),'QDNyv':_0x5358d1(0x1be),'uDLTF':_0x5358d1(0x162),'NgGGx':_0x5358d1(0x18e),'vBedU':_0x5358d1(0x16e),'ScXab':function(_0x3aff5c,_0x253f19){return _0x3aff5c===_0x253f19;},'lgnVK':_0x5358d1(0x15c),'WGWOp':'kqStp','hirfV':function(_0x115f4f,_0x2b14cb){return _0x115f4f!==_0x2b14cb;},'ONeSd':_0x5358d1(0x1fc),'xsWtG':_0x5358d1(0x13c),'mzmHq':function(_0x3e3e52,_0x3ada72){return _0x3e3e52===_0x3ada72;},'qUATe':'GvGms','xWnIz':_0x5358d1(0x1da),'ylvCl':function(_0x309863,_0xce995d){return _0x309863>_0xce995d;},'CAutg':_0x5358d1(0x169),'FLIcV':_0x5358d1(0x1b7),'vzIKE':function(_0x2e63b9,_0x1e83c8,_0x46de16,_0x7974c0,_0x436122,_0x45a331,_0x28b273,_0x2225c3){return _0x2e63b9(_0x1e83c8,_0x46de16,_0x7974c0,_0x436122,_0x45a331,_0x28b273,_0x2225c3);},'DmWXH':_0x5358d1(0x1e8),'FWlpq':_0x5358d1(0x12d),'GEVgQ':_0x5358d1(0x1d1),'qUZBn':_0x5358d1(0x1bb),'DLYFI':_0x5358d1(0x1ea),'NTzXZ':'cloud-provider-not-supported','ksdrw':function(_0x20ce91,_0xbd4226){return _0x20ce91===_0xbd4226;},'qwpbu':_0x5358d1(0x1d7),'aHPzS':_0x5358d1(0x117),'TAdPr':'fqBuE','UTpNe':_0x5358d1(0x189),'kkZiZ':_0x5358d1(0x11f),'AuCQO':function(_0x412cca,_0x242955,_0x1d008a){return _0x412cca(_0x242955,_0x1d008a);},'YyybL':function(_0x29c3d6,_0x1016f0,_0x47849e,_0x4cec7d,_0x448fbc,_0x3e69e8){return _0x29c3d6(_0x1016f0,_0x47849e,_0x4cec7d,_0x448fbc,_0x3e69e8);},'NZPAC':_0x5358d1(0x186),'ufOUQ':_0x5358d1(0x14f),'qbSjg':function(_0x4f7c70,_0xf91f72){return _0x4f7c70===_0xf91f72;},'mWJAo':_0x5358d1(0x140),'wGSPO':function(_0x1d780c,_0x3d83b2){return _0x1d780c(_0x3d83b2);},'MiRib':function(_0x3c3ac3,_0x3bb50a){return _0x3c3ac3===_0x3bb50a;},'ZPBOy':'poOFE','EudJT':'gQlaL','vRLdg':_0x5358d1(0x130),'aUULN':_0x5358d1(0x16a),'OZBDb':_0x5358d1(0x122),'eaarA':'EWTNm','uagZE':_0x5358d1(0x183),'jDWZX':_0x5358d1(0x1e7),'civpA':function(_0x64ceb7,_0x53fe47){return _0x64ceb7!==_0x53fe47;},'JDjio':_0x5358d1(0x198),'iBKws':_0x5358d1(0x113)};let _0x26f902;try{if(_0x4e8daa[_0x5358d1(0x137)](_0x4e8daa[_0x5358d1(0x1c1)],_0x4e8daa[_0x5358d1(0x1c1)])){if(_0x49f0f5[_0x5358d1(0x1fb)]||_0x49f0f5['cloudProvider']||_0x49f0f5[_0x5358d1(0x202)]){if(_0x4e8daa[_0x5358d1(0x137)](_0x4e8daa[_0x5358d1(0x1a4)],_0x4e8daa[_0x5358d1(0x1a4)])){const _0x311ad7=[];if(!_0x49f0f5[_0x5358d1(0x1fb)]){if(_0x4e8daa[_0x5358d1(0x12f)](_0x4e8daa[_0x5358d1(0x1ee)],_0x4e8daa['xsWtG']))_0x311ad7['push'](_0x4e8daa[_0x5358d1(0x1f3)]);else{const _0x30c531={};_0x30c531[_0x5358d1(0x1b3)]=_0x4e8daa['eTVow'],_0x30c531[_0x5358d1(0x12c)]=_0x4e8daa[_0x5358d1(0x1d2)];const _0x5d6b7a={};_0x5d6b7a[_0x5358d1(0x1b3)]=_0x4e8daa[_0x5358d1(0x1b0)],_0x5d6b7a[_0x5358d1(0x12c)]=_0x4e8daa['bfMGM'];const _0x9cf5fb={};_0x9cf5fb[_0x5358d1(0x1b3)]=_0x4e8daa['eaCJR'],_0x9cf5fb[_0x5358d1(0x12c)]=_0x4e8daa['bfMGM'];const _0x5a16c2={};_0x5a16c2[_0x5358d1(0x1b3)]=_0x4e8daa['GHwHd'],_0x5a16c2[_0x5358d1(0x12c)]=_0x4e8daa['bfMGM'];const _0x2b5c1c={};return _0x2b5c1c[_0x5358d1(0x162)]=_0x30c531,_0x2b5c1c[_0x5358d1(0x18e)]=_0x5d6b7a,_0x2b5c1c[_0x5358d1(0x202)]=_0x9cf5fb,_0x2b5c1c[_0x5358d1(0x14f)]=_0x5a16c2,_0x41d379[_0x5358d1(0x165)](_0x19914e['pre_check'])[_0x5358d1(0x1d8)](_0x40c2f5)[_0x5358d1(0x125)](_0x2b5c1c)[_0x5358d1(0x199)](_0x4e8daa['umJpj'])[_0x5358d1(0x1c4)];}};!_0x49f0f5[_0x5358d1(0x161)]&&(_0x4e8daa[_0x5358d1(0x1ed)](_0x4e8daa['qUATe'],_0x4e8daa[_0x5358d1(0x13f)])?_0x311ad7[_0x5358d1(0x1df)](_0x4e8daa[_0x5358d1(0x1dd)]):_0x1779d8+=_0x5358d1(0x143)+_0x4e4c01[_0x5358d1(0x1fb)]+'\x20'+(_0x270aab?_0x4e8daa[_0x5358d1(0x129)]:_0x4e8daa[_0x5358d1(0x192)])+'\x0a\x0a');;!_0x49f0f5['region']&&(_0x4e8daa[_0x5358d1(0x12f)](_0x4e8daa[_0x5358d1(0x112)],_0x4e8daa[_0x5358d1(0x112)])?_0xc113f5[_0x5358d1(0x16e)](_0x5358d1(0x10d)+_0x415382[_0x5358d1(0x16e)][_0x5358d1(0x1e0)]):_0x311ad7[_0x5358d1(0x1df)](_0x4e8daa[_0x5358d1(0x1f8)]));;_0x4e8daa['ylvCl'](_0x311ad7[_0x5358d1(0x204)],0x0)&&(_0x4e8daa['hirfV'](_0x4e8daa['CAutg'],_0x4e8daa[_0x5358d1(0x181)])?(_0x26f902='Missing\x20required\x20arguments:\x20'+_0x311ad7[_0x5358d1(0x13a)](',\x20')+_0x5358d1(0x18c),await _0x4e8daa['vzIKE'](reportToGalactusAndSendToEDS,_0x49f0f5,_0x3aa222,_0x26f902,messageTypes[_0x5358d1(0x1b8)],_0x4e8daa[_0x5358d1(0x203)],_0x4e8daa[_0x5358d1(0x15d)],_0x4e8daa[_0x5358d1(0x156)]),logger['error'](_0x26f902),process['exit'](0x1)):(_0x1a46e0+=_0x4e8daa[_0x5358d1(0x1bc)],_0x598eaa+=_0x5358d1(0x1d9)+(_0x5caf3e['message']||_0x4e8daa[_0x5358d1(0x190)])+'\x0a',_0xac5810+='\x20\x20Code:\x20'+(_0x55005[_0x5358d1(0x188)]||_0x4e8daa[_0x5358d1(0x190)])+'\x0a',_0x5ba912+=_0x5358d1(0x201)+(_0x39d578[_0x5358d1(0x1e0)]||_0x4e8daa['IUbWG'])+'\x0a')),!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0x49f0f5[_0x5358d1(0x161)][_0x5358d1(0x1aa)]())&&(_0x4e8daa[_0x5358d1(0x1ed)](_0x4e8daa['GEVgQ'],_0x4e8daa['qUZBn'])?_0x1f4e37=_0x2e4c14:(_0x26f902=_0x4e8daa['DLYFI'],await _0x4e8daa['vzIKE'](reportToGalactusAndSendToEDS,_0x49f0f5,_0x3aa222,_0x26f902,messageTypes[_0x5358d1(0x1b8)],_0x4e8daa['DmWXH'],_0x4e8daa[_0x5358d1(0x1fe)],_0x4e8daa[_0x5358d1(0x156)]),logger[_0x5358d1(0x16e)](_0x26f902),!_0x49f0f5[_0x5358d1(0x161)]&&(_0x4e8daa[_0x5358d1(0x145)](_0x4e8daa[_0x5358d1(0x171)],_0x4e8daa[_0x5358d1(0x191)])?_0x5cd521[_0x5358d1(0x1df)](_0x4e8daa[_0x5358d1(0x1f8)]):(logger[_0x5358d1(0x207)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x49f0f5[_0x5358d1(0x161)]=DEFAULT_CLUSTER_DETAILS[_0x5358d1(0x1ab)])))),global_registry[_0x5358d1(0x1fb)]=_0x49f0f5[_0x5358d1(0x1fb)],global_registry[_0x5358d1(0x161)]=_0x49f0f5[_0x5358d1(0x161)],global_registry[_0x5358d1(0x1e1)]=_0x49f0f5[_0x5358d1(0x202)];}else _0x7ff814['info'](_0x5358d1(0x157)+_0x5c86cd[_0x5358d1(0x1fb)]+_0x5358d1(0x17c));}else{if(_0x49f0f5['gridProfile']){if(_0x4e8daa[_0x5358d1(0x12f)](_0x4e8daa['TAdPr'],_0x4e8daa['UTpNe'])){global_registry[_0x5358d1(0x1ae)]=_0x49f0f5[_0x5358d1(0x1ae)],logger[_0x5358d1(0x1ad)](_0x5358d1(0x1cb)+_0x49f0f5[_0x5358d1(0x1ae)]);const _0x758878='https://'+AG_API_URL+_0x5358d1(0x1e9),_0x22b9b2={};_0x22b9b2[_0x5358d1(0x12b)]=_0x4e8daa[_0x5358d1(0x13d)],_0x22b9b2[_0x5358d1(0x1b4)]=global_registry['authHeader'],_0x22b9b2['throwHttpErrors']=![];const _0x5df49d=_0x22b9b2,_0x23bec8=await _0x4e8daa[_0x5358d1(0x1b1)](got,_0x758878,_0x5df49d),_0x47a098=await _0x4e8daa[_0x5358d1(0x1e4)](responseValidation,_0x23bec8,_0x4e8daa[_0x5358d1(0x17a)],_0x4e8daa['ufOUQ'],_0x49f0f5,_0x3aa222);let _0x16de06={};if(_0x4e8daa[_0x5358d1(0x11e)](_0x47a098,0xc8)){if(_0x4e8daa[_0x5358d1(0x1ed)](_0x4e8daa[_0x5358d1(0x1fd)],_0x4e8daa[_0x5358d1(0x1fd)])){const _0x355a48=JSON[_0x5358d1(0x177)](_0x23bec8[_0x5358d1(0x136)]),_0x5bebd2=_0x355a48['find'](_0x41af13=>_0x41af13[_0x5358d1(0x124)]===_0x49f0f5['gridProfile'])||null;_0x4e8daa['wGSPO'](isUndefined,_0x5bebd2)?_0x4e8daa[_0x5358d1(0x133)](_0x4e8daa[_0x5358d1(0x14a)],_0x4e8daa[_0x5358d1(0x18b)])?(_0x5b053d[_0x5358d1(0x16e)](_0x4e8daa['QDNyv']),_0x49ed9f['exit'](0x1)):(_0x26f902=_0x5358d1(0x17b)+_0x49f0f5[_0x5358d1(0x1ae)]+_0x5358d1(0x1bf),await _0x4e8daa[_0x5358d1(0x150)](reportToGalactusAndSendToEDS,_0x49f0f5,_0x3aa222,_0x26f902,messageTypes[_0x5358d1(0x1b8)],_0x4e8daa[_0x5358d1(0x203)],_0x4e8daa[_0x5358d1(0x139)],_0x4e8daa[_0x5358d1(0x156)]),logger[_0x5358d1(0x16e)](_0x26f902),process['exit'](0x1)):_0x4e8daa[_0x5358d1(0x1ed)](_0x4e8daa['aUULN'],_0x4e8daa[_0x5358d1(0x115)])?_0x30da74[_0x5358d1(0x1df)](_0x4e8daa[_0x5358d1(0x1f3)]):_0x16de06=_0x5bebd2;}else _0x23a6d1+=_0x5358d1(0x143)+_0x4f43fa['clusterName']+_0x5358d1(0x11b);}else _0x4e8daa[_0x5358d1(0x12f)](_0x4e8daa['eaarA'],_0x4e8daa[_0x5358d1(0x173)])?(_0x8e3995[_0x5358d1(0x207)]('['+_0x2e5a51+_0x5358d1(0x111)+_0x5cd4f9[_0x5358d1(0x16b)]+'\x20data\x20:\x20'+_0x28284e['data']+'\x20error\x20:\x20'+_0x3b5408['error']),_0x548156['error']&&_0x4e034d[_0x5358d1(0x16e)]('error\x20stack\x20:\x20'+_0x586377[_0x5358d1(0x16e)][_0x5358d1(0x1e0)])):process[_0x5358d1(0x14c)](0x1);const _0xb6d973={};_0xb6d973[_0x5358d1(0x12c)]=WS_EVENTS[_0x5358d1(0x11a)],_0xb6d973[_0x5358d1(0x15e)]=_0x4e8daa[_0x5358d1(0x15b)],webSocketUtils[_0x5358d1(0x167)](_0x3aa222,_0xb6d973),global_registry[_0x5358d1(0x161)]=_0x16de06[_0x5358d1(0x161)],global_registry['clusterRegion']=_0x16de06[_0x5358d1(0x202)],global_registry[_0x5358d1(0x1fb)]=_0x16de06['clusterName'];}else _0x2ad723['push'](_0x4e8daa['NgGGx']);}else _0x4e8daa['hirfV'](_0x4e8daa[_0x5358d1(0x152)],_0x4e8daa[_0x5358d1(0x152)])?(_0x1fe404[_0x5358d1(0x207)](_0x5358d1(0x147)+_0x1892a8[_0x5358d1(0x1ab)]+'\x20'),_0x5e862b[_0x5358d1(0x161)]=_0x78d53b[_0x5358d1(0x1ab)]):(logger[_0x5358d1(0x16e)](_0x4e8daa[_0x5358d1(0x119)]),process[_0x5358d1(0x14c)](0x1));}}else _0x2bc5c0[_0x5358d1(0x14c)](0x1);}catch(_0x1b4565){if(_0x4e8daa[_0x5358d1(0x195)](_0x4e8daa['JDjio'],_0x4e8daa[_0x5358d1(0x178)]))_0x26f902=_0x5358d1(0x175)+_0x1b4565+':\x20'+_0x1b4565[_0x5358d1(0x1e0)],logger[_0x5358d1(0x16e)](_0x26f902),await _0x4e8daa['vzIKE'](reportToGalactusAndSendToEDS,_0x49f0f5,_0x3aa222,_0x26f902,messageTypes[_0x5358d1(0x1b8)],_0x4e8daa[_0x5358d1(0x203)],_0x4e8daa['NTzXZ'],_0x4e8daa[_0x5358d1(0x156)]),process[_0x5358d1(0x14c)](0x1);else{const _0x29beb2={};_0x29beb2[_0x5358d1(0x12c)]=_0x765c49[_0x5358d1(0x11a)],_0x29beb2[_0x5358d1(0x15e)]=_0x3ccd0c,_0x28534b[_0x5358d1(0x167)](_0x5001ac,_0x29beb2,_0x4e8daa['vBedU'],!![]);}}}function printResponse(_0x37c4ee,_0x34289c){const _0x523cb2=a17_0x1fbbf4,_0x422415={};_0x422415[_0x523cb2(0x1a2)]=function(_0x56c9de,_0x2434fa){return _0x56c9de+_0x2434fa;},_0x422415['byoml']=_0x523cb2(0x128),_0x422415[_0x523cb2(0x1f5)]=_0x523cb2(0x1b6),_0x422415[_0x523cb2(0x153)]=function(_0x33701b,_0x48bfb0){return _0x33701b||_0x48bfb0;},_0x422415[_0x523cb2(0x15a)]=_0x523cb2(0x126),_0x422415[_0x523cb2(0x123)]=_0x523cb2(0x17f),_0x422415[_0x523cb2(0x1b2)]=function(_0xb339db,_0x291729){return _0xb339db===_0x291729;},_0x422415['PziGJ']=_0x523cb2(0x159),_0x422415[_0x523cb2(0x174)]=_0x523cb2(0x170);const _0x46f9b1=_0x422415;logger[_0x523cb2(0x207)]('['+_0x37c4ee+_0x523cb2(0x111)+_0x34289c['status']+'\x20data\x20:\x20'+_0x34289c[_0x523cb2(0x168)]+_0x523cb2(0x11c)+_0x34289c['error']);if(_0x34289c['error']){if(_0x46f9b1[_0x523cb2(0x1b2)](_0x46f9b1['PziGJ'],_0x46f9b1[_0x523cb2(0x174)])){const {header:_0x544164,response:_0xabf85f}=_0x1e40d9,{status:_0x41c260,data:_0x5e356a,error:_0x3586ef}=_0xabf85f;_0x32cf14+=_0x544164+'\x20#'+_0x46f9b1[_0x523cb2(0x1a2)](_0x19ac82,0x1)+'\x0a',_0x4bec96+=_0x523cb2(0x114)+(_0x41c260?_0x46f9b1[_0x523cb2(0x1c9)]:_0x46f9b1[_0x523cb2(0x1f5)])+'\x0a',_0x23dd34+=_0x523cb2(0x151)+_0x46f9b1['HOyhD'](_0x5e356a,_0x46f9b1[_0x523cb2(0x15a)])+'\x0a',_0x3586ef&&(_0xad42e8+=_0x46f9b1[_0x523cb2(0x123)],_0x40e142+='\x20\x20Message:\x20'+(_0x3586ef[_0x523cb2(0x15e)]||_0x46f9b1['Ndflq'])+'\x0a',_0x5e32e3+='\x20\x20Code:\x20'+(_0x3586ef[_0x523cb2(0x188)]||_0x46f9b1[_0x523cb2(0x15a)])+'\x0a',_0x27d5b6+=_0x523cb2(0x201)+(_0x3586ef[_0x523cb2(0x1e0)]||_0x46f9b1[_0x523cb2(0x15a)])+'\x0a'),_0x7c9e64+='\x0a\x0a';}else logger[_0x523cb2(0x16e)]('error\x20stack\x20:\x20'+_0x34289c['error'][_0x523cb2(0x1e0)]);}}async function generateReport(_0x2d1fd1,_0x233e21){const _0x370639=a17_0x1fbbf4,_0x43dce6={'spkIM':function(_0x378ae8,_0x120d02){return _0x378ae8+_0x120d02;},'BXlgs':'Success','QGrlw':_0x370639(0x1b6),'MpcaY':function(_0x1b310a,_0x1aabdc){return _0x1b310a||_0x1aabdc;},'hhFkG':_0x370639(0x126),'zUauK':_0x370639(0x17f),'AOrrJ':_0x370639(0x13e),'jJDZP':function(_0x21398c,_0x5eaa5d){return _0x21398c!=_0x5eaa5d;},'VZLYk':_0x370639(0x182),'tkLBz':_0x370639(0x18f),'gVsYN':function(_0x5ef41c){return _0x5ef41c();}};let _0x2fd2c7='===\x20Precheck\x20Report\x20-\x20'+global_registry['cloudProvider']+_0x370639(0x1a9);return _0x2d1fd1['forEach']((_0x361a59,_0x42805a)=>{const _0x4c1d2e=_0x370639,{header:_0x418874,response:_0x11349b}=_0x361a59,{status:_0x4d447b,data:_0xbe03ae,error:_0x2b040a}=_0x11349b;_0x2fd2c7+=_0x418874+'\x20#'+_0x43dce6['spkIM'](_0x42805a,0x1)+'\x0a',_0x2fd2c7+=_0x4c1d2e(0x114)+(_0x4d447b?_0x43dce6[_0x4c1d2e(0x1f7)]:_0x43dce6[_0x4c1d2e(0x184)])+'\x0a',_0x2fd2c7+=_0x4c1d2e(0x151)+_0x43dce6[_0x4c1d2e(0x1c2)](_0xbe03ae,_0x43dce6[_0x4c1d2e(0x1af)])+'\x0a',_0x2b040a&&(_0x2fd2c7+=_0x43dce6['zUauK'],_0x2fd2c7+='\x20\x20Message:\x20'+(_0x2b040a[_0x4c1d2e(0x15e)]||_0x43dce6[_0x4c1d2e(0x1af)])+'\x0a',_0x2fd2c7+=_0x4c1d2e(0x120)+(_0x2b040a['code']||_0x43dce6[_0x4c1d2e(0x1af)])+'\x0a',_0x2fd2c7+=_0x4c1d2e(0x201)+(_0x2b040a[_0x4c1d2e(0x1e0)]||_0x43dce6[_0x4c1d2e(0x1af)])+'\x0a'),_0x2fd2c7+='\x0a\x0a';}),_0x2fd2c7+=_0x43dce6[_0x370639(0x18d)],_0x43dce6[_0x370639(0x1ac)](_0x233e21,null)?_0x2fd2c7+=_0x370639(0x143)+global_registry[_0x370639(0x1fb)]+'\x20'+(_0x233e21?_0x43dce6[_0x370639(0x1ba)]:_0x43dce6[_0x370639(0x1db)])+'\x0a\x0a':_0x2fd2c7+=_0x370639(0x143)+global_registry[_0x370639(0x1fb)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x2fd2c7+=_0x43dce6[_0x370639(0x148)](getSystemMetaData),_0x2fd2c7;};exports['handler']=async function(_0x320501){const _0xf82d27=a17_0x1fbbf4,_0x3a75ab={'OZYhb':function(_0x18d67f){return _0x18d67f();},'rAHri':function(_0x9e12bb){return _0x9e12bb();},'JJfBI':_0xf82d27(0x146),'wHOpX':function(_0x1df62c,_0x176944,_0x107893,_0x393afb,_0x5e3889,_0x2605c1,_0x4280c9,_0x5d3355){return _0x1df62c(_0x176944,_0x107893,_0x393afb,_0x5e3889,_0x2605c1,_0x4280c9,_0x5d3355);},'JsFwd':'pre-check-grid-called','ZLcAB':_0xf82d27(0x19b),'HzubY':_0xf82d27(0x16e),'dykdH':function(_0xe678b3,_0x11ba55,_0x27d353,_0x4dbdc8,_0x22372d,_0x40f596,_0x2e8cba){return _0xe678b3(_0x11ba55,_0x27d353,_0x4dbdc8,_0x22372d,_0x40f596,_0x2e8cba);},'kfypr':_0xf82d27(0x10f),'puJBa':_0xf82d27(0x1c5),'jYren':function(_0x1294a3,_0xc4bb6e,_0x5e96c2){return _0x1294a3(_0xc4bb6e,_0x5e96c2);},'wGRhB':function(_0x2a1851,_0x1c5c51,_0x379e23,_0x5dca68,_0x28c194,_0x2f3171,_0x3b0866){return _0x2a1851(_0x1c5c51,_0x379e23,_0x5dca68,_0x28c194,_0x2f3171,_0x3b0866);},'GskAg':_0xf82d27(0x16c),'icXxM':_0xf82d27(0x1dc),'zjlde':_0xf82d27(0x1ff),'OStmO':function(_0x5429e2,_0x20d16d,_0x13eff3,_0x13a76b,_0x1e400a,_0x11c5b4,_0x22ff31,_0xef5f66){return _0x5429e2(_0x20d16d,_0x13eff3,_0x13a76b,_0x1e400a,_0x11c5b4,_0x22ff31,_0xef5f66);},'kIXtD':_0xf82d27(0x1f1),'wcJUH':function(_0x49bbf3){return _0x49bbf3();},'gwtsm':'isTrialGridAccessible','QxNqf':function(_0x1fb65d,_0x169d8f){return _0x1fb65d(_0x169d8f);},'NtZzk':'TLSv1_2_client_method','OcfmI':function(_0x32a419,_0x536199,_0x1aa205){return _0x32a419(_0x536199,_0x1aa205);},'iFDpE':'isTls1_2_SUPPORTED','uwPtW':_0xf82d27(0x19c),'Pxzsd':_0xf82d27(0x1d3),'qVsAM':_0xf82d27(0x1d0),'UlAxH':_0xf82d27(0x14b),'DAsdp':function(_0x34fff6,_0x288c81){return _0x34fff6+_0x288c81;},'prekp':_0xf82d27(0x1a6),'HHSah':function(_0x505f87,_0x212b82,_0x160f4d,_0x52af04,_0x160ced,_0x59f9aa,_0x3fa09c){return _0x505f87(_0x212b82,_0x160f4d,_0x52af04,_0x160ced,_0x59f9aa,_0x3fa09c);},'DSRci':'pre-check-failed'};let _0x47e1b2,_0x4c5e7;try{global_registry[_0xf82d27(0x134)]=_0x3a75ab['OZYhb'](uuidv4);!fs[_0xf82d27(0x17d)](_0x3a75ab[_0xf82d27(0x116)](getCredentialsPath))&&(_0x4c5e7=_0x3a75ab[_0xf82d27(0x1cf)],logger[_0xf82d27(0x16e)](_0x4c5e7),await _0x3a75ab['wHOpX'](reportToGalactusAndSendToEDS,_0x320501,_0x47e1b2,_0x4c5e7,messageTypes[_0xf82d27(0x1b8)],_0x3a75ab[_0xf82d27(0x163)],_0x3a75ab[_0xf82d27(0x160)],_0x3a75ab['HzubY']),process[_0xf82d27(0x14c)](0x1));_0x3a75ab[_0xf82d27(0x187)](sendInstrumentationEvent,_0x320501,_0x3a75ab[_0xf82d27(0x163)],messageTypes[_0xf82d27(0x1eb)],null,null,_0x320501);const _0x469397=JSON[_0xf82d27(0x177)](fs['readFileSync'](_0x3a75ab[_0xf82d27(0x116)](getCredentialsPath)));global_registry[_0xf82d27(0x1e6)]=_0x469397['Browserstack']['username'],global_registry[_0xf82d27(0x1de)]=_0x469397['Browserstack'][_0xf82d27(0x205)];const _0x169857=WS_ENDPOINT[_0xf82d27(0x13b)](_0x3a75ab['kfypr'],_0x469397[_0xf82d27(0x1f2)][_0xf82d27(0x1a1)])[_0xf82d27(0x13b)](_0x3a75ab['puJBa'],_0x469397[_0xf82d27(0x1f2)][_0xf82d27(0x205)]),_0x493ccc={};_0x493ccc[_0xf82d27(0x1e3)]=ws,_0x493ccc[_0xf82d27(0x1ca)]=0x36ee80,_0x47e1b2=new ReconnectingWebSocket(_0x169857,[],_0x493ccc),global_registry[_0xf82d27(0x1d4)]=_0x3a75ab[_0xf82d27(0x19e)](getAuthHeader,global_registry[_0xf82d27(0x1e6)],global_registry[_0xf82d27(0x1de)]),await _0x3a75ab[_0xf82d27(0x19e)](inputValidation,_0x320501,_0x47e1b2),logger[_0xf82d27(0x207)](_0xf82d27(0x16d)+global_registry['cloudProvider']+'\x20region\x20-\x20'+global_registry[_0xf82d27(0x1e1)]);let _0x521ab4=await _0x3a75ab[_0xf82d27(0x179)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry['clusterName'],_0x3a75ab['GskAg'],_0x47e1b2,webSocketUtils,_0x320501);const _0x373881=await _0x521ab4[_0xf82d27(0x1e2)]();_0x3a75ab[_0xf82d27(0x19e)](printResponse,_0x3a75ab['icXxM'],_0x373881),_0x521ab4=await _0x521ab4[_0xf82d27(0x110)]();let _0x5a1111=![];try{_0x5a1111=await _0x521ab4[_0xf82d27(0x208)]();}catch(_0x378f57){const _0x239917=_0x3a75ab[_0xf82d27(0x149)][_0xf82d27(0x19a)]('|');let _0x191845=0x0;while(!![]){switch(_0x239917[_0x191845++]){case'0':_0x4c5e7=_0xf82d27(0x17e)+global_registry[_0xf82d27(0x1fb)]+_0xf82d27(0x197)+global_registry[_0xf82d27(0x1e1)]+_0xf82d27(0x206)+_0x378f57;continue;case'1':logger[_0xf82d27(0x16e)](_0x4c5e7);continue;case'2':_0x4c5e7+='\x0a'+JSON[_0xf82d27(0x16f)](_0x378f57[_0xf82d27(0x1e0)]);continue;case'3':_0x5a1111=null;continue;case'4':await _0x3a75ab[_0xf82d27(0x196)](reportToGalactusAndSendToEDS,_0x320501,_0x47e1b2,_0x4c5e7,messageTypes[_0xf82d27(0x1b8)],_0x3a75ab[_0xf82d27(0x163)],'cluster-check-failed-'+global_registry[_0xf82d27(0x161)],_0x3a75ab[_0xf82d27(0x18a)]);continue;}break;}}_0x5a1111&&logger[_0xf82d27(0x207)]('Cluster\x20`'+global_registry[_0xf82d27(0x1fb)]+_0xf82d27(0x17c));const _0x2de260=await _0x521ab4[_0xf82d27(0x158)]();_0x3a75ab[_0xf82d27(0x19e)](printResponse,_0x3a75ab[_0xf82d27(0x166)],_0x2de260);const _0x4f23ba=await _0x3a75ab[_0xf82d27(0x1bd)](curlRequest);_0x3a75ab[_0xf82d27(0x19e)](printResponse,_0x3a75ab[_0xf82d27(0x1c3)],_0x4f23ba);const _0x59438b=await _0x3a75ab['QxNqf'](isTlsSupported,_0x3a75ab[_0xf82d27(0x1c0)]);_0x3a75ab[_0xf82d27(0x138)](printResponse,_0x3a75ab[_0xf82d27(0x14d)],_0x59438b);const _0x11bd68={};_0x11bd68['header']=_0x3a75ab[_0xf82d27(0x132)],_0x11bd68[_0xf82d27(0x135)]=_0x373881;const _0x3cb987={};_0x3cb987[_0xf82d27(0x1b5)]=_0x3a75ab[_0xf82d27(0x10e)],_0x3cb987[_0xf82d27(0x135)]=_0x2de260;const _0x2abfd3={};_0x2abfd3[_0xf82d27(0x1b5)]=_0x3a75ab[_0xf82d27(0x118)],_0x2abfd3['response']=_0x4f23ba;const _0x3ad166={};_0x3ad166[_0xf82d27(0x1b5)]=_0x3a75ab[_0xf82d27(0x1f0)],_0x3ad166['response']=_0x59438b;const _0x56379f=[_0x11bd68,_0x3cb987,_0x2abfd3,_0x3ad166],_0x568a97=await _0x3a75ab[_0xf82d27(0x19e)](generateReport,_0x56379f,_0x5a1111),_0x3ba4ec=new Date(),_0x49dd54=_0x3ba4ec[_0xf82d27(0x185)]()+'_'+_0x3a75ab[_0xf82d27(0x11d)](_0x3ba4ec[_0xf82d27(0x1f9)](),0x1)+'_'+_0x3ba4ec[_0xf82d27(0x1c7)]()+'_'+_0x3ba4ec[_0xf82d27(0x144)]()+'_'+_0x3ba4ec[_0xf82d27(0x200)](),_0x28b287=_0xf82d27(0x127)+_0x49dd54+'.txt';fs['writeFileSync'](_0x28b287,_0x568a97,_0x3a75ab[_0xf82d27(0x176)]),logger[_0xf82d27(0x207)](_0xf82d27(0x1c8)+_0x28b287),process[_0xf82d27(0x14c)](0x0);}catch(_0x16ad56){let _0x47e876=_0xf82d27(0x194)+_0x16ad56+'\x20';logger[_0xf82d27(0x16e)](_0x47e876),_0x47e876+='\x0a'+JSON['stringify'](_0x16ad56[_0xf82d27(0x1e0)]),logger['debug'](_0xf82d27(0x172)+_0x16ad56[_0xf82d27(0x1e0)]);if(_0x47e1b2){const _0x1d8c34={};_0x1d8c34[_0xf82d27(0x12c)]=WS_EVENTS[_0xf82d27(0x11a)],_0x1d8c34['message']=_0x47e876,webSocketUtils[_0xf82d27(0x167)](_0x47e1b2,_0x1d8c34,_0x3a75ab[_0xf82d27(0x18a)],!![]);}await webSocketUtils[_0xf82d27(0x180)](0x7d0);const _0x2b6d42={};_0x2b6d42[_0xf82d27(0x16e)]=_0x47e876,await _0x3a75ab[_0xf82d27(0x1ef)](sendInstrumentationEvent,_0x320501,_0x3a75ab[_0xf82d27(0x163)],messageTypes[_0xf82d27(0x1b8)],_0x3a75ab[_0xf82d27(0x155)],_0x2b6d42,_0x320501),process[_0xf82d27(0x14c)](0x1);}};
|
|
1
|
+
function a17_0x3597(_0x5c5b6a,_0x47ae12){const _0x27aac5=a17_0x27aa();return a17_0x3597=function(_0x35970e,_0x55ee7e){_0x35970e=_0x35970e-0x1c9;let _0x396c33=_0x27aac5[_0x35970e];return _0x396c33;},a17_0x3597(_0x5c5b6a,_0x47ae12);}const a17_0x5db0cb=a17_0x3597;(function(_0x42c882,_0x22b29c){const _0x3cf6e7=a17_0x3597,_0x57e4d4=_0x42c882();while(!![]){try{const _0x54e98e=-parseInt(_0x3cf6e7(0x232))/0x1*(-parseInt(_0x3cf6e7(0x271))/0x2)+parseInt(_0x3cf6e7(0x2c2))/0x3*(-parseInt(_0x3cf6e7(0x231))/0x4)+parseInt(_0x3cf6e7(0x23b))/0x5+parseInt(_0x3cf6e7(0x212))/0x6+-parseInt(_0x3cf6e7(0x281))/0x7+-parseInt(_0x3cf6e7(0x27d))/0x8*(parseInt(_0x3cf6e7(0x2a9))/0x9)+parseInt(_0x3cf6e7(0x24b))/0xa;if(_0x54e98e===_0x22b29c)break;else _0x57e4d4['push'](_0x57e4d4['shift']());}catch(_0x19422f){_0x57e4d4['push'](_0x57e4d4['shift']());}}}(a17_0x27aa,0x6d332));const fs=require('fs'),ws=require('ws'),got=require(a17_0x5db0cb(0x1de)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x5db0cb(0x27e)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x5db0cb(0x224)),{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_0x5db0cb(0x25b)),{getCloudProviderObjectWithOutInit}=require(a17_0x5db0cb(0x250)),webSocketUtils=require(a17_0x5db0cb(0x1d3)),{sendInstrumentationEvent}=require(a17_0x5db0cb(0x263));exports[a17_0x5db0cb(0x288)]=a17_0x5db0cb(0x25d),exports[a17_0x5db0cb(0x22a)]=a17_0x5db0cb(0x275),exports[a17_0x5db0cb(0x206)]=function(_0x34997a){const _0x5ec796=a17_0x5db0cb,_0x17e605={};_0x17e605['XRKZx']=_0x5ec796(0x24d),_0x17e605['ulzGs']=_0x5ec796(0x1d7),_0x17e605[_0x5ec796(0x296)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x17e605['FAEMC']=_0x5ec796(0x26f),_0x17e605[_0x5ec796(0x1f9)]=_0x5ec796(0x2a1),_0x17e605[_0x5ec796(0x1cd)]=_0x5ec796(0x256);const _0x1f10c1=_0x17e605,_0x1a4e77={};_0x1a4e77[_0x5ec796(0x2b1)]=_0x1f10c1['XRKZx'],_0x1a4e77[_0x5ec796(0x230)]=_0x1f10c1[_0x5ec796(0x205)];const _0x2924b3={};_0x2924b3[_0x5ec796(0x2b1)]=_0x1f10c1[_0x5ec796(0x296)],_0x2924b3[_0x5ec796(0x230)]=_0x1f10c1[_0x5ec796(0x205)];const _0x24ec72={};_0x24ec72['description']=_0x1f10c1[_0x5ec796(0x216)],_0x24ec72['type']=_0x1f10c1[_0x5ec796(0x205)];const _0x2d8c19={};_0x2d8c19[_0x5ec796(0x2b1)]=_0x1f10c1['crTAU'],_0x2d8c19[_0x5ec796(0x230)]=_0x1f10c1[_0x5ec796(0x205)];const _0x276ec6={};return _0x276ec6[_0x5ec796(0x211)]=_0x1a4e77,_0x276ec6[_0x5ec796(0x262)]=_0x2924b3,_0x276ec6[_0x5ec796(0x1dd)]=_0x24ec72,_0x276ec6['grid-profile']=_0x2d8c19,_0x34997a[_0x5ec796(0x274)](HELP_HEADER_MESSAGE[_0x5ec796(0x1e4)])[_0x5ec796(0x2c1)](HELP_FOOTER_MESSAGE)['options'](_0x276ec6)[_0x5ec796(0x256)](_0x1f10c1[_0x5ec796(0x1cd)])['argv'];};async function inputValidation(_0x1ff63a,_0x1ba643){const _0xbac165=a17_0x5db0cb,_0x193bc9={'oreWg':_0xbac165(0x1dd),'MboWU':function(_0x33663f,_0x5de73e){return _0x33663f+_0x5de73e;},'onDVF':_0xbac165(0x258),'WSHlB':'Failure','IaCtS':function(_0x1a10f2,_0x195c1c){return _0x1a10f2||_0x195c1c;},'qIiKI':_0xbac165(0x1ee),'sqjid':_0xbac165(0x2ae),'YQWGd':_0xbac165(0x236),'SlZMt':_0xbac165(0x286),'mryHG':'cloud-provider','PxBoB':_0xbac165(0x24d),'PrPbK':_0xbac165(0x1d7),'hErAs':_0xbac165(0x22d),'BsAlW':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','tdrug':_0xbac165(0x2a1),'VKHXK':_0xbac165(0x256),'KPMdh':_0xbac165(0x211),'zPVBh':_0xbac165(0x22e),'GJYDA':function(_0x28d8cf,_0x11c2e6){return _0x28d8cf===_0x11c2e6;},'gAYey':_0xbac165(0x251),'btWzO':function(_0x40c70f,_0x447c89){return _0x40c70f!==_0x447c89;},'OuMsD':_0xbac165(0x1e8),'mQJqf':'oxHlp','sBDTo':_0xbac165(0x203),'JRctL':function(_0x34f2a7,_0x512336){return _0x34f2a7!==_0x512336;},'swuit':_0xbac165(0x28a),'hXBel':_0xbac165(0x242),'vTseg':function(_0x281a57,_0x4bd1be){return _0x281a57!==_0x4bd1be;},'bhMJA':_0xbac165(0x299),'yrFRE':'Rouit','rfjhF':function(_0x4f6903,_0x566c8b){return _0x4f6903>_0x566c8b;},'usMnZ':_0xbac165(0x21f),'qTTRf':function(_0x5c2ad7,_0x559149,_0x206c63,_0x499c0b,_0x1a85fc,_0x451163,_0x22e9a6,_0x2973dd){return _0x5c2ad7(_0x559149,_0x206c63,_0x499c0b,_0x1a85fc,_0x451163,_0x22e9a6,_0x2973dd);},'sUQYu':_0xbac165(0x241),'dwmFP':_0xbac165(0x200),'ndTJb':_0xbac165(0x2c0),'dKkrq':_0xbac165(0x26c),'WBPHW':'KSGIe','rQBir':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','vydbH':_0xbac165(0x2c3),'Fdjnf':_0xbac165(0x290),'axEDy':_0xbac165(0x1e6),'Rutdm':function(_0x4d5b0f,_0x2d515b){return _0x4d5b0f!==_0x2d515b;},'EucVt':'KSuUG','tdoUB':_0xbac165(0x2bc),'Nhznx':_0xbac165(0x29d),'DgvNw':function(_0xa2cc7c,_0x4709fc,_0x2cbf07){return _0xa2cc7c(_0x4709fc,_0x2cbf07);},'yyEpt':function(_0x4a3046,_0x127fac,_0x387bbc,_0x30bb25,_0x3aea71,_0x1284af){return _0x4a3046(_0x127fac,_0x387bbc,_0x30bb25,_0x3aea71,_0x1284af);},'wHBpV':_0xbac165(0x26a),'oCeNV':'grid-profile','RocYC':function(_0x4b0a69,_0x3c01a7){return _0x4b0a69!==_0x3c01a7;},'FsMvp':_0xbac165(0x213),'QWKuv':function(_0x2825c4,_0x256945){return _0x2825c4(_0x256945);},'hHNAf':function(_0x335712,_0x466de8){return _0x335712!==_0x466de8;},'UGxjB':_0xbac165(0x2b5),'ZNRaZ':'AyZAo','qjogi':function(_0x1e7871,_0x387f0a,_0x5a79f6,_0x3e8b4c,_0x54c1f5,_0x59a349,_0x528e41,_0x47bfa1){return _0x1e7871(_0x387f0a,_0x5a79f6,_0x3e8b4c,_0x54c1f5,_0x59a349,_0x528e41,_0x47bfa1);},'hUZVm':'pre-check-grid-profile-empty','WYUxn':function(_0x222274,_0xebf448){return _0x222274!==_0xebf448;},'FGEqO':_0xbac165(0x1f1),'UlKsX':_0xbac165(0x201),'ijWaC':_0xbac165(0x1d4),'YylRS':_0xbac165(0x22f),'nDzho':function(_0x4e619d,_0x550ae5){return _0x4e619d===_0x550ae5;},'cSmGp':_0xbac165(0x1ef),'FyjjO':'OVuYn','LRnCr':'yRKCQ','iRRLy':_0xbac165(0x240)};let _0xcbb2fe;try{if(_0x193bc9[_0xbac165(0x24a)](_0x193bc9['gAYey'],_0x193bc9[_0xbac165(0x289)])){if(_0x1ff63a['clusterName']||_0x1ff63a[_0xbac165(0x23a)]||_0x1ff63a[_0xbac165(0x1dd)]){if(_0x193bc9['btWzO'](_0x193bc9[_0xbac165(0x265)],_0x193bc9[_0xbac165(0x265)]))_0x31b694[_0xbac165(0x233)](0x1);else{const _0x2ee1e3=[];!_0x1ff63a[_0xbac165(0x21b)]&&(_0x193bc9['btWzO'](_0x193bc9['mQJqf'],_0x193bc9['sBDTo'])?_0x2ee1e3['push'](_0x193bc9['KPMdh']):_0x239d0b[_0xbac165(0x247)](_0x193bc9[_0xbac165(0x29a)]));;if(!_0x1ff63a['cloudProvider']){if(_0x193bc9[_0xbac165(0x2ba)](_0x193bc9['swuit'],_0x193bc9[_0xbac165(0x21d)]))_0x2ee1e3[_0xbac165(0x247)](_0x193bc9[_0xbac165(0x217)]);else{const {header:_0x4e333e,response:_0x3287b3}=_0x5e93b1,{status:_0x5456e4,data:_0x155466,error:_0x11ae2a}=_0x3287b3;_0x383e48+=_0x4e333e+'\x20#'+_0x193bc9['MboWU'](_0x5dbf66,0x1)+'\x0a',_0x18cf37+='Status:\x20'+(_0x5456e4?_0x193bc9[_0xbac165(0x1f4)]:_0x193bc9[_0xbac165(0x1d2)])+'\x0a',_0x34664a+=_0xbac165(0x202)+_0x193bc9[_0xbac165(0x2b8)](_0x155466,_0x193bc9[_0xbac165(0x227)])+'\x0a',_0x11ae2a&&(_0x541cae+=_0x193bc9[_0xbac165(0x279)],_0x930b5f+=_0xbac165(0x1f5)+(_0x11ae2a[_0xbac165(0x1fd)]||_0x193bc9[_0xbac165(0x227)])+'\x0a',_0x5097e6+=_0xbac165(0x284)+(_0x11ae2a[_0xbac165(0x1db)]||_0x193bc9[_0xbac165(0x227)])+'\x0a',_0x49e2b7+=_0xbac165(0x222)+(_0x11ae2a[_0xbac165(0x20d)]||_0x193bc9[_0xbac165(0x227)])+'\x0a'),_0x3915e4+='\x0a\x0a';}};!_0x1ff63a[_0xbac165(0x1dd)]&&(_0x193bc9[_0xbac165(0x2af)](_0x193bc9['bhMJA'],_0x193bc9[_0xbac165(0x1e5)])?_0x2ee1e3[_0xbac165(0x247)](_0x193bc9[_0xbac165(0x29a)]):(_0x28e677+=_0x193bc9['sqjid'],_0x4c4d2a+=_0xbac165(0x1f5)+(_0x198c9a[_0xbac165(0x1fd)]||_0x193bc9[_0xbac165(0x227)])+'\x0a',_0x56e775+=_0xbac165(0x284)+(_0x3b5ff8[_0xbac165(0x1db)]||_0x193bc9[_0xbac165(0x227)])+'\x0a',_0x1b4109+=_0xbac165(0x222)+(_0x40a2fd[_0xbac165(0x20d)]||_0x193bc9[_0xbac165(0x227)])+'\x0a'));;_0x193bc9[_0xbac165(0x20b)](_0x2ee1e3[_0xbac165(0x20c)],0x0)&&(_0x193bc9[_0xbac165(0x2af)](_0x193bc9[_0xbac165(0x2b7)],_0x193bc9[_0xbac165(0x2b7)])?_0x3d2cad[_0xbac165(0x2c0)]('error\x20stack\x20:\x20'+_0x121881[_0xbac165(0x2c0)][_0xbac165(0x20d)]):(_0xcbb2fe=_0xbac165(0x294)+_0x2ee1e3['join'](',\x20')+_0xbac165(0x1dc),await _0x193bc9[_0xbac165(0x238)](reportToGalactusAndSendToEDS,_0x1ff63a,_0x1ba643,_0xcbb2fe,messageTypes[_0xbac165(0x1e2)],_0x193bc9['sUQYu'],_0x193bc9[_0xbac165(0x1f2)],_0x193bc9[_0xbac165(0x207)]),logger[_0xbac165(0x2c0)](_0xcbb2fe),process[_0xbac165(0x233)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0xbac165(0x23d)](_0x1ff63a[_0xbac165(0x23a)]['toLowerCase']())&&(_0x193bc9[_0xbac165(0x2ba)](_0x193bc9[_0xbac165(0x215)],_0x193bc9['WBPHW'])?(_0xcbb2fe=_0x193bc9[_0xbac165(0x22b)],await _0x193bc9['qTTRf'](reportToGalactusAndSendToEDS,_0x1ff63a,_0x1ba643,_0xcbb2fe,messageTypes['ERROR'],_0x193bc9['sUQYu'],_0x193bc9['vydbH'],_0x193bc9[_0xbac165(0x207)]),logger['error'](_0xcbb2fe),!_0x1ff63a[_0xbac165(0x23a)]&&(_0x193bc9[_0xbac165(0x24a)](_0x193bc9[_0xbac165(0x1df)],_0x193bc9[_0xbac165(0x20e)])?_0x24091f=_0x13a680:(logger[_0xbac165(0x1fb)](_0xbac165(0x246)+DEFAULT_CLUSTER_DETAILS[_0xbac165(0x1d5)]+'\x20'),_0x1ff63a[_0xbac165(0x23a)]=DEFAULT_CLUSTER_DETAILS[_0xbac165(0x1d5)]))):_0x1646fe+='Cluster\x20'+_0x198e32[_0xbac165(0x21b)]+'\x20'+(_0x53b14e?_0x193bc9[_0xbac165(0x28c)]:_0x193bc9[_0xbac165(0x261)])+'\x0a\x0a'),global_registry[_0xbac165(0x21b)]=_0x1ff63a['clusterName'],global_registry[_0xbac165(0x23a)]=_0x1ff63a[_0xbac165(0x23a)],global_registry[_0xbac165(0x2a0)]=_0x1ff63a[_0xbac165(0x1dd)];}}else{if(_0x1ff63a[_0xbac165(0x280)]){if(_0x193bc9[_0xbac165(0x234)](_0x193bc9[_0xbac165(0x2a2)],_0x193bc9[_0xbac165(0x1d1)])){global_registry[_0xbac165(0x280)]=_0x1ff63a[_0xbac165(0x280)],logger['debug'](_0xbac165(0x272)+_0x1ff63a['gridProfile']);const _0x56f655=_0xbac165(0x2a6)+AG_API_URL+_0xbac165(0x1ec),_0x27dfce={};_0x27dfce[_0xbac165(0x21c)]=_0x193bc9[_0xbac165(0x297)],_0x27dfce[_0xbac165(0x208)]=global_registry[_0xbac165(0x2a5)],_0x27dfce['throwHttpErrors']=![];const _0x584826=_0x27dfce,_0x623483=await _0x193bc9[_0xbac165(0x219)](got,_0x56f655,_0x584826),_0x5d6c42=await _0x193bc9[_0xbac165(0x2ab)](responseValidation,_0x623483,_0x193bc9['wHBpV'],_0x193bc9['oCeNV'],_0x1ff63a,_0x1ba643);let _0x436e94={};if(_0x193bc9['GJYDA'](_0x5d6c42,0xc8)){if(_0x193bc9['RocYC'](_0x193bc9['FsMvp'],_0x193bc9[_0xbac165(0x27b)]))_0x205723['push'](_0x193bc9[_0xbac165(0x217)]);else{const _0x10eb98=JSON[_0xbac165(0x26e)](_0x623483[_0xbac165(0x283)]),_0x4d22e=_0x10eb98[_0xbac165(0x1d8)](_0x2e8d2f=>_0x2e8d2f['name']===_0x1ff63a[_0xbac165(0x280)])||null;if(_0x193bc9[_0xbac165(0x2b2)](isUndefined,_0x4d22e))_0x193bc9['hHNAf'](_0x193bc9[_0xbac165(0x2b9)],_0x193bc9[_0xbac165(0x245)])?(_0xcbb2fe=_0xbac165(0x1e1)+_0x1ff63a[_0xbac165(0x280)]+_0xbac165(0x2bf),await _0x193bc9[_0xbac165(0x1ff)](reportToGalactusAndSendToEDS,_0x1ff63a,_0x1ba643,_0xcbb2fe,messageTypes[_0xbac165(0x1e2)],_0x193bc9['sUQYu'],_0x193bc9['hUZVm'],_0x193bc9[_0xbac165(0x207)]),logger[_0xbac165(0x2c0)](_0xcbb2fe),process[_0xbac165(0x233)](0x1)):(_0x4af1d4['info']('['+_0x1df1e2+']\x20status\x20:\x20'+_0x39f054[_0xbac165(0x1ed)]+_0xbac165(0x26b)+_0x29097c[_0xbac165(0x2aa)]+'\x20error\x20:\x20'+_0xbf1463[_0xbac165(0x2c0)]),_0xa66a04['error']&&_0x4ae823[_0xbac165(0x2c0)](_0xbac165(0x293)+_0x33171c['error'][_0xbac165(0x20d)]));else{if(_0x193bc9['WYUxn'](_0x193bc9[_0xbac165(0x22c)],_0x193bc9[_0xbac165(0x228)]))_0x436e94=_0x4d22e;else{const _0x267dce={};_0x267dce[_0xbac165(0x2b1)]=_0x193bc9[_0xbac165(0x25e)],_0x267dce['type']=_0x193bc9[_0xbac165(0x1cb)];const _0x2d4892={};_0x2d4892['description']=_0x193bc9[_0xbac165(0x248)],_0x2d4892['type']=_0x193bc9[_0xbac165(0x1cb)];const _0x552cbc={};_0x552cbc['description']=_0x193bc9['BsAlW'],_0x552cbc[_0xbac165(0x230)]=_0x193bc9[_0xbac165(0x1cb)];const _0x111523={};_0x111523[_0xbac165(0x2b1)]=_0x193bc9[_0xbac165(0x1cc)],_0x111523[_0xbac165(0x230)]=_0x193bc9[_0xbac165(0x1cb)];const _0x203dc3={};return _0x203dc3[_0xbac165(0x211)]=_0x267dce,_0x203dc3[_0xbac165(0x262)]=_0x2d4892,_0x203dc3[_0xbac165(0x1dd)]=_0x552cbc,_0x203dc3[_0xbac165(0x1cf)]=_0x111523,_0x523f6d[_0xbac165(0x274)](_0x29bdd9[_0xbac165(0x1e4)])['epilogue'](_0x216aca)['options'](_0x203dc3)['help'](_0x193bc9[_0xbac165(0x29c)])[_0xbac165(0x28e)];}}}}else _0x193bc9['vTseg'](_0x193bc9[_0xbac165(0x29b)],_0x193bc9[_0xbac165(0x29b)])?_0x3edc4b[_0xbac165(0x1fb)](_0xbac165(0x2bb)+_0x4aa2fd[_0xbac165(0x21b)]+_0xbac165(0x1e9)):process[_0xbac165(0x233)](0x1);const _0x4e3de1={};_0x4e3de1[_0xbac165(0x230)]=WS_EVENTS[_0xbac165(0x1e7)],_0x4e3de1[_0xbac165(0x1fd)]=_0x193bc9[_0xbac165(0x254)],webSocketUtils[_0xbac165(0x278)](_0x1ba643,_0x4e3de1),global_registry[_0xbac165(0x23a)]=_0x436e94[_0xbac165(0x23a)],global_registry[_0xbac165(0x2a0)]=_0x436e94['region'],global_registry['clusterName']=_0x436e94['clusterName'];}else _0x20fe73+=_0xbac165(0x1f8)+_0x300bba[_0xbac165(0x21b)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';}else _0x193bc9['nDzho'](_0x193bc9[_0xbac165(0x2be)],_0x193bc9[_0xbac165(0x26d)])?_0x20c5b6['push'](_0x193bc9[_0xbac165(0x1d0)]):(logger['error'](_0x193bc9[_0xbac165(0x249)]),process[_0xbac165(0x233)](0x1));}}else _0x1833ea[_0xbac165(0x1fb)](_0xbac165(0x246)+_0x3cf964[_0xbac165(0x1d5)]+'\x20'),_0x350854['cloudProvider']=_0x3b825a[_0xbac165(0x1d5)];}catch(_0x47fb75){_0x193bc9['WYUxn'](_0x193bc9['LRnCr'],_0x193bc9['iRRLy'])?(_0xcbb2fe='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x47fb75+':\x20'+_0x47fb75[_0xbac165(0x20d)],logger[_0xbac165(0x2c0)](_0xcbb2fe),await _0x193bc9[_0xbac165(0x1ff)](reportToGalactusAndSendToEDS,_0x1ff63a,_0x1ba643,_0xcbb2fe,messageTypes[_0xbac165(0x1e2)],_0x193bc9[_0xbac165(0x298)],_0x193bc9[_0xbac165(0x229)],_0x193bc9['ndTJb']),process[_0xbac165(0x233)](0x1)):(_0x15fdfd[_0xbac165(0x2c0)](_0x193bc9['zPVBh']),_0x5c8cd0[_0xbac165(0x233)](0x1));}}function a17_0x27aa(){const _0x25c1c6=['username','xUSDm','SDUmK','pre-check','\x20data\x20:\x20','gGkgH','FyjjO','parse','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','isCliToolInstalled','1236470vBrcxg','grid\x20profile\x20flow\x20','pre-check-failed','usage','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','response','writeFileSync','sendEventToBackend','sqjid','Browserstack','FsMvp','pEhgb','8FiDfHz','reconnecting-websocket','pgueR','gridProfile','5246605SGvKFA','KYKsx','body','\x20\x20Code:\x20','dummy-grid','will\x20be\x20created','init','command','gAYey','oeBtL','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','YQWGd','\x20error\x20:\x20','argv','WebSocket','bjHIg','bmZPR','rBRGq','error\x20stack\x20:\x20','Missing\x20required\x20arguments:\x20','rAtUY','whgpX','Nhznx','sUQYu','tzXMJ','oreWg','ijWaC','VKHXK','GET','connectionTimeout','<UsernamePlaceholder>','clusterRegion','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','EucVt','existsSync','Cluster\x20details\x0a-----------------------\x0a','authHeader','https://','wEkvF','getUTCDate','1386378afGmBd','data','yyEpt','ZRjPT','WJuma','Error\x20Details:\x0a','vTseg','QsaEa','description','QWKuv','TLSv1_2_client_method','PgRXV','fAbuL','urYLp','usMnZ','IaCtS','UGxjB','JRctL','Cluster\x20`','sMouO','VYlKM','cSmGp','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','error','epilogue','3CJxaMm','cloud-provider-not-supported','Failed\x20in\x20pre-check!\x20Error:\x20','SSL\x20Configured','PrPbK','tdrug','wDUJr','FMwns','grid-profile','KPMdh','tdoUB','WSHlB','../../utils/webSocketUtils','TCsMI','CLOUD_PROVIDER','header','string','find','delay','qoFGY','code','.\x20Please\x20provide\x20all\x20required\x20arguments.','region','got','Fdjnf','AbEqp','Invalid\x20input.\x20grid\x20profiles:\x20','ERROR','utf-8','pre_check','yrFRE','wiGFU','LOG','HtnVu','`\x20already\x20exists','INFO','debug','/packages/cli/get-all-grid-profiles','status','N/A','XJgtK','IhBlP','ffYxi','dwmFP','VXNHY','onDVF','\x20\x20Message:\x20','KZVlf','cluster-check-failed-','Cluster\x20','crTAU','ymvwz','info','getUTCMonth','message','Tool\x20Installed','qjogi','pre-check-cluster-args-not-passed','YnBHH','Message:\x20','KDizV','stack\x20trace\x20','ulzGs','builder','ndTJb','headers','bstackAccesskey','\x20===\x0a\x0a','rfjhF','length','stack','axEDy','User\x20Access','split','cluster-name','3343656mmpQyU','gDVAY','lGhxP','dKkrq','FAEMC','mryHG','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','DgvNw','bElLz','clusterName','method','hXBel','bstackUsername','euoxz','rkNNi','unable\x20to\x20verify\x20if\x20cluster\x20`','\x20\x20Stack:\x20','requestId','../../config/logger','stringify','Report\x20saved\x20in\x20','qIiKI','UlKsX','vydbH','desc','rQBir','FGEqO','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','Grid\x20profile\x20fetched\x20for\x20pre-check','type','3520924LlqAOh','1tyBijr','exit','Rutdm','password','is\x20already\x20present','AQgAR','qTTRf','`\x20is\x20present\x20in\x20region\x20`','cloudProvider','2312615dlXTeZ','Whitelisted\x20browserstack','includes','getUTCFullYear','AWeYL','WYMGi','pre-check-grid-called','HkBbh','caoGn','BOfFv','ZNRaZ','Setting\x20cloud\x20provider\x20as\x20','push','hErAs','zPVBh','GJYDA','5930360EUClEV','zbgtu','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','\x20region\x20-\x20','.txt','../../cloudproviders/utils','bkyjM','getUTCMinutes','CHIDR','YylRS','rqlzC','help','mYfVS','Success','<PasswordPlaceholder>','BgjUl','../../config/constants','isClusterPresent','grid','PxBoB','Pre-check\x20running\x20for\x20Cloud\x20-\x20','toolInstalledResp','SlZMt','cloud-provider','../../utils/instrumentationUtils','LPtId','OuMsD','===\x20Precheck\x20Report\x20-\x20'];a17_0x27aa=function(){return _0x25c1c6;};return a17_0x27aa();}function printResponse(_0x33dccb,_0x260bff){const _0x5c7c9e=a17_0x5db0cb,_0xf8ee4d={};_0xf8ee4d['AQgAR']=_0x5c7c9e(0x2c0),_0xf8ee4d[_0x5c7c9e(0x282)]=function(_0x45e045,_0xdbf78d){return _0x45e045===_0xdbf78d;},_0xf8ee4d[_0x5c7c9e(0x27c)]=_0x5c7c9e(0x2ac);const _0x30917b=_0xf8ee4d;logger[_0x5c7c9e(0x1fb)]('['+_0x33dccb+']\x20status\x20:\x20'+_0x260bff['status']+_0x5c7c9e(0x26b)+_0x260bff[_0x5c7c9e(0x2aa)]+_0x5c7c9e(0x28d)+_0x260bff[_0x5c7c9e(0x2c0)]);if(_0x260bff[_0x5c7c9e(0x2c0)]){if(_0x30917b[_0x5c7c9e(0x282)](_0x30917b['pEhgb'],_0x30917b[_0x5c7c9e(0x27c)]))logger[_0x5c7c9e(0x2c0)](_0x5c7c9e(0x293)+_0x260bff['error'][_0x5c7c9e(0x20d)]);else{const _0x58253a={};_0x58253a[_0x5c7c9e(0x230)]=_0x568d9d[_0x5c7c9e(0x1e7)],_0x58253a['message']=_0xdb5070,_0x283177[_0x5c7c9e(0x278)](_0x30e098,_0x58253a,_0x30917b[_0x5c7c9e(0x237)],!![]);}}}async function generateReport(_0x724895,_0x5067ed){const _0x59f13a=a17_0x5db0cb,_0x3c9f0e={'QsaEa':function(_0x4f58a0,_0x37d4a0){return _0x4f58a0+_0x37d4a0;},'RNHmj':_0x59f13a(0x258),'ilgmS':'Failure','wEkvF':function(_0x27869d,_0x51c943){return _0x27869d||_0x51c943;},'KZVlf':_0x59f13a(0x1ee),'CHIDR':_0x59f13a(0x2ae),'WJuma':_0x59f13a(0x2a4),'rkNNi':function(_0x4c8291,_0xbfdbb8){return _0x4c8291!=_0xbfdbb8;},'SDUmK':_0x59f13a(0x236),'caoGn':_0x59f13a(0x286),'rAtUY':function(_0xf65a31){return _0xf65a31();}};let _0x2eaacc=_0x59f13a(0x266)+global_registry[_0x59f13a(0x23a)]+_0x59f13a(0x20a);return _0x724895['forEach']((_0x2cb75e,_0x426d96)=>{const _0x488120=_0x59f13a,{header:_0x52faa1,response:_0x5c360c}=_0x2cb75e,{status:_0x745bda,data:_0x38ae36,error:_0x42ef8d}=_0x5c360c;_0x2eaacc+=_0x52faa1+'\x20#'+_0x3c9f0e[_0x488120(0x2b0)](_0x426d96,0x1)+'\x0a',_0x2eaacc+='Status:\x20'+(_0x745bda?_0x3c9f0e['RNHmj']:_0x3c9f0e['ilgmS'])+'\x0a',_0x2eaacc+=_0x488120(0x202)+_0x3c9f0e[_0x488120(0x2a7)](_0x38ae36,_0x3c9f0e[_0x488120(0x1f6)])+'\x0a',_0x42ef8d&&(_0x2eaacc+=_0x3c9f0e[_0x488120(0x253)],_0x2eaacc+=_0x488120(0x1f5)+(_0x42ef8d[_0x488120(0x1fd)]||_0x3c9f0e[_0x488120(0x1f6)])+'\x0a',_0x2eaacc+=_0x488120(0x284)+(_0x42ef8d[_0x488120(0x1db)]||_0x3c9f0e['KZVlf'])+'\x0a',_0x2eaacc+=_0x488120(0x222)+(_0x42ef8d['stack']||_0x3c9f0e['KZVlf'])+'\x0a'),_0x2eaacc+='\x0a\x0a';}),_0x2eaacc+=_0x3c9f0e[_0x59f13a(0x2ad)],_0x3c9f0e[_0x59f13a(0x220)](_0x5067ed,null)?_0x2eaacc+='Cluster\x20'+global_registry['clusterName']+'\x20'+(_0x5067ed?_0x3c9f0e[_0x59f13a(0x269)]:_0x3c9f0e[_0x59f13a(0x243)])+'\x0a\x0a':_0x2eaacc+=_0x59f13a(0x1f8)+global_registry['clusterName']+_0x59f13a(0x28b),_0x2eaacc+=_0x3c9f0e[_0x59f13a(0x295)](getSystemMetaData),_0x2eaacc;};exports['handler']=async function(_0x4629d5){const _0x2e3824=a17_0x5db0cb,_0x48cf7c={'pgueR':function(_0x302001){return _0x302001();},'rqlzC':_0x2e3824(0x218),'BgjUl':function(_0x1ff645,_0x3dce56,_0x4e177a,_0x47cc7a,_0x37ad0b,_0x50e0ea,_0x15ece3,_0x21b67a){return _0x1ff645(_0x3dce56,_0x4e177a,_0x47cc7a,_0x37ad0b,_0x50e0ea,_0x15ece3,_0x21b67a);},'PgRXV':_0x2e3824(0x241),'LPtId':'credential-not-found','AbEqp':_0x2e3824(0x2c0),'hHhkB':function(_0x5a471c,_0x37fbaa,_0x580cf5,_0xdb9f8b,_0x48355b,_0x2ae4d8,_0x1962d2){return _0x5a471c(_0x37fbaa,_0x580cf5,_0xdb9f8b,_0x48355b,_0x2ae4d8,_0x1962d2);},'rBRGq':function(_0xd68014){return _0xd68014();},'Xulje':_0x2e3824(0x29f),'ymvwz':_0x2e3824(0x259),'IAutn':function(_0x355824,_0x14f1f8,_0x4d0072){return _0x355824(_0x14f1f8,_0x4d0072);},'zWpjY':function(_0x288fe0,_0x5dfdd9,_0x4e7eaa){return _0x288fe0(_0x5dfdd9,_0x4e7eaa);},'bmZPR':function(_0x54813c,_0x39c0b6,_0x47f827,_0x2c91c8,_0x10d8d4,_0x2f630d,_0x251f71){return _0x54813c(_0x39c0b6,_0x47f827,_0x2c91c8,_0x10d8d4,_0x2f630d,_0x251f71);},'FMwns':_0x2e3824(0x285),'qoFGY':_0x2e3824(0x260),'IhBlP':'4|2|0|1|3','Wworl':function(_0x2c8938,_0xa9b464,_0x717a14){return _0x2c8938(_0xa9b464,_0x717a14);},'lGhxP':'accessResp','WyfFr':function(_0x93ec72,_0x1af51b,_0x3e8193){return _0x93ec72(_0x1af51b,_0x3e8193);},'urYLp':'isTrialGridAccessible','mYfVS':function(_0x108d5e,_0x413b87){return _0x108d5e(_0x413b87);},'bElLz':_0x2e3824(0x2b3),'BOfFv':function(_0x27d3b0,_0x312bc4,_0x48b878){return _0x27d3b0(_0x312bc4,_0x48b878);},'FtbTE':'isTls1_2_SUPPORTED','laXMn':_0x2e3824(0x1fe),'Synnx':_0x2e3824(0x20f),'xUSDm':_0x2e3824(0x23c),'nsbNC':_0x2e3824(0x1ca),'VXNHY':function(_0x540439,_0x2d1a58,_0xf5a368){return _0x540439(_0x2d1a58,_0xf5a368);},'VYlKM':function(_0x227b10,_0x21b546){return _0x227b10+_0x21b546;},'zbgtu':_0x2e3824(0x1e3),'AWeYL':_0x2e3824(0x273)};let _0x16459d,_0x34b1d2;try{global_registry[_0x2e3824(0x223)]=_0x48cf7c[_0x2e3824(0x27f)](uuidv4);!fs[_0x2e3824(0x2a3)](_0x48cf7c[_0x2e3824(0x27f)](getCredentialsPath))&&(_0x34b1d2=_0x48cf7c[_0x2e3824(0x255)],logger['error'](_0x34b1d2),await _0x48cf7c[_0x2e3824(0x25a)](reportToGalactusAndSendToEDS,_0x4629d5,_0x16459d,_0x34b1d2,messageTypes['ERROR'],_0x48cf7c[_0x2e3824(0x2b4)],_0x48cf7c[_0x2e3824(0x264)],_0x48cf7c[_0x2e3824(0x1e0)]),process[_0x2e3824(0x233)](0x1));_0x48cf7c['hHhkB'](sendInstrumentationEvent,_0x4629d5,_0x48cf7c[_0x2e3824(0x2b4)],messageTypes[_0x2e3824(0x1ea)],null,null,_0x4629d5);const _0x55f34a=JSON[_0x2e3824(0x26e)](fs['readFileSync'](_0x48cf7c[_0x2e3824(0x292)](getCredentialsPath)));global_registry['bstackUsername']=_0x55f34a['Browserstack'][_0x2e3824(0x267)],global_registry[_0x2e3824(0x209)]=_0x55f34a[_0x2e3824(0x27a)]['password'];const _0x2ba977=WS_ENDPOINT['replace'](_0x48cf7c['Xulje'],_0x55f34a[_0x2e3824(0x27a)][_0x2e3824(0x267)])['replace'](_0x48cf7c[_0x2e3824(0x1fa)],_0x55f34a[_0x2e3824(0x27a)][_0x2e3824(0x235)]),_0x496c2b={};_0x496c2b[_0x2e3824(0x28f)]=ws,_0x496c2b[_0x2e3824(0x29e)]=0x36ee80,_0x16459d=new ReconnectingWebSocket(_0x2ba977,[],_0x496c2b),global_registry[_0x2e3824(0x2a5)]=_0x48cf7c['IAutn'](getAuthHeader,global_registry[_0x2e3824(0x21e)],global_registry[_0x2e3824(0x209)]),await _0x48cf7c['zWpjY'](inputValidation,_0x4629d5,_0x16459d),logger[_0x2e3824(0x1fb)](_0x2e3824(0x25f)+global_registry['cloudProvider']+_0x2e3824(0x24e)+global_registry[_0x2e3824(0x2a0)]);let _0x29dcee=await _0x48cf7c[_0x2e3824(0x291)](getCloudProviderObjectWithOutInit,global_registry[_0x2e3824(0x23a)],global_registry[_0x2e3824(0x21b)],_0x48cf7c[_0x2e3824(0x1ce)],_0x16459d,webSocketUtils,_0x4629d5);const _0x21bf69=await _0x29dcee[_0x2e3824(0x270)]();_0x48cf7c['zWpjY'](printResponse,_0x48cf7c[_0x2e3824(0x1da)],_0x21bf69),_0x29dcee=await _0x29dcee[_0x2e3824(0x287)]();let _0x288aaf=![];try{_0x288aaf=await _0x29dcee[_0x2e3824(0x25c)]();}catch(_0x45a530){const _0x1fc4d3=_0x48cf7c[_0x2e3824(0x1f0)][_0x2e3824(0x210)]('|');let _0x75cd4f=0x0;while(!![]){switch(_0x1fc4d3[_0x75cd4f++]){case'0':logger[_0x2e3824(0x2c0)](_0x34b1d2);continue;case'1':_0x34b1d2+='\x0a'+JSON[_0x2e3824(0x225)](_0x45a530['stack']);continue;case'2':_0x288aaf=null;continue;case'3':await _0x48cf7c[_0x2e3824(0x25a)](reportToGalactusAndSendToEDS,_0x4629d5,_0x16459d,_0x34b1d2,messageTypes[_0x2e3824(0x1e2)],_0x48cf7c[_0x2e3824(0x2b4)],_0x2e3824(0x1f7)+global_registry[_0x2e3824(0x23a)],_0x48cf7c[_0x2e3824(0x1e0)]);continue;case'4':_0x34b1d2=_0x2e3824(0x221)+global_registry[_0x2e3824(0x21b)]+_0x2e3824(0x239)+global_registry['clusterRegion']+'`\x20,error\x20:\x20'+_0x45a530;continue;}break;}}_0x288aaf&&logger[_0x2e3824(0x1fb)](_0x2e3824(0x2bb)+global_registry[_0x2e3824(0x21b)]+_0x2e3824(0x1e9));const _0x4d1532=await _0x29dcee['checkAccess']();_0x48cf7c['Wworl'](printResponse,_0x48cf7c[_0x2e3824(0x214)],_0x4d1532);const _0x29c6ea=await _0x48cf7c['pgueR'](curlRequest);_0x48cf7c['WyfFr'](printResponse,_0x48cf7c[_0x2e3824(0x2b6)],_0x29c6ea);const _0x1efdcf=await _0x48cf7c[_0x2e3824(0x257)](isTlsSupported,_0x48cf7c[_0x2e3824(0x21a)]);_0x48cf7c[_0x2e3824(0x244)](printResponse,_0x48cf7c['FtbTE'],_0x1efdcf);const _0x1344ef={};_0x1344ef['header']=_0x48cf7c['laXMn'],_0x1344ef[_0x2e3824(0x276)]=_0x21bf69;const _0x1b49b3={};_0x1b49b3[_0x2e3824(0x1d6)]=_0x48cf7c['Synnx'],_0x1b49b3['response']=_0x4d1532;const _0x152bd7={};_0x152bd7[_0x2e3824(0x1d6)]=_0x48cf7c[_0x2e3824(0x268)],_0x152bd7[_0x2e3824(0x276)]=_0x29c6ea;const _0x58a881={};_0x58a881[_0x2e3824(0x1d6)]=_0x48cf7c['nsbNC'],_0x58a881[_0x2e3824(0x276)]=_0x1efdcf;const _0x3fb653=[_0x1344ef,_0x1b49b3,_0x152bd7,_0x58a881],_0x58ce00=await _0x48cf7c[_0x2e3824(0x1f3)](generateReport,_0x3fb653,_0x288aaf),_0x155967=new Date(),_0x1b7677=_0x155967[_0x2e3824(0x23e)]()+'_'+_0x48cf7c[_0x2e3824(0x2bd)](_0x155967[_0x2e3824(0x1fc)](),0x1)+'_'+_0x155967[_0x2e3824(0x2a8)]()+'_'+_0x155967['getUTCHours']()+'_'+_0x155967[_0x2e3824(0x252)](),_0x4c0bdd='log/report_'+_0x1b7677+_0x2e3824(0x24f);fs[_0x2e3824(0x277)](_0x4c0bdd,_0x58ce00,_0x48cf7c[_0x2e3824(0x24c)]),logger[_0x2e3824(0x1fb)](_0x2e3824(0x226)+_0x4c0bdd),process[_0x2e3824(0x233)](0x0);}catch(_0x48e2b2){let _0x41eec8=_0x2e3824(0x1c9)+_0x48e2b2+'\x20';logger['error'](_0x41eec8),_0x41eec8+='\x0a'+JSON[_0x2e3824(0x225)](_0x48e2b2[_0x2e3824(0x20d)]),logger[_0x2e3824(0x1eb)](_0x2e3824(0x204)+_0x48e2b2[_0x2e3824(0x20d)]);if(_0x16459d){const _0x47ee6e={};_0x47ee6e[_0x2e3824(0x230)]=WS_EVENTS[_0x2e3824(0x1e7)],_0x47ee6e[_0x2e3824(0x1fd)]=_0x41eec8,webSocketUtils[_0x2e3824(0x278)](_0x16459d,_0x47ee6e,_0x48cf7c[_0x2e3824(0x1e0)],!![]);}await webSocketUtils[_0x2e3824(0x1d9)](0x7d0);const _0x2e38b8={};_0x2e38b8[_0x2e3824(0x2c0)]=_0x41eec8,await _0x48cf7c['hHhkB'](sendInstrumentationEvent,_0x4629d5,_0x48cf7c[_0x2e3824(0x2b4)],messageTypes[_0x2e3824(0x1e2)],_0x48cf7c[_0x2e3824(0x23f)],_0x2e38b8,_0x4629d5),process[_0x2e3824(0x233)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a18_0x22f2bc=a18_0x2a1a;(function(_0x36e61e,_0x2e6cef){const _0x5f53ee=a18_0x2a1a,_0x1d9e2f=_0x36e61e();while(!![]){try{const _0x3e5df7=parseInt(_0x5f53ee(0x1cb))/0x1*(-parseInt(_0x5f53ee(0x1d1))/0x2)+-parseInt(_0x5f53ee(0x1da))/0x3*(-parseInt(_0x5f53ee(0x1cc))/0x4)+-parseInt(_0x5f53ee(0x1d5))/0x5*(-parseInt(_0x5f53ee(0x1ce))/0x6)+parseInt(_0x5f53ee(0x1d2))/0x7*(parseInt(_0x5f53ee(0x1de))/0x8)+parseInt(_0x5f53ee(0x1cd))/0x9*(parseInt(_0x5f53ee(0x1c7))/0xa)+parseInt(_0x5f53ee(0x1d3))/0xb+-parseInt(_0x5f53ee(0x1d9))/0xc*(parseInt(_0x5f53ee(0x1d4))/0xd);if(_0x3e5df7===_0x2e6cef)break;else _0x1d9e2f['push'](_0x1d9e2f['shift']());}catch(_0xbf2102){_0x1d9e2f['push'](_0x1d9e2f['shift']());}}}(a18_0x3a23,0x35bf2));function a18_0x2a1a(_0x290609,_0x5cbb93){const _0x3a2327=a18_0x3a23();return a18_0x2a1a=function(_0x2a1a6d,_0x5005a3){_0x2a1a6d=_0x2a1a6d-0x1c7;let _0x282743=_0x3a2327[_0x2a1a6d];return _0x282743;},a18_0x2a1a(_0x290609,_0x5cbb93);}function a18_0x3a23(){const _0x4c78b4=['2640IkAOXi','133899vwGrBY','tgjcZ','desc','usage','16xqZEsv','start','10MRtAAq','recommendCommands','start_commands','KXxOr','1wJNAqp','16YmzsFw','937305aMCnyk','99150WtugOm','help','strict','795734vAybhE','328741rvFEwZ','2950860geUhXX','26975OgnNJj','130mFtaon','builder','epilogue','commandDir'];a18_0x3a23=function(){return _0x4c78b4;};return a18_0x3a23();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a18_0x22f2bc(0x1df),exports[a18_0x22f2bc(0x1dc)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a18_0x22f2bc(0x1d6)]=function(_0x3d7910){const _0x5a629f=a18_0x22f2bc,_0x11dd49={};_0x11dd49[_0x5a629f(0x1db)]=_0x5a629f(0x1c9),_0x11dd49['KXxOr']=_0x5a629f(0x1cf);const _0x531b41=_0x11dd49;return _0x3d7910[_0x5a629f(0x1dd)](HELP_HEADER_MESSAGE[_0x5a629f(0x1df)])[_0x5a629f(0x1d7)](HELP_FOOTER_MESSAGE)[_0x5a629f(0x1d8)](_0x531b41['tgjcZ'])['demandCommand']()[_0x5a629f(0x1c8)]()[_0x5a629f(0x1d0)]()[_0x5a629f(0x1cf)](_0x531b41[_0x5a629f(0x1ca)]);},exports['handler']=function(_0x1cd280){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a19_0x53a2ae=a19_0x1bc3;function a19_0x1bc3(_0x9c309a,_0x3ee803){const _0x3f0a6b=a19_0x3f0a();return a19_0x1bc3=function(_0x1bc344,_0x5bb2c7){_0x1bc344=_0x1bc344-0x1ac;let _0x335e5f=_0x3f0a6b[_0x1bc344];return _0x335e5f;},a19_0x1bc3(_0x9c309a,_0x3ee803);}(function(_0x24643c,_0x9d7962){const _0x39de00=a19_0x1bc3,_0x267643=_0x24643c();while(!![]){try{const _0x2e8f84=parseInt(_0x39de00(0x1fd))/0x1+-parseInt(_0x39de00(0x1e1))/0x2+parseInt(_0x39de00(0x1de))/0x3*(-parseInt(_0x39de00(0x1ec))/0x4)+parseInt(_0x39de00(0x201))/0x5*(-parseInt(_0x39de00(0x1ac))/0x6)+-parseInt(_0x39de00(0x1e0))/0x7+-parseInt(_0x39de00(0x1cf))/0x8+parseInt(_0x39de00(0x1e2))/0x9;if(_0x2e8f84===_0x9d7962)break;else _0x267643['push'](_0x267643['shift']());}catch(_0x26ce52){_0x267643['push'](_0x267643['shift']());}}}(a19_0x3f0a,0xe6f77));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x53a2ae(0x1b2)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x53a2ae(0x1b4)),{logger}=require(a19_0x53a2ae(0x1b1)),{getCredentialsPath,getGridDetails}=require(a19_0x53a2ae(0x1d0)),{scaleUpHubDeployment}=require(a19_0x53a2ae(0x1fb)),{sendInstrumentationEvent}=require(a19_0x53a2ae(0x1bd)),webSocketUtils=require(a19_0x53a2ae(0x1ea)),{createK8sClient}=require(a19_0x53a2ae(0x1fc)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a19_0x3f0a(){const _0x47c2b7=['grid-id','statusCode','ooYpN','Adding\x20Websocket\x20listeners','ERROR','boolean','BHPvn','stringify','whCYF','lyOfR','gridId','14280128TakRWD','../../utils/utilityMethods','server-error','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','skipTlsCertVerify','clusterName','epilogue','username','DQrnd','nuAnQ','existsSync','replace','region','init-not-called','desc','150wHwPQV','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','6986231EcXnMx','3366586ptMxFm','56538657cjxRui','lFBGI','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','uHyqH','clusterRegion','readFileSync','options','start-grid-called','../../utils/webSocketUtils','stack','60808wlGnAN','WZNsK','WebSocket','qQAbH','INFO','error','Browserstack','cASZW','Start\x20an\x20existing\x20Automation\x20grid.','description','exit','info','connectionTimeout','McfHb','handler','../../utils/gridComponents','../../utils/createk8sClient','1403761YpSJFK','rZlbW','rKDxh','Grid\x20started','2522255RyZFRr','unauthorised','command','message','start','user','JGnhc','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','invalid-grid-id','18poVrIi','<PasswordPlaceholder>','parse','vgsLr','default','../../config/logger','reconnecting-websocket','cloudProvider','../../config/constants','ISSoX','debug','bKAop','body','OFGJx','JjTgm','type','skip-tls-cert-verify','../../utils/instrumentationUtils','grid','help','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','password','PGdgl','addListeners'];a19_0x3f0a=function(){return _0x47c2b7;};return a19_0x3f0a();}exports[a19_0x53a2ae(0x203)]=a19_0x53a2ae(0x1be),exports[a19_0x53a2ae(0x1dd)]=a19_0x53a2ae(0x1f4),exports['builder']=function(_0xa8111c){const _0x5a3abf=a19_0x53a2ae,_0x2a66d5={};_0x2a66d5['uHyqH']=_0x5a3abf(0x208),_0x2a66d5['nuAnQ']='string',_0x2a66d5[_0x5a3abf(0x1fe)]='Skip\x20insecure\x20cert\x20verification.',_0x2a66d5['ISSoX']=_0x5a3abf(0x1c9),_0x2a66d5[_0x5a3abf(0x1af)]='help';const _0x2246c0=_0x2a66d5,_0x373fb2={};_0x373fb2[_0x5a3abf(0x1f5)]=_0x2246c0[_0x5a3abf(0x1e5)],_0x373fb2['type']=_0x2246c0[_0x5a3abf(0x1d8)];const _0x402f9e={};_0x402f9e['description']=_0x2246c0['rZlbW'],_0x402f9e[_0x5a3abf(0x1bb)]=_0x2246c0[_0x5a3abf(0x1b5)],_0x402f9e[_0x5a3abf(0x1b0)]=![];const _0x1f25ed={};return _0x1f25ed[_0x5a3abf(0x1c4)]=_0x373fb2,_0x1f25ed[_0x5a3abf(0x1bc)]=_0x402f9e,_0xa8111c['usage'](HELP_HEADER_MESSAGE[_0x5a3abf(0x205)])[_0x5a3abf(0x1d5)](HELP_FOOTER_MESSAGE)[_0x5a3abf(0x1e8)](_0x1f25ed)[_0x5a3abf(0x1bf)](_0x2246c0[_0x5a3abf(0x1af)])['argv'];},exports[a19_0x53a2ae(0x1fa)]=async function(_0x2deb13){const _0x15272b=a19_0x53a2ae,_0x175d11={'WZNsK':_0x15272b(0x1d2),'PGdgl':function(_0x3a3d88){return _0x3a3d88();},'PtPyH':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','rKDxh':function(_0x173553,_0x1ae482,_0x2ec9a5,_0x15c62a,_0x3eb2e4,_0x304da7,_0x9a6eb3){return _0x173553(_0x1ae482,_0x2ec9a5,_0x15c62a,_0x3eb2e4,_0x304da7,_0x9a6eb3);},'DQrnd':_0x15272b(0x1e9),'Bmwbr':_0x15272b(0x1dc),'bKAop':'<UsernamePlaceholder>','whCYF':_0x15272b(0x1ad),'QZNUg':_0x15272b(0x1c7),'JGnhc':function(_0x37c0f3,_0x1c4023,_0x42e7df,_0x2416b4){return _0x37c0f3(_0x1c4023,_0x42e7df,_0x2416b4);},'JjTgm':function(_0xa21e4a,_0x14dc4d,_0x2ed8ba,_0x77b771,_0x651717,_0x1f8c80,_0x35fc74){return _0xa21e4a(_0x14dc4d,_0x2ed8ba,_0x77b771,_0x651717,_0x1f8c80,_0x35fc74);},'ooYpN':function(_0x39c490,_0x4c969c,_0x360338){return _0x39c490(_0x4c969c,_0x360338);},'lyOfR':function(_0x266e6e,_0x9f7cd2,_0x378dae){return _0x266e6e(_0x9f7cd2,_0x378dae);},'qQAbH':_0x15272b(0x200),'PVHvH':function(_0x91af1b,_0x383876){return _0x91af1b===_0x383876;},'OFGJx':_0x15272b(0x1e4),'iCrcL':function(_0x58aae0,_0x4c865e,_0x5bc714,_0x1a1064,_0x43aa64,_0x491432,_0x366e84){return _0x58aae0(_0x4c865e,_0x5bc714,_0x1a1064,_0x43aa64,_0x491432,_0x366e84);},'McfHb':_0x15272b(0x202),'YJtEF':function(_0x4e3e63,_0x3a8520){return _0x4e3e63===_0x3a8520;},'cASZW':function(_0x3f4488,_0x83223e,_0x45b572,_0x5d832a,_0x562c3e,_0x4ae76f,_0x4f96f1){return _0x3f4488(_0x83223e,_0x45b572,_0x5d832a,_0x562c3e,_0x4ae76f,_0x4f96f1);},'sUPNa':_0x15272b(0x209),'BHPvn':function(_0x2414f8,_0xbbf06d,_0x855c1a,_0x572e60,_0x5e719b,_0x203594,_0x32e79d){return _0x2414f8(_0xbbf06d,_0x855c1a,_0x572e60,_0x5e719b,_0x203594,_0x32e79d);},'lFBGI':_0x15272b(0x1d1)};let _0x51d64c;try{!_0x2deb13['gridId']&&(logger[_0x15272b(0x1f1)](_0x175d11[_0x15272b(0x1ed)]),process[_0x15272b(0x1f6)](0x1));!fs[_0x15272b(0x1d9)](_0x175d11[_0x15272b(0x1c2)](getCredentialsPath))&&(logger[_0x15272b(0x1f1)](_0x175d11['PtPyH']),await _0x175d11[_0x15272b(0x1ff)](sendInstrumentationEvent,_0x2deb13,_0x175d11[_0x15272b(0x1d7)],messageTypes[_0x15272b(0x1c8)],_0x175d11['Bmwbr'],null,_0x2deb13),process[_0x15272b(0x1f6)](0x1));logger['info']('Starting\x20grid\x20'+_0x2deb13['gridId']),await _0x175d11['rKDxh'](sendInstrumentationEvent,_0x2deb13,_0x175d11[_0x15272b(0x1d7)],messageTypes[_0x15272b(0x1f0)],null,null,_0x2deb13);const _0x4f91c3=JSON['parse'](fs[_0x15272b(0x1e7)](_0x175d11[_0x15272b(0x1c2)](getCredentialsPath)));global_registry['bstackUsername']=_0x4f91c3[_0x15272b(0x1f2)]['username'],global_registry['bstackAccesskey']=_0x4f91c3[_0x15272b(0x1f2)][_0x15272b(0x1c1)];const _0x264691=WS_ENDPOINT[_0x15272b(0x1da)](_0x175d11[_0x15272b(0x1b7)],_0x4f91c3[_0x15272b(0x1f2)]['username'])[_0x15272b(0x1da)](_0x175d11[_0x15272b(0x1cc)],_0x4f91c3[_0x15272b(0x1f2)]['password']),_0x51efc0={};_0x51efc0[_0x15272b(0x1ee)]=ws,_0x51efc0[_0x15272b(0x1f8)]=0x36ee80,_0x51d64c=new ReconnectingWebSocket(_0x264691,[],_0x51efc0),logger[_0x15272b(0x1b6)](_0x175d11['QZNUg']),webSocketUtils[_0x15272b(0x1c3)](_0x51d64c,_0x2deb13[_0x15272b(0x206)],_0x2deb13[_0x15272b(0x1c1)]);const [_0x3a6a8c,_0x51d40b]=await _0x175d11[_0x15272b(0x207)](getGridDetails,_0x4f91c3['Browserstack'][_0x15272b(0x1d6)],_0x4f91c3[_0x15272b(0x1f2)][_0x15272b(0x1c1)],_0x2deb13[_0x15272b(0x1ce)]);if(_0x51d40b){const _0x25faf8=_0x51d40b[_0x15272b(0x1f7)];global_registry[_0x15272b(0x1b3)]=_0x25faf8[_0x15272b(0x1b3)],global_registry[_0x15272b(0x1e6)]=_0x25faf8[_0x15272b(0x1db)],global_registry[_0x15272b(0x1d4)]=_0x25faf8['clusterName'];const _0x7daee2=await _0x175d11[_0x15272b(0x1ba)](getCloudProviderObject,_0x25faf8[_0x15272b(0x1b3)],_0x25faf8[_0x15272b(0x1d4)],_0x25faf8['name'],_0x51d64c,webSocketUtils,_0x2deb13),[_0x335092,_0x109be6,_0x2ff657,_0x186976,_0x5970fc,_0x32adbd]=await _0x175d11[_0x15272b(0x1c6)](createK8sClient,_0x7daee2,_0x2deb13[_0x15272b(0x1d3)]);await _0x175d11[_0x15272b(0x1cd)](scaleUpHubDeployment,_0x109be6,_0x25faf8['name']),logger[_0x15272b(0x1f7)](_0x175d11[_0x15272b(0x1ef)]),process[_0x15272b(0x1f6)](0x0);}_0x175d11['PVHvH'](_0x3a6a8c[_0x15272b(0x1c5)],0x191)&&(logger[_0x15272b(0x1f1)](_0x175d11[_0x15272b(0x1b9)]),await _0x175d11['iCrcL'](sendInstrumentationEvent,_0x2deb13,_0x175d11[_0x15272b(0x1d7)],messageTypes[_0x15272b(0x1c8)],_0x175d11[_0x15272b(0x1f9)],null,_0x2deb13),process[_0x15272b(0x1f6)](0x1)),_0x175d11['YJtEF'](_0x3a6a8c[_0x15272b(0x1c5)],0x190)&&(logger[_0x15272b(0x1f1)](JSON[_0x15272b(0x1ae)](_0x3a6a8c[_0x15272b(0x1b8)])[_0x15272b(0x204)]),await _0x175d11[_0x15272b(0x1f3)](sendInstrumentationEvent,_0x2deb13,_0x175d11['DQrnd'],messageTypes[_0x15272b(0x1c8)],_0x175d11['sUPNa'],null,_0x2deb13),process[_0x15272b(0x1f6)](0x1)),logger[_0x15272b(0x1f1)](_0x15272b(0x1df)+JSON[_0x15272b(0x1cb)](_0x3a6a8c)),await _0x175d11[_0x15272b(0x1ca)](sendInstrumentationEvent,_0x2deb13,_0x175d11[_0x15272b(0x1d7)],messageTypes[_0x15272b(0x1c8)],_0x175d11[_0x15272b(0x1e3)],_0x3a6a8c,_0x2deb13),process['exit'](0x1);}catch(_0x5ea806){const _0x2f3139=_0x15272b(0x1c0)+_0x5ea806+'\x20\x0a'+JSON['stringify'](_0x5ea806[_0x15272b(0x1eb)])+'\x20';logger[_0x15272b(0x1f1)](_0x2f3139),process['exit'](0x1);}};
|
package/ats/src/commands/stop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a20_0x4533(_0x3e2d99,_0x54d973){const _0x16ee44=a20_0x16ee();return a20_0x4533=function(_0x45334f,_0xba7571){_0x45334f=_0x45334f-0xc0;let _0x335f32=_0x16ee44[_0x45334f];return _0x335f32;},a20_0x4533(_0x3e2d99,_0x54d973);}function a20_0x16ee(){const _0x23fe04=['1140BcCOwE','11ZbgWrk','usage','1478561ikNZbf','../config/constants','RglMe','recommendCommands','epilogue','3753750pPnRsI','6bErqBI','1447435MzHBuR','1617087txAmLV','demandCommand','help','3955536kXqRhC','106084famqqj','desc','commandDir','strict','BCtsK','stop_commands','39834XSrBAS','Stop\x20a\x20running\x20Automation\x20grid.','4jbJhTi','handler','builder'];a20_0x16ee=function(){return _0x23fe04;};return a20_0x16ee();}const a20_0x17cff2=a20_0x4533;(function(_0x497c5f,_0x5aa94a){const _0x2404b4=a20_0x4533,_0x2033d7=_0x497c5f();while(!![]){try{const _0xe8eaed=parseInt(_0x2404b4(0xc1))/0x1*(-parseInt(_0x2404b4(0xcf))/0x2)+-parseInt(_0x2404b4(0xcb))/0x3*(parseInt(_0x2404b4(0xd7))/0x4)+-parseInt(_0x2404b4(0xca))/0x5*(-parseInt(_0x2404b4(0xc9))/0x6)+-parseInt(_0x2404b4(0xc3))/0x7+parseInt(_0x2404b4(0xce))/0x8+parseInt(_0x2404b4(0xd5))/0x9*(parseInt(_0x2404b4(0xc0))/0xa)+parseInt(_0x2404b4(0xc8))/0xb;if(_0xe8eaed===_0x5aa94a)break;else _0x2033d7['push'](_0x2033d7['shift']());}catch(_0x48c94b){_0x2033d7['push'](_0x2033d7['shift']());}}}(a20_0x16ee,0x4845d));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x17cff2(0xc4));exports['command']='stop',exports[a20_0x17cff2(0xd0)]=a20_0x17cff2(0xd6),exports[a20_0x17cff2(0xd9)]=function(_0x48544b){const _0x413862=a20_0x17cff2,_0x31de1f={};_0x31de1f['RglMe']=_0x413862(0xd4),_0x31de1f[_0x413862(0xd3)]=_0x413862(0xcd);const _0x1cd5cc=_0x31de1f;return _0x48544b[_0x413862(0xc2)](HELP_HEADER_MESSAGE['stop'])[_0x413862(0xc7)](HELP_FOOTER_MESSAGE)[_0x413862(0xd1)](_0x1cd5cc[_0x413862(0xc5)])[_0x413862(0xcc)]()[_0x413862(0xc6)]()[_0x413862(0xd2)]()['help'](_0x1cd5cc[_0x413862(0xd3)]);},exports[a20_0x17cff2(0xd8)]=function(_0x1577b8){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a21_0x44a585=a21_0x361e;(function(_0x2c45e4,_0x2e3160){const _0x2ec0d7=a21_0x361e,_0x42befe=_0x2c45e4();while(!![]){try{const _0x50bad2=-parseInt(_0x2ec0d7(0x199))/0x1*(-parseInt(_0x2ec0d7(0x1b1))/0x2)+-parseInt(_0x2ec0d7(0x194))/0x3*(parseInt(_0x2ec0d7(0x17a))/0x4)+-parseInt(_0x2ec0d7(0x1a8))/0x5*(-parseInt(_0x2ec0d7(0x1bf))/0x6)+parseInt(_0x2ec0d7(0x1c2))/0x7*(-parseInt(_0x2ec0d7(0x1b4))/0x8)+-parseInt(_0x2ec0d7(0x193))/0x9+parseInt(_0x2ec0d7(0x178))/0xa+-parseInt(_0x2ec0d7(0x1b0))/0xb;if(_0x50bad2===_0x2e3160)break;else _0x42befe['push'](_0x42befe['shift']());}catch(_0x4b40be){_0x42befe['push'](_0x42befe['shift']());}}}(a21_0x513f,0x85646));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x44a585(0x176)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require(a21_0x44a585(0x17c)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a21_0x44a585(0x1b6)),{createK8sClient}=require(a21_0x44a585(0x18a)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports['command']='grid',exports['desc']='Stop\x20a\x20running\x20Automation\x20grid.',exports['builder']=function(_0x1d7a5d){const _0x2d16b9=a21_0x44a585,_0x7267b0={};_0x7267b0[_0x2d16b9(0x184)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x7267b0['FjraI']=_0x2d16b9(0x1af),_0x7267b0[_0x2d16b9(0x1a6)]='Skip\x20insecure\x20cert\x20verification.',_0x7267b0[_0x2d16b9(0x1c1)]=_0x2d16b9(0x190),_0x7267b0[_0x2d16b9(0x181)]='help';const _0x254092=_0x7267b0,_0x24f33a={};_0x24f33a[_0x2d16b9(0x1c5)]=_0x254092[_0x2d16b9(0x184)],_0x24f33a[_0x2d16b9(0x18c)]=_0x254092['FjraI'];const _0xa3c272={};_0xa3c272['description']=_0x254092[_0x2d16b9(0x1a6)],_0xa3c272[_0x2d16b9(0x18c)]=_0x254092[_0x2d16b9(0x1c1)],_0xa3c272[_0x2d16b9(0x1ad)]=![];const _0x164284={};return _0x164284[_0x2d16b9(0x1c0)]=_0x24f33a,_0x164284['skip-tls-cert-verify']=_0xa3c272,_0x1d7a5d[_0x2d16b9(0x1bd)](HELP_HEADER_MESSAGE[_0x2d16b9(0x1ab)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2d16b9(0x1b5)](_0x164284)[_0x2d16b9(0x171)](_0x254092[_0x2d16b9(0x181)])[_0x2d16b9(0x191)];},exports['handler']=async function(_0x5a805b){const _0x346e96=a21_0x44a585,_0x1aff68={'tJiFs':_0x346e96(0x17e),'FjJQv':function(_0x107e01){return _0x107e01();},'sYjwg':_0x346e96(0x18f),'vQihJ':function(_0x332329,_0x55037d,_0x3ff0d9,_0x8a9263,_0x1b505a,_0x2e41a9,_0x3f4666){return _0x332329(_0x55037d,_0x3ff0d9,_0x8a9263,_0x1b505a,_0x2e41a9,_0x3f4666);},'liEXK':_0x346e96(0x1a5),'XOhDZ':_0x346e96(0x19f),'hExnt':function(_0x1a1641,_0x5a9e42,_0x5688eb,_0x262604,_0x2cd223,_0x22aa42,_0x1cc3d8){return _0x1a1641(_0x5a9e42,_0x5688eb,_0x262604,_0x2cd223,_0x22aa42,_0x1cc3d8);},'oxQPz':function(_0x71ddb0){return _0x71ddb0();},'NQIYV':_0x346e96(0x17b),'PDOlw':_0x346e96(0x177),'dHtsP':'Adding\x20Websocket\x20listeners','vqbHk':function(_0x3936fa,_0x509dba,_0x5ddf3d,_0x42ac54){return _0x3936fa(_0x509dba,_0x5ddf3d,_0x42ac54);},'oXVVA':function(_0x5d03ba,_0x9f5adb,_0x1a7160,_0x595b4f,_0xb0de4f,_0x1a357b,_0x5d6272){return _0x5d03ba(_0x9f5adb,_0x1a7160,_0x595b4f,_0xb0de4f,_0x1a357b,_0x5d6272);},'xDrAb':function(_0x22d1f2,_0xb34291,_0x7cbdf){return _0x22d1f2(_0xb34291,_0x7cbdf);},'jqaCa':_0x346e96(0x175),'xswas':function(_0x5da749,_0x27dd25){return _0x5da749===_0x27dd25;},'jadzS':_0x346e96(0x1b7),'qhMSv':_0x346e96(0x1b9),'rKGDC':function(_0x284a03,_0x598860){return _0x284a03===_0x598860;},'ZkjQj':function(_0x5a7d83,_0x4195b2,_0x2b06a2,_0x2822a5,_0x1443da,_0x2b3add,_0x53fee3){return _0x5a7d83(_0x4195b2,_0x2b06a2,_0x2822a5,_0x1443da,_0x2b3add,_0x53fee3);},'SfGRv':'invalid-grid-id','tYNNJ':function(_0x5395a4,_0x4e2d49,_0x5d9eb9,_0x29777b,_0x1fd8b4,_0x29b0c1,_0x44103e){return _0x5395a4(_0x4e2d49,_0x5d9eb9,_0x29777b,_0x1fd8b4,_0x29b0c1,_0x44103e);},'dpurF':_0x346e96(0x187)};let _0x2e2dfe;try{!_0x5a805b[_0x346e96(0x18b)]&&(logger['error'](_0x1aff68[_0x346e96(0x19d)]),process[_0x346e96(0x1b3)](0x1));!fs[_0x346e96(0x195)](_0x1aff68[_0x346e96(0x180)](getCredentialsPath))&&(logger['error'](_0x1aff68[_0x346e96(0x1c4)]),await _0x1aff68[_0x346e96(0x16f)](sendInstrumentationEvent,_0x5a805b,_0x1aff68[_0x346e96(0x185)],messageTypes[_0x346e96(0x188)],_0x1aff68['XOhDZ'],null,_0x5a805b),process[_0x346e96(0x1b3)](0x1));logger['info'](_0x346e96(0x18d)+_0x5a805b['gridId']),await _0x1aff68[_0x346e96(0x183)](sendInstrumentationEvent,_0x5a805b,_0x1aff68[_0x346e96(0x185)],messageTypes[_0x346e96(0x174)],null,null,_0x5a805b);const _0x218307=JSON['parse'](fs['readFileSync'](_0x1aff68[_0x346e96(0x16d)](getCredentialsPath)));global_registry[_0x346e96(0x1bc)]=_0x218307[_0x346e96(0x16b)][_0x346e96(0x170)],global_registry['bstackAccesskey']=_0x218307[_0x346e96(0x16b)][_0x346e96(0x1ac)];const _0x149037=WS_ENDPOINT[_0x346e96(0x192)](_0x1aff68[_0x346e96(0x173)],_0x218307['Browserstack'][_0x346e96(0x170)])['replace'](_0x1aff68[_0x346e96(0x197)],_0x218307['Browserstack']['password']),_0x19c8f0={};_0x19c8f0[_0x346e96(0x17d)]=ws,_0x19c8f0['connectionTimeout']=0x36ee80,_0x2e2dfe=new ReconnectingWebSocket(_0x149037,[],_0x19c8f0),logger[_0x346e96(0x1a4)](_0x1aff68[_0x346e96(0x1a2)]),webSocketUtils[_0x346e96(0x1b2)](_0x2e2dfe,_0x5a805b[_0x346e96(0x18e)],_0x5a805b['password']);const [_0x56dfcc,_0x362b48]=await _0x1aff68[_0x346e96(0x1ba)](getGridDetails,_0x218307['Browserstack']['username'],_0x218307[_0x346e96(0x16b)][_0x346e96(0x1ac)],_0x5a805b[_0x346e96(0x18b)]);if(_0x362b48){const _0xbf7e8e=_0x362b48['info'];global_registry[_0x346e96(0x1a3)]=_0xbf7e8e[_0x346e96(0x1a3)],global_registry[_0x346e96(0x19a)]=_0xbf7e8e[_0x346e96(0x198)],global_registry[_0x346e96(0x179)]=_0xbf7e8e[_0x346e96(0x179)];const _0x13a708=await _0x1aff68['oXVVA'](getCloudProviderObject,_0xbf7e8e['cloudProvider'],_0xbf7e8e[_0x346e96(0x179)],_0xbf7e8e[_0x346e96(0x172)],_0x2e2dfe,webSocketUtils,_0x5a805b),[_0x3c1180,_0x440178,_0xe657f9,_0xe75695,_0x2a07b4,_0x22acc5]=await _0x1aff68[_0x346e96(0x16c)](createK8sClient,_0x13a708,_0x5a805b[_0x346e96(0x1b8)]);await _0x1aff68[_0x346e96(0x16c)](scaleDownHubDeployment,_0x440178,_0xbf7e8e['name']),logger[_0x346e96(0x19c)](_0x1aff68[_0x346e96(0x1a7)]),process['exit'](0x0);}_0x1aff68[_0x346e96(0x186)](_0x56dfcc[_0x346e96(0x1c3)],0x191)&&(logger[_0x346e96(0x1a0)](_0x1aff68[_0x346e96(0x1ae)]),await _0x1aff68[_0x346e96(0x19e)](sendInstrumentationEvent,_0x5a805b,_0x1aff68[_0x346e96(0x185)],messageTypes[_0x346e96(0x188)],_0x1aff68[_0x346e96(0x1a1)],null,_0x5a805b),process[_0x346e96(0x1b3)](0x1)),_0x1aff68[_0x346e96(0x16e)](_0x56dfcc[_0x346e96(0x1c3)],0x190)&&(logger[_0x346e96(0x1a0)](JSON[_0x346e96(0x1aa)](_0x56dfcc['body'])[_0x346e96(0x196)]),await _0x1aff68[_0x346e96(0x1bb)](sendInstrumentationEvent,_0x5a805b,_0x1aff68[_0x346e96(0x185)],messageTypes[_0x346e96(0x188)],_0x1aff68[_0x346e96(0x1a9)],null,_0x5a805b),process['exit'](0x1)),logger['error'](_0x346e96(0x182)+JSON['stringify'](_0x56dfcc)),await _0x1aff68[_0x346e96(0x17f)](sendInstrumentationEvent,_0x5a805b,_0x1aff68[_0x346e96(0x185)],messageTypes[_0x346e96(0x188)],_0x1aff68[_0x346e96(0x189)],_0x56dfcc,_0x5a805b),process[_0x346e96(0x1b3)](0x1);}catch(_0x8f9ef4){const _0x1792c0=_0x346e96(0x19b)+_0x8f9ef4+'\x20\x0a'+JSON[_0x346e96(0x1be)](_0x8f9ef4['stack'])+'\x20';logger[_0x346e96(0x1a0)](_0x1792c0),process[_0x346e96(0x1b3)](0x1);}};function a21_0x361e(_0x5e70f0,_0x1f20ce){const _0x513f8f=a21_0x513f();return a21_0x361e=function(_0x361ecc,_0x89f578){_0x361ecc=_0x361ecc-0x16b;let _0x116a91=_0x513f8f[_0x361ecc];return _0x116a91;},a21_0x361e(_0x5e70f0,_0x1f20ce);}function a21_0x513f(){const _0x50045a=['Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','hExnt','zHium','liEXK','xswas','server-error','ERROR','dpurF','../../utils/createk8sClient','gridId','type','Stopping\x20grid\x20','user','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','boolean','argv','replace','2767914UghUHM','27285vZdDVs','existsSync','message','PDOlw','region','232886NuICzD','clusterRegion','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','info','tJiFs','oXVVA','init-not-called','error','qhMSv','dHtsP','cloudProvider','debug','stop-grid-called','jothT','jqaCa','105OdNimY','SfGRv','parse','stop','password','default','jadzS','string','731049kLxtVa','2EZmVfB','addListeners','exit','152Gbdidk','options','../../utils/webSocketUtils','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','skipTlsCertVerify','unauthorised','vqbHk','ZkjQj','bstackUsername','usage','stringify','305010uxmphL','grid-id','TisLN','355873OqvSEm','statusCode','sYjwg','description','Browserstack','xDrAb','oxQPz','rKGDC','vQihJ','username','help','name','NQIYV','INFO','Grid\x20stoppped.','../../config/constants','<PasswordPlaceholder>','9224140oygdqO','clusterName','148WDtTdX','<UsernamePlaceholder>','../../utils/gridComponents','WebSocket','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','tYNNJ','FjJQv','WkluH'];a21_0x513f=function(){return _0x50045a;};return a21_0x513f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x5b5c7c=a22_0x14d5;(function(_0x46ebdc,_0x5c0f6b){const _0x3e703e=a22_0x14d5,_0x1ef42f=_0x46ebdc();while(!![]){try{const _0x1a80e0=parseInt(_0x3e703e(0x18e))/0x1+-parseInt(_0x3e703e(0x19a))/0x2*(parseInt(_0x3e703e(0x164))/0x3)+parseInt(_0x3e703e(0x189))/0x4+parseInt(_0x3e703e(0x196))/0x5+-parseInt(_0x3e703e(0x160))/0x6*(parseInt(_0x3e703e(0x159))/0x7)+parseInt(_0x3e703e(0x1a6))/0x8+parseInt(_0x3e703e(0x1b4))/0x9*(-parseInt(_0x3e703e(0x181))/0xa);if(_0x1a80e0===_0x5c0f6b)break;else _0x1ef42f['push'](_0x1ef42f['shift']());}catch(_0x27d6c6){_0x1ef42f['push'](_0x1ef42f['shift']());}}}(a22_0x541c,0x43ba8),require(a22_0x5b5c7c(0x178))[a22_0x5b5c7c(0x15a)]());let gridURL=a22_0x5b5c7c(0x167),bsApiUrl=a22_0x5b5c7c(0x19b),agApiUrl=a22_0x5b5c7c(0x18f);const _env=(process[a22_0x5b5c7c(0x1b0)][a22_0x5b5c7c(0x158)]||a22_0x5b5c7c(0x154))[a22_0x5b5c7c(0x198)]();if(_env==='staging'||_env==='stag')gridURL='grid-devhst.bsstag.com',bsApiUrl='api-devhst.bsstag.com',agApiUrl=a22_0x5b5c7c(0x1af);else(_env===a22_0x5b5c7c(0x16a)||_env===a22_0x5b5c7c(0x157))&&(gridURL=a22_0x5b5c7c(0x1a0),bsApiUrl=a22_0x5b5c7c(0x14c),agApiUrl=a22_0x5b5c7c(0x15c));exports[a22_0x5b5c7c(0x179)]=process[a22_0x5b5c7c(0x1b0)][a22_0x5b5c7c(0x179)]||gridURL,exports[a22_0x5b5c7c(0x194)]=process['env']['BS_API_URL']||bsApiUrl,exports[a22_0x5b5c7c(0x18c)]=process['env'][a22_0x5b5c7c(0x18c)]||agApiUrl,exports['WS_ENDPOINT']='wss://'+this[a22_0x5b5c7c(0x18c)]+a22_0x5b5c7c(0x173),exports['CP_CONFIG_FILE']=a22_0x5b5c7c(0x185),exports[a22_0x5b5c7c(0x1a3)]=a22_0x5b5c7c(0x14f),exports[a22_0x5b5c7c(0x15f)]='high-scale-grid',exports[a22_0x5b5c7c(0x175)]=a22_0x5b5c7c(0x193),exports[a22_0x5b5c7c(0x1a4)]=a22_0x5b5c7c(0x161),exports[a22_0x5b5c7c(0x156)]=a22_0x5b5c7c(0x15b),exports[a22_0x5b5c7c(0x1b2)]='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x5b5c7c(0x174)]=a22_0x5b5c7c(0x192),exports[a22_0x5b5c7c(0x15d)]=a22_0x5b5c7c(0x1a8),exports[a22_0x5b5c7c(0x17e)]=a22_0x5b5c7c(0x1b5),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x5b5c7c(0x175)],this[a22_0x5b5c7c(0x15d)],this[a22_0x5b5c7c(0x17e)]];const a22_0x45c82b={};a22_0x45c82b[a22_0x5b5c7c(0x19f)]='browserstack:managedBy',a22_0x45c82b[a22_0x5b5c7c(0x172)]=a22_0x5b5c7c(0x171);const a22_0x224281={};a22_0x224281['Key']='browserstack:service',a22_0x224281['Value']=a22_0x5b5c7c(0x1ad);const common_hst_tags_list=[a22_0x45c82b,a22_0x224281];if(process[a22_0x5b5c7c(0x1b0)][a22_0x5b5c7c(0x184)]){const parsedTags=process[a22_0x5b5c7c(0x1b0)][a22_0x5b5c7c(0x184)][a22_0x5b5c7c(0x16c)](',');parsedTags[a22_0x5b5c7c(0x18b)](_0x589a6f=>{const _0x3bbb5b=a22_0x5b5c7c,_0x136ce5=_0x589a6f[_0x3bbb5b(0x16c)](':'),_0x35380c={};_0x35380c['Key']=_0x136ce5[0x0],_0x35380c[_0x3bbb5b(0x172)]=_0x136ce5[0x1],common_hst_tags_list['push'](_0x35380c);});}exports[a22_0x5b5c7c(0x162)]=common_hst_tags_list;const a22_0x16847d={};a22_0x16847d[a22_0x5b5c7c(0x187)]=a22_0x5b5c7c(0x171),a22_0x16847d[a22_0x5b5c7c(0x165)]=a22_0x5b5c7c(0x1ad),exports[a22_0x5b5c7c(0x16e)]=a22_0x16847d,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x5b5c7c(0x175)]];function a22_0x14d5(_0x306c41,_0x22bf5d){const _0x541c5e=a22_0x541c();return a22_0x14d5=function(_0x14d531,_0x4d0bb6){_0x14d531=_0x14d531-0x14a;let _0x1bfd2f=_0x541c5e[_0x14d531];return _0x1bfd2f;},a22_0x14d5(_0x306c41,_0x22bf5d);}const a22_0x15678f={};a22_0x15678f[a22_0x5b5c7c(0x1ac)]=a22_0x5b5c7c(0x195),a22_0x15678f[a22_0x5b5c7c(0x150)]=a22_0x5b5c7c(0x152),a22_0x15678f[a22_0x5b5c7c(0x163)]='gridUrl',a22_0x15678f[a22_0x5b5c7c(0x14a)]='cliRunStarted',a22_0x15678f['CLI_RUN_FINISHED']=a22_0x5b5c7c(0x1b3),exports['WS_EVENTS']=a22_0x15678f,exports[a22_0x5b5c7c(0x16b)]={},exports['LINK_MESSAGE']=a22_0x5b5c7c(0x1a1);function a22_0x541c(){const _0x590bc6=['200tZxzkj','grid-profile','root','TURBOSCALE_CUSTOM_TAGS','credentials','HELP_HEADER_MESSAGE','browserstack:managedBy','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','1838464KtlYLf','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','forEach','AG_API_URL','warning','447020ZwqdHh','grid-api.browserstack.com','configure','init','browserstack-turboscale-grid','aws','BS_API_URL','log','2437705piwkSj','NULL','toLowerCase','grid','312334oXeySx','api.browserstack.com','DEFAULT_CLUSTER_DETAILS','SUCCESS','LINK_MESSAGE','Key','grid-preprod.bsstag.com','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','error','IAM_USER_NAME','CLUSTER_DEP_STACK_NAME','connect','1041712Tmrjde','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','azure','gridProfile','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','delete','LOG','BrowserStack-Automate-TurboScale','INFO','grid-api-devhst.bsstag.com','env','success','CLUSTER_HUB_HA_STACK_NAME','cliRunFinished','338193mtGGZy','gcp','CLI_RUN_STARTED','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','api-preprod.bsstag.com','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','CLI_ARGS_REGEX','BrowserStackIAMUser','RESOURCES','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','resourceInfo','high-scale-grid-cluster','prod','ERROR','CLUSTER_AUTOSCALER_STACK_NAME','pre-prod','BROWSERSTACK_ENV','31423oADHcB','config','BSTACK-ATS-CLUSTER-AUTOSCALER','grid-api-preprod.bsstag.com','AZURE','HELP_FOOTER_MESSAGE','DEFAULT_GRID_NAME','36KUafUw','BSTACK-ATS-CLUSTER','COMMON_HST_TAGS','GRID_URL','9lGWJmx','browserstack:service','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','grid.browserstack.com','CLUSTER','list','preprod','global_registry','split','create','HST_CLUSTER_TAGS','info','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','BrowserStack','Value','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','TURBOSCALE_DEPLOYMENT','AWS','unknown','REDACTED','dotenv','DASHBOARD_ENDPOINT','UNKNOWN','WARNING','start','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','GCP','[REDACTED]','pre-check'];a22_0x541c=function(){return _0x590bc6;};return a22_0x541c();}const a22_0x3469a2={};a22_0x3469a2[a22_0x5b5c7c(0x183)]=a22_0x5b5c7c(0x166)+this['LINK_MESSAGE'],a22_0x3469a2[a22_0x5b5c7c(0x191)]=a22_0x5b5c7c(0x14b)+this[a22_0x5b5c7c(0x19e)],a22_0x3469a2[a22_0x5b5c7c(0x190)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this['LINK_MESSAGE'],a22_0x3469a2[a22_0x5b5c7c(0x16d)]=a22_0x5b5c7c(0x170)+this[a22_0x5b5c7c(0x19e)],a22_0x3469a2[a22_0x5b5c7c(0x169)]={},a22_0x3469a2[a22_0x5b5c7c(0x1ab)]=a22_0x5b5c7c(0x18a)+this[a22_0x5b5c7c(0x19e)],a22_0x3469a2[a22_0x5b5c7c(0x1a5)]=a22_0x5b5c7c(0x14d)+this[a22_0x5b5c7c(0x19e)],a22_0x3469a2[a22_0x5b5c7c(0x17c)]=a22_0x5b5c7c(0x1a7)+this['LINK_MESSAGE'],a22_0x3469a2['stop']=a22_0x5b5c7c(0x151)+this[a22_0x5b5c7c(0x19e)],a22_0x3469a2['pre_check']='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x3469a2[a22_0x5b5c7c(0x169)]['root']='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this['LINK_MESSAGE'],a22_0x3469a2[a22_0x5b5c7c(0x169)][a22_0x5b5c7c(0x199)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a22_0x5b5c7c(0x19e)],a22_0x3469a2[a22_0x5b5c7c(0x169)][a22_0x5b5c7c(0x1a9)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this['LINK_MESSAGE'],exports[a22_0x5b5c7c(0x186)]=a22_0x3469a2,exports[a22_0x5b5c7c(0x15e)]=a22_0x5b5c7c(0x188);const a22_0x1826fb={};a22_0x1826fb[a22_0x5b5c7c(0x19d)]=a22_0x5b5c7c(0x1b1),a22_0x1826fb[a22_0x5b5c7c(0x155)]=a22_0x5b5c7c(0x1a2),a22_0x1826fb[a22_0x5b5c7c(0x1ae)]=a22_0x5b5c7c(0x16f),a22_0x1826fb[a22_0x5b5c7c(0x17b)]=a22_0x5b5c7c(0x18d),a22_0x1826fb[a22_0x5b5c7c(0x17a)]=a22_0x5b5c7c(0x176),a22_0x1826fb[a22_0x5b5c7c(0x197)]=null,exports['messageTypes']=a22_0x1826fb,exports[a22_0x5b5c7c(0x14e)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x5b5c7c(0x177)]=a22_0x5b5c7c(0x17f);const a22_0x116e95={};a22_0x116e95[a22_0x5b5c7c(0x182)]=a22_0x5b5c7c(0x1aa);const a22_0x9a9861={};a22_0x9a9861[a22_0x5b5c7c(0x180)]=a22_0x116e95,exports['MessageDescription']=a22_0x9a9861,exports['TRIAL_GRID_URL']=a22_0x5b5c7c(0x17d);const a22_0x48428e={};a22_0x48428e[a22_0x5b5c7c(0x168)]=a22_0x5b5c7c(0x153),a22_0x48428e['CLOUD_PROVIDER']=a22_0x5b5c7c(0x193),a22_0x48428e['REGION']='us-east-1',exports[a22_0x5b5c7c(0x19c)]=a22_0x48428e;
|
package/ats/src/config/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a23_0x26bf(){const _0x47af73=['837912hSmpUg','winston','Console','events.log','File','console.info','level','path','colorize','9KWchhQ','format','createLogger','mkdirSync','debug','12265270cQJGNx','transports','846785JjbiVr','fileLogger','2472918rmknHz','log','combine','message','955813XGBxQZ','66nMJZXP','printf','109749euKiKo','48naZxci','timestamp','1521092BPNtxb','join'];a23_0x26bf=function(){return _0x47af73;};return a23_0x26bf();}const a23_0x188d91=a23_0x4904;(function(_0x1a6fdc,_0x558aac){const _0x1fbe3e=a23_0x4904,_0x34f829=_0x1a6fdc();while(!![]){try{const _0x26c553=-parseInt(_0x1fbe3e(0x14a))/0x1+-parseInt(_0x1fbe3e(0x14b))/0x2*(-parseInt(_0x1fbe3e(0x14d))/0x3)+parseInt(_0x1fbe3e(0x150))/0x4+parseInt(_0x1fbe3e(0x144))/0x5*(-parseInt(_0x1fbe3e(0x14e))/0x6)+parseInt(_0x1fbe3e(0x146))/0x7+-parseInt(_0x1fbe3e(0x152))/0x8*(parseInt(_0x1fbe3e(0x13d))/0x9)+parseInt(_0x1fbe3e(0x142))/0xa;if(_0x26c553===_0x558aac)break;else _0x34f829['push'](_0x34f829['shift']());}catch(_0x4b13cd){_0x34f829['push'](_0x34f829['shift']());}}}(a23_0x26bf,0xb7921));const winston=require(a23_0x188d91(0x153)),fs=require('fs'),path=require(a23_0x188d91(0x159)),logDir=a23_0x188d91(0x147);function a23_0x4904(_0x46b482,_0x9b2f35){const _0x26bf44=a23_0x26bf();return a23_0x4904=function(_0x490450,_0x4efd6a){_0x490450=_0x490450-0x13c;let _0x37564f=_0x26bf44[_0x490450];return _0x37564f;},a23_0x4904(_0x46b482,_0x9b2f35);}!fs['existsSync'](logDir)&&fs[a23_0x188d91(0x140)](logDir);const a23_0x2ad3d8={};a23_0x2ad3d8[a23_0x188d91(0x13e)]='YYYY-MM-DD\x20HH:mm:ss';const a23_0x9a2aeb={};a23_0x9a2aeb[a23_0x188d91(0x158)]=!![];const a23_0x297d79={};a23_0x297d79['name']=a23_0x188d91(0x157),exports['logger']=new winston['createLogger']({'format':winston[a23_0x188d91(0x13e)][a23_0x188d91(0x148)](winston[a23_0x188d91(0x13e)][a23_0x188d91(0x14f)](a23_0x2ad3d8),winston['format'][a23_0x188d91(0x13c)](a23_0x9a2aeb),winston[a23_0x188d91(0x13e)][a23_0x188d91(0x14c)](_0x97ad04=>_0x97ad04[a23_0x188d91(0x14f)]+'\x20-\x20'+_0x97ad04['level']+':\x20'+_0x97ad04[a23_0x188d91(0x149)])),'transports':[new winston[(a23_0x188d91(0x143))][(a23_0x188d91(0x154))](a23_0x297d79),new winston[(a23_0x188d91(0x143))][(a23_0x188d91(0x156))]({'filename':path[a23_0x188d91(0x151)](logDir,a23_0x188d91(0x155)),'level':a23_0x188d91(0x141)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x188d91(0x143))][(a23_0x188d91(0x156))]({'filename':path[a23_0x188d91(0x151)](logDir,'usage.log'),'level':a23_0x188d91(0x141)})]};exports[a23_0x188d91(0x145)]=new winston[(a23_0x188d91(0x13f))](winstonFileLoggerParams);
|
package/ats/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';function a24_0x888c(_0x4022e3,_0x376afe){const _0x1f0565=a24_0x1f05();return a24_0x888c=function(_0x888cac,_0x2e50dd){_0x888cac=_0x888cac-0x186;let _0x4eb5fc=_0x1f0565[_0x888cac];return _0x4eb5fc;},a24_0x888c(_0x4022e3,_0x376afe);}const a24_0x5001f5=a24_0x888c;(function(_0xdcae82,_0x3957e2){const _0x2d76b9=a24_0x888c,_0x550d72=_0xdcae82();while(!![]){try{const _0x545876=-parseInt(_0x2d76b9(0x18b))/0x1+parseInt(_0x2d76b9(0x18c))/0x2*(parseInt(_0x2d76b9(0x188))/0x3)+parseInt(_0x2d76b9(0x19a))/0x4*(parseInt(_0x2d76b9(0x196))/0x5)+parseInt(_0x2d76b9(0x187))/0x6+parseInt(_0x2d76b9(0x18d))/0x7*(-parseInt(_0x2d76b9(0x193))/0x8)+-parseInt(_0x2d76b9(0x197))/0x9*(parseInt(_0x2d76b9(0x18f))/0xa)+parseInt(_0x2d76b9(0x190))/0xb*(parseInt(_0x2d76b9(0x195))/0xc);if(_0x545876===_0x3957e2)break;else _0x550d72['push'](_0x550d72['shift']());}catch(_0x6337b1){_0x550d72['push'](_0x550d72['shift']());}}}(a24_0x1f05,0xe53f4));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x5001f5(0x199));process[a24_0x5001f5(0x18e)][a24_0x5001f5(0x191)]=0x1;function a24_0x1f05(){const _0x4f9870=['6331295dsAaBm','3114TaBmkO','usage','./config/constants','4hYbRKP','EpWwO','679596wASERh','3oyyeAS','commandDir','KTuYV','1415345TKfJXy','245910QsVsdt','3942085YkpDDR','env','45950xaPaie','374sWsIAa','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','exports','8ISnArS','help','1060548YtrMWx'];a24_0x1f05=function(){return _0x4f9870;};return a24_0x1f05();}function run(_0x5205cf){const _0x16db37=a24_0x5001f5,_0x446744={};_0x446744[_0x16db37(0x18a)]='commands',_0x446744[_0x16db37(0x186)]=_0x16db37(0x194);const _0x5e6777=_0x446744;_0x5205cf[_0x16db37(0x198)](HELP_HEADER_MESSAGE['root'])[_0x16db37(0x189)](_0x5e6777[_0x16db37(0x18a)])['demandCommand']()[_0x16db37(0x194)](_0x5e6777['EpWwO'])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x5001f5(0x192)]=run;
|