browserstack-node-sdk 1.58.0 → 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/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 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/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
|
-
function
|
|
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
|
-
|
|
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
|
-
const a17_0x528345=a17_0x53f9;(function(_0x54cf95,_0x11ae7e){const _0x4ce608=a17_0x53f9,_0x2beddd=_0x54cf95();while(!![]){try{const _0x24b753=parseInt(_0x4ce608(0x182))/0x1*(parseInt(_0x4ce608(0x1ab))/0x2)+parseInt(_0x4ce608(0x199))/0x3+-parseInt(_0x4ce608(0x1c8))/0x4+parseInt(_0x4ce608(0x10f))/0x5*(-parseInt(_0x4ce608(0x1ee))/0x6)+-parseInt(_0x4ce608(0x10a))/0x7+parseInt(_0x4ce608(0x1f1))/0x8*(parseInt(_0x4ce608(0x1f4))/0x9)+-parseInt(_0x4ce608(0x1b7))/0xa*(parseInt(_0x4ce608(0x19a))/0xb);if(_0x24b753===_0x11ae7e)break;else _0x2beddd['push'](_0x2beddd['shift']());}catch(_0x5da8a6){_0x2beddd['push'](_0x2beddd['shift']());}}}(a17_0x40d3,0xd5baa));const fs=require('fs'),ws=require('ws'),got=require(a17_0x528345(0x1e8)),{v4:uuidv4}=require(a17_0x528345(0x11b)),ReconnectingWebSocket=require(a17_0x528345(0x185)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x528345(0x14d)),{logger}=require(a17_0x528345(0x10e)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x528345(0x13e)),{getCloudProviderObjectWithOutInit}=require(a17_0x528345(0x1df)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x528345(0x107));exports[a17_0x528345(0x17d)]=a17_0x528345(0x1d2),exports['desc']=a17_0x528345(0x198),exports[a17_0x528345(0x180)]=function(_0x82a5f7){const _0x45c3c9=a17_0x528345,_0x315df5={};_0x315df5[_0x45c3c9(0x184)]=_0x45c3c9(0x1cd),_0x315df5['tVggv']='string',_0x315df5[_0x45c3c9(0x13f)]=_0x45c3c9(0x150),_0x315df5[_0x45c3c9(0x1b3)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x315df5['aoLMd']=_0x45c3c9(0x162),_0x315df5[_0x45c3c9(0x157)]='help';const _0x4e49b4=_0x315df5,_0x4580d6={};_0x4580d6[_0x45c3c9(0x19f)]=_0x4e49b4[_0x45c3c9(0x184)],_0x4580d6['type']=_0x4e49b4[_0x45c3c9(0x17c)];const _0x26b736={};_0x26b736[_0x45c3c9(0x19f)]=_0x4e49b4[_0x45c3c9(0x13f)],_0x26b736[_0x45c3c9(0x1dd)]=_0x4e49b4[_0x45c3c9(0x17c)];const _0x4f8bbe={};_0x4f8bbe[_0x45c3c9(0x19f)]=_0x4e49b4[_0x45c3c9(0x1b3)],_0x4f8bbe[_0x45c3c9(0x1dd)]=_0x4e49b4[_0x45c3c9(0x17c)];const _0x969644={};_0x969644[_0x45c3c9(0x19f)]=_0x4e49b4[_0x45c3c9(0x14b)],_0x969644[_0x45c3c9(0x1dd)]=_0x4e49b4['tVggv'];const _0x3dfcad={};return _0x3dfcad[_0x45c3c9(0x1ea)]=_0x4580d6,_0x3dfcad['cloud-provider']=_0x26b736,_0x3dfcad[_0x45c3c9(0x148)]=_0x4f8bbe,_0x3dfcad['grid-profile']=_0x969644,_0x82a5f7['usage'](HELP_HEADER_MESSAGE[_0x45c3c9(0x1d4)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x45c3c9(0x112)](_0x3dfcad)[_0x45c3c9(0x1db)](_0x4e49b4[_0x45c3c9(0x157)])[_0x45c3c9(0x19c)];};async function inputValidation(_0x936132,_0x4f3fc8){const _0x185a39=a17_0x528345,_0x157f46={'oJWXH':_0x185a39(0x1cd),'vFzXX':_0x185a39(0x1ca),'ClmIb':_0x185a39(0x150),'TEoqf':_0x185a39(0x1e6),'DMeRA':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','SsoNh':_0x185a39(0x1db),'hpOFi':_0x185a39(0x1ea),'OtLkC':_0x185a39(0x18a),'MFDAy':_0x185a39(0x197),'Nojuv':_0x185a39(0x1d6),'Qszjg':_0x185a39(0x148),'pWmKF':function(_0x1c3283,_0x316def){return _0x1c3283+_0x316def;},'aXITx':_0x185a39(0x1e3),'EoPjo':_0x185a39(0x1e1),'WTuMO':function(_0x3c9b08,_0x1a8052){return _0x3c9b08||_0x1a8052;},'HHgIe':_0x185a39(0x1c3),'IaGbB':_0x185a39(0x1a6),'QLfxJ':_0x185a39(0x12c),'lgMge':'cloud-provider','ROsyQ':function(_0x563ee0,_0x1aaf71){return _0x563ee0!==_0x1aaf71;},'LhyqT':_0x185a39(0x120),'fUEjG':function(_0x1ba9f3,_0x1b857c){return _0x1ba9f3===_0x1b857c;},'trBCR':_0x185a39(0x15f),'eVBEd':function(_0x11a6cf,_0x2da9f3){return _0x11a6cf!==_0x2da9f3;},'HQIfd':_0x185a39(0x1f5),'Smkyn':_0x185a39(0x12f),'akwuE':function(_0x2de064,_0x55bba6){return _0x2de064===_0x55bba6;},'Lwbgw':'bbRSD','KQuLg':function(_0x4bbead,_0x1982a5){return _0x4bbead>_0x1982a5;},'OWqYe':_0x185a39(0x1f7),'ryBem':function(_0x522ae9,_0xe79eeb,_0x54073a,_0x583d8d,_0x55206f,_0x2d1d34,_0x3b0d28,_0x2e3f62){return _0x522ae9(_0xe79eeb,_0x54073a,_0x583d8d,_0x55206f,_0x2d1d34,_0x3b0d28,_0x2e3f62);},'DaGeD':_0x185a39(0x11c),'mUFWU':_0x185a39(0x15b),'uiPTl':_0x185a39(0x137),'bioLF':'UaUtD','lWPWk':_0x185a39(0x1b0),'gxHAk':_0x185a39(0x1e5),'vfuYI':function(_0x560359,_0x3e7044){return _0x560359!==_0x3e7044;},'kIAHq':_0x185a39(0x194),'zxHVy':_0x185a39(0x114),'iOxCj':function(_0x21120d,_0x40e959){return _0x21120d!==_0x40e959;},'NhIff':_0x185a39(0x151),'tlQoa':'GET','EtXMN':function(_0x347481,_0x44d0d3,_0x42a7f0){return _0x347481(_0x44d0d3,_0x42a7f0);},'YPQGw':function(_0x51834f,_0x8230c9,_0x444d27,_0x15fb43,_0x5d8a86,_0x20af82){return _0x51834f(_0x8230c9,_0x444d27,_0x15fb43,_0x5d8a86,_0x20af82);},'MUmIV':'pre-check','MOBDA':'grid-profile','PMeic':_0x185a39(0x129),'rogqD':_0x185a39(0xfa),'hZJbP':function(_0x105ca2,_0x4af84e){return _0x105ca2(_0x4af84e);},'rmkhA':_0x185a39(0x19e),'ErTdt':_0x185a39(0x196),'Bxnng':_0x185a39(0x16b),'fQNIv':'IAdJn','RXSDA':function(_0x106b42,_0x53a0fd){return _0x106b42!==_0x53a0fd;},'epTFH':_0x185a39(0x104),'Crpmn':'TQMes','FmxSr':_0x185a39(0xf9),'JaHgs':function(_0x390e84,_0x2d4083){return _0x390e84===_0x2d4083;},'fJxGV':'Ojuul','BzTax':_0x185a39(0x131),'jumfU':function(_0x34a896,_0x2feb72){return _0x34a896===_0x2feb72;},'iOYAA':_0x185a39(0x167),'wBOVt':_0x185a39(0x190),'ZBxkH':function(_0x54e9b0,_0x305c9d,_0x3685fb,_0x794192,_0x44143f,_0x713ca2,_0x51c2ea,_0xcc3be5){return _0x54e9b0(_0x305c9d,_0x3685fb,_0x794192,_0x44143f,_0x713ca2,_0x51c2ea,_0xcc3be5);}};let _0xbfe9fa;try{if(_0x157f46[_0x185a39(0x1ae)](_0x157f46[_0x185a39(0x1d1)],_0x157f46[_0x185a39(0x1d1)]))_0x5dc482+=_0x185a39(0x1de)+_0x5295ba['clusterName']+_0x185a39(0x12e);else{if(_0x936132['clusterName']||_0x936132['cloudProvider']||_0x936132[_0x185a39(0x148)]){if(_0x157f46['fUEjG'](_0x157f46[_0x185a39(0x1f3)],_0x157f46[_0x185a39(0x1f3)])){const _0x51a30a=[];!_0x936132['clusterName']&&(_0x157f46[_0x185a39(0x1d5)](_0x157f46[_0x185a39(0x186)],_0x157f46[_0x185a39(0x186)])?(_0x5a4d3f[_0x185a39(0x188)]('['+_0xc806be+']\x20status\x20:\x20'+_0x1dd681['status']+_0x185a39(0x10d)+_0x3de6a3['data']+_0x185a39(0x13d)+_0x243b6d[_0x185a39(0x1c3)]),_0xd70074['error']&&_0x5ef169[_0x185a39(0x1c3)](_0x185a39(0x1c0)+_0x373313[_0x185a39(0x1c3)][_0x185a39(0x177)])):_0x51a30a[_0x185a39(0x175)](_0x157f46['hpOFi']));;if(!_0x936132[_0x185a39(0x1a4)]){if(_0x157f46['fUEjG'](_0x157f46['Smkyn'],_0x157f46[_0x185a39(0x1ef)]))_0x51a30a[_0x185a39(0x175)](_0x157f46[_0x185a39(0x105)]);else{const _0x2f04a4={};_0x2f04a4[_0x185a39(0x19f)]=_0x157f46[_0x185a39(0x1d3)],_0x2f04a4['type']=_0x157f46[_0x185a39(0x156)];const _0x58b45a={};_0x58b45a[_0x185a39(0x19f)]=_0x157f46[_0x185a39(0x133)],_0x58b45a[_0x185a39(0x1dd)]=_0x157f46[_0x185a39(0x156)];const _0x41b851={};_0x41b851[_0x185a39(0x19f)]=_0x157f46['TEoqf'],_0x41b851[_0x185a39(0x1dd)]=_0x157f46[_0x185a39(0x156)];const _0x1ecf0b={};_0x1ecf0b[_0x185a39(0x19f)]=_0x157f46['DMeRA'],_0x1ecf0b[_0x185a39(0x1dd)]=_0x157f46[_0x185a39(0x156)];const _0x2bec36={};return _0x2bec36[_0x185a39(0x1ea)]=_0x2f04a4,_0x2bec36[_0x185a39(0x1d8)]=_0x58b45a,_0x2bec36[_0x185a39(0x148)]=_0x41b851,_0x2bec36[_0x185a39(0x1b9)]=_0x1ecf0b,_0x3a83fa[_0x185a39(0x179)](_0x7e4a2a[_0x185a39(0x1d4)])[_0x185a39(0x1f2)](_0x84ea9e)[_0x185a39(0x112)](_0x2bec36)[_0x185a39(0x1db)](_0x157f46[_0x185a39(0x1ac)])[_0x185a39(0x19c)];}};!_0x936132[_0x185a39(0x148)]&&(_0x157f46[_0x185a39(0x173)](_0x157f46[_0x185a39(0x125)],_0x157f46[_0x185a39(0x125)])?_0x51a30a[_0x185a39(0x175)](_0x157f46[_0x185a39(0x17e)]):_0x35d144['push'](_0x157f46['hpOFi']));;_0x157f46[_0x185a39(0x141)](_0x51a30a[_0x185a39(0x138)],0x0)&&(_0x157f46[_0x185a39(0x102)](_0x157f46[_0x185a39(0x195)],_0x157f46[_0x185a39(0x195)])?(_0xbfe9fa=_0x185a39(0x1e7)+_0x51a30a[_0x185a39(0x1eb)](',\x20')+_0x185a39(0x1c6),await _0x157f46[_0x185a39(0x1b5)](reportToGalactusAndSendToEDS,_0x936132,_0x4f3fc8,_0xbfe9fa,messageTypes[_0x185a39(0x1b8)],_0x157f46[_0x185a39(0x18e)],_0x157f46[_0x185a39(0x172)],_0x157f46[_0x185a39(0x1bc)]),logger[_0x185a39(0x1c3)](_0xbfe9fa),process[_0x185a39(0x13a)](0x1)):(_0x4093c6[_0x185a39(0x1c3)](_0x157f46['OtLkC']),_0x110a07['exit'](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x185a39(0x1af)](_0x936132[_0x185a39(0x1a4)][_0x185a39(0x1a1)]())&&(_0x157f46[_0x185a39(0x1d5)](_0x157f46[_0x185a39(0x10b)],_0x157f46['bioLF'])?(_0xbfe9fa=_0x157f46[_0x185a39(0x143)],await _0x157f46[_0x185a39(0x1b5)](reportToGalactusAndSendToEDS,_0x936132,_0x4f3fc8,_0xbfe9fa,messageTypes[_0x185a39(0x1b8)],_0x157f46[_0x185a39(0x18e)],_0x157f46[_0x185a39(0x164)],_0x157f46[_0x185a39(0x1bc)]),logger['error'](_0xbfe9fa),!_0x936132[_0x185a39(0x1a4)]&&(_0x157f46['vfuYI'](_0x157f46[_0x185a39(0x149)],_0x157f46[_0x185a39(0x136)])?(logger[_0x185a39(0x188)](_0x185a39(0x19d)+DEFAULT_CLUSTER_DETAILS[_0x185a39(0x1f0)]+'\x20'),_0x936132[_0x185a39(0x1a4)]=DEFAULT_CLUSTER_DETAILS[_0x185a39(0x1f0)]):(_0x159248+=_0x157f46[_0x185a39(0x12d)],_0xa8066e+=_0x185a39(0x17f)+(_0x11c4a2[_0x185a39(0x189)]||_0x157f46[_0x185a39(0x11f)])+'\x0a',_0x142df9+=_0x185a39(0x103)+(_0x4faac8[_0x185a39(0x1c7)]||_0x157f46[_0x185a39(0x11f)])+'\x0a',_0x252075+=_0x185a39(0x117)+(_0x5b2458[_0x185a39(0x177)]||_0x157f46[_0x185a39(0x11f)])+'\x0a'))):_0x221dd6['exit'](0x1)),global_registry[_0x185a39(0x183)]=_0x936132['clusterName'],global_registry[_0x185a39(0x1a4)]=_0x936132[_0x185a39(0x1a4)],global_registry[_0x185a39(0x122)]=_0x936132[_0x185a39(0x148)];}else _0x11b286['push'](_0x157f46[_0x185a39(0x17e)]);}else{if(_0x936132['gridProfile']){if(_0x157f46[_0x185a39(0xf8)](_0x157f46[_0x185a39(0x14c)],_0x157f46[_0x185a39(0x14c)])){const {header:_0x26872c,response:_0x2d1472}=_0x1398ed,{status:_0x22c4a2,data:_0x5492be,error:_0x34c773}=_0x2d1472;_0x1608e8+=_0x26872c+'\x20#'+_0x157f46[_0x185a39(0x181)](_0x44a301,0x1)+'\x0a',_0x5e662b+=_0x185a39(0x1e4)+(_0x22c4a2?_0x157f46['aXITx']:_0x157f46['EoPjo'])+'\x0a',_0x219420+='Message:\x20'+_0x157f46[_0x185a39(0x191)](_0x5492be,_0x157f46[_0x185a39(0x11f)])+'\x0a',_0x34c773&&(_0x586955+=_0x157f46[_0x185a39(0x12d)],_0xfb23be+='\x20\x20Message:\x20'+(_0x34c773[_0x185a39(0x189)]||_0x157f46[_0x185a39(0x11f)])+'\x0a',_0x11b989+=_0x185a39(0x103)+(_0x34c773['code']||_0x157f46[_0x185a39(0x11f)])+'\x0a',_0x1aba8b+='\x20\x20Stack:\x20'+(_0x34c773[_0x185a39(0x177)]||_0x157f46[_0x185a39(0x11f)])+'\x0a'),_0x377841+='\x0a\x0a';}else{global_registry[_0x185a39(0x1f6)]=_0x936132[_0x185a39(0x1f6)],logger[_0x185a39(0x1ed)](_0x185a39(0x17b)+_0x936132['gridProfile']);const _0x3d0add=_0x185a39(0x12b)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x2eefe2={};_0x2eefe2['method']=_0x157f46[_0x185a39(0x101)],_0x2eefe2[_0x185a39(0x1ce)]=global_registry['authHeader'],_0x2eefe2[_0x185a39(0x1cf)]=![];const _0x35613c=_0x2eefe2,_0x31cd75=await _0x157f46[_0x185a39(0x121)](got,_0x3d0add,_0x35613c),_0x2911c0=await _0x157f46[_0x185a39(0x15a)](responseValidation,_0x31cd75,_0x157f46[_0x185a39(0x18b)],_0x157f46[_0x185a39(0x1a8)],_0x936132,_0x4f3fc8);let _0x2b26a1={};if(_0x157f46['fUEjG'](_0x2911c0,0xc8)){if(_0x157f46[_0x185a39(0x100)](_0x157f46[_0x185a39(0x187)],_0x157f46[_0x185a39(0xfe)])){const _0x39e742=JSON[_0x185a39(0x1e2)](_0x31cd75[_0x185a39(0x12a)]),_0x25b9a0=_0x39e742[_0x185a39(0x155)](_0x4ac110=>_0x4ac110[_0x185a39(0x11e)]===_0x936132['gridProfile'])||null;if(_0x157f46[_0x185a39(0x1d7)](isUndefined,_0x25b9a0))_0x157f46[_0x185a39(0xf8)](_0x157f46['rmkhA'],_0x157f46['rmkhA'])?(_0x34cd2c[_0x185a39(0x188)](_0x185a39(0x19d)+_0x45837d[_0x185a39(0x1f0)]+'\x20'),_0x2a1285[_0x185a39(0x1a4)]=_0x4ffd92['CLOUD_PROVIDER']):(_0xbfe9fa='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x936132[_0x185a39(0x1f6)]+_0x185a39(0x1bf),await _0x157f46[_0x185a39(0x1b5)](reportToGalactusAndSendToEDS,_0x936132,_0x4f3fc8,_0xbfe9fa,messageTypes[_0x185a39(0x1b8)],_0x157f46[_0x185a39(0x18e)],_0x157f46[_0x185a39(0x139)],_0x157f46[_0x185a39(0x1bc)]),logger['error'](_0xbfe9fa),process['exit'](0x1));else{if(_0x157f46[_0x185a39(0x173)](_0x157f46[_0x185a39(0x16f)],_0x157f46[_0x185a39(0x171)])){const _0x22bac7={};_0x22bac7[_0x185a39(0x1dd)]=_0x2fa70f[_0x185a39(0x1c1)],_0x22bac7[_0x185a39(0x189)]=_0x4566e5,_0x1c1ca7['sendEventToBackend'](_0x2f5414,_0x22bac7,_0x157f46[_0x185a39(0x1bc)],!![]);}else _0x2b26a1=_0x25b9a0;}}else _0x249656+='Cluster\x20'+_0x58caff[_0x185a39(0x183)]+'\x20'+(_0x14fedd?_0x157f46[_0x185a39(0x154)]:_0x157f46[_0x185a39(0x153)])+'\x0a\x0a';}else _0x157f46[_0x185a39(0xfd)](_0x157f46[_0x185a39(0x14e)],_0x157f46[_0x185a39(0x1ec)])?process[_0x185a39(0x13a)](0x1):_0x4e26e4['error'](_0x185a39(0x1c0)+_0xe75134[_0x185a39(0x1c3)][_0x185a39(0x177)]);const _0x1eb60c={};_0x1eb60c['type']=WS_EVENTS[_0x185a39(0x1c1)],_0x1eb60c[_0x185a39(0x189)]=_0x157f46[_0x185a39(0x1d0)],webSocketUtils[_0x185a39(0x1b1)](_0x4f3fc8,_0x1eb60c),global_registry['cloudProvider']=_0x2b26a1['cloudProvider'],global_registry[_0x185a39(0x122)]=_0x2b26a1['region'],global_registry['clusterName']=_0x2b26a1[_0x185a39(0x183)];}}else _0x157f46[_0x185a39(0x165)](_0x157f46['fJxGV'],_0x157f46[_0x185a39(0x124)])?_0x363869[_0x185a39(0x175)](_0x157f46[_0x185a39(0x105)]):(logger[_0x185a39(0x1c3)](_0x157f46[_0x185a39(0x193)]),process[_0x185a39(0x13a)](0x1));}}}catch(_0x1deb7f){_0x157f46[_0x185a39(0x1c5)](_0x157f46[_0x185a39(0x170)],_0x157f46[_0x185a39(0x118)])?_0x2a5cdf=_0x4c2e44:(_0xbfe9fa=_0x185a39(0x109)+_0x1deb7f+':\x20'+_0x1deb7f['stack'],logger[_0x185a39(0x1c3)](_0xbfe9fa),await _0x157f46[_0x185a39(0x158)](reportToGalactusAndSendToEDS,_0x936132,_0x4f3fc8,_0xbfe9fa,messageTypes[_0x185a39(0x1b8)],_0x157f46[_0x185a39(0x18e)],_0x157f46[_0x185a39(0x164)],_0x157f46[_0x185a39(0x1bc)]),process[_0x185a39(0x13a)](0x1));}}function printResponse(_0x1589d1,_0x1b7b42){const _0x51cf80=a17_0x528345,_0x274811={};_0x274811[_0x51cf80(0x163)]=function(_0xbb428e,_0x183842){return _0xbb428e===_0x183842;},_0x274811[_0x51cf80(0x19b)]='cHngc',_0x274811[_0x51cf80(0x1a2)]='nmFqM';const _0x8cf8=_0x274811;logger['info']('['+_0x1589d1+']\x20status\x20:\x20'+_0x1b7b42[_0x51cf80(0x106)]+'\x20data\x20:\x20'+_0x1b7b42[_0x51cf80(0x161)]+'\x20error\x20:\x20'+_0x1b7b42['error']),_0x1b7b42['error']&&(_0x8cf8[_0x51cf80(0x163)](_0x8cf8['reXJn'],_0x8cf8[_0x51cf80(0x1a2)])?_0x15f37c['info'](_0x51cf80(0x132)+_0x39acd2['clusterName']+_0x51cf80(0x16a)):logger[_0x51cf80(0x1c3)](_0x51cf80(0x1c0)+_0x1b7b42[_0x51cf80(0x1c3)][_0x51cf80(0x177)]));}async function generateReport(_0x39a989,_0x61bde9){const _0x3cc9fd=a17_0x528345,_0x53856f={'rNGhD':function(_0x475ba1,_0x2d9dc8){return _0x475ba1+_0x2d9dc8;},'CMHlD':_0x3cc9fd(0x1e3),'uehJr':'Failure','mJrUs':function(_0x48f7aa,_0x16915e){return _0x48f7aa||_0x16915e;},'xpJxJ':_0x3cc9fd(0x1d6),'yqhnN':_0x3cc9fd(0x197),'clila':_0x3cc9fd(0x126),'sXtPo':function(_0x10a9a6,_0x36e1a0){return _0x10a9a6!=_0x36e1a0;},'ogmtA':'is\x20already\x20present','hvpEG':_0x3cc9fd(0x12c),'LUhOb':function(_0x50640f){return _0x50640f();}};let _0xc61a79='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x3cc9fd(0x1a4)]+_0x3cc9fd(0x1a0);return _0x39a989[_0x3cc9fd(0x18d)]((_0x4db956,_0x597d72)=>{const _0x26a861=_0x3cc9fd,{header:_0x2d574a,response:_0x4c3346}=_0x4db956,{status:_0x28ca2b,data:_0x320a45,error:_0x3f1388}=_0x4c3346;_0xc61a79+=_0x2d574a+'\x20#'+_0x53856f['rNGhD'](_0x597d72,0x1)+'\x0a',_0xc61a79+='Status:\x20'+(_0x28ca2b?_0x53856f[_0x26a861(0x174)]:_0x53856f[_0x26a861(0x1b4)])+'\x0a',_0xc61a79+='Message:\x20'+_0x53856f[_0x26a861(0x16c)](_0x320a45,_0x53856f[_0x26a861(0x1ba)])+'\x0a',_0x3f1388&&(_0xc61a79+=_0x53856f[_0x26a861(0x123)],_0xc61a79+=_0x26a861(0x17f)+(_0x3f1388['message']||_0x53856f['xpJxJ'])+'\x0a',_0xc61a79+=_0x26a861(0x103)+(_0x3f1388[_0x26a861(0x1c7)]||_0x53856f[_0x26a861(0x1ba)])+'\x0a',_0xc61a79+=_0x26a861(0x117)+(_0x3f1388[_0x26a861(0x177)]||_0x53856f[_0x26a861(0x1ba)])+'\x0a'),_0xc61a79+='\x0a\x0a';}),_0xc61a79+=_0x53856f[_0x3cc9fd(0x169)],_0x53856f[_0x3cc9fd(0x1bb)](_0x61bde9,null)?_0xc61a79+=_0x3cc9fd(0x1de)+global_registry[_0x3cc9fd(0x183)]+'\x20'+(_0x61bde9?_0x53856f[_0x3cc9fd(0x18f)]:_0x53856f[_0x3cc9fd(0x14a)])+'\x0a\x0a':_0xc61a79+=_0x3cc9fd(0x1de)+global_registry[_0x3cc9fd(0x183)]+_0x3cc9fd(0x12e),_0xc61a79+=_0x53856f[_0x3cc9fd(0x11d)](getSystemMetaData),_0xc61a79;}function a17_0x53f9(_0x4261fe,_0x320863){const _0x40d3df=a17_0x40d3();return a17_0x53f9=function(_0x53f94d,_0x228f02){_0x53f94d=_0x53f94d-0xf6;let _0x3074d5=_0x40d3df[_0x53f94d];return _0x3074d5;},a17_0x53f9(_0x4261fe,_0x320863);}function a17_0x40d3(){const _0xc0bccc=['cyWzv','jkSKM','RXSDA','rogqD','`\x20,error\x20:\x20','vfuYI','tlQoa','fUEjG','\x20\x20Code:\x20','BzbXb','lgMge','status','../../utils/instrumentationUtils','delay','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','1104495ORJjuU','uiPTl','getUTCDate','\x20data\x20:\x20','../../config/logger','4192135kWvdwt','RxFYA','Report\x20saved\x20in\x20','options','stringify','ESQnG','getUTCHours','wxviY','\x20\x20Stack:\x20','wBOVt','ulxvq','unable\x20to\x20verify\x20if\x20cluster\x20`','uuid','pre-check-grid-called','LUhOb','name','Nojuv','xyomW','EtXMN','clusterRegion','yqhnN','BzTax','Lwbgw','Cluster\x20details\x0a-----------------------\x0a','readFileSync','oASMG','OZFUb','body','https://','will\x20be\x20created','MFDAy','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','grpRR','bstackAccesskey','EaGnS','Cluster\x20`','ClmIb','<PasswordPlaceholder>','authHeader','zxHVy','pHTwj','length','ErTdt','exit','<UsernamePlaceholder>','\x20region\x20-\x20','\x20error\x20:\x20','../../config/constants','VmEgZ','accessResp','KQuLg','isClusterPresent','lWPWk','credential-not-found','getUTCMinutes','username','.txt','region','kIAHq','hvpEG','aoLMd','NhIff','../../utils/utilityMethods','epTFH','TjTvb','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','fFwtx','GeOMp','QLfxJ','IaGbB','find','vFzXX','IvjyL','ZBxkH','oYSUP','YPQGw','pre-check-cluster-args-not-passed','WsGzD','eCRUk','pre-check-failed','BHreN','elBjV','data','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','BWZwf','gxHAk','JaHgs','bstackUsername','Lbrxy','Tool\x20Installed','clila','`\x20already\x20exists','KUFLi','mJrUs','mQDkV','KtsPq','Bxnng','iOYAA','fQNIv','mUFWU','akwuE','CMHlD','push','HbNKE','stack','isTls1_2_SUPPORTED','usage','QxHuc','grid\x20profile\x20flow\x20','tVggv','command','Qszjg','\x20\x20Message:\x20','builder','pWmKF','760850BsJJCH','clusterName','MACDh','reconnecting-websocket','HQIfd','PMeic','info','message','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','MUmIV','SfOYp','forEach','DaGeD','ogmtA','WAzjF','WTuMO','replace','OtLkC','ODImL','OWqYe','pre-check-grid-profile-empty','Error\x20Details:\x0a','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','3280533KnBlqg','11MgQVoj','reXJn','argv','Setting\x20cloud\x20provider\x20as\x20','XHREu','description','\x20===\x0a\x0a','toLowerCase','mMdhW','WebSocket','cloudProvider','init','is\x20already\x20present','SSL\x20Configured','MOBDA','response','password','4leasGF','SsoNh','nrCji','ROsyQ','includes','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','sendEventToBackend','DFoKx','YzWZt','uehJr','ryBem','header','11813690dujVvG','ERROR','grid-profile','xpJxJ','sXtPo','HHgIe','getUTCFullYear','WOzyF','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','error\x20stack\x20:\x20','LOG','Browserstack','error','vYBUh','jumfU','.\x20Please\x20provide\x20all\x20required\x20arguments.','code','2888684pgzmWp','toolInstalledResp','string','INFO','existsSync','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','headers','throwHttpErrors','FmxSr','LhyqT','grid','oJWXH','pre_check','eVBEd','N/A','hZJbP','cloud-provider','split','log/report_','help','wBWmB','type','Cluster\x20','../../cloudproviders/utils','Whitelisted\x20browserstack','Failure','parse','Success','Status:\x20','cloud-provider-not-supported','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Missing\x20required\x20arguments:\x20','got','FMXww','cluster-name','join','Crpmn','debug','6AyNnQm','Smkyn','CLOUD_PROVIDER','8PxeraP','epilogue','trBCR','10439775ooxHyn','EiyWL','gridProfile','UhANY','fLAeK','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','isTrialGridAccessible','TVhip','utf-8','iOxCj','Grid\x20profile\x20fetched\x20for\x20pre-check','PlBss'];a17_0x40d3=function(){return _0xc0bccc;};return a17_0x40d3();};exports['handler']=async function(_0x362892){const _0x81f0b2=a17_0x528345,_0x5a9b86={'jkSKM':function(_0x5da851){return _0x5da851();},'WOzyF':_0x81f0b2(0x1f9),'HbNKE':function(_0x254df8,_0x2a0e28,_0x91cef7,_0x9cc58,_0x539989,_0x3fcd6d,_0x394846,_0x3c2ba4){return _0x254df8(_0x2a0e28,_0x91cef7,_0x9cc58,_0x539989,_0x3fcd6d,_0x394846,_0x3c2ba4);},'wBWmB':'pre-check-grid-called','RxFYA':_0x81f0b2(0x144),'oASMG':_0x81f0b2(0x1c3),'GeOMp':function(_0xf4c26c,_0x4eb2bb,_0x25572c,_0x2d4cc0,_0x31b58f,_0x2af80e,_0x4f4b2c){return _0xf4c26c(_0x4eb2bb,_0x25572c,_0x2d4cc0,_0x31b58f,_0x2af80e,_0x4f4b2c);},'elBjV':function(_0x1c2248){return _0x1c2248();},'oYSUP':_0x81f0b2(0x13b),'QxHuc':_0x81f0b2(0x134),'vYBUh':function(_0x20b1bb,_0x43862c,_0x477096){return _0x20b1bb(_0x43862c,_0x477096);},'TVhip':function(_0x297d79,_0x3be4d8,_0x510e46){return _0x297d79(_0x3be4d8,_0x510e46);},'wxviY':'dummy-grid','mQDkV':_0x81f0b2(0x1c9),'eCRUk':'1|4|0|2|3','SfOYp':_0x81f0b2(0x140),'FMXww':function(_0x5f9d1e){return _0x5f9d1e();},'ulxvq':_0x81f0b2(0x1fa),'fLAeK':function(_0x24b2e4,_0x231bed){return _0x24b2e4(_0x231bed);},'nrCji':'TLSv1_2_client_method','vsDTl':_0x81f0b2(0x178),'DFoKx':_0x81f0b2(0x168),'cyWzv':'User\x20Access','HBmsW':_0x81f0b2(0x1e0),'WsGzD':_0x81f0b2(0x1a7),'uxoWX':function(_0x2658ad,_0x27592b,_0xfc9b5b){return _0x2658ad(_0x27592b,_0xfc9b5b);},'KtsPq':function(_0x3a07ff,_0x491f2f){return _0x3a07ff+_0x491f2f;},'TjTvb':_0x81f0b2(0xf7),'vUNGA':_0x81f0b2(0x15e)};let _0x300a26,_0x292034;try{global_registry['requestId']=_0x5a9b86[_0x81f0b2(0xfc)](uuidv4);!fs[_0x81f0b2(0x1cc)](_0x5a9b86['jkSKM'](getCredentialsPath))&&(_0x292034=_0x5a9b86[_0x81f0b2(0x1be)],logger[_0x81f0b2(0x1c3)](_0x292034),await _0x5a9b86[_0x81f0b2(0x176)](reportToGalactusAndSendToEDS,_0x362892,_0x300a26,_0x292034,messageTypes[_0x81f0b2(0x1b8)],_0x5a9b86[_0x81f0b2(0x1dc)],_0x5a9b86[_0x81f0b2(0x110)],_0x5a9b86[_0x81f0b2(0x128)]),process[_0x81f0b2(0x13a)](0x1));_0x5a9b86[_0x81f0b2(0x152)](sendInstrumentationEvent,_0x362892,_0x5a9b86[_0x81f0b2(0x1dc)],messageTypes[_0x81f0b2(0x1cb)],null,null,_0x362892);const _0x4fcf4e=JSON[_0x81f0b2(0x1e2)](fs[_0x81f0b2(0x127)](_0x5a9b86[_0x81f0b2(0x160)](getCredentialsPath)));global_registry[_0x81f0b2(0x166)]=_0x4fcf4e[_0x81f0b2(0x1c2)][_0x81f0b2(0x146)],global_registry[_0x81f0b2(0x130)]=_0x4fcf4e[_0x81f0b2(0x1c2)][_0x81f0b2(0x1aa)];const _0x34bfec=WS_ENDPOINT['replace'](_0x5a9b86[_0x81f0b2(0x159)],_0x4fcf4e[_0x81f0b2(0x1c2)][_0x81f0b2(0x146)])[_0x81f0b2(0x192)](_0x5a9b86[_0x81f0b2(0x17a)],_0x4fcf4e[_0x81f0b2(0x1c2)][_0x81f0b2(0x1aa)]),_0x24714d={};_0x24714d[_0x81f0b2(0x1a3)]=ws,_0x24714d['connectionTimeout']=0x36ee80,_0x300a26=new ReconnectingWebSocket(_0x34bfec,[],_0x24714d),global_registry[_0x81f0b2(0x135)]=_0x5a9b86['vYBUh'](getAuthHeader,global_registry[_0x81f0b2(0x166)],global_registry[_0x81f0b2(0x130)]),await _0x5a9b86[_0x81f0b2(0xf6)](inputValidation,_0x362892,_0x300a26),logger[_0x81f0b2(0x188)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0x81f0b2(0x1a4)]+_0x81f0b2(0x13c)+global_registry[_0x81f0b2(0x122)]);let _0x3f6e96=await _0x5a9b86[_0x81f0b2(0x152)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0x81f0b2(0x183)],_0x5a9b86[_0x81f0b2(0x116)],_0x300a26,webSocketUtils,_0x362892);const _0x27d26a=await _0x3f6e96['isCliToolInstalled']();_0x5a9b86['TVhip'](printResponse,_0x5a9b86[_0x81f0b2(0x16d)],_0x27d26a),_0x3f6e96=await _0x3f6e96[_0x81f0b2(0x1a5)]();let _0x2df785=![];try{_0x2df785=await _0x3f6e96[_0x81f0b2(0x142)]();}catch(_0xca0d28){const _0x27affd=_0x5a9b86[_0x81f0b2(0x15d)][_0x81f0b2(0x1d9)]('|');let _0x19209b=0x0;while(!![]){switch(_0x27affd[_0x19209b++]){case'0':logger[_0x81f0b2(0x1c3)](_0x292034);continue;case'1':_0x292034=_0x81f0b2(0x11a)+global_registry[_0x81f0b2(0x183)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x81f0b2(0x122)]+_0x81f0b2(0xff)+_0xca0d28;continue;case'2':_0x292034+='\x0a'+JSON[_0x81f0b2(0x113)](_0xca0d28[_0x81f0b2(0x177)]);continue;case'3':await _0x5a9b86['HbNKE'](reportToGalactusAndSendToEDS,_0x362892,_0x300a26,_0x292034,messageTypes[_0x81f0b2(0x1b8)],_0x5a9b86[_0x81f0b2(0x1dc)],'cluster-check-failed-'+global_registry['cloudProvider'],_0x5a9b86[_0x81f0b2(0x128)]);continue;case'4':_0x2df785=null;continue;}break;}}_0x2df785&&logger['info'](_0x81f0b2(0x132)+global_registry['clusterName']+_0x81f0b2(0x16a));const _0x31b39d=await _0x3f6e96['checkAccess']();_0x5a9b86[_0x81f0b2(0xf6)](printResponse,_0x5a9b86[_0x81f0b2(0x18c)],_0x31b39d);const _0xda38b3=await _0x5a9b86[_0x81f0b2(0x1e9)](curlRequest);_0x5a9b86[_0x81f0b2(0xf6)](printResponse,_0x5a9b86[_0x81f0b2(0x119)],_0xda38b3);const _0xc0904d=await _0x5a9b86[_0x81f0b2(0x1f8)](isTlsSupported,_0x5a9b86[_0x81f0b2(0x1ad)]);_0x5a9b86[_0x81f0b2(0x1c4)](printResponse,_0x5a9b86['vsDTl'],_0xc0904d);const _0x35fa08={};_0x35fa08[_0x81f0b2(0x1b6)]=_0x5a9b86[_0x81f0b2(0x1b2)],_0x35fa08[_0x81f0b2(0x1a9)]=_0x27d26a;const _0x55009a={};_0x55009a[_0x81f0b2(0x1b6)]=_0x5a9b86[_0x81f0b2(0xfb)],_0x55009a[_0x81f0b2(0x1a9)]=_0x31b39d;const _0x59036c={};_0x59036c[_0x81f0b2(0x1b6)]=_0x5a9b86['HBmsW'],_0x59036c[_0x81f0b2(0x1a9)]=_0xda38b3;const _0x321d50={};_0x321d50[_0x81f0b2(0x1b6)]=_0x5a9b86[_0x81f0b2(0x15c)],_0x321d50[_0x81f0b2(0x1a9)]=_0xc0904d;const _0x26722d=[_0x35fa08,_0x55009a,_0x59036c,_0x321d50],_0xf066db=await _0x5a9b86['uxoWX'](generateReport,_0x26722d,_0x2df785),_0x50bebf=new Date(),_0xfd372f=_0x50bebf[_0x81f0b2(0x1bd)]()+'_'+_0x5a9b86[_0x81f0b2(0x16e)](_0x50bebf['getUTCMonth'](),0x1)+'_'+_0x50bebf[_0x81f0b2(0x10c)]()+'_'+_0x50bebf[_0x81f0b2(0x115)]()+'_'+_0x50bebf[_0x81f0b2(0x145)](),_0x5e7fff=_0x81f0b2(0x1da)+_0xfd372f+_0x81f0b2(0x147);fs['writeFileSync'](_0x5e7fff,_0xf066db,_0x5a9b86[_0x81f0b2(0x14f)]),logger[_0x81f0b2(0x188)](_0x81f0b2(0x111)+_0x5e7fff),process[_0x81f0b2(0x13a)](0x0);}catch(_0x1d0b20){let _0x1838b1='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x1d0b20+'\x20';logger[_0x81f0b2(0x1c3)](_0x1838b1),_0x1838b1+='\x0a'+JSON[_0x81f0b2(0x113)](_0x1d0b20[_0x81f0b2(0x177)]),logger[_0x81f0b2(0x1ed)]('stack\x20trace\x20'+_0x1d0b20['stack']);if(_0x300a26){const _0x54ea9c={};_0x54ea9c[_0x81f0b2(0x1dd)]=WS_EVENTS[_0x81f0b2(0x1c1)],_0x54ea9c[_0x81f0b2(0x189)]=_0x1838b1,webSocketUtils[_0x81f0b2(0x1b1)](_0x300a26,_0x54ea9c,_0x5a9b86[_0x81f0b2(0x128)],!![]);}await webSocketUtils[_0x81f0b2(0x108)](0x7d0);const _0x11bc17={};_0x11bc17[_0x81f0b2(0x1c3)]=_0x1838b1,await _0x5a9b86[_0x81f0b2(0x152)](sendInstrumentationEvent,_0x362892,_0x5a9b86[_0x81f0b2(0x1dc)],messageTypes[_0x81f0b2(0x1b8)],_0x5a9b86['vUNGA'],_0x11bc17,_0x362892),process[_0x81f0b2(0x13a)](0x1);}};
|
|
1
|
+
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
|
-
function
|
|
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;
|