browserstack-node-sdk 1.55.3 → 1.55.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/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/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/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/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15_0x4bf32a=a15_0x1e98;(function(_0x2ca08b,_0x17b86c){const _0x472353=a15_0x1e98,_0xf5b6f=_0x2ca08b();while(!![]){try{const _0x42bb41=-parseInt(_0x472353(0x1a0))/0x1+parseInt(_0x472353(0x1b7))/0x2+-parseInt(_0x472353(0x1ac))/0x3*(parseInt(_0x472353(0x1ad))/0x4)+-parseInt(_0x472353(0x19f))/0x5*(-parseInt(_0x472353(0x1ab))/0x6)+-parseInt(_0x472353(0x1b5))/0x7*(parseInt(_0x472353(0x1be))/0x8)+parseInt(_0x472353(0x19e))/0x9*(parseInt(_0x472353(0x1ba))/0xa)+parseInt(_0x472353(0x1dc))/0xb;if(_0x42bb41===_0x17b86c)break;else _0xf5b6f['push'](_0xf5b6f['shift']());}catch(_0x2c47b2){_0xf5b6f['push'](_0xf5b6f['shift']());}}}(a15_0x3dc0,0x4946f));const fs=require('fs'),got=require(a15_0x4bf32a(0x1c5)),{table}=require(a15_0x4bf32a(0x1c0)),{v4:uuidv4}=require(a15_0x4bf32a(0x1ce)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x4bf32a(0x1b9)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x4bf32a(0x197));function a15_0x1e98(_0x35bbf4,_0xdf1ff3){const _0x3dc0c7=a15_0x3dc0();return a15_0x1e98=function(_0x1e98b4,_0x560982){_0x1e98b4=_0x1e98b4-0x191;let _0x5bd012=_0x3dc0c7[_0x1e98b4];return _0x5bd012;},a15_0x1e98(_0x35bbf4,_0xdf1ff3);}exports[a15_0x4bf32a(0x1b4)]=a15_0x4bf32a(0x1aa),exports[a15_0x4bf32a(0x1b0)]=a15_0x4bf32a(0x1c1),exports[a15_0x4bf32a(0x1e6)]=function(_0xa7c92f){const _0x4150e1=a15_0x4bf32a,_0x24596c={};_0x24596c[_0x4150e1(0x19b)]=_0x4150e1(0x1a6),_0x24596c[_0x4150e1(0x1b1)]=_0x4150e1(0x1d1),_0x24596c[_0x4150e1(0x196)]='help';const _0x2033dc=_0x24596c,_0x494535={};_0x494535['description']=_0x2033dc[_0x4150e1(0x19b)],_0x494535[_0x4150e1(0x1a1)]=_0x2033dc[_0x4150e1(0x1b1)];const _0x4a31a3={};return _0x4a31a3[_0x4150e1(0x1bc)]=_0x494535,_0xa7c92f[_0x4150e1(0x1bb)](HELP_HEADER_MESSAGE[_0x4150e1(0x1e3)][_0x4150e1(0x1da)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4150e1(0x1af)](_0x4a31a3)[_0x4150e1(0x1d2)](_0x2033dc['ajzbs'])[_0x4150e1(0x1eb)];},exports[a15_0x4bf32a(0x1e9)]=async function(_0x4d1270){const _0x2c299c=a15_0x4bf32a,_0x1da805={'cFyxg':function(_0x1e9100){return _0x1e9100();},'PDrAk':function(_0x25dc6b){return _0x25dc6b();},'anrBR':_0x2c299c(0x193),'xxpIa':function(_0x2cbcb2,_0x417cf0,_0x4dc280,_0x3dadf6,_0x35e06c,_0x20808f,_0x148e9e){return _0x2cbcb2(_0x417cf0,_0x4dc280,_0x3dadf6,_0x35e06c,_0x20808f,_0x148e9e);},'FjWwQ':'list-grids-called','JuSwq':_0x2c299c(0x1c4),'xhbpC':_0x2c299c(0x1c7),'MZufi':function(_0x5a26f3,_0x36127d,_0x1fcd80){return _0x5a26f3(_0x36127d,_0x1fcd80);},'usRzZ':function(_0x3c1973,_0x41674d,_0x3c4ee2,_0x323640,_0x5f4acb,_0x3687f6,_0x41b0ad){return _0x3c1973(_0x41674d,_0x3c4ee2,_0x323640,_0x5f4acb,_0x3687f6,_0x41b0ad);},'Bvbhw':function(_0x30766b,_0x18ca8f,_0x5e6bb2){return _0x30766b(_0x18ca8f,_0x5e6bb2);},'ZLDPC':function(_0x4dbe19,_0x475470){return _0x4dbe19!==_0x475470;},'cQKJE':function(_0x559654,_0x514477){return _0x559654!==_0x514477;},'qxKsl':function(_0x1861eb,_0x41aabb){return _0x1861eb===_0x41aabb;},'rqeAQ':_0x2c299c(0x1c9),'bRxkI':_0x2c299c(0x1bf),'lYxTN':_0x2c299c(0x1c2),'aWpeN':'status','BnYGJ':'running','NRYKm':_0x2c299c(0x1e2),'uuims':_0x2c299c(0x1ee),'OKaty':function(_0x2ece16,_0x851eb3){return _0x2ece16(_0x851eb3);},'YIOnh':function(_0x245ef9,_0x1fe3f3){return _0x245ef9===_0x1fe3f3;},'hCnAq':_0x2c299c(0x1cd),'rPbKP':function(_0x386a64,_0x19f349,_0x31f180,_0x141f6f,_0x1d68b7,_0x76a36c,_0x30bf5b){return _0x386a64(_0x19f349,_0x31f180,_0x141f6f,_0x1d68b7,_0x76a36c,_0x30bf5b);},'XlFlG':_0x2c299c(0x1ec),'VjxYu':function(_0x2e6690,_0x5f4290,_0x4adfe6,_0x4b4c5d,_0x27a984,_0x2a7b4f,_0x2179d4){return _0x2e6690(_0x5f4290,_0x4adfe6,_0x4b4c5d,_0x27a984,_0x2a7b4f,_0x2179d4);},'UErgq':_0x2c299c(0x199),'dwKmh':function(_0x5203b8,_0x4da82b,_0x28264d,_0x579311,_0x39febe,_0xfa2069,_0x188674){return _0x5203b8(_0x4da82b,_0x28264d,_0x579311,_0x39febe,_0xfa2069,_0x188674);},'hTmQa':_0x2c299c(0x1dd)};try{global_registry[_0x2c299c(0x1e4)]=_0x1da805[_0x2c299c(0x1a8)](uuidv4);!fs[_0x2c299c(0x1ae)](_0x1da805[_0x2c299c(0x195)](getCredentialsPath))&&(console[_0x2c299c(0x192)](_0x1da805[_0x2c299c(0x1a7)]),await _0x1da805['xxpIa'](sendInstrumentationEvent,_0x4d1270,_0x1da805[_0x2c299c(0x1cf)],messageTypes[_0x2c299c(0x1e0)],_0x1da805[_0x2c299c(0x1db)],null,_0x4d1270),process[_0x2c299c(0x191)](0x1));const _0x5c56dd=JSON['parse'](fs[_0x2c299c(0x1d3)](_0x1da805['cFyxg'](getCredentialsPath)));let _0xe1c4ed=_0x2c299c(0x1d6)+AG_API_URL+'/packages/cli/get-grids';_0x4d1270[_0x2c299c(0x1c6)]&&(_0xe1c4ed='https://'+AG_API_URL+_0x2c299c(0x1d8));const _0x3e18fc={'method':_0x1da805[_0x2c299c(0x19d)],'headers':_0x1da805[_0x2c299c(0x1bd)](getAuthHeader,_0x5c56dd[_0x2c299c(0x1b8)]['username'],_0x5c56dd[_0x2c299c(0x1b8)][_0x2c299c(0x1cb)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x5c56dd[_0x2c299c(0x1b8)]['username'],global_registry['bstackAccesskey']=_0x5c56dd[_0x2c299c(0x1b8)][_0x2c299c(0x1cb)],_0x1da805['usRzZ'](sendInstrumentationEvent,_0x4d1270,_0x1da805[_0x2c299c(0x1cf)],messageTypes[_0x2c299c(0x1a2)],null,null,_0x4d1270);const _0x1a6db1=await _0x1da805[_0x2c299c(0x1c8)](got,_0xe1c4ed,_0x3e18fc);if(_0x1da805[_0x2c299c(0x1d5)](_0x1a6db1,null)&&_0x1da805[_0x2c299c(0x1e5)](_0x1a6db1,undefined)&&_0x1da805[_0x2c299c(0x1d4)](_0x1a6db1['statusCode'],0xc8)){const _0x1cd814=JSON[_0x2c299c(0x1d7)](_0x1a6db1[_0x2c299c(0x1ea)]);console[_0x2c299c(0x1ca)](_0x1da805['rqeAQ']);const _0x4059d8=[];_0x4059d8[_0x2c299c(0x1ed)]([_0x1da805[_0x2c299c(0x1e8)],_0x1da805['lYxTN'],_0x1da805[_0x2c299c(0x1e7)],_0x1da805[_0x2c299c(0x1a3)],_0x1da805['NRYKm'],_0x1da805[_0x2c299c(0x1b6)]]),_0x1cd814[_0x2c299c(0x198)](_0x27a69c=>{const _0x481b63=_0x2c299c;_0x4059d8['push']([_0x27a69c['id'],_0x27a69c[_0x481b63(0x1c3)],_0x27a69c[_0x481b63(0x1b2)],_0x27a69c[_0x481b63(0x1e1)],_0x27a69c[_0x481b63(0x1e2)],_0x27a69c[_0x481b63(0x1a4)]]);}),console[_0x2c299c(0x1ca)](_0x1da805[_0x2c299c(0x19c)](table,_0x4059d8)),process['exit'](0x0);}_0x1da805[_0x2c299c(0x194)](_0x1a6db1[_0x2c299c(0x1de)],0x191)&&(console[_0x2c299c(0x192)](_0x1da805['hCnAq']),await _0x1da805[_0x2c299c(0x19a)](sendInstrumentationEvent,_0x4d1270,_0x1da805['FjWwQ'],messageTypes[_0x2c299c(0x1e0)],_0x1da805[_0x2c299c(0x1cc)],null,_0x4d1270),process[_0x2c299c(0x191)](0x1)),console[_0x2c299c(0x192)](_0x2c299c(0x1a5)+JSON[_0x2c299c(0x1df)](_0x1a6db1)),await _0x1da805['VjxYu'](sendInstrumentationEvent,_0x4d1270,_0x1da805[_0x2c299c(0x1cf)],messageTypes[_0x2c299c(0x1e0)],_0x1da805[_0x2c299c(0x1d9)],_0x1a6db1,_0x4d1270),process[_0x2c299c(0x191)](0x1);}catch(_0x50e7a8){console[_0x2c299c(0x192)](_0x2c299c(0x1a9)+_0x50e7a8['stack']),await _0x1da805[_0x2c299c(0x1b3)](sendInstrumentationEvent,_0x4d1270,_0x1da805[_0x2c299c(0x1cf)],messageTypes[_0x2c299c(0x1e0)],_0x1da805[_0x2c299c(0x1d0)],_0x50e7a8,_0x4d1270),process[_0x2c299c(0x191)](0x1);}};function a15_0x3dc0(){const _0x278cb8=['pfWMG','status','dwKmh','command','2921009aeOOcL','uuims','792812RsuJDI','Browserstack','../../config/constants','10enMiJO','usage','all-grids','MZufi','8tylSND','grid-id','table','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','grid-name','name','init-not-called','got','allGrids','GET','Bvbhw','\x0aFound\x20the\x20following\x20grids:\x0a','log','password','XlFlG','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','uuid','FjWwQ','hTmQa','boolean','help','readFileSync','qxKsl','ZLDPC','https://','parse','/packages/cli/get-all-grids','UErgq','grid','JuSwq','3678554GxCPgB','unknown-error','statusCode','stringify','ERROR','running','queued','list','requestId','cQKJE','builder','aWpeN','bRxkI','handler','body','argv','unauthorised','push','cluster-name','exit','error','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','YIOnh','PDrAk','ajzbs','../../utils/instrumentationUtils','forEach','server-error','rPbKP','MJBwP','OKaty','xhbpC','3678849zqAbPN','20sdJeOq','111023ubiFaM','type','INFO','BnYGJ','clusterName','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','anrBR','cFyxg','Failed\x20to\x20list\x20resources!\x20Error:\x20','grids','40926BerxGj','12uHNjjf','338412vQVOXO','existsSync','options','desc'];a15_0x3dc0=function(){return _0x278cb8;};return a15_0x3dc0();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a16_0x1ad3(_0x3e3bea,_0x5d4c45){const _0x22e053=a16_0x22e0();return a16_0x1ad3=function(_0x1ad365,_0x439b04){_0x1ad365=_0x1ad365-0x1a1;let _0x3b490b=_0x22e053[_0x1ad365];return _0x3b490b;},a16_0x1ad3(_0x3e3bea,_0x5d4c45);}const a16_0x17e11c=a16_0x1ad3;function a16_0x22e0(){const _0x4b7a0a=['uoaWB','command','23540cFqSAg','usage','strict','254318krynFP','3180PEkgMa','888228OXnCiM','136362DyUtGB','1EcdOxp','epilogue','pre_check','handler','demandCommand','builder','440BHVPAX','25023rTajfu','desc','15OrgQVK','922876FLekWm','3297CTSAOC','tmJaS','commandDir'];a16_0x22e0=function(){return _0x4b7a0a;};return a16_0x22e0();}(function(_0x23d49c,_0x165277){const _0x5341af=a16_0x1ad3,_0x92ae00=_0x23d49c();while(!![]){try{const _0x421473=-parseInt(_0x5341af(0x1a2))/0x1*(parseInt(_0x5341af(0x1b5))/0x2)+-parseInt(_0x5341af(0x1a9))/0x3+-parseInt(_0x5341af(0x1ac))/0x4+parseInt(_0x5341af(0x1ab))/0x5*(-parseInt(_0x5341af(0x1a1))/0x6)+parseInt(_0x5341af(0x1ad))/0x7*(-parseInt(_0x5341af(0x1a8))/0x8)+-parseInt(_0x5341af(0x1b7))/0x9+-parseInt(_0x5341af(0x1b6))/0xa*(-parseInt(_0x5341af(0x1b2))/0xb);if(_0x421473===_0x165277)break;else _0x92ae00['push'](_0x92ae00['shift']());}catch(_0x38678e){_0x92ae00['push'](_0x92ae00['shift']());}}}(a16_0x22e0,0x1dab3));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a16_0x17e11c(0x1b1)]='pre-check',exports[a16_0x17e11c(0x1aa)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a16_0x17e11c(0x1a7)]=function(_0x49545f){const _0x2e9792=a16_0x17e11c,_0x1407a9={};_0x1407a9[_0x2e9792(0x1ae)]='precheck_commands',_0x1407a9[_0x2e9792(0x1b0)]='help';const _0x3a9ca9=_0x1407a9;return _0x49545f[_0x2e9792(0x1b3)](HELP_HEADER_MESSAGE[_0x2e9792(0x1a4)])[_0x2e9792(0x1a3)](HELP_FOOTER_MESSAGE)[_0x2e9792(0x1af)](_0x3a9ca9[_0x2e9792(0x1ae)])[_0x2e9792(0x1a6)]()['recommendCommands']()[_0x2e9792(0x1b4)]()['help'](_0x3a9ca9[_0x2e9792(0x1b0)]);},exports[a16_0x17e11c(0x1a5)]=function(_0x3a2b50){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a17_0x4edf2c=a17_0xaf1b;(function(_0x2f8119,_0x380f0a){const _0x38d24a=a17_0xaf1b,_0x1e3aff=_0x2f8119();while(!![]){try{const _0x6c9eca=-parseInt(_0x38d24a(0x22f))/0x1+parseInt(_0x38d24a(0x228))/0x2*(-parseInt(_0x38d24a(0x17c))/0x3)+parseInt(_0x38d24a(0x17f))/0x4+parseInt(_0x38d24a(0x1b5))/0x5*(parseInt(_0x38d24a(0x1cb))/0x6)+-parseInt(_0x38d24a(0x218))/0x7+-parseInt(_0x38d24a(0x24c))/0x8+-parseInt(_0x38d24a(0x165))/0x9*(-parseInt(_0x38d24a(0x1d1))/0xa);if(_0x6c9eca===_0x380f0a)break;else _0x1e3aff['push'](_0x1e3aff['shift']());}catch(_0x1887e0){_0x1e3aff['push'](_0x1e3aff['shift']());}}}(a17_0x3c7a,0x4de0f));const fs=require('fs'),ws=require('ws'),got=require(a17_0x4edf2c(0x17e)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x4edf2c(0x264)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x4edf2c(0x260)),{getCloudProviderObjectWithOutInit}=require(a17_0x4edf2c(0x241)),webSocketUtils=require(a17_0x4edf2c(0x1d9)),{sendInstrumentationEvent}=require(a17_0x4edf2c(0x23d));exports[a17_0x4edf2c(0x1f7)]='grid',exports[a17_0x4edf2c(0x1e1)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports['builder']=function(_0x2612c9){const _0x4d3896=a17_0x4edf2c,_0x777dbe={};_0x777dbe[_0x4d3896(0x1a8)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x777dbe['VPNRY']='string',_0x777dbe[_0x4d3896(0x204)]=_0x4d3896(0x222),_0x777dbe[_0x4d3896(0x16a)]=_0x4d3896(0x242),_0x777dbe['kUMDy']=_0x4d3896(0x1ea),_0x777dbe[_0x4d3896(0x1e4)]=_0x4d3896(0x20d);const _0x4d87ee=_0x777dbe,_0x188bb4={};_0x188bb4[_0x4d3896(0x1d2)]=_0x4d87ee[_0x4d3896(0x1a8)],_0x188bb4[_0x4d3896(0x17b)]=_0x4d87ee['VPNRY'];const _0x326fb2={};_0x326fb2['description']=_0x4d87ee[_0x4d3896(0x204)],_0x326fb2[_0x4d3896(0x17b)]=_0x4d87ee[_0x4d3896(0x1c3)];const _0x3b0ebc={};_0x3b0ebc[_0x4d3896(0x1d2)]=_0x4d87ee[_0x4d3896(0x16a)],_0x3b0ebc[_0x4d3896(0x17b)]=_0x4d87ee['VPNRY'];const _0x3f6e50={};_0x3f6e50['description']=_0x4d87ee['kUMDy'],_0x3f6e50[_0x4d3896(0x17b)]=_0x4d87ee[_0x4d3896(0x1c3)];const _0x47b37a={};return _0x47b37a['cluster-name']=_0x188bb4,_0x47b37a[_0x4d3896(0x1a6)]=_0x326fb2,_0x47b37a[_0x4d3896(0x21b)]=_0x3b0ebc,_0x47b37a[_0x4d3896(0x1b9)]=_0x3f6e50,_0x2612c9[_0x4d3896(0x1ff)](HELP_HEADER_MESSAGE[_0x4d3896(0x243)])[_0x4d3896(0x239)](HELP_FOOTER_MESSAGE)[_0x4d3896(0x1ba)](_0x47b37a)[_0x4d3896(0x20d)](_0x4d87ee[_0x4d3896(0x1e4)])[_0x4d3896(0x183)];};function a17_0xaf1b(_0x4e385d,_0x1f9a6b){const _0x3c7a78=a17_0x3c7a();return a17_0xaf1b=function(_0xaf1be0,_0x2e9bd6){_0xaf1be0=_0xaf1be0-0x165;let _0x275bea=_0x3c7a78[_0xaf1be0];return _0x275bea;},a17_0xaf1b(_0x4e385d,_0x1f9a6b);}async function inputValidation(_0x4f3144,_0x3406bb){const _0x2d9163=a17_0x4edf2c,_0x909a45={'KAAJC':_0x2d9163(0x1a6),'NDkcq':function(_0x369fbf,_0x317b2a){return _0x369fbf+_0x317b2a;},'xPRDv':_0x2d9163(0x216),'VGGtP':_0x2d9163(0x1eb),'fnYNd':function(_0x543c8d,_0x3a834){return _0x543c8d||_0x3a834;},'xSPWw':_0x2d9163(0x21c),'lCfbx':_0x2d9163(0x224),'QQRlE':'is\x20already\x20present','kghZr':_0x2d9163(0x266),'dzSwy':_0x2d9163(0x20a),'AQanx':_0x2d9163(0x1f1),'PZYdj':_0x2d9163(0x192),'cyoou':_0x2d9163(0x222),'PCfUZ':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','XDmqU':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','khqFK':'help','NciHo':_0x2d9163(0x1f6),'RgseQ':'region','pPTSO':function(_0x2e32f0,_0x18f91b){return _0x2e32f0!==_0x18f91b;},'WJbBd':_0x2d9163(0x202),'CNhwD':function(_0xfe13c3,_0x4d8d51){return _0xfe13c3===_0x4d8d51;},'DRpIy':_0x2d9163(0x1cf),'CPHdu':function(_0x34365b,_0x3c91ee){return _0x34365b!==_0x3c91ee;},'CXPpq':_0x2d9163(0x1b8),'rbwds':'esJkm','vlppN':_0x2d9163(0x24d),'ExzBy':_0x2d9163(0x1b7),'aTGNI':function(_0x358aab,_0x3318cc){return _0x358aab===_0x3318cc;},'KtIWk':_0x2d9163(0x230),'kJFEi':_0x2d9163(0x1c7),'drVKB':function(_0x564d58,_0x104a5a){return _0x564d58>_0x104a5a;},'ThBXF':_0x2d9163(0x209),'jNaYJ':_0x2d9163(0x22d),'jRWbZ':function(_0x436e11,_0x12f537,_0x1f65ec,_0x1045e8,_0x98b985,_0x1b390e,_0x2b1538,_0x443717){return _0x436e11(_0x12f537,_0x1f65ec,_0x1045e8,_0x98b985,_0x1b390e,_0x2b1538,_0x443717);},'kGJFD':_0x2d9163(0x232),'InpGY':_0x2d9163(0x172),'AmYVv':function(_0x39d526,_0x2bb09e){return _0x39d526!==_0x2bb09e;},'FYiYH':'JGNfv','jROLv':_0x2d9163(0x1ad),'shfkr':function(_0x9bf18f,_0x4467e5,_0x5bc23c,_0x4b71a7,_0x22ef0c,_0x3efdab,_0x545d45,_0x4161ca){return _0x9bf18f(_0x4467e5,_0x5bc23c,_0x4b71a7,_0x22ef0c,_0x3efdab,_0x545d45,_0x4161ca);},'QfYdM':_0x2d9163(0x1db),'MojPg':function(_0x3eca71,_0x2ebfa1){return _0x3eca71!==_0x2ebfa1;},'plPwy':_0x2d9163(0x21e),'DYFVI':'XRlbE','TZPMJ':_0x2d9163(0x1d0),'NSxWa':_0x2d9163(0x191),'cUMHC':function(_0x27a3b5,_0x2709c7,_0x4d7a60){return _0x27a3b5(_0x2709c7,_0x4d7a60);},'jBiSR':function(_0x1b8e37,_0x4e0683,_0x38d62a,_0x4a5bf6,_0x5c5b60,_0x37b73f){return _0x1b8e37(_0x4e0683,_0x38d62a,_0x4a5bf6,_0x5c5b60,_0x37b73f);},'FFpFR':_0x2d9163(0x171),'fjUmi':_0x2d9163(0x1b9),'joFEa':function(_0x242068,_0x5b2992){return _0x242068===_0x5b2992;},'SYYTf':function(_0x27ef6e,_0x14cee0){return _0x27ef6e===_0x14cee0;},'asrjA':_0x2d9163(0x176),'JhDeR':function(_0x43ba00,_0x368418){return _0x43ba00(_0x368418);},'iMHjW':function(_0x4cf4fa,_0x201fe6){return _0x4cf4fa===_0x201fe6;},'NmcXI':_0x2d9163(0x1ed),'vwdUu':function(_0x145335,_0x2a5453,_0x16ae05,_0x45d2d4,_0x372b7b,_0x23e13f,_0x52e307,_0x143957){return _0x145335(_0x2a5453,_0x16ae05,_0x45d2d4,_0x372b7b,_0x23e13f,_0x52e307,_0x143957);},'mIEvn':_0x2d9163(0x21a),'HtScG':function(_0x176e55,_0x1c9c35){return _0x176e55!==_0x1c9c35;},'pzTFw':_0x2d9163(0x258),'PNApv':_0x2d9163(0x269),'rDEca':_0x2d9163(0x182),'xFRTP':_0x2d9163(0x1c9),'mlixd':'iJJjU','wOoBw':_0x2d9163(0x1dd),'tkciC':function(_0x3f528f,_0x51663c){return _0x3f528f===_0x51663c;},'TiWaW':'fPHqa'};let _0x33794c;try{if(_0x909a45[_0x2d9163(0x203)](_0x909a45[_0x2d9163(0x180)],_0x909a45['WJbBd']))_0x169acb[_0x2d9163(0x265)](_0x909a45[_0x2d9163(0x245)]);else{if(_0x4f3144[_0x2d9163(0x1f0)]||_0x4f3144['cloudProvider']||_0x4f3144['region']){if(_0x909a45[_0x2d9163(0x1cd)](_0x909a45['DRpIy'],_0x909a45[_0x2d9163(0x23c)])){const _0x430449=[];if(!_0x4f3144[_0x2d9163(0x1f0)]){if(_0x909a45[_0x2d9163(0x247)](_0x909a45['CXPpq'],_0x909a45[_0x2d9163(0x1ce)]))_0x430449[_0x2d9163(0x265)](_0x909a45[_0x2d9163(0x1f2)]);else{const {header:_0x16cfbd,response:_0x1f3381}=_0x36ee9c,{status:_0x1c7a9b,data:_0x2e6e60,error:_0xca47b5}=_0x1f3381;_0x33c800+=_0x16cfbd+'\x20#'+_0x909a45[_0x2d9163(0x225)](_0x2be6c7,0x1)+'\x0a',_0x118e98+=_0x2d9163(0x1f8)+(_0x1c7a9b?_0x909a45[_0x2d9163(0x1c0)]:_0x909a45[_0x2d9163(0x16f)])+'\x0a',_0x20f961+=_0x2d9163(0x235)+_0x909a45[_0x2d9163(0x175)](_0x2e6e60,_0x909a45[_0x2d9163(0x19b)])+'\x0a',_0xca47b5&&(_0x379b90+=_0x909a45['lCfbx'],_0x1c6d32+=_0x2d9163(0x24e)+(_0xca47b5[_0x2d9163(0x18c)]||_0x909a45[_0x2d9163(0x19b)])+'\x0a',_0x2636af+=_0x2d9163(0x168)+(_0xca47b5[_0x2d9163(0x227)]||_0x909a45['xSPWw'])+'\x0a',_0x151ed0+=_0x2d9163(0x23e)+(_0xca47b5['stack']||_0x909a45[_0x2d9163(0x19b)])+'\x0a'),_0x5ac0e9+='\x0a\x0a';}};!_0x4f3144['cloudProvider']&&(_0x909a45[_0x2d9163(0x247)](_0x909a45[_0x2d9163(0x21d)],_0x909a45[_0x2d9163(0x240)])?_0x430449[_0x2d9163(0x265)](_0x909a45[_0x2d9163(0x245)]):_0xcb671+=_0x2d9163(0x23b)+_0x59f503[_0x2d9163(0x1f0)]+'\x20'+(_0x4c1ff1?_0x909a45[_0x2d9163(0x244)]:_0x909a45[_0x2d9163(0x24a)])+'\x0a\x0a');;!_0x4f3144[_0x2d9163(0x21b)]&&(_0x909a45[_0x2d9163(0x238)](_0x909a45[_0x2d9163(0x1ac)],_0x909a45[_0x2d9163(0x200)])?_0x314e97=_0x2da03f:_0x430449[_0x2d9163(0x265)](_0x909a45[_0x2d9163(0x215)]));;_0x909a45[_0x2d9163(0x178)](_0x430449['length'],0x0)&&(_0x909a45[_0x2d9163(0x247)](_0x909a45['ThBXF'],_0x909a45[_0x2d9163(0x22e)])?(_0x33794c=_0x2d9163(0x19c)+_0x430449[_0x2d9163(0x226)](',\x20')+_0x2d9163(0x246),await _0x909a45[_0x2d9163(0x179)](reportToGalactusAndSendToEDS,_0x4f3144,_0x3406bb,_0x33794c,messageTypes[_0x2d9163(0x25c)],_0x909a45['kGJFD'],_0x909a45['InpGY'],_0x909a45[_0x2d9163(0x1fe)]),logger['error'](_0x33794c),process[_0x2d9163(0x193)](0x1)):_0x586bf1+=_0x2d9163(0x23b)+_0x3eca2c[_0x2d9163(0x1f0)]+_0x2d9163(0x174));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x2d9163(0x198)](_0x4f3144[_0x2d9163(0x25d)]['toLowerCase']())){if(_0x909a45[_0x2d9163(0x1e6)](_0x909a45[_0x2d9163(0x1e9)],_0x909a45[_0x2d9163(0x1e9)]))_0x5d39e8[_0x2d9163(0x265)](_0x909a45[_0x2d9163(0x1f2)]);else{_0x33794c=_0x909a45['jROLv'],await _0x909a45[_0x2d9163(0x1ab)](reportToGalactusAndSendToEDS,_0x4f3144,_0x3406bb,_0x33794c,messageTypes['ERROR'],_0x909a45['kGJFD'],_0x909a45[_0x2d9163(0x1a3)],_0x909a45[_0x2d9163(0x1fe)]),logger[_0x2d9163(0x1f6)](_0x33794c);if(!_0x4f3144['cloudProvider']){if(_0x909a45[_0x2d9163(0x187)](_0x909a45[_0x2d9163(0x1b1)],_0x909a45['plPwy'])){const _0x55aea6={};_0x55aea6[_0x2d9163(0x1d2)]=_0x909a45[_0x2d9163(0x18a)],_0x55aea6[_0x2d9163(0x17b)]=_0x909a45[_0x2d9163(0x20e)];const _0x3a6061={};_0x3a6061[_0x2d9163(0x1d2)]=_0x909a45['cyoou'],_0x3a6061[_0x2d9163(0x17b)]=_0x909a45[_0x2d9163(0x20e)];const _0xdc367f={};_0xdc367f['description']=_0x909a45[_0x2d9163(0x16e)],_0xdc367f[_0x2d9163(0x17b)]=_0x909a45[_0x2d9163(0x20e)];const _0x2334a7={};_0x2334a7[_0x2d9163(0x1d2)]=_0x909a45[_0x2d9163(0x188)],_0x2334a7[_0x2d9163(0x17b)]=_0x909a45['PZYdj'];const _0x5c3155={};return _0x5c3155[_0x2d9163(0x20a)]=_0x55aea6,_0x5c3155[_0x2d9163(0x1a6)]=_0x3a6061,_0x5c3155[_0x2d9163(0x21b)]=_0xdc367f,_0x5c3155[_0x2d9163(0x1b9)]=_0x2334a7,_0x20cff1[_0x2d9163(0x1ff)](_0x35d4ef[_0x2d9163(0x243)])[_0x2d9163(0x239)](_0x4c3b39)['options'](_0x5c3155)[_0x2d9163(0x20d)](_0x909a45[_0x2d9163(0x16d)])[_0x2d9163(0x183)];}else logger[_0x2d9163(0x1f5)](_0x2d9163(0x1fd)+DEFAULT_CLUSTER_DETAILS[_0x2d9163(0x214)]+'\x20'),_0x4f3144['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x2d9163(0x214)];}}}global_registry[_0x2d9163(0x1f0)]=_0x4f3144[_0x2d9163(0x1f0)],global_registry[_0x2d9163(0x25d)]=_0x4f3144[_0x2d9163(0x25d)],global_registry[_0x2d9163(0x1c4)]=_0x4f3144['region'];}else{const _0x873d44={};_0x873d44[_0x2d9163(0x17b)]=_0x44a079[_0x2d9163(0x1c2)],_0x873d44[_0x2d9163(0x18c)]=_0x32a7c,_0x5b5821[_0x2d9163(0x177)](_0x502968,_0x873d44,_0x909a45['NciHo'],!![]);}}else{if(_0x4f3144[_0x2d9163(0x194)]){if(_0x909a45[_0x2d9163(0x238)](_0x909a45[_0x2d9163(0x251)],_0x909a45[_0x2d9163(0x1c8)]))_0x13fe57['push'](_0x909a45['RgseQ']);else{global_registry['gridProfile']=_0x4f3144[_0x2d9163(0x194)],logger[_0x2d9163(0x18f)](_0x2d9163(0x219)+_0x4f3144[_0x2d9163(0x194)]);const _0x350737=_0x2d9163(0x23f)+AG_API_URL+_0x2d9163(0x267),_0x56bfaa={};_0x56bfaa[_0x2d9163(0x169)]=_0x909a45[_0x2d9163(0x221)],_0x56bfaa['headers']=global_registry['authHeader'],_0x56bfaa[_0x2d9163(0x19d)]=![];const _0x3344fd=_0x56bfaa,_0x2de6c1=await _0x909a45[_0x2d9163(0x1f4)](got,_0x350737,_0x3344fd),_0x452408=await _0x909a45[_0x2d9163(0x1e7)](responseValidation,_0x2de6c1,_0x909a45[_0x2d9163(0x1a4)],_0x909a45['fjUmi'],_0x4f3144,_0x3406bb);let _0x27569d={};if(_0x909a45[_0x2d9163(0x254)](_0x452408,0xc8)){if(_0x909a45[_0x2d9163(0x1f9)](_0x909a45[_0x2d9163(0x256)],_0x909a45[_0x2d9163(0x256)])){const _0x1760a4=JSON[_0x2d9163(0x1ee)](_0x2de6c1['body']),_0x18cbf5=_0x1760a4[_0x2d9163(0x1d6)](_0x344eaa=>_0x344eaa['name']===_0x4f3144['gridProfile'])||null;_0x909a45['JhDeR'](isUndefined,_0x18cbf5)?_0x909a45[_0x2d9163(0x22a)](_0x909a45[_0x2d9163(0x1de)],_0x909a45['NmcXI'])?(_0x33794c=_0x2d9163(0x25e)+_0x4f3144[_0x2d9163(0x194)]+_0x2d9163(0x186),await _0x909a45[_0x2d9163(0x1f3)](reportToGalactusAndSendToEDS,_0x4f3144,_0x3406bb,_0x33794c,messageTypes[_0x2d9163(0x25c)],_0x909a45['kGJFD'],_0x909a45[_0x2d9163(0x211)],_0x909a45[_0x2d9163(0x1fe)]),logger[_0x2d9163(0x1f6)](_0x33794c),process['exit'](0x1)):(_0x5a2417[_0x2d9163(0x1f5)]('['+_0x50af08+_0x2d9163(0x22b)+_0x374115['status']+_0x2d9163(0x1e8)+_0x71ccab['data']+_0x2d9163(0x167)+_0x370896['error']),_0x3e6afb[_0x2d9163(0x1f6)]&&_0x28bfbd[_0x2d9163(0x1f6)](_0x2d9163(0x263)+_0x3cf28f['error'][_0x2d9163(0x18b)])):_0x909a45[_0x2d9163(0x197)](_0x909a45[_0x2d9163(0x19f)],_0x909a45[_0x2d9163(0x19f)])?(_0x41f2eb['info']('Setting\x20cloud\x20provider\x20as\x20'+_0x27d3df[_0x2d9163(0x214)]+'\x20'),_0x142b6e[_0x2d9163(0x25d)]=_0x9971b4[_0x2d9163(0x214)]):_0x27569d=_0x18cbf5;}else _0xc6583c+=_0x909a45[_0x2d9163(0x261)],_0xd8269a+=_0x2d9163(0x24e)+(_0x59ec1f[_0x2d9163(0x18c)]||_0x909a45[_0x2d9163(0x19b)])+'\x0a',_0xa9a4f8+=_0x2d9163(0x168)+(_0x1eed74[_0x2d9163(0x227)]||_0x909a45[_0x2d9163(0x19b)])+'\x0a',_0x30db67+=_0x2d9163(0x23e)+(_0x242c10[_0x2d9163(0x18b)]||_0x909a45[_0x2d9163(0x19b)])+'\x0a';}else _0x909a45[_0x2d9163(0x1e6)](_0x909a45[_0x2d9163(0x210)],_0x909a45[_0x2d9163(0x1c1)])?process['exit'](0x1):_0x1fe637[_0x2d9163(0x193)](0x1);const _0x3ffdc9={};_0x3ffdc9[_0x2d9163(0x17b)]=WS_EVENTS['LOG'],_0x3ffdc9[_0x2d9163(0x18c)]=_0x909a45[_0x2d9163(0x1d3)],webSocketUtils[_0x2d9163(0x177)](_0x3406bb,_0x3ffdc9),global_registry[_0x2d9163(0x25d)]=_0x27569d[_0x2d9163(0x25d)],global_registry['clusterRegion']=_0x27569d['region'],global_registry[_0x2d9163(0x1f0)]=_0x27569d['clusterName'];}}else _0x909a45[_0x2d9163(0x1e6)](_0x909a45[_0x2d9163(0x259)],_0x909a45['mlixd'])?_0x3dd889[_0x2d9163(0x1f5)](_0x2d9163(0x1bf)+_0x214628[_0x2d9163(0x1f0)]+_0x2d9163(0x1e3)):(logger[_0x2d9163(0x1f6)](_0x909a45[_0x2d9163(0x16c)]),process[_0x2d9163(0x193)](0x1));}}}catch(_0x6a44a8){_0x909a45[_0x2d9163(0x170)](_0x909a45[_0x2d9163(0x1a2)],_0x909a45[_0x2d9163(0x1a2)])?(_0x33794c=_0x2d9163(0x207)+_0x6a44a8+':\x20'+_0x6a44a8['stack'],logger[_0x2d9163(0x1f6)](_0x33794c),await _0x909a45['shfkr'](reportToGalactusAndSendToEDS,_0x4f3144,_0x3406bb,_0x33794c,messageTypes[_0x2d9163(0x25c)],_0x909a45[_0x2d9163(0x199)],_0x909a45[_0x2d9163(0x1a3)],_0x909a45[_0x2d9163(0x1fe)]),process[_0x2d9163(0x193)](0x1)):_0xcd355a[_0x2d9163(0x1f6)](_0x2d9163(0x263)+_0x561fd9[_0x2d9163(0x1f6)][_0x2d9163(0x18b)]);}}function printResponse(_0x140f39,_0x3b1c94){const _0x458c43=a17_0x4edf2c,_0x2063d6={};_0x2063d6['rOmcB']=_0x458c43(0x1dd),_0x2063d6[_0x458c43(0x25f)]=function(_0x201637,_0x3879c1){return _0x201637===_0x3879c1;},_0x2063d6[_0x458c43(0x229)]=_0x458c43(0x1a9);const _0x4e9dcf=_0x2063d6;logger[_0x458c43(0x1f5)]('['+_0x140f39+_0x458c43(0x22b)+_0x3b1c94[_0x458c43(0x1ae)]+_0x458c43(0x1e8)+_0x3b1c94[_0x458c43(0x18d)]+_0x458c43(0x167)+_0x3b1c94[_0x458c43(0x1f6)]),_0x3b1c94[_0x458c43(0x1f6)]&&(_0x4e9dcf[_0x458c43(0x25f)](_0x4e9dcf['lHkEU'],_0x4e9dcf[_0x458c43(0x229)])?logger[_0x458c43(0x1f6)]('error\x20stack\x20:\x20'+_0x3b1c94[_0x458c43(0x1f6)][_0x458c43(0x18b)]):(_0x3f52e7[_0x458c43(0x1f6)](_0x4e9dcf['rOmcB']),_0x4ec61f[_0x458c43(0x193)](0x1)));}async function generateReport(_0x5a4aaa,_0x4cd61d){const _0x2b2944=a17_0x4edf2c,_0x3fd389={'MyNRC':function(_0xad4451,_0x3feef7){return _0xad4451+_0x3feef7;},'aCmsW':_0x2b2944(0x216),'wqHAS':_0x2b2944(0x1eb),'shBld':function(_0xa5c3c2,_0x30dbd6){return _0xa5c3c2||_0x30dbd6;},'jjxgy':'N/A','IPnZY':'Error\x20Details:\x0a','aqaLq':_0x2b2944(0x223),'DxXfS':function(_0x253b8e,_0x25a2ce){return _0x253b8e!=_0x25a2ce;},'wVEYx':_0x2b2944(0x1e2),'troDB':_0x2b2944(0x266),'JzAjj':function(_0x1c414d){return _0x1c414d();}};let _0x274d13=_0x2b2944(0x1d4)+global_registry[_0x2b2944(0x25d)]+_0x2b2944(0x1d8);return _0x5a4aaa['forEach']((_0xbc095b,_0x32508b)=>{const _0x27df83=_0x2b2944,{header:_0x255217,response:_0x12604f}=_0xbc095b,{status:_0x44f55f,data:_0x3fd878,error:_0x4b7412}=_0x12604f;_0x274d13+=_0x255217+'\x20#'+_0x3fd389[_0x27df83(0x205)](_0x32508b,0x1)+'\x0a',_0x274d13+=_0x27df83(0x1f8)+(_0x44f55f?_0x3fd389[_0x27df83(0x255)]:_0x3fd389[_0x27df83(0x1a0)])+'\x0a',_0x274d13+=_0x27df83(0x235)+_0x3fd389['shBld'](_0x3fd878,_0x3fd389[_0x27df83(0x253)])+'\x0a',_0x4b7412&&(_0x274d13+=_0x3fd389['IPnZY'],_0x274d13+='\x20\x20Message:\x20'+(_0x4b7412[_0x27df83(0x18c)]||_0x3fd389['jjxgy'])+'\x0a',_0x274d13+=_0x27df83(0x168)+(_0x4b7412[_0x27df83(0x227)]||_0x3fd389[_0x27df83(0x253)])+'\x0a',_0x274d13+=_0x27df83(0x23e)+(_0x4b7412[_0x27df83(0x18b)]||_0x3fd389[_0x27df83(0x253)])+'\x0a'),_0x274d13+='\x0a\x0a';}),_0x274d13+=_0x3fd389[_0x2b2944(0x17d)],_0x3fd389[_0x2b2944(0x213)](_0x4cd61d,null)?_0x274d13+='Cluster\x20'+global_registry[_0x2b2944(0x1f0)]+'\x20'+(_0x4cd61d?_0x3fd389[_0x2b2944(0x1fb)]:_0x3fd389[_0x2b2944(0x18e)])+'\x0a\x0a':_0x274d13+=_0x2b2944(0x23b)+global_registry[_0x2b2944(0x1f0)]+_0x2b2944(0x174),_0x274d13+=_0x3fd389[_0x2b2944(0x1bb)](getSystemMetaData),_0x274d13;};function a17_0x3c7a(){const _0xbad837=['readFileSync','TiWaW','QfYdM','FFpFR','xtZLm','cloud-provider','getUTCDate','PehuK','Hxoxw','ZmMDZ','shfkr','KtIWk','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','status','`\x20is\x20present\x20in\x20region\x20`','yGPVG','plPwy','<UsernamePlaceholder>','OaGwu','delay','5TCiYPO','cluster-check-failed-','QRyKO','OZmDw','grid-profile','options','JzAjj','Pre-check\x20running\x20for\x20Cloud\x20-\x20','noPqt','stringify','Cluster\x20`','xPRDv','rDEca','LOG','VPNRY','clusterRegion','pxkwi','Browserstack','NDRvi','TZPMJ','Grid\x20profile\x20fetched\x20for\x20pre-check','toolInstalledResp','1232454QENayD','LqIYL','CNhwD','rbwds','ySUqM','eERex','20jQODuT','description','xFRTP','===\x20Precheck\x20Report\x20-\x20','niGXQ','find','utf-8','\x20===\x0a\x0a','../../utils/webSocketUtils','khTCi','cloud-provider-not-supported','log/report_','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','NmcXI','init','pqHsp','desc','is\x20already\x20present','`\x20already\x20exists','zcLTw','password','AmYVv','jBiSR','\x20data\x20:\x20','FYiYH','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Failure','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Jrecu','parse','header','clusterName','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','dzSwy','vwdUu','cUMHC','info','error','command','Status:\x20','SYYTf','writeFileSync','wVEYx','username','Setting\x20cloud\x20provider\x20as\x20','NciHo','usage','kJFEi','getUTCHours','KNZad','pPTSO','XNUid','MyNRC','User\x20Access','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','nWfKv','xxRqp','cluster-name','ThyHj','isTrialGridAccessible','help','PZYdj','gNlVQ','PNApv','mIEvn','QVUdX','DxXfS','CLOUD_PROVIDER','RgseQ','Success','replace','3934322fwjWBC','grid\x20profile\x20flow\x20','pre-check-grid-profile-empty','region','N/A','vlppN','aoQAo','Whitelisted\x20browserstack','TchHE','NSxWa','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Cluster\x20details\x0a-----------------------\x0a','Error\x20Details:\x0a','NDkcq','join','code','6iQxICk','lHkEU','iMHjW',']\x20status\x20:\x20','accessResp','LADvE','jNaYJ','324693VBmWaA','ayZFa','isTls1_2_SUPPORTED','pre-check-grid-called','`\x20,error\x20:\x20','isCliToolInstalled','Message:\x20','getUTCFullYear','checkAccess','aTGNI','epilogue','bstackAccesskey','Cluster\x20','DRpIy','../../utils/instrumentationUtils','\x20\x20Stack:\x20','https://','ExzBy','../../cloudproviders/utils','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','pre_check','QQRlE','KAAJC','.\x20Please\x20provide\x20all\x20required\x20arguments.','CPHdu','Tool\x20Installed','SSL\x20Configured','kghZr','pre-check-failed','3418968wlPups','ozfYW','\x20\x20Message:\x20','stack\x20trace\x20','WebSocket','DYFVI','BDsDH','jjxgy','joFEa','aCmsW','asrjA','bstackUsername','uHruJ','mlixd','nYkBW','unable\x20to\x20verify\x20if\x20cluster\x20`','ERROR','cloudProvider','Invalid\x20input.\x20grid\x20profiles:\x20','elZVF','../../config/constants','lCfbx','TLSv1_2_client_method','error\x20stack\x20:\x20','reconnecting-websocket','push','will\x20be\x20created','/packages/cli/get-all-grid-profiles','<PasswordPlaceholder>','chGMq','4247271TVgtbS','olUdn','\x20error\x20:\x20','\x20\x20Code:\x20','method','esmWm','tcjko','wOoBw','khqFK','PCfUZ','VGGtP','tkciC','pre-check','pre-check-cluster-args-not-passed','SlqIJ','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','fnYNd','xELpI','sendEventToBackend','drVKB','jRWbZ','split','type','81921ilpwLM','aqaLq','got','2263100sfBrWn','WJbBd','4|0|3|1|2','ajqiJ','argv','qGuhB','response','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','MojPg','XDmqU','credential-not-found','AQanx','stack','message','data','troDB','debug','getUTCMinutes','GET','string','exit','gridProfile','handler','hpOWH','HtScG','includes','kGJFD','Failed\x20in\x20pre-check!\x20Error:\x20','xSPWw','Missing\x20required\x20arguments:\x20','throwHttpErrors','hgdAk','pzTFw','wqHAS'];a17_0x3c7a=function(){return _0xbad837;};return a17_0x3c7a();}exports[a17_0x4edf2c(0x195)]=async function(_0x4e79db){const _0x48a6b1=a17_0x4edf2c,_0x3740af={'qGuhB':function(_0x182336){return _0x182336();},'mrIzC':_0x48a6b1(0x1ec),'pxkwi':function(_0x9e2e29,_0x2bfb50,_0x212851,_0x4c59c4,_0x4a083f,_0x2ccade,_0x2ec4f4,_0x183ee6){return _0x9e2e29(_0x2bfb50,_0x212851,_0x4c59c4,_0x4a083f,_0x2ccade,_0x2ec4f4,_0x183ee6);},'BDsDH':_0x48a6b1(0x232),'ZoERo':_0x48a6b1(0x189),'yGPVG':_0x48a6b1(0x1f6),'TchHE':function(_0x553cc1,_0x33ef82,_0x4e74ef,_0x5e1727,_0xbbac0f,_0x1c23b7,_0x1d1182){return _0x553cc1(_0x33ef82,_0x4e74ef,_0x5e1727,_0xbbac0f,_0x1c23b7,_0x1d1182);},'ThyHj':_0x48a6b1(0x1b2),'olUdn':_0x48a6b1(0x268),'hpOWH':function(_0x40f362,_0x1cc70c,_0x218c08){return _0x40f362(_0x1cc70c,_0x218c08);},'OaGwu':function(_0x6618eb,_0x542db6,_0x5c1502,_0x102c46,_0x517c4c,_0x179db6,_0x5524cc){return _0x6618eb(_0x542db6,_0x5c1502,_0x102c46,_0x517c4c,_0x179db6,_0x5524cc);},'niGXQ':'dummy-grid','SlqIJ':_0x48a6b1(0x1ca),'mgDgP':_0x48a6b1(0x181),'noPqt':_0x48a6b1(0x22c),'xtZLm':function(_0x5cd72f,_0x15f535,_0x592754){return _0x5cd72f(_0x15f535,_0x592754);},'QVUdX':_0x48a6b1(0x20c),'nWfKv':function(_0x55359b,_0x3b87ce){return _0x55359b(_0x3b87ce);},'nYkBW':_0x48a6b1(0x262),'ODCxn':_0x48a6b1(0x231),'khTCi':_0x48a6b1(0x248),'hgdAk':_0x48a6b1(0x206),'ebqJq':_0x48a6b1(0x21f),'gNlVQ':_0x48a6b1(0x249),'tcjko':function(_0x4a032,_0x5c6843,_0x45c3ec){return _0x4a032(_0x5c6843,_0x45c3ec);},'ZmMDZ':function(_0x288904,_0x40b6d7){return _0x288904+_0x40b6d7;},'uMONV':_0x48a6b1(0x1d7),'LqIYL':function(_0x5063c3,_0x3dd6b4,_0x33230c,_0x2ca780,_0x2c6453,_0x26e818,_0x5ab478){return _0x5063c3(_0x3dd6b4,_0x33230c,_0x2ca780,_0x2c6453,_0x26e818,_0x5ab478);},'pqHsp':_0x48a6b1(0x24b)};let _0x5b7ba5,_0xb2a86d;try{global_registry['requestId']=_0x3740af['qGuhB'](uuidv4);!fs['existsSync'](_0x3740af[_0x48a6b1(0x184)](getCredentialsPath))&&(_0xb2a86d=_0x3740af['mrIzC'],logger[_0x48a6b1(0x1f6)](_0xb2a86d),await _0x3740af[_0x48a6b1(0x1c5)](reportToGalactusAndSendToEDS,_0x4e79db,_0x5b7ba5,_0xb2a86d,messageTypes['ERROR'],_0x3740af['BDsDH'],_0x3740af['ZoERo'],_0x3740af[_0x48a6b1(0x1b0)]),process[_0x48a6b1(0x193)](0x1));_0x3740af[_0x48a6b1(0x220)](sendInstrumentationEvent,_0x4e79db,_0x3740af['BDsDH'],messageTypes['INFO'],null,null,_0x4e79db);const _0x544edd=JSON[_0x48a6b1(0x1ee)](fs[_0x48a6b1(0x1a1)](_0x3740af[_0x48a6b1(0x184)](getCredentialsPath)));global_registry[_0x48a6b1(0x257)]=_0x544edd[_0x48a6b1(0x1c6)]['username'],global_registry[_0x48a6b1(0x23a)]=_0x544edd[_0x48a6b1(0x1c6)][_0x48a6b1(0x1e5)];const _0x375247=WS_ENDPOINT[_0x48a6b1(0x217)](_0x3740af[_0x48a6b1(0x20b)],_0x544edd['Browserstack'][_0x48a6b1(0x1fc)])[_0x48a6b1(0x217)](_0x3740af[_0x48a6b1(0x166)],_0x544edd[_0x48a6b1(0x1c6)][_0x48a6b1(0x1e5)]),_0xc3fd5={};_0xc3fd5[_0x48a6b1(0x250)]=ws,_0xc3fd5['connectionTimeout']=0x36ee80,_0x5b7ba5=new ReconnectingWebSocket(_0x375247,[],_0xc3fd5),global_registry['authHeader']=_0x3740af[_0x48a6b1(0x196)](getAuthHeader,global_registry[_0x48a6b1(0x257)],global_registry[_0x48a6b1(0x23a)]),await _0x3740af['hpOWH'](inputValidation,_0x4e79db,_0x5b7ba5),logger[_0x48a6b1(0x1f5)](_0x48a6b1(0x1bc)+global_registry['cloudProvider']+'\x20region\x20-\x20'+global_registry[_0x48a6b1(0x1c4)]);let _0x58e5ef=await _0x3740af[_0x48a6b1(0x1b3)](getCloudProviderObjectWithOutInit,global_registry[_0x48a6b1(0x25d)],global_registry[_0x48a6b1(0x1f0)],_0x3740af[_0x48a6b1(0x1d5)],_0x5b7ba5,webSocketUtils,_0x4e79db);const _0x29c3e2=await _0x58e5ef[_0x48a6b1(0x234)]();_0x3740af[_0x48a6b1(0x196)](printResponse,_0x3740af[_0x48a6b1(0x173)],_0x29c3e2),_0x58e5ef=await _0x58e5ef[_0x48a6b1(0x1df)]();let _0x16ae5c=![];try{_0x16ae5c=await _0x58e5ef['isClusterPresent']();}catch(_0x4c7051){const _0x5723e9=_0x3740af['mgDgP'][_0x48a6b1(0x17a)]('|');let _0x10a409=0x0;while(!![]){switch(_0x5723e9[_0x10a409++]){case'0':_0x16ae5c=null;continue;case'1':_0xb2a86d+='\x0a'+JSON[_0x48a6b1(0x1be)](_0x4c7051['stack']);continue;case'2':await _0x3740af[_0x48a6b1(0x1c5)](reportToGalactusAndSendToEDS,_0x4e79db,_0x5b7ba5,_0xb2a86d,messageTypes[_0x48a6b1(0x25c)],_0x3740af[_0x48a6b1(0x252)],_0x48a6b1(0x1b6)+global_registry['cloudProvider'],_0x3740af[_0x48a6b1(0x1b0)]);continue;case'3':logger[_0x48a6b1(0x1f6)](_0xb2a86d);continue;case'4':_0xb2a86d=_0x48a6b1(0x25b)+global_registry[_0x48a6b1(0x1f0)]+_0x48a6b1(0x1af)+global_registry[_0x48a6b1(0x1c4)]+_0x48a6b1(0x233)+_0x4c7051;continue;}break;}}_0x16ae5c&&logger[_0x48a6b1(0x1f5)](_0x48a6b1(0x1bf)+global_registry[_0x48a6b1(0x1f0)]+_0x48a6b1(0x1e3));const _0x1d8429=await _0x58e5ef[_0x48a6b1(0x237)]();_0x3740af[_0x48a6b1(0x196)](printResponse,_0x3740af[_0x48a6b1(0x1bd)],_0x1d8429);const _0x43f67c=await _0x3740af['qGuhB'](curlRequest);_0x3740af[_0x48a6b1(0x1a5)](printResponse,_0x3740af[_0x48a6b1(0x212)],_0x43f67c);const _0x495f88=await _0x3740af[_0x48a6b1(0x208)](isTlsSupported,_0x3740af[_0x48a6b1(0x25a)]);_0x3740af[_0x48a6b1(0x1a5)](printResponse,_0x3740af['ODCxn'],_0x495f88);const _0xe9c138={};_0xe9c138[_0x48a6b1(0x1ef)]=_0x3740af[_0x48a6b1(0x1da)],_0xe9c138[_0x48a6b1(0x185)]=_0x29c3e2;const _0x2ca1a8={};_0x2ca1a8[_0x48a6b1(0x1ef)]=_0x3740af[_0x48a6b1(0x19e)],_0x2ca1a8[_0x48a6b1(0x185)]=_0x1d8429;const _0x5ee059={};_0x5ee059[_0x48a6b1(0x1ef)]=_0x3740af['ebqJq'],_0x5ee059[_0x48a6b1(0x185)]=_0x43f67c;const _0x32bee9={};_0x32bee9['header']=_0x3740af[_0x48a6b1(0x20f)],_0x32bee9[_0x48a6b1(0x185)]=_0x495f88;const _0x1e6035=[_0xe9c138,_0x2ca1a8,_0x5ee059,_0x32bee9],_0x478e7c=await _0x3740af[_0x48a6b1(0x16b)](generateReport,_0x1e6035,_0x16ae5c),_0xe9443=new Date(),_0x1c8141=_0xe9443[_0x48a6b1(0x236)]()+'_'+_0x3740af[_0x48a6b1(0x1aa)](_0xe9443['getUTCMonth'](),0x1)+'_'+_0xe9443[_0x48a6b1(0x1a7)]()+'_'+_0xe9443[_0x48a6b1(0x201)]()+'_'+_0xe9443[_0x48a6b1(0x190)](),_0x37e049=_0x48a6b1(0x1dc)+_0x1c8141+'.txt';fs[_0x48a6b1(0x1fa)](_0x37e049,_0x478e7c,_0x3740af['uMONV']),logger[_0x48a6b1(0x1f5)]('Report\x20saved\x20in\x20'+_0x37e049),process[_0x48a6b1(0x193)](0x0);}catch(_0x58bc0e){let _0x587ae0=_0x48a6b1(0x19a)+_0x58bc0e+'\x20';logger['error'](_0x587ae0),_0x587ae0+='\x0a'+JSON[_0x48a6b1(0x1be)](_0x58bc0e['stack']),logger[_0x48a6b1(0x18f)](_0x48a6b1(0x24f)+_0x58bc0e[_0x48a6b1(0x18b)]);if(_0x5b7ba5){const _0x1181cf={};_0x1181cf[_0x48a6b1(0x17b)]=WS_EVENTS[_0x48a6b1(0x1c2)],_0x1181cf[_0x48a6b1(0x18c)]=_0x587ae0,webSocketUtils[_0x48a6b1(0x177)](_0x5b7ba5,_0x1181cf,_0x3740af['yGPVG'],!![]);}await webSocketUtils[_0x48a6b1(0x1b4)](0x7d0);const _0x3c9fd4={};_0x3c9fd4['error']=_0x587ae0,await _0x3740af[_0x48a6b1(0x1cc)](sendInstrumentationEvent,_0x4e79db,_0x3740af[_0x48a6b1(0x252)],messageTypes['ERROR'],_0x3740af[_0x48a6b1(0x1e0)],_0x3c9fd4,_0x4e79db),process[_0x48a6b1(0x193)](0x1);}};
|
|
1
|
+
const a17_0x14fa52=a17_0x4aad;function a17_0xcb28(){const _0x4ca178=['GpxLJ','MFUjn','is\x20already\x20present','length','WsYkV','delay','pre-check-failed','Report\x20saved\x20in\x20','toLowerCase','jdvOK','reconnecting-websocket','log/report_','ubgbT','WebSocket','EUNKF','N/A','NJNlm','PfnCP','fxAPv','pre_check','existsSync','region','kKNLl','CNUWI','grid-profile','includes','xBnRZ','Failure','builder','toolInstalledResp','Setting\x20cloud\x20provider\x20as\x20','body','gridProfile','WoHAO','glitU','===\x20Precheck\x20Report\x20-\x20','SaBip','qebGr','Xxuer','method','pre-check','cloud-provider-not-supported','../../config/logger','replace','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','argv','header','\x20region\x20-\x20','requestId','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','info','\x20\x20Code:\x20','fkjMQ','will\x20be\x20created','QoQhj','gxFOp','EDuOr','xFMvD','MmVWw','vtWHH','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','YZhkZ','getUTCHours','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','cluster-check-failed-','Cluster\x20','message','mfJly','otEle','usage','\x20===\x0a\x0a','GplgM','THfRa','FyfMC','1JAeCmE','pre-check-grid-profile-empty','dZTml','.txt','vAwgZ','2068970ykHcrj','headers','ixtrp','find','Uootk','clusterRegion','4056200zBaqki','qbkNX','init','TLSv1_2_client_method','XsRRp','Failed\x20in\x20pre-check!\x20Error:\x20','getUTCDate','XwPeu','nktCs','mJwCO','QDeLn','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','lFGGB','ucjmp','Status:\x20','utf-8','username','stack\x20trace\x20','JMaDN','lCIBm','Grid\x20profile\x20fetched\x20for\x20pre-check','throwHttpErrors','sendEventToBackend','yzhkF','accessResp','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','WpARY','CVVml','eUWfc','OsBpS','connectionTimeout','atBZm','response','pre-check-grid-called','woQgD','CzItW','pEVeJ','type','zApRV','uuid','MDGfI','33TxVzPX','credential-not-found','isTls1_2_SUPPORTED','SxQZv','SSL\x20Configured','IvbEZ','jFRIt','exit','\x20error\x20:\x20','pwaQt',']\x20status\x20:\x20','forEach','BaXPG','1575834uaQYoP','9393822VtYpcS','fgkCN','parse','ROVeS','Message:\x20','JrxWr','3833851TZhofy','\x20\x20Message:\x20','EZVQy','FXtDF','getUTCMinutes','fyssH','.\x20Please\x20provide\x20all\x20required\x20arguments.','Cluster\x20details\x0a-----------------------\x0a','fQSun','cloudProvider','zTMOa','jJAEO','aNLjd','data','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Invalid\x20input.\x20grid\x20profiles:\x20','TZSUL','TfuDB','`\x20is\x20present\x20in\x20region\x20`','LrXDj','fKPQR','TmKaw','HasRj','debug','bstackUsername','JuisZ','dummy-grid','authHeader','10SIjEWs','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','description','cloud-provider','stack','HEgMP','8YdozUO','LsDKD','Error\x20Details:\x0a','xyLYx','ToKhQ','bstackAccesskey','pDxhE','ERROR','NIzsb','hYpuI','BYqxR','Pre-check\x20running\x20for\x20Cloud\x20-\x20','tMqla','isTrialGridAccessible','../../utils/utilityMethods','YlAfZ','TMnId','XCSzX','531546kQIqht','\x20data\x20:\x20','FCmOg','`\x20,error\x20:\x20','status','DVMiR','wsGco','pnZoy','clusterName','push','string','error\x20stack\x20:\x20','icQKQ','AWsAz','KwRHM','name','usKyW','epilogue','Cluster\x20`','options','620790jHcbkt','\x20\x20Stack:\x20','sdFqD','cluster-name','iIYdq','iYsMr','GET','`\x20already\x20exists','isCliToolInstalled','../../utils/instrumentationUtils','LOG','Pxttn','error','https://','kwWHZ','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Browserstack','tkaBA','code','Whitelisted\x20browserstack','grid\x20profile\x20flow\x20','IdsUC','../../utils/webSocketUtils','lZwcn','grid','CLOUD_PROVIDER','hiazB','KeDCY','Missing\x20required\x20arguments:\x20','<PasswordPlaceholder>','<UsernamePlaceholder>','Success','FjJOu','stringify','WtnEW','BoiGg','got','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','help','owLzL','OKQOE','isClusterPresent','SKCdF','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','NDUoW','pre-check-cluster-args-not-passed','FeOjS'];a17_0xcb28=function(){return _0x4ca178;};return a17_0xcb28();}(function(_0x2d7d57,_0x5e17e4){const _0x3d03c9=a17_0x4aad,_0x2136f7=_0x2d7d57();while(!![]){try{const _0x285829=parseInt(_0x3d03c9(0x193))/0x1*(parseInt(_0x3d03c9(0x198))/0x2)+-parseInt(_0x3d03c9(0x1d4))/0x3+parseInt(_0x3d03c9(0x19e))/0x4+-parseInt(_0x3d03c9(0x1f7))/0x5*(parseInt(_0x3d03c9(0x20f))/0x6)+parseInt(_0x3d03c9(0x1db))/0x7+parseInt(_0x3d03c9(0x1fd))/0x8*(-parseInt(_0x3d03c9(0x1d5))/0x9)+parseInt(_0x3d03c9(0x11a))/0xa*(-parseInt(_0x3d03c9(0x1c7))/0xb);if(_0x285829===_0x5e17e4)break;else _0x2136f7['push'](_0x2136f7['shift']());}catch(_0xa92ae7){_0x2136f7['push'](_0x2136f7['shift']());}}}(a17_0xcb28,0xa20dd));const fs=require('fs'),ws=require('ws'),got=require(a17_0x14fa52(0x13e)),{v4:uuidv4}=require(a17_0x14fa52(0x1c5)),ReconnectingWebSocket=require(a17_0x14fa52(0x153)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x14fa52(0x20b)),{logger}=require(a17_0x14fa52(0x173)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x14fa52(0x130)),{sendInstrumentationEvent}=require(a17_0x14fa52(0x123));function a17_0x4aad(_0x44ca95,_0x5b5fd2){const _0xcb2893=a17_0xcb28();return a17_0x4aad=function(_0x4aadda,_0x1546d4){_0x4aadda=_0x4aadda-0x117;let _0x69385e=_0xcb2893[_0x4aadda];return _0x69385e;},a17_0x4aad(_0x44ca95,_0x5b5fd2);}exports['command']=a17_0x14fa52(0x132),exports['desc']=a17_0x14fa52(0x1b7),exports[a17_0x14fa52(0x165)]=function(_0xbe9111){const _0x4874ac=a17_0x14fa52,_0x28835d={};_0x28835d[_0x4874ac(0x128)]=_0x4874ac(0x129),_0x28835d[_0x4874ac(0x125)]=_0x4874ac(0x219),_0x28835d['SxQZv']=_0x4874ac(0x1a9),_0x28835d['eUWfc']=_0x4874ac(0x175),_0x28835d[_0x4874ac(0x203)]=_0x4874ac(0x185),_0x28835d['FCmOg']=_0x4874ac(0x140);const _0xde25bc=_0x28835d,_0x5db9b8={};_0x5db9b8[_0x4874ac(0x1f9)]=_0xde25bc[_0x4874ac(0x128)],_0x5db9b8['type']=_0xde25bc['Pxttn'];const _0x504ed5={};_0x504ed5[_0x4874ac(0x1f9)]=_0xde25bc[_0x4874ac(0x1ca)],_0x504ed5[_0x4874ac(0x1c3)]=_0xde25bc[_0x4874ac(0x125)];const _0x141db7={};_0x141db7[_0x4874ac(0x1f9)]=_0xde25bc[_0x4874ac(0x1ba)],_0x141db7[_0x4874ac(0x1c3)]=_0xde25bc['Pxttn'];const _0x3a4d09={};_0x3a4d09[_0x4874ac(0x1f9)]=_0xde25bc['pDxhE'],_0x3a4d09[_0x4874ac(0x1c3)]=_0xde25bc[_0x4874ac(0x125)];const _0x2c2e6f={};return _0x2c2e6f[_0x4874ac(0x11d)]=_0x5db9b8,_0x2c2e6f[_0x4874ac(0x1fa)]=_0x504ed5,_0x2c2e6f[_0x4874ac(0x15e)]=_0x141db7,_0x2c2e6f[_0x4874ac(0x161)]=_0x3a4d09,_0xbe9111[_0x4874ac(0x18e)](HELP_HEADER_MESSAGE[_0x4874ac(0x15c)])[_0x4874ac(0x117)](HELP_FOOTER_MESSAGE)[_0x4874ac(0x119)](_0x2c2e6f)[_0x4874ac(0x140)](_0xde25bc[_0x4874ac(0x211)])[_0x4874ac(0x176)];};async function inputValidation(_0x400908,_0x10a988){const _0x40694e=a17_0x14fa52,_0x794aee={'fgkCN':_0x40694e(0x13f),'MDGfI':_0x40694e(0x1ff),'EDuOr':'N/A','qebGr':'cloud-provider','lZwcn':function(_0x2335b6,_0x111b9f){return _0x2335b6+_0x111b9f;},'mfJly':_0x40694e(0x139),'uBClN':'Failure','DVMiR':function(_0x441ee6,_0x2e4291){return _0x441ee6||_0x2e4291;},'BYqxR':_0x40694e(0x14b),'xBnRZ':_0x40694e(0x17e),'ucjmp':'error','jdvOK':_0x40694e(0x15e),'REqaB':_0x40694e(0x129),'XwPeu':_0x40694e(0x219),'johWC':_0x40694e(0x1a9),'BoiGg':_0x40694e(0x175),'aqVSf':_0x40694e(0x185),'LrXDj':_0x40694e(0x140),'EUNKF':function(_0x16a4c4,_0x1aa528){return _0x16a4c4!==_0x1aa528;},'FyfMC':'PbKCh','KwRHM':_0x40694e(0x1f1),'sdFqD':function(_0x870ee,_0x4c7c09){return _0x870ee===_0x4c7c09;},'GpxLJ':'hfIVr','hiazB':_0x40694e(0x186),'iIYdq':function(_0x86a14d,_0x234191){return _0x86a14d!==_0x234191;},'OsBpS':_0x40694e(0x1b1),'CzItW':_0x40694e(0x141),'WtnEW':_0x40694e(0x11d),'oVvHS':function(_0x2bc620,_0x529397){return _0x2bc620!==_0x529397;},'fWzcD':_0x40694e(0x1e6),'NDUoW':_0x40694e(0x14a),'BaXPG':_0x40694e(0x1fe),'dZTml':function(_0x2c5f1d,_0x340619){return _0x2c5f1d>_0x340619;},'ubgbT':'DczyT','jQwej':function(_0x5efbe4,_0x123e11,_0x19a763,_0x41a128,_0x3c0e0b,_0x1787c4,_0x572f4c,_0x549274){return _0x5efbe4(_0x123e11,_0x19a763,_0x41a128,_0x3c0e0b,_0x1787c4,_0x572f4c,_0x549274);},'kKNLl':_0x40694e(0x1bf),'WsYkV':_0x40694e(0x147),'IdsUC':_0x40694e(0x1fc),'OKQOE':_0x40694e(0x1e9),'woQgD':function(_0x11ab71,_0x489a51,_0x35c45b,_0x2e2470,_0x236683,_0x2e9f30,_0x890eed,_0x4bfdcc){return _0x11ab71(_0x489a51,_0x35c45b,_0x2e2470,_0x236683,_0x2e9f30,_0x890eed,_0x4bfdcc);},'qbkNX':_0x40694e(0x172),'xyLYx':'eRHeR','aNLjd':_0x40694e(0x1dd),'dfeTl':_0x40694e(0x120),'JMaDN':function(_0x14cc71,_0x1951e9,_0x3c6f97){return _0x14cc71(_0x1951e9,_0x3c6f97);},'yHrSe':function(_0x29740b,_0x2ea7d8,_0x50000e,_0x1420f6,_0x25bbab,_0x438a50){return _0x29740b(_0x2ea7d8,_0x50000e,_0x1420f6,_0x25bbab,_0x438a50);},'THfRa':_0x40694e(0x171),'FjJOu':_0x40694e(0x161),'tkaBA':function(_0x2f0fab,_0x5dc662){return _0x2f0fab===_0x5dc662;},'NIzsb':function(_0x1ada62,_0x4442c8){return _0x1ada62!==_0x4442c8;},'Xxuer':_0x40694e(0x1eb),'WoHAO':_0x40694e(0x216),'otEle':function(_0x369b90,_0x5d2171){return _0x369b90(_0x5d2171);},'ToKhQ':function(_0xeb6021,_0x2e5520){return _0xeb6021!==_0x2e5520;},'tMqla':_0x40694e(0x16b),'nktCs':function(_0x1e7b54,_0x4a4d36,_0x28058e,_0x35cdea,_0x368073,_0x523e57,_0x1a4b25,_0x4bbe0a){return _0x1e7b54(_0x4a4d36,_0x28058e,_0x35cdea,_0x368073,_0x523e57,_0x1a4b25,_0x4bbe0a);},'AWsAz':_0x40694e(0x194),'fxAPv':_0x40694e(0x1a8),'fyssH':_0x40694e(0x148),'mJwCO':_0x40694e(0x1bd),'bMtvU':_0x40694e(0x1b2),'nMoVV':function(_0x2c3a26,_0x567ab1){return _0x2c3a26===_0x567ab1;},'rkJdm':_0x40694e(0x183),'RYrki':_0x40694e(0x180),'GplgM':function(_0x147d51,_0x25d729){return _0x147d51!==_0x25d729;},'SKCdF':'dpyHC','CNUWI':_0x40694e(0x1ef)};let _0x2a38db;try{if(_0x794aee[_0x40694e(0x157)](_0x794aee[_0x40694e(0x192)],_0x794aee[_0x40694e(0x21d)])){if(_0x400908[_0x40694e(0x217)]||_0x400908[_0x40694e(0x1e4)]||_0x400908[_0x40694e(0x15e)]){if(_0x794aee[_0x40694e(0x11c)](_0x794aee[_0x40694e(0x149)],_0x794aee[_0x40694e(0x134)]))_0x582194[_0x40694e(0x17b)](_0x40694e(0x167)+_0x11cafa[_0x40694e(0x133)]+'\x20'),_0x28df54[_0x40694e(0x1e4)]=_0x1d6aa8['CLOUD_PROVIDER'];else{const _0x31d601=[];!_0x400908[_0x40694e(0x217)]&&(_0x794aee[_0x40694e(0x11e)](_0x794aee[_0x40694e(0x1bb)],_0x794aee[_0x40694e(0x1c1)])?_0x31d601[_0x40694e(0x218)](_0x794aee[_0x40694e(0x13c)]):_0x3d57e7[_0x40694e(0x1ce)](0x1));;!_0x400908['cloudProvider']&&(_0x794aee['oVvHS'](_0x794aee['fWzcD'],_0x794aee[_0x40694e(0x146)])?_0x31d601[_0x40694e(0x218)](_0x794aee[_0x40694e(0x16e)]):(_0x5bdefe[_0x40694e(0x126)](_0x794aee[_0x40694e(0x1d6)]),_0x447b76[_0x40694e(0x1ce)](0x1)));;!_0x400908['region']&&(_0x794aee[_0x40694e(0x11e)](_0x794aee[_0x40694e(0x1d3)],_0x794aee[_0x40694e(0x1d3)])?_0x4ba710[_0x40694e(0x17b)]('Cluster\x20`'+_0x5f56c3[_0x40694e(0x217)]+_0x40694e(0x121)):_0x31d601[_0x40694e(0x218)](_0x794aee[_0x40694e(0x152)]));;_0x794aee[_0x40694e(0x195)](_0x31d601[_0x40694e(0x14c)],0x0)&&(_0x794aee[_0x40694e(0x11c)](_0x794aee[_0x40694e(0x155)],_0x794aee[_0x40694e(0x155)])?(_0x2a38db=_0x40694e(0x136)+_0x31d601['join'](',\x20')+_0x40694e(0x1e1),await _0x794aee['jQwej'](reportToGalactusAndSendToEDS,_0x400908,_0x10a988,_0x2a38db,messageTypes[_0x40694e(0x204)],_0x794aee[_0x40694e(0x15f)],_0x794aee[_0x40694e(0x14d)],_0x794aee[_0x40694e(0x1ab)]),logger['error'](_0x2a38db),process['exit'](0x1)):(_0x34f7b2+=_0x794aee[_0x40694e(0x1c6)],_0x55327e+=_0x40694e(0x1dc)+(_0x2afb34[_0x40694e(0x18b)]||_0x794aee['EDuOr'])+'\x0a',_0x57f23f+='\x20\x20Code:\x20'+(_0x56e07f[_0x40694e(0x12c)]||_0x794aee[_0x40694e(0x181)])+'\x0a',_0x46f7f2+=_0x40694e(0x11b)+(_0x2cdd21['stack']||_0x794aee['EDuOr'])+'\x0a')),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x40694e(0x162)](_0x400908['cloudProvider'][_0x40694e(0x151)]())&&(_0x794aee[_0x40694e(0x11e)](_0x794aee[_0x40694e(0x12f)],_0x794aee[_0x40694e(0x12f)])?_0x2ef0a4['error'](_0x40694e(0x21a)+_0x1ee7c6[_0x40694e(0x126)][_0x40694e(0x1fb)]):(_0x2a38db=_0x794aee[_0x40694e(0x142)],await _0x794aee[_0x40694e(0x1c0)](reportToGalactusAndSendToEDS,_0x400908,_0x10a988,_0x2a38db,messageTypes[_0x40694e(0x204)],_0x794aee[_0x40694e(0x15f)],_0x794aee[_0x40694e(0x19f)],_0x794aee[_0x40694e(0x1ab)]),logger['error'](_0x2a38db),!_0x400908[_0x40694e(0x1e4)]&&(_0x794aee[_0x40694e(0x11c)](_0x794aee[_0x40694e(0x200)],_0x794aee[_0x40694e(0x200)])?(logger['info'](_0x40694e(0x167)+DEFAULT_CLUSTER_DETAILS[_0x40694e(0x133)]+'\x20'),_0x400908['cloudProvider']=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']):_0x545e97[_0x40694e(0x218)](_0x794aee['qebGr'])))),global_registry['clusterName']=_0x400908[_0x40694e(0x217)],global_registry['cloudProvider']=_0x400908[_0x40694e(0x1e4)],global_registry[_0x40694e(0x19d)]=_0x400908['region'];}}else{if(_0x400908[_0x40694e(0x169)]){if(_0x794aee[_0x40694e(0x11c)](_0x794aee['aNLjd'],_0x794aee[_0x40694e(0x1e7)])){global_registry[_0x40694e(0x169)]=_0x400908['gridProfile'],logger[_0x40694e(0x1f2)](_0x40694e(0x12e)+_0x400908['gridProfile']);const _0x3a1b99=_0x40694e(0x127)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x5ef698={};_0x5ef698[_0x40694e(0x170)]=_0x794aee['dfeTl'],_0x5ef698[_0x40694e(0x199)]=global_registry['authHeader'],_0x5ef698[_0x40694e(0x1b3)]=![];const _0x93cfd1=_0x5ef698,_0x4be229=await _0x794aee[_0x40694e(0x1b0)](got,_0x3a1b99,_0x93cfd1),_0x54fd61=await _0x794aee['yHrSe'](responseValidation,_0x4be229,_0x794aee[_0x40694e(0x191)],_0x794aee[_0x40694e(0x13a)],_0x400908,_0x10a988);let _0x10bb42={};if(_0x794aee[_0x40694e(0x12b)](_0x54fd61,0xc8)){if(_0x794aee[_0x40694e(0x205)](_0x794aee[_0x40694e(0x16f)],_0x794aee[_0x40694e(0x16a)])){const _0x163125=JSON[_0x40694e(0x1d7)](_0x4be229[_0x40694e(0x168)]),_0x148804=_0x163125[_0x40694e(0x19b)](_0xf15c3=>_0xf15c3[_0x40694e(0x21e)]===_0x400908[_0x40694e(0x169)])||null;if(_0x794aee[_0x40694e(0x18d)](isUndefined,_0x148804)){if(_0x794aee[_0x40694e(0x201)](_0x794aee[_0x40694e(0x209)],_0x794aee[_0x40694e(0x209)])){const {header:_0x2e1260,response:_0x3e10be}=_0xa7c584,{status:_0x4256e7,data:_0x3270d1,error:_0x357615}=_0x3e10be;_0x37f08c+=_0x2e1260+'\x20#'+_0x794aee[_0x40694e(0x131)](_0x149b29,0x1)+'\x0a',_0x28dcaa+=_0x40694e(0x1ac)+(_0x4256e7?_0x794aee[_0x40694e(0x18c)]:_0x794aee['uBClN'])+'\x0a',_0xd1ebc2+='Message:\x20'+_0x794aee[_0x40694e(0x214)](_0x3270d1,_0x794aee[_0x40694e(0x181)])+'\x0a',_0x357615&&(_0x512b87+=_0x794aee['MDGfI'],_0x40f6f0+=_0x40694e(0x1dc)+(_0x357615['message']||_0x794aee['EDuOr'])+'\x0a',_0x2b546b+='\x20\x20Code:\x20'+(_0x357615[_0x40694e(0x12c)]||_0x794aee[_0x40694e(0x181)])+'\x0a',_0x22f12e+=_0x40694e(0x11b)+(_0x357615['stack']||_0x794aee[_0x40694e(0x181)])+'\x0a'),_0x18ffec+='\x0a\x0a';}else _0x2a38db=_0x40694e(0x1ea)+_0x400908[_0x40694e(0x169)]+_0x40694e(0x1f8),await _0x794aee[_0x40694e(0x1a6)](reportToGalactusAndSendToEDS,_0x400908,_0x10a988,_0x2a38db,messageTypes['ERROR'],_0x794aee[_0x40694e(0x15f)],_0x794aee[_0x40694e(0x21c)],_0x794aee[_0x40694e(0x1ab)]),logger[_0x40694e(0x126)](_0x2a38db),process[_0x40694e(0x1ce)](0x1);}else _0x794aee[_0x40694e(0x157)](_0x794aee[_0x40694e(0x15b)],_0x794aee[_0x40694e(0x1e0)])?_0x10bb42=_0x148804:_0x222217+=_0x40694e(0x18a)+_0x2966bc[_0x40694e(0x217)]+'\x20'+(_0x1c6d50?_0x794aee[_0x40694e(0x207)]:_0x794aee[_0x40694e(0x163)])+'\x0a\x0a';}else{const _0x3c09c8={};_0x3c09c8[_0x40694e(0x1c3)]=_0x1bb5da['LOG'],_0x3c09c8[_0x40694e(0x18b)]=_0x594aa2,_0x39774b[_0x40694e(0x1b4)](_0x52110b,_0x3c09c8,_0x794aee[_0x40694e(0x1ab)],!![]);}}else _0x794aee['sdFqD'](_0x794aee[_0x40694e(0x1a7)],_0x794aee[_0x40694e(0x1a7)])?process[_0x40694e(0x1ce)](0x1):(_0x225d52[_0x40694e(0x17b)]('['+_0x35f09f+_0x40694e(0x1d1)+_0x20fab2['status']+_0x40694e(0x210)+_0x1ffcde[_0x40694e(0x1e8)]+_0x40694e(0x1cf)+_0x28eccf[_0x40694e(0x126)]),_0x5eea3a[_0x40694e(0x126)]&&_0x4ee5cf[_0x40694e(0x126)](_0x40694e(0x21a)+_0x1c4a74[_0x40694e(0x126)]['stack']));const _0x1dc5b5={};_0x1dc5b5['type']=WS_EVENTS[_0x40694e(0x124)],_0x1dc5b5['message']=_0x794aee['bMtvU'],webSocketUtils[_0x40694e(0x1b4)](_0x10a988,_0x1dc5b5),global_registry['cloudProvider']=_0x10bb42[_0x40694e(0x1e4)],global_registry[_0x40694e(0x19d)]=_0x10bb42['region'],global_registry['clusterName']=_0x10bb42[_0x40694e(0x217)];}else _0x88cfd9['push'](_0x794aee[_0x40694e(0x152)]);}else _0x794aee['nMoVV'](_0x794aee['rkJdm'],_0x794aee['RYrki'])?_0x2b0bfb+=_0x40694e(0x18a)+_0x5b9d45[_0x40694e(0x217)]+_0x40694e(0x17a):(logger[_0x40694e(0x126)](_0x794aee[_0x40694e(0x1d6)]),process[_0x40694e(0x1ce)](0x1));}}else _0x110877=_0x3d0659;}catch(_0x1909e9){if(_0x794aee[_0x40694e(0x190)](_0x794aee[_0x40694e(0x144)],_0x794aee[_0x40694e(0x160)]))_0x2a38db=_0x40694e(0x188)+_0x1909e9+':\x20'+_0x1909e9[_0x40694e(0x1fb)],logger[_0x40694e(0x126)](_0x2a38db),await _0x794aee['woQgD'](reportToGalactusAndSendToEDS,_0x400908,_0x10a988,_0x2a38db,messageTypes[_0x40694e(0x204)],_0x794aee['kKNLl'],_0x794aee[_0x40694e(0x19f)],_0x794aee[_0x40694e(0x1ab)]),process[_0x40694e(0x1ce)](0x1);else{const _0x19275e={};_0x19275e[_0x40694e(0x1f9)]=_0x794aee['REqaB'],_0x19275e[_0x40694e(0x1c3)]=_0x794aee[_0x40694e(0x1a5)];const _0x217c08={};_0x217c08[_0x40694e(0x1f9)]=_0x794aee['johWC'],_0x217c08[_0x40694e(0x1c3)]=_0x794aee['XwPeu'];const _0x390b2c={};_0x390b2c[_0x40694e(0x1f9)]=_0x794aee[_0x40694e(0x13d)],_0x390b2c[_0x40694e(0x1c3)]=_0x794aee[_0x40694e(0x1a5)];const _0x48aeac={};_0x48aeac['description']=_0x794aee['aqVSf'],_0x48aeac[_0x40694e(0x1c3)]=_0x794aee[_0x40694e(0x1a5)];const _0x3f3cdb={};return _0x3f3cdb[_0x40694e(0x11d)]=_0x19275e,_0x3f3cdb[_0x40694e(0x1fa)]=_0x217c08,_0x3f3cdb['region']=_0x390b2c,_0x3f3cdb['grid-profile']=_0x48aeac,_0x4cbccb[_0x40694e(0x18e)](_0x1a680a[_0x40694e(0x15c)])[_0x40694e(0x117)](_0x310130)[_0x40694e(0x119)](_0x3f3cdb)[_0x40694e(0x140)](_0x794aee[_0x40694e(0x1ee)])[_0x40694e(0x176)];}}}function printResponse(_0x42da7c,_0x4f30d7){const _0x21d562=a17_0x14fa52,_0x1f6c7e={};_0x1f6c7e[_0x21d562(0x1b5)]='cluster-name',_0x1f6c7e['Igvsa']=function(_0x4c898d,_0x5e1a4a){return _0x4c898d===_0x5e1a4a;},_0x1f6c7e[_0x21d562(0x1f0)]=_0x21d562(0x1b8),_0x1f6c7e[_0x21d562(0x17d)]=_0x21d562(0x1a2);const _0x2f6ec5=_0x1f6c7e;logger[_0x21d562(0x17b)]('['+_0x42da7c+_0x21d562(0x1d1)+_0x4f30d7[_0x21d562(0x213)]+_0x21d562(0x210)+_0x4f30d7['data']+'\x20error\x20:\x20'+_0x4f30d7[_0x21d562(0x126)]),_0x4f30d7[_0x21d562(0x126)]&&(_0x2f6ec5['Igvsa'](_0x2f6ec5[_0x21d562(0x1f0)],_0x2f6ec5[_0x21d562(0x17d)])?_0x50ef2a['push'](_0x2f6ec5[_0x21d562(0x1b5)]):logger['error'](_0x21d562(0x21a)+_0x4f30d7[_0x21d562(0x126)][_0x21d562(0x1fb)]));}async function generateReport(_0x18a0a6,_0x6c6bf6){const _0xaa7622=a17_0x14fa52,_0x907fda={'TfuDB':function(_0x2213e7,_0x52656d){return _0x2213e7+_0x52656d;},'iYsMr':_0xaa7622(0x139),'NJNlm':_0xaa7622(0x164),'pwaQt':function(_0x3f0840,_0x45ff83){return _0x3f0840||_0x45ff83;},'SaBip':_0xaa7622(0x158),'cIiFi':_0xaa7622(0x1ff),'FXtDF':_0xaa7622(0x1e2),'fQSun':function(_0xef7f20,_0x398439){return _0xef7f20!=_0x398439;},'ixtrp':_0xaa7622(0x14b),'XCSzX':'will\x20be\x20created','jFRIt':function(_0x969926){return _0x969926();}};let _0x165e41=_0xaa7622(0x16c)+global_registry['cloudProvider']+_0xaa7622(0x18f);return _0x18a0a6[_0xaa7622(0x1d2)]((_0x1ae92c,_0x4cf300)=>{const _0x497d8c=_0xaa7622,{header:_0xb53b15,response:_0x356cef}=_0x1ae92c,{status:_0x155dd1,data:_0x51e064,error:_0x22e450}=_0x356cef;_0x165e41+=_0xb53b15+'\x20#'+_0x907fda[_0x497d8c(0x1ec)](_0x4cf300,0x1)+'\x0a',_0x165e41+=_0x497d8c(0x1ac)+(_0x155dd1?_0x907fda[_0x497d8c(0x11f)]:_0x907fda[_0x497d8c(0x159)])+'\x0a',_0x165e41+=_0x497d8c(0x1d9)+_0x907fda[_0x497d8c(0x1d0)](_0x51e064,_0x907fda[_0x497d8c(0x16d)])+'\x0a',_0x22e450&&(_0x165e41+=_0x907fda['cIiFi'],_0x165e41+='\x20\x20Message:\x20'+(_0x22e450['message']||_0x907fda['SaBip'])+'\x0a',_0x165e41+=_0x497d8c(0x17c)+(_0x22e450[_0x497d8c(0x12c)]||_0x907fda[_0x497d8c(0x16d)])+'\x0a',_0x165e41+=_0x497d8c(0x11b)+(_0x22e450[_0x497d8c(0x1fb)]||_0x907fda['SaBip'])+'\x0a'),_0x165e41+='\x0a\x0a';}),_0x165e41+=_0x907fda[_0xaa7622(0x1de)],_0x907fda[_0xaa7622(0x1e3)](_0x6c6bf6,null)?_0x165e41+=_0xaa7622(0x18a)+global_registry['clusterName']+'\x20'+(_0x6c6bf6?_0x907fda[_0xaa7622(0x19a)]:_0x907fda[_0xaa7622(0x20e)])+'\x0a\x0a':_0x165e41+=_0xaa7622(0x18a)+global_registry[_0xaa7622(0x217)]+_0xaa7622(0x17a),_0x165e41+=_0x907fda[_0xaa7622(0x1cd)](getSystemMetaData),_0x165e41;};exports['handler']=async function(_0x5471d4){const _0x4c9cb1=a17_0x14fa52,_0x189197={'PfnCP':function(_0x262172){return _0x262172();},'KhFGO':function(_0x20ffc2){return _0x20ffc2();},'zqRYg':_0x4c9cb1(0x145),'pnoDf':function(_0x443957,_0x347e34,_0x3342bb,_0x1e9479,_0x2cbbb8,_0x1e18d5,_0x59c212,_0x539165){return _0x443957(_0x347e34,_0x3342bb,_0x1e9479,_0x2cbbb8,_0x1e18d5,_0x59c212,_0x539165);},'QoQhj':_0x4c9cb1(0x1bf),'lFGGB':_0x4c9cb1(0x1c8),'usKyW':_0x4c9cb1(0x126),'icQKQ':function(_0x31ddb1,_0x2baee2,_0xc534df,_0x286fab,_0x29d5ec,_0x1ea9a2,_0x20272e){return _0x31ddb1(_0x2baee2,_0xc534df,_0x286fab,_0x29d5ec,_0x1ea9a2,_0x20272e);},'ivPGG':_0x4c9cb1(0x138),'KeDCY':_0x4c9cb1(0x137),'vtWHH':function(_0x2170c1,_0x3a1dea,_0x378163){return _0x2170c1(_0x3a1dea,_0x378163);},'wsGco':_0x4c9cb1(0x1f5),'DlBuj':_0x4c9cb1(0x166),'JuisZ':'2|1|0|3|4','vAwgZ':function(_0x1de7cc,_0x109b67,_0x4d2d4a,_0x8ead63,_0x86626d,_0x29b9f2,_0x10df5b,_0x4bc36d){return _0x1de7cc(_0x109b67,_0x4d2d4a,_0x8ead63,_0x86626d,_0x29b9f2,_0x10df5b,_0x4bc36d);},'zTMOa':_0x4c9cb1(0x1b6),'YlAfZ':function(_0x1610b5){return _0x1610b5();},'zApRV':function(_0x1e3b53,_0x42f606,_0x7213e8){return _0x1e3b53(_0x42f606,_0x7213e8);},'kiibv':_0x4c9cb1(0x20a),'Uootk':function(_0x15a964,_0x32dfd2){return _0x15a964(_0x32dfd2);},'CVVml':_0x4c9cb1(0x1a1),'ROVeS':function(_0x2f4e6b,_0x5a1e91,_0x1b4fa0){return _0x2f4e6b(_0x5a1e91,_0x1b4fa0);},'hYpuI':_0x4c9cb1(0x1c9),'IvbEZ':'Tool\x20Installed','AibmJ':'User\x20Access','JrxWr':_0x4c9cb1(0x12d),'TMnId':_0x4c9cb1(0x1cb),'xFMvD':function(_0x41a913,_0x40c613){return _0x41a913+_0x40c613;},'pEVeJ':_0x4c9cb1(0x1ad),'YMKhB':function(_0x1dfcef,_0x2c8473,_0x2e2a8b,_0x255719,_0x5c9690,_0x387f11,_0x5ce1ef){return _0x1dfcef(_0x2c8473,_0x2e2a8b,_0x255719,_0x5c9690,_0x387f11,_0x5ce1ef);},'jxGNt':_0x4c9cb1(0x14f)};let _0x5f14a3,_0x5178ef;try{global_registry[_0x4c9cb1(0x179)]=_0x189197[_0x4c9cb1(0x15a)](uuidv4);!fs[_0x4c9cb1(0x15d)](_0x189197['KhFGO'](getCredentialsPath))&&(_0x5178ef=_0x189197['zqRYg'],logger[_0x4c9cb1(0x126)](_0x5178ef),await _0x189197['pnoDf'](reportToGalactusAndSendToEDS,_0x5471d4,_0x5f14a3,_0x5178ef,messageTypes[_0x4c9cb1(0x204)],_0x189197[_0x4c9cb1(0x17f)],_0x189197[_0x4c9cb1(0x1aa)],_0x189197[_0x4c9cb1(0x21f)]),process[_0x4c9cb1(0x1ce)](0x1));_0x189197['icQKQ'](sendInstrumentationEvent,_0x5471d4,_0x189197[_0x4c9cb1(0x17f)],messageTypes['INFO'],null,null,_0x5471d4);const _0x2f8427=JSON[_0x4c9cb1(0x1d7)](fs['readFileSync'](_0x189197[_0x4c9cb1(0x15a)](getCredentialsPath)));global_registry['bstackUsername']=_0x2f8427[_0x4c9cb1(0x12a)][_0x4c9cb1(0x1ae)],global_registry[_0x4c9cb1(0x202)]=_0x2f8427[_0x4c9cb1(0x12a)]['password'];const _0x5bca3a=WS_ENDPOINT[_0x4c9cb1(0x174)](_0x189197['ivPGG'],_0x2f8427[_0x4c9cb1(0x12a)][_0x4c9cb1(0x1ae)])[_0x4c9cb1(0x174)](_0x189197[_0x4c9cb1(0x135)],_0x2f8427[_0x4c9cb1(0x12a)]['password']),_0x3aeb70={};_0x3aeb70[_0x4c9cb1(0x156)]=ws,_0x3aeb70[_0x4c9cb1(0x1bc)]=0x36ee80,_0x5f14a3=new ReconnectingWebSocket(_0x5bca3a,[],_0x3aeb70),global_registry[_0x4c9cb1(0x1f6)]=_0x189197['vtWHH'](getAuthHeader,global_registry[_0x4c9cb1(0x1f3)],global_registry[_0x4c9cb1(0x202)]),await _0x189197[_0x4c9cb1(0x184)](inputValidation,_0x5471d4,_0x5f14a3),logger[_0x4c9cb1(0x17b)](_0x4c9cb1(0x208)+global_registry['cloudProvider']+_0x4c9cb1(0x178)+global_registry[_0x4c9cb1(0x19d)]);let _0x3dbd7c=await _0x189197[_0x4c9cb1(0x21b)](getCloudProviderObjectWithOutInit,global_registry[_0x4c9cb1(0x1e4)],global_registry[_0x4c9cb1(0x217)],_0x189197[_0x4c9cb1(0x215)],_0x5f14a3,webSocketUtils,_0x5471d4);const _0x1f8eaf=await _0x3dbd7c[_0x4c9cb1(0x122)]();_0x189197[_0x4c9cb1(0x184)](printResponse,_0x189197['DlBuj'],_0x1f8eaf),_0x3dbd7c=await _0x3dbd7c[_0x4c9cb1(0x1a0)]();let _0x600db=![];try{_0x600db=await _0x3dbd7c[_0x4c9cb1(0x143)]();}catch(_0x1589c2){const _0x1d9eb8=_0x189197[_0x4c9cb1(0x1f4)]['split']('|');let _0x44f10f=0x0;while(!![]){switch(_0x1d9eb8[_0x44f10f++]){case'0':logger[_0x4c9cb1(0x126)](_0x5178ef);continue;case'1':_0x600db=null;continue;case'2':_0x5178ef='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry['clusterName']+_0x4c9cb1(0x1ed)+global_registry[_0x4c9cb1(0x19d)]+_0x4c9cb1(0x212)+_0x1589c2;continue;case'3':_0x5178ef+='\x0a'+JSON[_0x4c9cb1(0x13b)](_0x1589c2['stack']);continue;case'4':await _0x189197[_0x4c9cb1(0x197)](reportToGalactusAndSendToEDS,_0x5471d4,_0x5f14a3,_0x5178ef,messageTypes[_0x4c9cb1(0x204)],_0x189197[_0x4c9cb1(0x17f)],_0x4c9cb1(0x189)+global_registry['cloudProvider'],_0x189197[_0x4c9cb1(0x21f)]);continue;}break;}}_0x600db&&logger[_0x4c9cb1(0x17b)](_0x4c9cb1(0x118)+global_registry[_0x4c9cb1(0x217)]+_0x4c9cb1(0x121));const _0x53e43e=await _0x3dbd7c['checkAccess']();_0x189197[_0x4c9cb1(0x184)](printResponse,_0x189197[_0x4c9cb1(0x1e5)],_0x53e43e);const _0x1c6c25=await _0x189197[_0x4c9cb1(0x20c)](curlRequest);_0x189197[_0x4c9cb1(0x1c4)](printResponse,_0x189197['kiibv'],_0x1c6c25);const _0x15312a=await _0x189197[_0x4c9cb1(0x19c)](isTlsSupported,_0x189197[_0x4c9cb1(0x1b9)]);_0x189197[_0x4c9cb1(0x1d8)](printResponse,_0x189197[_0x4c9cb1(0x206)],_0x15312a);const _0x1669e5={};_0x1669e5[_0x4c9cb1(0x177)]=_0x189197[_0x4c9cb1(0x1cc)],_0x1669e5['response']=_0x1f8eaf;const _0x212299={};_0x212299[_0x4c9cb1(0x177)]=_0x189197['AibmJ'],_0x212299[_0x4c9cb1(0x1be)]=_0x53e43e;const _0x113492={};_0x113492[_0x4c9cb1(0x177)]=_0x189197[_0x4c9cb1(0x1da)],_0x113492[_0x4c9cb1(0x1be)]=_0x1c6c25;const _0x119ce3={};_0x119ce3[_0x4c9cb1(0x177)]=_0x189197[_0x4c9cb1(0x20d)],_0x119ce3[_0x4c9cb1(0x1be)]=_0x15312a;const _0x3970b8=[_0x1669e5,_0x212299,_0x113492,_0x119ce3],_0x11541a=await _0x189197[_0x4c9cb1(0x1c4)](generateReport,_0x3970b8,_0x600db),_0xdae133=new Date(),_0x13cb70=_0xdae133['getUTCFullYear']()+'_'+_0x189197[_0x4c9cb1(0x182)](_0xdae133['getUTCMonth'](),0x1)+'_'+_0xdae133[_0x4c9cb1(0x1a4)]()+'_'+_0xdae133[_0x4c9cb1(0x187)]()+'_'+_0xdae133[_0x4c9cb1(0x1df)](),_0x2ff416=_0x4c9cb1(0x154)+_0x13cb70+_0x4c9cb1(0x196);fs['writeFileSync'](_0x2ff416,_0x11541a,_0x189197[_0x4c9cb1(0x1c2)]),logger[_0x4c9cb1(0x17b)](_0x4c9cb1(0x150)+_0x2ff416),process[_0x4c9cb1(0x1ce)](0x0);}catch(_0x47128a){let _0x4fd9f7=_0x4c9cb1(0x1a3)+_0x47128a+'\x20';logger[_0x4c9cb1(0x126)](_0x4fd9f7),_0x4fd9f7+='\x0a'+JSON[_0x4c9cb1(0x13b)](_0x47128a[_0x4c9cb1(0x1fb)]),logger['debug'](_0x4c9cb1(0x1af)+_0x47128a['stack']);if(_0x5f14a3){const _0x3076e4={};_0x3076e4['type']=WS_EVENTS[_0x4c9cb1(0x124)],_0x3076e4[_0x4c9cb1(0x18b)]=_0x4fd9f7,webSocketUtils[_0x4c9cb1(0x1b4)](_0x5f14a3,_0x3076e4,_0x189197[_0x4c9cb1(0x21f)],!![]);}await webSocketUtils[_0x4c9cb1(0x14e)](0x7d0);const _0x3cb0df={};_0x3cb0df[_0x4c9cb1(0x126)]=_0x4fd9f7,await _0x189197['YMKhB'](sendInstrumentationEvent,_0x5471d4,_0x189197[_0x4c9cb1(0x17f)],messageTypes[_0x4c9cb1(0x204)],_0x189197['jxGNt'],_0x3cb0df,_0x5471d4),process[_0x4c9cb1(0x1ce)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a18_0x885c(_0xeeb2c,_0x430bd3){const _0xd9c1d6=a18_0xd9c1();return a18_0x885c=function(_0x885c12,_0x5a049b){_0x885c12=_0x885c12-0x175;let _0x344964=_0xd9c1d6[_0x885c12];return _0x344964;},a18_0x885c(_0xeeb2c,_0x430bd3);}const a18_0x5cba39=a18_0x885c;function a18_0xd9c1(){const _0x12a195=['3592884FDSoig','commandDir','246460gYCdcp','309279gvthom','epilogue','usage','WkytZ','Start\x20an\x20existing\x20Automation\x20grid.','1417678dXdghp','35occJeP','3258342vXZWyA','handler','1126629LrVqFq','help','40LszKWn','1288074xQOdyH','desc','command','builder','40TlncOB','start_commands','Qvbjm'];a18_0xd9c1=function(){return _0x12a195;};return a18_0xd9c1();}(function(_0x290598,_0x446387){const _0x5dc1f9=a18_0x885c,_0xcaf647=_0x290598();while(!![]){try{const _0xcb5040=parseInt(_0x5dc1f9(0x183))/0x1+parseInt(_0x5dc1f9(0x188))/0x2+parseInt(_0x5dc1f9(0x179))/0x3+parseInt(_0x5dc1f9(0x182))/0x4*(parseInt(_0x5dc1f9(0x189))/0x5)+-parseInt(_0x5dc1f9(0x180))/0x6+parseInt(_0x5dc1f9(0x176))/0x7*(parseInt(_0x5dc1f9(0x17d))/0x8)+-parseInt(_0x5dc1f9(0x18a))/0x9*(parseInt(_0x5dc1f9(0x178))/0xa);if(_0xcb5040===_0x446387)break;else _0xcaf647['push'](_0xcaf647['shift']());}catch(_0x1499a5){_0xcaf647['push'](_0xcaf647['shift']());}}}(a18_0xd9c1,0x9b686));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a18_0x5cba39(0x17b)]='start',exports[a18_0x5cba39(0x17a)]=a18_0x5cba39(0x187),exports[a18_0x5cba39(0x17c)]=function(_0x4c0f14){const _0x172f3d=a18_0x5cba39,_0x6ca2b8={};_0x6ca2b8['WkytZ']=_0x172f3d(0x17e),_0x6ca2b8[_0x172f3d(0x17f)]='help';const _0x496693=_0x6ca2b8;return _0x4c0f14[_0x172f3d(0x185)](HELP_HEADER_MESSAGE['start'])[_0x172f3d(0x184)](HELP_FOOTER_MESSAGE)[_0x172f3d(0x181)](_0x496693[_0x172f3d(0x186)])['demandCommand']()['recommendCommands']()['strict']()[_0x172f3d(0x177)](_0x496693['Qvbjm']);},exports[a18_0x5cba39(0x175)]=function(_0x49ec7f){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a19_0x3b556e=a19_0x5c8b;(function(_0x254a71,_0x482c99){const _0xd08df3=a19_0x5c8b,_0xd99b8e=_0x254a71();while(!![]){try{const _0x54e723=-parseInt(_0xd08df3(0x99))/0x1*(-parseInt(_0xd08df3(0xd7))/0x2)+parseInt(_0xd08df3(0xc5))/0x3*(-parseInt(_0xd08df3(0xc9))/0x4)+parseInt(_0xd08df3(0xba))/0x5+parseInt(_0xd08df3(0xda))/0x6*(-parseInt(_0xd08df3(0xa4))/0x7)+parseInt(_0xd08df3(0xee))/0x8+parseInt(_0xd08df3(0xe7))/0x9*(-parseInt(_0xd08df3(0xc8))/0xa)+parseInt(_0xd08df3(0xb6))/0xb;if(_0x54e723===_0x482c99)break;else _0xd99b8e['push'](_0xd99b8e['shift']());}catch(_0x27c8ef){_0xd99b8e['push'](_0xd99b8e['shift']());}}}(a19_0x18fe,0x3bd95));function a19_0x5c8b(_0x1fb4a3,_0x3a8a3f){const _0x18fe66=a19_0x18fe();return a19_0x5c8b=function(_0x5c8b2e,_0x5ca13d){_0x5c8b2e=_0x5c8b2e-0x92;let _0x307381=_0x18fe66[_0x5c8b2e];return _0x307381;},a19_0x5c8b(_0x1fb4a3,_0x3a8a3f);}function a19_0x18fe(){const _0x1eece1=['debug','type','options','boolean','desc','9omhNaO','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','info','statusCode','../../cloudproviders/utils','default','Starting\x20grid\x20','QglFk','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','error','start','7mFgzcl','PqKsN','skip-tls-cert-verify','WebSocket','Grid\x20started','tonAd','skipTlsCertVerify','IKyyz','ZdhFR','clusterName','nigzZ','Browserstack','XREcc','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','ncfAF','Skip\x20insecure\x20cert\x20verification.','<PasswordPlaceholder>','NtDjq','2171983qrcDZN','readFileSync','start-grid-called','../../config/logger','345280HWlIvk','existsSync','khcbq','bstackAccesskey','reconnecting-websocket','crgbW','vCJKV','connectionTimeout','cloudProvider','FBQxB','grid','816xDUTIg','DaByo','../../utils/instrumentationUtils','10NnotAD','6368xZhksT','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','handler','../../config/constants','password','PQaiT','../../utils/gridComponents','exit','stringify','user','gridId','name','../../utils/createk8sClient','parse','105402qWjgip','command','lYTLg','650316DgWBmO','replace','VUibZ','grid-id','help','ZJEwl','server-error','builder','message','clusterRegion','unauthorised','epilogue','vgMgl','1003473wwBBoh','Start\x20an\x20existing\x20Automation\x20grid.','username','ERROR','CNsVI','jlxbs','argv','1257840nnQhRq','invalid-grid-id','jJSGN','bstackUsername','stack'];a19_0x18fe=function(){return _0x1eece1;};return a19_0x18fe();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x3b556e(0xbe)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x3b556e(0xcc)),{logger}=require(a19_0x3b556e(0xb9)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x3b556e(0xcf)),{sendInstrumentationEvent}=require(a19_0x3b556e(0xc7)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x3b556e(0xd5)),{getCloudProviderObject}=require(a19_0x3b556e(0x9d));exports[a19_0x3b556e(0xd8)]=a19_0x3b556e(0xc4),exports[a19_0x3b556e(0x98)]=a19_0x3b556e(0xe8),exports[a19_0x3b556e(0xe1)]=function(_0x3bb25b){const _0x46b3cf=a19_0x3b556e,_0x2c3af4={};_0x2c3af4[_0x46b3cf(0xdf)]=_0x46b3cf(0xb1),_0x2c3af4[_0x46b3cf(0xb5)]='string',_0x2c3af4[_0x46b3cf(0xa5)]=_0x46b3cf(0xb3),_0x2c3af4[_0x46b3cf(0xec)]=_0x46b3cf(0x97),_0x2c3af4['kVqIo']=_0x46b3cf(0xde);const _0x21094b=_0x2c3af4,_0x4cffa4={};_0x4cffa4['description']=_0x21094b[_0x46b3cf(0xdf)],_0x4cffa4[_0x46b3cf(0x95)]=_0x21094b[_0x46b3cf(0xb5)];const _0x292fd2={};_0x292fd2['description']=_0x21094b[_0x46b3cf(0xa5)],_0x292fd2[_0x46b3cf(0x95)]=_0x21094b[_0x46b3cf(0xec)],_0x292fd2[_0x46b3cf(0x9e)]=![];const _0x354498={};return _0x354498[_0x46b3cf(0xdd)]=_0x4cffa4,_0x354498[_0x46b3cf(0xa6)]=_0x292fd2,_0x3bb25b['usage'](HELP_HEADER_MESSAGE[_0x46b3cf(0xa3)])[_0x46b3cf(0xe5)](HELP_FOOTER_MESSAGE)[_0x46b3cf(0x96)](_0x354498)[_0x46b3cf(0xde)](_0x21094b['kVqIo'])[_0x46b3cf(0xed)];},exports[a19_0x3b556e(0xcb)]=async function(_0x3aa26f){const _0x33567b=a19_0x3b556e,_0x41ec46={'FBQxB':_0x33567b(0xca),'IKyyz':function(_0x289369){return _0x289369();},'ncfAF':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','vCJKV':function(_0x1c78f2,_0x39368e,_0x3492d5,_0x3e6220,_0x336f8c,_0x18a74d,_0x466baa){return _0x1c78f2(_0x39368e,_0x3492d5,_0x3e6220,_0x336f8c,_0x18a74d,_0x466baa);},'XREcc':_0x33567b(0xb8),'jJSGN':'init-not-called','NHfdc':'<UsernamePlaceholder>','PQaiT':_0x33567b(0xb4),'TRPJv':'Adding\x20Websocket\x20listeners','nigzZ':function(_0x1441bd,_0x58ea77,_0x33c5eb,_0x1c1c83){return _0x1441bd(_0x58ea77,_0x33c5eb,_0x1c1c83);},'crgbW':function(_0x2e5935,_0x2ec02f,_0x2a4930,_0x253049,_0xa630ea,_0xf4a9b7,_0xfc25eb){return _0x2e5935(_0x2ec02f,_0x2a4930,_0x253049,_0xa630ea,_0xf4a9b7,_0xfc25eb);},'vgMgl':function(_0x473c31,_0x2ec745,_0x318f04){return _0x473c31(_0x2ec745,_0x318f04);},'khcbq':function(_0x29e31c,_0x19887f,_0x5355b8){return _0x29e31c(_0x19887f,_0x5355b8);},'tonAd':_0x33567b(0xa8),'ZdhFR':function(_0x4fc0fb,_0x2d1f27){return _0x4fc0fb===_0x2d1f27;},'Tkndx':_0x33567b(0x9a),'DaByo':function(_0x9cf5fb,_0x5f1a5e,_0x531850,_0x544dce,_0x288274,_0xa5b5e1,_0x5f48f2){return _0x9cf5fb(_0x5f1a5e,_0x531850,_0x544dce,_0x288274,_0xa5b5e1,_0x5f48f2);},'VUibZ':_0x33567b(0xe4),'QglFk':function(_0x22a0c1,_0xa602ba){return _0x22a0c1===_0xa602ba;},'CNsVI':_0x33567b(0xef),'lYTLg':_0x33567b(0xe0)};let _0x2c8369;try{!_0x3aa26f[_0x33567b(0xd3)]&&(logger[_0x33567b(0xa2)](_0x41ec46[_0x33567b(0xc3)]),process['exit'](0x1));!fs[_0x33567b(0xbb)](_0x41ec46['IKyyz'](getCredentialsPath))&&(logger['error'](_0x41ec46[_0x33567b(0xb2)]),await _0x41ec46[_0x33567b(0xc0)](sendInstrumentationEvent,_0x3aa26f,_0x41ec46[_0x33567b(0xb0)],messageTypes[_0x33567b(0xea)],_0x41ec46[_0x33567b(0xf0)],null,_0x3aa26f),process[_0x33567b(0xd0)](0x1));logger['info'](_0x33567b(0x9f)+_0x3aa26f[_0x33567b(0xd3)]),await _0x41ec46[_0x33567b(0xc0)](sendInstrumentationEvent,_0x3aa26f,_0x41ec46[_0x33567b(0xb0)],messageTypes['INFO'],null,null,_0x3aa26f);const _0x4e9152=JSON[_0x33567b(0xd6)](fs[_0x33567b(0xb7)](_0x41ec46[_0x33567b(0xab)](getCredentialsPath)));global_registry[_0x33567b(0x92)]=_0x4e9152[_0x33567b(0xaf)][_0x33567b(0xe9)],global_registry[_0x33567b(0xbd)]=_0x4e9152[_0x33567b(0xaf)][_0x33567b(0xcd)];const _0x568333=WS_ENDPOINT[_0x33567b(0xdb)](_0x41ec46['NHfdc'],_0x4e9152[_0x33567b(0xaf)][_0x33567b(0xe9)])[_0x33567b(0xdb)](_0x41ec46[_0x33567b(0xce)],_0x4e9152['Browserstack'][_0x33567b(0xcd)]),_0x582221={};_0x582221[_0x33567b(0xa7)]=ws,_0x582221[_0x33567b(0xc1)]=0x36ee80,_0x2c8369=new ReconnectingWebSocket(_0x568333,[],_0x582221),logger[_0x33567b(0x94)](_0x41ec46['TRPJv']),webSocketUtils['addListeners'](_0x2c8369,_0x3aa26f[_0x33567b(0xd2)],_0x3aa26f[_0x33567b(0xcd)]);const [_0x1d9f16,_0x161a82]=await _0x41ec46[_0x33567b(0xae)](getGridDetails,_0x4e9152['Browserstack'][_0x33567b(0xe9)],_0x4e9152[_0x33567b(0xaf)][_0x33567b(0xcd)],_0x3aa26f['gridId']);if(_0x161a82){const _0xc54c85=_0x161a82[_0x33567b(0x9b)];global_registry['cloudProvider']=_0xc54c85[_0x33567b(0xc2)],global_registry[_0x33567b(0xe3)]=_0xc54c85['region'],global_registry[_0x33567b(0xad)]=_0xc54c85[_0x33567b(0xad)];const _0x58a91f=await _0x41ec46[_0x33567b(0xbf)](getCloudProviderObject,_0xc54c85[_0x33567b(0xc2)],_0xc54c85[_0x33567b(0xad)],_0xc54c85[_0x33567b(0xd4)],_0x2c8369,webSocketUtils,_0x3aa26f),[_0x254b79,_0x50cf05,_0x317607,_0x4a44dc,_0x56b0a9,_0x55d304]=await _0x41ec46[_0x33567b(0xe6)](createK8sClient,_0x58a91f,_0x3aa26f[_0x33567b(0xaa)]);await _0x41ec46[_0x33567b(0xbc)](scaleUpHubDeployment,_0x50cf05,_0xc54c85[_0x33567b(0xd4)]),logger[_0x33567b(0x9b)](_0x41ec46[_0x33567b(0xa9)]),process[_0x33567b(0xd0)](0x0);}_0x41ec46[_0x33567b(0xac)](_0x1d9f16[_0x33567b(0x9c)],0x191)&&(logger[_0x33567b(0xa2)](_0x41ec46['Tkndx']),await _0x41ec46[_0x33567b(0xc6)](sendInstrumentationEvent,_0x3aa26f,_0x41ec46[_0x33567b(0xb0)],messageTypes[_0x33567b(0xea)],_0x41ec46[_0x33567b(0xdc)],null,_0x3aa26f),process[_0x33567b(0xd0)](0x1)),_0x41ec46[_0x33567b(0xa0)](_0x1d9f16['statusCode'],0x190)&&(logger[_0x33567b(0xa2)](JSON['parse'](_0x1d9f16['body'])[_0x33567b(0xe2)]),await _0x41ec46[_0x33567b(0xc0)](sendInstrumentationEvent,_0x3aa26f,_0x41ec46[_0x33567b(0xb0)],messageTypes['ERROR'],_0x41ec46[_0x33567b(0xeb)],null,_0x3aa26f),process[_0x33567b(0xd0)](0x1)),logger[_0x33567b(0xa2)](_0x33567b(0xa1)+JSON[_0x33567b(0xd1)](_0x1d9f16)),await _0x41ec46[_0x33567b(0xc6)](sendInstrumentationEvent,_0x3aa26f,_0x41ec46[_0x33567b(0xb0)],messageTypes[_0x33567b(0xea)],_0x41ec46[_0x33567b(0xd9)],_0x1d9f16,_0x3aa26f),process['exit'](0x1);}catch(_0x3c8850){const _0x3749ac='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x3c8850+'\x20\x0a'+JSON[_0x33567b(0xd1)](_0x3c8850[_0x33567b(0x93)])+'\x20';logger[_0x33567b(0xa2)](_0x3749ac),process[_0x33567b(0xd0)](0x1);}};
|
package/ats/src/commands/stop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x5b38d7=a20_0x3de9;function a20_0x21e9(){const _0x44777a=['40rYPWcj','epilogue','builder','479325zQHBYe','7878244DJkCBn','usage','stop_commands','32yDWEzw','7LzXvCS','HFJut','2456TMhSLB','865220BVYDKA','29871gPFvIA','Stop\x20a\x20running\x20Automation\x20grid.','demandCommand','commandDir','7107495KFHshq','4282188CSDQVX','help','desc','handler','../config/constants','stop','1713284farOmv'];a20_0x21e9=function(){return _0x44777a;};return a20_0x21e9();}(function(_0x4c3805,_0x5dc3f5){const _0x5a3e8e=a20_0x3de9,_0x3b0252=_0x4c3805();while(!![]){try{const _0x1d05bf=parseInt(_0x5a3e8e(0x125))/0x1+parseInt(_0x5a3e8e(0x131))/0x2+parseInt(_0x5a3e8e(0x135))/0x3*(-parseInt(_0x5a3e8e(0x139))/0x4)+parseInt(_0x5a3e8e(0x12a))/0x5+parseInt(_0x5a3e8e(0x12b))/0x6*(parseInt(_0x5a3e8e(0x13a))/0x7)+parseInt(_0x5a3e8e(0x124))/0x8*(parseInt(_0x5a3e8e(0x126))/0x9)+parseInt(_0x5a3e8e(0x132))/0xa*(-parseInt(_0x5a3e8e(0x136))/0xb);if(_0x1d05bf===_0x5dc3f5)break;else _0x3b0252['push'](_0x3b0252['shift']());}catch(_0x2d67be){_0x3b0252['push'](_0x3b0252['shift']());}}}(a20_0x21e9,0xb2f30));function a20_0x3de9(_0x14a746,_0x26f454){const _0x21e927=a20_0x21e9();return a20_0x3de9=function(_0x3de98d,_0x33adfa){_0x3de98d=_0x3de98d-0x123;let _0x5c2f33=_0x21e927[_0x3de98d];return _0x5c2f33;},a20_0x3de9(_0x14a746,_0x26f454);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x5b38d7(0x12f));exports['command']=a20_0x5b38d7(0x130),exports[a20_0x5b38d7(0x12d)]=a20_0x5b38d7(0x127),exports[a20_0x5b38d7(0x134)]=function(_0xdf9134){const _0x76fbb9=a20_0x5b38d7,_0x1f2209={};_0x1f2209[_0x76fbb9(0x123)]=_0x76fbb9(0x138),_0x1f2209['hSldn']=_0x76fbb9(0x12c);const _0x493182=_0x1f2209;return _0xdf9134[_0x76fbb9(0x137)](HELP_HEADER_MESSAGE['stop'])[_0x76fbb9(0x133)](HELP_FOOTER_MESSAGE)[_0x76fbb9(0x129)](_0x493182[_0x76fbb9(0x123)])[_0x76fbb9(0x128)]()['recommendCommands']()['strict']()[_0x76fbb9(0x12c)](_0x493182['hSldn']);},exports[a20_0x5b38d7(0x12e)]=function(_0x25359a){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a21_0x2a9c(_0xc80812,_0x50ff9d){const _0x1ccb1e=a21_0x1ccb();return a21_0x2a9c=function(_0x2a9c1a,_0x510a72){_0x2a9c1a=_0x2a9c1a-0x15c;let _0x2d3740=_0x1ccb1e[_0x2a9c1a];return _0x2d3740;},a21_0x2a9c(_0xc80812,_0x50ff9d);}const a21_0x2d95fe=a21_0x2a9c;(function(_0x1e5d4b,_0x232f71){const _0x11b1b7=a21_0x2a9c,_0x5ba012=_0x1e5d4b();while(!![]){try{const _0x2741fa=parseInt(_0x11b1b7(0x1b4))/0x1+-parseInt(_0x11b1b7(0x18d))/0x2*(-parseInt(_0x11b1b7(0x182))/0x3)+-parseInt(_0x11b1b7(0x183))/0x4*(-parseInt(_0x11b1b7(0x1b9))/0x5)+parseInt(_0x11b1b7(0x1b1))/0x6*(parseInt(_0x11b1b7(0x1ac))/0x7)+-parseInt(_0x11b1b7(0x16d))/0x8*(parseInt(_0x11b1b7(0x1a9))/0x9)+-parseInt(_0x11b1b7(0x187))/0xa+-parseInt(_0x11b1b7(0x18c))/0xb*(parseInt(_0x11b1b7(0x1aa))/0xc);if(_0x2741fa===_0x232f71)break;else _0x5ba012['push'](_0x5ba012['shift']());}catch(_0x2c53dd){_0x5ba012['push'](_0x5ba012['shift']());}}}(a21_0x1ccb,0x24943));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x2d95fe(0x1b5)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x2d95fe(0x185)),{logger}=require(a21_0x2d95fe(0x1a6)),{getCredentialsPath,getGridDetails}=require(a21_0x2d95fe(0x171)),{scaleDownHubDeployment}=require(a21_0x2d95fe(0x1a4)),{sendInstrumentationEvent}=require(a21_0x2d95fe(0x1bb)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x2d95fe(0x192)),{getCloudProviderObject}=require(a21_0x2d95fe(0x1b0));function a21_0x1ccb(){const _0x332ac8=['<UsernamePlaceholder>','type','ApxiJ','clusterRegion','dGHpR','cloudProvider','Qksmk','Grid\x20stoppped.','TzsMr','string','RNoKr','Skip\x20insecure\x20cert\x20verification.','lOjzf','stop','3vArvtS','234116emhcsJ','region','../../config/constants','options','1026180OcMbPC','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','AhgrP','replace','ZIJan','714967GrqPAM','325894uhVJCf','connectionTimeout','usage','addListeners','invalid-grid-id','../../utils/createk8sClient','stack','ERROR','jdjpD','readFileSync','HSiTd','szJzm','skipTlsCertVerify','CRLic','gAoRn','Stopping\x20grid\x20','body','clnbH','existsSync','description','clusterName','RcitE','statusCode','../../utils/gridComponents','gridId','../../config/logger','Adding\x20Websocket\x20listeners','gnwDA','1392003OsTheX','24ksttxn','command','6482XjOvte','debug','info','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','../../cloudproviders/utils','198ZoGquc','Xgdym','server-error','168014OmfVIY','reconnecting-websocket','WDjKB','exit','boolean','15mLdwDQ','ocuuU','../../utils/instrumentationUtils','jhSnV','user','OKAKO','epilogue','username','PZiZj','Stop\x20a\x20running\x20Automation\x20grid.','message','handler','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','help','parse','grid','QHwEe','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','Browserstack','unauthorised','stop-grid-called','8qltydv','error','default','password','../../utils/utilityMethods','skip-tls-cert-verify','name'];a21_0x1ccb=function(){return _0x332ac8;};return a21_0x1ccb();}exports[a21_0x2d95fe(0x1ab)]=a21_0x2d95fe(0x167),exports['desc']=a21_0x2d95fe(0x161),exports['builder']=function(_0x4d7b68){const _0x5de81e=a21_0x2d95fe,_0x7cb03={};_0x7cb03[_0x5de81e(0x1a8)]=_0x5de81e(0x164),_0x7cb03[_0x5de81e(0x1a2)]=_0x5de81e(0x17d),_0x7cb03[_0x5de81e(0x17e)]=_0x5de81e(0x17f),_0x7cb03[_0x5de81e(0x19a)]=_0x5de81e(0x1b8),_0x7cb03[_0x5de81e(0x160)]=_0x5de81e(0x165);const _0x2e3048=_0x7cb03,_0x2199b7={};_0x2199b7[_0x5de81e(0x1a0)]=_0x2e3048['gnwDA'],_0x2199b7[_0x5de81e(0x175)]=_0x2e3048[_0x5de81e(0x1a2)];const _0x2c94fb={};_0x2c94fb[_0x5de81e(0x1a0)]=_0x2e3048[_0x5de81e(0x17e)],_0x2c94fb[_0x5de81e(0x175)]=_0x2e3048[_0x5de81e(0x19a)],_0x2c94fb[_0x5de81e(0x16f)]=![];const _0x4d11be={};return _0x4d11be['grid-id']=_0x2199b7,_0x4d11be[_0x5de81e(0x172)]=_0x2c94fb,_0x4d7b68[_0x5de81e(0x18f)](HELP_HEADER_MESSAGE[_0x5de81e(0x181)])[_0x5de81e(0x15e)](HELP_FOOTER_MESSAGE)[_0x5de81e(0x186)](_0x4d11be)[_0x5de81e(0x165)](_0x2e3048[_0x5de81e(0x160)])['argv'];},exports[a21_0x2d95fe(0x163)]=async function(_0x505974){const _0x1e95bc=a21_0x2d95fe,_0x16251e={'QHwEe':_0x1e95bc(0x169),'AhgrP':function(_0x29ba92){return _0x29ba92();},'clnbH':_0x1e95bc(0x188),'jdjpD':function(_0x1ea173,_0x5376c1,_0x20b292,_0x1cbc49,_0x311e75,_0x208a73,_0x524228){return _0x1ea173(_0x5376c1,_0x20b292,_0x1cbc49,_0x311e75,_0x208a73,_0x524228);},'jhSnV':_0x1e95bc(0x16c),'QdnBt':'init-not-called','dGHpR':function(_0x375dca,_0x28593a,_0x3e90b6,_0xf0cc30,_0x3a8d20,_0x17a646,_0x4881ae){return _0x375dca(_0x28593a,_0x3e90b6,_0xf0cc30,_0x3a8d20,_0x17a646,_0x4881ae);},'gAoRn':function(_0x2ea4b5){return _0x2ea4b5();},'szJzm':_0x1e95bc(0x174),'ZIJan':'<PasswordPlaceholder>','ApxiJ':_0x1e95bc(0x1a7),'HSiTd':function(_0x218439,_0x190742,_0x567352,_0x1e35e9){return _0x218439(_0x190742,_0x567352,_0x1e35e9);},'OKAKO':function(_0x43e346,_0x4c3114,_0x3bb4cf,_0x381e31,_0x2916eb,_0x15cc1f,_0x4f1b7e){return _0x43e346(_0x4c3114,_0x3bb4cf,_0x381e31,_0x2916eb,_0x15cc1f,_0x4f1b7e);},'ocuuU':function(_0x38b7eb,_0x23cda5,_0x5c8cd7){return _0x38b7eb(_0x23cda5,_0x5c8cd7);},'LsdqL':function(_0xb03875,_0xdfffbb,_0x9283a9){return _0xb03875(_0xdfffbb,_0x9283a9);},'wQQok':_0x1e95bc(0x17b),'lOjzf':function(_0x5a4c31,_0x28cf51){return _0x5a4c31===_0x28cf51;},'Qksmk':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','xeBYm':_0x1e95bc(0x16b),'WDjKB':_0x1e95bc(0x191),'TzsMr':function(_0x1f8a2a,_0x1cd9a8,_0x1e723f,_0x2657af,_0xdb5c25,_0x14cba7,_0x5a89f7){return _0x1f8a2a(_0x1cd9a8,_0x1e723f,_0x2657af,_0xdb5c25,_0x14cba7,_0x5a89f7);},'Xgdym':_0x1e95bc(0x1b3)};let _0x4f8143;try{!_0x505974[_0x1e95bc(0x1a5)]&&(logger[_0x1e95bc(0x16e)](_0x16251e[_0x1e95bc(0x168)]),process[_0x1e95bc(0x1b7)](0x1));!fs[_0x1e95bc(0x19f)](_0x16251e[_0x1e95bc(0x189)](getCredentialsPath))&&(logger[_0x1e95bc(0x16e)](_0x16251e[_0x1e95bc(0x19e)]),await _0x16251e['jdjpD'](sendInstrumentationEvent,_0x505974,_0x16251e['jhSnV'],messageTypes[_0x1e95bc(0x194)],_0x16251e['QdnBt'],null,_0x505974),process[_0x1e95bc(0x1b7)](0x1));logger[_0x1e95bc(0x1ae)](_0x1e95bc(0x19c)+_0x505974[_0x1e95bc(0x1a5)]),await _0x16251e[_0x1e95bc(0x178)](sendInstrumentationEvent,_0x505974,_0x16251e[_0x1e95bc(0x1bc)],messageTypes['INFO'],null,null,_0x505974);const _0x348cf2=JSON[_0x1e95bc(0x166)](fs[_0x1e95bc(0x196)](_0x16251e[_0x1e95bc(0x19b)](getCredentialsPath)));global_registry['bstackUsername']=_0x348cf2['Browserstack'][_0x1e95bc(0x15f)],global_registry['bstackAccesskey']=_0x348cf2['Browserstack']['password'];const _0x4b25c3=WS_ENDPOINT[_0x1e95bc(0x18a)](_0x16251e[_0x1e95bc(0x198)],_0x348cf2[_0x1e95bc(0x16a)][_0x1e95bc(0x15f)])['replace'](_0x16251e[_0x1e95bc(0x18b)],_0x348cf2[_0x1e95bc(0x16a)]['password']),_0x3f80ef={};_0x3f80ef['WebSocket']=ws,_0x3f80ef[_0x1e95bc(0x18e)]=0x36ee80,_0x4f8143=new ReconnectingWebSocket(_0x4b25c3,[],_0x3f80ef),logger[_0x1e95bc(0x1ad)](_0x16251e[_0x1e95bc(0x176)]),webSocketUtils[_0x1e95bc(0x190)](_0x4f8143,_0x505974[_0x1e95bc(0x15c)],_0x505974['password']);const [_0x3c19cf,_0x3090b6]=await _0x16251e[_0x1e95bc(0x197)](getGridDetails,_0x348cf2[_0x1e95bc(0x16a)][_0x1e95bc(0x15f)],_0x348cf2[_0x1e95bc(0x16a)][_0x1e95bc(0x170)],_0x505974[_0x1e95bc(0x1a5)]);if(_0x3090b6){const _0x4b7507=_0x3090b6[_0x1e95bc(0x1ae)];global_registry[_0x1e95bc(0x179)]=_0x4b7507[_0x1e95bc(0x179)],global_registry[_0x1e95bc(0x177)]=_0x4b7507[_0x1e95bc(0x184)],global_registry[_0x1e95bc(0x1a1)]=_0x4b7507[_0x1e95bc(0x1a1)];const _0x4f62a8=await _0x16251e[_0x1e95bc(0x15d)](getCloudProviderObject,_0x4b7507[_0x1e95bc(0x179)],_0x4b7507['clusterName'],_0x4b7507[_0x1e95bc(0x173)],_0x4f8143,webSocketUtils,_0x505974),[_0x515f68,_0x2b22aa,_0x339ab4,_0x53f04d,_0xf79058,_0x16c1f1]=await _0x16251e[_0x1e95bc(0x1ba)](createK8sClient,_0x4f62a8,_0x505974[_0x1e95bc(0x199)]);await _0x16251e['LsdqL'](scaleDownHubDeployment,_0x2b22aa,_0x4b7507[_0x1e95bc(0x173)]),logger[_0x1e95bc(0x1ae)](_0x16251e['wQQok']),process[_0x1e95bc(0x1b7)](0x0);}_0x16251e[_0x1e95bc(0x180)](_0x3c19cf['statusCode'],0x191)&&(logger[_0x1e95bc(0x16e)](_0x16251e[_0x1e95bc(0x17a)]),await _0x16251e[_0x1e95bc(0x195)](sendInstrumentationEvent,_0x505974,_0x16251e[_0x1e95bc(0x1bc)],messageTypes['ERROR'],_0x16251e['xeBYm'],null,_0x505974),process['exit'](0x1)),_0x16251e[_0x1e95bc(0x180)](_0x3c19cf[_0x1e95bc(0x1a3)],0x190)&&(logger[_0x1e95bc(0x16e)](JSON[_0x1e95bc(0x166)](_0x3c19cf[_0x1e95bc(0x19d)])[_0x1e95bc(0x162)]),await _0x16251e[_0x1e95bc(0x15d)](sendInstrumentationEvent,_0x505974,_0x16251e[_0x1e95bc(0x1bc)],messageTypes[_0x1e95bc(0x194)],_0x16251e[_0x1e95bc(0x1b6)],null,_0x505974),process['exit'](0x1)),logger['error'](_0x1e95bc(0x1af)+JSON['stringify'](_0x3c19cf)),await _0x16251e[_0x1e95bc(0x17c)](sendInstrumentationEvent,_0x505974,_0x16251e[_0x1e95bc(0x1bc)],messageTypes[_0x1e95bc(0x194)],_0x16251e[_0x1e95bc(0x1b2)],_0x3c19cf,_0x505974),process[_0x1e95bc(0x1b7)](0x1);}catch(_0x327b3d){const _0x7f0e84='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x327b3d+'\x20\x0a'+JSON['stringify'](_0x327b3d[_0x1e95bc(0x193)])+'\x20';logger[_0x1e95bc(0x16e)](_0x7f0e84),process['exit'](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x373789=a22_0x5ef2;(function(_0x15fd16,_0x55e9c8){const _0xb4c48c=a22_0x5ef2,_0x157fc3=_0x15fd16();while(!![]){try{const _0x2fba8e=parseInt(_0xb4c48c(0x120))/0x1*(-parseInt(_0xb4c48c(0x12b))/0x2)+-parseInt(_0xb4c48c(0x135))/0x3+parseInt(_0xb4c48c(0x168))/0x4+parseInt(_0xb4c48c(0x17b))/0x5+-parseInt(_0xb4c48c(0x160))/0x6*(parseInt(_0xb4c48c(0x15b))/0x7)+parseInt(_0xb4c48c(0x156))/0x8+parseInt(_0xb4c48c(0x176))/0x9;if(_0x2fba8e===_0x55e9c8)break;else _0x157fc3['push'](_0x157fc3['shift']());}catch(_0x318201){_0x157fc3['push'](_0x157fc3['shift']());}}}(a22_0x1383,0xdbdc2),require(a22_0x373789(0x18a))[a22_0x373789(0x123)]());let gridURL=a22_0x373789(0x188),bsApiUrl=a22_0x373789(0x13e),agApiUrl=a22_0x373789(0x14a);function a22_0x1383(){const _0x2a07a8=['Key','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','cliRunStarted','1646505NnMWpE','BS_API_URL','toLowerCase','split','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','TRIAL_GRID_URL','grid-preprod.bsstag.com','create','browserstack-turboscale-grid','api.browserstack.com','Value','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','CLUSTER','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','grid-devhst.bsstag.com','stag','WS_EVENTS','pre-prod','CLUSTER_HUB_HA_STACK_NAME','GRID_URL','BrowserStack-Automate-TurboScale','grid-api.browserstack.com','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','LOG','success','aws','wss://','init','gcp','BSTACK-ATS-CLUSTER','RAW_ARGS_REGEX','HST_CLUSTER_TAGS','10883080lTnftK','WS_ENDPOINT','pre-check','LINK_MESSAGE','browserstack:managedBy','21ckhJpf','GCP','IAM_USER_NAME','BSTACK-ATS-CLUSTER-AUTOSCALER','root','810462zonFqe','INFO','api-preprod.bsstag.com','stop','info','grid-api-preprod.bsstag.com','[REDACTED]','CLI_ARGS_REGEX','5014560YSRLiJ','staging','TURBOSCALE_CUSTOM_TAGS','AWS','grid','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','log','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','gridUrl','DEFAULT_CLUSTER_DETAILS','global_registry','messageTypes','forEach','CLUSTER_AUTOSCALER_STACK_NAME','3144258osjfGF','BrowserStack','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','ERROR','api-devhst.bsstag.com','1405120YeLooJ','WARNING','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','us-east-1','gridProfile','MessageDescription','warning','list','REGION','TURBOSCALE_DEPLOYMENT','grid-api-devhst.bsstag.com','start','DASHBOARD_ENDPOINT','grid.browserstack.com','browserstack:service','dotenv','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','high-scale-grid','error','REDACTED','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','1231LcIcMC','env','CLI_RUN_STARTED','config','HELP_HEADER_MESSAGE','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','resourceInfo','cliRunFinished','DEFAULT_GRID_NAME','CP_CONFIG_FILE','COMMON_HST_TAGS','2258nbsuYc','azure','AG_API_URL','UNKNOWN','CLI_RUN_FINISHED','high-scale-grid-cluster','credentials'];a22_0x1383=function(){return _0x2a07a8;};return a22_0x1383();}const _env=(process[a22_0x373789(0x121)]['BROWSERSTACK_ENV']||'prod')[a22_0x373789(0x137)]();if(_env===a22_0x373789(0x169)||_env===a22_0x373789(0x144))gridURL=a22_0x373789(0x143),bsApiUrl=a22_0x373789(0x17a),agApiUrl=a22_0x373789(0x185);else(_env==='preprod'||_env===a22_0x373789(0x146))&&(gridURL=a22_0x373789(0x13b),bsApiUrl=a22_0x373789(0x162),agApiUrl=a22_0x373789(0x165));exports[a22_0x373789(0x187)]=process[a22_0x373789(0x121)][a22_0x373789(0x187)]||gridURL,exports[a22_0x373789(0x136)]=process['env']['BS_API_URL']||bsApiUrl,exports[a22_0x373789(0x12d)]=process[a22_0x373789(0x121)]['AG_API_URL']||agApiUrl,exports[a22_0x373789(0x157)]=a22_0x373789(0x150)+this[a22_0x373789(0x12d)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x373789(0x129)]=a22_0x373789(0x131),exports[a22_0x373789(0x15d)]='BrowserStackIAMUser',exports[a22_0x373789(0x128)]=a22_0x373789(0x18c),exports[a22_0x373789(0x16b)]=a22_0x373789(0x14f),exports['CLUSTER_DEP_STACK_NAME']=a22_0x373789(0x153),exports[a22_0x373789(0x175)]=a22_0x373789(0x15e),exports[a22_0x373789(0x147)]='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x373789(0x184)]=a22_0x373789(0x13d),exports['AZURE']=a22_0x373789(0x12c),exports[a22_0x373789(0x15c)]=a22_0x373789(0x152),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x373789(0x16b)],this['AZURE'],this['GCP']];const a22_0xbd6986={};a22_0xbd6986[a22_0x373789(0x132)]=a22_0x373789(0x15a),a22_0xbd6986[a22_0x373789(0x13f)]='BrowserStack';const a22_0x2422ff={};a22_0x2422ff[a22_0x373789(0x132)]=a22_0x373789(0x189),a22_0x2422ff[a22_0x373789(0x13f)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0xbd6986,a22_0x2422ff];if(process[a22_0x373789(0x121)][a22_0x373789(0x16a)]){const parsedTags=process[a22_0x373789(0x121)][a22_0x373789(0x16a)]['split'](',');parsedTags[a22_0x373789(0x174)](_0x405ba5=>{const _0x1f3eb5=a22_0x373789,_0x5d1022=_0x405ba5[_0x1f3eb5(0x138)](':'),_0x27da29={};_0x27da29['Key']=_0x5d1022[0x0],_0x27da29[_0x1f3eb5(0x13f)]=_0x5d1022[0x1],common_hst_tags_list['push'](_0x27da29);});}exports[a22_0x373789(0x12a)]=common_hst_tags_list;const a22_0x2dc635={};a22_0x2dc635[a22_0x373789(0x15a)]=a22_0x373789(0x177),a22_0x2dc635['browserstack:service']=a22_0x373789(0x149),exports[a22_0x373789(0x155)]=a22_0x2dc635,exports['SUPPORTED_CLOUD_PROVIDERS']=[this['AWS']];const a22_0xe29d16={};a22_0xe29d16[a22_0x373789(0x14d)]=a22_0x373789(0x16e),a22_0xe29d16['RESOURCES']=a22_0x373789(0x126),a22_0xe29d16[a22_0x373789(0x148)]=a22_0x373789(0x170),a22_0xe29d16[a22_0x373789(0x122)]=a22_0x373789(0x134),a22_0xe29d16[a22_0x373789(0x12f)]=a22_0x373789(0x127),exports[a22_0x373789(0x145)]=a22_0xe29d16,exports[a22_0x373789(0x172)]={},exports[a22_0x373789(0x159)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x1ae7e9={};function a22_0x5ef2(_0x7a89e6,_0x3ca436){const _0x13838f=a22_0x1383();return a22_0x5ef2=function(_0x5ef2c6,_0x3d485c){_0x5ef2c6=_0x5ef2c6-0x11f;let _0x1689ac=_0x13838f[_0x5ef2c6];return _0x1689ac;},a22_0x5ef2(_0x7a89e6,_0x3ca436);}a22_0x1ae7e9[a22_0x373789(0x15f)]=a22_0x373789(0x18b)+this[a22_0x373789(0x159)],a22_0x1ae7e9[a22_0x373789(0x151)]=a22_0x373789(0x139)+this[a22_0x373789(0x159)],a22_0x1ae7e9['configure']=a22_0x373789(0x190)+this[a22_0x373789(0x159)],a22_0x1ae7e9[a22_0x373789(0x13c)]=a22_0x373789(0x133)+this[a22_0x373789(0x159)],a22_0x1ae7e9[a22_0x373789(0x182)]={},a22_0x1ae7e9['delete']=a22_0x373789(0x16f)+this[a22_0x373789(0x159)],a22_0x1ae7e9['connect']=a22_0x373789(0x178)+this[a22_0x373789(0x159)],a22_0x1ae7e9[a22_0x373789(0x186)]=a22_0x373789(0x14c)+this[a22_0x373789(0x159)],a22_0x1ae7e9[a22_0x373789(0x163)]=a22_0x373789(0x140)+this[a22_0x373789(0x159)],a22_0x1ae7e9['pre_check']=a22_0x373789(0x125)+this[a22_0x373789(0x159)],a22_0x1ae7e9[a22_0x373789(0x182)][a22_0x373789(0x15f)]=a22_0x373789(0x11f)+this[a22_0x373789(0x159)],a22_0x1ae7e9[a22_0x373789(0x182)][a22_0x373789(0x16c)]=a22_0x373789(0x14b)+this[a22_0x373789(0x159)],a22_0x1ae7e9[a22_0x373789(0x182)][a22_0x373789(0x17f)]=a22_0x373789(0x17d)+this[a22_0x373789(0x159)],exports[a22_0x373789(0x124)]=a22_0x1ae7e9,exports['HELP_FOOTER_MESSAGE']=a22_0x373789(0x142);const a22_0x1257cc={};a22_0x1257cc['SUCCESS']=a22_0x373789(0x14e),a22_0x1257cc[a22_0x373789(0x179)]=a22_0x373789(0x18d),a22_0x1257cc[a22_0x373789(0x161)]=a22_0x373789(0x164),a22_0x1257cc[a22_0x373789(0x17c)]=a22_0x373789(0x181),a22_0x1257cc[a22_0x373789(0x12e)]='unknown',a22_0x1257cc['NULL']=null,exports[a22_0x373789(0x173)]=a22_0x1257cc,exports[a22_0x373789(0x167)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x373789(0x154)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x373789(0x18e)]=a22_0x373789(0x166);const a22_0x12ca54={};a22_0x12ca54['grid-profile']=a22_0x373789(0x18f);const a22_0x2d0c1={};a22_0x2d0c1[a22_0x373789(0x158)]=a22_0x12ca54,exports[a22_0x373789(0x180)]=a22_0x2d0c1,exports[a22_0x373789(0x13a)]=a22_0x373789(0x16d);const a22_0x43d20e={};a22_0x43d20e[a22_0x373789(0x141)]=a22_0x373789(0x130),a22_0x43d20e['CLOUD_PROVIDER']=a22_0x373789(0x14f),a22_0x43d20e[a22_0x373789(0x183)]=a22_0x373789(0x17e),exports[a22_0x373789(0x171)]=a22_0x43d20e;
|
package/ats/src/config/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a23_0xd2ca28=a23_0x3d71;function a23_0x36d1(){const _0x33b60a=['transports','5774868edumux','level','join','9012PcJVEO','YYYY-MM-DD\x20HH:mm:ss','name','usage.log','console.info','70302bxFFdt','File','mkdirSync','215rfMGho','7265740kbjYwO','createLogger','printf','136AUihBi','\x20-\x20','fileLogger','9jQumqW','debug','winston','path','existsSync','timestamp','logger','12iHusPI','Console','29911jpUBVO','message','format','1447254NindfF','events.log','colorize','622101eQFMKM'];a23_0x36d1=function(){return _0x33b60a;};return a23_0x36d1();}(function(_0x1fecd0,_0x4962ea){const _0x56cdb7=a23_0x3d71,_0x1b5660=_0x1fecd0();while(!![]){try{const _0x1383ab=parseInt(_0x56cdb7(0xda))/0x1+parseInt(_0x56cdb7(0xd2))/0x2+parseInt(_0x56cdb7(0xd5))/0x3*(-parseInt(_0x56cdb7(0xcd))/0x4)+parseInt(_0x56cdb7(0xe2))/0x5*(parseInt(_0x56cdb7(0xdf))/0x6)+-parseInt(_0x56cdb7(0xcf))/0x7*(parseInt(_0x56cdb7(0xc3))/0x8)+parseInt(_0x56cdb7(0xc6))/0x9*(parseInt(_0x56cdb7(0xc0))/0xa)+-parseInt(_0x56cdb7(0xd7))/0xb;if(_0x1383ab===_0x4962ea)break;else _0x1b5660['push'](_0x1b5660['shift']());}catch(_0x192878){_0x1b5660['push'](_0x1b5660['shift']());}}}(a23_0x36d1,0xb5792));const winston=require(a23_0xd2ca28(0xc8)),fs=require('fs'),path=require(a23_0xd2ca28(0xc9)),logDir='log';!fs[a23_0xd2ca28(0xca)](logDir)&&fs[a23_0xd2ca28(0xe1)](logDir);const a23_0xdb1407={};a23_0xdb1407['format']=a23_0xd2ca28(0xdb);const a23_0x1938be={};function a23_0x3d71(_0x58ca0b,_0x7323f0){const _0x36d169=a23_0x36d1();return a23_0x3d71=function(_0x3d710a,_0x43a8ec){_0x3d710a=_0x3d710a-0xc0;let _0x4af5b3=_0x36d169[_0x3d710a];return _0x4af5b3;},a23_0x3d71(_0x58ca0b,_0x7323f0);}a23_0x1938be[a23_0xd2ca28(0xd8)]=!![];const a23_0x243fd7={};a23_0x243fd7[a23_0xd2ca28(0xdc)]=a23_0xd2ca28(0xde),exports[a23_0xd2ca28(0xcc)]=new winston[(a23_0xd2ca28(0xc1))]({'format':winston['format']['combine'](winston[a23_0xd2ca28(0xd1)][a23_0xd2ca28(0xcb)](a23_0xdb1407),winston[a23_0xd2ca28(0xd1)][a23_0xd2ca28(0xd4)](a23_0x1938be),winston['format'][a23_0xd2ca28(0xc2)](_0xfff82b=>_0xfff82b[a23_0xd2ca28(0xcb)]+a23_0xd2ca28(0xc4)+_0xfff82b['level']+':\x20'+_0xfff82b[a23_0xd2ca28(0xd0)])),'transports':[new winston[(a23_0xd2ca28(0xd6))][(a23_0xd2ca28(0xce))](a23_0x243fd7),new winston[(a23_0xd2ca28(0xd6))]['File']({'filename':path[a23_0xd2ca28(0xd9)](logDir,a23_0xd2ca28(0xd3)),'level':a23_0xd2ca28(0xc7)})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0xd2ca28(0xe0))]({'filename':path['join'](logDir,a23_0xd2ca28(0xdd)),'level':'debug'})]};exports[a23_0xd2ca28(0xc5)]=new winston[(a23_0xd2ca28(0xc1))](winstonFileLoggerParams);
|
package/ats/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
2
|
+
'use strict';const a24_0x30412a=a24_0x51bd;(function(_0x13f5f8,_0x5499ae){const _0x3cfe9a=a24_0x51bd,_0x4cb944=_0x13f5f8();while(!![]){try{const _0x1cb31c=-parseInt(_0x3cfe9a(0x16f))/0x1*(-parseInt(_0x3cfe9a(0x177))/0x2)+parseInt(_0x3cfe9a(0x16c))/0x3*(parseInt(_0x3cfe9a(0x16a))/0x4)+-parseInt(_0x3cfe9a(0x175))/0x5*(-parseInt(_0x3cfe9a(0x176))/0x6)+-parseInt(_0x3cfe9a(0x16b))/0x7+parseInt(_0x3cfe9a(0x169))/0x8+-parseInt(_0x3cfe9a(0x165))/0x9+-parseInt(_0x3cfe9a(0x168))/0xa;if(_0x1cb31c===_0x5499ae)break;else _0x4cb944['push'](_0x4cb944['shift']());}catch(_0x479fa5){_0x4cb944['push'](_0x4cb944['shift']());}}}(a24_0x2656,0x4ac32));function a24_0x51bd(_0x1b9caa,_0xb9afbe){const _0x265635=a24_0x2656();return a24_0x51bd=function(_0x51bd3a,_0x423170){_0x51bd3a=_0x51bd3a-0x165;let _0x459cd2=_0x265635[_0x51bd3a];return _0x459cd2;},a24_0x51bd(_0x1b9caa,_0xb9afbe);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process['env'][a24_0x30412a(0x178)]=0x1;function a24_0x2656(){const _0x1caeae=['pygzV','demandCommand','2WCKUXW','root','epilogue','exports','help','commandDir','1760AfVKTr','10344DmCQGT','247582ceWTxF','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','2572137pSGFsw','commands','usage','5432240Elutvh','1139328vrsHJY','282760BbEBbW','20881RGPqCz','6AOgbAa'];a24_0x2656=function(){return _0x1caeae;};return a24_0x2656();}function run(_0x1cab31){const _0xe3584b=a24_0x30412a,_0x222ec1={};_0x222ec1[_0xe3584b(0x16d)]=_0xe3584b(0x166),_0x222ec1['WlqrN']=_0xe3584b(0x173);const _0x2d0607=_0x222ec1;_0x1cab31[_0xe3584b(0x167)](HELP_HEADER_MESSAGE[_0xe3584b(0x170)])[_0xe3584b(0x174)](_0x2d0607[_0xe3584b(0x16d)])[_0xe3584b(0x16e)]()[_0xe3584b(0x173)](_0x2d0607['WlqrN'])[_0xe3584b(0x171)](HELP_FOOTER_MESSAGE);}module[a24_0x30412a(0x172)]=run;
|