browserstack-node-sdk 1.57.2 → 1.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/generated/sdk-messages_pb.d.ts +376 -36
- package/generated/sdk-messages_pb.js +2955 -279
- package/generated/sdk_grpc_pb.d.ts +5 -0
- package/generated/sdk_grpc_pb.js +51 -0
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -0
- package/src/bin/jasmine/command.js +2 -0
- package/src/bin/jasmine/test.setup.js +1 -0
- package/src/bin/jasmine/testRunMap.js +1 -0
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/testcafe/a11y-runner.js +1 -0
- package/src/bin/testcafe/command.js +2 -0
- package/src/bin/testcafe/reporter/index.js +1 -0
- package/src/bin/testcafe/reporter/tcUtils.js +1 -0
- package/src/bin/testcafe/session-registry.js +1 -0
- package/src/bin/testcafe/stdout-interceptor.js +1 -0
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -0
- package/src/bin/testcafe/w3c-driver.js +1 -0
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -0
- package/src/bin/v2/framework/testcafeTestFramework.js +1 -0
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.js +1 -0
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/driverInitErrorReporter.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15_0x1597c2=a15_0x339b;function a15_0x339b(_0x3544c7,_0x24ba09){const _0x8379b7=a15_0x8379();return a15_0x339b=function(_0x339b21,_0x49a156){_0x339b21=_0x339b21-0x1ab;let _0x54f866=_0x8379b7[_0x339b21];return _0x54f866;},a15_0x339b(_0x3544c7,_0x24ba09);}(function(_0x23cf43,_0x15663c){const _0x45aeac=a15_0x339b,_0x14773e=_0x23cf43();while(!![]){try{const _0x119d70=parseInt(_0x45aeac(0x1c2))/0x1*(parseInt(_0x45aeac(0x1de))/0x2)+-parseInt(_0x45aeac(0x1c1))/0x3+parseInt(_0x45aeac(0x1fb))/0x4+-parseInt(_0x45aeac(0x1d4))/0x5+-parseInt(_0x45aeac(0x1ec))/0x6*(parseInt(_0x45aeac(0x1e7))/0x7)+parseInt(_0x45aeac(0x1c4))/0x8*(parseInt(_0x45aeac(0x1ad))/0x9)+-parseInt(_0x45aeac(0x1d9))/0xa;if(_0x119d70===_0x15663c)break;else _0x14773e['push'](_0x14773e['shift']());}catch(_0x586100){_0x14773e['push'](_0x14773e['shift']());}}}(a15_0x8379,0xd11be));const fs=require('fs'),got=require(a15_0x1597c2(0x1d7)),{table}=require(a15_0x1597c2(0x1c5)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x1597c2(0x1fe)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x1597c2(0x1b3));exports[a15_0x1597c2(0x1f9)]=a15_0x1597c2(0x1b4),exports[a15_0x1597c2(0x1cb)]=a15_0x1597c2(0x1dd),exports[a15_0x1597c2(0x1e5)]=function(_0x106e04){const _0x3a0b5b=a15_0x1597c2,_0x4a723a={};_0x4a723a['doUik']=_0x3a0b5b(0x1bf),_0x4a723a['VDVYa']=_0x3a0b5b(0x1be),_0x4a723a[_0x3a0b5b(0x1fc)]=_0x3a0b5b(0x1ea);const _0x25be5c=_0x4a723a,_0x12ec0e={};_0x12ec0e[_0x3a0b5b(0x1cd)]=_0x25be5c[_0x3a0b5b(0x1ac)],_0x12ec0e['type']=_0x25be5c[_0x3a0b5b(0x1d8)];const _0xdb610={};return _0xdb610[_0x3a0b5b(0x1dc)]=_0x12ec0e,_0x106e04[_0x3a0b5b(0x1bc)](HELP_HEADER_MESSAGE['list'][_0x3a0b5b(0x1f3)])[_0x3a0b5b(0x1f5)](HELP_FOOTER_MESSAGE)[_0x3a0b5b(0x1b0)](_0xdb610)[_0x3a0b5b(0x1ea)](_0x25be5c[_0x3a0b5b(0x1fc)])[_0x3a0b5b(0x1ca)];},exports[a15_0x1597c2(0x1df)]=async function(_0x3afe2c){const _0x1f26a1=a15_0x1597c2,_0x9fc107={'xwgSG':function(_0x60159){return _0x60159();},'xrytq':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','cEjPm':function(_0x2163d6,_0x4113d6,_0x3027c9,_0x5dd1a3,_0x2f8e45,_0x1b90d8,_0x39d9aa){return _0x2163d6(_0x4113d6,_0x3027c9,_0x5dd1a3,_0x2f8e45,_0x1b90d8,_0x39d9aa);},'eloLg':_0x1f26a1(0x1c3),'CpJQc':'init-not-called','GcZhj':function(_0x16ae4a){return _0x16ae4a();},'MPsMI':_0x1f26a1(0x1ba),'lSadB':function(_0x59acd3,_0x3d0322,_0x3ae824){return _0x59acd3(_0x3d0322,_0x3ae824);},'MheEK':function(_0x36ec86,_0x4441cd,_0x5e866d){return _0x36ec86(_0x4441cd,_0x5e866d);},'raoky':function(_0x38277f,_0xaf4022){return _0x38277f!==_0xaf4022;},'zXbkU':function(_0x30ca84,_0x23d51a){return _0x30ca84===_0x23d51a;},'sVcEJ':_0x1f26a1(0x1af),'Fkrea':'grid-id','YvxHA':'grid-name','XcmHs':_0x1f26a1(0x200),'ZxcIJ':_0x1f26a1(0x1b2),'Pwfbh':_0x1f26a1(0x1b9),'CahKy':_0x1f26a1(0x1b5),'NMKOw':function(_0x19cf7a,_0x5bd5a7){return _0x19cf7a(_0x5bd5a7);},'PhvTb':function(_0x319268,_0x4a5a39){return _0x319268===_0x4a5a39;},'gcBmE':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','cedch':function(_0x2e36e4,_0x53a8bc,_0x4b1ec5,_0x1315a7,_0x43a0cc,_0xe4816e,_0x2e9c6c){return _0x2e36e4(_0x53a8bc,_0x4b1ec5,_0x1315a7,_0x43a0cc,_0xe4816e,_0x2e9c6c);},'EFxGh':_0x1f26a1(0x1d6),'bvoTv':function(_0xf42de8,_0x4485e5,_0x31842e,_0x455f20,_0x4ddf22,_0xb00a27,_0x159801){return _0xf42de8(_0x4485e5,_0x31842e,_0x455f20,_0x4ddf22,_0xb00a27,_0x159801);},'KumZh':_0x1f26a1(0x1e0),'PJTQS':_0x1f26a1(0x1ef)};try{global_registry['requestId']=_0x9fc107[_0x1f26a1(0x1e8)](uuidv4);!fs[_0x1f26a1(0x1d0)](_0x9fc107[_0x1f26a1(0x1e8)](getCredentialsPath))&&(console[_0x1f26a1(0x1ed)](_0x9fc107['xrytq']),await _0x9fc107['cEjPm'](sendInstrumentationEvent,_0x3afe2c,_0x9fc107[_0x1f26a1(0x1eb)],messageTypes[_0x1f26a1(0x1fd)],_0x9fc107[_0x1f26a1(0x1f6)],null,_0x3afe2c),process[_0x1f26a1(0x1bb)](0x1));const _0x15abf7=JSON[_0x1f26a1(0x1f0)](fs[_0x1f26a1(0x1f8)](_0x9fc107[_0x1f26a1(0x1c8)](getCredentialsPath)));let _0xa234f2=_0x1f26a1(0x1ee)+AG_API_URL+_0x1f26a1(0x1da);_0x3afe2c[_0x1f26a1(0x1d1)]&&(_0xa234f2=_0x1f26a1(0x1ee)+AG_API_URL+'/packages/cli/get-all-grids');const _0x34c628={'method':_0x9fc107[_0x1f26a1(0x1c6)],'headers':_0x9fc107['lSadB'](getAuthHeader,_0x15abf7[_0x1f26a1(0x1b7)]['username'],_0x15abf7['Browserstack']['password']),'throwHttpErrors':![]};global_registry[_0x1f26a1(0x1c9)]=_0x15abf7[_0x1f26a1(0x1b7)]['username'],global_registry[_0x1f26a1(0x1e9)]=_0x15abf7[_0x1f26a1(0x1b7)][_0x1f26a1(0x1fa)],_0x9fc107['cEjPm'](sendInstrumentationEvent,_0x3afe2c,_0x9fc107[_0x1f26a1(0x1eb)],messageTypes[_0x1f26a1(0x1f4)],null,null,_0x3afe2c);const _0x57e0db=await _0x9fc107[_0x1f26a1(0x1ff)](got,_0xa234f2,_0x34c628);if(_0x9fc107['raoky'](_0x57e0db,null)&&_0x9fc107[_0x1f26a1(0x1f7)](_0x57e0db,undefined)&&_0x9fc107['zXbkU'](_0x57e0db[_0x1f26a1(0x1ab)],0xc8)){const _0x373274=JSON[_0x1f26a1(0x1f0)](_0x57e0db[_0x1f26a1(0x1bd)]);console[_0x1f26a1(0x1c7)](_0x9fc107[_0x1f26a1(0x1d2)]);const _0x3490a3=[];_0x3490a3[_0x1f26a1(0x1ce)]([_0x9fc107[_0x1f26a1(0x1f1)],_0x9fc107[_0x1f26a1(0x1e3)],_0x9fc107[_0x1f26a1(0x1e1)],_0x9fc107['ZxcIJ'],_0x9fc107[_0x1f26a1(0x1cc)],_0x9fc107[_0x1f26a1(0x1b6)]]),_0x373274[_0x1f26a1(0x1ae)](_0x2a5632=>{const _0x3f710e=_0x1f26a1;_0x3490a3[_0x3f710e(0x1ce)]([_0x2a5632['id'],_0x2a5632[_0x3f710e(0x1e2)],_0x2a5632['status'],_0x2a5632['running'],_0x2a5632['queued'],_0x2a5632[_0x3f710e(0x1d5)]]);}),console[_0x1f26a1(0x1c7)](_0x9fc107[_0x1f26a1(0x1d3)](table,_0x3490a3)),process[_0x1f26a1(0x1bb)](0x0);}_0x9fc107[_0x1f26a1(0x1f2)](_0x57e0db[_0x1f26a1(0x1ab)],0x191)&&(console[_0x1f26a1(0x1ed)](_0x9fc107[_0x1f26a1(0x1cf)]),await _0x9fc107[_0x1f26a1(0x1db)](sendInstrumentationEvent,_0x3afe2c,_0x9fc107[_0x1f26a1(0x1eb)],messageTypes[_0x1f26a1(0x1fd)],_0x9fc107[_0x1f26a1(0x1c0)],null,_0x3afe2c),process['exit'](0x1)),console[_0x1f26a1(0x1ed)](_0x1f26a1(0x1e4)+JSON['stringify'](_0x57e0db)),await _0x9fc107['bvoTv'](sendInstrumentationEvent,_0x3afe2c,_0x9fc107['eloLg'],messageTypes['ERROR'],_0x9fc107['KumZh'],_0x57e0db,_0x3afe2c),process['exit'](0x1);}catch(_0x1ed7db){console[_0x1f26a1(0x1ed)](_0x1f26a1(0x1b8)+_0x1ed7db[_0x1f26a1(0x1e6)]),await _0x9fc107[_0x1f26a1(0x1db)](sendInstrumentationEvent,_0x3afe2c,_0x9fc107['eloLg'],messageTypes[_0x1f26a1(0x1fd)],_0x9fc107[_0x1f26a1(0x1b1)],_0x1ed7db,_0x3afe2c),process[_0x1f26a1(0x1bb)](0x1);}};function a15_0x8379(){const _0x3b58f1=['13644376XyFLbz','table','MPsMI','log','GcZhj','bstackUsername','argv','desc','Pwfbh','description','push','gcBmE','existsSync','allGrids','sVcEJ','NMKOw','334850dTiXzl','clusterName','unauthorised','got','VDVYa','24591740QXwjqx','/packages/cli/get-grids','cedch','all-grids','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','18qnKUkX','handler','server-error','XcmHs','name','YvxHA','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','builder','stack','758639JrHVil','xwgSG','bstackAccesskey','help','eloLg','12Ticzbb','error','https://','unknown-error','parse','Fkrea','PhvTb','grid','INFO','epilogue','CpJQc','raoky','readFileSync','command','password','3395412TSbBNe','tWQKB','ERROR','../../config/constants','MheEK','status','statusCode','doUik','9tklkIi','forEach','\x0aFound\x20the\x20following\x20grids:\x0a','options','PJTQS','running','../../utils/instrumentationUtils','grids','cluster-name','CahKy','Browserstack','Failed\x20to\x20list\x20resources!\x20Error:\x20','queued','GET','exit','usage','body','boolean','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','EFxGh','843345JZNYsp','147347uFItvL','list-grids-called'];a15_0x8379=function(){return _0x3b58f1;};return a15_0x8379();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16_0x444a3d=a16_0x31b6;(function(_0x2aa2d3,_0xac6e99){const _0x587869=a16_0x31b6,_0x4cb40a=_0x2aa2d3();while(!![]){try{const _0x45b795=-parseInt(_0x587869(0x165))/0x1*(-parseInt(_0x587869(0x16c))/0x2)+parseInt(_0x587869(0x15f))/0x3+-parseInt(_0x587869(0x161))/0x4+parseInt(_0x587869(0x16f))/0x5*(-parseInt(_0x587869(0x168))/0x6)+parseInt(_0x587869(0x15a))/0x7+parseInt(_0x587869(0x160))/0x8+-parseInt(_0x587869(0x16d))/0x9*(parseInt(_0x587869(0x159))/0xa);if(_0x45b795===_0xac6e99)break;else _0x4cb40a['push'](_0x4cb40a['shift']());}catch(_0x332274){_0x4cb40a['push'](_0x4cb40a['shift']());}}}(a16_0x2952,0xbad96));function a16_0x31b6(_0x2b01a7,_0x3a7798){const _0x295299=a16_0x2952();return a16_0x31b6=function(_0x31b680,_0x29e8ca){_0x31b680=_0x31b680-0x159;let _0x5644d5=_0x295299[_0x31b680];return _0x5644d5;},a16_0x31b6(_0x2b01a7,_0x3a7798);}function a16_0x2952(){const _0xf75a4c=['handler','../config/constants','help','4537824fdYUFe','1153576XKgcsS','393812sceyxQ','pre-check','desc','epilogue','1817MSElzm','pqUPt','BqTBf','6iODphN','pre_check','precheck_commands','strict','1042lcFsKe','8937lVzNdJ','recommendCommands','5431295jAKVMh','commandDir','15410TKEJSq','6137579qPxJhK','usage'];a16_0x2952=function(){return _0xf75a4c;};return a16_0x2952();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x444a3d(0x15d));exports['command']=a16_0x444a3d(0x162),exports[a16_0x444a3d(0x163)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports['builder']=function(_0x121884){const _0x34b2e2=a16_0x444a3d,_0x4db842={};_0x4db842[_0x34b2e2(0x167)]=_0x34b2e2(0x16a),_0x4db842[_0x34b2e2(0x166)]='help';const _0x4d2f4e=_0x4db842;return _0x121884[_0x34b2e2(0x15b)](HELP_HEADER_MESSAGE[_0x34b2e2(0x169)])[_0x34b2e2(0x164)](HELP_FOOTER_MESSAGE)[_0x34b2e2(0x170)](_0x4d2f4e[_0x34b2e2(0x167)])['demandCommand']()[_0x34b2e2(0x16e)]()[_0x34b2e2(0x16b)]()[_0x34b2e2(0x15e)](_0x4d2f4e[_0x34b2e2(0x166)]);},exports[a16_0x444a3d(0x15c)]=function(_0x77b73b){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a17_0x447b(){const _0x481767=['HlYJp','GduCd','vzPoW','existsSync','length','PtBzZ','yLSKn','2NcryFi','toLowerCase','User\x20Access','isClusterPresent','type','ncFLQ','Cluster\x20`','Whitelisted\x20browserstack','builder','ehqrS','cRlsN','/packages/cli/get-all-grid-profiles','cNzxU','description','BKyYV','usage','vWWog','header','Grid\x20profile\x20fetched\x20for\x20pre-check','SXYrw','HQvzj','NhbIh','Success','FcwtC','message','haGKy','cluster-check-failed-','SIlYu','.\x20Please\x20provide\x20all\x20required\x20arguments.','authHeader','IJmui','RaNBj','yBUXC','grid\x20profile\x20flow\x20','2227218bAqTlH','utf-8','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','NkfQa','Cluster\x20','writeFileSync','accessResp','tEHNl','xUtHN','epilogue','pre_check','../../config/logger','TLzZP','getUTCMinutes','throwHttpErrors','LMjyR','INFO','../../config/constants','\x20region\x20-\x20','KwOAH','PCIHo','Invalid\x20input.\x20grid\x20profiles:\x20','isTrialGridAccessible','argv','dCQBl','\x20\x20Stack:\x20','rbwky','goGGV','KNIwz','cloudProvider','credential-not-found','nDMxx','uKWbG','string','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','toQjR','ssVaP','\x20===\x0a\x0a','password','1068284FWkLrI','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','xUiae','Setting\x20cloud\x20provider\x20as\x20','Browserstack','vsYNl','JxYLq','handler','getUTCFullYear','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','xCaLu','EHLkQ','VCZyx','data','Failed\x20in\x20pre-check!\x20Error:\x20','response','gridProfile','\x20\x20Code:\x20','Failure','FmciR','debug','stack','error\x20stack\x20:\x20','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','cloud-provider-not-supported','ygqGO','uuid','sgYmq','bJQnY','xJEJj','suyvI','ERROR','hdFJc','bACYU','help','STTpT','Error\x20Details:\x0a','replace','stringify','grid-profile','NLnpl','asJzB','init','KMJrY','NMYmU','exit','uSJKR','delay','.txt','tKGNJ','YMuhF','code','78765AnJxfa','105234PVmOTG','LrnXp','N/A','pre-check-grid-called','YnVcE','cXhzA','bstackUsername','username','unable\x20to\x20verify\x20if\x20cluster\x20`','NYoIT','jOeQS','UMDpg','1141953MqGckt','JOvDX','grid','SVXYZ','176WyOdrb','\x20\x20Message:\x20','isCliToolInstalled','https://','join','gLdhB','LOG','WebSocket','TsvzS','bstackAccesskey','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','MTbWo','Pre-check\x20running\x20for\x20Cloud\x20-\x20','getUTCMonth','zopTW','woYJm','sqyxp','`\x20,error\x20:\x20','KsJmg','3|4|2|1|0','`\x20already\x20exists','icNHX','is\x20already\x20present','chvQC','pKfJY','Tool\x20Installed','FvAbD','czyuT','GQFXi','info','JIMyW','GET','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ufXqU','42203jjTaVC','method','error','push','pre-check','options','BwMyB','gGwoh','iDSKO','yVGqj','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','2505830RxHmRf','rCTXB','uEmAg','eACFj','9TAQBDN','Vjube','cloud-provider','command','nrOxq','readFileSync','dAHgr','ZoBpQ',']\x20status\x20:\x20','cluster-name','ATNTD','forEach','Status:\x20','\x20data\x20:\x20','log/report_','reconnecting-websocket','headers','../../cloudproviders/utils','EDEnT','qgotk','rdSHD','sendEventToBackend','CLOUD_PROVIDER','xwRny','yTiaL','`\x20is\x20present\x20in\x20region\x20`','parse','../../utils/webSocketUtils','body','EHSWc','Message:\x20','nvFbU','pre-check-grid-profile-empty','gecCm','clusterRegion','region','JoBZf','requestId','zubqZ','vRsSi','clusterName','SqTPt','\x20error\x20:\x20'];a17_0x447b=function(){return _0x481767;};return a17_0x447b();}const a17_0x1f31eb=a17_0x4cbd;(function(_0x28be25,_0x2f493f){const _0x5576d8=a17_0x4cbd,_0x5cd346=_0x28be25();while(!![]){try{const _0x4731fc=parseInt(_0x5576d8(0x102))/0x1+parseInt(_0x5576d8(0x175))/0x2*(-parseInt(_0x5576d8(0x10e))/0x3)+parseInt(_0x5576d8(0x1be))/0x4+parseInt(_0x5576d8(0x101))/0x5+parseInt(_0x5576d8(0x197))/0x6+parseInt(_0x5576d8(0x134))/0x7*(parseInt(_0x5576d8(0x112))/0x8)+-parseInt(_0x5576d8(0x143))/0x9*(parseInt(_0x5576d8(0x13f))/0xa);if(_0x4731fc===_0x2f493f)break;else _0x5cd346['push'](_0x5cd346['shift']());}catch(_0x443f68){_0x5cd346['push'](_0x5cd346['shift']());}}}(a17_0x447b,0x3fa39));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x1f31eb(0x1d8)),ReconnectingWebSocket=require(a17_0x1f31eb(0x152)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x1f31eb(0x1a2)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x1f31eb(0x1a8)),{getCloudProviderObjectWithOutInit}=require(a17_0x1f31eb(0x154)),webSocketUtils=require(a17_0x1f31eb(0x15e)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x1f31eb(0x146)]=a17_0x1f31eb(0x110),exports['desc']='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a17_0x1f31eb(0x17d)]=function(_0x5425f1){const _0x28a58d=a17_0x1f31eb,_0x466dc0={};_0x466dc0[_0x28a58d(0x174)]=_0x28a58d(0x13e),_0x466dc0[_0x28a58d(0x16a)]=_0x28a58d(0x1b8),_0x466dc0[_0x28a58d(0x173)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x466dc0[_0x28a58d(0x170)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x466dc0[_0x28a58d(0x11a)]=_0x28a58d(0x11c),_0x466dc0[_0x28a58d(0x14d)]=_0x28a58d(0x1e0);const _0x359316=_0x466dc0,_0x211261={};_0x211261[_0x28a58d(0x182)]=_0x359316[_0x28a58d(0x174)],_0x211261['type']=_0x359316[_0x28a58d(0x16a)];const _0x1e939c={};_0x1e939c['description']=_0x359316[_0x28a58d(0x173)],_0x1e939c[_0x28a58d(0x179)]=_0x359316['vRsSi'];const _0x3008d1={};_0x3008d1[_0x28a58d(0x182)]=_0x359316[_0x28a58d(0x170)],_0x3008d1[_0x28a58d(0x179)]=_0x359316[_0x28a58d(0x16a)];const _0x224d84={};_0x224d84[_0x28a58d(0x182)]=_0x359316[_0x28a58d(0x11a)],_0x224d84[_0x28a58d(0x179)]=_0x359316[_0x28a58d(0x16a)];const _0xadf253={};return _0xadf253['cluster-name']=_0x211261,_0xadf253[_0x28a58d(0x145)]=_0x1e939c,_0xadf253[_0x28a58d(0x166)]=_0x3008d1,_0xadf253[_0x28a58d(0x1e5)]=_0x224d84,_0x5425f1[_0x28a58d(0x184)](HELP_HEADER_MESSAGE[_0x28a58d(0x1a1)])[_0x28a58d(0x1a0)](HELP_FOOTER_MESSAGE)[_0x28a58d(0x139)](_0xadf253)[_0x28a58d(0x1e0)](_0x359316[_0x28a58d(0x14d)])[_0x28a58d(0x1ae)];};async function inputValidation(_0xb082e0,_0x17ec4b){const _0x1fc6eb=a17_0x1f31eb,_0x65933f={'MTbWo':function(_0x350c13,_0x51f3e4){return _0x350c13+_0x51f3e4;},'enKlw':_0x1fc6eb(0x18b),'ehqrS':_0x1fc6eb(0x1d0),'bJQnY':function(_0x1fcb20,_0x5114ab){return _0x1fcb20||_0x5114ab;},'ZoBpQ':'N/A','sqyxp':_0x1fc6eb(0x1e2),'ssVaP':_0x1fc6eb(0x145),'PCIHo':_0x1fc6eb(0x128),'oazRm':'will\x20be\x20created','gLdhB':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','hdFJc':_0x1fc6eb(0x1b8),'rbwky':_0x1fc6eb(0x1d5),'cvneS':_0x1fc6eb(0x1b9),'yjTfi':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','xJEJj':_0x1fc6eb(0x1e0),'uKWbG':_0x1fc6eb(0x1bf),'JxYLq':_0x1fc6eb(0x166),'GQFXi':'cluster-name','gGwoh':_0x1fc6eb(0x136),'NYoIT':function(_0x44dcb9,_0x4c5660){return _0x44dcb9!==_0x4c5660;},'vWWog':_0x1fc6eb(0xff),'BfVkr':function(_0x22f4d7,_0x585855){return _0x22f4d7===_0x585855;},'suyvI':_0x1fc6eb(0x1e6),'dCQBl':'OOVfc','JoBZf':_0x1fc6eb(0x189),'qgotk':function(_0x446eee,_0x2568df){return _0x446eee===_0x2568df;},'Vjube':'YdUfx','cNzxU':function(_0x532cd6,_0x20c15c){return _0x532cd6!==_0x20c15c;},'HnsEO':'ZOPgC','MfwYV':function(_0x299d8a,_0x457ab0){return _0x299d8a>_0x457ab0;},'agZeQ':_0x1fc6eb(0x147),'BwMyB':'WlGsB','SXYrw':function(_0x1f97a0,_0x3cdee0,_0x490a3c,_0x28f026,_0x3884ce,_0x1da967,_0x52b34a,_0x4b7fd9){return _0x1f97a0(_0x3cdee0,_0x490a3c,_0x28f026,_0x3884ce,_0x1da967,_0x52b34a,_0x4b7fd9);},'zubqZ':_0x1fc6eb(0x105),'VUfrK':'pre-check-cluster-args-not-passed','NhbIh':function(_0x327a66,_0xb5f226){return _0x327a66===_0xb5f226;},'vsYNl':_0x1fc6eb(0x1a3),'EHSWc':'NpNln','jOeQS':_0x1fc6eb(0x199),'UjXXn':function(_0x12af1c,_0x32dfc7,_0x3b7f15,_0x2f673a,_0x2dd5a3,_0x10e81a,_0xf7786b,_0x38bb24){return _0x12af1c(_0x32dfc7,_0x3b7f15,_0x2f673a,_0x2dd5a3,_0x10e81a,_0xf7786b,_0x38bb24);},'yVGqj':_0x1fc6eb(0x1d6),'sgYmq':function(_0x3ebfc0,_0x17056d){return _0x3ebfc0===_0x17056d;},'LSbhJ':_0x1fc6eb(0x111),'goGGV':_0x1fc6eb(0x194),'STTpT':_0x1fc6eb(0x19e),'eACFj':_0x1fc6eb(0x131),'FmIEb':function(_0xf519cd,_0x59f11a,_0x3a6619){return _0xf519cd(_0x59f11a,_0x3a6619);},'xwRny':function(_0x4b0b66,_0x192de2,_0x4db3c3,_0x47cda3,_0x1c9f5e,_0x52495e){return _0x4b0b66(_0x192de2,_0x4db3c3,_0x47cda3,_0x1c9f5e,_0x52495e);},'xCaLu':_0x1fc6eb(0x138),'iDSKO':_0x1fc6eb(0x1e5),'qWBwj':function(_0x53a28f,_0x56b391){return _0x53a28f!==_0x56b391;},'BKyYV':'KrNDc','nvFbU':function(_0x4c4056,_0x506a7e){return _0x4c4056(_0x506a7e);},'xUtHN':_0x1fc6eb(0x16c),'gecCm':_0x1fc6eb(0x1df),'yBUXC':function(_0xe2a34a,_0x597816,_0x48e2bb,_0x1b230b,_0x3e9a7c,_0x5aeabf,_0x5c8e42,_0x5d8cb1){return _0xe2a34a(_0x597816,_0x48e2bb,_0x1b230b,_0x3e9a7c,_0x5aeabf,_0x5c8e42,_0x5d8cb1);},'wCoge':_0x1fc6eb(0x163),'ygqGO':_0x1fc6eb(0x106),'KOAYv':function(_0x1c1025,_0x2be040){return _0x1c1025===_0x2be040;},'JOvDX':_0x1fc6eb(0x1ba),'uSJKR':_0x1fc6eb(0x187),'HlYJp':function(_0x5b6a8b,_0x524c48){return _0x5b6a8b===_0x524c48;},'woYJm':'dHOTo','rCTXB':_0x1fc6eb(0x1aa),'KgoYW':'IfExV','FvAbD':function(_0x475023,_0x25c38e,_0x27eeb8,_0x385522,_0x237300,_0x442437,_0x59c85e,_0x2de9a9){return _0x475023(_0x25c38e,_0x27eeb8,_0x385522,_0x237300,_0x442437,_0x59c85e,_0x2de9a9);}};let _0x2ff52d;try{if(_0x65933f[_0x1fc6eb(0x10b)](_0x65933f[_0x1fc6eb(0x185)],_0x65933f['vWWog'])){const {header:_0x516940,response:_0x4fe615}=_0xa4f6ba,{status:_0x1fe5f9,data:_0x419f34,error:_0x5aa926}=_0x4fe615;_0x4eb0dd+=_0x516940+'\x20#'+_0x65933f[_0x1fc6eb(0x11d)](_0x27f254,0x1)+'\x0a',_0x28a0e4+=_0x1fc6eb(0x14f)+(_0x1fe5f9?_0x65933f['enKlw']:_0x65933f[_0x1fc6eb(0x17e)])+'\x0a',_0x3b04fa+=_0x1fc6eb(0x161)+_0x65933f[_0x1fc6eb(0x1da)](_0x419f34,_0x65933f[_0x1fc6eb(0x14a)])+'\x0a',_0x5aa926&&(_0x9ae2e2+=_0x65933f[_0x1fc6eb(0x122)],_0x1223c4+=_0x1fc6eb(0x113)+(_0x5aa926[_0x1fc6eb(0x18d)]||_0x65933f[_0x1fc6eb(0x14a)])+'\x0a',_0x5cf8d6+=_0x1fc6eb(0x1cf)+(_0x5aa926[_0x1fc6eb(0x100)]||_0x65933f[_0x1fc6eb(0x14a)])+'\x0a',_0x2bc273+=_0x1fc6eb(0x1b0)+(_0x5aa926[_0x1fc6eb(0x1d3)]||_0x65933f[_0x1fc6eb(0x14a)])+'\x0a'),_0x5bde62+='\x0a\x0a';}else{if(_0xb082e0[_0x1fc6eb(0x16b)]||_0xb082e0[_0x1fc6eb(0x1b4)]||_0xb082e0['region']){if(_0x65933f['BfVkr'](_0x65933f[_0x1fc6eb(0x1dc)],_0x65933f['suyvI'])){const _0x120525=[];!_0xb082e0[_0x1fc6eb(0x16b)]&&(_0x65933f[_0x1fc6eb(0x10b)](_0x65933f[_0x1fc6eb(0x1af)],_0x65933f[_0x1fc6eb(0x167)])?_0x120525[_0x1fc6eb(0x137)](_0x65933f['GQFXi']):_0xdf3e9c[_0x1fc6eb(0x137)](_0x65933f[_0x1fc6eb(0x1bb)]));;!_0xb082e0[_0x1fc6eb(0x1b4)]&&(_0x65933f[_0x1fc6eb(0x156)](_0x65933f[_0x1fc6eb(0x144)],_0x65933f[_0x1fc6eb(0x144)])?_0x120525[_0x1fc6eb(0x137)](_0x65933f[_0x1fc6eb(0x1bb)]):_0x1499a1[_0x1fc6eb(0x1eb)](0x1));;!_0xb082e0[_0x1fc6eb(0x166)]&&(_0x65933f[_0x1fc6eb(0x181)](_0x65933f['HnsEO'],_0x65933f['HnsEO'])?_0x389212+=_0x1fc6eb(0x19b)+_0x48a9cd[_0x1fc6eb(0x16b)]+'\x20'+(_0x5580b8?_0x65933f[_0x1fc6eb(0x1ab)]:_0x65933f['oazRm'])+'\x0a\x0a':_0x120525[_0x1fc6eb(0x137)](_0x65933f[_0x1fc6eb(0x1c4)]));;if(_0x65933f['MfwYV'](_0x120525[_0x1fc6eb(0x172)],0x0)){if(_0x65933f[_0x1fc6eb(0x10b)](_0x65933f['agZeQ'],_0x65933f[_0x1fc6eb(0x13a)]))_0x2ff52d='Missing\x20required\x20arguments:\x20'+_0x120525[_0x1fc6eb(0x116)](',\x20')+_0x1fc6eb(0x191),await _0x65933f[_0x1fc6eb(0x188)](reportToGalactusAndSendToEDS,_0xb082e0,_0x17ec4b,_0x2ff52d,messageTypes[_0x1fc6eb(0x1dd)],_0x65933f[_0x1fc6eb(0x169)],_0x65933f['VUfrK'],_0x65933f[_0x1fc6eb(0x13b)]),logger[_0x1fc6eb(0x136)](_0x2ff52d),process[_0x1fc6eb(0x1eb)](0x1);else{const _0x3fcc06={};_0x3fcc06[_0x1fc6eb(0x182)]=_0x65933f[_0x1fc6eb(0x117)],_0x3fcc06[_0x1fc6eb(0x179)]=_0x65933f[_0x1fc6eb(0x1de)];const _0xdf9e39={};_0xdf9e39['description']=_0x65933f[_0x1fc6eb(0x1b1)],_0xdf9e39[_0x1fc6eb(0x179)]=_0x65933f['hdFJc'];const _0x313778={};_0x313778[_0x1fc6eb(0x182)]=_0x65933f['cvneS'],_0x313778['type']=_0x65933f['hdFJc'];const _0x52432c={};_0x52432c[_0x1fc6eb(0x182)]=_0x65933f['yjTfi'],_0x52432c[_0x1fc6eb(0x179)]=_0x65933f[_0x1fc6eb(0x1de)];const _0x14b4b1={};return _0x14b4b1[_0x1fc6eb(0x14c)]=_0x3fcc06,_0x14b4b1['cloud-provider']=_0xdf9e39,_0x14b4b1[_0x1fc6eb(0x166)]=_0x313778,_0x14b4b1[_0x1fc6eb(0x1e5)]=_0x52432c,_0x4f2222['usage'](_0x283829['pre_check'])[_0x1fc6eb(0x1a0)](_0x22fe80)[_0x1fc6eb(0x139)](_0x14b4b1)[_0x1fc6eb(0x1e0)](_0x65933f[_0x1fc6eb(0x1db)])['argv'];}}!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0xb082e0[_0x1fc6eb(0x1b4)][_0x1fc6eb(0x176)]())&&(_0x65933f[_0x1fc6eb(0x18a)](_0x65933f[_0x1fc6eb(0x1c3)],_0x65933f[_0x1fc6eb(0x160)])?(_0x5daf6f[_0x1fc6eb(0x12f)]('['+_0x2b5723+_0x1fc6eb(0x14b)+_0x5f1bcf['status']+_0x1fc6eb(0x150)+_0x2f0b38[_0x1fc6eb(0x1cb)]+_0x1fc6eb(0x16d)+_0x224d37[_0x1fc6eb(0x136)]),_0x341bdf[_0x1fc6eb(0x136)]&&_0xb97977['error']('error\x20stack\x20:\x20'+_0x1589f0[_0x1fc6eb(0x136)]['stack'])):(_0x2ff52d=_0x65933f[_0x1fc6eb(0x10c)],await _0x65933f['UjXXn'](reportToGalactusAndSendToEDS,_0xb082e0,_0x17ec4b,_0x2ff52d,messageTypes[_0x1fc6eb(0x1dd)],_0x65933f[_0x1fc6eb(0x169)],_0x65933f[_0x1fc6eb(0x13d)],_0x65933f[_0x1fc6eb(0x13b)]),logger[_0x1fc6eb(0x136)](_0x2ff52d),!_0xb082e0[_0x1fc6eb(0x1b4)]&&(_0x65933f[_0x1fc6eb(0x1d9)](_0x65933f['LSbhJ'],_0x65933f[_0x1fc6eb(0x1b2)])?(_0x8193b2[_0x1fc6eb(0x136)](_0x65933f[_0x1fc6eb(0x1b7)]),_0x52f886[_0x1fc6eb(0x1eb)](0x1)):(logger[_0x1fc6eb(0x12f)](_0x1fc6eb(0x1c1)+DEFAULT_CLUSTER_DETAILS[_0x1fc6eb(0x159)]+'\x20'),_0xb082e0[_0x1fc6eb(0x1b4)]=DEFAULT_CLUSTER_DETAILS[_0x1fc6eb(0x159)])))),global_registry[_0x1fc6eb(0x16b)]=_0xb082e0[_0x1fc6eb(0x16b)],global_registry[_0x1fc6eb(0x1b4)]=_0xb082e0['cloudProvider'],global_registry['clusterRegion']=_0xb082e0['region'];}else _0x60c0dc['info'](_0x1fc6eb(0x17b)+_0x5a88c1[_0x1fc6eb(0x16b)]+_0x1fc6eb(0x126));}else{if(_0xb082e0[_0x1fc6eb(0x1ce)]){if(_0x65933f[_0x1fc6eb(0x156)](_0x65933f['STTpT'],_0x65933f[_0x1fc6eb(0x1e1)])){global_registry['gridProfile']=_0xb082e0['gridProfile'],logger[_0x1fc6eb(0x1d2)](_0x1fc6eb(0x196)+_0xb082e0['gridProfile']);const _0x4dd40d=_0x1fc6eb(0x115)+AG_API_URL+_0x1fc6eb(0x180),_0x4c7f6b={};_0x4c7f6b[_0x1fc6eb(0x135)]=_0x65933f[_0x1fc6eb(0x142)],_0x4c7f6b[_0x1fc6eb(0x153)]=global_registry[_0x1fc6eb(0x192)],_0x4c7f6b[_0x1fc6eb(0x1a5)]=![];const _0x2696af=_0x4c7f6b,_0x35bc56=await _0x65933f['FmIEb'](got,_0x4dd40d,_0x2696af),_0x2c1b12=await _0x65933f[_0x1fc6eb(0x15a)](responseValidation,_0x35bc56,_0x65933f[_0x1fc6eb(0x1c8)],_0x65933f[_0x1fc6eb(0x13c)],_0xb082e0,_0x17ec4b);let _0x20217a={};if(_0x65933f[_0x1fc6eb(0x18a)](_0x2c1b12,0xc8)){if(_0x65933f['qWBwj'](_0x65933f[_0x1fc6eb(0x183)],_0x65933f[_0x1fc6eb(0x183)]))_0x3ecd56[_0x1fc6eb(0x137)](_0x65933f[_0x1fc6eb(0x1c4)]);else{const _0x27b39d=JSON['parse'](_0x35bc56[_0x1fc6eb(0x15f)]),_0xa94e2a=_0x27b39d['find'](_0x333b5f=>_0x333b5f['name']===_0xb082e0[_0x1fc6eb(0x1ce)])||null;_0x65933f[_0x1fc6eb(0x162)](isUndefined,_0xa94e2a)?_0x65933f['NhbIh'](_0x65933f[_0x1fc6eb(0x19f)],_0x65933f[_0x1fc6eb(0x164)])?_0x1b9566+=_0x1fc6eb(0x19b)+_0x1499bd['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':(_0x2ff52d=_0x1fc6eb(0x1ac)+_0xb082e0[_0x1fc6eb(0x1ce)]+_0x1fc6eb(0x1c7),await _0x65933f[_0x1fc6eb(0x195)](reportToGalactusAndSendToEDS,_0xb082e0,_0x17ec4b,_0x2ff52d,messageTypes['ERROR'],_0x65933f['zubqZ'],_0x65933f['wCoge'],_0x65933f[_0x1fc6eb(0x13b)]),logger[_0x1fc6eb(0x136)](_0x2ff52d),process['exit'](0x1)):_0x65933f[_0x1fc6eb(0x156)](_0x65933f['ygqGO'],_0x65933f[_0x1fc6eb(0x1d7)])?_0x20217a=_0xa94e2a:_0x241e5e['push'](_0x65933f[_0x1fc6eb(0x12e)]);}}else _0x65933f['KOAYv'](_0x65933f[_0x1fc6eb(0x10f)],_0x65933f[_0x1fc6eb(0x10f)])?process['exit'](0x1):_0x2dbcf4=_0x1dc288;const _0xac5b3a={};_0xac5b3a[_0x1fc6eb(0x179)]=WS_EVENTS[_0x1fc6eb(0x118)],_0xac5b3a[_0x1fc6eb(0x18d)]=_0x65933f[_0x1fc6eb(0xfb)],webSocketUtils[_0x1fc6eb(0x158)](_0x17ec4b,_0xac5b3a),global_registry[_0x1fc6eb(0x1b4)]=_0x20217a[_0x1fc6eb(0x1b4)],global_registry[_0x1fc6eb(0x165)]=_0x20217a[_0x1fc6eb(0x166)],global_registry['clusterName']=_0x20217a[_0x1fc6eb(0x16b)];}else{const _0x1b5234={};_0x1b5234['type']=_0x136013[_0x1fc6eb(0x118)],_0x1b5234['message']=_0x2d5c70,_0x539df8['sendEventToBackend'](_0x5359dc,_0x1b5234,_0x65933f[_0x1fc6eb(0x13b)],!![]);}}else _0x65933f[_0x1fc6eb(0x16e)](_0x65933f[_0x1fc6eb(0x121)],_0x65933f[_0x1fc6eb(0x140)])?_0x2bb915[_0x1fc6eb(0x136)](_0x1fc6eb(0x1d4)+_0x200230[_0x1fc6eb(0x136)][_0x1fc6eb(0x1d3)]):(logger[_0x1fc6eb(0x136)](_0x65933f[_0x1fc6eb(0x1b7)]),process['exit'](0x1));}}}catch(_0x1c159c){_0x65933f[_0x1fc6eb(0x10b)](_0x65933f['KgoYW'],_0x65933f['KgoYW'])?(_0x5e4d4d+=_0x65933f['sqyxp'],_0x26ee9b+=_0x1fc6eb(0x113)+(_0x3b22f9[_0x1fc6eb(0x18d)]||_0x65933f['ZoBpQ'])+'\x0a',_0x49576c+=_0x1fc6eb(0x1cf)+(_0x2c5783[_0x1fc6eb(0x100)]||_0x65933f[_0x1fc6eb(0x14a)])+'\x0a',_0x412df8+=_0x1fc6eb(0x1b0)+(_0x709c1['stack']||_0x65933f[_0x1fc6eb(0x14a)])+'\x0a'):(_0x2ff52d='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x1c159c+':\x20'+_0x1c159c[_0x1fc6eb(0x1d3)],logger[_0x1fc6eb(0x136)](_0x2ff52d),await _0x65933f[_0x1fc6eb(0x12c)](reportToGalactusAndSendToEDS,_0xb082e0,_0x17ec4b,_0x2ff52d,messageTypes[_0x1fc6eb(0x1dd)],_0x65933f[_0x1fc6eb(0x169)],_0x65933f[_0x1fc6eb(0x13d)],_0x65933f[_0x1fc6eb(0x13b)]),process['exit'](0x1));}}function a17_0x4cbd(_0x116304,_0x37d02e){const _0x447b03=a17_0x447b();return a17_0x4cbd=function(_0x4cbd90,_0x247225){_0x4cbd90=_0x4cbd90-0xfb;let _0x58f608=_0x447b03[_0x4cbd90];return _0x58f608;},a17_0x4cbd(_0x116304,_0x37d02e);}function printResponse(_0x447516,_0x36c9e1){const _0x324972=a17_0x1f31eb,_0xd5e780={};_0xd5e780[_0x324972(0x1ca)]=function(_0x5963de,_0x714662){return _0x5963de!==_0x714662;},_0xd5e780[_0x324972(0x155)]=_0x324972(0x1c9);const _0x4dd0b8=_0xd5e780;logger[_0x324972(0x12f)]('['+_0x447516+_0x324972(0x14b)+_0x36c9e1['status']+'\x20data\x20:\x20'+_0x36c9e1['data']+_0x324972(0x16d)+_0x36c9e1['error']),_0x36c9e1[_0x324972(0x136)]&&(_0x4dd0b8[_0x324972(0x1ca)](_0x4dd0b8[_0x324972(0x155)],_0x4dd0b8[_0x324972(0x155)])?(_0x5c30cb[_0x324972(0x12f)](_0x324972(0x1c1)+_0x20af2f[_0x324972(0x159)]+'\x20'),_0x584bf7['cloudProvider']=_0x495dd1[_0x324972(0x159)]):logger['error'](_0x324972(0x1d4)+_0x36c9e1[_0x324972(0x136)][_0x324972(0x1d3)]));}async function generateReport(_0x4a60d0,_0x1d9606){const _0x2a6d68=a17_0x1f31eb,_0x55215b={'KNIwz':function(_0x507483,_0x362863){return _0x507483+_0x362863;},'FmciR':_0x2a6d68(0x18b),'JIMyW':_0x2a6d68(0x1d0),'dAHgr':function(_0x186cf9,_0x561f5e){return _0x186cf9||_0x561f5e;},'GduCd':_0x2a6d68(0x104),'IJmui':_0x2a6d68(0x1e2),'PVrPV':'Cluster\x20details\x0a-----------------------\x0a','yTiaL':function(_0x32bae0,_0x3174d6){return _0x32bae0!=_0x3174d6;},'rVMQU':_0x2a6d68(0x128),'cXhzA':'will\x20be\x20created','KsbvT':function(_0x4e3ad8){return _0x4e3ad8();}};let _0x10aa6e='===\x20Precheck\x20Report\x20-\x20'+global_registry['cloudProvider']+_0x2a6d68(0x1bc);return _0x4a60d0[_0x2a6d68(0x14e)]((_0x185990,_0x2353be)=>{const _0xb6b436=_0x2a6d68,{header:_0xa23f9b,response:_0x23678b}=_0x185990,{status:_0x384ac6,data:_0x78fa60,error:_0x391cc1}=_0x23678b;_0x10aa6e+=_0xa23f9b+'\x20#'+_0x55215b[_0xb6b436(0x1b3)](_0x2353be,0x1)+'\x0a',_0x10aa6e+='Status:\x20'+(_0x384ac6?_0x55215b[_0xb6b436(0x1d1)]:_0x55215b[_0xb6b436(0x130)])+'\x0a',_0x10aa6e+=_0xb6b436(0x161)+_0x55215b[_0xb6b436(0x149)](_0x78fa60,_0x55215b[_0xb6b436(0x16f)])+'\x0a',_0x391cc1&&(_0x10aa6e+=_0x55215b[_0xb6b436(0x193)],_0x10aa6e+=_0xb6b436(0x113)+(_0x391cc1[_0xb6b436(0x18d)]||_0x55215b['GduCd'])+'\x0a',_0x10aa6e+='\x20\x20Code:\x20'+(_0x391cc1[_0xb6b436(0x100)]||_0x55215b['GduCd'])+'\x0a',_0x10aa6e+='\x20\x20Stack:\x20'+(_0x391cc1[_0xb6b436(0x1d3)]||_0x55215b[_0xb6b436(0x16f)])+'\x0a'),_0x10aa6e+='\x0a\x0a';}),_0x10aa6e+=_0x55215b['PVrPV'],_0x55215b[_0x2a6d68(0x15b)](_0x1d9606,null)?_0x10aa6e+='Cluster\x20'+global_registry['clusterName']+'\x20'+(_0x1d9606?_0x55215b['rVMQU']:_0x55215b[_0x2a6d68(0x107)])+'\x0a\x0a':_0x10aa6e+=_0x2a6d68(0x19b)+global_registry[_0x2a6d68(0x16b)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x10aa6e+=_0x55215b['KsbvT'](getSystemMetaData),_0x10aa6e;};exports[a17_0x1f31eb(0x1c5)]=async function(_0x19a1ae){const _0x22ac6e=a17_0x1f31eb,_0x468668={'chvQC':function(_0x2d322d){return _0x2d322d();},'xUiae':function(_0x42f4d9){return _0x42f4d9();},'EbFPM':_0x22ac6e(0x132),'asJzB':function(_0x3085e0,_0x2f267c,_0x2126b6,_0x134e80,_0x2d1152,_0x3f2018,_0x243767,_0x496833){return _0x3085e0(_0x2f267c,_0x2126b6,_0x134e80,_0x2d1152,_0x3f2018,_0x243767,_0x496833);},'UMDpg':_0x22ac6e(0x105),'ncFLQ':_0x22ac6e(0x1b5),'icNHX':_0x22ac6e(0x136),'LMjyR':function(_0x36b61b,_0x8cd13f,_0xd4a0f2,_0x5a5c9b,_0x4b12bc,_0x55fd79,_0xc992c0){return _0x36b61b(_0x8cd13f,_0xd4a0f2,_0x5a5c9b,_0x4b12bc,_0x55fd79,_0xc992c0);},'FDmji':function(_0x30e0dd){return _0x30e0dd();},'zopTW':'<UsernamePlaceholder>','cRlsN':'<PasswordPlaceholder>','KMJrY':function(_0x16e2c9,_0x523a05,_0x3f06e1){return _0x16e2c9(_0x523a05,_0x3f06e1);},'nDMxx':function(_0x35b80c,_0x3e2188,_0x4f3038){return _0x35b80c(_0x3e2188,_0x4f3038);},'czyuT':'dummy-grid','rdSHD':function(_0xbdb175,_0x4a4dbb,_0x48ae69){return _0xbdb175(_0x4a4dbb,_0x48ae69);},'haGKy':'toolInstalledResp','Xgjyb':_0x22ac6e(0x125),'KsJmg':function(_0x204d3e,_0x468788,_0x2d8500){return _0x204d3e(_0x468788,_0x2d8500);},'ufXqU':_0x22ac6e(0x19d),'FcwtC':function(_0x23d892){return _0x23d892();},'LrnXp':_0x22ac6e(0x1ad),'pKfJY':function(_0x169928,_0x4fef1c){return _0x169928(_0x4fef1c);},'NMYmU':'TLSv1_2_client_method','nHpza':function(_0x2a880f,_0x59d6af,_0x255bd6){return _0x2a880f(_0x59d6af,_0x255bd6);},'YKmrZ':'isTls1_2_SUPPORTED','ZJLOO':_0x22ac6e(0x12b),'pegEW':_0x22ac6e(0x177),'LGfyi':_0x22ac6e(0x17c),'rTmEm':'SSL\x20Configured','NkfQa':function(_0x21dd12,_0x6ac6a8){return _0x21dd12+_0x6ac6a8;},'tKGNJ':_0x22ac6e(0x198),'uEmAg':function(_0x47246f,_0xc97b73,_0x170c0f,_0x5874f3,_0xaafc89,_0x453393,_0x1ae978){return _0x47246f(_0xc97b73,_0x170c0f,_0x5874f3,_0xaafc89,_0x453393,_0x1ae978);},'SIlYu':'pre-check-failed'};let _0x1a2cc5,_0x2c4176;try{global_registry[_0x22ac6e(0x168)]=_0x468668[_0x22ac6e(0x129)](uuidv4);!fs[_0x22ac6e(0x171)](_0x468668[_0x22ac6e(0x1c0)](getCredentialsPath))&&(_0x2c4176=_0x468668['EbFPM'],logger[_0x22ac6e(0x136)](_0x2c4176),await _0x468668['asJzB'](reportToGalactusAndSendToEDS,_0x19a1ae,_0x1a2cc5,_0x2c4176,messageTypes['ERROR'],_0x468668['UMDpg'],_0x468668[_0x22ac6e(0x17a)],_0x468668[_0x22ac6e(0x127)]),process['exit'](0x1));_0x468668[_0x22ac6e(0x1a6)](sendInstrumentationEvent,_0x19a1ae,_0x468668[_0x22ac6e(0x10d)],messageTypes[_0x22ac6e(0x1a7)],null,null,_0x19a1ae);const _0x2233e0=JSON[_0x22ac6e(0x15d)](fs[_0x22ac6e(0x148)](_0x468668['FDmji'](getCredentialsPath)));global_registry[_0x22ac6e(0x108)]=_0x2233e0[_0x22ac6e(0x1c2)][_0x22ac6e(0x109)],global_registry[_0x22ac6e(0x11b)]=_0x2233e0[_0x22ac6e(0x1c2)][_0x22ac6e(0x1bd)];const _0x4d6399=WS_ENDPOINT[_0x22ac6e(0x1e3)](_0x468668[_0x22ac6e(0x120)],_0x2233e0['Browserstack'][_0x22ac6e(0x109)])[_0x22ac6e(0x1e3)](_0x468668[_0x22ac6e(0x17f)],_0x2233e0[_0x22ac6e(0x1c2)][_0x22ac6e(0x1bd)]),_0x25531f={};_0x25531f[_0x22ac6e(0x119)]=ws,_0x25531f['connectionTimeout']=0x36ee80,_0x1a2cc5=new ReconnectingWebSocket(_0x4d6399,[],_0x25531f),global_registry['authHeader']=_0x468668[_0x22ac6e(0x1e9)](getAuthHeader,global_registry[_0x22ac6e(0x108)],global_registry[_0x22ac6e(0x11b)]),await _0x468668[_0x22ac6e(0x1b6)](inputValidation,_0x19a1ae,_0x1a2cc5),logger[_0x22ac6e(0x12f)](_0x22ac6e(0x11e)+global_registry[_0x22ac6e(0x1b4)]+_0x22ac6e(0x1a9)+global_registry['clusterRegion']);let _0x65ea91=await _0x468668['LMjyR'](getCloudProviderObjectWithOutInit,global_registry[_0x22ac6e(0x1b4)],global_registry[_0x22ac6e(0x16b)],_0x468668[_0x22ac6e(0x12d)],_0x1a2cc5,webSocketUtils,_0x19a1ae);const _0x394500=await _0x65ea91[_0x22ac6e(0x114)]();_0x468668[_0x22ac6e(0x157)](printResponse,_0x468668[_0x22ac6e(0x18e)],_0x394500),_0x65ea91=await _0x65ea91[_0x22ac6e(0x1e8)]();let _0x5ca17b=![];try{_0x5ca17b=await _0x65ea91[_0x22ac6e(0x178)]();}catch(_0xaf480a){const _0x571c15=_0x468668['Xgjyb']['split']('|');let _0x404238=0x0;while(!![]){switch(_0x571c15[_0x404238++]){case'0':await _0x468668[_0x22ac6e(0x1e7)](reportToGalactusAndSendToEDS,_0x19a1ae,_0x1a2cc5,_0x2c4176,messageTypes[_0x22ac6e(0x1dd)],_0x468668[_0x22ac6e(0x10d)],_0x22ac6e(0x18f)+global_registry[_0x22ac6e(0x1b4)],_0x468668[_0x22ac6e(0x127)]);continue;case'1':_0x2c4176+='\x0a'+JSON[_0x22ac6e(0x1e4)](_0xaf480a[_0x22ac6e(0x1d3)]);continue;case'2':logger['error'](_0x2c4176);continue;case'3':_0x2c4176=_0x22ac6e(0x10a)+global_registry[_0x22ac6e(0x16b)]+_0x22ac6e(0x15c)+global_registry[_0x22ac6e(0x165)]+_0x22ac6e(0x123)+_0xaf480a;continue;case'4':_0x5ca17b=null;continue;}break;}}_0x5ca17b&&logger['info'](_0x22ac6e(0x17b)+global_registry['clusterName']+_0x22ac6e(0x126));const _0xf9ebbf=await _0x65ea91['checkAccess']();_0x468668[_0x22ac6e(0x124)](printResponse,_0x468668[_0x22ac6e(0x133)],_0xf9ebbf);const _0x303ba4=await _0x468668[_0x22ac6e(0x18c)](curlRequest);_0x468668[_0x22ac6e(0x1e9)](printResponse,_0x468668[_0x22ac6e(0x103)],_0x303ba4);const _0x5e0fed=await _0x468668[_0x22ac6e(0x12a)](isTlsSupported,_0x468668[_0x22ac6e(0x1ea)]);_0x468668['nHpza'](printResponse,_0x468668['YKmrZ'],_0x5e0fed);const _0x3bc5e8={};_0x3bc5e8['header']=_0x468668['ZJLOO'],_0x3bc5e8[_0x22ac6e(0x1cd)]=_0x394500;const _0x115941={};_0x115941[_0x22ac6e(0x186)]=_0x468668['pegEW'],_0x115941[_0x22ac6e(0x1cd)]=_0xf9ebbf;const _0x52304f={};_0x52304f[_0x22ac6e(0x186)]=_0x468668['LGfyi'],_0x52304f[_0x22ac6e(0x1cd)]=_0x303ba4;const _0x17378e={};_0x17378e[_0x22ac6e(0x186)]=_0x468668['rTmEm'],_0x17378e[_0x22ac6e(0x1cd)]=_0x5e0fed;const _0x5be6d6=[_0x3bc5e8,_0x115941,_0x52304f,_0x17378e],_0x177de7=await _0x468668[_0x22ac6e(0x124)](generateReport,_0x5be6d6,_0x5ca17b),_0x410492=new Date(),_0x384550=_0x410492[_0x22ac6e(0x1c6)]()+'_'+_0x468668[_0x22ac6e(0x19a)](_0x410492[_0x22ac6e(0x11f)](),0x1)+'_'+_0x410492['getUTCDate']()+'_'+_0x410492['getUTCHours']()+'_'+_0x410492[_0x22ac6e(0x1a4)](),_0x767f41=_0x22ac6e(0x151)+_0x384550+_0x22ac6e(0xfd);fs[_0x22ac6e(0x19c)](_0x767f41,_0x177de7,_0x468668[_0x22ac6e(0xfe)]),logger[_0x22ac6e(0x12f)]('Report\x20saved\x20in\x20'+_0x767f41),process[_0x22ac6e(0x1eb)](0x0);}catch(_0x1cc4d7){let _0x52dba1=_0x22ac6e(0x1cc)+_0x1cc4d7+'\x20';logger['error'](_0x52dba1),_0x52dba1+='\x0a'+JSON['stringify'](_0x1cc4d7['stack']),logger[_0x22ac6e(0x1d2)]('stack\x20trace\x20'+_0x1cc4d7[_0x22ac6e(0x1d3)]);if(_0x1a2cc5){const _0xae3219={};_0xae3219[_0x22ac6e(0x179)]=WS_EVENTS['LOG'],_0xae3219['message']=_0x52dba1,webSocketUtils[_0x22ac6e(0x158)](_0x1a2cc5,_0xae3219,_0x468668[_0x22ac6e(0x127)],!![]);}await webSocketUtils[_0x22ac6e(0xfc)](0x7d0);const _0x33af1a={};_0x33af1a['error']=_0x52dba1,await _0x468668[_0x22ac6e(0x141)](sendInstrumentationEvent,_0x19a1ae,_0x468668[_0x22ac6e(0x10d)],messageTypes['ERROR'],_0x468668[_0x22ac6e(0x190)],_0x33af1a,_0x19a1ae),process[_0x22ac6e(0x1eb)](0x1);}};
|
|
1
|
+
const a17_0x3fb03f=a17_0x3718;function a17_0x1bfe(){const _0x606b87=['Error\x20Details:\x0a','VfBTW','16MiFmpy','qndsY','stringify','authHeader','sAShS','headers','grid-profile','huIRx','SgOnA','delay','../../utils/utilityMethods','131612bwGGwN','join','fUJIZ','/packages/cli/get-all-grid-profiles','readFileSync','status','HDlMf','string','username','1650VRPwHB','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','BGgVn','CLOUD_PROVIDER','region','pre-check-failed','unable\x20to\x20verify\x20if\x20cluster\x20`','xdSer','forEach','cloudProvider','1914nsKdmd','OcCsW','noJtH','dxffM','push','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','clusterRegion','kEoOV','Missing\x20required\x20arguments:\x20','RlONz','../../config/logger','YzlXQ','ERROR','WmuEv','iuiBF','ZSYfJ','waqmq','xsIEw','DIPZO','command','TLSv1_2_client_method','ZXQNm','bjjMu','split','Cluster\x20`','bRqCE','argv','FsDBm','bjeVB','icSrD','txGkj','pre-check-grid-profile-empty','RGLON','JHrUM','AyTmQ','Chulv','Status:\x20','oblDQ','JNtiA','bstackUsername','Failed\x20in\x20pre-check!\x20Error:\x20','YqxpO','error','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','zVksy','bBeCO','Hlmzb','Invalid\x20input.\x20grid\x20profiles:\x20','got','pDvwW','Rezcq','cluster-check-failed-','NrbDj','AzLPm','dQmVR','acSHB','jApDW','epilogue','tZPzY','toolInstalledResp','../../config/constants','message','grid\x20profile\x20flow\x20','CmdtO','response','\x20\x20Stack:\x20','AcKVF','replace','1700678QDhHIL','\x20\x20Code:\x20','log/report_','\x20region\x20-\x20','bstackAccesskey','\x20error\x20:\x20','handler','hhtwC','naoAg','utf-8','MjVXm','will\x20be\x20created','error\x20stack\x20:\x20','ANeXc','cdTpb','Qjqxn','cloud-provider','credential-not-found','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','uTSfD','BOlkt','pre-check-cluster-args-not-passed','Setting\x20cloud\x20provider\x20as\x20','Avbzd','ZScfT','kDLvj','exit','Message:\x20','YpTad','pjagd','Pre-check\x20running\x20for\x20Cloud\x20-\x20','234540oSJlKe',']\x20status\x20:\x20','===\x20Precheck\x20Report\x20-\x20','ehGeb','clusterName','LnfYN','CdVRc','accessResp','MvykZ','JcFMc','sendEventToBackend','Browserstack','CPsVW','Failure','VHNtw','type','WgcjN','.\x20Please\x20provide\x20all\x20required\x20arguments.','iwlmQ','Whitelisted\x20browserstack','Grid\x20profile\x20fetched\x20for\x20pre-check','<PasswordPlaceholder>','IIjIJ','XwgXt','getUTCFullYear','zJNsG','body','<UsernamePlaceholder>','`\x20already\x20exists','1|3|2|0|4','mIPuI','PfoBY','INFO','parse','Tool\x20Installed','checkAccess','lHtrV','TPsHv','SlbWE','grid','EMhOq','qcjXa','FNWdm','https://','stack','Cluster\x20','usage','eQRhv','description','isTrialGridAccessible','options','GET','../../cloudproviders/utils','debug','SSL\x20Configured','bHMsQ','334974DLVFTf','desc','help','builder','Success','lDYjJ','`\x20,error\x20:\x20','Licng','method','pre_check','find','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','hoPYM','lANxC','gnITZ','ZLmPG','zBNiu','kXdJb','User\x20Access','../../utils/webSocketUtils','263844SYTBUI','connectionTimeout','oCRyb','throwHttpErrors','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','LrzIB','PWLPf','qtMeJ','KsVpf','ZpnKv','password','\x20\x20Message:\x20','existsSync','gridProfile','.txt','dIGpY','ZdUoN','sMkap','EwxtJ','is\x20already\x20present','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','sehFc','XzHaH','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','LOG','code','BCNyG','IhJwT','data','BRcbz','fcycW','length','fmuyS','44060BwgIhk','header','\x20data\x20:\x20','pre-check','NiPYv','pre-check-grid-called','isClusterPresent','dNmDR','MmVgM','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','info','N/A','getUTCMonth','cluster-name','KGmuc','xDFTj','WlWWn','gvqRq'];a17_0x1bfe=function(){return _0x606b87;};return a17_0x1bfe();}(function(_0x1f1900,_0xd83a70){const _0x5aa913=a17_0x3718,_0x4468f1=_0x1f1900();while(!![]){try{const _0x18dd49=parseInt(_0x5aa913(0x215))/0x1+parseInt(_0x5aa913(0x234))/0x2+-parseInt(_0x5aa913(0x2e3))/0x3+-parseInt(_0x5aa913(0x2ab))/0x4+parseInt(_0x5aa913(0x23d))/0x5*(-parseInt(_0x5aa913(0x247))/0x6)+parseInt(_0x5aa913(0x28c))/0x7+-parseInt(_0x5aa913(0x229))/0x8*(-parseInt(_0x5aa913(0x1f4))/0x9);if(_0x18dd49===_0xd83a70)break;else _0x4468f1['push'](_0x4468f1['shift']());}catch(_0x3c453e){_0x4468f1['push'](_0x4468f1['shift']());}}}(a17_0x1bfe,0x212d1));const fs=require('fs'),ws=require('ws'),got=require(a17_0x3fb03f(0x278)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x3fb03f(0x233)),{logger}=require(a17_0x3fb03f(0x252)),{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_0x3fb03f(0x284)),{getCloudProviderObjectWithOutInit}=require(a17_0x3fb03f(0x2df)),webSocketUtils=require(a17_0x3fb03f(0x1f3)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a17_0x3718(_0x2d0008,_0x1a9693){const _0x1bfecb=a17_0x1bfe();return a17_0x3718=function(_0x37181d,_0x19a844){_0x37181d=_0x37181d-0x1ef;let _0x54292a=_0x1bfecb[_0x37181d];return _0x54292a;},a17_0x3718(_0x2d0008,_0x1a9693);}exports[a17_0x3fb03f(0x25b)]=a17_0x3fb03f(0x2d2),exports[a17_0x3fb03f(0x2e4)]=a17_0x3fb03f(0x273),exports[a17_0x3fb03f(0x2e6)]=function(_0x5e9fd3){const _0x2c9f17=a17_0x3fb03f,_0x179943={};_0x179943[_0x2c9f17(0x2b7)]=_0x2c9f17(0x21e),_0x179943[_0x2c9f17(0x282)]='string',_0x179943[_0x2c9f17(0x230)]=_0x2c9f17(0x208),_0x179943['NiPYv']=_0x2c9f17(0x24c),_0x179943[_0x2c9f17(0x228)]=_0x2c9f17(0x23e),_0x179943[_0x2c9f17(0x299)]=_0x2c9f17(0x2e5);const _0x59a193=_0x179943,_0x31c599={};_0x31c599[_0x2c9f17(0x2db)]=_0x59a193['CPsVW'],_0x31c599[_0x2c9f17(0x2ba)]=_0x59a193[_0x2c9f17(0x282)];const _0x165a79={};_0x165a79[_0x2c9f17(0x2db)]=_0x59a193[_0x2c9f17(0x230)],_0x165a79[_0x2c9f17(0x2ba)]=_0x59a193['tZPzY'];const _0x27131c={};_0x27131c[_0x2c9f17(0x2db)]=_0x59a193[_0x2c9f17(0x219)],_0x27131c['type']=_0x59a193[_0x2c9f17(0x282)];const _0x57ed26={};_0x57ed26[_0x2c9f17(0x2db)]=_0x59a193[_0x2c9f17(0x228)],_0x57ed26['type']=_0x59a193[_0x2c9f17(0x282)];const _0x5090b0={};return _0x5090b0['cluster-name']=_0x31c599,_0x5090b0['cloud-provider']=_0x165a79,_0x5090b0[_0x2c9f17(0x241)]=_0x27131c,_0x5090b0[_0x2c9f17(0x22f)]=_0x57ed26,_0x5e9fd3[_0x2c9f17(0x2d9)](HELP_HEADER_MESSAGE[_0x2c9f17(0x2ec)])[_0x2c9f17(0x281)](HELP_FOOTER_MESSAGE)[_0x2c9f17(0x2dd)](_0x5090b0)[_0x2c9f17(0x2e5)](_0x59a193[_0x2c9f17(0x299)])[_0x2c9f17(0x262)];};async function inputValidation(_0xe42dfb,_0x58fc71){const _0x19f311=a17_0x3fb03f,_0x34e7fb={'qsyYT':function(_0x456b69,_0x4ab387){return _0x456b69+_0x4ab387;},'IIjIJ':_0x19f311(0x2e7),'LNwQU':_0x19f311(0x2b8),'GxiLf':function(_0xcc08df,_0xdba967){return _0xcc08df||_0xdba967;},'acSHB':'N/A','fylUg':_0x19f311(0x227),'uBVrZ':'cloud-provider','iwlmQ':_0x19f311(0x222),'CmdtO':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','IhJwT':_0x19f311(0x23b),'Avbzd':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','AcKVF':_0x19f311(0x24c),'dKAhN':_0x19f311(0x23e),'JcFMc':_0x19f311(0x2e5),'BGgVn':_0x19f311(0x29e),'KsVpf':_0x19f311(0x207),'EqboY':_0x19f311(0x297),'uTSfD':_0x19f311(0x272),'mIPuI':function(_0xe9d5d1,_0x1de7f2){return _0xe9d5d1===_0x1de7f2;},'TPsHv':_0x19f311(0x263),'WmuEv':_0x19f311(0x204),'xsIEw':function(_0x15fab1,_0x3e4afd){return _0x15fab1===_0x3e4afd;},'Rezcq':_0x19f311(0x1f1),'noJtH':function(_0x3062f2,_0x3fff50){return _0x3062f2===_0x3fff50;},'qJmDm':_0x19f311(0x261),'RlONz':'kptGH','dxffM':function(_0x35abe6,_0x190195){return _0x35abe6===_0x190195;},'qcjXa':'kzJSM','lHtrV':'xrJEx','oblDQ':_0x19f311(0x2f0),'adpyA':_0x19f311(0x269),'WlWWn':_0x19f311(0x241),'XzHaH':function(_0x4c75e2,_0x14bfef){return _0x4c75e2>_0x14bfef;},'PWLPf':function(_0x34d286,_0x2aac9c){return _0x34d286!==_0x2aac9c;},'icSrD':_0x19f311(0x271),'Hlmzb':function(_0x4f6e97,_0x20808b,_0x3f979f,_0x234768,_0x10cb20,_0x24a48f,_0x32171d,_0x3e0e8e){return _0x4f6e97(_0x20808b,_0x3f979f,_0x234768,_0x10cb20,_0x24a48f,_0x32171d,_0x3e0e8e);},'bjjMu':_0x19f311(0x21a),'xDFTj':_0x19f311(0x2a1),'OcCsW':_0x19f311(0x2e8),'srQxv':_0x19f311(0x1f8),'ZSYfJ':'cloud-provider-not-supported','Rbgfk':function(_0x35abbf,_0x2c56ea){return _0x35abbf!==_0x2c56ea;},'NXvBw':_0x19f311(0x2d5),'JNtiA':_0x19f311(0x1ef),'MjVXm':_0x19f311(0x2f1),'jaGWB':_0x19f311(0x2de),'bjeVB':function(_0x35833a,_0x4502c9,_0x56a172){return _0x35833a(_0x4502c9,_0x56a172);},'LrzIB':function(_0x5525e6,_0x40f223,_0x23dcfa,_0x37539f,_0x1bec17,_0x119bbd){return _0x5525e6(_0x40f223,_0x23dcfa,_0x37539f,_0x1bec17,_0x119bbd);},'Licng':_0x19f311(0x218),'ZXQNm':'grid-profile','qCoem':function(_0x4a9bec,_0x35f9ce){return _0x4a9bec===_0x35f9ce;},'sehFc':function(_0x347ac4,_0x1dec13){return _0x347ac4===_0x1dec13;},'MvykZ':_0x19f311(0x274),'BOlkt':_0x19f311(0x2ca),'YzlXQ':function(_0x3934ad,_0x418b83){return _0x3934ad(_0x418b83);},'fcycW':_0x19f311(0x236),'RGLON':_0x19f311(0x2ef),'bBeCO':function(_0x1ff827,_0x579a77,_0x3944f1,_0x4b7829,_0x4e2c11,_0x1fa64a,_0x56336c,_0x2aa6b6){return _0x1ff827(_0x579a77,_0x3944f1,_0x4b7829,_0x4e2c11,_0x1fa64a,_0x56336c,_0x2aa6b6);},'HDlMf':_0x19f311(0x267),'pjagd':_0x19f311(0x2a8),'Chulv':_0x19f311(0x2d3),'gahrr':_0x19f311(0x2bb),'AyTmQ':_0x19f311(0x2bf),'qtMeJ':function(_0x5b553e,_0x50fe7f){return _0x5b553e!==_0x50fe7f;},'BCNyG':_0x19f311(0x22a),'iuiBF':_0x19f311(0x2a5),'bHMsQ':'vuNFr','ehGeb':function(_0x44c6ba,_0x541bdd,_0x3e5172,_0x588f26,_0x372e26,_0x2b9cb8,_0x5caf38,_0x12d748){return _0x44c6ba(_0x541bdd,_0x3e5172,_0x588f26,_0x372e26,_0x2b9cb8,_0x5caf38,_0x12d748);}};let _0x401f19;try{if(_0x34e7fb[_0x19f311(0x2c9)](_0x34e7fb[_0x19f311(0x2d0)],_0x34e7fb[_0x19f311(0x255)])){const {header:_0x49a376,response:_0x120cd6}=_0x1a4d58,{status:_0x1c1b40,data:_0xc43e7d,error:_0x4602c3}=_0x120cd6;_0x5af744+=_0x49a376+'\x20#'+_0x34e7fb['qsyYT'](_0x4fa21d,0x1)+'\x0a',_0x50ffcc+=_0x19f311(0x26c)+(_0x1c1b40?_0x34e7fb[_0x19f311(0x2c1)]:_0x34e7fb['LNwQU'])+'\x0a',_0x5a4a6d+=_0x19f311(0x2a7)+_0x34e7fb['GxiLf'](_0xc43e7d,_0x34e7fb[_0x19f311(0x27f)])+'\x0a',_0x4602c3&&(_0x1b3728+=_0x34e7fb['fylUg'],_0x151e91+=_0x19f311(0x1ff)+(_0x4602c3['message']||_0x34e7fb['acSHB'])+'\x0a',_0x1017b2+=_0x19f311(0x28d)+(_0x4602c3[_0x19f311(0x20d)]||_0x34e7fb[_0x19f311(0x27f)])+'\x0a',_0xa62acf+='\x20\x20Stack:\x20'+(_0x4602c3['stack']||_0x34e7fb[_0x19f311(0x27f)])+'\x0a'),_0x87ba19+='\x0a\x0a';}else{if(_0xe42dfb[_0x19f311(0x2af)]||_0xe42dfb[_0x19f311(0x246)]||_0xe42dfb['region']){if(_0x34e7fb[_0x19f311(0x259)](_0x34e7fb[_0x19f311(0x27a)],_0x34e7fb[_0x19f311(0x27a)])){const _0x12f074=[];!_0xe42dfb['clusterName']&&(_0x34e7fb[_0x19f311(0x249)](_0x34e7fb['qJmDm'],_0x34e7fb[_0x19f311(0x251)])?_0x4f8045[_0x19f311(0x24b)](_0x34e7fb['uBVrZ']):_0x12f074['push'](_0x34e7fb[_0x19f311(0x2bd)]));;!_0xe42dfb[_0x19f311(0x246)]&&(_0x34e7fb[_0x19f311(0x24a)](_0x34e7fb[_0x19f311(0x2d4)],_0x34e7fb[_0x19f311(0x2cf)])?_0x3879b4[_0x19f311(0x24b)](_0x34e7fb[_0x19f311(0x2bd)]):_0x12f074[_0x19f311(0x24b)](_0x34e7fb['uBVrZ']));;if(!_0xe42dfb['region']){if(_0x34e7fb[_0x19f311(0x2c9)](_0x34e7fb[_0x19f311(0x26d)],_0x34e7fb['adpyA'])){const _0x4a7349={};_0x4a7349[_0x19f311(0x2db)]=_0x34e7fb[_0x19f311(0x287)],_0x4a7349[_0x19f311(0x2ba)]=_0x34e7fb['IhJwT'];const _0x54d1b0={};_0x54d1b0[_0x19f311(0x2db)]=_0x34e7fb[_0x19f311(0x2a3)],_0x54d1b0[_0x19f311(0x2ba)]=_0x34e7fb[_0x19f311(0x20f)];const _0x7938dd={};_0x7938dd[_0x19f311(0x2db)]=_0x34e7fb[_0x19f311(0x28a)],_0x7938dd[_0x19f311(0x2ba)]=_0x34e7fb[_0x19f311(0x20f)];const _0x40b5d7={};_0x40b5d7[_0x19f311(0x2db)]=_0x34e7fb['dKAhN'],_0x40b5d7[_0x19f311(0x2ba)]=_0x34e7fb['IhJwT'];const _0x594e96={};return _0x594e96[_0x19f311(0x222)]=_0x4a7349,_0x594e96[_0x19f311(0x29c)]=_0x54d1b0,_0x594e96[_0x19f311(0x241)]=_0x7938dd,_0x594e96[_0x19f311(0x22f)]=_0x40b5d7,_0x545459[_0x19f311(0x2d9)](_0x380ddc[_0x19f311(0x2ec)])[_0x19f311(0x281)](_0x255114)[_0x19f311(0x2dd)](_0x594e96)[_0x19f311(0x2e5)](_0x34e7fb[_0x19f311(0x2b4)])['argv'];}else _0x12f074[_0x19f311(0x24b)](_0x34e7fb[_0x19f311(0x225)]);};_0x34e7fb[_0x19f311(0x20a)](_0x12f074[_0x19f311(0x213)],0x0)&&(_0x34e7fb[_0x19f311(0x1fa)](_0x34e7fb[_0x19f311(0x265)],_0x34e7fb['icSrD'])?_0x14e2dc+=_0x19f311(0x2d8)+_0x286f39['clusterName']+_0x19f311(0x24d):(_0x401f19=_0x19f311(0x250)+_0x12f074[_0x19f311(0x235)](',\x20')+_0x19f311(0x2bc),await _0x34e7fb[_0x19f311(0x276)](reportToGalactusAndSendToEDS,_0xe42dfb,_0x58fc71,_0x401f19,messageTypes['ERROR'],_0x34e7fb[_0x19f311(0x25e)],_0x34e7fb[_0x19f311(0x224)],_0x34e7fb[_0x19f311(0x29f)]),logger[_0x19f311(0x272)](_0x401f19),process[_0x19f311(0x2a6)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0xe42dfb[_0x19f311(0x246)]['toLowerCase']())&&(_0x34e7fb['mIPuI'](_0x34e7fb['OcCsW'],_0x34e7fb[_0x19f311(0x248)])?(_0x401f19=_0x34e7fb['srQxv'],await _0x34e7fb[_0x19f311(0x276)](reportToGalactusAndSendToEDS,_0xe42dfb,_0x58fc71,_0x401f19,messageTypes['ERROR'],_0x34e7fb[_0x19f311(0x25e)],_0x34e7fb[_0x19f311(0x257)],_0x34e7fb['uTSfD']),logger[_0x19f311(0x272)](_0x401f19),!_0xe42dfb[_0x19f311(0x246)]&&(_0x34e7fb['Rbgfk'](_0x34e7fb['NXvBw'],_0x34e7fb['NXvBw'])?_0x136dfd=_0xe2430b:(logger[_0x19f311(0x21f)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x19f311(0x240)]+'\x20'),_0xe42dfb[_0x19f311(0x246)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']))):(_0x1d9371[_0x19f311(0x272)](_0x34e7fb[_0x19f311(0x23f)]),_0x2f57c4[_0x19f311(0x2a6)](0x1))),global_registry[_0x19f311(0x2af)]=_0xe42dfb[_0x19f311(0x2af)],global_registry[_0x19f311(0x246)]=_0xe42dfb[_0x19f311(0x246)],global_registry[_0x19f311(0x24e)]=_0xe42dfb[_0x19f311(0x241)];}else _0x306e46[_0x19f311(0x2a6)](0x1);}else{if(_0xe42dfb['gridProfile']){if(_0x34e7fb[_0x19f311(0x24a)](_0x34e7fb[_0x19f311(0x26e)],_0x34e7fb[_0x19f311(0x296)]))_0x407352['error'](_0x19f311(0x298)+_0x24c8ef[_0x19f311(0x272)][_0x19f311(0x2d7)]);else{global_registry[_0x19f311(0x201)]=_0xe42dfb[_0x19f311(0x201)],logger[_0x19f311(0x2e0)](_0x19f311(0x286)+_0xe42dfb[_0x19f311(0x201)]);const _0x28f258=_0x19f311(0x2d6)+AG_API_URL+_0x19f311(0x237),_0x4c9a19={};_0x4c9a19[_0x19f311(0x2eb)]=_0x34e7fb['jaGWB'],_0x4c9a19[_0x19f311(0x22e)]=global_registry[_0x19f311(0x22c)],_0x4c9a19[_0x19f311(0x1f7)]=![];const _0x3361b3=_0x4c9a19,_0x537197=await _0x34e7fb[_0x19f311(0x264)](got,_0x28f258,_0x3361b3),_0x47dfdc=await _0x34e7fb[_0x19f311(0x1f9)](responseValidation,_0x537197,_0x34e7fb[_0x19f311(0x2ea)],_0x34e7fb[_0x19f311(0x25d)],_0xe42dfb,_0x58fc71);let _0x3a605d={};if(_0x34e7fb['qCoem'](_0x47dfdc,0xc8)){if(_0x34e7fb[_0x19f311(0x209)](_0x34e7fb[_0x19f311(0x2b3)],_0x34e7fb[_0x19f311(0x2a0)]))_0x38c963['info'](_0x19f311(0x2a2)+_0x1d4b40[_0x19f311(0x240)]+'\x20'),_0x24f431[_0x19f311(0x246)]=_0x1d6be7[_0x19f311(0x240)];else{const _0x114bd9=JSON[_0x19f311(0x2cc)](_0x537197[_0x19f311(0x2c5)]),_0x455be1=_0x114bd9[_0x19f311(0x2ed)](_0x30273d=>_0x30273d['name']===_0xe42dfb[_0x19f311(0x201)])||null;_0x34e7fb[_0x19f311(0x253)](isUndefined,_0x455be1)?_0x34e7fb['sehFc'](_0x34e7fb[_0x19f311(0x212)],_0x34e7fb[_0x19f311(0x268)])?_0x64bf4f+=_0x19f311(0x2d8)+_0x505306[_0x19f311(0x2af)]+'\x20'+(_0x99df86?_0x34e7fb[_0x19f311(0x1fc)]:_0x34e7fb['EqboY'])+'\x0a\x0a':(_0x401f19=_0x19f311(0x277)+_0xe42dfb['gridProfile']+_0x19f311(0x2ee),await _0x34e7fb[_0x19f311(0x275)](reportToGalactusAndSendToEDS,_0xe42dfb,_0x58fc71,_0x401f19,messageTypes['ERROR'],_0x34e7fb[_0x19f311(0x25e)],_0x34e7fb[_0x19f311(0x23a)],_0x34e7fb['uTSfD']),logger[_0x19f311(0x272)](_0x401f19),process['exit'](0x1)):_0x34e7fb[_0x19f311(0x1fa)](_0x34e7fb[_0x19f311(0x2a9)],_0x34e7fb[_0x19f311(0x2a9)])?_0x5c34cd[_0x19f311(0x21f)]('Cluster\x20`'+_0x202931['clusterName']+_0x19f311(0x2c7)):_0x3a605d=_0x455be1;}}else _0x34e7fb[_0x19f311(0x249)](_0x34e7fb[_0x19f311(0x26b)],_0x34e7fb['gahrr'])?(_0x136e3e[_0x19f311(0x21f)]('['+_0x232e24+_0x19f311(0x2ac)+_0xb721ee[_0x19f311(0x239)]+_0x19f311(0x217)+_0x516d5b['data']+_0x19f311(0x291)+_0x4076d4[_0x19f311(0x272)]),_0x5268c1[_0x19f311(0x272)]&&_0x1c43c9[_0x19f311(0x272)](_0x19f311(0x298)+_0x292fda[_0x19f311(0x272)]['stack'])):process[_0x19f311(0x2a6)](0x1);const _0x1b2589={};_0x1b2589[_0x19f311(0x2ba)]=WS_EVENTS[_0x19f311(0x20c)],_0x1b2589[_0x19f311(0x285)]=_0x34e7fb[_0x19f311(0x26a)],webSocketUtils['sendEventToBackend'](_0x58fc71,_0x1b2589),global_registry[_0x19f311(0x246)]=_0x3a605d['cloudProvider'],global_registry[_0x19f311(0x24e)]=_0x3a605d[_0x19f311(0x241)],global_registry[_0x19f311(0x2af)]=_0x3a605d['clusterName'];}}else _0x34e7fb[_0x19f311(0x1fb)](_0x34e7fb[_0x19f311(0x20e)],_0x34e7fb[_0x19f311(0x20e)])?(_0x21e37e+=_0x34e7fb['fylUg'],_0x5159b9+=_0x19f311(0x1ff)+(_0x3ea641[_0x19f311(0x285)]||_0x34e7fb['acSHB'])+'\x0a',_0x206049+=_0x19f311(0x28d)+(_0x57ab72[_0x19f311(0x20d)]||_0x34e7fb[_0x19f311(0x27f)])+'\x0a',_0x3c7532+=_0x19f311(0x289)+(_0x6fc49c['stack']||_0x34e7fb[_0x19f311(0x27f)])+'\x0a'):(logger[_0x19f311(0x272)](_0x34e7fb[_0x19f311(0x23f)]),process[_0x19f311(0x2a6)](0x1));}}}catch(_0x432536){if(_0x34e7fb['Rbgfk'](_0x34e7fb[_0x19f311(0x256)],_0x34e7fb[_0x19f311(0x2e2)]))_0x401f19=_0x19f311(0x20b)+_0x432536+':\x20'+_0x432536[_0x19f311(0x2d7)],logger[_0x19f311(0x272)](_0x401f19),await _0x34e7fb[_0x19f311(0x2ae)](reportToGalactusAndSendToEDS,_0xe42dfb,_0x58fc71,_0x401f19,messageTypes[_0x19f311(0x254)],_0x34e7fb[_0x19f311(0x25e)],_0x34e7fb[_0x19f311(0x257)],_0x34e7fb[_0x19f311(0x29f)]),process[_0x19f311(0x2a6)](0x1);else{const _0x48ded2={};_0x48ded2['type']=_0x55b3e5[_0x19f311(0x20c)],_0x48ded2[_0x19f311(0x285)]=_0x3b859a,_0x193c71[_0x19f311(0x2b5)](_0xfcdb53,_0x48ded2,_0x34e7fb[_0x19f311(0x29f)],!![]);}}}function printResponse(_0x43face,_0x307daa){const _0x319688=a17_0x3fb03f,_0x51651e={};_0x51651e[_0x319688(0x214)]='region',_0x51651e[_0x319688(0x2c4)]=function(_0x3a460b,_0xb46863){return _0x3a460b===_0xb46863;},_0x51651e[_0x319688(0x27d)]='oZjXD';const _0x1f5908=_0x51651e;logger[_0x319688(0x21f)]('['+_0x43face+_0x319688(0x2ac)+_0x307daa['status']+'\x20data\x20:\x20'+_0x307daa[_0x319688(0x210)]+_0x319688(0x291)+_0x307daa['error']),_0x307daa[_0x319688(0x272)]&&(_0x1f5908['zJNsG'](_0x1f5908[_0x319688(0x27d)],_0x1f5908[_0x319688(0x27d)])?logger[_0x319688(0x272)]('error\x20stack\x20:\x20'+_0x307daa['error'][_0x319688(0x2d7)]):_0xbc55b4[_0x319688(0x24b)](_0x1f5908[_0x319688(0x214)]));}async function generateReport(_0x2e2498,_0x55dd3d){const _0x57e42e=a17_0x3fb03f,_0x55dd3a={'SuhjD':function(_0x974027,_0x59d51c){return _0x974027+_0x59d51c;},'sMkap':_0x57e42e(0x2e7),'pDvwW':_0x57e42e(0x2b8),'LnfYN':function(_0x29618c,_0x17c36a){return _0x29618c||_0x17c36a;},'eQRhv':_0x57e42e(0x220),'gMsIW':'Error\x20Details:\x0a','oCRyb':'Cluster\x20details\x0a-----------------------\x0a','kEoOV':function(_0x551502,_0x5a973c){return _0x551502!=_0x5a973c;},'XwgXt':_0x57e42e(0x207),'zBNiu':_0x57e42e(0x297),'hhtwC':function(_0x12dd4a){return _0x12dd4a();}};let _0x19d903=_0x57e42e(0x2ad)+global_registry['cloudProvider']+'\x20===\x0a\x0a';return _0x2e2498[_0x57e42e(0x245)]((_0x4ff759,_0x5e9fc3)=>{const _0x5b9642=_0x57e42e,{header:_0x2a6291,response:_0x424715}=_0x4ff759,{status:_0xc6797e,data:_0x35f860,error:_0x608513}=_0x424715;_0x19d903+=_0x2a6291+'\x20#'+_0x55dd3a['SuhjD'](_0x5e9fc3,0x1)+'\x0a',_0x19d903+=_0x5b9642(0x26c)+(_0xc6797e?_0x55dd3a[_0x5b9642(0x205)]:_0x55dd3a[_0x5b9642(0x279)])+'\x0a',_0x19d903+=_0x5b9642(0x2a7)+_0x55dd3a[_0x5b9642(0x2b0)](_0x35f860,_0x55dd3a[_0x5b9642(0x2da)])+'\x0a',_0x608513&&(_0x19d903+=_0x55dd3a['gMsIW'],_0x19d903+=_0x5b9642(0x1ff)+(_0x608513[_0x5b9642(0x285)]||_0x55dd3a[_0x5b9642(0x2da)])+'\x0a',_0x19d903+=_0x5b9642(0x28d)+(_0x608513[_0x5b9642(0x20d)]||_0x55dd3a[_0x5b9642(0x2da)])+'\x0a',_0x19d903+=_0x5b9642(0x289)+(_0x608513[_0x5b9642(0x2d7)]||_0x55dd3a['eQRhv'])+'\x0a'),_0x19d903+='\x0a\x0a';}),_0x19d903+=_0x55dd3a[_0x57e42e(0x1f6)],_0x55dd3a[_0x57e42e(0x24f)](_0x55dd3d,null)?_0x19d903+=_0x57e42e(0x2d8)+global_registry['clusterName']+'\x20'+(_0x55dd3d?_0x55dd3a[_0x57e42e(0x2c2)]:_0x55dd3a[_0x57e42e(0x1f0)])+'\x0a\x0a':_0x19d903+='Cluster\x20'+global_registry[_0x57e42e(0x2af)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x19d903+=_0x55dd3a[_0x57e42e(0x293)](getSystemMetaData),_0x19d903;};exports[a17_0x3fb03f(0x292)]=async function(_0x640ba6){const _0x2393ba=a17_0x3fb03f,_0x51db19={'cdTpb':function(_0x188317){return _0x188317();},'kJCru':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','txGkj':function(_0x4f9632,_0x4ade4c,_0x4d8881,_0x1a1f83,_0xb047e5,_0x657e0f,_0x4dea5c,_0x2df709){return _0x4f9632(_0x4ade4c,_0x4d8881,_0x1a1f83,_0xb047e5,_0x657e0f,_0x4dea5c,_0x2df709);},'sAShS':_0x2393ba(0x21a),'iVykc':_0x2393ba(0x29d),'CdVRc':_0x2393ba(0x272),'xdSer':function(_0x2342ec,_0x2cb839,_0x7834b3,_0x4c49b2,_0x4cc5bb,_0x1d66e5,_0x2cdcfa){return _0x2342ec(_0x2cb839,_0x7834b3,_0x4c49b2,_0x4cc5bb,_0x1d66e5,_0x2cdcfa);},'NrbDj':_0x2393ba(0x2c6),'qlSNW':_0x2393ba(0x2c0),'Qjqxn':function(_0x4227e6,_0x550070,_0x5b8c0e){return _0x4227e6(_0x550070,_0x5b8c0e);},'waqmq':'dummy-grid','dIGpY':function(_0x13f3fd,_0x55254f,_0x39a550){return _0x13f3fd(_0x55254f,_0x39a550);},'ZpnKv':_0x2393ba(0x283),'jApDW':_0x2393ba(0x2c8),'EwxtJ':function(_0xdf22b8,_0x5bc0a0,_0x2b6425,_0x4d1d18,_0x2d9a4e,_0x29a07d,_0x493905,_0x53e760){return _0xdf22b8(_0x5bc0a0,_0x2b6425,_0x4d1d18,_0x2d9a4e,_0x29a07d,_0x493905,_0x53e760);},'fjlrV':function(_0x4eec8f,_0x20a607,_0x30c0f8){return _0x4eec8f(_0x20a607,_0x30c0f8);},'SlbWE':_0x2393ba(0x2b2),'SgOnA':function(_0x5a7a03){return _0x5a7a03();},'ZScfT':_0x2393ba(0x2dc),'gvqRq':function(_0x3ed2bd,_0x25ae12){return _0x3ed2bd(_0x25ae12);},'MmVgM':_0x2393ba(0x25c),'dQmVR':'isTls1_2_SUPPORTED','VHNtw':_0x2393ba(0x2cd),'dNmDR':_0x2393ba(0x1f2),'naoAg':_0x2393ba(0x2be),'BRcbz':_0x2393ba(0x2e1),'UQsvv':function(_0x683ba4,_0x120338){return _0x683ba4+_0x120338;},'KGmuc':_0x2393ba(0x295),'DIPZO':_0x2393ba(0x242)};let _0x5de5fb,_0xa2c93c;try{global_registry['requestId']=_0x51db19[_0x2393ba(0x29a)](uuidv4);!fs[_0x2393ba(0x200)](_0x51db19[_0x2393ba(0x29a)](getCredentialsPath))&&(_0xa2c93c=_0x51db19['kJCru'],logger[_0x2393ba(0x272)](_0xa2c93c),await _0x51db19[_0x2393ba(0x266)](reportToGalactusAndSendToEDS,_0x640ba6,_0x5de5fb,_0xa2c93c,messageTypes[_0x2393ba(0x254)],_0x51db19[_0x2393ba(0x22d)],_0x51db19['iVykc'],_0x51db19[_0x2393ba(0x2b1)]),process[_0x2393ba(0x2a6)](0x1));_0x51db19['xdSer'](sendInstrumentationEvent,_0x640ba6,_0x51db19[_0x2393ba(0x22d)],messageTypes[_0x2393ba(0x2cb)],null,null,_0x640ba6);const _0x4ec286=JSON['parse'](fs[_0x2393ba(0x238)](_0x51db19['cdTpb'](getCredentialsPath)));global_registry[_0x2393ba(0x26f)]=_0x4ec286[_0x2393ba(0x2b6)][_0x2393ba(0x23c)],global_registry[_0x2393ba(0x290)]=_0x4ec286['Browserstack'][_0x2393ba(0x1fe)];const _0x3c9b1c=WS_ENDPOINT[_0x2393ba(0x28b)](_0x51db19[_0x2393ba(0x27c)],_0x4ec286['Browserstack'][_0x2393ba(0x23c)])['replace'](_0x51db19['qlSNW'],_0x4ec286[_0x2393ba(0x2b6)][_0x2393ba(0x1fe)]),_0x4db02a={};_0x4db02a['WebSocket']=ws,_0x4db02a[_0x2393ba(0x1f5)]=0x36ee80,_0x5de5fb=new ReconnectingWebSocket(_0x3c9b1c,[],_0x4db02a),global_registry['authHeader']=_0x51db19[_0x2393ba(0x29b)](getAuthHeader,global_registry[_0x2393ba(0x26f)],global_registry[_0x2393ba(0x290)]),await _0x51db19[_0x2393ba(0x29b)](inputValidation,_0x640ba6,_0x5de5fb),logger['info'](_0x2393ba(0x2aa)+global_registry[_0x2393ba(0x246)]+_0x2393ba(0x28f)+global_registry['clusterRegion']);let _0x4ad258=await _0x51db19[_0x2393ba(0x244)](getCloudProviderObjectWithOutInit,global_registry[_0x2393ba(0x246)],global_registry[_0x2393ba(0x2af)],_0x51db19[_0x2393ba(0x258)],_0x5de5fb,webSocketUtils,_0x640ba6);const _0x578b92=await _0x4ad258['isCliToolInstalled']();_0x51db19[_0x2393ba(0x203)](printResponse,_0x51db19[_0x2393ba(0x1fd)],_0x578b92),_0x4ad258=await _0x4ad258['init']();let _0x543a42=![];try{_0x543a42=await _0x4ad258[_0x2393ba(0x21b)]();}catch(_0x34b10a){const _0xfb48fb=_0x51db19[_0x2393ba(0x280)][_0x2393ba(0x25f)]('|');let _0x32396b=0x0;while(!![]){switch(_0xfb48fb[_0x32396b++]){case'0':_0xa2c93c+='\x0a'+JSON[_0x2393ba(0x22b)](_0x34b10a[_0x2393ba(0x2d7)]);continue;case'1':_0xa2c93c=_0x2393ba(0x243)+global_registry[_0x2393ba(0x2af)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x2393ba(0x24e)]+_0x2393ba(0x2e9)+_0x34b10a;continue;case'2':logger['error'](_0xa2c93c);continue;case'3':_0x543a42=null;continue;case'4':await _0x51db19[_0x2393ba(0x206)](reportToGalactusAndSendToEDS,_0x640ba6,_0x5de5fb,_0xa2c93c,messageTypes[_0x2393ba(0x254)],_0x51db19['sAShS'],_0x2393ba(0x27b)+global_registry[_0x2393ba(0x246)],_0x51db19[_0x2393ba(0x2b1)]);continue;}break;}}_0x543a42&&logger['info'](_0x2393ba(0x260)+global_registry[_0x2393ba(0x2af)]+_0x2393ba(0x2c7));const _0x2c6355=await _0x4ad258[_0x2393ba(0x2ce)]();_0x51db19['fjlrV'](printResponse,_0x51db19[_0x2393ba(0x2d1)],_0x2c6355);const _0x29c2d0=await _0x51db19[_0x2393ba(0x231)](curlRequest);_0x51db19[_0x2393ba(0x203)](printResponse,_0x51db19[_0x2393ba(0x2a4)],_0x29c2d0);const _0x390412=await _0x51db19[_0x2393ba(0x226)](isTlsSupported,_0x51db19[_0x2393ba(0x21d)]);_0x51db19[_0x2393ba(0x29b)](printResponse,_0x51db19[_0x2393ba(0x27e)],_0x390412);const _0x31b672={};_0x31b672[_0x2393ba(0x216)]=_0x51db19[_0x2393ba(0x2b9)],_0x31b672['response']=_0x578b92;const _0x5217cf={};_0x5217cf['header']=_0x51db19[_0x2393ba(0x21c)],_0x5217cf[_0x2393ba(0x288)]=_0x2c6355;const _0x3cf4f0={};_0x3cf4f0['header']=_0x51db19[_0x2393ba(0x294)],_0x3cf4f0['response']=_0x29c2d0;const _0x354286={};_0x354286[_0x2393ba(0x216)]=_0x51db19[_0x2393ba(0x211)],_0x354286[_0x2393ba(0x288)]=_0x390412;const _0x17c305=[_0x31b672,_0x5217cf,_0x3cf4f0,_0x354286],_0x26c702=await _0x51db19[_0x2393ba(0x29b)](generateReport,_0x17c305,_0x543a42),_0x260721=new Date(),_0x46290c=_0x260721[_0x2393ba(0x2c3)]()+'_'+_0x51db19['UQsvv'](_0x260721[_0x2393ba(0x221)](),0x1)+'_'+_0x260721['getUTCDate']()+'_'+_0x260721['getUTCHours']()+'_'+_0x260721['getUTCMinutes'](),_0x3cdea1=_0x2393ba(0x28e)+_0x46290c+_0x2393ba(0x202);fs['writeFileSync'](_0x3cdea1,_0x26c702,_0x51db19[_0x2393ba(0x223)]),logger[_0x2393ba(0x21f)]('Report\x20saved\x20in\x20'+_0x3cdea1),process['exit'](0x0);}catch(_0x43325e){let _0x4f43d9=_0x2393ba(0x270)+_0x43325e+'\x20';logger[_0x2393ba(0x272)](_0x4f43d9),_0x4f43d9+='\x0a'+JSON['stringify'](_0x43325e[_0x2393ba(0x2d7)]),logger[_0x2393ba(0x2e0)]('stack\x20trace\x20'+_0x43325e['stack']);if(_0x5de5fb){const _0x54e938={};_0x54e938['type']=WS_EVENTS['LOG'],_0x54e938['message']=_0x4f43d9,webSocketUtils['sendEventToBackend'](_0x5de5fb,_0x54e938,_0x51db19[_0x2393ba(0x2b1)],!![]);}await webSocketUtils[_0x2393ba(0x232)](0x7d0);const _0xaa7eb={};_0xaa7eb[_0x2393ba(0x272)]=_0x4f43d9,await _0x51db19[_0x2393ba(0x244)](sendInstrumentationEvent,_0x640ba6,_0x51db19['sAShS'],messageTypes[_0x2393ba(0x254)],_0x51db19[_0x2393ba(0x25a)],_0xaa7eb,_0x640ba6),process[_0x2393ba(0x2a6)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a18_0x2cb681=a18_0x36ca;(function(_0x1b6287,_0x13bce2){const _0xfb2e31=a18_0x36ca,_0x5e390d=_0x1b6287();while(!![]){try{const _0x3598e2=-parseInt(_0xfb2e31(0x1c0))/0x1+parseInt(_0xfb2e31(0x1b6))/0x2+parseInt(_0xfb2e31(0x1b0))/0x3+-parseInt(_0xfb2e31(0x1b8))/0x4+parseInt(_0xfb2e31(0x1b4))/0x5+parseInt(_0xfb2e31(0x1b9))/0x6+parseInt(_0xfb2e31(0x1b3))/0x7*(-parseInt(_0xfb2e31(0x1bb))/0x8);if(_0x3598e2===_0x13bce2)break;else _0x5e390d['push'](_0x5e390d['shift']());}catch(_0x52c6fb){_0x5e390d['push'](_0x5e390d['shift']());}}}(a18_0x5190,0x1ca2a));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x2cb681(0x1ba));function a18_0x36ca(_0x785dd1,_0x3e4ad8){const _0x51904b=a18_0x5190();return a18_0x36ca=function(_0x36ca59,_0x1cdf5c){_0x36ca59=_0x36ca59-0x1af;let _0x39b096=_0x51904b[_0x36ca59];return _0x39b096;},a18_0x36ca(_0x785dd1,_0x3e4ad8);}function a18_0x5190(){const _0x1598ec=['handler','374133abCLLU','recommendCommands','start','424207EQBITe','510700pFSxQH','Start\x20an\x20existing\x20Automation\x20grid.','300808iCLFBJ','help','812340LzwsSd','678948dbaotb','../config/constants','8RfykIY','demandCommand','umEZR','desc','epilogue','109437nfdqTZ','start_commands','command','XIYmC','commandDir'];a18_0x5190=function(){return _0x1598ec;};return a18_0x5190();}exports[a18_0x2cb681(0x1c2)]=a18_0x2cb681(0x1b2),exports[a18_0x2cb681(0x1be)]=a18_0x2cb681(0x1b5),exports['builder']=function(_0x44121d){const _0x58d87e=a18_0x2cb681,_0x2af727={};_0x2af727[_0x58d87e(0x1c3)]=_0x58d87e(0x1c1),_0x2af727[_0x58d87e(0x1bd)]=_0x58d87e(0x1b7);const _0x1a678e=_0x2af727;return _0x44121d['usage'](HELP_HEADER_MESSAGE[_0x58d87e(0x1b2)])[_0x58d87e(0x1bf)](HELP_FOOTER_MESSAGE)[_0x58d87e(0x1c4)](_0x1a678e[_0x58d87e(0x1c3)])[_0x58d87e(0x1bc)]()[_0x58d87e(0x1b1)]()['strict']()[_0x58d87e(0x1b7)](_0x1a678e[_0x58d87e(0x1bd)]);},exports[a18_0x2cb681(0x1af)]=function(_0x3495d5){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a19_0x33e391=a19_0x1a16;function a19_0x1a16(_0x131391,_0x49713d){const _0x5452ea=a19_0x5452();return a19_0x1a16=function(_0x1a1666,_0x1180b2){_0x1a1666=_0x1a1666-0xb7;let _0x2948b8=_0x5452ea[_0x1a1666];return _0x2948b8;},a19_0x1a16(_0x131391,_0x49713d);}(function(_0x5ac7a0,_0x322d90){const _0x4eedee=a19_0x1a16,_0x5df1fc=_0x5ac7a0();while(!![]){try{const _0x2ef75c=parseInt(_0x4eedee(0xd5))/0x1+-parseInt(_0x4eedee(0xb8))/0x2*(parseInt(_0x4eedee(0xc0))/0x3)+-parseInt(_0x4eedee(0xc1))/0x4*(-parseInt(_0x4eedee(0xbf))/0x5)+-parseInt(_0x4eedee(0xe7))/0x6*(parseInt(_0x4eedee(0xbb))/0x7)+-parseInt(_0x4eedee(0xf7))/0x8+-parseInt(_0x4eedee(0xb9))/0x9+parseInt(_0x4eedee(0xcf))/0xa;if(_0x2ef75c===_0x322d90)break;else _0x5df1fc['push'](_0x5df1fc['shift']());}catch(_0x2e0065){_0x5df1fc['push'](_0x5df1fc['shift']());}}}(a19_0x5452,0xd1ee6));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x33e391(0xf4)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x33e391(0xe6)),{sendInstrumentationEvent}=require(a19_0x33e391(0x102)),webSocketUtils=require(a19_0x33e391(0xec)),{createK8sClient}=require(a19_0x33e391(0xdb)),{getCloudProviderObject}=require(a19_0x33e391(0xda));exports[a19_0x33e391(0x108)]='grid',exports[a19_0x33e391(0xf8)]=a19_0x33e391(0x104),exports['builder']=function(_0x28bd14){const _0x74e9e5=a19_0x33e391,_0x3cef8e={};_0x3cef8e['oavUS']=_0x74e9e5(0x107),_0x3cef8e[_0x74e9e5(0xc5)]=_0x74e9e5(0xe5),_0x3cef8e[_0x74e9e5(0xd6)]=_0x74e9e5(0xd0),_0x3cef8e[_0x74e9e5(0xb7)]='boolean',_0x3cef8e[_0x74e9e5(0xf5)]=_0x74e9e5(0xee);const _0x407732=_0x3cef8e,_0x367d11={};_0x367d11[_0x74e9e5(0xc7)]=_0x407732[_0x74e9e5(0xfb)],_0x367d11[_0x74e9e5(0xfc)]=_0x407732[_0x74e9e5(0xc5)];const _0x144f2b={};_0x144f2b[_0x74e9e5(0xc7)]=_0x407732[_0x74e9e5(0xd6)],_0x144f2b[_0x74e9e5(0xfc)]=_0x407732['TpgXa'],_0x144f2b['default']=![];const _0x1a0adf={};return _0x1a0adf[_0x74e9e5(0xfa)]=_0x367d11,_0x1a0adf[_0x74e9e5(0xc2)]=_0x144f2b,_0x28bd14[_0x74e9e5(0xbe)](HELP_HEADER_MESSAGE[_0x74e9e5(0x10a)])[_0x74e9e5(0xce)](HELP_FOOTER_MESSAGE)[_0x74e9e5(0xef)](_0x1a0adf)['help'](_0x407732[_0x74e9e5(0xf5)])[_0x74e9e5(0xbd)];},exports[a19_0x33e391(0x109)]=async function(_0x125cd0){const _0x3959e8=a19_0x33e391,_0x1bfea5={'MwJml':_0x3959e8(0xe2),'FnEGZ':function(_0x4d255e){return _0x4d255e();},'mMKxR':_0x3959e8(0xde),'Qxjbe':function(_0x4ac82e,_0x2156fa,_0x34d89e,_0x32b469,_0x8a71a,_0x4fc30b,_0x4bf580){return _0x4ac82e(_0x2156fa,_0x34d89e,_0x32b469,_0x8a71a,_0x4fc30b,_0x4bf580);},'garCS':'start-grid-called','AiIsf':_0x3959e8(0xd9),'pTdNw':_0x3959e8(0xf1),'LGNkA':_0x3959e8(0xeb),'kRAoV':_0x3959e8(0x101),'KGORL':function(_0x2ffa06,_0x12776a,_0x249334,_0x1e3819){return _0x2ffa06(_0x12776a,_0x249334,_0x1e3819);},'YEnki':function(_0xe18fbe,_0x4b32e3,_0x5fc94d,_0x1c9f60,_0x54ed90,_0x3ef7a4,_0x320e51){return _0xe18fbe(_0x4b32e3,_0x5fc94d,_0x1c9f60,_0x54ed90,_0x3ef7a4,_0x320e51);},'vAIck':function(_0x39610c,_0x2fd4a6,_0x2323f8){return _0x39610c(_0x2fd4a6,_0x2323f8);},'scgoA':'Grid\x20started','ltBib':function(_0x282e82,_0x469f5e){return _0x282e82===_0x469f5e;},'UEgfv':_0x3959e8(0x10b),'rkVZJ':function(_0x18b859,_0x5a972a,_0x31eb12,_0x5ba2c7,_0x3a3aab,_0x264313,_0x2015c4){return _0x18b859(_0x5a972a,_0x31eb12,_0x5ba2c7,_0x3a3aab,_0x264313,_0x2015c4);},'CernH':'unauthorised','SJdlS':_0x3959e8(0xf0),'UHnIw':'server-error'};let _0x2f7c14;try{!_0x125cd0[_0x3959e8(0xf3)]&&(logger['error'](_0x1bfea5['MwJml']),process['exit'](0x1));!fs['existsSync'](_0x1bfea5['FnEGZ'](getCredentialsPath))&&(logger[_0x3959e8(0xfd)](_0x1bfea5[_0x3959e8(0xe1)]),await _0x1bfea5[_0x3959e8(0xbc)](sendInstrumentationEvent,_0x125cd0,_0x1bfea5['garCS'],messageTypes['ERROR'],_0x1bfea5[_0x3959e8(0xc4)],null,_0x125cd0),process[_0x3959e8(0x10d)](0x1));logger[_0x3959e8(0x10c)](_0x3959e8(0xc8)+_0x125cd0[_0x3959e8(0xf3)]),await _0x1bfea5[_0x3959e8(0xbc)](sendInstrumentationEvent,_0x125cd0,_0x1bfea5[_0x3959e8(0xe3)],messageTypes['INFO'],null,null,_0x125cd0);const _0x4c9c07=JSON['parse'](fs[_0x3959e8(0x10e)](_0x1bfea5[_0x3959e8(0xc3)](getCredentialsPath)));global_registry[_0x3959e8(0xd7)]=_0x4c9c07[_0x3959e8(0xdc)][_0x3959e8(0xdf)],global_registry[_0x3959e8(0xd4)]=_0x4c9c07[_0x3959e8(0xdc)][_0x3959e8(0xf2)];const _0x598d88=WS_ENDPOINT[_0x3959e8(0xe8)](_0x1bfea5[_0x3959e8(0xcd)],_0x4c9c07[_0x3959e8(0xdc)]['username'])['replace'](_0x1bfea5[_0x3959e8(0x100)],_0x4c9c07[_0x3959e8(0xdc)]['password']),_0x11310a={};_0x11310a['WebSocket']=ws,_0x11310a['connectionTimeout']=0x36ee80,_0x2f7c14=new ReconnectingWebSocket(_0x598d88,[],_0x11310a),logger[_0x3959e8(0xf9)](_0x1bfea5[_0x3959e8(0xe0)]),webSocketUtils[_0x3959e8(0xd1)](_0x2f7c14,_0x125cd0['user'],_0x125cd0[_0x3959e8(0xf2)]);const [_0x28ffad,_0x2855c6]=await _0x1bfea5['KGORL'](getGridDetails,_0x4c9c07[_0x3959e8(0xdc)][_0x3959e8(0xdf)],_0x4c9c07[_0x3959e8(0xdc)][_0x3959e8(0xf2)],_0x125cd0[_0x3959e8(0xf3)]);if(_0x2855c6){const _0x5c7e20=_0x2855c6[_0x3959e8(0x10c)];global_registry[_0x3959e8(0xcc)]=_0x5c7e20[_0x3959e8(0xcc)],global_registry[_0x3959e8(0x105)]=_0x5c7e20['region'],global_registry[_0x3959e8(0xe9)]=_0x5c7e20['clusterName'];const _0x190f36=await _0x1bfea5[_0x3959e8(0x106)](getCloudProviderObject,_0x5c7e20[_0x3959e8(0xcc)],_0x5c7e20['clusterName'],_0x5c7e20[_0x3959e8(0xd2)],_0x2f7c14,webSocketUtils,_0x125cd0),[_0x370f5b,_0x1a5418,_0x52ec48,_0x52f713,_0x2bca53,_0xbb5652]=await _0x1bfea5[_0x3959e8(0x10f)](createK8sClient,_0x190f36,_0x125cd0[_0x3959e8(0xea)]);await _0x1bfea5[_0x3959e8(0x10f)](scaleUpHubDeployment,_0x1a5418,_0x5c7e20[_0x3959e8(0xd2)]),logger[_0x3959e8(0x10c)](_0x1bfea5[_0x3959e8(0xd3)]),process['exit'](0x0);}_0x1bfea5[_0x3959e8(0xed)](_0x28ffad['statusCode'],0x191)&&(logger[_0x3959e8(0xfd)](_0x1bfea5[_0x3959e8(0x103)]),await _0x1bfea5['rkVZJ'](sendInstrumentationEvent,_0x125cd0,_0x1bfea5[_0x3959e8(0xe3)],messageTypes['ERROR'],_0x1bfea5[_0x3959e8(0xc9)],null,_0x125cd0),process[_0x3959e8(0x10d)](0x1)),_0x1bfea5['ltBib'](_0x28ffad['statusCode'],0x190)&&(logger[_0x3959e8(0xfd)](JSON[_0x3959e8(0xc6)](_0x28ffad[_0x3959e8(0xca)])[_0x3959e8(0xd8)]),await _0x1bfea5[_0x3959e8(0xfe)](sendInstrumentationEvent,_0x125cd0,_0x1bfea5[_0x3959e8(0xe3)],messageTypes[_0x3959e8(0xcb)],_0x1bfea5[_0x3959e8(0xdd)],null,_0x125cd0),process['exit'](0x1)),logger['error'](_0x3959e8(0xe4)+JSON['stringify'](_0x28ffad)),await _0x1bfea5[_0x3959e8(0xbc)](sendInstrumentationEvent,_0x125cd0,_0x1bfea5['garCS'],messageTypes[_0x3959e8(0xcb)],_0x1bfea5[_0x3959e8(0xf6)],_0x28ffad,_0x125cd0),process[_0x3959e8(0x10d)](0x1);}catch(_0x247fe3){const _0x2d1963=_0x3959e8(0xba)+_0x247fe3+'\x20\x0a'+JSON['stringify'](_0x247fe3[_0x3959e8(0xff)])+'\x20';logger['error'](_0x2d1963),process[_0x3959e8(0x10d)](0x1);}};function a19_0x5452(){const _0x31abd9=['parse','description','Starting\x20grid\x20','CernH','body','ERROR','cloudProvider','pTdNw','epilogue','6767280fCkfFU','Skip\x20insecure\x20cert\x20verification.','addListeners','name','scgoA','bstackAccesskey','1719739JstJjz','tFNLA','bstackUsername','message','init-not-called','../../cloudproviders/utils','../../utils/createk8sClient','Browserstack','SJdlS','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','username','kRAoV','mMKxR','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','garCS','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','string','../../utils/gridComponents','78zAiCNo','replace','clusterName','skipTlsCertVerify','<PasswordPlaceholder>','../../utils/webSocketUtils','ltBib','help','options','invalid-grid-id','<UsernamePlaceholder>','password','gridId','reconnecting-websocket','ijqsN','UHnIw','259472nqstxI','desc','debug','grid-id','oavUS','type','error','rkVZJ','stack','LGNkA','Adding\x20Websocket\x20listeners','../../utils/instrumentationUtils','UEgfv','Start\x20an\x20existing\x20Automation\x20grid.','clusterRegion','YEnki','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','command','handler','start','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','info','exit','readFileSync','vAIck','TpgXa','2Jikzug','12187521YmTjah','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','545041QOucEb','Qxjbe','argv','usage','1613455GbHuYQ','1285593NhiHNB','16Zxzunm','skip-tls-cert-verify','FnEGZ','AiIsf','oWXtJ'];a19_0x5452=function(){return _0x31abd9;};return a19_0x5452();}
|
package/ats/src/commands/stop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x362398=a20_0x3bfd;(function(_0x239a6a,_0xff9853){const _0x131bee=a20_0x3bfd,_0xdc6a26=_0x239a6a();while(!![]){try{const _0x57b72f=-parseInt(_0x131bee(0x1e8))/0x1*(parseInt(_0x131bee(0x1ef))/0x2)+parseInt(_0x131bee(0x1da))/0x3+-parseInt(_0x131bee(0x1ee))/0x4*(-parseInt(_0x131bee(0x1f1))/0x5)+-parseInt(_0x131bee(0x1e3))/0x6*(parseInt(_0x131bee(0x1ed))/0x7)+parseInt(_0x131bee(0x1dc))/0x8*(parseInt(_0x131bee(0x1ec))/0x9)+-parseInt(_0x131bee(0x1de))/0xa*(parseInt(_0x131bee(0x1e0))/0xb)+parseInt(_0x131bee(0x1e2))/0xc;if(_0x57b72f===_0xff9853)break;else _0xdc6a26['push'](_0xdc6a26['shift']());}catch(_0x1ca804){_0xdc6a26['push'](_0xdc6a26['shift']());}}}(a20_0x101c,0x93929));function a20_0x3bfd(_0x378674,_0xcdac95){const _0x101c51=a20_0x101c();return a20_0x3bfd=function(_0x3bfd88,_0x5f569e){_0x3bfd88=_0x3bfd88-0x1da;let _0x597df0=_0x101c51[_0x3bfd88];return _0x597df0;},a20_0x3bfd(_0x378674,_0xcdac95);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x362398(0x1e1));exports[a20_0x362398(0x1db)]=a20_0x362398(0x1eb),exports[a20_0x362398(0x1df)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x362398(0x1e9)]=function(_0x5a42cd){const _0x534c8c=a20_0x362398,_0x24a546={};_0x24a546['SXKsu']=_0x534c8c(0x1e5),_0x24a546[_0x534c8c(0x1e4)]='help';const _0x14a098=_0x24a546;return _0x5a42cd['usage'](HELP_HEADER_MESSAGE['stop'])[_0x534c8c(0x1dd)](HELP_FOOTER_MESSAGE)[_0x534c8c(0x1f0)](_0x14a098[_0x534c8c(0x1ea)])['demandCommand']()['recommendCommands']()[_0x534c8c(0x1e6)]()[_0x534c8c(0x1e7)](_0x14a098['oceoz']);},exports['handler']=function(_0x3190a2){};function a20_0x101c(){const _0xb71049=['2666380DXRbna','desc','22VlFhHJ','../config/constants','2218848ZmVFAb','24Cojlxp','oceoz','stop_commands','strict','help','1lGWOVt','builder','SXKsu','stop','9yxlrBE','530754dAmirO','1652276LWWvOh','2105802llvbRI','commandDir','10nROArs','3521508trSaGU','command','2472352TdUwkw','epilogue'];a20_0x101c=function(){return _0xb71049;};return a20_0x101c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a21_0x2115(){const _0x4349bd=['1145vASMIO','VSkhv','STjXi','default','ERROR','init-not-called','PQbKN','description','cloudProvider','../../config/logger','error','exit','../../config/constants','9lfaKdV','../../utils/gridComponents','stringify','971179EcfdCx','kvFys','invalid-grid-id','qagNj','builder','connectionTimeout','clusterName','grid','bstackUsername','40JzYjiJ','../../utils/createk8sClient','XXsAL','addListeners','password','Skip\x20insecure\x20cert\x20verification.','kJuqa','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','1763076mXQvHv','Adding\x20Websocket\x20listeners','vCEBY','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','<PasswordPlaceholder>','../../utils/webSocketUtils','NNJeZ','bstackAccesskey','LnMws','Browserstack','server-error','3275624YWxQIs','1113525cRYzJp','1353702Exvnwl','readFileSync','argv','gridId','VerMZ','grid-id','string','skip-tls-cert-verify','janpF','luHNr','help','Grid\x20stoppped.','unauthorised','Stopping\x20grid\x20','../../utils/utilityMethods','parse','replace','skipTlsCertVerify','handler','reconnecting-websocket','info','CwWFm','bPqwA','kJQAs','meLLB','eBwGU','username','options','boolean','epilogue','body','1128YbGKBr','kDXgW','usage','iptjh','../../cloudproviders/utils','name','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','statusCode','stack','INFO','type','CSLNa','DFCvR','kRIos','../../utils/instrumentationUtils','7HKrKqg','25436EUtKsT','clusterRegion'];a21_0x2115=function(){return _0x4349bd;};return a21_0x2115();}const a21_0x3daefd=a21_0x10dd;(function(_0x1fa580,_0x154967){const _0x12c4fe=a21_0x10dd,_0x414fa0=_0x1fa580();while(!![]){try{const _0x21114d=parseInt(_0x12c4fe(0xf1))/0x1*(parseInt(_0x12c4fe(0xe2))/0x2)+parseInt(_0x12c4fe(0x112))/0x3+-parseInt(_0x12c4fe(0x105))/0x4+-parseInt(_0x12c4fe(0xe4))/0x5*(parseInt(_0x12c4fe(0xd2))/0x6)+-parseInt(_0x12c4fe(0xe1))/0x7*(-parseInt(_0x12c4fe(0x110))/0x8)+parseInt(_0x12c4fe(0x111))/0x9+parseInt(_0x12c4fe(0xfd))/0xa*(-parseInt(_0x12c4fe(0xf4))/0xb);if(_0x21114d===_0x154967)break;else _0x414fa0['push'](_0x414fa0['shift']());}catch(_0x2b2344){_0x414fa0['push'](_0x414fa0['shift']());}}}(a21_0x2115,0x3ff09));function a21_0x10dd(_0xa068e3,_0x416188){const _0x21154e=a21_0x2115();return a21_0x10dd=function(_0x10dddf,_0x4b32b9){_0x10dddf=_0x10dddf-0xd0;let _0x3331a4=_0x21154e[_0x10dddf];return _0x3331a4;},a21_0x10dd(_0xa068e3,_0x416188);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x3daefd(0x125)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x3daefd(0xf0)),{logger}=require(a21_0x3daefd(0xed)),{getCredentialsPath,getGridDetails}=require(a21_0x3daefd(0x120)),{scaleDownHubDeployment}=require(a21_0x3daefd(0xf2)),{sendInstrumentationEvent}=require(a21_0x3daefd(0xe0)),webSocketUtils=require(a21_0x3daefd(0x10a)),{createK8sClient}=require(a21_0x3daefd(0xfe)),{getCloudProviderObject}=require(a21_0x3daefd(0xd6));exports['command']=a21_0x3daefd(0xfb),exports['desc']='Stop\x20a\x20running\x20Automation\x20grid.',exports[a21_0x3daefd(0xf8)]=function(_0x106502){const _0x48d9a9=a21_0x3daefd,_0x5703b3={};_0x5703b3[_0x48d9a9(0xd5)]=_0x48d9a9(0x104),_0x5703b3[_0x48d9a9(0xd3)]=_0x48d9a9(0x118),_0x5703b3['NNJeZ']=_0x48d9a9(0x102),_0x5703b3[_0x48d9a9(0xdf)]=_0x48d9a9(0x12e),_0x5703b3[_0x48d9a9(0x11b)]='help';const _0x400b48=_0x5703b3,_0x15b282={};_0x15b282[_0x48d9a9(0xeb)]=_0x400b48['iptjh'],_0x15b282['type']=_0x400b48[_0x48d9a9(0xd3)];const _0x1e8ea1={};_0x1e8ea1[_0x48d9a9(0xeb)]=_0x400b48[_0x48d9a9(0x10b)],_0x1e8ea1[_0x48d9a9(0xdc)]=_0x400b48[_0x48d9a9(0xdf)],_0x1e8ea1[_0x48d9a9(0xe7)]=![];const _0x24f814={};return _0x24f814[_0x48d9a9(0x117)]=_0x15b282,_0x24f814[_0x48d9a9(0x119)]=_0x1e8ea1,_0x106502[_0x48d9a9(0xd4)](HELP_HEADER_MESSAGE['stop'])[_0x48d9a9(0xd0)](HELP_FOOTER_MESSAGE)[_0x48d9a9(0x12d)](_0x24f814)[_0x48d9a9(0x11c)](_0x400b48[_0x48d9a9(0x11b)])[_0x48d9a9(0x114)];},exports[a21_0x3daefd(0x124)]=async function(_0x1be6e7){const _0x11c15=a21_0x3daefd,_0x471241={'PQbKN':_0x11c15(0x108),'VerMZ':function(_0x406ea0){return _0x406ea0();},'LnMws':_0x11c15(0xd8),'CwWFm':function(_0x2507fb,_0x15a1a0,_0x2ce546,_0x22c5c5,_0x439a69,_0x19f4e9,_0x54e99a){return _0x2507fb(_0x15a1a0,_0x2ce546,_0x22c5c5,_0x439a69,_0x19f4e9,_0x54e99a);},'XXsAL':'stop-grid-called','kJQAs':_0x11c15(0xe9),'CSLNa':function(_0x56b964,_0x3806b4,_0x398e35,_0x1570d3,_0x41db0e,_0x586715,_0x31023d){return _0x56b964(_0x3806b4,_0x398e35,_0x1570d3,_0x41db0e,_0x586715,_0x31023d);},'qagNj':'<UsernamePlaceholder>','janpF':_0x11c15(0x109),'XpAhP':_0x11c15(0x106),'eBwGU':function(_0xa2d37a,_0x571d8b,_0x3b98b1,_0x3ebd79){return _0xa2d37a(_0x571d8b,_0x3b98b1,_0x3ebd79);},'kJuqa':function(_0x166317,_0x1956a8,_0x5bb2bc){return _0x166317(_0x1956a8,_0x5bb2bc);},'VSkhv':_0x11c15(0x11d),'bPqwA':function(_0x3ef5b2,_0x28aa90){return _0x3ef5b2===_0x28aa90;},'DFCvR':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','STjXi':_0x11c15(0x11e),'meLLB':function(_0x2ba389,_0x2086eb){return _0x2ba389===_0x2086eb;},'kvFys':_0x11c15(0xf6),'vCEBY':_0x11c15(0x10f)};let _0x57dbed;try{!_0x1be6e7[_0x11c15(0x115)]&&(logger[_0x11c15(0xee)](_0x471241[_0x11c15(0xea)]),process[_0x11c15(0xef)](0x1));!fs['existsSync'](_0x471241[_0x11c15(0x116)](getCredentialsPath))&&(logger[_0x11c15(0xee)](_0x471241[_0x11c15(0x10d)]),await _0x471241['CwWFm'](sendInstrumentationEvent,_0x1be6e7,_0x471241[_0x11c15(0xff)],messageTypes[_0x11c15(0xe8)],_0x471241[_0x11c15(0x129)],null,_0x1be6e7),process['exit'](0x1));logger[_0x11c15(0x126)](_0x11c15(0x11f)+_0x1be6e7[_0x11c15(0x115)]),await _0x471241[_0x11c15(0xdd)](sendInstrumentationEvent,_0x1be6e7,_0x471241['XXsAL'],messageTypes[_0x11c15(0xdb)],null,null,_0x1be6e7);const _0x4b3160=JSON[_0x11c15(0x121)](fs[_0x11c15(0x113)](_0x471241[_0x11c15(0x116)](getCredentialsPath)));global_registry[_0x11c15(0xfc)]=_0x4b3160[_0x11c15(0x10e)]['username'],global_registry[_0x11c15(0x10c)]=_0x4b3160[_0x11c15(0x10e)][_0x11c15(0x101)];const _0x2fecfa=WS_ENDPOINT[_0x11c15(0x122)](_0x471241[_0x11c15(0xf7)],_0x4b3160[_0x11c15(0x10e)][_0x11c15(0x12c)])[_0x11c15(0x122)](_0x471241[_0x11c15(0x11a)],_0x4b3160['Browserstack']['password']),_0x6a0029={};_0x6a0029['WebSocket']=ws,_0x6a0029[_0x11c15(0xf9)]=0x36ee80,_0x57dbed=new ReconnectingWebSocket(_0x2fecfa,[],_0x6a0029),logger['debug'](_0x471241['XpAhP']),webSocketUtils[_0x11c15(0x100)](_0x57dbed,_0x1be6e7['user'],_0x1be6e7[_0x11c15(0x101)]);const [_0x36b030,_0x38ad39]=await _0x471241[_0x11c15(0x12b)](getGridDetails,_0x4b3160['Browserstack']['username'],_0x4b3160[_0x11c15(0x10e)][_0x11c15(0x101)],_0x1be6e7['gridId']);if(_0x38ad39){const _0x2e54a2=_0x38ad39[_0x11c15(0x126)];global_registry[_0x11c15(0xec)]=_0x2e54a2[_0x11c15(0xec)],global_registry[_0x11c15(0xe3)]=_0x2e54a2['region'],global_registry['clusterName']=_0x2e54a2[_0x11c15(0xfa)];const _0x123764=await _0x471241[_0x11c15(0xdd)](getCloudProviderObject,_0x2e54a2[_0x11c15(0xec)],_0x2e54a2[_0x11c15(0xfa)],_0x2e54a2[_0x11c15(0xd7)],_0x57dbed,webSocketUtils,_0x1be6e7),[_0x2f604a,_0x51d073,_0x512067,_0x1339df,_0x3e509c,_0x5f3a21]=await _0x471241[_0x11c15(0x103)](createK8sClient,_0x123764,_0x1be6e7[_0x11c15(0x123)]);await _0x471241[_0x11c15(0x103)](scaleDownHubDeployment,_0x51d073,_0x2e54a2[_0x11c15(0xd7)]),logger[_0x11c15(0x126)](_0x471241[_0x11c15(0xe5)]),process[_0x11c15(0xef)](0x0);}_0x471241[_0x11c15(0x128)](_0x36b030[_0x11c15(0xd9)],0x191)&&(logger['error'](_0x471241[_0x11c15(0xde)]),await _0x471241[_0x11c15(0xdd)](sendInstrumentationEvent,_0x1be6e7,_0x471241[_0x11c15(0xff)],messageTypes['ERROR'],_0x471241[_0x11c15(0xe6)],null,_0x1be6e7),process['exit'](0x1)),_0x471241[_0x11c15(0x12a)](_0x36b030[_0x11c15(0xd9)],0x190)&&(logger['error'](JSON[_0x11c15(0x121)](_0x36b030[_0x11c15(0xd1)])['message']),await _0x471241[_0x11c15(0x127)](sendInstrumentationEvent,_0x1be6e7,_0x471241[_0x11c15(0xff)],messageTypes[_0x11c15(0xe8)],_0x471241[_0x11c15(0xf5)],null,_0x1be6e7),process[_0x11c15(0xef)](0x1)),logger[_0x11c15(0xee)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x36b030)),await _0x471241[_0x11c15(0xdd)](sendInstrumentationEvent,_0x1be6e7,_0x471241[_0x11c15(0xff)],messageTypes['ERROR'],_0x471241[_0x11c15(0x107)],_0x36b030,_0x1be6e7),process[_0x11c15(0xef)](0x1);}catch(_0x355ec2){const _0x3052a6='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x355ec2+'\x20\x0a'+JSON[_0x11c15(0xf3)](_0x355ec2[_0x11c15(0xda)])+'\x20';logger[_0x11c15(0xee)](_0x3052a6),process['exit'](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a22_0x1422(){const _0x38074a=['BSTACK-ATS-CLUSTER-HUB-HA','azure','prod','error','success','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','WARNING','credentials','ERROR','Key','LOG','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','CLI_ARGS_REGEX','CLI_RUN_FINISHED','GRID_URL','gridProfile','resourceInfo','gridUrl','split','push','5TbEYBH','api-preprod.bsstag.com','list','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','stag','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','2pkBwHv','info','CLUSTER_HUB_HA_STACK_NAME','high-scale-grid-cluster','Value','api-devhst.bsstag.com','grid-api-devhst.bsstag.com','high-scale-grid','forEach','REDACTED','pre-prod','1331656oobsQR','CP_CONFIG_FILE','DEFAULT_CLUSTER_DETAILS','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','log','gcp','LINK_MESSAGE','staging','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','grid-preprod.bsstag.com','BrowserStack','1647530duVltm','BS_API_URL','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','configure','wss://','BROWSERSTACK_ENV','21OPIvlR','AG_API_URL','BSTACK-ATS-CLUSTER','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','create','MessageDescription','ALL_SUPPORTED_CLOUD_PROVIDERS','2032764cHZqVz','GCP','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','UNKNOWN','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','root','messageTypes','SUPPORTED_CLOUD_PROVIDERS','start','env','grid-api.browserstack.com','pre_check','AWS','dotenv','WS_ENDPOINT','aws','CLI_RUN_STARTED','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','global_registry','36JylVnU','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','CLUSTER_DEP_STACK_NAME','AZURE','pre-check','TRIAL_GRID_URL','grid-api-preprod.bsstag.com','TURBOSCALE_CUSTOM_TAGS','us-east-1','CLUSTER','warning','991986oGEXwC','607768qbDsIi','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','COMMON_HST_TAGS','BrowserStack-Automate-TurboScale','browserstack-turboscale-grid','preprod','DASHBOARD_ENDPOINT','BSTACK-ATS-CLUSTER-AUTOSCALER','grid-devhst.bsstag.com','353790OYtZUO','[REDACTED]','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','WS_EVENTS','cliRunFinished','connect','28790839OyIyrb'];a22_0x1422=function(){return _0x38074a;};return a22_0x1422();}const a22_0x5c0832=a22_0x76e4;(function(_0x271c24,_0x3f0520){const _0x337eb3=a22_0x76e4,_0x1fa2b5=_0x271c24();while(!![]){try{const _0x3cc81f=-parseInt(_0x337eb3(0x136))/0x1*(parseInt(_0x337eb3(0x10c))/0x2)+-parseInt(_0x337eb3(0x115))/0x3+-parseInt(_0x337eb3(0xed))/0x4+parseInt(_0x337eb3(0x130))/0x5*(parseInt(_0x337eb3(0x10b))/0x6)+-parseInt(_0x337eb3(0xe6))/0x7*(parseInt(_0x337eb3(0x141))/0x8)+parseInt(_0x337eb3(0x100))/0x9*(-parseInt(_0x337eb3(0x14c))/0xa)+parseInt(_0x337eb3(0x11b))/0xb;if(_0x3cc81f===_0x3f0520)break;else _0x1fa2b5['push'](_0x1fa2b5['shift']());}catch(_0x2c2747){_0x1fa2b5['push'](_0x1fa2b5['shift']());}}}(a22_0x1422,0x5f508),require(a22_0x5c0832(0xfa))['config']());function a22_0x76e4(_0x4992f6,_0x2fe100){const _0x142229=a22_0x1422();return a22_0x76e4=function(_0x76e4a5,_0x2a57b1){_0x76e4a5=_0x76e4a5-0xe6;let _0x463461=_0x142229[_0x76e4a5];return _0x463461;},a22_0x76e4(_0x4992f6,_0x2fe100);}let gridURL='grid.browserstack.com',bsApiUrl='api.browserstack.com',agApiUrl=a22_0x5c0832(0xf7);const _env=(process[a22_0x5c0832(0xf6)][a22_0x5c0832(0x151)]||a22_0x5c0832(0x11e))['toLowerCase']();if(_env===a22_0x5c0832(0x148)||_env===a22_0x5c0832(0x134))gridURL=a22_0x5c0832(0x114),bsApiUrl=a22_0x5c0832(0x13b),agApiUrl=a22_0x5c0832(0x13c);else(_env===a22_0x5c0832(0x111)||_env===a22_0x5c0832(0x140))&&(gridURL=a22_0x5c0832(0x14a),bsApiUrl=a22_0x5c0832(0x131),agApiUrl=a22_0x5c0832(0x106));exports[a22_0x5c0832(0x112)]=process[a22_0x5c0832(0xf6)][a22_0x5c0832(0x112)]||gridURL,exports[a22_0x5c0832(0x14d)]=process[a22_0x5c0832(0xf6)][a22_0x5c0832(0x14d)]||bsApiUrl,exports[a22_0x5c0832(0xe7)]=process[a22_0x5c0832(0xf6)]['AG_API_URL']||agApiUrl,exports[a22_0x5c0832(0xfb)]=a22_0x5c0832(0x150)+this[a22_0x5c0832(0xe7)]+a22_0x5c0832(0x121),exports[a22_0x5c0832(0x142)]=a22_0x5c0832(0x123),exports['IAM_USER_NAME']='BrowserStackIAMUser',exports['DEFAULT_GRID_NAME']=a22_0x5c0832(0x13d),exports[a22_0x5c0832(0xf9)]=a22_0x5c0832(0xfc),exports[a22_0x5c0832(0x102)]=a22_0x5c0832(0xe8),exports['CLUSTER_AUTOSCALER_STACK_NAME']=a22_0x5c0832(0x113),exports[a22_0x5c0832(0x138)]=a22_0x5c0832(0x11c),exports['TURBOSCALE_DEPLOYMENT']=a22_0x5c0832(0x110),exports[a22_0x5c0832(0x103)]=a22_0x5c0832(0x11d),exports[a22_0x5c0832(0xee)]=a22_0x5c0832(0x146),exports[a22_0x5c0832(0xec)]=[this[a22_0x5c0832(0xf9)],this[a22_0x5c0832(0x103)],this[a22_0x5c0832(0xee)]];const a22_0x455398={};a22_0x455398[a22_0x5c0832(0x125)]='browserstack:managedBy',a22_0x455398[a22_0x5c0832(0x13a)]=a22_0x5c0832(0x14b);const a22_0x155efd={};a22_0x155efd[a22_0x5c0832(0x125)]='browserstack:service',a22_0x155efd[a22_0x5c0832(0x13a)]=a22_0x5c0832(0x10f);const common_hst_tags_list=[a22_0x455398,a22_0x155efd];if(process['env'][a22_0x5c0832(0x107)]){const parsedTags=process['env'][a22_0x5c0832(0x107)][a22_0x5c0832(0x12e)](',');parsedTags[a22_0x5c0832(0x13e)](_0x47a7f1=>{const _0x145022=a22_0x5c0832,_0x4ab97f=_0x47a7f1[_0x145022(0x12e)](':'),_0x34cbea={};_0x34cbea[_0x145022(0x125)]=_0x4ab97f[0x0],_0x34cbea[_0x145022(0x13a)]=_0x4ab97f[0x1],common_hst_tags_list[_0x145022(0x12f)](_0x34cbea);});}exports[a22_0x5c0832(0x10e)]=common_hst_tags_list;const a22_0x1be2f8={};a22_0x1be2f8['browserstack:managedBy']=a22_0x5c0832(0x14b),a22_0x1be2f8['browserstack:service']=a22_0x5c0832(0x10f),exports['HST_CLUSTER_TAGS']=a22_0x1be2f8,exports[a22_0x5c0832(0xf4)]=[this['AWS']];const a22_0xb4367={};a22_0xb4367[a22_0x5c0832(0x126)]=a22_0x5c0832(0x145),a22_0xb4367['RESOURCES']=a22_0x5c0832(0x12c),a22_0xb4367[a22_0x5c0832(0x12a)]=a22_0x5c0832(0x12d),a22_0xb4367[a22_0x5c0832(0xfd)]='cliRunStarted',a22_0xb4367[a22_0x5c0832(0x129)]=a22_0x5c0832(0x119),exports[a22_0x5c0832(0x118)]=a22_0xb4367,exports[a22_0x5c0832(0xff)]={},exports['LINK_MESSAGE']='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x7d8fe2={};a22_0x7d8fe2['root']=a22_0x5c0832(0x144)+this[a22_0x5c0832(0x147)],a22_0x7d8fe2['init']=a22_0x5c0832(0x133)+this[a22_0x5c0832(0x147)],a22_0x7d8fe2[a22_0x5c0832(0x14f)]=a22_0x5c0832(0xfe)+this[a22_0x5c0832(0x147)],a22_0x7d8fe2[a22_0x5c0832(0xea)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this[a22_0x5c0832(0x147)],a22_0x7d8fe2[a22_0x5c0832(0x132)]={},a22_0x7d8fe2['delete']=a22_0x5c0832(0x10d)+this[a22_0x5c0832(0x147)],a22_0x7d8fe2[a22_0x5c0832(0x11a)]=a22_0x5c0832(0x135)+this['LINK_MESSAGE'],a22_0x7d8fe2[a22_0x5c0832(0xf5)]=a22_0x5c0832(0x127)+this[a22_0x5c0832(0x147)],a22_0x7d8fe2['stop']=a22_0x5c0832(0xe9)+this[a22_0x5c0832(0x147)],a22_0x7d8fe2[a22_0x5c0832(0xf8)]=a22_0x5c0832(0x117)+this[a22_0x5c0832(0x147)],a22_0x7d8fe2[a22_0x5c0832(0x132)][a22_0x5c0832(0xf2)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this[a22_0x5c0832(0x147)],a22_0x7d8fe2[a22_0x5c0832(0x132)]['grid']=a22_0x5c0832(0xef)+this[a22_0x5c0832(0x147)],a22_0x7d8fe2[a22_0x5c0832(0x132)][a22_0x5c0832(0x12b)]=a22_0x5c0832(0xf1)+this[a22_0x5c0832(0x147)],exports['HELP_HEADER_MESSAGE']=a22_0x7d8fe2,exports['HELP_FOOTER_MESSAGE']=a22_0x5c0832(0x149);const a22_0x49d25a={};a22_0x49d25a['SUCCESS']=a22_0x5c0832(0x120),a22_0x49d25a[a22_0x5c0832(0x124)]=a22_0x5c0832(0x11f),a22_0x49d25a['INFO']=a22_0x5c0832(0x137),a22_0x49d25a[a22_0x5c0832(0x122)]=a22_0x5c0832(0x10a),a22_0x49d25a[a22_0x5c0832(0xf0)]='unknown',a22_0x49d25a['NULL']=null,exports[a22_0x5c0832(0xf3)]=a22_0x49d25a,exports[a22_0x5c0832(0x128)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x5c0832(0x13f)]=a22_0x5c0832(0x116);const a22_0x45619f={};a22_0x45619f['grid-profile']=a22_0x5c0832(0x14e);const a22_0x2ed760={};a22_0x2ed760[a22_0x5c0832(0x104)]=a22_0x45619f,exports[a22_0x5c0832(0xeb)]=a22_0x2ed760,exports[a22_0x5c0832(0x105)]=a22_0x5c0832(0x101);const a22_0x27479b={};a22_0x27479b[a22_0x5c0832(0x109)]=a22_0x5c0832(0x139),a22_0x27479b['CLOUD_PROVIDER']='aws',a22_0x27479b['REGION']=a22_0x5c0832(0x108),exports[a22_0x5c0832(0x143)]=a22_0x27479b;
|
package/ats/src/config/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a23_0x1ca382=a23_0x5d5f;(function(_0x286a5b,_0xd31718){const _0xb60841=a23_0x5d5f,_0x5a700e=_0x286a5b();while(!![]){try{const _0x5dd00d=-parseInt(_0xb60841(0x158))/0x1+parseInt(_0xb60841(0x157))/0x2+-parseInt(_0xb60841(0x13e))/0x3+-parseInt(_0xb60841(0x15a))/0x4*(-parseInt(_0xb60841(0x153))/0x5)+parseInt(_0xb60841(0x13c))/0x6*(parseInt(_0xb60841(0x14c))/0x7)+-parseInt(_0xb60841(0x14a))/0x8*(-parseInt(_0xb60841(0x155))/0x9)+-parseInt(_0xb60841(0x146))/0xa*(parseInt(_0xb60841(0x141))/0xb);if(_0x5dd00d===_0xd31718)break;else _0x5a700e['push'](_0x5a700e['shift']());}catch(_0x10b282){_0x5a700e['push'](_0x5a700e['shift']());}}}(a23_0x3f18,0x8493b));const winston=require(a23_0x1ca382(0x144)),fs=require('fs'),path=require('path'),logDir=a23_0x1ca382(0x154);!fs['existsSync'](logDir)&&fs[a23_0x1ca382(0x13d)](logDir);const a23_0x3146b0={};a23_0x3146b0[a23_0x1ca382(0x14b)]=a23_0x1ca382(0x150);const a23_0x22f70e={};a23_0x22f70e[a23_0x1ca382(0x159)]=!![];const a23_0x5ada8e={};a23_0x5ada8e[a23_0x1ca382(0x147)]=a23_0x1ca382(0x13f),exports[a23_0x1ca382(0x13b)]=new winston['createLogger']({'format':winston[a23_0x1ca382(0x14b)][a23_0x1ca382(0x140)](winston['format'][a23_0x1ca382(0x156)](a23_0x3146b0),winston['format'][a23_0x1ca382(0x145)](a23_0x22f70e),winston[a23_0x1ca382(0x14b)][a23_0x1ca382(0x14e)](_0x4121df=>_0x4121df[a23_0x1ca382(0x156)]+a23_0x1ca382(0x149)+_0x4121df['level']+':\x20'+_0x4121df[a23_0x1ca382(0x14f)])),'transports':[new winston[(a23_0x1ca382(0x148))]['Console'](a23_0x5ada8e),new winston['transports']['File']({'filename':path[a23_0x1ca382(0x14d)](logDir,'events.log'),'level':a23_0x1ca382(0x143)})]});function a23_0x5d5f(_0x1adbd1,_0x2fb8bd){const _0x3f1823=a23_0x3f18();return a23_0x5d5f=function(_0x5d5f63,_0x4d57a9){_0x5d5f63=_0x5d5f63-0x13b;let _0x117c3d=_0x3f1823[_0x5d5f63];return _0x117c3d;},a23_0x5d5f(_0x1adbd1,_0x2fb8bd);}function a23_0x3f18(){const _0x1672d0=['debug','winston','colorize','127830qIgFva','name','transports','\x20-\x20','1016632wIYOJj','format','2465799JoxVtr','join','printf','message','YYYY-MM-DD\x20HH:mm:ss','fileLogger','File','1039490ggtTzm','log','54QFrBfC','timestamp','54854MEtonw','818659EpCwTB','level','20vvQKbA','logger','18zujPkw','mkdirSync','1390437YWqkCl','console.info','combine','913OTORuI','createLogger'];a23_0x3f18=function(){return _0x1672d0;};return a23_0x3f18();}const winstonFileLoggerParams={'transports':[new winston[(a23_0x1ca382(0x148))][(a23_0x1ca382(0x152))]({'filename':path[a23_0x1ca382(0x14d)](logDir,'usage.log'),'level':a23_0x1ca382(0x143)})]};exports[a23_0x1ca382(0x151)]=new winston[(a23_0x1ca382(0x142))](winstonFileLoggerParams);
|
package/ats/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a24_0x26e00b=a24_0x3f93;function a24_0x3f93(_0xdb7cf1,_0x35fab7){const _0x31eee5=a24_0x31ee();return a24_0x3f93=function(_0x3f93ff,_0x20e13a){_0x3f93ff=_0x3f93ff-0xab;let _0x24d92c=_0x31eee5[_0x3f93ff];return _0x24d92c;},a24_0x3f93(_0xdb7cf1,_0x35fab7);}(function(_0x146ed2,_0x13f9a6){const _0x373676=a24_0x3f93,_0x5c5957=_0x146ed2();while(!![]){try{const _0x2a3e11=parseInt(_0x373676(0xb1))/0x1*(-parseInt(_0x373676(0xb8))/0x2)+-parseInt(_0x373676(0xb6))/0x3*(parseInt(_0x373676(0xaf))/0x4)+parseInt(_0x373676(0xc1))/0x5*(-parseInt(_0x373676(0xae))/0x6)+-parseInt(_0x373676(0xbf))/0x7*(-parseInt(_0x373676(0xb5))/0x8)+parseInt(_0x373676(0xad))/0x9*(parseInt(_0x373676(0xb4))/0xa)+-parseInt(_0x373676(0xbb))/0xb*(parseInt(_0x373676(0xc0))/0xc)+-parseInt(_0x373676(0xc2))/0xd*(-parseInt(_0x373676(0xb3))/0xe);if(_0x2a3e11===_0x13f9a6)break;else _0x5c5957['push'](_0x5c5957['shift']());}catch(_0x10f7cc){_0x5c5957['push'](_0x5c5957['shift']());}}}(a24_0x31ee,0xe6880));function a24_0x31ee(){const _0x409faa=['24XlvBcd','demandCommand','46997isAOpJ','exports','2198hnuhgd','20JuhfHZ','11700712OTnMRF','675441YLvWpO','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','38ZiKwiZ','tPlLH','root','473vTFURR','commands','usage','./config/constants','7UcNPOC','163752aagebP','1417895JaDLCy','223691hDDfhN','help','SKGBF','4628997LvQTNK','30dymQlr'];a24_0x31ee=function(){return _0x409faa;};return a24_0x31ee();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x26e00b(0xbe));process['env'][a24_0x26e00b(0xb7)]=0x1;function run(_0x44c982){const _0x220f5f=a24_0x26e00b,_0x4ff4e4={};_0x4ff4e4['tPlLH']=_0x220f5f(0xbc),_0x4ff4e4['SKGBF']=_0x220f5f(0xab);const _0x1adabf=_0x4ff4e4;_0x44c982[_0x220f5f(0xbd)](HELP_HEADER_MESSAGE[_0x220f5f(0xba)])['commandDir'](_0x1adabf[_0x220f5f(0xb9)])[_0x220f5f(0xb0)]()[_0x220f5f(0xab)](_0x1adabf[_0x220f5f(0xac)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x26e00b(0xb2)]=run;
|