browserstack-node-sdk 1.57.2 → 1.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/generated/sdk-messages_pb.d.ts +376 -36
- package/generated/sdk-messages_pb.js +2955 -279
- package/generated/sdk_grpc_pb.d.ts +5 -0
- package/generated/sdk_grpc_pb.js +51 -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/jasmine/bstack-reporter/customReporter.js +1 -0
- package/src/bin/jasmine/command.js +2 -0
- package/src/bin/jasmine/test.setup.js +1 -0
- package/src/bin/jasmine/testRunMap.js +1 -0
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.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/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.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/testcafe/a11y-runner.js +1 -0
- package/src/bin/testcafe/command.js +2 -0
- package/src/bin/testcafe/reporter/index.js +1 -0
- package/src/bin/testcafe/reporter/tcUtils.js +1 -0
- package/src/bin/testcafe/session-registry.js +1 -0
- package/src/bin/testcafe/stdout-interceptor.js +1 -0
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -0
- package/src/bin/testcafe/w3c-driver.js +1 -0
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.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/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -0
- package/src/bin/v2/framework/testcafeTestFramework.js +1 -0
- 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/loadTestModule.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/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.js +1 -0
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.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/driverInitErrorReporter.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.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
|
+
function a15_0x47f2(_0x2424b2,_0x2fff24){const _0x536e87=a15_0x536e();return a15_0x47f2=function(_0x47f232,_0x4d11c4){_0x47f232=_0x47f232-0x134;let _0x490426=_0x536e87[_0x47f232];return _0x490426;},a15_0x47f2(_0x2424b2,_0x2fff24);}const a15_0x5e9382=a15_0x47f2;(function(_0x3450f4,_0xfdb90e){const _0x35487b=a15_0x47f2,_0x39ceb2=_0x3450f4();while(!![]){try{const _0x19915e=parseInt(_0x35487b(0x149))/0x1*(parseInt(_0x35487b(0x182))/0x2)+-parseInt(_0x35487b(0x14b))/0x3*(-parseInt(_0x35487b(0x164))/0x4)+-parseInt(_0x35487b(0x14e))/0x5+-parseInt(_0x35487b(0x144))/0x6*(-parseInt(_0x35487b(0x154))/0x7)+-parseInt(_0x35487b(0x17c))/0x8*(parseInt(_0x35487b(0x15a))/0x9)+-parseInt(_0x35487b(0x14f))/0xa+-parseInt(_0x35487b(0x161))/0xb*(-parseInt(_0x35487b(0x186))/0xc);if(_0x19915e===_0xfdb90e)break;else _0x39ceb2['push'](_0x39ceb2['shift']());}catch(_0x990fb0){_0x39ceb2['push'](_0x39ceb2['shift']());}}}(a15_0x536e,0xa4a40));const fs=require('fs'),got=require('got'),{table}=require(a15_0x5e9382(0x173)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x5e9382(0x176)),{sendInstrumentationEvent}=require(a15_0x5e9382(0x180));exports['command']='grids',exports['desc']=a15_0x5e9382(0x16a),exports[a15_0x5e9382(0x175)]=function(_0x1f71cc){const _0x3df1d0=a15_0x5e9382,_0x3f8c02={};_0x3f8c02['slGNW']='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x3f8c02[_0x3df1d0(0x181)]=_0x3df1d0(0x16b),_0x3f8c02[_0x3df1d0(0x177)]=_0x3df1d0(0x179);const _0x510f18=_0x3f8c02,_0x2b6ddb={};_0x2b6ddb[_0x3df1d0(0x143)]=_0x510f18[_0x3df1d0(0x13a)],_0x2b6ddb[_0x3df1d0(0x189)]=_0x510f18[_0x3df1d0(0x181)];const _0x22d194={};return _0x22d194[_0x3df1d0(0x141)]=_0x2b6ddb,_0x1f71cc[_0x3df1d0(0x158)](HELP_HEADER_MESSAGE[_0x3df1d0(0x150)][_0x3df1d0(0x13c)])[_0x3df1d0(0x153)](HELP_FOOTER_MESSAGE)['options'](_0x22d194)[_0x3df1d0(0x179)](_0x510f18[_0x3df1d0(0x177)])['argv'];},exports['handler']=async function(_0xadcaa7){const _0x23ebe5=a15_0x5e9382,_0x4d4a34={'xltiG':function(_0x56822e){return _0x56822e();},'sJDRr':function(_0x129a44){return _0x129a44();},'qNYjo':_0x23ebe5(0x137),'sseJr':function(_0x4043e0,_0x5ad9e1,_0x5783a6,_0x2f7398,_0xea7459,_0x220bf2,_0x385280){return _0x4043e0(_0x5ad9e1,_0x5783a6,_0x2f7398,_0xea7459,_0x220bf2,_0x385280);},'wUKVn':'list-grids-called','ARxSQ':_0x23ebe5(0x146),'ArWRr':function(_0x264296){return _0x264296();},'cemzS':_0x23ebe5(0x135),'sprdJ':function(_0x102a2e,_0xf00f67,_0x2f2140){return _0x102a2e(_0xf00f67,_0x2f2140);},'FfPiK':function(_0xa9bd44,_0x3de4aa,_0x1a6959){return _0xa9bd44(_0x3de4aa,_0x1a6959);},'YxyBF':function(_0x25120b,_0xb5f44c){return _0x25120b!==_0xb5f44c;},'SGsyo':function(_0x3c9094,_0x4b8eb1){return _0x3c9094!==_0x4b8eb1;},'ImVEn':function(_0x86d5ae,_0x57928e){return _0x86d5ae===_0x57928e;},'LVkoa':'\x0aFound\x20the\x20following\x20grids:\x0a','SUOCx':_0x23ebe5(0x152),'YCbQW':'grid-name','ZlvZz':'status','AYNeO':'running','CGUnf':'queued','kSTDq':_0x23ebe5(0x13d),'GRmVY':function(_0x38c6f5,_0x3ae16d){return _0x38c6f5(_0x3ae16d);},'QrfvL':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Brfir':_0x23ebe5(0x160),'nhgXq':function(_0xbedfa2,_0x3bde2b,_0x24812c,_0x32f65d,_0x256259,_0x17f4c5,_0x348192){return _0xbedfa2(_0x3bde2b,_0x24812c,_0x32f65d,_0x256259,_0x17f4c5,_0x348192);},'dBpWB':_0x23ebe5(0x145),'zgxry':_0x23ebe5(0x162)};try{global_registry[_0x23ebe5(0x17e)]=_0x4d4a34[_0x23ebe5(0x172)](uuidv4);!fs[_0x23ebe5(0x139)](_0x4d4a34[_0x23ebe5(0x159)](getCredentialsPath))&&(console['error'](_0x4d4a34[_0x23ebe5(0x188)]),await _0x4d4a34[_0x23ebe5(0x166)](sendInstrumentationEvent,_0xadcaa7,_0x4d4a34['wUKVn'],messageTypes[_0x23ebe5(0x155)],_0x4d4a34['ARxSQ'],null,_0xadcaa7),process[_0x23ebe5(0x157)](0x1));const _0x5d49a6=JSON[_0x23ebe5(0x147)](fs[_0x23ebe5(0x142)](_0x4d4a34[_0x23ebe5(0x170)](getCredentialsPath)));let _0x20a07b=_0x23ebe5(0x15b)+AG_API_URL+_0x23ebe5(0x14c);_0xadcaa7['allGrids']&&(_0x20a07b=_0x23ebe5(0x15b)+AG_API_URL+_0x23ebe5(0x15f));const _0x3a0706={'method':_0x4d4a34[_0x23ebe5(0x185)],'headers':_0x4d4a34[_0x23ebe5(0x18a)](getAuthHeader,_0x5d49a6[_0x23ebe5(0x165)][_0x23ebe5(0x187)],_0x5d49a6[_0x23ebe5(0x165)]['password']),'throwHttpErrors':![]};global_registry[_0x23ebe5(0x156)]=_0x5d49a6[_0x23ebe5(0x165)][_0x23ebe5(0x187)],global_registry[_0x23ebe5(0x167)]=_0x5d49a6[_0x23ebe5(0x165)][_0x23ebe5(0x174)],_0x4d4a34[_0x23ebe5(0x166)](sendInstrumentationEvent,_0xadcaa7,_0x4d4a34[_0x23ebe5(0x136)],messageTypes[_0x23ebe5(0x13e)],null,null,_0xadcaa7);const _0x1e0a0f=await _0x4d4a34[_0x23ebe5(0x184)](got,_0x20a07b,_0x3a0706);if(_0x4d4a34[_0x23ebe5(0x15c)](_0x1e0a0f,null)&&_0x4d4a34[_0x23ebe5(0x169)](_0x1e0a0f,undefined)&&_0x4d4a34[_0x23ebe5(0x13f)](_0x1e0a0f[_0x23ebe5(0x13b)],0xc8)){const _0x4b48f5=JSON[_0x23ebe5(0x147)](_0x1e0a0f[_0x23ebe5(0x138)]);console[_0x23ebe5(0x16f)](_0x4d4a34[_0x23ebe5(0x183)]);const _0x4467de=[];_0x4467de[_0x23ebe5(0x17b)]([_0x4d4a34[_0x23ebe5(0x14d)],_0x4d4a34['YCbQW'],_0x4d4a34['ZlvZz'],_0x4d4a34[_0x23ebe5(0x168)],_0x4d4a34[_0x23ebe5(0x17d)],_0x4d4a34[_0x23ebe5(0x171)]]),_0x4b48f5['forEach'](_0xe966ae=>{const _0x3576d9=_0x23ebe5;_0x4467de[_0x3576d9(0x17b)]([_0xe966ae['id'],_0xe966ae['name'],_0xe966ae['status'],_0xe966ae[_0x3576d9(0x16d)],_0xe966ae[_0x3576d9(0x16c)],_0xe966ae[_0x3576d9(0x15d)]]);}),console[_0x23ebe5(0x16f)](_0x4d4a34[_0x23ebe5(0x16e)](table,_0x4467de)),process[_0x23ebe5(0x157)](0x0);}_0x4d4a34[_0x23ebe5(0x13f)](_0x1e0a0f[_0x23ebe5(0x13b)],0x191)&&(console['error'](_0x4d4a34[_0x23ebe5(0x14a)]),await _0x4d4a34[_0x23ebe5(0x166)](sendInstrumentationEvent,_0xadcaa7,_0x4d4a34[_0x23ebe5(0x136)],messageTypes[_0x23ebe5(0x155)],_0x4d4a34[_0x23ebe5(0x15e)],null,_0xadcaa7),process[_0x23ebe5(0x157)](0x1)),console[_0x23ebe5(0x140)](_0x23ebe5(0x148)+JSON[_0x23ebe5(0x151)](_0x1e0a0f)),await _0x4d4a34['nhgXq'](sendInstrumentationEvent,_0xadcaa7,_0x4d4a34[_0x23ebe5(0x136)],messageTypes[_0x23ebe5(0x155)],_0x4d4a34[_0x23ebe5(0x17a)],_0x1e0a0f,_0xadcaa7),process[_0x23ebe5(0x157)](0x1);}catch(_0x5b47bd){console[_0x23ebe5(0x140)](_0x23ebe5(0x17f)+_0x5b47bd[_0x23ebe5(0x134)]),await _0x4d4a34[_0x23ebe5(0x163)](sendInstrumentationEvent,_0xadcaa7,_0x4d4a34['wUKVn'],messageTypes[_0x23ebe5(0x155)],_0x4d4a34[_0x23ebe5(0x178)],_0x5b47bd,_0xadcaa7),process['exit'](0x1);}};function a15_0x536e(){const _0x48aeeb=['username','qNYjo','type','sprdJ','stack','GET','wUKVn','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','body','existsSync','slGNW','statusCode','grid','cluster-name','INFO','ImVEn','error','all-grids','readFileSync','description','6uPBuAw','server-error','init-not-called','parse','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','666eRpMFL','QrfvL','6pvdoCM','/packages/cli/get-grids','SUOCx','4494985tivqGm','6743970EVvcZV','list','stringify','grid-id','epilogue','2618399QTKGMg','ERROR','bstackUsername','exit','usage','sJDRr','5063508XydoMx','https://','YxyBF','clusterName','Brfir','/packages/cli/get-all-grids','unauthorised','4829miQCOQ','unknown-error','nhgXq','2170692PjDvfi','Browserstack','sseJr','bstackAccesskey','AYNeO','SGsyo','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','boolean','queued','running','GRmVY','log','ArWRr','kSTDq','xltiG','table','password','builder','../../utils/utilityMethods','SmcSC','zgxry','help','dBpWB','push','8PINuAi','CGUnf','requestId','Failed\x20to\x20list\x20resources!\x20Error:\x20','../../utils/instrumentationUtils','SIgTg','3908xdoRPu','LVkoa','FfPiK','cemzS','1356TzbSmk'];a15_0x536e=function(){return _0x48aeeb;};return a15_0x536e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a16_0x5ca0(_0x46270d,_0x57103e){const _0x580d4d=a16_0x580d();return a16_0x5ca0=function(_0x5ca0d8,_0x4e1339){_0x5ca0d8=_0x5ca0d8-0x1cc;let _0x4fb1e1=_0x580d4d[_0x5ca0d8];return _0x4fb1e1;},a16_0x5ca0(_0x46270d,_0x57103e);}const a16_0x5a8169=a16_0x5ca0;function a16_0x580d(){const _0x2b84e0=['usage','18hhstne','demandCommand','445042xlsdop','11OlZaPX','20727IyLAQO','337855RVJbgF','511466PtpOoO','strict','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','epilogue','help','276pjEWtW','1atzNGq','../config/constants','5btgIcx','84512YaOSiZ','recommendCommands','pre-check','pre_check','bkqhC','desc','231408lxjnsu','JnucM','precheck_commands','1072NyQRFp','3696860dcIrDV'];a16_0x580d=function(){return _0x2b84e0;};return a16_0x580d();}(function(_0x46cb1d,_0x2abca7){const _0x115c57=a16_0x5ca0,_0x224b95=_0x46cb1d();while(!![]){try{const _0x571fdb=-parseInt(_0x115c57(0x1d8))/0x1*(-parseInt(_0x115c57(0x1d2))/0x2)+-parseInt(_0x115c57(0x1e1))/0x3+parseInt(_0x115c57(0x1db))/0x4*(-parseInt(_0x115c57(0x1da))/0x5)+-parseInt(_0x115c57(0x1cc))/0x6*(-parseInt(_0x115c57(0x1d1))/0x7)+parseInt(_0x115c57(0x1e4))/0x8*(parseInt(_0x115c57(0x1d0))/0x9)+parseInt(_0x115c57(0x1e5))/0xa*(parseInt(_0x115c57(0x1cf))/0xb)+parseInt(_0x115c57(0x1d7))/0xc*(-parseInt(_0x115c57(0x1ce))/0xd);if(_0x571fdb===_0x2abca7)break;else _0x224b95['push'](_0x224b95['shift']());}catch(_0x4132f8){_0x224b95['push'](_0x224b95['shift']());}}}(a16_0x580d,0x2f292));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x5a8169(0x1d9));exports['command']=a16_0x5a8169(0x1dd),exports[a16_0x5a8169(0x1e0)]=a16_0x5a8169(0x1d4),exports['builder']=function(_0x57359a){const _0x5d5a72=a16_0x5a8169,_0x10836e={};_0x10836e[_0x5d5a72(0x1e2)]=_0x5d5a72(0x1e3),_0x10836e[_0x5d5a72(0x1df)]=_0x5d5a72(0x1d6);const _0x2faad2=_0x10836e;return _0x57359a[_0x5d5a72(0x1e6)](HELP_HEADER_MESSAGE[_0x5d5a72(0x1de)])[_0x5d5a72(0x1d5)](HELP_FOOTER_MESSAGE)['commandDir'](_0x2faad2[_0x5d5a72(0x1e2)])[_0x5d5a72(0x1cd)]()[_0x5d5a72(0x1dc)]()[_0x5d5a72(0x1d3)]()['help'](_0x2faad2[_0x5d5a72(0x1df)]);},exports['handler']=function(_0x2d5b5f){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a17_0x447b(){const _0x481767=['HlYJp','GduCd','vzPoW','existsSync','length','PtBzZ','yLSKn','2NcryFi','toLowerCase','User\x20Access','isClusterPresent','type','ncFLQ','Cluster\x20`','Whitelisted\x20browserstack','builder','ehqrS','cRlsN','/packages/cli/get-all-grid-profiles','cNzxU','description','BKyYV','usage','vWWog','header','Grid\x20profile\x20fetched\x20for\x20pre-check','SXYrw','HQvzj','NhbIh','Success','FcwtC','message','haGKy','cluster-check-failed-','SIlYu','.\x20Please\x20provide\x20all\x20required\x20arguments.','authHeader','IJmui','RaNBj','yBUXC','grid\x20profile\x20flow\x20','2227218bAqTlH','utf-8','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','NkfQa','Cluster\x20','writeFileSync','accessResp','tEHNl','xUtHN','epilogue','pre_check','../../config/logger','TLzZP','getUTCMinutes','throwHttpErrors','LMjyR','INFO','../../config/constants','\x20region\x20-\x20','KwOAH','PCIHo','Invalid\x20input.\x20grid\x20profiles:\x20','isTrialGridAccessible','argv','dCQBl','\x20\x20Stack:\x20','rbwky','goGGV','KNIwz','cloudProvider','credential-not-found','nDMxx','uKWbG','string','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','toQjR','ssVaP','\x20===\x0a\x0a','password','1068284FWkLrI','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','xUiae','Setting\x20cloud\x20provider\x20as\x20','Browserstack','vsYNl','JxYLq','handler','getUTCFullYear','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','xCaLu','EHLkQ','VCZyx','data','Failed\x20in\x20pre-check!\x20Error:\x20','response','gridProfile','\x20\x20Code:\x20','Failure','FmciR','debug','stack','error\x20stack\x20:\x20','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','cloud-provider-not-supported','ygqGO','uuid','sgYmq','bJQnY','xJEJj','suyvI','ERROR','hdFJc','bACYU','help','STTpT','Error\x20Details:\x0a','replace','stringify','grid-profile','NLnpl','asJzB','init','KMJrY','NMYmU','exit','uSJKR','delay','.txt','tKGNJ','YMuhF','code','78765AnJxfa','105234PVmOTG','LrnXp','N/A','pre-check-grid-called','YnVcE','cXhzA','bstackUsername','username','unable\x20to\x20verify\x20if\x20cluster\x20`','NYoIT','jOeQS','UMDpg','1141953MqGckt','JOvDX','grid','SVXYZ','176WyOdrb','\x20\x20Message:\x20','isCliToolInstalled','https://','join','gLdhB','LOG','WebSocket','TsvzS','bstackAccesskey','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','MTbWo','Pre-check\x20running\x20for\x20Cloud\x20-\x20','getUTCMonth','zopTW','woYJm','sqyxp','`\x20,error\x20:\x20','KsJmg','3|4|2|1|0','`\x20already\x20exists','icNHX','is\x20already\x20present','chvQC','pKfJY','Tool\x20Installed','FvAbD','czyuT','GQFXi','info','JIMyW','GET','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ufXqU','42203jjTaVC','method','error','push','pre-check','options','BwMyB','gGwoh','iDSKO','yVGqj','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','2505830RxHmRf','rCTXB','uEmAg','eACFj','9TAQBDN','Vjube','cloud-provider','command','nrOxq','readFileSync','dAHgr','ZoBpQ',']\x20status\x20:\x20','cluster-name','ATNTD','forEach','Status:\x20','\x20data\x20:\x20','log/report_','reconnecting-websocket','headers','../../cloudproviders/utils','EDEnT','qgotk','rdSHD','sendEventToBackend','CLOUD_PROVIDER','xwRny','yTiaL','`\x20is\x20present\x20in\x20region\x20`','parse','../../utils/webSocketUtils','body','EHSWc','Message:\x20','nvFbU','pre-check-grid-profile-empty','gecCm','clusterRegion','region','JoBZf','requestId','zubqZ','vRsSi','clusterName','SqTPt','\x20error\x20:\x20'];a17_0x447b=function(){return _0x481767;};return a17_0x447b();}const a17_0x1f31eb=a17_0x4cbd;(function(_0x28be25,_0x2f493f){const _0x5576d8=a17_0x4cbd,_0x5cd346=_0x28be25();while(!![]){try{const _0x4731fc=parseInt(_0x5576d8(0x102))/0x1+parseInt(_0x5576d8(0x175))/0x2*(-parseInt(_0x5576d8(0x10e))/0x3)+parseInt(_0x5576d8(0x1be))/0x4+parseInt(_0x5576d8(0x101))/0x5+parseInt(_0x5576d8(0x197))/0x6+parseInt(_0x5576d8(0x134))/0x7*(parseInt(_0x5576d8(0x112))/0x8)+-parseInt(_0x5576d8(0x143))/0x9*(parseInt(_0x5576d8(0x13f))/0xa);if(_0x4731fc===_0x2f493f)break;else _0x5cd346['push'](_0x5cd346['shift']());}catch(_0x443f68){_0x5cd346['push'](_0x5cd346['shift']());}}}(a17_0x447b,0x3fa39));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x1f31eb(0x1d8)),ReconnectingWebSocket=require(a17_0x1f31eb(0x152)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x1f31eb(0x1a2)),{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_0x1f31eb(0x1a8)),{getCloudProviderObjectWithOutInit}=require(a17_0x1f31eb(0x154)),webSocketUtils=require(a17_0x1f31eb(0x15e)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x1f31eb(0x146)]=a17_0x1f31eb(0x110),exports['desc']='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a17_0x1f31eb(0x17d)]=function(_0x5425f1){const _0x28a58d=a17_0x1f31eb,_0x466dc0={};_0x466dc0[_0x28a58d(0x174)]=_0x28a58d(0x13e),_0x466dc0[_0x28a58d(0x16a)]=_0x28a58d(0x1b8),_0x466dc0[_0x28a58d(0x173)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x466dc0[_0x28a58d(0x170)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x466dc0[_0x28a58d(0x11a)]=_0x28a58d(0x11c),_0x466dc0[_0x28a58d(0x14d)]=_0x28a58d(0x1e0);const _0x359316=_0x466dc0,_0x211261={};_0x211261[_0x28a58d(0x182)]=_0x359316[_0x28a58d(0x174)],_0x211261['type']=_0x359316[_0x28a58d(0x16a)];const _0x1e939c={};_0x1e939c['description']=_0x359316[_0x28a58d(0x173)],_0x1e939c[_0x28a58d(0x179)]=_0x359316['vRsSi'];const _0x3008d1={};_0x3008d1[_0x28a58d(0x182)]=_0x359316[_0x28a58d(0x170)],_0x3008d1[_0x28a58d(0x179)]=_0x359316[_0x28a58d(0x16a)];const _0x224d84={};_0x224d84[_0x28a58d(0x182)]=_0x359316[_0x28a58d(0x11a)],_0x224d84[_0x28a58d(0x179)]=_0x359316[_0x28a58d(0x16a)];const _0xadf253={};return _0xadf253['cluster-name']=_0x211261,_0xadf253[_0x28a58d(0x145)]=_0x1e939c,_0xadf253[_0x28a58d(0x166)]=_0x3008d1,_0xadf253[_0x28a58d(0x1e5)]=_0x224d84,_0x5425f1[_0x28a58d(0x184)](HELP_HEADER_MESSAGE[_0x28a58d(0x1a1)])[_0x28a58d(0x1a0)](HELP_FOOTER_MESSAGE)[_0x28a58d(0x139)](_0xadf253)[_0x28a58d(0x1e0)](_0x359316[_0x28a58d(0x14d)])[_0x28a58d(0x1ae)];};async function inputValidation(_0xb082e0,_0x17ec4b){const _0x1fc6eb=a17_0x1f31eb,_0x65933f={'MTbWo':function(_0x350c13,_0x51f3e4){return _0x350c13+_0x51f3e4;},'enKlw':_0x1fc6eb(0x18b),'ehqrS':_0x1fc6eb(0x1d0),'bJQnY':function(_0x1fcb20,_0x5114ab){return _0x1fcb20||_0x5114ab;},'ZoBpQ':'N/A','sqyxp':_0x1fc6eb(0x1e2),'ssVaP':_0x1fc6eb(0x145),'PCIHo':_0x1fc6eb(0x128),'oazRm':'will\x20be\x20created','gLdhB':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','hdFJc':_0x1fc6eb(0x1b8),'rbwky':_0x1fc6eb(0x1d5),'cvneS':_0x1fc6eb(0x1b9),'yjTfi':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','xJEJj':_0x1fc6eb(0x1e0),'uKWbG':_0x1fc6eb(0x1bf),'JxYLq':_0x1fc6eb(0x166),'GQFXi':'cluster-name','gGwoh':_0x1fc6eb(0x136),'NYoIT':function(_0x44dcb9,_0x4c5660){return _0x44dcb9!==_0x4c5660;},'vWWog':_0x1fc6eb(0xff),'BfVkr':function(_0x22f4d7,_0x585855){return _0x22f4d7===_0x585855;},'suyvI':_0x1fc6eb(0x1e6),'dCQBl':'OOVfc','JoBZf':_0x1fc6eb(0x189),'qgotk':function(_0x446eee,_0x2568df){return _0x446eee===_0x2568df;},'Vjube':'YdUfx','cNzxU':function(_0x532cd6,_0x20c15c){return _0x532cd6!==_0x20c15c;},'HnsEO':'ZOPgC','MfwYV':function(_0x299d8a,_0x457ab0){return _0x299d8a>_0x457ab0;},'agZeQ':_0x1fc6eb(0x147),'BwMyB':'WlGsB','SXYrw':function(_0x1f97a0,_0x3cdee0,_0x490a3c,_0x28f026,_0x3884ce,_0x1da967,_0x52b34a,_0x4b7fd9){return _0x1f97a0(_0x3cdee0,_0x490a3c,_0x28f026,_0x3884ce,_0x1da967,_0x52b34a,_0x4b7fd9);},'zubqZ':_0x1fc6eb(0x105),'VUfrK':'pre-check-cluster-args-not-passed','NhbIh':function(_0x327a66,_0xb5f226){return _0x327a66===_0xb5f226;},'vsYNl':_0x1fc6eb(0x1a3),'EHSWc':'NpNln','jOeQS':_0x1fc6eb(0x199),'UjXXn':function(_0x12af1c,_0x32dfc7,_0x3b7f15,_0x2f673a,_0x2dd5a3,_0x10e81a,_0xf7786b,_0x38bb24){return _0x12af1c(_0x32dfc7,_0x3b7f15,_0x2f673a,_0x2dd5a3,_0x10e81a,_0xf7786b,_0x38bb24);},'yVGqj':_0x1fc6eb(0x1d6),'sgYmq':function(_0x3ebfc0,_0x17056d){return _0x3ebfc0===_0x17056d;},'LSbhJ':_0x1fc6eb(0x111),'goGGV':_0x1fc6eb(0x194),'STTpT':_0x1fc6eb(0x19e),'eACFj':_0x1fc6eb(0x131),'FmIEb':function(_0xf519cd,_0x59f11a,_0x3a6619){return _0xf519cd(_0x59f11a,_0x3a6619);},'xwRny':function(_0x4b0b66,_0x192de2,_0x4db3c3,_0x47cda3,_0x1c9f5e,_0x52495e){return _0x4b0b66(_0x192de2,_0x4db3c3,_0x47cda3,_0x1c9f5e,_0x52495e);},'xCaLu':_0x1fc6eb(0x138),'iDSKO':_0x1fc6eb(0x1e5),'qWBwj':function(_0x53a28f,_0x56b391){return _0x53a28f!==_0x56b391;},'BKyYV':'KrNDc','nvFbU':function(_0x4c4056,_0x506a7e){return _0x4c4056(_0x506a7e);},'xUtHN':_0x1fc6eb(0x16c),'gecCm':_0x1fc6eb(0x1df),'yBUXC':function(_0xe2a34a,_0x597816,_0x48e2bb,_0x1b230b,_0x3e9a7c,_0x5aeabf,_0x5c8e42,_0x5d8cb1){return _0xe2a34a(_0x597816,_0x48e2bb,_0x1b230b,_0x3e9a7c,_0x5aeabf,_0x5c8e42,_0x5d8cb1);},'wCoge':_0x1fc6eb(0x163),'ygqGO':_0x1fc6eb(0x106),'KOAYv':function(_0x1c1025,_0x2be040){return _0x1c1025===_0x2be040;},'JOvDX':_0x1fc6eb(0x1ba),'uSJKR':_0x1fc6eb(0x187),'HlYJp':function(_0x5b6a8b,_0x524c48){return _0x5b6a8b===_0x524c48;},'woYJm':'dHOTo','rCTXB':_0x1fc6eb(0x1aa),'KgoYW':'IfExV','FvAbD':function(_0x475023,_0x25c38e,_0x27eeb8,_0x385522,_0x237300,_0x442437,_0x59c85e,_0x2de9a9){return _0x475023(_0x25c38e,_0x27eeb8,_0x385522,_0x237300,_0x442437,_0x59c85e,_0x2de9a9);}};let _0x2ff52d;try{if(_0x65933f[_0x1fc6eb(0x10b)](_0x65933f[_0x1fc6eb(0x185)],_0x65933f['vWWog'])){const {header:_0x516940,response:_0x4fe615}=_0xa4f6ba,{status:_0x1fe5f9,data:_0x419f34,error:_0x5aa926}=_0x4fe615;_0x4eb0dd+=_0x516940+'\x20#'+_0x65933f[_0x1fc6eb(0x11d)](_0x27f254,0x1)+'\x0a',_0x28a0e4+=_0x1fc6eb(0x14f)+(_0x1fe5f9?_0x65933f['enKlw']:_0x65933f[_0x1fc6eb(0x17e)])+'\x0a',_0x3b04fa+=_0x1fc6eb(0x161)+_0x65933f[_0x1fc6eb(0x1da)](_0x419f34,_0x65933f[_0x1fc6eb(0x14a)])+'\x0a',_0x5aa926&&(_0x9ae2e2+=_0x65933f[_0x1fc6eb(0x122)],_0x1223c4+=_0x1fc6eb(0x113)+(_0x5aa926[_0x1fc6eb(0x18d)]||_0x65933f[_0x1fc6eb(0x14a)])+'\x0a',_0x5cf8d6+=_0x1fc6eb(0x1cf)+(_0x5aa926[_0x1fc6eb(0x100)]||_0x65933f[_0x1fc6eb(0x14a)])+'\x0a',_0x2bc273+=_0x1fc6eb(0x1b0)+(_0x5aa926[_0x1fc6eb(0x1d3)]||_0x65933f[_0x1fc6eb(0x14a)])+'\x0a'),_0x5bde62+='\x0a\x0a';}else{if(_0xb082e0[_0x1fc6eb(0x16b)]||_0xb082e0[_0x1fc6eb(0x1b4)]||_0xb082e0['region']){if(_0x65933f['BfVkr'](_0x65933f[_0x1fc6eb(0x1dc)],_0x65933f['suyvI'])){const _0x120525=[];!_0xb082e0[_0x1fc6eb(0x16b)]&&(_0x65933f[_0x1fc6eb(0x10b)](_0x65933f[_0x1fc6eb(0x1af)],_0x65933f[_0x1fc6eb(0x167)])?_0x120525[_0x1fc6eb(0x137)](_0x65933f['GQFXi']):_0xdf3e9c[_0x1fc6eb(0x137)](_0x65933f[_0x1fc6eb(0x1bb)]));;!_0xb082e0[_0x1fc6eb(0x1b4)]&&(_0x65933f[_0x1fc6eb(0x156)](_0x65933f[_0x1fc6eb(0x144)],_0x65933f[_0x1fc6eb(0x144)])?_0x120525[_0x1fc6eb(0x137)](_0x65933f[_0x1fc6eb(0x1bb)]):_0x1499a1[_0x1fc6eb(0x1eb)](0x1));;!_0xb082e0[_0x1fc6eb(0x166)]&&(_0x65933f[_0x1fc6eb(0x181)](_0x65933f['HnsEO'],_0x65933f['HnsEO'])?_0x389212+=_0x1fc6eb(0x19b)+_0x48a9cd[_0x1fc6eb(0x16b)]+'\x20'+(_0x5580b8?_0x65933f[_0x1fc6eb(0x1ab)]:_0x65933f['oazRm'])+'\x0a\x0a':_0x120525[_0x1fc6eb(0x137)](_0x65933f[_0x1fc6eb(0x1c4)]));;if(_0x65933f['MfwYV'](_0x120525[_0x1fc6eb(0x172)],0x0)){if(_0x65933f[_0x1fc6eb(0x10b)](_0x65933f['agZeQ'],_0x65933f[_0x1fc6eb(0x13a)]))_0x2ff52d='Missing\x20required\x20arguments:\x20'+_0x120525[_0x1fc6eb(0x116)](',\x20')+_0x1fc6eb(0x191),await _0x65933f[_0x1fc6eb(0x188)](reportToGalactusAndSendToEDS,_0xb082e0,_0x17ec4b,_0x2ff52d,messageTypes[_0x1fc6eb(0x1dd)],_0x65933f[_0x1fc6eb(0x169)],_0x65933f['VUfrK'],_0x65933f[_0x1fc6eb(0x13b)]),logger[_0x1fc6eb(0x136)](_0x2ff52d),process[_0x1fc6eb(0x1eb)](0x1);else{const _0x3fcc06={};_0x3fcc06[_0x1fc6eb(0x182)]=_0x65933f[_0x1fc6eb(0x117)],_0x3fcc06[_0x1fc6eb(0x179)]=_0x65933f[_0x1fc6eb(0x1de)];const _0xdf9e39={};_0xdf9e39['description']=_0x65933f[_0x1fc6eb(0x1b1)],_0xdf9e39[_0x1fc6eb(0x179)]=_0x65933f['hdFJc'];const _0x313778={};_0x313778[_0x1fc6eb(0x182)]=_0x65933f['cvneS'],_0x313778['type']=_0x65933f['hdFJc'];const _0x52432c={};_0x52432c[_0x1fc6eb(0x182)]=_0x65933f['yjTfi'],_0x52432c[_0x1fc6eb(0x179)]=_0x65933f[_0x1fc6eb(0x1de)];const _0x14b4b1={};return _0x14b4b1[_0x1fc6eb(0x14c)]=_0x3fcc06,_0x14b4b1['cloud-provider']=_0xdf9e39,_0x14b4b1[_0x1fc6eb(0x166)]=_0x313778,_0x14b4b1[_0x1fc6eb(0x1e5)]=_0x52432c,_0x4f2222['usage'](_0x283829['pre_check'])[_0x1fc6eb(0x1a0)](_0x22fe80)[_0x1fc6eb(0x139)](_0x14b4b1)[_0x1fc6eb(0x1e0)](_0x65933f[_0x1fc6eb(0x1db)])['argv'];}}!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0xb082e0[_0x1fc6eb(0x1b4)][_0x1fc6eb(0x176)]())&&(_0x65933f[_0x1fc6eb(0x18a)](_0x65933f[_0x1fc6eb(0x1c3)],_0x65933f[_0x1fc6eb(0x160)])?(_0x5daf6f[_0x1fc6eb(0x12f)]('['+_0x2b5723+_0x1fc6eb(0x14b)+_0x5f1bcf['status']+_0x1fc6eb(0x150)+_0x2f0b38[_0x1fc6eb(0x1cb)]+_0x1fc6eb(0x16d)+_0x224d37[_0x1fc6eb(0x136)]),_0x341bdf[_0x1fc6eb(0x136)]&&_0xb97977['error']('error\x20stack\x20:\x20'+_0x1589f0[_0x1fc6eb(0x136)]['stack'])):(_0x2ff52d=_0x65933f[_0x1fc6eb(0x10c)],await _0x65933f['UjXXn'](reportToGalactusAndSendToEDS,_0xb082e0,_0x17ec4b,_0x2ff52d,messageTypes[_0x1fc6eb(0x1dd)],_0x65933f[_0x1fc6eb(0x169)],_0x65933f[_0x1fc6eb(0x13d)],_0x65933f[_0x1fc6eb(0x13b)]),logger[_0x1fc6eb(0x136)](_0x2ff52d),!_0xb082e0[_0x1fc6eb(0x1b4)]&&(_0x65933f[_0x1fc6eb(0x1d9)](_0x65933f['LSbhJ'],_0x65933f[_0x1fc6eb(0x1b2)])?(_0x8193b2[_0x1fc6eb(0x136)](_0x65933f[_0x1fc6eb(0x1b7)]),_0x52f886[_0x1fc6eb(0x1eb)](0x1)):(logger[_0x1fc6eb(0x12f)](_0x1fc6eb(0x1c1)+DEFAULT_CLUSTER_DETAILS[_0x1fc6eb(0x159)]+'\x20'),_0xb082e0[_0x1fc6eb(0x1b4)]=DEFAULT_CLUSTER_DETAILS[_0x1fc6eb(0x159)])))),global_registry[_0x1fc6eb(0x16b)]=_0xb082e0[_0x1fc6eb(0x16b)],global_registry[_0x1fc6eb(0x1b4)]=_0xb082e0['cloudProvider'],global_registry['clusterRegion']=_0xb082e0['region'];}else _0x60c0dc['info'](_0x1fc6eb(0x17b)+_0x5a88c1[_0x1fc6eb(0x16b)]+_0x1fc6eb(0x126));}else{if(_0xb082e0[_0x1fc6eb(0x1ce)]){if(_0x65933f[_0x1fc6eb(0x156)](_0x65933f['STTpT'],_0x65933f[_0x1fc6eb(0x1e1)])){global_registry['gridProfile']=_0xb082e0['gridProfile'],logger[_0x1fc6eb(0x1d2)](_0x1fc6eb(0x196)+_0xb082e0['gridProfile']);const _0x4dd40d=_0x1fc6eb(0x115)+AG_API_URL+_0x1fc6eb(0x180),_0x4c7f6b={};_0x4c7f6b[_0x1fc6eb(0x135)]=_0x65933f[_0x1fc6eb(0x142)],_0x4c7f6b[_0x1fc6eb(0x153)]=global_registry[_0x1fc6eb(0x192)],_0x4c7f6b[_0x1fc6eb(0x1a5)]=![];const _0x2696af=_0x4c7f6b,_0x35bc56=await _0x65933f['FmIEb'](got,_0x4dd40d,_0x2696af),_0x2c1b12=await _0x65933f[_0x1fc6eb(0x15a)](responseValidation,_0x35bc56,_0x65933f[_0x1fc6eb(0x1c8)],_0x65933f[_0x1fc6eb(0x13c)],_0xb082e0,_0x17ec4b);let _0x20217a={};if(_0x65933f[_0x1fc6eb(0x18a)](_0x2c1b12,0xc8)){if(_0x65933f['qWBwj'](_0x65933f[_0x1fc6eb(0x183)],_0x65933f[_0x1fc6eb(0x183)]))_0x3ecd56[_0x1fc6eb(0x137)](_0x65933f[_0x1fc6eb(0x1c4)]);else{const _0x27b39d=JSON['parse'](_0x35bc56[_0x1fc6eb(0x15f)]),_0xa94e2a=_0x27b39d['find'](_0x333b5f=>_0x333b5f['name']===_0xb082e0[_0x1fc6eb(0x1ce)])||null;_0x65933f[_0x1fc6eb(0x162)](isUndefined,_0xa94e2a)?_0x65933f['NhbIh'](_0x65933f[_0x1fc6eb(0x19f)],_0x65933f[_0x1fc6eb(0x164)])?_0x1b9566+=_0x1fc6eb(0x19b)+_0x1499bd['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':(_0x2ff52d=_0x1fc6eb(0x1ac)+_0xb082e0[_0x1fc6eb(0x1ce)]+_0x1fc6eb(0x1c7),await _0x65933f[_0x1fc6eb(0x195)](reportToGalactusAndSendToEDS,_0xb082e0,_0x17ec4b,_0x2ff52d,messageTypes['ERROR'],_0x65933f['zubqZ'],_0x65933f['wCoge'],_0x65933f[_0x1fc6eb(0x13b)]),logger[_0x1fc6eb(0x136)](_0x2ff52d),process['exit'](0x1)):_0x65933f[_0x1fc6eb(0x156)](_0x65933f['ygqGO'],_0x65933f[_0x1fc6eb(0x1d7)])?_0x20217a=_0xa94e2a:_0x241e5e['push'](_0x65933f[_0x1fc6eb(0x12e)]);}}else _0x65933f['KOAYv'](_0x65933f[_0x1fc6eb(0x10f)],_0x65933f[_0x1fc6eb(0x10f)])?process['exit'](0x1):_0x2dbcf4=_0x1dc288;const _0xac5b3a={};_0xac5b3a[_0x1fc6eb(0x179)]=WS_EVENTS[_0x1fc6eb(0x118)],_0xac5b3a[_0x1fc6eb(0x18d)]=_0x65933f[_0x1fc6eb(0xfb)],webSocketUtils[_0x1fc6eb(0x158)](_0x17ec4b,_0xac5b3a),global_registry[_0x1fc6eb(0x1b4)]=_0x20217a[_0x1fc6eb(0x1b4)],global_registry[_0x1fc6eb(0x165)]=_0x20217a[_0x1fc6eb(0x166)],global_registry['clusterName']=_0x20217a[_0x1fc6eb(0x16b)];}else{const _0x1b5234={};_0x1b5234['type']=_0x136013[_0x1fc6eb(0x118)],_0x1b5234['message']=_0x2d5c70,_0x539df8['sendEventToBackend'](_0x5359dc,_0x1b5234,_0x65933f[_0x1fc6eb(0x13b)],!![]);}}else _0x65933f[_0x1fc6eb(0x16e)](_0x65933f[_0x1fc6eb(0x121)],_0x65933f[_0x1fc6eb(0x140)])?_0x2bb915[_0x1fc6eb(0x136)](_0x1fc6eb(0x1d4)+_0x200230[_0x1fc6eb(0x136)][_0x1fc6eb(0x1d3)]):(logger[_0x1fc6eb(0x136)](_0x65933f[_0x1fc6eb(0x1b7)]),process['exit'](0x1));}}}catch(_0x1c159c){_0x65933f[_0x1fc6eb(0x10b)](_0x65933f['KgoYW'],_0x65933f['KgoYW'])?(_0x5e4d4d+=_0x65933f['sqyxp'],_0x26ee9b+=_0x1fc6eb(0x113)+(_0x3b22f9[_0x1fc6eb(0x18d)]||_0x65933f['ZoBpQ'])+'\x0a',_0x49576c+=_0x1fc6eb(0x1cf)+(_0x2c5783[_0x1fc6eb(0x100)]||_0x65933f[_0x1fc6eb(0x14a)])+'\x0a',_0x412df8+=_0x1fc6eb(0x1b0)+(_0x709c1['stack']||_0x65933f[_0x1fc6eb(0x14a)])+'\x0a'):(_0x2ff52d='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x1c159c+':\x20'+_0x1c159c[_0x1fc6eb(0x1d3)],logger[_0x1fc6eb(0x136)](_0x2ff52d),await _0x65933f[_0x1fc6eb(0x12c)](reportToGalactusAndSendToEDS,_0xb082e0,_0x17ec4b,_0x2ff52d,messageTypes[_0x1fc6eb(0x1dd)],_0x65933f[_0x1fc6eb(0x169)],_0x65933f[_0x1fc6eb(0x13d)],_0x65933f[_0x1fc6eb(0x13b)]),process['exit'](0x1));}}function a17_0x4cbd(_0x116304,_0x37d02e){const _0x447b03=a17_0x447b();return a17_0x4cbd=function(_0x4cbd90,_0x247225){_0x4cbd90=_0x4cbd90-0xfb;let _0x58f608=_0x447b03[_0x4cbd90];return _0x58f608;},a17_0x4cbd(_0x116304,_0x37d02e);}function printResponse(_0x447516,_0x36c9e1){const _0x324972=a17_0x1f31eb,_0xd5e780={};_0xd5e780[_0x324972(0x1ca)]=function(_0x5963de,_0x714662){return _0x5963de!==_0x714662;},_0xd5e780[_0x324972(0x155)]=_0x324972(0x1c9);const _0x4dd0b8=_0xd5e780;logger[_0x324972(0x12f)]('['+_0x447516+_0x324972(0x14b)+_0x36c9e1['status']+'\x20data\x20:\x20'+_0x36c9e1['data']+_0x324972(0x16d)+_0x36c9e1['error']),_0x36c9e1[_0x324972(0x136)]&&(_0x4dd0b8[_0x324972(0x1ca)](_0x4dd0b8[_0x324972(0x155)],_0x4dd0b8[_0x324972(0x155)])?(_0x5c30cb[_0x324972(0x12f)](_0x324972(0x1c1)+_0x20af2f[_0x324972(0x159)]+'\x20'),_0x584bf7['cloudProvider']=_0x495dd1[_0x324972(0x159)]):logger['error'](_0x324972(0x1d4)+_0x36c9e1[_0x324972(0x136)][_0x324972(0x1d3)]));}async function generateReport(_0x4a60d0,_0x1d9606){const _0x2a6d68=a17_0x1f31eb,_0x55215b={'KNIwz':function(_0x507483,_0x362863){return _0x507483+_0x362863;},'FmciR':_0x2a6d68(0x18b),'JIMyW':_0x2a6d68(0x1d0),'dAHgr':function(_0x186cf9,_0x561f5e){return _0x186cf9||_0x561f5e;},'GduCd':_0x2a6d68(0x104),'IJmui':_0x2a6d68(0x1e2),'PVrPV':'Cluster\x20details\x0a-----------------------\x0a','yTiaL':function(_0x32bae0,_0x3174d6){return _0x32bae0!=_0x3174d6;},'rVMQU':_0x2a6d68(0x128),'cXhzA':'will\x20be\x20created','KsbvT':function(_0x4e3ad8){return _0x4e3ad8();}};let _0x10aa6e='===\x20Precheck\x20Report\x20-\x20'+global_registry['cloudProvider']+_0x2a6d68(0x1bc);return _0x4a60d0[_0x2a6d68(0x14e)]((_0x185990,_0x2353be)=>{const _0xb6b436=_0x2a6d68,{header:_0xa23f9b,response:_0x23678b}=_0x185990,{status:_0x384ac6,data:_0x78fa60,error:_0x391cc1}=_0x23678b;_0x10aa6e+=_0xa23f9b+'\x20#'+_0x55215b[_0xb6b436(0x1b3)](_0x2353be,0x1)+'\x0a',_0x10aa6e+='Status:\x20'+(_0x384ac6?_0x55215b[_0xb6b436(0x1d1)]:_0x55215b[_0xb6b436(0x130)])+'\x0a',_0x10aa6e+=_0xb6b436(0x161)+_0x55215b[_0xb6b436(0x149)](_0x78fa60,_0x55215b[_0xb6b436(0x16f)])+'\x0a',_0x391cc1&&(_0x10aa6e+=_0x55215b[_0xb6b436(0x193)],_0x10aa6e+=_0xb6b436(0x113)+(_0x391cc1[_0xb6b436(0x18d)]||_0x55215b['GduCd'])+'\x0a',_0x10aa6e+='\x20\x20Code:\x20'+(_0x391cc1[_0xb6b436(0x100)]||_0x55215b['GduCd'])+'\x0a',_0x10aa6e+='\x20\x20Stack:\x20'+(_0x391cc1[_0xb6b436(0x1d3)]||_0x55215b[_0xb6b436(0x16f)])+'\x0a'),_0x10aa6e+='\x0a\x0a';}),_0x10aa6e+=_0x55215b['PVrPV'],_0x55215b[_0x2a6d68(0x15b)](_0x1d9606,null)?_0x10aa6e+='Cluster\x20'+global_registry['clusterName']+'\x20'+(_0x1d9606?_0x55215b['rVMQU']:_0x55215b[_0x2a6d68(0x107)])+'\x0a\x0a':_0x10aa6e+=_0x2a6d68(0x19b)+global_registry[_0x2a6d68(0x16b)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x10aa6e+=_0x55215b['KsbvT'](getSystemMetaData),_0x10aa6e;};exports[a17_0x1f31eb(0x1c5)]=async function(_0x19a1ae){const _0x22ac6e=a17_0x1f31eb,_0x468668={'chvQC':function(_0x2d322d){return _0x2d322d();},'xUiae':function(_0x42f4d9){return _0x42f4d9();},'EbFPM':_0x22ac6e(0x132),'asJzB':function(_0x3085e0,_0x2f267c,_0x2126b6,_0x134e80,_0x2d1152,_0x3f2018,_0x243767,_0x496833){return _0x3085e0(_0x2f267c,_0x2126b6,_0x134e80,_0x2d1152,_0x3f2018,_0x243767,_0x496833);},'UMDpg':_0x22ac6e(0x105),'ncFLQ':_0x22ac6e(0x1b5),'icNHX':_0x22ac6e(0x136),'LMjyR':function(_0x36b61b,_0x8cd13f,_0xd4a0f2,_0x5a5c9b,_0x4b12bc,_0x55fd79,_0xc992c0){return _0x36b61b(_0x8cd13f,_0xd4a0f2,_0x5a5c9b,_0x4b12bc,_0x55fd79,_0xc992c0);},'FDmji':function(_0x30e0dd){return _0x30e0dd();},'zopTW':'<UsernamePlaceholder>','cRlsN':'<PasswordPlaceholder>','KMJrY':function(_0x16e2c9,_0x523a05,_0x3f06e1){return _0x16e2c9(_0x523a05,_0x3f06e1);},'nDMxx':function(_0x35b80c,_0x3e2188,_0x4f3038){return _0x35b80c(_0x3e2188,_0x4f3038);},'czyuT':'dummy-grid','rdSHD':function(_0xbdb175,_0x4a4dbb,_0x48ae69){return _0xbdb175(_0x4a4dbb,_0x48ae69);},'haGKy':'toolInstalledResp','Xgjyb':_0x22ac6e(0x125),'KsJmg':function(_0x204d3e,_0x468788,_0x2d8500){return _0x204d3e(_0x468788,_0x2d8500);},'ufXqU':_0x22ac6e(0x19d),'FcwtC':function(_0x23d892){return _0x23d892();},'LrnXp':_0x22ac6e(0x1ad),'pKfJY':function(_0x169928,_0x4fef1c){return _0x169928(_0x4fef1c);},'NMYmU':'TLSv1_2_client_method','nHpza':function(_0x2a880f,_0x59d6af,_0x255bd6){return _0x2a880f(_0x59d6af,_0x255bd6);},'YKmrZ':'isTls1_2_SUPPORTED','ZJLOO':_0x22ac6e(0x12b),'pegEW':_0x22ac6e(0x177),'LGfyi':_0x22ac6e(0x17c),'rTmEm':'SSL\x20Configured','NkfQa':function(_0x21dd12,_0x6ac6a8){return _0x21dd12+_0x6ac6a8;},'tKGNJ':_0x22ac6e(0x198),'uEmAg':function(_0x47246f,_0xc97b73,_0x170c0f,_0x5874f3,_0xaafc89,_0x453393,_0x1ae978){return _0x47246f(_0xc97b73,_0x170c0f,_0x5874f3,_0xaafc89,_0x453393,_0x1ae978);},'SIlYu':'pre-check-failed'};let _0x1a2cc5,_0x2c4176;try{global_registry[_0x22ac6e(0x168)]=_0x468668[_0x22ac6e(0x129)](uuidv4);!fs[_0x22ac6e(0x171)](_0x468668[_0x22ac6e(0x1c0)](getCredentialsPath))&&(_0x2c4176=_0x468668['EbFPM'],logger[_0x22ac6e(0x136)](_0x2c4176),await _0x468668['asJzB'](reportToGalactusAndSendToEDS,_0x19a1ae,_0x1a2cc5,_0x2c4176,messageTypes['ERROR'],_0x468668['UMDpg'],_0x468668[_0x22ac6e(0x17a)],_0x468668[_0x22ac6e(0x127)]),process['exit'](0x1));_0x468668[_0x22ac6e(0x1a6)](sendInstrumentationEvent,_0x19a1ae,_0x468668[_0x22ac6e(0x10d)],messageTypes[_0x22ac6e(0x1a7)],null,null,_0x19a1ae);const _0x2233e0=JSON[_0x22ac6e(0x15d)](fs[_0x22ac6e(0x148)](_0x468668['FDmji'](getCredentialsPath)));global_registry[_0x22ac6e(0x108)]=_0x2233e0[_0x22ac6e(0x1c2)][_0x22ac6e(0x109)],global_registry[_0x22ac6e(0x11b)]=_0x2233e0[_0x22ac6e(0x1c2)][_0x22ac6e(0x1bd)];const _0x4d6399=WS_ENDPOINT[_0x22ac6e(0x1e3)](_0x468668[_0x22ac6e(0x120)],_0x2233e0['Browserstack'][_0x22ac6e(0x109)])[_0x22ac6e(0x1e3)](_0x468668[_0x22ac6e(0x17f)],_0x2233e0[_0x22ac6e(0x1c2)][_0x22ac6e(0x1bd)]),_0x25531f={};_0x25531f[_0x22ac6e(0x119)]=ws,_0x25531f['connectionTimeout']=0x36ee80,_0x1a2cc5=new ReconnectingWebSocket(_0x4d6399,[],_0x25531f),global_registry['authHeader']=_0x468668[_0x22ac6e(0x1e9)](getAuthHeader,global_registry[_0x22ac6e(0x108)],global_registry[_0x22ac6e(0x11b)]),await _0x468668[_0x22ac6e(0x1b6)](inputValidation,_0x19a1ae,_0x1a2cc5),logger[_0x22ac6e(0x12f)](_0x22ac6e(0x11e)+global_registry[_0x22ac6e(0x1b4)]+_0x22ac6e(0x1a9)+global_registry['clusterRegion']);let _0x65ea91=await _0x468668['LMjyR'](getCloudProviderObjectWithOutInit,global_registry[_0x22ac6e(0x1b4)],global_registry[_0x22ac6e(0x16b)],_0x468668[_0x22ac6e(0x12d)],_0x1a2cc5,webSocketUtils,_0x19a1ae);const _0x394500=await _0x65ea91[_0x22ac6e(0x114)]();_0x468668[_0x22ac6e(0x157)](printResponse,_0x468668[_0x22ac6e(0x18e)],_0x394500),_0x65ea91=await _0x65ea91[_0x22ac6e(0x1e8)]();let _0x5ca17b=![];try{_0x5ca17b=await _0x65ea91[_0x22ac6e(0x178)]();}catch(_0xaf480a){const _0x571c15=_0x468668['Xgjyb']['split']('|');let _0x404238=0x0;while(!![]){switch(_0x571c15[_0x404238++]){case'0':await _0x468668[_0x22ac6e(0x1e7)](reportToGalactusAndSendToEDS,_0x19a1ae,_0x1a2cc5,_0x2c4176,messageTypes[_0x22ac6e(0x1dd)],_0x468668[_0x22ac6e(0x10d)],_0x22ac6e(0x18f)+global_registry[_0x22ac6e(0x1b4)],_0x468668[_0x22ac6e(0x127)]);continue;case'1':_0x2c4176+='\x0a'+JSON[_0x22ac6e(0x1e4)](_0xaf480a[_0x22ac6e(0x1d3)]);continue;case'2':logger['error'](_0x2c4176);continue;case'3':_0x2c4176=_0x22ac6e(0x10a)+global_registry[_0x22ac6e(0x16b)]+_0x22ac6e(0x15c)+global_registry[_0x22ac6e(0x165)]+_0x22ac6e(0x123)+_0xaf480a;continue;case'4':_0x5ca17b=null;continue;}break;}}_0x5ca17b&&logger['info'](_0x22ac6e(0x17b)+global_registry['clusterName']+_0x22ac6e(0x126));const _0xf9ebbf=await _0x65ea91['checkAccess']();_0x468668[_0x22ac6e(0x124)](printResponse,_0x468668[_0x22ac6e(0x133)],_0xf9ebbf);const _0x303ba4=await _0x468668[_0x22ac6e(0x18c)](curlRequest);_0x468668[_0x22ac6e(0x1e9)](printResponse,_0x468668[_0x22ac6e(0x103)],_0x303ba4);const _0x5e0fed=await _0x468668[_0x22ac6e(0x12a)](isTlsSupported,_0x468668[_0x22ac6e(0x1ea)]);_0x468668['nHpza'](printResponse,_0x468668['YKmrZ'],_0x5e0fed);const _0x3bc5e8={};_0x3bc5e8['header']=_0x468668['ZJLOO'],_0x3bc5e8[_0x22ac6e(0x1cd)]=_0x394500;const _0x115941={};_0x115941[_0x22ac6e(0x186)]=_0x468668['pegEW'],_0x115941[_0x22ac6e(0x1cd)]=_0xf9ebbf;const _0x52304f={};_0x52304f[_0x22ac6e(0x186)]=_0x468668['LGfyi'],_0x52304f[_0x22ac6e(0x1cd)]=_0x303ba4;const _0x17378e={};_0x17378e[_0x22ac6e(0x186)]=_0x468668['rTmEm'],_0x17378e[_0x22ac6e(0x1cd)]=_0x5e0fed;const _0x5be6d6=[_0x3bc5e8,_0x115941,_0x52304f,_0x17378e],_0x177de7=await _0x468668[_0x22ac6e(0x124)](generateReport,_0x5be6d6,_0x5ca17b),_0x410492=new Date(),_0x384550=_0x410492[_0x22ac6e(0x1c6)]()+'_'+_0x468668[_0x22ac6e(0x19a)](_0x410492[_0x22ac6e(0x11f)](),0x1)+'_'+_0x410492['getUTCDate']()+'_'+_0x410492['getUTCHours']()+'_'+_0x410492[_0x22ac6e(0x1a4)](),_0x767f41=_0x22ac6e(0x151)+_0x384550+_0x22ac6e(0xfd);fs[_0x22ac6e(0x19c)](_0x767f41,_0x177de7,_0x468668[_0x22ac6e(0xfe)]),logger[_0x22ac6e(0x12f)]('Report\x20saved\x20in\x20'+_0x767f41),process[_0x22ac6e(0x1eb)](0x0);}catch(_0x1cc4d7){let _0x52dba1=_0x22ac6e(0x1cc)+_0x1cc4d7+'\x20';logger['error'](_0x52dba1),_0x52dba1+='\x0a'+JSON['stringify'](_0x1cc4d7['stack']),logger[_0x22ac6e(0x1d2)]('stack\x20trace\x20'+_0x1cc4d7[_0x22ac6e(0x1d3)]);if(_0x1a2cc5){const _0xae3219={};_0xae3219[_0x22ac6e(0x179)]=WS_EVENTS['LOG'],_0xae3219['message']=_0x52dba1,webSocketUtils[_0x22ac6e(0x158)](_0x1a2cc5,_0xae3219,_0x468668[_0x22ac6e(0x127)],!![]);}await webSocketUtils[_0x22ac6e(0xfc)](0x7d0);const _0x33af1a={};_0x33af1a['error']=_0x52dba1,await _0x468668[_0x22ac6e(0x141)](sendInstrumentationEvent,_0x19a1ae,_0x468668[_0x22ac6e(0x10d)],messageTypes['ERROR'],_0x468668[_0x22ac6e(0x190)],_0x33af1a,_0x19a1ae),process[_0x22ac6e(0x1eb)](0x1);}};
|
|
1
|
+
const a17_0x528345=a17_0x53f9;(function(_0x54cf95,_0x11ae7e){const _0x4ce608=a17_0x53f9,_0x2beddd=_0x54cf95();while(!![]){try{const _0x24b753=parseInt(_0x4ce608(0x182))/0x1*(parseInt(_0x4ce608(0x1ab))/0x2)+parseInt(_0x4ce608(0x199))/0x3+-parseInt(_0x4ce608(0x1c8))/0x4+parseInt(_0x4ce608(0x10f))/0x5*(-parseInt(_0x4ce608(0x1ee))/0x6)+-parseInt(_0x4ce608(0x10a))/0x7+parseInt(_0x4ce608(0x1f1))/0x8*(parseInt(_0x4ce608(0x1f4))/0x9)+-parseInt(_0x4ce608(0x1b7))/0xa*(parseInt(_0x4ce608(0x19a))/0xb);if(_0x24b753===_0x11ae7e)break;else _0x2beddd['push'](_0x2beddd['shift']());}catch(_0x5da8a6){_0x2beddd['push'](_0x2beddd['shift']());}}}(a17_0x40d3,0xd5baa));const fs=require('fs'),ws=require('ws'),got=require(a17_0x528345(0x1e8)),{v4:uuidv4}=require(a17_0x528345(0x11b)),ReconnectingWebSocket=require(a17_0x528345(0x185)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x528345(0x14d)),{logger}=require(a17_0x528345(0x10e)),{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_0x528345(0x13e)),{getCloudProviderObjectWithOutInit}=require(a17_0x528345(0x1df)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x528345(0x107));exports[a17_0x528345(0x17d)]=a17_0x528345(0x1d2),exports['desc']=a17_0x528345(0x198),exports[a17_0x528345(0x180)]=function(_0x82a5f7){const _0x45c3c9=a17_0x528345,_0x315df5={};_0x315df5[_0x45c3c9(0x184)]=_0x45c3c9(0x1cd),_0x315df5['tVggv']='string',_0x315df5[_0x45c3c9(0x13f)]=_0x45c3c9(0x150),_0x315df5[_0x45c3c9(0x1b3)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x315df5['aoLMd']=_0x45c3c9(0x162),_0x315df5[_0x45c3c9(0x157)]='help';const _0x4e49b4=_0x315df5,_0x4580d6={};_0x4580d6[_0x45c3c9(0x19f)]=_0x4e49b4[_0x45c3c9(0x184)],_0x4580d6['type']=_0x4e49b4[_0x45c3c9(0x17c)];const _0x26b736={};_0x26b736[_0x45c3c9(0x19f)]=_0x4e49b4[_0x45c3c9(0x13f)],_0x26b736[_0x45c3c9(0x1dd)]=_0x4e49b4[_0x45c3c9(0x17c)];const _0x4f8bbe={};_0x4f8bbe[_0x45c3c9(0x19f)]=_0x4e49b4[_0x45c3c9(0x1b3)],_0x4f8bbe[_0x45c3c9(0x1dd)]=_0x4e49b4[_0x45c3c9(0x17c)];const _0x969644={};_0x969644[_0x45c3c9(0x19f)]=_0x4e49b4[_0x45c3c9(0x14b)],_0x969644[_0x45c3c9(0x1dd)]=_0x4e49b4['tVggv'];const _0x3dfcad={};return _0x3dfcad[_0x45c3c9(0x1ea)]=_0x4580d6,_0x3dfcad['cloud-provider']=_0x26b736,_0x3dfcad[_0x45c3c9(0x148)]=_0x4f8bbe,_0x3dfcad['grid-profile']=_0x969644,_0x82a5f7['usage'](HELP_HEADER_MESSAGE[_0x45c3c9(0x1d4)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x45c3c9(0x112)](_0x3dfcad)[_0x45c3c9(0x1db)](_0x4e49b4[_0x45c3c9(0x157)])[_0x45c3c9(0x19c)];};async function inputValidation(_0x936132,_0x4f3fc8){const _0x185a39=a17_0x528345,_0x157f46={'oJWXH':_0x185a39(0x1cd),'vFzXX':_0x185a39(0x1ca),'ClmIb':_0x185a39(0x150),'TEoqf':_0x185a39(0x1e6),'DMeRA':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','SsoNh':_0x185a39(0x1db),'hpOFi':_0x185a39(0x1ea),'OtLkC':_0x185a39(0x18a),'MFDAy':_0x185a39(0x197),'Nojuv':_0x185a39(0x1d6),'Qszjg':_0x185a39(0x148),'pWmKF':function(_0x1c3283,_0x316def){return _0x1c3283+_0x316def;},'aXITx':_0x185a39(0x1e3),'EoPjo':_0x185a39(0x1e1),'WTuMO':function(_0x3c9b08,_0x1a8052){return _0x3c9b08||_0x1a8052;},'HHgIe':_0x185a39(0x1c3),'IaGbB':_0x185a39(0x1a6),'QLfxJ':_0x185a39(0x12c),'lgMge':'cloud-provider','ROsyQ':function(_0x563ee0,_0x1aaf71){return _0x563ee0!==_0x1aaf71;},'LhyqT':_0x185a39(0x120),'fUEjG':function(_0x1ba9f3,_0x1b857c){return _0x1ba9f3===_0x1b857c;},'trBCR':_0x185a39(0x15f),'eVBEd':function(_0x11a6cf,_0x2da9f3){return _0x11a6cf!==_0x2da9f3;},'HQIfd':_0x185a39(0x1f5),'Smkyn':_0x185a39(0x12f),'akwuE':function(_0x2de064,_0x55bba6){return _0x2de064===_0x55bba6;},'Lwbgw':'bbRSD','KQuLg':function(_0x4bbead,_0x1982a5){return _0x4bbead>_0x1982a5;},'OWqYe':_0x185a39(0x1f7),'ryBem':function(_0x522ae9,_0xe79eeb,_0x54073a,_0x583d8d,_0x55206f,_0x2d1d34,_0x3b0d28,_0x2e3f62){return _0x522ae9(_0xe79eeb,_0x54073a,_0x583d8d,_0x55206f,_0x2d1d34,_0x3b0d28,_0x2e3f62);},'DaGeD':_0x185a39(0x11c),'mUFWU':_0x185a39(0x15b),'uiPTl':_0x185a39(0x137),'bioLF':'UaUtD','lWPWk':_0x185a39(0x1b0),'gxHAk':_0x185a39(0x1e5),'vfuYI':function(_0x560359,_0x3e7044){return _0x560359!==_0x3e7044;},'kIAHq':_0x185a39(0x194),'zxHVy':_0x185a39(0x114),'iOxCj':function(_0x21120d,_0x40e959){return _0x21120d!==_0x40e959;},'NhIff':_0x185a39(0x151),'tlQoa':'GET','EtXMN':function(_0x347481,_0x44d0d3,_0x42a7f0){return _0x347481(_0x44d0d3,_0x42a7f0);},'YPQGw':function(_0x51834f,_0x8230c9,_0x444d27,_0x15fb43,_0x5d8a86,_0x20af82){return _0x51834f(_0x8230c9,_0x444d27,_0x15fb43,_0x5d8a86,_0x20af82);},'MUmIV':'pre-check','MOBDA':'grid-profile','PMeic':_0x185a39(0x129),'rogqD':_0x185a39(0xfa),'hZJbP':function(_0x105ca2,_0x4af84e){return _0x105ca2(_0x4af84e);},'rmkhA':_0x185a39(0x19e),'ErTdt':_0x185a39(0x196),'Bxnng':_0x185a39(0x16b),'fQNIv':'IAdJn','RXSDA':function(_0x106b42,_0x53a0fd){return _0x106b42!==_0x53a0fd;},'epTFH':_0x185a39(0x104),'Crpmn':'TQMes','FmxSr':_0x185a39(0xf9),'JaHgs':function(_0x390e84,_0x2d4083){return _0x390e84===_0x2d4083;},'fJxGV':'Ojuul','BzTax':_0x185a39(0x131),'jumfU':function(_0x34a896,_0x2feb72){return _0x34a896===_0x2feb72;},'iOYAA':_0x185a39(0x167),'wBOVt':_0x185a39(0x190),'ZBxkH':function(_0x54e9b0,_0x305c9d,_0x3685fb,_0x794192,_0x44143f,_0x713ca2,_0x51c2ea,_0xcc3be5){return _0x54e9b0(_0x305c9d,_0x3685fb,_0x794192,_0x44143f,_0x713ca2,_0x51c2ea,_0xcc3be5);}};let _0xbfe9fa;try{if(_0x157f46[_0x185a39(0x1ae)](_0x157f46[_0x185a39(0x1d1)],_0x157f46[_0x185a39(0x1d1)]))_0x5dc482+=_0x185a39(0x1de)+_0x5295ba['clusterName']+_0x185a39(0x12e);else{if(_0x936132['clusterName']||_0x936132['cloudProvider']||_0x936132[_0x185a39(0x148)]){if(_0x157f46['fUEjG'](_0x157f46[_0x185a39(0x1f3)],_0x157f46[_0x185a39(0x1f3)])){const _0x51a30a=[];!_0x936132['clusterName']&&(_0x157f46[_0x185a39(0x1d5)](_0x157f46[_0x185a39(0x186)],_0x157f46[_0x185a39(0x186)])?(_0x5a4d3f[_0x185a39(0x188)]('['+_0xc806be+']\x20status\x20:\x20'+_0x1dd681['status']+_0x185a39(0x10d)+_0x3de6a3['data']+_0x185a39(0x13d)+_0x243b6d[_0x185a39(0x1c3)]),_0xd70074['error']&&_0x5ef169[_0x185a39(0x1c3)](_0x185a39(0x1c0)+_0x373313[_0x185a39(0x1c3)][_0x185a39(0x177)])):_0x51a30a[_0x185a39(0x175)](_0x157f46['hpOFi']));;if(!_0x936132[_0x185a39(0x1a4)]){if(_0x157f46['fUEjG'](_0x157f46['Smkyn'],_0x157f46[_0x185a39(0x1ef)]))_0x51a30a[_0x185a39(0x175)](_0x157f46[_0x185a39(0x105)]);else{const _0x2f04a4={};_0x2f04a4[_0x185a39(0x19f)]=_0x157f46[_0x185a39(0x1d3)],_0x2f04a4['type']=_0x157f46[_0x185a39(0x156)];const _0x58b45a={};_0x58b45a[_0x185a39(0x19f)]=_0x157f46[_0x185a39(0x133)],_0x58b45a[_0x185a39(0x1dd)]=_0x157f46[_0x185a39(0x156)];const _0x41b851={};_0x41b851[_0x185a39(0x19f)]=_0x157f46['TEoqf'],_0x41b851[_0x185a39(0x1dd)]=_0x157f46[_0x185a39(0x156)];const _0x1ecf0b={};_0x1ecf0b[_0x185a39(0x19f)]=_0x157f46['DMeRA'],_0x1ecf0b[_0x185a39(0x1dd)]=_0x157f46[_0x185a39(0x156)];const _0x2bec36={};return _0x2bec36[_0x185a39(0x1ea)]=_0x2f04a4,_0x2bec36[_0x185a39(0x1d8)]=_0x58b45a,_0x2bec36[_0x185a39(0x148)]=_0x41b851,_0x2bec36[_0x185a39(0x1b9)]=_0x1ecf0b,_0x3a83fa[_0x185a39(0x179)](_0x7e4a2a[_0x185a39(0x1d4)])[_0x185a39(0x1f2)](_0x84ea9e)[_0x185a39(0x112)](_0x2bec36)[_0x185a39(0x1db)](_0x157f46[_0x185a39(0x1ac)])[_0x185a39(0x19c)];}};!_0x936132[_0x185a39(0x148)]&&(_0x157f46[_0x185a39(0x173)](_0x157f46[_0x185a39(0x125)],_0x157f46[_0x185a39(0x125)])?_0x51a30a[_0x185a39(0x175)](_0x157f46[_0x185a39(0x17e)]):_0x35d144['push'](_0x157f46['hpOFi']));;_0x157f46[_0x185a39(0x141)](_0x51a30a[_0x185a39(0x138)],0x0)&&(_0x157f46[_0x185a39(0x102)](_0x157f46[_0x185a39(0x195)],_0x157f46[_0x185a39(0x195)])?(_0xbfe9fa=_0x185a39(0x1e7)+_0x51a30a[_0x185a39(0x1eb)](',\x20')+_0x185a39(0x1c6),await _0x157f46[_0x185a39(0x1b5)](reportToGalactusAndSendToEDS,_0x936132,_0x4f3fc8,_0xbfe9fa,messageTypes[_0x185a39(0x1b8)],_0x157f46[_0x185a39(0x18e)],_0x157f46[_0x185a39(0x172)],_0x157f46[_0x185a39(0x1bc)]),logger[_0x185a39(0x1c3)](_0xbfe9fa),process[_0x185a39(0x13a)](0x1)):(_0x4093c6[_0x185a39(0x1c3)](_0x157f46['OtLkC']),_0x110a07['exit'](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x185a39(0x1af)](_0x936132[_0x185a39(0x1a4)][_0x185a39(0x1a1)]())&&(_0x157f46[_0x185a39(0x1d5)](_0x157f46[_0x185a39(0x10b)],_0x157f46['bioLF'])?(_0xbfe9fa=_0x157f46[_0x185a39(0x143)],await _0x157f46[_0x185a39(0x1b5)](reportToGalactusAndSendToEDS,_0x936132,_0x4f3fc8,_0xbfe9fa,messageTypes[_0x185a39(0x1b8)],_0x157f46[_0x185a39(0x18e)],_0x157f46[_0x185a39(0x164)],_0x157f46[_0x185a39(0x1bc)]),logger['error'](_0xbfe9fa),!_0x936132[_0x185a39(0x1a4)]&&(_0x157f46['vfuYI'](_0x157f46[_0x185a39(0x149)],_0x157f46[_0x185a39(0x136)])?(logger[_0x185a39(0x188)](_0x185a39(0x19d)+DEFAULT_CLUSTER_DETAILS[_0x185a39(0x1f0)]+'\x20'),_0x936132[_0x185a39(0x1a4)]=DEFAULT_CLUSTER_DETAILS[_0x185a39(0x1f0)]):(_0x159248+=_0x157f46[_0x185a39(0x12d)],_0xa8066e+=_0x185a39(0x17f)+(_0x11c4a2[_0x185a39(0x189)]||_0x157f46[_0x185a39(0x11f)])+'\x0a',_0x142df9+=_0x185a39(0x103)+(_0x4faac8[_0x185a39(0x1c7)]||_0x157f46[_0x185a39(0x11f)])+'\x0a',_0x252075+=_0x185a39(0x117)+(_0x5b2458[_0x185a39(0x177)]||_0x157f46[_0x185a39(0x11f)])+'\x0a'))):_0x221dd6['exit'](0x1)),global_registry[_0x185a39(0x183)]=_0x936132['clusterName'],global_registry[_0x185a39(0x1a4)]=_0x936132[_0x185a39(0x1a4)],global_registry[_0x185a39(0x122)]=_0x936132[_0x185a39(0x148)];}else _0x11b286['push'](_0x157f46[_0x185a39(0x17e)]);}else{if(_0x936132['gridProfile']){if(_0x157f46[_0x185a39(0xf8)](_0x157f46[_0x185a39(0x14c)],_0x157f46[_0x185a39(0x14c)])){const {header:_0x26872c,response:_0x2d1472}=_0x1398ed,{status:_0x22c4a2,data:_0x5492be,error:_0x34c773}=_0x2d1472;_0x1608e8+=_0x26872c+'\x20#'+_0x157f46[_0x185a39(0x181)](_0x44a301,0x1)+'\x0a',_0x5e662b+=_0x185a39(0x1e4)+(_0x22c4a2?_0x157f46['aXITx']:_0x157f46['EoPjo'])+'\x0a',_0x219420+='Message:\x20'+_0x157f46[_0x185a39(0x191)](_0x5492be,_0x157f46[_0x185a39(0x11f)])+'\x0a',_0x34c773&&(_0x586955+=_0x157f46[_0x185a39(0x12d)],_0xfb23be+='\x20\x20Message:\x20'+(_0x34c773[_0x185a39(0x189)]||_0x157f46[_0x185a39(0x11f)])+'\x0a',_0x11b989+=_0x185a39(0x103)+(_0x34c773['code']||_0x157f46[_0x185a39(0x11f)])+'\x0a',_0x1aba8b+='\x20\x20Stack:\x20'+(_0x34c773[_0x185a39(0x177)]||_0x157f46[_0x185a39(0x11f)])+'\x0a'),_0x377841+='\x0a\x0a';}else{global_registry[_0x185a39(0x1f6)]=_0x936132[_0x185a39(0x1f6)],logger[_0x185a39(0x1ed)](_0x185a39(0x17b)+_0x936132['gridProfile']);const _0x3d0add=_0x185a39(0x12b)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x2eefe2={};_0x2eefe2['method']=_0x157f46[_0x185a39(0x101)],_0x2eefe2[_0x185a39(0x1ce)]=global_registry['authHeader'],_0x2eefe2[_0x185a39(0x1cf)]=![];const _0x35613c=_0x2eefe2,_0x31cd75=await _0x157f46[_0x185a39(0x121)](got,_0x3d0add,_0x35613c),_0x2911c0=await _0x157f46[_0x185a39(0x15a)](responseValidation,_0x31cd75,_0x157f46[_0x185a39(0x18b)],_0x157f46[_0x185a39(0x1a8)],_0x936132,_0x4f3fc8);let _0x2b26a1={};if(_0x157f46['fUEjG'](_0x2911c0,0xc8)){if(_0x157f46[_0x185a39(0x100)](_0x157f46[_0x185a39(0x187)],_0x157f46[_0x185a39(0xfe)])){const _0x39e742=JSON[_0x185a39(0x1e2)](_0x31cd75[_0x185a39(0x12a)]),_0x25b9a0=_0x39e742[_0x185a39(0x155)](_0x4ac110=>_0x4ac110[_0x185a39(0x11e)]===_0x936132['gridProfile'])||null;if(_0x157f46[_0x185a39(0x1d7)](isUndefined,_0x25b9a0))_0x157f46[_0x185a39(0xf8)](_0x157f46['rmkhA'],_0x157f46['rmkhA'])?(_0x34cd2c[_0x185a39(0x188)](_0x185a39(0x19d)+_0x45837d[_0x185a39(0x1f0)]+'\x20'),_0x2a1285[_0x185a39(0x1a4)]=_0x4ffd92['CLOUD_PROVIDER']):(_0xbfe9fa='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x936132[_0x185a39(0x1f6)]+_0x185a39(0x1bf),await _0x157f46[_0x185a39(0x1b5)](reportToGalactusAndSendToEDS,_0x936132,_0x4f3fc8,_0xbfe9fa,messageTypes[_0x185a39(0x1b8)],_0x157f46[_0x185a39(0x18e)],_0x157f46[_0x185a39(0x139)],_0x157f46[_0x185a39(0x1bc)]),logger['error'](_0xbfe9fa),process['exit'](0x1));else{if(_0x157f46[_0x185a39(0x173)](_0x157f46[_0x185a39(0x16f)],_0x157f46[_0x185a39(0x171)])){const _0x22bac7={};_0x22bac7[_0x185a39(0x1dd)]=_0x2fa70f[_0x185a39(0x1c1)],_0x22bac7[_0x185a39(0x189)]=_0x4566e5,_0x1c1ca7['sendEventToBackend'](_0x2f5414,_0x22bac7,_0x157f46[_0x185a39(0x1bc)],!![]);}else _0x2b26a1=_0x25b9a0;}}else _0x249656+='Cluster\x20'+_0x58caff[_0x185a39(0x183)]+'\x20'+(_0x14fedd?_0x157f46[_0x185a39(0x154)]:_0x157f46[_0x185a39(0x153)])+'\x0a\x0a';}else _0x157f46[_0x185a39(0xfd)](_0x157f46[_0x185a39(0x14e)],_0x157f46[_0x185a39(0x1ec)])?process[_0x185a39(0x13a)](0x1):_0x4e26e4['error'](_0x185a39(0x1c0)+_0xe75134[_0x185a39(0x1c3)][_0x185a39(0x177)]);const _0x1eb60c={};_0x1eb60c['type']=WS_EVENTS[_0x185a39(0x1c1)],_0x1eb60c[_0x185a39(0x189)]=_0x157f46[_0x185a39(0x1d0)],webSocketUtils[_0x185a39(0x1b1)](_0x4f3fc8,_0x1eb60c),global_registry['cloudProvider']=_0x2b26a1['cloudProvider'],global_registry[_0x185a39(0x122)]=_0x2b26a1['region'],global_registry['clusterName']=_0x2b26a1[_0x185a39(0x183)];}}else _0x157f46[_0x185a39(0x165)](_0x157f46['fJxGV'],_0x157f46[_0x185a39(0x124)])?_0x363869[_0x185a39(0x175)](_0x157f46[_0x185a39(0x105)]):(logger[_0x185a39(0x1c3)](_0x157f46[_0x185a39(0x193)]),process[_0x185a39(0x13a)](0x1));}}}catch(_0x1deb7f){_0x157f46[_0x185a39(0x1c5)](_0x157f46[_0x185a39(0x170)],_0x157f46[_0x185a39(0x118)])?_0x2a5cdf=_0x4c2e44:(_0xbfe9fa=_0x185a39(0x109)+_0x1deb7f+':\x20'+_0x1deb7f['stack'],logger[_0x185a39(0x1c3)](_0xbfe9fa),await _0x157f46[_0x185a39(0x158)](reportToGalactusAndSendToEDS,_0x936132,_0x4f3fc8,_0xbfe9fa,messageTypes[_0x185a39(0x1b8)],_0x157f46[_0x185a39(0x18e)],_0x157f46[_0x185a39(0x164)],_0x157f46[_0x185a39(0x1bc)]),process[_0x185a39(0x13a)](0x1));}}function printResponse(_0x1589d1,_0x1b7b42){const _0x51cf80=a17_0x528345,_0x274811={};_0x274811[_0x51cf80(0x163)]=function(_0xbb428e,_0x183842){return _0xbb428e===_0x183842;},_0x274811[_0x51cf80(0x19b)]='cHngc',_0x274811[_0x51cf80(0x1a2)]='nmFqM';const _0x8cf8=_0x274811;logger['info']('['+_0x1589d1+']\x20status\x20:\x20'+_0x1b7b42[_0x51cf80(0x106)]+'\x20data\x20:\x20'+_0x1b7b42[_0x51cf80(0x161)]+'\x20error\x20:\x20'+_0x1b7b42['error']),_0x1b7b42['error']&&(_0x8cf8[_0x51cf80(0x163)](_0x8cf8['reXJn'],_0x8cf8[_0x51cf80(0x1a2)])?_0x15f37c['info'](_0x51cf80(0x132)+_0x39acd2['clusterName']+_0x51cf80(0x16a)):logger[_0x51cf80(0x1c3)](_0x51cf80(0x1c0)+_0x1b7b42[_0x51cf80(0x1c3)][_0x51cf80(0x177)]));}async function generateReport(_0x39a989,_0x61bde9){const _0x3cc9fd=a17_0x528345,_0x53856f={'rNGhD':function(_0x475ba1,_0x2d9dc8){return _0x475ba1+_0x2d9dc8;},'CMHlD':_0x3cc9fd(0x1e3),'uehJr':'Failure','mJrUs':function(_0x48f7aa,_0x16915e){return _0x48f7aa||_0x16915e;},'xpJxJ':_0x3cc9fd(0x1d6),'yqhnN':_0x3cc9fd(0x197),'clila':_0x3cc9fd(0x126),'sXtPo':function(_0x10a9a6,_0x36e1a0){return _0x10a9a6!=_0x36e1a0;},'ogmtA':'is\x20already\x20present','hvpEG':_0x3cc9fd(0x12c),'LUhOb':function(_0x50640f){return _0x50640f();}};let _0xc61a79='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x3cc9fd(0x1a4)]+_0x3cc9fd(0x1a0);return _0x39a989[_0x3cc9fd(0x18d)]((_0x4db956,_0x597d72)=>{const _0x26a861=_0x3cc9fd,{header:_0x2d574a,response:_0x4c3346}=_0x4db956,{status:_0x28ca2b,data:_0x320a45,error:_0x3f1388}=_0x4c3346;_0xc61a79+=_0x2d574a+'\x20#'+_0x53856f['rNGhD'](_0x597d72,0x1)+'\x0a',_0xc61a79+='Status:\x20'+(_0x28ca2b?_0x53856f[_0x26a861(0x174)]:_0x53856f[_0x26a861(0x1b4)])+'\x0a',_0xc61a79+='Message:\x20'+_0x53856f[_0x26a861(0x16c)](_0x320a45,_0x53856f[_0x26a861(0x1ba)])+'\x0a',_0x3f1388&&(_0xc61a79+=_0x53856f[_0x26a861(0x123)],_0xc61a79+=_0x26a861(0x17f)+(_0x3f1388['message']||_0x53856f['xpJxJ'])+'\x0a',_0xc61a79+=_0x26a861(0x103)+(_0x3f1388[_0x26a861(0x1c7)]||_0x53856f[_0x26a861(0x1ba)])+'\x0a',_0xc61a79+=_0x26a861(0x117)+(_0x3f1388[_0x26a861(0x177)]||_0x53856f[_0x26a861(0x1ba)])+'\x0a'),_0xc61a79+='\x0a\x0a';}),_0xc61a79+=_0x53856f[_0x3cc9fd(0x169)],_0x53856f[_0x3cc9fd(0x1bb)](_0x61bde9,null)?_0xc61a79+=_0x3cc9fd(0x1de)+global_registry[_0x3cc9fd(0x183)]+'\x20'+(_0x61bde9?_0x53856f[_0x3cc9fd(0x18f)]:_0x53856f[_0x3cc9fd(0x14a)])+'\x0a\x0a':_0xc61a79+=_0x3cc9fd(0x1de)+global_registry[_0x3cc9fd(0x183)]+_0x3cc9fd(0x12e),_0xc61a79+=_0x53856f[_0x3cc9fd(0x11d)](getSystemMetaData),_0xc61a79;}function a17_0x53f9(_0x4261fe,_0x320863){const _0x40d3df=a17_0x40d3();return a17_0x53f9=function(_0x53f94d,_0x228f02){_0x53f94d=_0x53f94d-0xf6;let _0x3074d5=_0x40d3df[_0x53f94d];return _0x3074d5;},a17_0x53f9(_0x4261fe,_0x320863);}function a17_0x40d3(){const _0xc0bccc=['cyWzv','jkSKM','RXSDA','rogqD','`\x20,error\x20:\x20','vfuYI','tlQoa','fUEjG','\x20\x20Code:\x20','BzbXb','lgMge','status','../../utils/instrumentationUtils','delay','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','1104495ORJjuU','uiPTl','getUTCDate','\x20data\x20:\x20','../../config/logger','4192135kWvdwt','RxFYA','Report\x20saved\x20in\x20','options','stringify','ESQnG','getUTCHours','wxviY','\x20\x20Stack:\x20','wBOVt','ulxvq','unable\x20to\x20verify\x20if\x20cluster\x20`','uuid','pre-check-grid-called','LUhOb','name','Nojuv','xyomW','EtXMN','clusterRegion','yqhnN','BzTax','Lwbgw','Cluster\x20details\x0a-----------------------\x0a','readFileSync','oASMG','OZFUb','body','https://','will\x20be\x20created','MFDAy','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','grpRR','bstackAccesskey','EaGnS','Cluster\x20`','ClmIb','<PasswordPlaceholder>','authHeader','zxHVy','pHTwj','length','ErTdt','exit','<UsernamePlaceholder>','\x20region\x20-\x20','\x20error\x20:\x20','../../config/constants','VmEgZ','accessResp','KQuLg','isClusterPresent','lWPWk','credential-not-found','getUTCMinutes','username','.txt','region','kIAHq','hvpEG','aoLMd','NhIff','../../utils/utilityMethods','epTFH','TjTvb','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','fFwtx','GeOMp','QLfxJ','IaGbB','find','vFzXX','IvjyL','ZBxkH','oYSUP','YPQGw','pre-check-cluster-args-not-passed','WsGzD','eCRUk','pre-check-failed','BHreN','elBjV','data','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','BWZwf','gxHAk','JaHgs','bstackUsername','Lbrxy','Tool\x20Installed','clila','`\x20already\x20exists','KUFLi','mJrUs','mQDkV','KtsPq','Bxnng','iOYAA','fQNIv','mUFWU','akwuE','CMHlD','push','HbNKE','stack','isTls1_2_SUPPORTED','usage','QxHuc','grid\x20profile\x20flow\x20','tVggv','command','Qszjg','\x20\x20Message:\x20','builder','pWmKF','760850BsJJCH','clusterName','MACDh','reconnecting-websocket','HQIfd','PMeic','info','message','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','MUmIV','SfOYp','forEach','DaGeD','ogmtA','WAzjF','WTuMO','replace','OtLkC','ODImL','OWqYe','pre-check-grid-profile-empty','Error\x20Details:\x0a','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','3280533KnBlqg','11MgQVoj','reXJn','argv','Setting\x20cloud\x20provider\x20as\x20','XHREu','description','\x20===\x0a\x0a','toLowerCase','mMdhW','WebSocket','cloudProvider','init','is\x20already\x20present','SSL\x20Configured','MOBDA','response','password','4leasGF','SsoNh','nrCji','ROsyQ','includes','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','sendEventToBackend','DFoKx','YzWZt','uehJr','ryBem','header','11813690dujVvG','ERROR','grid-profile','xpJxJ','sXtPo','HHgIe','getUTCFullYear','WOzyF','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','error\x20stack\x20:\x20','LOG','Browserstack','error','vYBUh','jumfU','.\x20Please\x20provide\x20all\x20required\x20arguments.','code','2888684pgzmWp','toolInstalledResp','string','INFO','existsSync','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','headers','throwHttpErrors','FmxSr','LhyqT','grid','oJWXH','pre_check','eVBEd','N/A','hZJbP','cloud-provider','split','log/report_','help','wBWmB','type','Cluster\x20','../../cloudproviders/utils','Whitelisted\x20browserstack','Failure','parse','Success','Status:\x20','cloud-provider-not-supported','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Missing\x20required\x20arguments:\x20','got','FMXww','cluster-name','join','Crpmn','debug','6AyNnQm','Smkyn','CLOUD_PROVIDER','8PxeraP','epilogue','trBCR','10439775ooxHyn','EiyWL','gridProfile','UhANY','fLAeK','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','isTrialGridAccessible','TVhip','utf-8','iOxCj','Grid\x20profile\x20fetched\x20for\x20pre-check','PlBss'];a17_0x40d3=function(){return _0xc0bccc;};return a17_0x40d3();};exports['handler']=async function(_0x362892){const _0x81f0b2=a17_0x528345,_0x5a9b86={'jkSKM':function(_0x5da851){return _0x5da851();},'WOzyF':_0x81f0b2(0x1f9),'HbNKE':function(_0x254df8,_0x2a0e28,_0x91cef7,_0x9cc58,_0x539989,_0x3fcd6d,_0x394846,_0x3c2ba4){return _0x254df8(_0x2a0e28,_0x91cef7,_0x9cc58,_0x539989,_0x3fcd6d,_0x394846,_0x3c2ba4);},'wBWmB':'pre-check-grid-called','RxFYA':_0x81f0b2(0x144),'oASMG':_0x81f0b2(0x1c3),'GeOMp':function(_0xf4c26c,_0x4eb2bb,_0x25572c,_0x2d4cc0,_0x31b58f,_0x2af80e,_0x4f4b2c){return _0xf4c26c(_0x4eb2bb,_0x25572c,_0x2d4cc0,_0x31b58f,_0x2af80e,_0x4f4b2c);},'elBjV':function(_0x1c2248){return _0x1c2248();},'oYSUP':_0x81f0b2(0x13b),'QxHuc':_0x81f0b2(0x134),'vYBUh':function(_0x20b1bb,_0x43862c,_0x477096){return _0x20b1bb(_0x43862c,_0x477096);},'TVhip':function(_0x297d79,_0x3be4d8,_0x510e46){return _0x297d79(_0x3be4d8,_0x510e46);},'wxviY':'dummy-grid','mQDkV':_0x81f0b2(0x1c9),'eCRUk':'1|4|0|2|3','SfOYp':_0x81f0b2(0x140),'FMXww':function(_0x5f9d1e){return _0x5f9d1e();},'ulxvq':_0x81f0b2(0x1fa),'fLAeK':function(_0x24b2e4,_0x231bed){return _0x24b2e4(_0x231bed);},'nrCji':'TLSv1_2_client_method','vsDTl':_0x81f0b2(0x178),'DFoKx':_0x81f0b2(0x168),'cyWzv':'User\x20Access','HBmsW':_0x81f0b2(0x1e0),'WsGzD':_0x81f0b2(0x1a7),'uxoWX':function(_0x2658ad,_0x27592b,_0xfc9b5b){return _0x2658ad(_0x27592b,_0xfc9b5b);},'KtsPq':function(_0x3a07ff,_0x491f2f){return _0x3a07ff+_0x491f2f;},'TjTvb':_0x81f0b2(0xf7),'vUNGA':_0x81f0b2(0x15e)};let _0x300a26,_0x292034;try{global_registry['requestId']=_0x5a9b86[_0x81f0b2(0xfc)](uuidv4);!fs[_0x81f0b2(0x1cc)](_0x5a9b86['jkSKM'](getCredentialsPath))&&(_0x292034=_0x5a9b86[_0x81f0b2(0x1be)],logger[_0x81f0b2(0x1c3)](_0x292034),await _0x5a9b86[_0x81f0b2(0x176)](reportToGalactusAndSendToEDS,_0x362892,_0x300a26,_0x292034,messageTypes[_0x81f0b2(0x1b8)],_0x5a9b86[_0x81f0b2(0x1dc)],_0x5a9b86[_0x81f0b2(0x110)],_0x5a9b86[_0x81f0b2(0x128)]),process[_0x81f0b2(0x13a)](0x1));_0x5a9b86[_0x81f0b2(0x152)](sendInstrumentationEvent,_0x362892,_0x5a9b86[_0x81f0b2(0x1dc)],messageTypes[_0x81f0b2(0x1cb)],null,null,_0x362892);const _0x4fcf4e=JSON[_0x81f0b2(0x1e2)](fs[_0x81f0b2(0x127)](_0x5a9b86[_0x81f0b2(0x160)](getCredentialsPath)));global_registry[_0x81f0b2(0x166)]=_0x4fcf4e[_0x81f0b2(0x1c2)][_0x81f0b2(0x146)],global_registry[_0x81f0b2(0x130)]=_0x4fcf4e[_0x81f0b2(0x1c2)][_0x81f0b2(0x1aa)];const _0x34bfec=WS_ENDPOINT['replace'](_0x5a9b86[_0x81f0b2(0x159)],_0x4fcf4e[_0x81f0b2(0x1c2)][_0x81f0b2(0x146)])[_0x81f0b2(0x192)](_0x5a9b86[_0x81f0b2(0x17a)],_0x4fcf4e[_0x81f0b2(0x1c2)][_0x81f0b2(0x1aa)]),_0x24714d={};_0x24714d[_0x81f0b2(0x1a3)]=ws,_0x24714d['connectionTimeout']=0x36ee80,_0x300a26=new ReconnectingWebSocket(_0x34bfec,[],_0x24714d),global_registry[_0x81f0b2(0x135)]=_0x5a9b86['vYBUh'](getAuthHeader,global_registry[_0x81f0b2(0x166)],global_registry[_0x81f0b2(0x130)]),await _0x5a9b86[_0x81f0b2(0xf6)](inputValidation,_0x362892,_0x300a26),logger[_0x81f0b2(0x188)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0x81f0b2(0x1a4)]+_0x81f0b2(0x13c)+global_registry[_0x81f0b2(0x122)]);let _0x3f6e96=await _0x5a9b86[_0x81f0b2(0x152)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0x81f0b2(0x183)],_0x5a9b86[_0x81f0b2(0x116)],_0x300a26,webSocketUtils,_0x362892);const _0x27d26a=await _0x3f6e96['isCliToolInstalled']();_0x5a9b86['TVhip'](printResponse,_0x5a9b86[_0x81f0b2(0x16d)],_0x27d26a),_0x3f6e96=await _0x3f6e96[_0x81f0b2(0x1a5)]();let _0x2df785=![];try{_0x2df785=await _0x3f6e96[_0x81f0b2(0x142)]();}catch(_0xca0d28){const _0x27affd=_0x5a9b86[_0x81f0b2(0x15d)][_0x81f0b2(0x1d9)]('|');let _0x19209b=0x0;while(!![]){switch(_0x27affd[_0x19209b++]){case'0':logger[_0x81f0b2(0x1c3)](_0x292034);continue;case'1':_0x292034=_0x81f0b2(0x11a)+global_registry[_0x81f0b2(0x183)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x81f0b2(0x122)]+_0x81f0b2(0xff)+_0xca0d28;continue;case'2':_0x292034+='\x0a'+JSON[_0x81f0b2(0x113)](_0xca0d28[_0x81f0b2(0x177)]);continue;case'3':await _0x5a9b86['HbNKE'](reportToGalactusAndSendToEDS,_0x362892,_0x300a26,_0x292034,messageTypes[_0x81f0b2(0x1b8)],_0x5a9b86[_0x81f0b2(0x1dc)],'cluster-check-failed-'+global_registry['cloudProvider'],_0x5a9b86[_0x81f0b2(0x128)]);continue;case'4':_0x2df785=null;continue;}break;}}_0x2df785&&logger['info'](_0x81f0b2(0x132)+global_registry['clusterName']+_0x81f0b2(0x16a));const _0x31b39d=await _0x3f6e96['checkAccess']();_0x5a9b86[_0x81f0b2(0xf6)](printResponse,_0x5a9b86[_0x81f0b2(0x18c)],_0x31b39d);const _0xda38b3=await _0x5a9b86[_0x81f0b2(0x1e9)](curlRequest);_0x5a9b86[_0x81f0b2(0xf6)](printResponse,_0x5a9b86[_0x81f0b2(0x119)],_0xda38b3);const _0xc0904d=await _0x5a9b86[_0x81f0b2(0x1f8)](isTlsSupported,_0x5a9b86[_0x81f0b2(0x1ad)]);_0x5a9b86[_0x81f0b2(0x1c4)](printResponse,_0x5a9b86['vsDTl'],_0xc0904d);const _0x35fa08={};_0x35fa08[_0x81f0b2(0x1b6)]=_0x5a9b86[_0x81f0b2(0x1b2)],_0x35fa08[_0x81f0b2(0x1a9)]=_0x27d26a;const _0x55009a={};_0x55009a[_0x81f0b2(0x1b6)]=_0x5a9b86[_0x81f0b2(0xfb)],_0x55009a[_0x81f0b2(0x1a9)]=_0x31b39d;const _0x59036c={};_0x59036c[_0x81f0b2(0x1b6)]=_0x5a9b86['HBmsW'],_0x59036c[_0x81f0b2(0x1a9)]=_0xda38b3;const _0x321d50={};_0x321d50[_0x81f0b2(0x1b6)]=_0x5a9b86[_0x81f0b2(0x15c)],_0x321d50[_0x81f0b2(0x1a9)]=_0xc0904d;const _0x26722d=[_0x35fa08,_0x55009a,_0x59036c,_0x321d50],_0xf066db=await _0x5a9b86['uxoWX'](generateReport,_0x26722d,_0x2df785),_0x50bebf=new Date(),_0xfd372f=_0x50bebf[_0x81f0b2(0x1bd)]()+'_'+_0x5a9b86[_0x81f0b2(0x16e)](_0x50bebf['getUTCMonth'](),0x1)+'_'+_0x50bebf[_0x81f0b2(0x10c)]()+'_'+_0x50bebf[_0x81f0b2(0x115)]()+'_'+_0x50bebf[_0x81f0b2(0x145)](),_0x5e7fff=_0x81f0b2(0x1da)+_0xfd372f+_0x81f0b2(0x147);fs['writeFileSync'](_0x5e7fff,_0xf066db,_0x5a9b86[_0x81f0b2(0x14f)]),logger[_0x81f0b2(0x188)](_0x81f0b2(0x111)+_0x5e7fff),process[_0x81f0b2(0x13a)](0x0);}catch(_0x1d0b20){let _0x1838b1='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x1d0b20+'\x20';logger[_0x81f0b2(0x1c3)](_0x1838b1),_0x1838b1+='\x0a'+JSON[_0x81f0b2(0x113)](_0x1d0b20[_0x81f0b2(0x177)]),logger[_0x81f0b2(0x1ed)]('stack\x20trace\x20'+_0x1d0b20['stack']);if(_0x300a26){const _0x54ea9c={};_0x54ea9c[_0x81f0b2(0x1dd)]=WS_EVENTS[_0x81f0b2(0x1c1)],_0x54ea9c[_0x81f0b2(0x189)]=_0x1838b1,webSocketUtils[_0x81f0b2(0x1b1)](_0x300a26,_0x54ea9c,_0x5a9b86[_0x81f0b2(0x128)],!![]);}await webSocketUtils[_0x81f0b2(0x108)](0x7d0);const _0x11bc17={};_0x11bc17[_0x81f0b2(0x1c3)]=_0x1838b1,await _0x5a9b86[_0x81f0b2(0x152)](sendInstrumentationEvent,_0x362892,_0x5a9b86[_0x81f0b2(0x1dc)],messageTypes[_0x81f0b2(0x1b8)],_0x5a9b86['vUNGA'],_0x11bc17,_0x362892),process[_0x81f0b2(0x13a)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a18_0x5ac01f=a18_0x4ab0;(function(_0xa56a5b,_0x50d1e8){const _0x20e4c3=a18_0x4ab0,_0x2a0c6e=_0xa56a5b();while(!![]){try{const _0xbf58e4=parseInt(_0x20e4c3(0x1a2))/0x1+-parseInt(_0x20e4c3(0x1b5))/0x2+parseInt(_0x20e4c3(0x1a6))/0x3+parseInt(_0x20e4c3(0x1ad))/0x4*(-parseInt(_0x20e4c3(0x1a4))/0x5)+-parseInt(_0x20e4c3(0x1b7))/0x6*(-parseInt(_0x20e4c3(0x1a5))/0x7)+parseInt(_0x20e4c3(0x1b3))/0x8+-parseInt(_0x20e4c3(0x1b1))/0x9;if(_0xbf58e4===_0x50d1e8)break;else _0x2a0c6e['push'](_0x2a0c6e['shift']());}catch(_0x3745dd){_0x2a0c6e['push'](_0x2a0c6e['shift']());}}}(a18_0x5af2,0xba531));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x5ac01f(0x1ae));exports[a18_0x5ac01f(0x1ab)]=a18_0x5ac01f(0x1b2),exports[a18_0x5ac01f(0x1b0)]=a18_0x5ac01f(0x1ac),exports[a18_0x5ac01f(0x1a7)]=function(_0x394137){const _0x61d565=a18_0x5ac01f,_0x36c957={};_0x36c957[_0x61d565(0x1b8)]=_0x61d565(0x1a8),_0x36c957[_0x61d565(0x1a1)]=_0x61d565(0x1aa);const _0x2c4778=_0x36c957;return _0x394137[_0x61d565(0x1b4)](HELP_HEADER_MESSAGE[_0x61d565(0x1b2)])[_0x61d565(0x1b6)](HELP_FOOTER_MESSAGE)[_0x61d565(0x1af)](_0x2c4778[_0x61d565(0x1b8)])[_0x61d565(0x1a9)]()['recommendCommands']()['strict']()[_0x61d565(0x1aa)](_0x2c4778[_0x61d565(0x1a1)]);},exports[a18_0x5ac01f(0x1a3)]=function(_0x4ef304){};function a18_0x4ab0(_0x7163f6,_0x51dfa9){const _0x5af248=a18_0x5af2();return a18_0x4ab0=function(_0x4ab0d8,_0x23bb16){_0x4ab0d8=_0x4ab0d8-0x1a1;let _0xa80c10=_0x5af248[_0x4ab0d8];return _0xa80c10;},a18_0x4ab0(_0x7163f6,_0x51dfa9);}function a18_0x5af2(){const _0x320a67=['help','command','Start\x20an\x20existing\x20Automation\x20grid.','4htNpMP','../config/constants','commandDir','desc','9769923dBqRtQ','start','7063360UfSVUt','usage','858806TmABAJ','epilogue','14010QLAvli','sfyzT','pSrvt','1136014BVJIAm','handler','5610295kUsPlZ','266dskpRV','3877590urPKXI','builder','start_commands','demandCommand'];a18_0x5af2=function(){return _0x320a67;};return a18_0x5af2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a19_0x522d84=a19_0x3fb9;function a19_0x2cc6(){const _0x5ce436=['lpNaO','invalid-grid-id','Browserstack','../../config/constants','XtjSB','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Starting\x20grid\x20','24TgoiAi','nNLgJ','exit','lpaOz','12nJwhvj','1ThyXvr','ZOwmN','start','jtYKh','477776IqINko','epilogue','init-not-called','type','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','<PasswordPlaceholder>','../../utils/createk8sClient','body','builder','statusCode','GQStk','5256713RjIqFh','error','nAGVX','description','cloudProvider','name','default','kxUhH','skipTlsCertVerify','278523zsNaSn','ApqsU','info','kJIEJ','parse','WebSocket','gridId','bhxjY','server-error','grid-id','unauthorised','skip-tls-cert-verify','string','CHjgE','help','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','desc','bstackAccesskey','handler','username','aJZBj','538680AOMLRx','message','ERROR','meXNM','../../cloudproviders/utils','Skip\x20insecure\x20cert\x20verification.','474189VPWrRg','SmObA','ZaJtq','iApvk','replace','../../utils/utilityMethods','30GGigon','UqERL','<UsernamePlaceholder>','../../utils/webSocketUtils','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','../../utils/instrumentationUtils','argv','5oLeuie','cTGiS','wECjC','561447dlyHYx','../../config/logger','readFileSync','stringify','bstackUsername','374570zVDNHH','CMjfK','eqzkU','usage','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','AdApZ','clusterName','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','clusterRegion','start-grid-called','boolean','password'];a19_0x2cc6=function(){return _0x5ce436;};return a19_0x2cc6();}(function(_0x317f20,_0x45aa9c){const _0x3a130d=a19_0x3fb9,_0x22f744=_0x317f20();while(!![]){try{const _0x3801f8=parseInt(_0x3a130d(0x18b))/0x1*(-parseInt(_0x3a130d(0x173))/0x2)+-parseInt(_0x3a130d(0x15e))/0x3+parseInt(_0x3a130d(0x18f))/0x4*(-parseInt(_0x3a130d(0x16b))/0x5)+parseInt(_0x3a130d(0x186))/0x6*(-parseInt(_0x3a130d(0x143))/0x7)+parseInt(_0x3a130d(0x158))/0x8+parseInt(_0x3a130d(0x16e))/0x9*(parseInt(_0x3a130d(0x164))/0xa)+parseInt(_0x3a130d(0x13a))/0xb*(parseInt(_0x3a130d(0x18a))/0xc);if(_0x3801f8===_0x45aa9c)break;else _0x22f744['push'](_0x22f744['shift']());}catch(_0x51fdf9){_0x22f744['push'](_0x22f744['shift']());}}}(a19_0x2cc6,0x1a783));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x522d84(0x182)),{logger}=require(a19_0x522d84(0x16f)),{getCredentialsPath,getGridDetails}=require(a19_0x522d84(0x163)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a19_0x522d84(0x169)),webSocketUtils=require(a19_0x522d84(0x167)),{createK8sClient}=require(a19_0x522d84(0x195)),{getCloudProviderObject}=require(a19_0x522d84(0x15c));function a19_0x3fb9(_0xab0c56,_0x32f920){const _0x2cc6f8=a19_0x2cc6();return a19_0x3fb9=function(_0x3fb9b1,_0x41981f){_0x3fb9b1=_0x3fb9b1-0x139;let _0xf488c9=_0x2cc6f8[_0x3fb9b1];return _0xf488c9;},a19_0x3fb9(_0xab0c56,_0x32f920);}exports['command']='grid',exports[a19_0x522d84(0x153)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a19_0x522d84(0x197)]=function(_0x74ffc){const _0x1c0e30=a19_0x522d84,_0x4c6239={};_0x4c6239[_0x1c0e30(0x18c)]=_0x1c0e30(0x177),_0x4c6239[_0x1c0e30(0x160)]=_0x1c0e30(0x14f),_0x4c6239[_0x1c0e30(0x150)]=_0x1c0e30(0x15d),_0x4c6239[_0x1c0e30(0x13c)]=_0x1c0e30(0x17d),_0x4c6239[_0x1c0e30(0x189)]=_0x1c0e30(0x151);const _0x16fe7f=_0x4c6239,_0x53b43b={};_0x53b43b[_0x1c0e30(0x13d)]=_0x16fe7f[_0x1c0e30(0x18c)],_0x53b43b[_0x1c0e30(0x192)]=_0x16fe7f[_0x1c0e30(0x160)];const _0x4bd9e7={};_0x4bd9e7[_0x1c0e30(0x13d)]=_0x16fe7f['CHjgE'],_0x4bd9e7[_0x1c0e30(0x192)]=_0x16fe7f['nAGVX'],_0x4bd9e7[_0x1c0e30(0x140)]=![];const _0x26ee4c={};return _0x26ee4c[_0x1c0e30(0x14c)]=_0x53b43b,_0x26ee4c[_0x1c0e30(0x14e)]=_0x4bd9e7,_0x74ffc[_0x1c0e30(0x176)](HELP_HEADER_MESSAGE[_0x1c0e30(0x18d)])[_0x1c0e30(0x190)](HELP_FOOTER_MESSAGE)['options'](_0x26ee4c)[_0x1c0e30(0x151)](_0x16fe7f[_0x1c0e30(0x189)])[_0x1c0e30(0x16a)];},exports[a19_0x522d84(0x155)]=async function(_0x5ae8ab){const _0x21aa7d=a19_0x522d84,_0x456ef5={'nNLgJ':_0x21aa7d(0x17a),'lpzSP':function(_0x1e41ab){return _0x1e41ab();},'wECjC':_0x21aa7d(0x184),'AdApZ':function(_0x5cad27,_0x3f30f0,_0x249750,_0x4adfc5,_0xff54ea,_0x365913,_0x23be6a){return _0x5cad27(_0x3f30f0,_0x249750,_0x4adfc5,_0xff54ea,_0x365913,_0x23be6a);},'CMjfK':_0x21aa7d(0x17c),'cTGiS':_0x21aa7d(0x191),'kxUhH':function(_0x5049a2,_0x319d4f,_0xfd7c05,_0x307484,_0x3300d0,_0xf0c4bd,_0x18ff72){return _0x5049a2(_0x319d4f,_0xfd7c05,_0x307484,_0x3300d0,_0xf0c4bd,_0x18ff72);},'eqzkU':function(_0x36bf1c){return _0x36bf1c();},'ApqsU':_0x21aa7d(0x166),'bhxjY':_0x21aa7d(0x194),'GQStk':'Adding\x20Websocket\x20listeners','UqERL':function(_0xd21b15,_0x5c28ad,_0x44ce44,_0x285b66){return _0xd21b15(_0x5c28ad,_0x44ce44,_0x285b66);},'iApvk':function(_0x5e6e28,_0x1daa3c,_0x2f4b7e){return _0x5e6e28(_0x1daa3c,_0x2f4b7e);},'aJZBj':'Grid\x20started','meXNM':function(_0x4d4b25,_0x3701d1){return _0x4d4b25===_0x3701d1;},'ATeiR':_0x21aa7d(0x152),'lpNaO':function(_0x288fd7,_0x44ed54,_0x3229db,_0x120db7,_0x21c3ea,_0x222869,_0x232e84){return _0x288fd7(_0x44ed54,_0x3229db,_0x120db7,_0x21c3ea,_0x222869,_0x232e84);},'kJIEJ':_0x21aa7d(0x14d),'SmObA':function(_0x424162,_0x41c12a,_0x576e2c,_0x3ed6b3,_0xef185e,_0x2de136,_0x448ce9){return _0x424162(_0x41c12a,_0x576e2c,_0x3ed6b3,_0xef185e,_0x2de136,_0x448ce9);},'XtjSB':_0x21aa7d(0x180),'MGKBD':function(_0x1b23fe,_0x3b1d20,_0x9910cf,_0x2af09c,_0x182ac1,_0x45ff67,_0x1f3f55){return _0x1b23fe(_0x3b1d20,_0x9910cf,_0x2af09c,_0x182ac1,_0x45ff67,_0x1f3f55);},'jtYKh':_0x21aa7d(0x14b)};let _0x1ba081;try{!_0x5ae8ab[_0x21aa7d(0x149)]&&(logger[_0x21aa7d(0x13b)](_0x456ef5[_0x21aa7d(0x187)]),process[_0x21aa7d(0x188)](0x1));!fs['existsSync'](_0x456ef5['lpzSP'](getCredentialsPath))&&(logger[_0x21aa7d(0x13b)](_0x456ef5[_0x21aa7d(0x16d)]),await _0x456ef5[_0x21aa7d(0x178)](sendInstrumentationEvent,_0x5ae8ab,_0x456ef5[_0x21aa7d(0x174)],messageTypes[_0x21aa7d(0x15a)],_0x456ef5[_0x21aa7d(0x16c)],null,_0x5ae8ab),process['exit'](0x1));logger[_0x21aa7d(0x145)](_0x21aa7d(0x185)+_0x5ae8ab[_0x21aa7d(0x149)]),await _0x456ef5[_0x21aa7d(0x141)](sendInstrumentationEvent,_0x5ae8ab,_0x456ef5[_0x21aa7d(0x174)],messageTypes['INFO'],null,null,_0x5ae8ab);const _0x4b9626=JSON[_0x21aa7d(0x147)](fs[_0x21aa7d(0x170)](_0x456ef5[_0x21aa7d(0x175)](getCredentialsPath)));global_registry[_0x21aa7d(0x172)]=_0x4b9626[_0x21aa7d(0x181)][_0x21aa7d(0x156)],global_registry[_0x21aa7d(0x154)]=_0x4b9626[_0x21aa7d(0x181)]['password'];const _0x3db1d6=WS_ENDPOINT[_0x21aa7d(0x162)](_0x456ef5[_0x21aa7d(0x144)],_0x4b9626[_0x21aa7d(0x181)][_0x21aa7d(0x156)])[_0x21aa7d(0x162)](_0x456ef5[_0x21aa7d(0x14a)],_0x4b9626[_0x21aa7d(0x181)][_0x21aa7d(0x17e)]),_0x300035={};_0x300035[_0x21aa7d(0x148)]=ws,_0x300035['connectionTimeout']=0x36ee80,_0x1ba081=new ReconnectingWebSocket(_0x3db1d6,[],_0x300035),logger['debug'](_0x456ef5[_0x21aa7d(0x139)]),webSocketUtils['addListeners'](_0x1ba081,_0x5ae8ab['user'],_0x5ae8ab[_0x21aa7d(0x17e)]);const [_0x594f,_0x1fe2f5]=await _0x456ef5[_0x21aa7d(0x165)](getGridDetails,_0x4b9626[_0x21aa7d(0x181)]['username'],_0x4b9626[_0x21aa7d(0x181)][_0x21aa7d(0x17e)],_0x5ae8ab['gridId']);if(_0x1fe2f5){const _0x28df1f=_0x1fe2f5[_0x21aa7d(0x145)];global_registry[_0x21aa7d(0x13e)]=_0x28df1f[_0x21aa7d(0x13e)],global_registry[_0x21aa7d(0x17b)]=_0x28df1f['region'],global_registry[_0x21aa7d(0x179)]=_0x28df1f['clusterName'];const _0x11899d=await _0x456ef5[_0x21aa7d(0x141)](getCloudProviderObject,_0x28df1f[_0x21aa7d(0x13e)],_0x28df1f[_0x21aa7d(0x179)],_0x28df1f[_0x21aa7d(0x13f)],_0x1ba081,webSocketUtils,_0x5ae8ab),[_0x33a359,_0x4d870c,_0x3a54e1,_0x23fbb2,_0x17978f,_0x1dc967]=await _0x456ef5[_0x21aa7d(0x161)](createK8sClient,_0x11899d,_0x5ae8ab[_0x21aa7d(0x142)]);await _0x456ef5['iApvk'](scaleUpHubDeployment,_0x4d870c,_0x28df1f[_0x21aa7d(0x13f)]),logger[_0x21aa7d(0x145)](_0x456ef5[_0x21aa7d(0x157)]),process[_0x21aa7d(0x188)](0x0);}_0x456ef5[_0x21aa7d(0x15b)](_0x594f[_0x21aa7d(0x198)],0x191)&&(logger[_0x21aa7d(0x13b)](_0x456ef5['ATeiR']),await _0x456ef5[_0x21aa7d(0x17f)](sendInstrumentationEvent,_0x5ae8ab,_0x456ef5[_0x21aa7d(0x174)],messageTypes['ERROR'],_0x456ef5[_0x21aa7d(0x146)],null,_0x5ae8ab),process[_0x21aa7d(0x188)](0x1)),_0x456ef5[_0x21aa7d(0x15b)](_0x594f[_0x21aa7d(0x198)],0x190)&&(logger[_0x21aa7d(0x13b)](JSON[_0x21aa7d(0x147)](_0x594f[_0x21aa7d(0x196)])[_0x21aa7d(0x159)]),await _0x456ef5[_0x21aa7d(0x15f)](sendInstrumentationEvent,_0x5ae8ab,_0x456ef5[_0x21aa7d(0x174)],messageTypes[_0x21aa7d(0x15a)],_0x456ef5[_0x21aa7d(0x183)],null,_0x5ae8ab),process[_0x21aa7d(0x188)](0x1)),logger[_0x21aa7d(0x13b)](_0x21aa7d(0x193)+JSON[_0x21aa7d(0x171)](_0x594f)),await _0x456ef5['MGKBD'](sendInstrumentationEvent,_0x5ae8ab,_0x456ef5[_0x21aa7d(0x174)],messageTypes['ERROR'],_0x456ef5[_0x21aa7d(0x18e)],_0x594f,_0x5ae8ab),process['exit'](0x1);}catch(_0x556de1){const _0x10c714=_0x21aa7d(0x168)+_0x556de1+'\x20\x0a'+JSON[_0x21aa7d(0x171)](_0x556de1['stack'])+'\x20';logger[_0x21aa7d(0x13b)](_0x10c714),process['exit'](0x1);}};
|
package/ats/src/commands/stop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x16baba=a20_0x9226;(function(_0x4a5dd1,_0x3c831d){const _0x519ec0=a20_0x9226,_0x1833e8=_0x4a5dd1();while(!![]){try{const _0x3021d4=-parseInt(_0x519ec0(0x115))/0x1*(parseInt(_0x519ec0(0x10c))/0x2)+parseInt(_0x519ec0(0x11b))/0x3*(parseInt(_0x519ec0(0x119))/0x4)+-parseInt(_0x519ec0(0x11f))/0x5+parseInt(_0x519ec0(0x111))/0x6+-parseInt(_0x519ec0(0x10b))/0x7*(parseInt(_0x519ec0(0x120))/0x8)+parseInt(_0x519ec0(0x114))/0x9+-parseInt(_0x519ec0(0x112))/0xa;if(_0x3021d4===_0x3c831d)break;else _0x1833e8['push'](_0x1833e8['shift']());}catch(_0x4ce8f1){_0x1833e8['push'](_0x1833e8['shift']());}}}(a20_0xc90b,0xad6d3));function a20_0xc90b(){const _0x3f3816=['2759871jVoZVI','usage','../config/constants','builder','2037070GIMVRL','48lJfKvL','176057LalmhB','645686uZKmqQ','commandDir','desc','SzTlm','stop_commands','4829922yddGaB','2100070SIYAWJ','stop','689229amErMZ','1znfTIC','help','handler','command','4zENFAX','demandCommand'];a20_0xc90b=function(){return _0x3f3816;};return a20_0xc90b();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x16baba(0x11d));function a20_0x9226(_0x2eb559,_0x14f257){const _0xc90bff=a20_0xc90b();return a20_0x9226=function(_0x92260a,_0x467f55){_0x92260a=_0x92260a-0x10b;let _0x4a7ffa=_0xc90bff[_0x92260a];return _0x4a7ffa;},a20_0x9226(_0x2eb559,_0x14f257);}exports[a20_0x16baba(0x118)]=a20_0x16baba(0x113),exports[a20_0x16baba(0x10e)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x16baba(0x11e)]=function(_0x7775ef){const _0x43d658=a20_0x16baba,_0x5b894f={};_0x5b894f[_0x43d658(0x10f)]=_0x43d658(0x110),_0x5b894f['gFVrw']=_0x43d658(0x116);const _0x405284=_0x5b894f;return _0x7775ef[_0x43d658(0x11c)](HELP_HEADER_MESSAGE[_0x43d658(0x113)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x43d658(0x10d)](_0x405284[_0x43d658(0x10f)])[_0x43d658(0x11a)]()['recommendCommands']()['strict']()[_0x43d658(0x116)](_0x405284['gFVrw']);},exports[a20_0x16baba(0x117)]=function(_0x243848){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a21_0x45fa(_0x140f61,_0x2504f7){const _0x4b2284=a21_0x4b22();return a21_0x45fa=function(_0x45fa89,_0x2f5293){_0x45fa89=_0x45fa89-0x11a;let _0x1dff15=_0x4b2284[_0x45fa89];return _0x1dff15;},a21_0x45fa(_0x140f61,_0x2504f7);}const a21_0x2ab1de=a21_0x45fa;(function(_0x2a5267,_0x7de55){const _0x2cf4f3=a21_0x45fa,_0x5d93b8=_0x2a5267();while(!![]){try{const _0x5f19ca=-parseInt(_0x2cf4f3(0x134))/0x1+parseInt(_0x2cf4f3(0x154))/0x2*(-parseInt(_0x2cf4f3(0x125))/0x3)+parseInt(_0x2cf4f3(0x131))/0x4*(parseInt(_0x2cf4f3(0x164))/0x5)+parseInt(_0x2cf4f3(0x14b))/0x6*(-parseInt(_0x2cf4f3(0x138))/0x7)+-parseInt(_0x2cf4f3(0x152))/0x8+parseInt(_0x2cf4f3(0x16e))/0x9+parseInt(_0x2cf4f3(0x133))/0xa;if(_0x5f19ca===_0x7de55)break;else _0x5d93b8['push'](_0x5d93b8['shift']());}catch(_0x36636a){_0x5d93b8['push'](_0x5d93b8['shift']());}}}(a21_0x4b22,0x23f02));function a21_0x4b22(){const _0x24a890=['gridId','Grid\x20stoppped.','invalid-grid-id','password','clusterRegion','reconnecting-websocket','desc','unauthorised','LrBAR','stringify','<PasswordPlaceholder>','FrEiM','ERROR','string','hIUBa','lOeNe','WVlNa','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','265116xWyXNT','boolean','ubNqG','../../cloudproviders/utils','exit','MYsSP','QuMsB','1864768XJLARm','YJhiK','24xWKGmr','parse','help','grid','../../utils/gridComponents','bstackUsername','../../utils/webSocketUtils','qvnFZ','type','handler','debug','../../config/logger','statusCode','../../utils/createk8sClient','usage','xRgpd','185UgGvIB','username','command','grid-id','Stop\x20a\x20running\x20Automation\x20grid.','Browserstack','description','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','xMaiM','epilogue','631863NsgkrO','name','BhNqy','replace','builder','clusterName','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Stopping\x20grid\x20','options','error','NHEjF','skipTlsCertVerify','info','23775kPgpia','message','bstackAccesskey','default','VuCyN','INFO','MpEGA','cloudProvider','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','server-error','argv','init-not-called','3784pqZfCI','user','6416760AJdiPH','94743HfnyQR','aVujV','../../config/constants','connectionTimeout','28aJJZqD'];a21_0x4b22=function(){return _0x24a890;};return a21_0x4b22();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x2ab1de(0x13e)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x2ab1de(0x136)),{logger}=require(a21_0x2ab1de(0x15f)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require(a21_0x2ab1de(0x158)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a21_0x2ab1de(0x15a)),{createK8sClient}=require(a21_0x2ab1de(0x161)),{getCloudProviderObject}=require(a21_0x2ab1de(0x14e));exports[a21_0x2ab1de(0x166)]=a21_0x2ab1de(0x157),exports[a21_0x2ab1de(0x13f)]=a21_0x2ab1de(0x168),exports[a21_0x2ab1de(0x11c)]=function(_0x4a097c){const _0x12629a=a21_0x2ab1de,_0x4f3b5c={};_0x4f3b5c[_0x12629a(0x144)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x4f3b5c['BhNqy']=_0x12629a(0x146),_0x4f3b5c[_0x12629a(0x15b)]='Skip\x20insecure\x20cert\x20verification.',_0x4f3b5c['QuMsB']=_0x12629a(0x14c),_0x4f3b5c[_0x12629a(0x150)]='help';const _0x23a14a=_0x4f3b5c,_0x2d63fe={};_0x2d63fe[_0x12629a(0x16a)]=_0x23a14a[_0x12629a(0x144)],_0x2d63fe[_0x12629a(0x15c)]=_0x23a14a[_0x12629a(0x11a)];const _0x4942ed={};_0x4942ed[_0x12629a(0x16a)]=_0x23a14a['qvnFZ'],_0x4942ed[_0x12629a(0x15c)]=_0x23a14a[_0x12629a(0x151)],_0x4942ed[_0x12629a(0x128)]=![];const _0x5db4ad={};return _0x5db4ad[_0x12629a(0x167)]=_0x2d63fe,_0x5db4ad['skip-tls-cert-verify']=_0x4942ed,_0x4a097c[_0x12629a(0x162)](HELP_HEADER_MESSAGE['stop'])[_0x12629a(0x16d)](HELP_FOOTER_MESSAGE)[_0x12629a(0x120)](_0x5db4ad)[_0x12629a(0x156)](_0x23a14a[_0x12629a(0x150)])[_0x12629a(0x12f)];},exports[a21_0x2ab1de(0x15d)]=async function(_0xfdd0b2){const _0x1d1fec=a21_0x2ab1de,_0x54c011={'YJhiK':_0x1d1fec(0x14a),'RBVuq':function(_0x13bef8){return _0x13bef8();},'MpEGA':_0x1d1fec(0x12d),'aVujV':function(_0x11c667,_0x2b851e,_0x3cabf5,_0x44547f,_0x180f59,_0xace45a,_0x5e56a4){return _0x11c667(_0x2b851e,_0x3cabf5,_0x44547f,_0x180f59,_0xace45a,_0x5e56a4);},'LrBAR':'stop-grid-called','tgMxv':_0x1d1fec(0x130),'uHRkk':function(_0x91aa95){return _0x91aa95();},'WVlNa':'<UsernamePlaceholder>','vGIpE':_0x1d1fec(0x143),'NKsih':'Adding\x20Websocket\x20listeners','lOeNe':function(_0x14cb21,_0x1ec2ae,_0x497d63,_0x46ee19){return _0x14cb21(_0x1ec2ae,_0x497d63,_0x46ee19);},'mSJFZ':function(_0x4ac6e7,_0x23dc96,_0xc7e461,_0x5918bc,_0x210a38,_0x25b6b4,_0x348d34){return _0x4ac6e7(_0x23dc96,_0xc7e461,_0x5918bc,_0x210a38,_0x25b6b4,_0x348d34);},'VuCyN':function(_0x3f2ed0,_0x246dd9,_0x4639ef){return _0x3f2ed0(_0x246dd9,_0x4639ef);},'xMaiM':function(_0x169f63,_0x40f6c2,_0x1ab1c5){return _0x169f63(_0x40f6c2,_0x1ab1c5);},'NHEjF':_0x1d1fec(0x13a),'xRgpd':function(_0x57b0e6,_0x4b75eb){return _0x57b0e6===_0x4b75eb;},'kiRoG':_0x1d1fec(0x11e),'hIUBa':_0x1d1fec(0x140),'ubNqG':_0x1d1fec(0x13b),'DHVMj':_0x1d1fec(0x12e)};let _0x59b939;try{!_0xfdd0b2[_0x1d1fec(0x139)]&&(logger['error'](_0x54c011[_0x1d1fec(0x153)]),process[_0x1d1fec(0x14f)](0x1));!fs['existsSync'](_0x54c011['RBVuq'](getCredentialsPath))&&(logger[_0x1d1fec(0x121)](_0x54c011[_0x1d1fec(0x12b)]),await _0x54c011['aVujV'](sendInstrumentationEvent,_0xfdd0b2,_0x54c011['LrBAR'],messageTypes[_0x1d1fec(0x145)],_0x54c011['tgMxv'],null,_0xfdd0b2),process[_0x1d1fec(0x14f)](0x1));logger[_0x1d1fec(0x124)](_0x1d1fec(0x11f)+_0xfdd0b2[_0x1d1fec(0x139)]),await _0x54c011[_0x1d1fec(0x135)](sendInstrumentationEvent,_0xfdd0b2,_0x54c011[_0x1d1fec(0x141)],messageTypes[_0x1d1fec(0x12a)],null,null,_0xfdd0b2);const _0x5c1fc7=JSON[_0x1d1fec(0x155)](fs['readFileSync'](_0x54c011['uHRkk'](getCredentialsPath)));global_registry[_0x1d1fec(0x159)]=_0x5c1fc7['Browserstack'][_0x1d1fec(0x165)],global_registry[_0x1d1fec(0x127)]=_0x5c1fc7[_0x1d1fec(0x169)][_0x1d1fec(0x13c)];const _0x3c379b=WS_ENDPOINT[_0x1d1fec(0x11b)](_0x54c011[_0x1d1fec(0x149)],_0x5c1fc7['Browserstack'][_0x1d1fec(0x165)])[_0x1d1fec(0x11b)](_0x54c011['vGIpE'],_0x5c1fc7['Browserstack'][_0x1d1fec(0x13c)]),_0x2cc8bf={};_0x2cc8bf['WebSocket']=ws,_0x2cc8bf[_0x1d1fec(0x137)]=0x36ee80,_0x59b939=new ReconnectingWebSocket(_0x3c379b,[],_0x2cc8bf),logger[_0x1d1fec(0x15e)](_0x54c011['NKsih']),webSocketUtils['addListeners'](_0x59b939,_0xfdd0b2[_0x1d1fec(0x132)],_0xfdd0b2['password']);const [_0x2b6eea,_0x45420d]=await _0x54c011[_0x1d1fec(0x148)](getGridDetails,_0x5c1fc7[_0x1d1fec(0x169)][_0x1d1fec(0x165)],_0x5c1fc7[_0x1d1fec(0x169)]['password'],_0xfdd0b2[_0x1d1fec(0x139)]);if(_0x45420d){const _0x19dafe=_0x45420d[_0x1d1fec(0x124)];global_registry[_0x1d1fec(0x12c)]=_0x19dafe['cloudProvider'],global_registry[_0x1d1fec(0x13d)]=_0x19dafe['region'],global_registry['clusterName']=_0x19dafe['clusterName'];const _0x1dd76b=await _0x54c011['mSJFZ'](getCloudProviderObject,_0x19dafe[_0x1d1fec(0x12c)],_0x19dafe[_0x1d1fec(0x11d)],_0x19dafe[_0x1d1fec(0x16f)],_0x59b939,webSocketUtils,_0xfdd0b2),[_0x168481,_0x4e172d,_0x3128ec,_0x141c5c,_0x5dd284,_0x41777b]=await _0x54c011[_0x1d1fec(0x129)](createK8sClient,_0x1dd76b,_0xfdd0b2[_0x1d1fec(0x123)]);await _0x54c011[_0x1d1fec(0x16c)](scaleDownHubDeployment,_0x4e172d,_0x19dafe['name']),logger[_0x1d1fec(0x124)](_0x54c011[_0x1d1fec(0x122)]),process['exit'](0x0);}_0x54c011[_0x1d1fec(0x163)](_0x2b6eea['statusCode'],0x191)&&(logger[_0x1d1fec(0x121)](_0x54c011['kiRoG']),await _0x54c011['mSJFZ'](sendInstrumentationEvent,_0xfdd0b2,_0x54c011['LrBAR'],messageTypes['ERROR'],_0x54c011[_0x1d1fec(0x147)],null,_0xfdd0b2),process[_0x1d1fec(0x14f)](0x1)),_0x54c011['xRgpd'](_0x2b6eea[_0x1d1fec(0x160)],0x190)&&(logger['error'](JSON['parse'](_0x2b6eea['body'])[_0x1d1fec(0x126)]),await _0x54c011['aVujV'](sendInstrumentationEvent,_0xfdd0b2,_0x54c011[_0x1d1fec(0x141)],messageTypes['ERROR'],_0x54c011[_0x1d1fec(0x14d)],null,_0xfdd0b2),process['exit'](0x1)),logger[_0x1d1fec(0x121)](_0x1d1fec(0x16b)+JSON[_0x1d1fec(0x142)](_0x2b6eea)),await _0x54c011[_0x1d1fec(0x135)](sendInstrumentationEvent,_0xfdd0b2,_0x54c011[_0x1d1fec(0x141)],messageTypes[_0x1d1fec(0x145)],_0x54c011['DHVMj'],_0x2b6eea,_0xfdd0b2),process[_0x1d1fec(0x14f)](0x1);}catch(_0x4767d3){const _0x5738c9='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x4767d3+'\x20\x0a'+JSON[_0x1d1fec(0x142)](_0x4767d3['stack'])+'\x20';logger[_0x1d1fec(0x121)](_0x5738c9),process['exit'](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0xb58969=a22_0x27ff;(function(_0x4e0bf7,_0x194445){const _0x5a7357=a22_0x27ff,_0x13b60b=_0x4e0bf7();while(!![]){try{const _0x29581f=parseInt(_0x5a7357(0xa1))/0x1+parseInt(_0x5a7357(0xc2))/0x2*(-parseInt(_0x5a7357(0x92))/0x3)+-parseInt(_0x5a7357(0x83))/0x4+parseInt(_0x5a7357(0x79))/0x5*(-parseInt(_0x5a7357(0xd2))/0x6)+-parseInt(_0x5a7357(0x9f))/0x7*(-parseInt(_0x5a7357(0x99))/0x8)+-parseInt(_0x5a7357(0x96))/0x9+-parseInt(_0x5a7357(0xd8))/0xa*(-parseInt(_0x5a7357(0xa6))/0xb);if(_0x29581f===_0x194445)break;else _0x13b60b['push'](_0x13b60b['shift']());}catch(_0x1ac1c2){_0x13b60b['push'](_0x13b60b['shift']());}}}(a22_0x2674,0x6e964),require(a22_0xb58969(0xdd))[a22_0xb58969(0x9c)]());let gridURL='grid.browserstack.com',bsApiUrl='api.browserstack.com',agApiUrl=a22_0xb58969(0x97);const _env=(process[a22_0xb58969(0x9d)][a22_0xb58969(0xaf)]||'prod')[a22_0xb58969(0x8e)]();if(_env==='staging'||_env===a22_0xb58969(0xb0))gridURL=a22_0xb58969(0xce),bsApiUrl='api-devhst.bsstag.com',agApiUrl=a22_0xb58969(0x8a);else(_env===a22_0xb58969(0x91)||_env===a22_0xb58969(0xcd))&&(gridURL=a22_0xb58969(0x76),bsApiUrl=a22_0xb58969(0x88),agApiUrl=a22_0xb58969(0xb9));exports[a22_0xb58969(0xb8)]=process[a22_0xb58969(0x9d)][a22_0xb58969(0xb8)]||gridURL,exports['BS_API_URL']=process[a22_0xb58969(0x9d)][a22_0xb58969(0xbc)]||bsApiUrl,exports[a22_0xb58969(0xda)]=process[a22_0xb58969(0x9d)][a22_0xb58969(0xda)]||agApiUrl,exports[a22_0xb58969(0xbe)]=a22_0xb58969(0x74)+this[a22_0xb58969(0xda)]+a22_0xb58969(0x80),exports[a22_0xb58969(0xa7)]=a22_0xb58969(0x9b),exports[a22_0xb58969(0x7a)]=a22_0xb58969(0xba),exports[a22_0xb58969(0x94)]=a22_0xb58969(0x8d),exports[a22_0xb58969(0xbb)]=a22_0xb58969(0x98),exports[a22_0xb58969(0x95)]=a22_0xb58969(0xd7),exports[a22_0xb58969(0xad)]=a22_0xb58969(0x87),exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0xb58969(0x89),exports[a22_0xb58969(0xa8)]='browserstack-turboscale-grid',exports[a22_0xb58969(0xbd)]='azure',exports[a22_0xb58969(0x7e)]='gcp',exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0xb58969(0xbb)],this['AZURE'],this[a22_0xb58969(0x7e)]];const a22_0x5bfa98={};a22_0x5bfa98[a22_0xb58969(0x73)]=a22_0xb58969(0xb4),a22_0x5bfa98[a22_0xb58969(0x7b)]='BrowserStack';const a22_0x285842={};a22_0x285842[a22_0xb58969(0x73)]=a22_0xb58969(0x84),a22_0x285842[a22_0xb58969(0x7b)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x5bfa98,a22_0x285842];if(process[a22_0xb58969(0x9d)][a22_0xb58969(0xab)]){const parsedTags=process[a22_0xb58969(0x9d)]['TURBOSCALE_CUSTOM_TAGS'][a22_0xb58969(0xb7)](',');parsedTags['forEach'](_0x2282d3=>{const _0x1e0875=a22_0xb58969,_0xe087c0=_0x2282d3[_0x1e0875(0xb7)](':'),_0x4e054f={};_0x4e054f[_0x1e0875(0x73)]=_0xe087c0[0x0],_0x4e054f['Value']=_0xe087c0[0x1],common_hst_tags_list[_0x1e0875(0xc7)](_0x4e054f);});}exports[a22_0xb58969(0xd6)]=common_hst_tags_list;const a22_0x4439f0={};a22_0x4439f0[a22_0xb58969(0xb4)]='BrowserStack',a22_0x4439f0['browserstack:service']='BrowserStack-Automate-TurboScale',exports[a22_0xb58969(0xdb)]=a22_0x4439f0,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0xb58969(0xbb)]];const a22_0x3aaf3c={};a22_0x3aaf3c['LOG']='log',a22_0x3aaf3c[a22_0xb58969(0xac)]=a22_0xb58969(0xcc),a22_0x3aaf3c[a22_0xb58969(0xa2)]=a22_0xb58969(0xd9),a22_0x3aaf3c[a22_0xb58969(0xca)]=a22_0xb58969(0xc6),a22_0x3aaf3c[a22_0xb58969(0x8b)]=a22_0xb58969(0xc8),exports[a22_0xb58969(0xd4)]=a22_0x3aaf3c,exports[a22_0xb58969(0xaa)]={},exports[a22_0xb58969(0x9e)]=a22_0xb58969(0xc0);const a22_0x11948e={};a22_0x11948e[a22_0xb58969(0xb3)]=a22_0xb58969(0x85)+this['LINK_MESSAGE'],a22_0x11948e['init']=a22_0xb58969(0xcb)+this['LINK_MESSAGE'],a22_0x11948e[a22_0xb58969(0xb5)]=a22_0xb58969(0xd1)+this[a22_0xb58969(0x9e)],a22_0x11948e[a22_0xb58969(0x86)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x11948e[a22_0xb58969(0x9a)]={},a22_0x11948e['delete']='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0xb58969(0x9e)],a22_0x11948e['connect']='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0xb58969(0x9e)],a22_0x11948e['start']=a22_0xb58969(0xd5)+this[a22_0xb58969(0x9e)],a22_0x11948e[a22_0xb58969(0x82)]='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x11948e[a22_0xb58969(0xa4)]=a22_0xb58969(0xdc)+this['LINK_MESSAGE'],a22_0x11948e[a22_0xb58969(0x9a)]['root']=a22_0xb58969(0xcf)+this[a22_0xb58969(0x9e)],a22_0x11948e[a22_0xb58969(0x9a)][a22_0xb58969(0xc5)]=a22_0xb58969(0xb1)+this['LINK_MESSAGE'],a22_0x11948e[a22_0xb58969(0x9a)][a22_0xb58969(0xb6)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this['LINK_MESSAGE'],exports['HELP_HEADER_MESSAGE']=a22_0x11948e,exports[a22_0xb58969(0x7c)]=a22_0xb58969(0x7f);const a22_0x180fa4={};function a22_0x27ff(_0x14ec75,_0x328442){const _0x267454=a22_0x2674();return a22_0x27ff=function(_0x27ff0c,_0x13db86){_0x27ff0c=_0x27ff0c-0x73;let _0x482e59=_0x267454[_0x27ff0c];return _0x482e59;},a22_0x27ff(_0x14ec75,_0x328442);}a22_0x180fa4[a22_0xb58969(0xae)]='success',a22_0x180fa4[a22_0xb58969(0xa9)]=a22_0xb58969(0x8c),a22_0x180fa4['INFO']=a22_0xb58969(0xa5),a22_0x180fa4[a22_0xb58969(0xc4)]=a22_0xb58969(0xd3),a22_0x180fa4['UNKNOWN']=a22_0xb58969(0x75),a22_0x180fa4[a22_0xb58969(0xd0)]=null,exports['messageTypes']=a22_0x180fa4,exports[a22_0xb58969(0xa3)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0xb58969(0x90)]=a22_0xb58969(0x81);const a22_0xd7c1ac={};function a22_0x2674(){const _0xf3e4d0=['LINK_MESSAGE','1031324QSTCiH','high-scale-grid-cluster','901756SECoTP','GRID_URL','CLI_ARGS_REGEX','pre_check','info','11HWCkUQ','CP_CONFIG_FILE','TURBOSCALE_DEPLOYMENT','ERROR','global_registry','TURBOSCALE_CUSTOM_TAGS','RESOURCES','CLUSTER_AUTOSCALER_STACK_NAME','SUCCESS','BROWSERSTACK_ENV','stag','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','CLOUD_PROVIDER','root','browserstack:managedBy','configure','gridProfile','split','DASHBOARD_ENDPOINT','grid-api-preprod.bsstag.com','BrowserStackIAMUser','AWS','BS_API_URL','AZURE','WS_ENDPOINT','CLUSTER','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','MessageDescription','374890LKIEgW','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','WARNING','grid','cliRunStarted','push','cliRunFinished','us-east-1','CLI_RUN_STARTED','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','resourceInfo','pre-prod','grid-devhst.bsstag.com','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','NULL','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','774GeKSyu','warning','WS_EVENTS','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','COMMON_HST_TAGS','BSTACK-ATS-CLUSTER','9126770aUzdOV','gridUrl','AG_API_URL','HST_CLUSTER_TAGS','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','dotenv','Key','wss://','unknown','grid-preprod.bsstag.com','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','REGION','19405uuKEpQ','IAM_USER_NAME','Value','HELP_FOOTER_MESSAGE','grid-profile','GCP','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','[REDACTED]','stop','3467348HtPkba','browserstack:service','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','create','BSTACK-ATS-CLUSTER-AUTOSCALER','api-preprod.bsstag.com','BSTACK-ATS-CLUSTER-HUB-HA','grid-api-devhst.bsstag.com','CLI_RUN_FINISHED','error','high-scale-grid','toLowerCase','DEFAULT_CLUSTER_DETAILS','REDACTED','preprod','3RpagzS','TRIAL_GRID_URL','DEFAULT_GRID_NAME','CLUSTER_DEP_STACK_NAME','3562794CRaxrt','grid-api.browserstack.com','aws','32oedQdy','list','credentials','config','env'];a22_0x2674=function(){return _0xf3e4d0;};return a22_0x2674();}a22_0xd7c1ac[a22_0xb58969(0x7d)]=a22_0xb58969(0x77);const a22_0x3c29c9={};a22_0x3c29c9['pre-check']=a22_0xd7c1ac,exports[a22_0xb58969(0xc1)]=a22_0x3c29c9,exports[a22_0xb58969(0x93)]=a22_0xb58969(0xc3);const a22_0x455797={};a22_0x455797[a22_0xb58969(0xbf)]=a22_0xb58969(0xa0),a22_0x455797[a22_0xb58969(0xb2)]='aws',a22_0x455797[a22_0xb58969(0x78)]=a22_0xb58969(0xc9),exports[a22_0xb58969(0x8f)]=a22_0x455797;
|
package/ats/src/config/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a23_0x172b66=a23_0x3eb3;(function(_0x3febdb,_0x2b8840){const _0x527492=a23_0x3eb3,_0x1daba5=_0x3febdb();while(!![]){try{const _0x59432b=-parseInt(_0x527492(0x1ad))/0x1*(-parseInt(_0x527492(0x1a4))/0x2)+-parseInt(_0x527492(0x191))/0x3+parseInt(_0x527492(0x199))/0x4+parseInt(_0x527492(0x1aa))/0x5*(-parseInt(_0x527492(0x1a0))/0x6)+parseInt(_0x527492(0x19d))/0x7*(parseInt(_0x527492(0x190))/0x8)+parseInt(_0x527492(0x1a9))/0x9*(parseInt(_0x527492(0x19a))/0xa)+-parseInt(_0x527492(0x194))/0xb*(parseInt(_0x527492(0x1b0))/0xc);if(_0x59432b===_0x2b8840)break;else _0x1daba5['push'](_0x1daba5['shift']());}catch(_0x1564d1){_0x1daba5['push'](_0x1daba5['shift']());}}}(a23_0x1519,0x2e1e5));const winston=require(a23_0x172b66(0x192)),fs=require('fs'),path=require('path'),logDir=a23_0x172b66(0x193);!fs[a23_0x172b66(0x1a6)](logDir)&&fs[a23_0x172b66(0x1af)](logDir);const a23_0x3be70f={};a23_0x3be70f['format']=a23_0x172b66(0x196);const a23_0x56efe4={};a23_0x56efe4[a23_0x172b66(0x19c)]=!![];function a23_0x1519(){const _0x37e918=['1276576mMRyOm','62091drgzqH','winston','log','3586QWIzPC','\x20-\x20','YYYY-MM-DD\x20HH:mm:ss','join','events.log','755788iQwyxs','3570uflNQA','transports','level','7PeGwQc','logger','createLogger','300792lJtheq','printf','name','File','2gNJsec','combine','existsSync','usage.log','fileLogger','1638qVkJgY','25WrvbPc','debug','timestamp','240083NTOrgi','format','mkdirSync','7116axDjvZ'];a23_0x1519=function(){return _0x37e918;};return a23_0x1519();}function a23_0x3eb3(_0x30c050,_0x10bb7c){const _0x1519e9=a23_0x1519();return a23_0x3eb3=function(_0x3eb3c7,_0x40bf1a){_0x3eb3c7=_0x3eb3c7-0x190;let _0x2dfefa=_0x1519e9[_0x3eb3c7];return _0x2dfefa;},a23_0x3eb3(_0x30c050,_0x10bb7c);}const a23_0x43449c={};a23_0x43449c[a23_0x172b66(0x1a2)]='console.info',exports[a23_0x172b66(0x19e)]=new winston['createLogger']({'format':winston[a23_0x172b66(0x1ae)][a23_0x172b66(0x1a5)](winston[a23_0x172b66(0x1ae)]['timestamp'](a23_0x3be70f),winston[a23_0x172b66(0x1ae)]['colorize'](a23_0x56efe4),winston['format'][a23_0x172b66(0x1a1)](_0x9cee64=>_0x9cee64[a23_0x172b66(0x1ac)]+a23_0x172b66(0x195)+_0x9cee64[a23_0x172b66(0x19c)]+':\x20'+_0x9cee64['message'])),'transports':[new winston[(a23_0x172b66(0x19b))]['Console'](a23_0x43449c),new winston[(a23_0x172b66(0x19b))][(a23_0x172b66(0x1a3))]({'filename':path[a23_0x172b66(0x197)](logDir,a23_0x172b66(0x198)),'level':a23_0x172b66(0x1ab)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x172b66(0x19b))]['File']({'filename':path[a23_0x172b66(0x197)](logDir,a23_0x172b66(0x1a7)),'level':a23_0x172b66(0x1ab)})]};exports[a23_0x172b66(0x1a8)]=new winston[(a23_0x172b66(0x19f))](winstonFileLoggerParams);
|
package/ats/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a24_0x58c285=a24_0x5555;function a24_0x5555(_0x5dcf4c,_0x21cb9d){const _0x2effb3=a24_0x2eff();return a24_0x5555=function(_0x55552b,_0x966b06){_0x55552b=_0x55552b-0x8c;let _0xad232f=_0x2effb3[_0x55552b];return _0xad232f;},a24_0x5555(_0x5dcf4c,_0x21cb9d);}(function(_0xbb04b2,_0x24826d){const _0xd3125c=a24_0x5555,_0x143db8=_0xbb04b2();while(!![]){try{const _0x4a9a0d=parseInt(_0xd3125c(0x90))/0x1+parseInt(_0xd3125c(0x94))/0x2+-parseInt(_0xd3125c(0x95))/0x3+parseInt(_0xd3125c(0x98))/0x4+-parseInt(_0xd3125c(0x9c))/0x5*(parseInt(_0xd3125c(0x9d))/0x6)+parseInt(_0xd3125c(0xa0))/0x7*(parseInt(_0xd3125c(0x91))/0x8)+parseInt(_0xd3125c(0x8f))/0x9*(-parseInt(_0xd3125c(0x9e))/0xa);if(_0x4a9a0d===_0x24826d)break;else _0x143db8['push'](_0x143db8['shift']());}catch(_0x232a14){_0x143db8['push'](_0x143db8['shift']());}}}(a24_0x2eff,0x95365));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x58c285(0x99));process[a24_0x58c285(0x92)][a24_0x58c285(0x93)]=0x1;function run(_0x42f3cb){const _0x542996=a24_0x58c285,_0x1a7c7={};_0x1a7c7['aLjno']='commands',_0x1a7c7[_0x542996(0x8e)]=_0x542996(0x8d);const _0x5b8985=_0x1a7c7;_0x42f3cb[_0x542996(0x9f)](HELP_HEADER_MESSAGE[_0x542996(0x9b)])[_0x542996(0x8c)](_0x5b8985[_0x542996(0x9a)])[_0x542996(0x97)]()[_0x542996(0x8d)](_0x5b8985[_0x542996(0x8e)])[_0x542996(0x96)](HELP_FOOTER_MESSAGE);}module['exports']=run;function a24_0x2eff(){const _0x36db40=['XEtCJ','27IMktTw','761804OCfdhI','40CdPROz','env','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','2001476atRoxR','56010skOZmF','epilogue','demandCommand','4579472qYJqjU','./config/constants','aLjno','root','855pmIqFv','14736QCjNiS','6534620UnBzmB','usage','143913GllTMo','commandDir','help'];a24_0x2eff=function(){return _0x36db40;};return a24_0x2eff();}
|