browserstack-node-sdk 1.57.1 → 1.57.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/driverInitErrorReporter.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15_0x183c0f=a15_0x2ffc;function a15_0x2ffc(_0x3d12fe,_0x2e05a3){const _0x17a899=a15_0x17a8();return a15_0x2ffc=function(_0x2ffc70,_0x10790c){_0x2ffc70=_0x2ffc70-0x155;let _0x464062=_0x17a899[_0x2ffc70];return _0x464062;},a15_0x2ffc(_0x3d12fe,_0x2e05a3);}(function(_0x2c92da,_0x34e634){const _0x5cba68=a15_0x2ffc,_0x4de9ee=_0x2c92da();while(!![]){try{const _0xd2798b=parseInt(_0x5cba68(0x177))/0x1+parseInt(_0x5cba68(0x1ab))/0x2*(parseInt(_0x5cba68(0x19f))/0x3)+parseInt(_0x5cba68(0x171))/0x4+-parseInt(_0x5cba68(0x19a))/0x5*(-parseInt(_0x5cba68(0x170))/0x6)+-parseInt(_0x5cba68(0x16b))/0x7*(parseInt(_0x5cba68(0x15f))/0x8)+parseInt(_0x5cba68(0x193))/0x9*(parseInt(_0x5cba68(0x15d))/0xa)+-parseInt(_0x5cba68(0x199))/0xb*(parseInt(_0x5cba68(0x195))/0xc);if(_0xd2798b===_0x34e634)break;else _0x4de9ee['push'](_0x4de9ee['shift']());}catch(_0x2d9843){_0x4de9ee['push'](_0x4de9ee['shift']());}}}(a15_0x17a8,0x36104));const fs=require('fs'),got=require(a15_0x183c0f(0x1ac)),{table}=require(a15_0x183c0f(0x1a0)),{v4:uuidv4}=require(a15_0x183c0f(0x16a)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x183c0f(0x182)),{getCredentialsPath,getAuthHeader}=require(a15_0x183c0f(0x178)),{sendInstrumentationEvent}=require(a15_0x183c0f(0x17e));function a15_0x17a8(){const _0x197fd2=['password','\x0aFound\x20the\x20following\x20grids:\x0a','desc','argv','81xyyQiq','bstackAccesskey','36LBARjN','parse','readFileSync','INFO','919853gQwLmi','457845vlnMZx','lHiVu','vGwDy','clusterName','iTlwI','3HcAkUI','table','HozVU','command','EQeVw','stringify','mOASr','eZUSQ','all-grids','grid','list','exit','217382aYYORV','got','allGrids','statusCode','oWzJj','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','rClhl','grids','epilogue','help','WcUUc','jMecG','server-error','208790ZjynKF','Browserstack','160OBIFMr','https://','jGpZi','list-grids-called','fHKxC','Khgkm','usage','/packages/cli/get-all-grids','queued','grid-name','dgrwh','uuid','152264pZsFrV','gZXnu','EGfuU','jDtBE','eqeks','6adxDGF','1673212ijvUEa','OwhnO','REZZm','UEryT','GET','AgTXK','100879mzlILM','../../utils/utilityMethods','handler','push','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','nBjEw','ERROR','../../utils/instrumentationUtils','name','options','Lyufg','../../config/constants','unknown-error','running','username','CMKoN','error','status','forEach','requestId','log','FcWlS','/packages/cli/get-grids','existsSync'];a15_0x17a8=function(){return _0x197fd2;};return a15_0x17a8();}exports[a15_0x183c0f(0x1a2)]=a15_0x183c0f(0x157),exports[a15_0x183c0f(0x191)]=a15_0x183c0f(0x17b),exports['builder']=function(_0x57352f){const _0x496a4c=a15_0x183c0f,_0x58c816={};_0x58c816[_0x496a4c(0x176)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x58c816[_0x496a4c(0x1af)]='boolean',_0x58c816['REZZm']=_0x496a4c(0x159);const _0x403bcc=_0x58c816,_0x6a672e={};_0x6a672e['description']=_0x403bcc[_0x496a4c(0x176)],_0x6a672e['type']=_0x403bcc[_0x496a4c(0x1af)];const _0x34c4b5={};return _0x34c4b5[_0x496a4c(0x1a7)]=_0x6a672e,_0x57352f[_0x496a4c(0x165)](HELP_HEADER_MESSAGE[_0x496a4c(0x1a9)][_0x496a4c(0x1a8)])[_0x496a4c(0x158)](HELP_FOOTER_MESSAGE)[_0x496a4c(0x180)](_0x34c4b5)['help'](_0x403bcc[_0x496a4c(0x173)])[_0x496a4c(0x192)];},exports[a15_0x183c0f(0x179)]=async function(_0x423f78){const _0x48014c=a15_0x183c0f,_0xeac5bf={'jMecG':function(_0x80a278){return _0x80a278();},'CMKoN':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','fHKxC':function(_0x5ab617,_0x13aaa4,_0xbd036a,_0x2ba39c,_0x5bcc06,_0x1a9b41,_0x1652e4){return _0x5ab617(_0x13aaa4,_0xbd036a,_0x2ba39c,_0x5bcc06,_0x1a9b41,_0x1652e4);},'rClhl':_0x48014c(0x162),'nBjEw':'init-not-called','OwhnO':function(_0xe111d){return _0xe111d();},'Khgkm':_0x48014c(0x175),'Lyufg':function(_0x1fbd10,_0x2f9455,_0x2f52d9){return _0x1fbd10(_0x2f9455,_0x2f52d9);},'eqeks':function(_0x339082,_0x4261fa,_0x717cbb){return _0x339082(_0x4261fa,_0x717cbb);},'iTlwI':function(_0x36252b,_0x555730){return _0x36252b!==_0x555730;},'FcWlS':function(_0x577ed0,_0x46df67){return _0x577ed0!==_0x46df67;},'eZUSQ':function(_0x1bf8e8,_0x3ee903){return _0x1bf8e8===_0x3ee903;},'UEryT':_0x48014c(0x190),'EQeVw':'grid-id','WcUUc':_0x48014c(0x168),'dgrwh':'status','jGpZi':_0x48014c(0x184),'HozVU':_0x48014c(0x167),'EGfuU':'cluster-name','gZXnu':function(_0x3df200,_0x439fee){return _0x3df200(_0x439fee);},'vGwDy':_0x48014c(0x155),'jDtBE':'unauthorised','mOASr':_0x48014c(0x15c),'tXnXG':function(_0x452787,_0x504d4c,_0x5a6d74,_0x341d4a,_0x574b9e,_0x57e4aa,_0x54c0ee){return _0x452787(_0x504d4c,_0x5a6d74,_0x341d4a,_0x574b9e,_0x57e4aa,_0x54c0ee);},'lHiVu':_0x48014c(0x183)};try{global_registry[_0x48014c(0x18a)]=_0xeac5bf[_0x48014c(0x15b)](uuidv4);!fs[_0x48014c(0x18e)](_0xeac5bf['jMecG'](getCredentialsPath))&&(console[_0x48014c(0x187)](_0xeac5bf[_0x48014c(0x186)]),await _0xeac5bf[_0x48014c(0x163)](sendInstrumentationEvent,_0x423f78,_0xeac5bf[_0x48014c(0x156)],messageTypes[_0x48014c(0x17d)],_0xeac5bf[_0x48014c(0x17c)],null,_0x423f78),process['exit'](0x1));const _0x37b4e9=JSON['parse'](fs[_0x48014c(0x197)](_0xeac5bf[_0x48014c(0x172)](getCredentialsPath)));let _0x565bb6='https://'+AG_API_URL+_0x48014c(0x18d);_0x423f78[_0x48014c(0x1ad)]&&(_0x565bb6=_0x48014c(0x160)+AG_API_URL+_0x48014c(0x166));const _0x40a8d9={'method':_0xeac5bf[_0x48014c(0x164)],'headers':_0xeac5bf[_0x48014c(0x181)](getAuthHeader,_0x37b4e9[_0x48014c(0x15e)]['username'],_0x37b4e9[_0x48014c(0x15e)][_0x48014c(0x18f)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x37b4e9[_0x48014c(0x15e)][_0x48014c(0x185)],global_registry[_0x48014c(0x194)]=_0x37b4e9['Browserstack'][_0x48014c(0x18f)],_0xeac5bf[_0x48014c(0x163)](sendInstrumentationEvent,_0x423f78,_0xeac5bf[_0x48014c(0x156)],messageTypes[_0x48014c(0x198)],null,null,_0x423f78);const _0x2890a2=await _0xeac5bf[_0x48014c(0x16f)](got,_0x565bb6,_0x40a8d9);if(_0xeac5bf[_0x48014c(0x19e)](_0x2890a2,null)&&_0xeac5bf[_0x48014c(0x18c)](_0x2890a2,undefined)&&_0xeac5bf[_0x48014c(0x1a6)](_0x2890a2[_0x48014c(0x1ae)],0xc8)){const _0x1fc60b=JSON[_0x48014c(0x196)](_0x2890a2['body']);console[_0x48014c(0x18b)](_0xeac5bf[_0x48014c(0x174)]);const _0x3438bf=[];_0x3438bf['push']([_0xeac5bf[_0x48014c(0x1a3)],_0xeac5bf[_0x48014c(0x15a)],_0xeac5bf[_0x48014c(0x169)],_0xeac5bf[_0x48014c(0x161)],_0xeac5bf[_0x48014c(0x1a1)],_0xeac5bf[_0x48014c(0x16d)]]),_0x1fc60b[_0x48014c(0x189)](_0x117028=>{const _0x527711=_0x48014c;_0x3438bf[_0x527711(0x17a)]([_0x117028['id'],_0x117028[_0x527711(0x17f)],_0x117028[_0x527711(0x188)],_0x117028[_0x527711(0x184)],_0x117028[_0x527711(0x167)],_0x117028[_0x527711(0x19d)]]);}),console[_0x48014c(0x18b)](_0xeac5bf[_0x48014c(0x16c)](table,_0x3438bf)),process[_0x48014c(0x1aa)](0x0);}_0xeac5bf[_0x48014c(0x1a6)](_0x2890a2[_0x48014c(0x1ae)],0x191)&&(console[_0x48014c(0x187)](_0xeac5bf[_0x48014c(0x19c)]),await _0xeac5bf['fHKxC'](sendInstrumentationEvent,_0x423f78,_0xeac5bf[_0x48014c(0x156)],messageTypes['ERROR'],_0xeac5bf[_0x48014c(0x16e)],null,_0x423f78),process['exit'](0x1)),console[_0x48014c(0x187)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x48014c(0x1a4)](_0x2890a2)),await _0xeac5bf[_0x48014c(0x163)](sendInstrumentationEvent,_0x423f78,_0xeac5bf[_0x48014c(0x156)],messageTypes[_0x48014c(0x17d)],_0xeac5bf[_0x48014c(0x1a5)],_0x2890a2,_0x423f78),process[_0x48014c(0x1aa)](0x1);}catch(_0x5d9f2e){console['error']('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x5d9f2e['stack']),await _0xeac5bf['tXnXG'](sendInstrumentationEvent,_0x423f78,_0xeac5bf[_0x48014c(0x156)],messageTypes[_0x48014c(0x17d)],_0xeac5bf[_0x48014c(0x19b)],_0x5d9f2e,_0x423f78),process[_0x48014c(0x1aa)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a16_0x2b9105=a16_0x54e5;function a16_0x54e5(_0x1e2f0f,_0x3ab2a8){const _0x36a6f2=a16_0x36a6();return a16_0x54e5=function(_0x54e5a0,_0x27da51){_0x54e5a0=_0x54e5a0-0x113;let _0x24c9b9=_0x36a6f2[_0x54e5a0];return _0x24c9b9;},a16_0x54e5(_0x1e2f0f,_0x3ab2a8);}(function(_0x5cf725,_0x3221d5){const _0x70fea3=a16_0x54e5,_0x50b2fb=_0x5cf725();while(!![]){try{const _0x11d6e3=-parseInt(_0x70fea3(0x121))/0x1*(-parseInt(_0x70fea3(0x115))/0x2)+-parseInt(_0x70fea3(0x11e))/0x3*(parseInt(_0x70fea3(0x122))/0x4)+parseInt(_0x70fea3(0x12e))/0x5+-parseInt(_0x70fea3(0x120))/0x6*(-parseInt(_0x70fea3(0x11b))/0x7)+-parseInt(_0x70fea3(0x114))/0x8*(parseInt(_0x70fea3(0x125))/0x9)+-parseInt(_0x70fea3(0x127))/0xa*(parseInt(_0x70fea3(0x113))/0xb)+parseInt(_0x70fea3(0x12a))/0xc*(parseInt(_0x70fea3(0x11c))/0xd);if(_0x11d6e3===_0x3221d5)break;else _0x50b2fb['push'](_0x50b2fb['shift']());}catch(_0x4f4a09){_0x50b2fb['push'](_0x50b2fb['shift']());}}}(a16_0x36a6,0xcd979));function a16_0x36a6(){const _0x20f130=['commandDir','strict','3240710WbnHnX','194139awwfpZ','35536tTLaiK','12526AQlJGO','pre_check','desc','epilogue','demandCommand','precheck_commands','7zoJDjO','1601938FIZhJg','pre-check','1874829rtBgWL','EkNMh','9494922isCvzh','45xRaDGi','4pEamli','recommendCommands','builder','1152ozMBzW','../config/constants','340rGmgMZ','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','oUPOM','12DbmPBC','command'];a16_0x36a6=function(){return _0x20f130;};return a16_0x36a6();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x2b9105(0x126));exports[a16_0x2b9105(0x12b)]=a16_0x2b9105(0x11d),exports[a16_0x2b9105(0x117)]=a16_0x2b9105(0x128),exports[a16_0x2b9105(0x124)]=function(_0x38da6f){const _0x430247=a16_0x2b9105,_0xcf000e={};_0xcf000e['oUPOM']=_0x430247(0x11a),_0xcf000e[_0x430247(0x11f)]='help';const _0x4f409a=_0xcf000e;return _0x38da6f['usage'](HELP_HEADER_MESSAGE[_0x430247(0x116)])[_0x430247(0x118)](HELP_FOOTER_MESSAGE)[_0x430247(0x12c)](_0x4f409a[_0x430247(0x129)])[_0x430247(0x119)]()[_0x430247(0x123)]()[_0x430247(0x12d)]()['help'](_0x4f409a[_0x430247(0x11f)]);},exports['handler']=function(_0x560b08){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a17_0x42d2c7=a17_0x1afc;function a17_0x1afc(_0x3358d4,_0x193d54){const _0x42ab64=a17_0x42ab();return a17_0x1afc=function(_0x1afc3d,_0xa96d5b){_0x1afc3d=_0x1afc3d-0x1c1;let _0x9b6fb4=_0x42ab64[_0x1afc3d];return _0x9b6fb4;},a17_0x1afc(_0x3358d4,_0x193d54);}(function(_0x54933e,_0x5eefe4){const _0x34984d=a17_0x1afc,_0x54453b=_0x54933e();while(!![]){try{const _0x1a9be1=-parseInt(_0x34984d(0x1ed))/0x1*(-parseInt(_0x34984d(0x1c9))/0x2)+-parseInt(_0x34984d(0x1f4))/0x3*(-parseInt(_0x34984d(0x247))/0x4)+parseInt(_0x34984d(0x21c))/0x5*(-parseInt(_0x34984d(0x1d5))/0x6)+-parseInt(_0x34984d(0x28f))/0x7+parseInt(_0x34984d(0x228))/0x8+parseInt(_0x34984d(0x203))/0x9+-parseInt(_0x34984d(0x23b))/0xa*(parseInt(_0x34984d(0x1e3))/0xb);if(_0x1a9be1===_0x5eefe4)break;else _0x54453b['push'](_0x54453b['shift']());}catch(_0x1e9006){_0x54453b['push'](_0x54453b['shift']());}}}(a17_0x42ab,0xe6a50));function a17_0x42ab(){const _0x1c5771=['pKptB','nWCmF','getUTCHours','body','HxnZb','checkAccess','cloud-provider','kzdtT','init','isClusterPresent','cluster-check-failed-','name','isTrialGridAccessible','got','throwHttpErrors','gvkFg','tNhmi','pre-check-grid-called','\x20\x20Message:\x20','bstackUsername','bLJeH','options','NozUS','2076285tjGaMc','FdxSC','length','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','tJyIu','dummy-grid','wtTax','epilogue','pspei','GHyiY','sFeYR','code','3648576ICnQvY','mYbrT','find','OdkRe','rfaik','parse','NiQQa','../../cloudproviders/utils','Report\x20saved\x20in\x20','replace','tbZmo','akOQa','GkNoc','EAfxg','zStSL','rONBR','ZDqYX','kUpGW','AkUXD','19675870DBWZPV',']\x20status\x20:\x20','tjubb','type','LpQDQ','Whitelisted\x20browserstack','WebSocket','handler','fhCKm','VGSQT','UHcrL','\x20\x20Code:\x20','148iNYCbh','SSL\x20Configured','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','IuYaH','kWBVH','uAUZA','gridProfile','DLZpE','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','fKpPo','stringify','is\x20already\x20present','lgIJa','Browserstack','INFO','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Setting\x20cloud\x20provider\x20as\x20','EbyEU','../../config/constants','getUTCDate','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','bCjDg','qDOHo','\x20\x20Stack:\x20','\x20===\x0a\x0a','message','nLqWd','VZhmr','debug','region','pOTss','ScInn','rsvtN','atBHI','uDvoh','exit','Tcnot','ChugP','gtpzg','YzxxR','CLOUD_PROVIDER','rRgJW','CNNPn','cluster-name','ntobl','connectionTimeout','usage','bstackAccesskey','User\x20Access','Cluster\x20`','ePvmc','JTANS','WsbyA','kZelX','qJWCV','dzOTq','stack','description','DPqGz','credential-not-found','authHeader','`\x20,error\x20:\x20','clusterName','password','ybhCf','OYEFv','Error\x20Details:\x0a','push','TLSv1_2_client_method','Failed\x20in\x20pre-check!\x20Error:\x20','YbycL','getUTCMinutes','4752349SihCHA','header','Qqsjb','dzbrs','Invalid\x20input.\x20grid\x20profiles:\x20','SKFse','JOfWE','eecGC','sAqrn','will\x20be\x20created','isTls1_2_SUPPORTED','oInpV','sendEventToBackend','EgKmK','Grid\x20profile\x20fetched\x20for\x20pre-check','kVZXP','N/A','stack\x20trace\x20','argv','error','Cluster\x20','tWHxz','FsfmI','4|0|2|3|1','AlfeX','isCliToolInstalled','ieyoI','response','.\x20Please\x20provide\x20all\x20required\x20arguments.','.txt','nWmAS','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','pre_check','YJBQv','cloud-provider-not-supported','`\x20is\x20present\x20in\x20region\x20`','builder','help','<UsernamePlaceholder>','XScKb','grid','string','AgQFj','CHfOl','aCvqn','pre-check','\x20region\x20-\x20','CcDCR','TJfdi','Cluster\x20details\x0a-----------------------\x0a','IrlFP','accessResp','CEYCZ','info','AoHiC','eTqGf','QCLIb','error\x20stack\x20:\x20','1740846EkHaGj','`\x20already\x20exists','PHuhd','weKSX','Bxisi','rvDEt','FYMuH','status','aCjef','/packages/cli/get-all-grid-profiles','USkBB','username','6WMhsYG','llTku','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','nfziB','FzggX','readFileSync','grid-profile','GJHMC','fpqPF','cNGfR','dQbvA','fcKRZ','nOBuv','sfIFe','11PjWtRY','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','mNQoc','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','KwiOH','LOG','cloudProvider','Missing\x20required\x20arguments:\x20','../../utils/utilityMethods','https://','2hejDNR','ERROR','clusterRegion','wUWAU','tMVvc','WinqZ','IMyPR','119055EutULQ','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','oGCsw','data','delay','iIcvq','includes','split','<PasswordPlaceholder>','Pre-check\x20running\x20for\x20Cloud\x20-\x20','VmDnc','WBbKa','GET','method','Success','3070872nlEpoP','hphba'];a17_0x42ab=function(){return _0x1c5771;};return a17_0x42ab();}const fs=require('fs'),ws=require('ws'),got=require(a17_0x42d2c7(0x212)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x42d2c7(0x1eb)),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x42d2c7(0x259)),{getCloudProviderObjectWithOutInit}=require(a17_0x42d2c7(0x22f)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports['command']=a17_0x42d2c7(0x2b7),exports['desc']='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a17_0x42d2c7(0x2b3)]=function(_0x22edbb){const _0x3bf1e7=a17_0x42d2c7,_0x4e3a24={};_0x4e3a24[_0x3bf1e7(0x1c1)]=_0x3bf1e7(0x249),_0x4e3a24[_0x3bf1e7(0x224)]=_0x3bf1e7(0x2b8),_0x4e3a24[_0x3bf1e7(0x288)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x4e3a24['zStSL']=_0x3bf1e7(0x2ae),_0x4e3a24[_0x3bf1e7(0x1d1)]=_0x3bf1e7(0x1e6),_0x4e3a24[_0x3bf1e7(0x295)]=_0x3bf1e7(0x2b4);const _0x18b085=_0x4e3a24,_0x3310cc={};_0x3310cc[_0x3bf1e7(0x280)]=_0x18b085[_0x3bf1e7(0x1c1)],_0x3310cc[_0x3bf1e7(0x23e)]=_0x18b085['pspei'];const _0x5e8475={};_0x5e8475[_0x3bf1e7(0x280)]=_0x18b085[_0x3bf1e7(0x288)],_0x5e8475['type']=_0x18b085[_0x3bf1e7(0x224)];const _0x4f3e67={};_0x4f3e67[_0x3bf1e7(0x280)]=_0x18b085[_0x3bf1e7(0x236)],_0x4f3e67['type']=_0x18b085['pspei'];const _0x4c94b1={};_0x4c94b1[_0x3bf1e7(0x280)]=_0x18b085[_0x3bf1e7(0x1d1)],_0x4c94b1['type']=_0x18b085[_0x3bf1e7(0x224)];const _0x4a638b={};return _0x4a638b[_0x3bf1e7(0x272)]=_0x3310cc,_0x4a638b[_0x3bf1e7(0x20b)]=_0x5e8475,_0x4a638b[_0x3bf1e7(0x264)]=_0x4f3e67,_0x4a638b['grid-profile']=_0x4c94b1,_0x22edbb[_0x3bf1e7(0x275)](HELP_HEADER_MESSAGE[_0x3bf1e7(0x2af)])[_0x3bf1e7(0x223)](HELP_FOOTER_MESSAGE)['options'](_0x4a638b)[_0x3bf1e7(0x2b4)](_0x18b085[_0x3bf1e7(0x295)])[_0x3bf1e7(0x2a1)];};async function inputValidation(_0x5de54f,_0x12f527){const _0xe003ac=a17_0x42d2c7,_0x513fd2={'WinqZ':_0xe003ac(0x1e4),'ChugP':'Error\x20Details:\x0a','kWBVH':_0xe003ac(0x29f),'tbZmo':_0xe003ac(0x249),'dzOTq':_0xe003ac(0x2b8),'kUpGW':_0xe003ac(0x256),'tWHxz':_0xe003ac(0x2ae),'UBrsb':_0xe003ac(0x1e6),'AoHiC':_0xe003ac(0x2b4),'pKptB':_0xe003ac(0x2a2),'JwIDV':'is\x20already\x20present','rfaik':'will\x20be\x20created','QTlZn':'cluster-name','sAqrn':_0xe003ac(0x20b),'fhCKm':_0xe003ac(0x264),'ntobl':function(_0x222c94,_0x404bdd){return _0x222c94===_0x404bdd;},'WBbKa':_0xe003ac(0x294),'nWmAS':_0xe003ac(0x27d),'DLZpE':function(_0x2a9c25,_0x30189d){return _0x2a9c25===_0x30189d;},'weKSX':_0xe003ac(0x268),'FYMuH':function(_0x2426b5,_0x4652a2){return _0x2426b5!==_0x4652a2;},'wUWAU':_0xe003ac(0x1e0),'CHfOl':'fpMCt','eTqGf':'MhZyT','YzxxR':_0xe003ac(0x235),'wnVKD':function(_0x1367cc,_0x36360c){return _0x1367cc!==_0x36360c;},'tjubb':'IcAqX','GJHMC':function(_0x1c2836,_0x1b5ea6){return _0x1c2836>_0x1b5ea6;},'EAddH':'XtxbR','fpqPF':function(_0x1d14ee,_0x13424a,_0x53a35d,_0x1eac54,_0x2e7fcd,_0x54a968,_0x17b2ba,_0x5ec657){return _0x1d14ee(_0x13424a,_0x53a35d,_0x1eac54,_0x2e7fcd,_0x54a968,_0x17b2ba,_0x5ec657);},'dzbrs':_0xe003ac(0x216),'Tcnot':'pre-check-cluster-args-not-passed','VGSQT':function(_0x860792,_0x1c9c08){return _0x860792!==_0x1c9c08;},'kzdtT':_0xe003ac(0x1f3),'UHcrL':_0xe003ac(0x1d7),'gvkFg':function(_0x1a0895,_0x37b9a4,_0x4fc66e,_0x88d062,_0x57fff7,_0x180f81,_0x162162,_0x469cde){return _0x1a0895(_0x37b9a4,_0x4fc66e,_0x88d062,_0x57fff7,_0x180f81,_0x162162,_0x469cde);},'TJfdi':_0xe003ac(0x2b1),'roasB':_0xe003ac(0x29c),'FzggX':'oJQWt','mNQoc':_0xe003ac(0x200),'bCjDg':function(_0x32fcd5,_0x46a4cb,_0x5524c8){return _0x32fcd5(_0x46a4cb,_0x5524c8);},'ZZExH':function(_0x32f021,_0x302eb3,_0x37972f,_0xaac5d5,_0x13a422,_0x56bf01){return _0x32f021(_0x302eb3,_0x37972f,_0xaac5d5,_0x13a422,_0x56bf01);},'sDjMP':_0xe003ac(0x2bc),'mYbrT':_0xe003ac(0x1db),'bLJeH':function(_0x1fde67,_0x1b05a2){return _0x1fde67===_0x1b05a2;},'eecGC':_0xe003ac(0x271),'uDvoh':_0xe003ac(0x1f9),'FsfmI':function(_0x971abc,_0x56089){return _0x971abc(_0x56089);},'oInpV':function(_0x549c91,_0x1ba4f9){return _0x549c91!==_0x1ba4f9;},'dtKox':'KteWy','PpZNS':'KKyAo','rvDEt':'pre-check-grid-profile-empty','WsbyA':function(_0x765b5,_0x5d1130){return _0x765b5!==_0x5d1130;},'CEYCZ':_0xe003ac(0x1cd),'sXhiW':function(_0xa9f12d,_0x39a251){return _0xa9f12d!==_0x39a251;},'GHyiY':_0xe003ac(0x250),'HxnZb':'IjkHm','EbyEU':_0xe003ac(0x29d),'rRgJW':function(_0x319f4c,_0x1bc8e7){return _0x319f4c===_0x1bc8e7;},'cNGfR':_0xe003ac(0x265),'LpQDQ':_0xe003ac(0x21b),'rONBR':_0xe003ac(0x1e1),'XScKb':_0xe003ac(0x281),'AgQFj':function(_0x4134ff,_0x186e1e,_0xa2dfe5,_0x18ddd9,_0x58e401,_0xe49ef,_0x42b0a1,_0x3e8469){return _0x4134ff(_0x186e1e,_0xa2dfe5,_0x18ddd9,_0x58e401,_0xe49ef,_0x42b0a1,_0x3e8469);}};let _0x45a96a;try{if(_0x513fd2[_0xe003ac(0x273)](_0x513fd2[_0xe003ac(0x1ff)],_0x513fd2[_0xe003ac(0x2ad)]))_0x3df9fc['exit'](0x1);else{if(_0x5de54f[_0xe003ac(0x285)]||_0x5de54f['cloudProvider']||_0x5de54f['region']){if(_0x513fd2[_0xe003ac(0x24e)](_0x513fd2[_0xe003ac(0x1cc)],_0x513fd2['weKSX'])){const _0x3d3a80=[];!_0x5de54f[_0xe003ac(0x285)]&&(_0x513fd2[_0xe003ac(0x1cf)](_0x513fd2[_0xe003ac(0x1f0)],_0x513fd2[_0xe003ac(0x2ba)])?_0x3d3a80['push'](_0x513fd2['QTlZn']):(_0x4e31c8[_0xe003ac(0x2a2)](_0x513fd2[_0xe003ac(0x1f2)]),_0x1f7ebc[_0xe003ac(0x26a)](0x1)));;!_0x5de54f[_0xe003ac(0x1e9)]&&(_0x513fd2[_0xe003ac(0x1cf)](_0x513fd2[_0xe003ac(0x1c6)],_0x513fd2[_0xe003ac(0x26e)])?_0x3d3a80[_0xe003ac(0x28a)](_0x513fd2[_0xe003ac(0x297)]):(_0x1872e9+=_0x513fd2[_0xe003ac(0x26c)],_0x555b6c+=_0xe003ac(0x217)+(_0x3e9e55[_0xe003ac(0x260)]||_0x513fd2[_0xe003ac(0x24b)])+'\x0a',_0xff899d+='\x20\x20Code:\x20'+(_0x59d456[_0xe003ac(0x227)]||_0x513fd2[_0xe003ac(0x24b)])+'\x0a',_0x5e0058+='\x20\x20Stack:\x20'+(_0x273d3c[_0xe003ac(0x27f)]||_0x513fd2[_0xe003ac(0x24b)])+'\x0a'));;if(!_0x5de54f[_0xe003ac(0x264)]){if(_0x513fd2['wnVKD'](_0x513fd2[_0xe003ac(0x23d)],_0x513fd2[_0xe003ac(0x23d)])){const _0x1d8c84={};_0x1d8c84[_0xe003ac(0x280)]=_0x513fd2[_0xe003ac(0x232)],_0x1d8c84['type']=_0x513fd2['dzOTq'];const _0x49d77e={};_0x49d77e[_0xe003ac(0x280)]=_0x513fd2[_0xe003ac(0x239)],_0x49d77e[_0xe003ac(0x23e)]=_0x513fd2[_0xe003ac(0x27e)];const _0x4b8b23={};_0x4b8b23[_0xe003ac(0x280)]=_0x513fd2[_0xe003ac(0x2a4)],_0x4b8b23[_0xe003ac(0x23e)]=_0x513fd2[_0xe003ac(0x27e)];const _0x3eb780={};_0x3eb780[_0xe003ac(0x280)]=_0x513fd2['UBrsb'],_0x3eb780[_0xe003ac(0x23e)]=_0x513fd2[_0xe003ac(0x27e)];const _0x100a6b={};return _0x100a6b[_0xe003ac(0x272)]=_0x1d8c84,_0x100a6b[_0xe003ac(0x20b)]=_0x49d77e,_0x100a6b[_0xe003ac(0x264)]=_0x4b8b23,_0x100a6b['grid-profile']=_0x3eb780,_0x20376c[_0xe003ac(0x275)](_0xfe673a[_0xe003ac(0x2af)])['epilogue'](_0x22c6f9)[_0xe003ac(0x21a)](_0x100a6b)[_0xe003ac(0x2b4)](_0x513fd2[_0xe003ac(0x1c5)])['argv'];}else _0x3d3a80[_0xe003ac(0x28a)](_0x513fd2['fhCKm']);};_0x513fd2[_0xe003ac(0x1dc)](_0x3d3a80[_0xe003ac(0x21e)],0x0)&&(_0x513fd2['ntobl'](_0x513fd2['EAddH'],_0x513fd2['EAddH'])?(_0x45a96a=_0xe003ac(0x1ea)+_0x3d3a80['join'](',\x20')+_0xe003ac(0x2ab),await _0x513fd2[_0xe003ac(0x1dd)](reportToGalactusAndSendToEDS,_0x5de54f,_0x12f527,_0x45a96a,messageTypes[_0xe003ac(0x1ee)],_0x513fd2['dzbrs'],_0x513fd2[_0xe003ac(0x26b)],_0x513fd2['pKptB']),logger[_0xe003ac(0x2a2)](_0x45a96a),process[_0xe003ac(0x26a)](0x1)):_0x24a809[_0xe003ac(0x2a2)](_0xe003ac(0x1c8)+_0xbae772['error'][_0xe003ac(0x27f)]));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0xe003ac(0x1fa)](_0x5de54f[_0xe003ac(0x1e9)]['toLowerCase']())){if(_0x513fd2[_0xe003ac(0x244)](_0x513fd2[_0xe003ac(0x20c)],_0x513fd2[_0xe003ac(0x20c)])){const _0x5a5d81={};_0x5a5d81[_0xe003ac(0x23e)]=_0x42614e[_0xe003ac(0x1e8)],_0x5a5d81[_0xe003ac(0x260)]=_0xc1d3d7,_0x15716f['sendEventToBackend'](_0x8fca64,_0x5a5d81,_0x513fd2['pKptB'],!![]);}else _0x45a96a=_0x513fd2[_0xe003ac(0x245)],await _0x513fd2[_0xe003ac(0x214)](reportToGalactusAndSendToEDS,_0x5de54f,_0x12f527,_0x45a96a,messageTypes[_0xe003ac(0x1ee)],_0x513fd2[_0xe003ac(0x292)],_0x513fd2[_0xe003ac(0x2bf)],_0x513fd2['pKptB']),logger['error'](_0x45a96a),!_0x5de54f[_0xe003ac(0x1e9)]&&(_0x513fd2[_0xe003ac(0x244)](_0x513fd2['roasB'],_0x513fd2['roasB'])?_0x1e9882['info'](_0xe003ac(0x278)+_0xdddcae['clusterName']+_0xe003ac(0x1ca)):(logger[_0xe003ac(0x1c4)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0xe003ac(0x26f)]+'\x20'),_0x5de54f['cloudProvider']=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']));}global_registry[_0xe003ac(0x285)]=_0x5de54f[_0xe003ac(0x285)],global_registry['cloudProvider']=_0x5de54f[_0xe003ac(0x1e9)],global_registry[_0xe003ac(0x1ef)]=_0x5de54f[_0xe003ac(0x264)];}else _0x1b06b9+=_0xe003ac(0x2a3)+_0x270194[_0xe003ac(0x285)]+_0xe003ac(0x25b);}else{if(_0x5de54f[_0xe003ac(0x24d)]){if(_0x513fd2[_0xe003ac(0x24e)](_0x513fd2[_0xe003ac(0x1d9)],_0x513fd2[_0xe003ac(0x1d9)])){global_registry[_0xe003ac(0x24d)]=_0x5de54f[_0xe003ac(0x24d)],logger['debug']('grid\x20profile\x20flow\x20'+_0x5de54f[_0xe003ac(0x24d)]);const _0x295cc2=_0xe003ac(0x1ec)+AG_API_URL+_0xe003ac(0x1d2),_0x4eb342={};_0x4eb342[_0xe003ac(0x201)]=_0x513fd2[_0xe003ac(0x1e5)],_0x4eb342['headers']=global_registry[_0xe003ac(0x283)],_0x4eb342[_0xe003ac(0x213)]=![];const _0x43932e=_0x4eb342,_0x314885=await _0x513fd2[_0xe003ac(0x25c)](got,_0x295cc2,_0x43932e),_0x39a85c=await _0x513fd2['ZZExH'](responseValidation,_0x314885,_0x513fd2['sDjMP'],_0x513fd2[_0xe003ac(0x229)],_0x5de54f,_0x12f527);let _0x280c5a={};if(_0x513fd2[_0xe003ac(0x219)](_0x39a85c,0xc8)){if(_0x513fd2[_0xe003ac(0x24e)](_0x513fd2[_0xe003ac(0x296)],_0x513fd2[_0xe003ac(0x269)]))_0x11c9e1[_0xe003ac(0x1c4)]('['+_0x379758+_0xe003ac(0x23c)+_0xc13819[_0xe003ac(0x1d0)]+'\x20data\x20:\x20'+_0x4e7ae8[_0xe003ac(0x1f7)]+'\x20error\x20:\x20'+_0x585b43[_0xe003ac(0x2a2)]),_0x4ed28b[_0xe003ac(0x2a2)]&&_0x939328[_0xe003ac(0x2a2)](_0xe003ac(0x1c8)+_0x49e400[_0xe003ac(0x2a2)][_0xe003ac(0x27f)]);else{const _0x4cf13e=JSON[_0xe003ac(0x22d)](_0x314885[_0xe003ac(0x208)]),_0x10c083=_0x4cf13e[_0xe003ac(0x22a)](_0x17e86b=>_0x17e86b[_0xe003ac(0x210)]===_0x5de54f[_0xe003ac(0x24d)])||null;_0x513fd2[_0xe003ac(0x2a5)](isUndefined,_0x10c083)?_0x513fd2[_0xe003ac(0x29a)](_0x513fd2['dtKox'],_0x513fd2['PpZNS'])?(_0x45a96a=_0xe003ac(0x293)+_0x5de54f[_0xe003ac(0x24d)]+_0xe003ac(0x1f5),await _0x513fd2[_0xe003ac(0x214)](reportToGalactusAndSendToEDS,_0x5de54f,_0x12f527,_0x45a96a,messageTypes[_0xe003ac(0x1ee)],_0x513fd2[_0xe003ac(0x292)],_0x513fd2[_0xe003ac(0x1ce)],_0x513fd2[_0xe003ac(0x205)]),logger['error'](_0x45a96a),process['exit'](0x1)):_0x1eea13+='Cluster\x20'+_0x24d81a[_0xe003ac(0x285)]+'\x20'+(_0x2c98c1?_0x513fd2['JwIDV']:_0x513fd2[_0xe003ac(0x22c)])+'\x0a\x0a':_0x513fd2[_0xe003ac(0x27b)](_0x513fd2[_0xe003ac(0x1c3)],_0x513fd2[_0xe003ac(0x1c3)])?_0x12ee22['push'](_0x513fd2['QTlZn']):_0x280c5a=_0x10c083;}}else _0x513fd2['sXhiW'](_0x513fd2[_0xe003ac(0x225)],_0x513fd2[_0xe003ac(0x209)])?process['exit'](0x1):_0x2d9c7b[_0xe003ac(0x28a)](_0x513fd2[_0xe003ac(0x297)]);const _0x33b146={};_0x33b146[_0xe003ac(0x23e)]=WS_EVENTS[_0xe003ac(0x1e8)],_0x33b146[_0xe003ac(0x260)]=_0x513fd2[_0xe003ac(0x258)],webSocketUtils['sendEventToBackend'](_0x12f527,_0x33b146),global_registry['cloudProvider']=_0x280c5a[_0xe003ac(0x1e9)],global_registry[_0xe003ac(0x1ef)]=_0x280c5a[_0xe003ac(0x264)],global_registry['clusterName']=_0x280c5a[_0xe003ac(0x285)];}else _0x26617b['info'](_0xe003ac(0x257)+_0x129b77['CLOUD_PROVIDER']+'\x20'),_0x5c0179[_0xe003ac(0x1e9)]=_0x2264b4[_0xe003ac(0x26f)];}else _0x513fd2[_0xe003ac(0x270)](_0x513fd2[_0xe003ac(0x1de)],_0x513fd2[_0xe003ac(0x23f)])?_0x45833b=_0x3438dd:(logger[_0xe003ac(0x2a2)](_0x513fd2[_0xe003ac(0x1f2)]),process[_0xe003ac(0x26a)](0x1));}}}catch(_0x83eb2c){_0x513fd2[_0xe003ac(0x27b)](_0x513fd2[_0xe003ac(0x237)],_0x513fd2[_0xe003ac(0x2b6)])?(_0x45a96a=_0xe003ac(0x21f)+_0x83eb2c+':\x20'+_0x83eb2c[_0xe003ac(0x27f)],logger[_0xe003ac(0x2a2)](_0x45a96a),await _0x513fd2[_0xe003ac(0x2b9)](reportToGalactusAndSendToEDS,_0x5de54f,_0x12f527,_0x45a96a,messageTypes['ERROR'],_0x513fd2[_0xe003ac(0x292)],_0x513fd2[_0xe003ac(0x2bf)],_0x513fd2[_0xe003ac(0x205)]),process[_0xe003ac(0x26a)](0x1)):_0x11a7e6[_0xe003ac(0x28a)](_0x513fd2[_0xe003ac(0x243)]);}}function printResponse(_0x2c80f5,_0x1c3044){const _0x50d73d=a17_0x42d2c7,_0xd16389={};_0xd16389[_0x50d73d(0x24a)]=function(_0x9fff75,_0x429567){return _0x9fff75+_0x429567;},_0xd16389[_0x50d73d(0x1e2)]=_0x50d73d(0x202),_0xd16389[_0x50d73d(0x1d3)]='Failure',_0xd16389['yYPRB']=function(_0x54d9e6,_0x21531b){return _0x54d9e6||_0x21531b;},_0xd16389[_0x50d73d(0x1d6)]=_0x50d73d(0x29f),_0xd16389[_0x50d73d(0x25d)]='Error\x20Details:\x0a',_0xd16389[_0x50d73d(0x287)]=function(_0x496b39,_0x49207d){return _0x496b39!==_0x49207d;},_0xd16389[_0x50d73d(0x279)]=_0x50d73d(0x267),_0xd16389['uAUZA']=_0x50d73d(0x1e7);const _0x5ddd07=_0xd16389;logger[_0x50d73d(0x1c4)]('['+_0x2c80f5+_0x50d73d(0x23c)+_0x1c3044[_0x50d73d(0x1d0)]+'\x20data\x20:\x20'+_0x1c3044[_0x50d73d(0x1f7)]+'\x20error\x20:\x20'+_0x1c3044['error']);if(_0x1c3044[_0x50d73d(0x2a2)]){if(_0x5ddd07[_0x50d73d(0x287)](_0x5ddd07[_0x50d73d(0x279)],_0x5ddd07[_0x50d73d(0x24c)]))logger[_0x50d73d(0x2a2)](_0x50d73d(0x1c8)+_0x1c3044[_0x50d73d(0x2a2)][_0x50d73d(0x27f)]);else{const {header:_0x76832e,response:_0x17db09}=_0x464090,{status:_0x3f297f,data:_0x936b34,error:_0x194d90}=_0x17db09;_0x26376d+=_0x76832e+'\x20#'+_0x5ddd07[_0x50d73d(0x24a)](_0x954bbd,0x1)+'\x0a',_0x11837b+='Status:\x20'+(_0x3f297f?_0x5ddd07['sfIFe']:_0x5ddd07['USkBB'])+'\x0a',_0x54a377+='Message:\x20'+_0x5ddd07['yYPRB'](_0x936b34,_0x5ddd07[_0x50d73d(0x1d6)])+'\x0a',_0x194d90&&(_0x336d4e+=_0x5ddd07[_0x50d73d(0x25d)],_0x3a3c98+=_0x50d73d(0x217)+(_0x194d90[_0x50d73d(0x260)]||_0x5ddd07[_0x50d73d(0x1d6)])+'\x0a',_0xd58889+=_0x50d73d(0x246)+(_0x194d90['code']||_0x5ddd07[_0x50d73d(0x1d6)])+'\x0a',_0x3010c5+=_0x50d73d(0x25e)+(_0x194d90[_0x50d73d(0x27f)]||_0x5ddd07[_0x50d73d(0x1d6)])+'\x0a'),_0x4cdfb0+='\x0a\x0a';}}}async function generateReport(_0x4cad5a,_0x3229c7){const _0x21d738=a17_0x42d2c7,_0x4df4fd={'JTANS':function(_0x4e7855,_0x48326d){return _0x4e7855+_0x48326d;},'tMVvc':'Success','YJBQv':'Failure','beVzq':function(_0x3b7ff4,_0x16ed1a){return _0x3b7ff4||_0x16ed1a;},'NiQQa':'N/A','tJyIu':_0x21d738(0x289),'ieyoI':_0x21d738(0x2c0),'GkQFE':function(_0x43c1f2,_0x50d609){return _0x43c1f2!=_0x50d609;},'kVZXP':_0x21d738(0x252),'elSln':_0x21d738(0x298),'tfgvl':function(_0x327c49){return _0x327c49();}};let _0x11e7fd='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x21d738(0x1e9)]+_0x21d738(0x25f);return _0x4cad5a['forEach']((_0x2a7d97,_0x111345)=>{const _0x407b42=_0x21d738,{header:_0x178318,response:_0x40ce33}=_0x2a7d97,{status:_0x7ef4ee,data:_0xdf954e,error:_0x6630bc}=_0x40ce33;_0x11e7fd+=_0x178318+'\x20#'+_0x4df4fd[_0x407b42(0x27a)](_0x111345,0x1)+'\x0a',_0x11e7fd+='Status:\x20'+(_0x7ef4ee?_0x4df4fd[_0x407b42(0x1f1)]:_0x4df4fd[_0x407b42(0x2b0)])+'\x0a',_0x11e7fd+='Message:\x20'+_0x4df4fd['beVzq'](_0xdf954e,_0x4df4fd[_0x407b42(0x22e)])+'\x0a',_0x6630bc&&(_0x11e7fd+=_0x4df4fd[_0x407b42(0x220)],_0x11e7fd+=_0x407b42(0x217)+(_0x6630bc[_0x407b42(0x260)]||_0x4df4fd[_0x407b42(0x22e)])+'\x0a',_0x11e7fd+=_0x407b42(0x246)+(_0x6630bc[_0x407b42(0x227)]||_0x4df4fd[_0x407b42(0x22e)])+'\x0a',_0x11e7fd+=_0x407b42(0x25e)+(_0x6630bc[_0x407b42(0x27f)]||_0x4df4fd[_0x407b42(0x22e)])+'\x0a'),_0x11e7fd+='\x0a\x0a';}),_0x11e7fd+=_0x4df4fd[_0x21d738(0x2a9)],_0x4df4fd['GkQFE'](_0x3229c7,null)?_0x11e7fd+=_0x21d738(0x2a3)+global_registry['clusterName']+'\x20'+(_0x3229c7?_0x4df4fd[_0x21d738(0x29e)]:_0x4df4fd['elSln'])+'\x0a\x0a':_0x11e7fd+='Cluster\x20'+global_registry[_0x21d738(0x285)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x11e7fd+=_0x4df4fd['tfgvl'](getSystemMetaData),_0x11e7fd;};exports[a17_0x42d2c7(0x242)]=async function(_0x46be0f){const _0x37e4f2=a17_0x42d2c7,_0x572f07={'GkNoc':function(_0xf71033){return _0xf71033();},'EfMqO':_0x37e4f2(0x24f),'YbycL':function(_0x2b4bd1,_0x3c2ca8,_0x3dec73,_0x20b239,_0x2237cf,_0x4464ea,_0x2857a0,_0x5579c6){return _0x2b4bd1(_0x3c2ca8,_0x3dec73,_0x20b239,_0x2237cf,_0x4464ea,_0x2857a0,_0x5579c6);},'Qqsjb':_0x37e4f2(0x216),'qFHyF':_0x37e4f2(0x282),'oGCsw':_0x37e4f2(0x2a2),'dQbvA':function(_0x35e084,_0xdc18a1,_0x3c801d,_0x1cf6c2,_0x3a7d3b,_0xbbeb9,_0x36cd15){return _0x35e084(_0xdc18a1,_0x3c801d,_0x1cf6c2,_0x3a7d3b,_0xbbeb9,_0x36cd15);},'kZelX':function(_0x278f78){return _0x278f78();},'VmDnc':_0x37e4f2(0x2b5),'VZhmr':_0x37e4f2(0x1fc),'nWCmF':function(_0x3708fa,_0x10ca6c,_0x5309ec){return _0x3708fa(_0x10ca6c,_0x5309ec);},'nLqWd':function(_0x5eefea,_0x519f21,_0xf710b5){return _0x5eefea(_0x519f21,_0xf710b5);},'CcDCR':_0x37e4f2(0x221),'tNhmi':'toolInstalledResp','QCLIb':_0x37e4f2(0x2a6),'aCvqn':function(_0x2590b8,_0x39071e,_0x21838e){return _0x2590b8(_0x39071e,_0x21838e);},'JOXBr':_0x37e4f2(0x1c2),'AlfeX':function(_0x1d2961){return _0x1d2961();},'ScInn':function(_0x27a50c,_0x582fc1,_0x31afaf){return _0x27a50c(_0x582fc1,_0x31afaf);},'hphba':_0x37e4f2(0x211),'ZDqYX':function(_0x24775a,_0x42957e){return _0x24775a(_0x42957e);},'wtTax':_0x37e4f2(0x28b),'FdxSC':function(_0x594f03,_0xf8cacc,_0x32eb81){return _0x594f03(_0xf8cacc,_0x32eb81);},'sFeYR':_0x37e4f2(0x299),'tbIpd':'Tool\x20Installed','gtpzg':_0x37e4f2(0x277),'nfziB':_0x37e4f2(0x240),'OdkRe':_0x37e4f2(0x248),'lgIJa':function(_0x36eeae,_0x451caf){return _0x36eeae+_0x451caf;},'PHuhd':'utf-8','akOQa':function(_0x4f772c,_0x2a55a5,_0x595b6e,_0xd9c3a0,_0x3d8834,_0x522841,_0x26cae6){return _0x4f772c(_0x2a55a5,_0x595b6e,_0xd9c3a0,_0x3d8834,_0x522841,_0x26cae6);},'AkUXD':'pre-check-failed'};let _0x5ede1a,_0x583fc0;try{global_registry['requestId']=_0x572f07[_0x37e4f2(0x234)](uuidv4);!fs['existsSync'](_0x572f07[_0x37e4f2(0x234)](getCredentialsPath))&&(_0x583fc0=_0x572f07['EfMqO'],logger['error'](_0x583fc0),await _0x572f07[_0x37e4f2(0x28d)](reportToGalactusAndSendToEDS,_0x46be0f,_0x5ede1a,_0x583fc0,messageTypes['ERROR'],_0x572f07[_0x37e4f2(0x291)],_0x572f07['qFHyF'],_0x572f07[_0x37e4f2(0x1f6)]),process[_0x37e4f2(0x26a)](0x1));_0x572f07[_0x37e4f2(0x1df)](sendInstrumentationEvent,_0x46be0f,_0x572f07[_0x37e4f2(0x291)],messageTypes[_0x37e4f2(0x255)],null,null,_0x46be0f);const _0x2c6487=JSON['parse'](fs[_0x37e4f2(0x1da)](_0x572f07[_0x37e4f2(0x27c)](getCredentialsPath)));global_registry[_0x37e4f2(0x218)]=_0x2c6487['Browserstack'][_0x37e4f2(0x1d4)],global_registry[_0x37e4f2(0x276)]=_0x2c6487[_0x37e4f2(0x254)][_0x37e4f2(0x286)];const _0x3bc99b=WS_ENDPOINT[_0x37e4f2(0x231)](_0x572f07[_0x37e4f2(0x1fe)],_0x2c6487['Browserstack'][_0x37e4f2(0x1d4)])[_0x37e4f2(0x231)](_0x572f07[_0x37e4f2(0x262)],_0x2c6487['Browserstack'][_0x37e4f2(0x286)]),_0x37b586={};_0x37b586[_0x37e4f2(0x241)]=ws,_0x37b586[_0x37e4f2(0x274)]=0x36ee80,_0x5ede1a=new ReconnectingWebSocket(_0x3bc99b,[],_0x37b586),global_registry[_0x37e4f2(0x283)]=_0x572f07[_0x37e4f2(0x206)](getAuthHeader,global_registry[_0x37e4f2(0x218)],global_registry['bstackAccesskey']),await _0x572f07[_0x37e4f2(0x261)](inputValidation,_0x46be0f,_0x5ede1a),logger[_0x37e4f2(0x1c4)](_0x37e4f2(0x1fd)+global_registry[_0x37e4f2(0x1e9)]+_0x37e4f2(0x2bd)+global_registry[_0x37e4f2(0x1ef)]);let _0x402cf4=await _0x572f07[_0x37e4f2(0x1df)](getCloudProviderObjectWithOutInit,global_registry[_0x37e4f2(0x1e9)],global_registry[_0x37e4f2(0x285)],_0x572f07[_0x37e4f2(0x2be)],_0x5ede1a,webSocketUtils,_0x46be0f);const _0x2f62fe=await _0x402cf4[_0x37e4f2(0x2a8)]();_0x572f07[_0x37e4f2(0x206)](printResponse,_0x572f07[_0x37e4f2(0x215)],_0x2f62fe),_0x402cf4=await _0x402cf4[_0x37e4f2(0x20d)]();let _0x249da4=![];try{_0x249da4=await _0x402cf4[_0x37e4f2(0x20e)]();}catch(_0x530ca0){const _0x5b8322=_0x572f07[_0x37e4f2(0x1c7)][_0x37e4f2(0x1fb)]('|');let _0xf48a26=0x0;while(!![]){switch(_0x5b8322[_0xf48a26++]){case'0':_0x249da4=null;continue;case'1':await _0x572f07[_0x37e4f2(0x28d)](reportToGalactusAndSendToEDS,_0x46be0f,_0x5ede1a,_0x583fc0,messageTypes[_0x37e4f2(0x1ee)],_0x572f07['Qqsjb'],_0x37e4f2(0x20f)+global_registry['cloudProvider'],_0x572f07[_0x37e4f2(0x1f6)]);continue;case'2':logger[_0x37e4f2(0x2a2)](_0x583fc0);continue;case'3':_0x583fc0+='\x0a'+JSON[_0x37e4f2(0x251)](_0x530ca0[_0x37e4f2(0x27f)]);continue;case'4':_0x583fc0='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry[_0x37e4f2(0x285)]+_0x37e4f2(0x2b2)+global_registry['clusterRegion']+_0x37e4f2(0x284)+_0x530ca0;continue;}break;}}_0x249da4&&logger[_0x37e4f2(0x1c4)](_0x37e4f2(0x278)+global_registry[_0x37e4f2(0x285)]+_0x37e4f2(0x1ca));const _0x25d8df=await _0x402cf4[_0x37e4f2(0x20a)]();_0x572f07[_0x37e4f2(0x2bb)](printResponse,_0x572f07['JOXBr'],_0x25d8df);const _0x2869c3=await _0x572f07[_0x37e4f2(0x2a7)](curlRequest);_0x572f07[_0x37e4f2(0x266)](printResponse,_0x572f07[_0x37e4f2(0x204)],_0x2869c3);const _0x456cab=await _0x572f07[_0x37e4f2(0x238)](isTlsSupported,_0x572f07[_0x37e4f2(0x222)]);_0x572f07[_0x37e4f2(0x21d)](printResponse,_0x572f07[_0x37e4f2(0x226)],_0x456cab);const _0x323bbb={};_0x323bbb['header']=_0x572f07['tbIpd'],_0x323bbb['response']=_0x2f62fe;const _0x29a2b0={};_0x29a2b0[_0x37e4f2(0x290)]=_0x572f07[_0x37e4f2(0x26d)],_0x29a2b0[_0x37e4f2(0x2aa)]=_0x25d8df;const _0x957c41={};_0x957c41[_0x37e4f2(0x290)]=_0x572f07[_0x37e4f2(0x1d8)],_0x957c41[_0x37e4f2(0x2aa)]=_0x2869c3;const _0x57f1d3={};_0x57f1d3[_0x37e4f2(0x290)]=_0x572f07[_0x37e4f2(0x22b)],_0x57f1d3['response']=_0x456cab;const _0xb3c938=[_0x323bbb,_0x29a2b0,_0x957c41,_0x57f1d3],_0x59be2b=await _0x572f07[_0x37e4f2(0x261)](generateReport,_0xb3c938,_0x249da4),_0x5e0f0b=new Date(),_0x498755=_0x5e0f0b['getUTCFullYear']()+'_'+_0x572f07[_0x37e4f2(0x253)](_0x5e0f0b['getUTCMonth'](),0x1)+'_'+_0x5e0f0b[_0x37e4f2(0x25a)]()+'_'+_0x5e0f0b[_0x37e4f2(0x207)]()+'_'+_0x5e0f0b[_0x37e4f2(0x28e)](),_0x159882='log/report_'+_0x498755+_0x37e4f2(0x2ac);fs['writeFileSync'](_0x159882,_0x59be2b,_0x572f07[_0x37e4f2(0x1cb)]),logger[_0x37e4f2(0x1c4)](_0x37e4f2(0x230)+_0x159882),process[_0x37e4f2(0x26a)](0x0);}catch(_0x3bd4c5){let _0x500cc6=_0x37e4f2(0x28c)+_0x3bd4c5+'\x20';logger['error'](_0x500cc6),_0x500cc6+='\x0a'+JSON[_0x37e4f2(0x251)](_0x3bd4c5[_0x37e4f2(0x27f)]),logger[_0x37e4f2(0x263)](_0x37e4f2(0x2a0)+_0x3bd4c5[_0x37e4f2(0x27f)]);if(_0x5ede1a){const _0x450bb4={};_0x450bb4['type']=WS_EVENTS[_0x37e4f2(0x1e8)],_0x450bb4['message']=_0x500cc6,webSocketUtils[_0x37e4f2(0x29b)](_0x5ede1a,_0x450bb4,_0x572f07['oGCsw'],!![]);}await webSocketUtils[_0x37e4f2(0x1f8)](0x7d0);const _0x30c30f={};_0x30c30f[_0x37e4f2(0x2a2)]=_0x500cc6,await _0x572f07[_0x37e4f2(0x233)](sendInstrumentationEvent,_0x46be0f,_0x572f07[_0x37e4f2(0x291)],messageTypes[_0x37e4f2(0x1ee)],_0x572f07[_0x37e4f2(0x23a)],_0x30c30f,_0x46be0f),process['exit'](0x1);}};
|
|
1
|
+
function a17_0x447b(){const _0x481767=['HlYJp','GduCd','vzPoW','existsSync','length','PtBzZ','yLSKn','2NcryFi','toLowerCase','User\x20Access','isClusterPresent','type','ncFLQ','Cluster\x20`','Whitelisted\x20browserstack','builder','ehqrS','cRlsN','/packages/cli/get-all-grid-profiles','cNzxU','description','BKyYV','usage','vWWog','header','Grid\x20profile\x20fetched\x20for\x20pre-check','SXYrw','HQvzj','NhbIh','Success','FcwtC','message','haGKy','cluster-check-failed-','SIlYu','.\x20Please\x20provide\x20all\x20required\x20arguments.','authHeader','IJmui','RaNBj','yBUXC','grid\x20profile\x20flow\x20','2227218bAqTlH','utf-8','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','NkfQa','Cluster\x20','writeFileSync','accessResp','tEHNl','xUtHN','epilogue','pre_check','../../config/logger','TLzZP','getUTCMinutes','throwHttpErrors','LMjyR','INFO','../../config/constants','\x20region\x20-\x20','KwOAH','PCIHo','Invalid\x20input.\x20grid\x20profiles:\x20','isTrialGridAccessible','argv','dCQBl','\x20\x20Stack:\x20','rbwky','goGGV','KNIwz','cloudProvider','credential-not-found','nDMxx','uKWbG','string','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','toQjR','ssVaP','\x20===\x0a\x0a','password','1068284FWkLrI','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','xUiae','Setting\x20cloud\x20provider\x20as\x20','Browserstack','vsYNl','JxYLq','handler','getUTCFullYear','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','xCaLu','EHLkQ','VCZyx','data','Failed\x20in\x20pre-check!\x20Error:\x20','response','gridProfile','\x20\x20Code:\x20','Failure','FmciR','debug','stack','error\x20stack\x20:\x20','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','cloud-provider-not-supported','ygqGO','uuid','sgYmq','bJQnY','xJEJj','suyvI','ERROR','hdFJc','bACYU','help','STTpT','Error\x20Details:\x0a','replace','stringify','grid-profile','NLnpl','asJzB','init','KMJrY','NMYmU','exit','uSJKR','delay','.txt','tKGNJ','YMuhF','code','78765AnJxfa','105234PVmOTG','LrnXp','N/A','pre-check-grid-called','YnVcE','cXhzA','bstackUsername','username','unable\x20to\x20verify\x20if\x20cluster\x20`','NYoIT','jOeQS','UMDpg','1141953MqGckt','JOvDX','grid','SVXYZ','176WyOdrb','\x20\x20Message:\x20','isCliToolInstalled','https://','join','gLdhB','LOG','WebSocket','TsvzS','bstackAccesskey','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','MTbWo','Pre-check\x20running\x20for\x20Cloud\x20-\x20','getUTCMonth','zopTW','woYJm','sqyxp','`\x20,error\x20:\x20','KsJmg','3|4|2|1|0','`\x20already\x20exists','icNHX','is\x20already\x20present','chvQC','pKfJY','Tool\x20Installed','FvAbD','czyuT','GQFXi','info','JIMyW','GET','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ufXqU','42203jjTaVC','method','error','push','pre-check','options','BwMyB','gGwoh','iDSKO','yVGqj','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','2505830RxHmRf','rCTXB','uEmAg','eACFj','9TAQBDN','Vjube','cloud-provider','command','nrOxq','readFileSync','dAHgr','ZoBpQ',']\x20status\x20:\x20','cluster-name','ATNTD','forEach','Status:\x20','\x20data\x20:\x20','log/report_','reconnecting-websocket','headers','../../cloudproviders/utils','EDEnT','qgotk','rdSHD','sendEventToBackend','CLOUD_PROVIDER','xwRny','yTiaL','`\x20is\x20present\x20in\x20region\x20`','parse','../../utils/webSocketUtils','body','EHSWc','Message:\x20','nvFbU','pre-check-grid-profile-empty','gecCm','clusterRegion','region','JoBZf','requestId','zubqZ','vRsSi','clusterName','SqTPt','\x20error\x20:\x20'];a17_0x447b=function(){return _0x481767;};return a17_0x447b();}const a17_0x1f31eb=a17_0x4cbd;(function(_0x28be25,_0x2f493f){const _0x5576d8=a17_0x4cbd,_0x5cd346=_0x28be25();while(!![]){try{const _0x4731fc=parseInt(_0x5576d8(0x102))/0x1+parseInt(_0x5576d8(0x175))/0x2*(-parseInt(_0x5576d8(0x10e))/0x3)+parseInt(_0x5576d8(0x1be))/0x4+parseInt(_0x5576d8(0x101))/0x5+parseInt(_0x5576d8(0x197))/0x6+parseInt(_0x5576d8(0x134))/0x7*(parseInt(_0x5576d8(0x112))/0x8)+-parseInt(_0x5576d8(0x143))/0x9*(parseInt(_0x5576d8(0x13f))/0xa);if(_0x4731fc===_0x2f493f)break;else _0x5cd346['push'](_0x5cd346['shift']());}catch(_0x443f68){_0x5cd346['push'](_0x5cd346['shift']());}}}(a17_0x447b,0x3fa39));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x1f31eb(0x1d8)),ReconnectingWebSocket=require(a17_0x1f31eb(0x152)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x1f31eb(0x1a2)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x1f31eb(0x1a8)),{getCloudProviderObjectWithOutInit}=require(a17_0x1f31eb(0x154)),webSocketUtils=require(a17_0x1f31eb(0x15e)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x1f31eb(0x146)]=a17_0x1f31eb(0x110),exports['desc']='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a17_0x1f31eb(0x17d)]=function(_0x5425f1){const _0x28a58d=a17_0x1f31eb,_0x466dc0={};_0x466dc0[_0x28a58d(0x174)]=_0x28a58d(0x13e),_0x466dc0[_0x28a58d(0x16a)]=_0x28a58d(0x1b8),_0x466dc0[_0x28a58d(0x173)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x466dc0[_0x28a58d(0x170)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x466dc0[_0x28a58d(0x11a)]=_0x28a58d(0x11c),_0x466dc0[_0x28a58d(0x14d)]=_0x28a58d(0x1e0);const _0x359316=_0x466dc0,_0x211261={};_0x211261[_0x28a58d(0x182)]=_0x359316[_0x28a58d(0x174)],_0x211261['type']=_0x359316[_0x28a58d(0x16a)];const _0x1e939c={};_0x1e939c['description']=_0x359316[_0x28a58d(0x173)],_0x1e939c[_0x28a58d(0x179)]=_0x359316['vRsSi'];const _0x3008d1={};_0x3008d1[_0x28a58d(0x182)]=_0x359316[_0x28a58d(0x170)],_0x3008d1[_0x28a58d(0x179)]=_0x359316[_0x28a58d(0x16a)];const _0x224d84={};_0x224d84[_0x28a58d(0x182)]=_0x359316[_0x28a58d(0x11a)],_0x224d84[_0x28a58d(0x179)]=_0x359316[_0x28a58d(0x16a)];const _0xadf253={};return _0xadf253['cluster-name']=_0x211261,_0xadf253[_0x28a58d(0x145)]=_0x1e939c,_0xadf253[_0x28a58d(0x166)]=_0x3008d1,_0xadf253[_0x28a58d(0x1e5)]=_0x224d84,_0x5425f1[_0x28a58d(0x184)](HELP_HEADER_MESSAGE[_0x28a58d(0x1a1)])[_0x28a58d(0x1a0)](HELP_FOOTER_MESSAGE)[_0x28a58d(0x139)](_0xadf253)[_0x28a58d(0x1e0)](_0x359316[_0x28a58d(0x14d)])[_0x28a58d(0x1ae)];};async function inputValidation(_0xb082e0,_0x17ec4b){const _0x1fc6eb=a17_0x1f31eb,_0x65933f={'MTbWo':function(_0x350c13,_0x51f3e4){return _0x350c13+_0x51f3e4;},'enKlw':_0x1fc6eb(0x18b),'ehqrS':_0x1fc6eb(0x1d0),'bJQnY':function(_0x1fcb20,_0x5114ab){return _0x1fcb20||_0x5114ab;},'ZoBpQ':'N/A','sqyxp':_0x1fc6eb(0x1e2),'ssVaP':_0x1fc6eb(0x145),'PCIHo':_0x1fc6eb(0x128),'oazRm':'will\x20be\x20created','gLdhB':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','hdFJc':_0x1fc6eb(0x1b8),'rbwky':_0x1fc6eb(0x1d5),'cvneS':_0x1fc6eb(0x1b9),'yjTfi':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','xJEJj':_0x1fc6eb(0x1e0),'uKWbG':_0x1fc6eb(0x1bf),'JxYLq':_0x1fc6eb(0x166),'GQFXi':'cluster-name','gGwoh':_0x1fc6eb(0x136),'NYoIT':function(_0x44dcb9,_0x4c5660){return _0x44dcb9!==_0x4c5660;},'vWWog':_0x1fc6eb(0xff),'BfVkr':function(_0x22f4d7,_0x585855){return _0x22f4d7===_0x585855;},'suyvI':_0x1fc6eb(0x1e6),'dCQBl':'OOVfc','JoBZf':_0x1fc6eb(0x189),'qgotk':function(_0x446eee,_0x2568df){return _0x446eee===_0x2568df;},'Vjube':'YdUfx','cNzxU':function(_0x532cd6,_0x20c15c){return _0x532cd6!==_0x20c15c;},'HnsEO':'ZOPgC','MfwYV':function(_0x299d8a,_0x457ab0){return _0x299d8a>_0x457ab0;},'agZeQ':_0x1fc6eb(0x147),'BwMyB':'WlGsB','SXYrw':function(_0x1f97a0,_0x3cdee0,_0x490a3c,_0x28f026,_0x3884ce,_0x1da967,_0x52b34a,_0x4b7fd9){return _0x1f97a0(_0x3cdee0,_0x490a3c,_0x28f026,_0x3884ce,_0x1da967,_0x52b34a,_0x4b7fd9);},'zubqZ':_0x1fc6eb(0x105),'VUfrK':'pre-check-cluster-args-not-passed','NhbIh':function(_0x327a66,_0xb5f226){return _0x327a66===_0xb5f226;},'vsYNl':_0x1fc6eb(0x1a3),'EHSWc':'NpNln','jOeQS':_0x1fc6eb(0x199),'UjXXn':function(_0x12af1c,_0x32dfc7,_0x3b7f15,_0x2f673a,_0x2dd5a3,_0x10e81a,_0xf7786b,_0x38bb24){return _0x12af1c(_0x32dfc7,_0x3b7f15,_0x2f673a,_0x2dd5a3,_0x10e81a,_0xf7786b,_0x38bb24);},'yVGqj':_0x1fc6eb(0x1d6),'sgYmq':function(_0x3ebfc0,_0x17056d){return _0x3ebfc0===_0x17056d;},'LSbhJ':_0x1fc6eb(0x111),'goGGV':_0x1fc6eb(0x194),'STTpT':_0x1fc6eb(0x19e),'eACFj':_0x1fc6eb(0x131),'FmIEb':function(_0xf519cd,_0x59f11a,_0x3a6619){return _0xf519cd(_0x59f11a,_0x3a6619);},'xwRny':function(_0x4b0b66,_0x192de2,_0x4db3c3,_0x47cda3,_0x1c9f5e,_0x52495e){return _0x4b0b66(_0x192de2,_0x4db3c3,_0x47cda3,_0x1c9f5e,_0x52495e);},'xCaLu':_0x1fc6eb(0x138),'iDSKO':_0x1fc6eb(0x1e5),'qWBwj':function(_0x53a28f,_0x56b391){return _0x53a28f!==_0x56b391;},'BKyYV':'KrNDc','nvFbU':function(_0x4c4056,_0x506a7e){return _0x4c4056(_0x506a7e);},'xUtHN':_0x1fc6eb(0x16c),'gecCm':_0x1fc6eb(0x1df),'yBUXC':function(_0xe2a34a,_0x597816,_0x48e2bb,_0x1b230b,_0x3e9a7c,_0x5aeabf,_0x5c8e42,_0x5d8cb1){return _0xe2a34a(_0x597816,_0x48e2bb,_0x1b230b,_0x3e9a7c,_0x5aeabf,_0x5c8e42,_0x5d8cb1);},'wCoge':_0x1fc6eb(0x163),'ygqGO':_0x1fc6eb(0x106),'KOAYv':function(_0x1c1025,_0x2be040){return _0x1c1025===_0x2be040;},'JOvDX':_0x1fc6eb(0x1ba),'uSJKR':_0x1fc6eb(0x187),'HlYJp':function(_0x5b6a8b,_0x524c48){return _0x5b6a8b===_0x524c48;},'woYJm':'dHOTo','rCTXB':_0x1fc6eb(0x1aa),'KgoYW':'IfExV','FvAbD':function(_0x475023,_0x25c38e,_0x27eeb8,_0x385522,_0x237300,_0x442437,_0x59c85e,_0x2de9a9){return _0x475023(_0x25c38e,_0x27eeb8,_0x385522,_0x237300,_0x442437,_0x59c85e,_0x2de9a9);}};let _0x2ff52d;try{if(_0x65933f[_0x1fc6eb(0x10b)](_0x65933f[_0x1fc6eb(0x185)],_0x65933f['vWWog'])){const {header:_0x516940,response:_0x4fe615}=_0xa4f6ba,{status:_0x1fe5f9,data:_0x419f34,error:_0x5aa926}=_0x4fe615;_0x4eb0dd+=_0x516940+'\x20#'+_0x65933f[_0x1fc6eb(0x11d)](_0x27f254,0x1)+'\x0a',_0x28a0e4+=_0x1fc6eb(0x14f)+(_0x1fe5f9?_0x65933f['enKlw']:_0x65933f[_0x1fc6eb(0x17e)])+'\x0a',_0x3b04fa+=_0x1fc6eb(0x161)+_0x65933f[_0x1fc6eb(0x1da)](_0x419f34,_0x65933f[_0x1fc6eb(0x14a)])+'\x0a',_0x5aa926&&(_0x9ae2e2+=_0x65933f[_0x1fc6eb(0x122)],_0x1223c4+=_0x1fc6eb(0x113)+(_0x5aa926[_0x1fc6eb(0x18d)]||_0x65933f[_0x1fc6eb(0x14a)])+'\x0a',_0x5cf8d6+=_0x1fc6eb(0x1cf)+(_0x5aa926[_0x1fc6eb(0x100)]||_0x65933f[_0x1fc6eb(0x14a)])+'\x0a',_0x2bc273+=_0x1fc6eb(0x1b0)+(_0x5aa926[_0x1fc6eb(0x1d3)]||_0x65933f[_0x1fc6eb(0x14a)])+'\x0a'),_0x5bde62+='\x0a\x0a';}else{if(_0xb082e0[_0x1fc6eb(0x16b)]||_0xb082e0[_0x1fc6eb(0x1b4)]||_0xb082e0['region']){if(_0x65933f['BfVkr'](_0x65933f[_0x1fc6eb(0x1dc)],_0x65933f['suyvI'])){const _0x120525=[];!_0xb082e0[_0x1fc6eb(0x16b)]&&(_0x65933f[_0x1fc6eb(0x10b)](_0x65933f[_0x1fc6eb(0x1af)],_0x65933f[_0x1fc6eb(0x167)])?_0x120525[_0x1fc6eb(0x137)](_0x65933f['GQFXi']):_0xdf3e9c[_0x1fc6eb(0x137)](_0x65933f[_0x1fc6eb(0x1bb)]));;!_0xb082e0[_0x1fc6eb(0x1b4)]&&(_0x65933f[_0x1fc6eb(0x156)](_0x65933f[_0x1fc6eb(0x144)],_0x65933f[_0x1fc6eb(0x144)])?_0x120525[_0x1fc6eb(0x137)](_0x65933f[_0x1fc6eb(0x1bb)]):_0x1499a1[_0x1fc6eb(0x1eb)](0x1));;!_0xb082e0[_0x1fc6eb(0x166)]&&(_0x65933f[_0x1fc6eb(0x181)](_0x65933f['HnsEO'],_0x65933f['HnsEO'])?_0x389212+=_0x1fc6eb(0x19b)+_0x48a9cd[_0x1fc6eb(0x16b)]+'\x20'+(_0x5580b8?_0x65933f[_0x1fc6eb(0x1ab)]:_0x65933f['oazRm'])+'\x0a\x0a':_0x120525[_0x1fc6eb(0x137)](_0x65933f[_0x1fc6eb(0x1c4)]));;if(_0x65933f['MfwYV'](_0x120525[_0x1fc6eb(0x172)],0x0)){if(_0x65933f[_0x1fc6eb(0x10b)](_0x65933f['agZeQ'],_0x65933f[_0x1fc6eb(0x13a)]))_0x2ff52d='Missing\x20required\x20arguments:\x20'+_0x120525[_0x1fc6eb(0x116)](',\x20')+_0x1fc6eb(0x191),await _0x65933f[_0x1fc6eb(0x188)](reportToGalactusAndSendToEDS,_0xb082e0,_0x17ec4b,_0x2ff52d,messageTypes[_0x1fc6eb(0x1dd)],_0x65933f[_0x1fc6eb(0x169)],_0x65933f['VUfrK'],_0x65933f[_0x1fc6eb(0x13b)]),logger[_0x1fc6eb(0x136)](_0x2ff52d),process[_0x1fc6eb(0x1eb)](0x1);else{const _0x3fcc06={};_0x3fcc06[_0x1fc6eb(0x182)]=_0x65933f[_0x1fc6eb(0x117)],_0x3fcc06[_0x1fc6eb(0x179)]=_0x65933f[_0x1fc6eb(0x1de)];const _0xdf9e39={};_0xdf9e39['description']=_0x65933f[_0x1fc6eb(0x1b1)],_0xdf9e39[_0x1fc6eb(0x179)]=_0x65933f['hdFJc'];const _0x313778={};_0x313778[_0x1fc6eb(0x182)]=_0x65933f['cvneS'],_0x313778['type']=_0x65933f['hdFJc'];const _0x52432c={};_0x52432c[_0x1fc6eb(0x182)]=_0x65933f['yjTfi'],_0x52432c[_0x1fc6eb(0x179)]=_0x65933f[_0x1fc6eb(0x1de)];const _0x14b4b1={};return _0x14b4b1[_0x1fc6eb(0x14c)]=_0x3fcc06,_0x14b4b1['cloud-provider']=_0xdf9e39,_0x14b4b1[_0x1fc6eb(0x166)]=_0x313778,_0x14b4b1[_0x1fc6eb(0x1e5)]=_0x52432c,_0x4f2222['usage'](_0x283829['pre_check'])[_0x1fc6eb(0x1a0)](_0x22fe80)[_0x1fc6eb(0x139)](_0x14b4b1)[_0x1fc6eb(0x1e0)](_0x65933f[_0x1fc6eb(0x1db)])['argv'];}}!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0xb082e0[_0x1fc6eb(0x1b4)][_0x1fc6eb(0x176)]())&&(_0x65933f[_0x1fc6eb(0x18a)](_0x65933f[_0x1fc6eb(0x1c3)],_0x65933f[_0x1fc6eb(0x160)])?(_0x5daf6f[_0x1fc6eb(0x12f)]('['+_0x2b5723+_0x1fc6eb(0x14b)+_0x5f1bcf['status']+_0x1fc6eb(0x150)+_0x2f0b38[_0x1fc6eb(0x1cb)]+_0x1fc6eb(0x16d)+_0x224d37[_0x1fc6eb(0x136)]),_0x341bdf[_0x1fc6eb(0x136)]&&_0xb97977['error']('error\x20stack\x20:\x20'+_0x1589f0[_0x1fc6eb(0x136)]['stack'])):(_0x2ff52d=_0x65933f[_0x1fc6eb(0x10c)],await _0x65933f['UjXXn'](reportToGalactusAndSendToEDS,_0xb082e0,_0x17ec4b,_0x2ff52d,messageTypes[_0x1fc6eb(0x1dd)],_0x65933f[_0x1fc6eb(0x169)],_0x65933f[_0x1fc6eb(0x13d)],_0x65933f[_0x1fc6eb(0x13b)]),logger[_0x1fc6eb(0x136)](_0x2ff52d),!_0xb082e0[_0x1fc6eb(0x1b4)]&&(_0x65933f[_0x1fc6eb(0x1d9)](_0x65933f['LSbhJ'],_0x65933f[_0x1fc6eb(0x1b2)])?(_0x8193b2[_0x1fc6eb(0x136)](_0x65933f[_0x1fc6eb(0x1b7)]),_0x52f886[_0x1fc6eb(0x1eb)](0x1)):(logger[_0x1fc6eb(0x12f)](_0x1fc6eb(0x1c1)+DEFAULT_CLUSTER_DETAILS[_0x1fc6eb(0x159)]+'\x20'),_0xb082e0[_0x1fc6eb(0x1b4)]=DEFAULT_CLUSTER_DETAILS[_0x1fc6eb(0x159)])))),global_registry[_0x1fc6eb(0x16b)]=_0xb082e0[_0x1fc6eb(0x16b)],global_registry[_0x1fc6eb(0x1b4)]=_0xb082e0['cloudProvider'],global_registry['clusterRegion']=_0xb082e0['region'];}else _0x60c0dc['info'](_0x1fc6eb(0x17b)+_0x5a88c1[_0x1fc6eb(0x16b)]+_0x1fc6eb(0x126));}else{if(_0xb082e0[_0x1fc6eb(0x1ce)]){if(_0x65933f[_0x1fc6eb(0x156)](_0x65933f['STTpT'],_0x65933f[_0x1fc6eb(0x1e1)])){global_registry['gridProfile']=_0xb082e0['gridProfile'],logger[_0x1fc6eb(0x1d2)](_0x1fc6eb(0x196)+_0xb082e0['gridProfile']);const _0x4dd40d=_0x1fc6eb(0x115)+AG_API_URL+_0x1fc6eb(0x180),_0x4c7f6b={};_0x4c7f6b[_0x1fc6eb(0x135)]=_0x65933f[_0x1fc6eb(0x142)],_0x4c7f6b[_0x1fc6eb(0x153)]=global_registry[_0x1fc6eb(0x192)],_0x4c7f6b[_0x1fc6eb(0x1a5)]=![];const _0x2696af=_0x4c7f6b,_0x35bc56=await _0x65933f['FmIEb'](got,_0x4dd40d,_0x2696af),_0x2c1b12=await _0x65933f[_0x1fc6eb(0x15a)](responseValidation,_0x35bc56,_0x65933f[_0x1fc6eb(0x1c8)],_0x65933f[_0x1fc6eb(0x13c)],_0xb082e0,_0x17ec4b);let _0x20217a={};if(_0x65933f[_0x1fc6eb(0x18a)](_0x2c1b12,0xc8)){if(_0x65933f['qWBwj'](_0x65933f[_0x1fc6eb(0x183)],_0x65933f[_0x1fc6eb(0x183)]))_0x3ecd56[_0x1fc6eb(0x137)](_0x65933f[_0x1fc6eb(0x1c4)]);else{const _0x27b39d=JSON['parse'](_0x35bc56[_0x1fc6eb(0x15f)]),_0xa94e2a=_0x27b39d['find'](_0x333b5f=>_0x333b5f['name']===_0xb082e0[_0x1fc6eb(0x1ce)])||null;_0x65933f[_0x1fc6eb(0x162)](isUndefined,_0xa94e2a)?_0x65933f['NhbIh'](_0x65933f[_0x1fc6eb(0x19f)],_0x65933f[_0x1fc6eb(0x164)])?_0x1b9566+=_0x1fc6eb(0x19b)+_0x1499bd['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':(_0x2ff52d=_0x1fc6eb(0x1ac)+_0xb082e0[_0x1fc6eb(0x1ce)]+_0x1fc6eb(0x1c7),await _0x65933f[_0x1fc6eb(0x195)](reportToGalactusAndSendToEDS,_0xb082e0,_0x17ec4b,_0x2ff52d,messageTypes['ERROR'],_0x65933f['zubqZ'],_0x65933f['wCoge'],_0x65933f[_0x1fc6eb(0x13b)]),logger[_0x1fc6eb(0x136)](_0x2ff52d),process['exit'](0x1)):_0x65933f[_0x1fc6eb(0x156)](_0x65933f['ygqGO'],_0x65933f[_0x1fc6eb(0x1d7)])?_0x20217a=_0xa94e2a:_0x241e5e['push'](_0x65933f[_0x1fc6eb(0x12e)]);}}else _0x65933f['KOAYv'](_0x65933f[_0x1fc6eb(0x10f)],_0x65933f[_0x1fc6eb(0x10f)])?process['exit'](0x1):_0x2dbcf4=_0x1dc288;const _0xac5b3a={};_0xac5b3a[_0x1fc6eb(0x179)]=WS_EVENTS[_0x1fc6eb(0x118)],_0xac5b3a[_0x1fc6eb(0x18d)]=_0x65933f[_0x1fc6eb(0xfb)],webSocketUtils[_0x1fc6eb(0x158)](_0x17ec4b,_0xac5b3a),global_registry[_0x1fc6eb(0x1b4)]=_0x20217a[_0x1fc6eb(0x1b4)],global_registry[_0x1fc6eb(0x165)]=_0x20217a[_0x1fc6eb(0x166)],global_registry['clusterName']=_0x20217a[_0x1fc6eb(0x16b)];}else{const _0x1b5234={};_0x1b5234['type']=_0x136013[_0x1fc6eb(0x118)],_0x1b5234['message']=_0x2d5c70,_0x539df8['sendEventToBackend'](_0x5359dc,_0x1b5234,_0x65933f[_0x1fc6eb(0x13b)],!![]);}}else _0x65933f[_0x1fc6eb(0x16e)](_0x65933f[_0x1fc6eb(0x121)],_0x65933f[_0x1fc6eb(0x140)])?_0x2bb915[_0x1fc6eb(0x136)](_0x1fc6eb(0x1d4)+_0x200230[_0x1fc6eb(0x136)][_0x1fc6eb(0x1d3)]):(logger[_0x1fc6eb(0x136)](_0x65933f[_0x1fc6eb(0x1b7)]),process['exit'](0x1));}}}catch(_0x1c159c){_0x65933f[_0x1fc6eb(0x10b)](_0x65933f['KgoYW'],_0x65933f['KgoYW'])?(_0x5e4d4d+=_0x65933f['sqyxp'],_0x26ee9b+=_0x1fc6eb(0x113)+(_0x3b22f9[_0x1fc6eb(0x18d)]||_0x65933f['ZoBpQ'])+'\x0a',_0x49576c+=_0x1fc6eb(0x1cf)+(_0x2c5783[_0x1fc6eb(0x100)]||_0x65933f[_0x1fc6eb(0x14a)])+'\x0a',_0x412df8+=_0x1fc6eb(0x1b0)+(_0x709c1['stack']||_0x65933f[_0x1fc6eb(0x14a)])+'\x0a'):(_0x2ff52d='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x1c159c+':\x20'+_0x1c159c[_0x1fc6eb(0x1d3)],logger[_0x1fc6eb(0x136)](_0x2ff52d),await _0x65933f[_0x1fc6eb(0x12c)](reportToGalactusAndSendToEDS,_0xb082e0,_0x17ec4b,_0x2ff52d,messageTypes[_0x1fc6eb(0x1dd)],_0x65933f[_0x1fc6eb(0x169)],_0x65933f[_0x1fc6eb(0x13d)],_0x65933f[_0x1fc6eb(0x13b)]),process['exit'](0x1));}}function a17_0x4cbd(_0x116304,_0x37d02e){const _0x447b03=a17_0x447b();return a17_0x4cbd=function(_0x4cbd90,_0x247225){_0x4cbd90=_0x4cbd90-0xfb;let _0x58f608=_0x447b03[_0x4cbd90];return _0x58f608;},a17_0x4cbd(_0x116304,_0x37d02e);}function printResponse(_0x447516,_0x36c9e1){const _0x324972=a17_0x1f31eb,_0xd5e780={};_0xd5e780[_0x324972(0x1ca)]=function(_0x5963de,_0x714662){return _0x5963de!==_0x714662;},_0xd5e780[_0x324972(0x155)]=_0x324972(0x1c9);const _0x4dd0b8=_0xd5e780;logger[_0x324972(0x12f)]('['+_0x447516+_0x324972(0x14b)+_0x36c9e1['status']+'\x20data\x20:\x20'+_0x36c9e1['data']+_0x324972(0x16d)+_0x36c9e1['error']),_0x36c9e1[_0x324972(0x136)]&&(_0x4dd0b8[_0x324972(0x1ca)](_0x4dd0b8[_0x324972(0x155)],_0x4dd0b8[_0x324972(0x155)])?(_0x5c30cb[_0x324972(0x12f)](_0x324972(0x1c1)+_0x20af2f[_0x324972(0x159)]+'\x20'),_0x584bf7['cloudProvider']=_0x495dd1[_0x324972(0x159)]):logger['error'](_0x324972(0x1d4)+_0x36c9e1[_0x324972(0x136)][_0x324972(0x1d3)]));}async function generateReport(_0x4a60d0,_0x1d9606){const _0x2a6d68=a17_0x1f31eb,_0x55215b={'KNIwz':function(_0x507483,_0x362863){return _0x507483+_0x362863;},'FmciR':_0x2a6d68(0x18b),'JIMyW':_0x2a6d68(0x1d0),'dAHgr':function(_0x186cf9,_0x561f5e){return _0x186cf9||_0x561f5e;},'GduCd':_0x2a6d68(0x104),'IJmui':_0x2a6d68(0x1e2),'PVrPV':'Cluster\x20details\x0a-----------------------\x0a','yTiaL':function(_0x32bae0,_0x3174d6){return _0x32bae0!=_0x3174d6;},'rVMQU':_0x2a6d68(0x128),'cXhzA':'will\x20be\x20created','KsbvT':function(_0x4e3ad8){return _0x4e3ad8();}};let _0x10aa6e='===\x20Precheck\x20Report\x20-\x20'+global_registry['cloudProvider']+_0x2a6d68(0x1bc);return _0x4a60d0[_0x2a6d68(0x14e)]((_0x185990,_0x2353be)=>{const _0xb6b436=_0x2a6d68,{header:_0xa23f9b,response:_0x23678b}=_0x185990,{status:_0x384ac6,data:_0x78fa60,error:_0x391cc1}=_0x23678b;_0x10aa6e+=_0xa23f9b+'\x20#'+_0x55215b[_0xb6b436(0x1b3)](_0x2353be,0x1)+'\x0a',_0x10aa6e+='Status:\x20'+(_0x384ac6?_0x55215b[_0xb6b436(0x1d1)]:_0x55215b[_0xb6b436(0x130)])+'\x0a',_0x10aa6e+=_0xb6b436(0x161)+_0x55215b[_0xb6b436(0x149)](_0x78fa60,_0x55215b[_0xb6b436(0x16f)])+'\x0a',_0x391cc1&&(_0x10aa6e+=_0x55215b[_0xb6b436(0x193)],_0x10aa6e+=_0xb6b436(0x113)+(_0x391cc1[_0xb6b436(0x18d)]||_0x55215b['GduCd'])+'\x0a',_0x10aa6e+='\x20\x20Code:\x20'+(_0x391cc1[_0xb6b436(0x100)]||_0x55215b['GduCd'])+'\x0a',_0x10aa6e+='\x20\x20Stack:\x20'+(_0x391cc1[_0xb6b436(0x1d3)]||_0x55215b[_0xb6b436(0x16f)])+'\x0a'),_0x10aa6e+='\x0a\x0a';}),_0x10aa6e+=_0x55215b['PVrPV'],_0x55215b[_0x2a6d68(0x15b)](_0x1d9606,null)?_0x10aa6e+='Cluster\x20'+global_registry['clusterName']+'\x20'+(_0x1d9606?_0x55215b['rVMQU']:_0x55215b[_0x2a6d68(0x107)])+'\x0a\x0a':_0x10aa6e+=_0x2a6d68(0x19b)+global_registry[_0x2a6d68(0x16b)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x10aa6e+=_0x55215b['KsbvT'](getSystemMetaData),_0x10aa6e;};exports[a17_0x1f31eb(0x1c5)]=async function(_0x19a1ae){const _0x22ac6e=a17_0x1f31eb,_0x468668={'chvQC':function(_0x2d322d){return _0x2d322d();},'xUiae':function(_0x42f4d9){return _0x42f4d9();},'EbFPM':_0x22ac6e(0x132),'asJzB':function(_0x3085e0,_0x2f267c,_0x2126b6,_0x134e80,_0x2d1152,_0x3f2018,_0x243767,_0x496833){return _0x3085e0(_0x2f267c,_0x2126b6,_0x134e80,_0x2d1152,_0x3f2018,_0x243767,_0x496833);},'UMDpg':_0x22ac6e(0x105),'ncFLQ':_0x22ac6e(0x1b5),'icNHX':_0x22ac6e(0x136),'LMjyR':function(_0x36b61b,_0x8cd13f,_0xd4a0f2,_0x5a5c9b,_0x4b12bc,_0x55fd79,_0xc992c0){return _0x36b61b(_0x8cd13f,_0xd4a0f2,_0x5a5c9b,_0x4b12bc,_0x55fd79,_0xc992c0);},'FDmji':function(_0x30e0dd){return _0x30e0dd();},'zopTW':'<UsernamePlaceholder>','cRlsN':'<PasswordPlaceholder>','KMJrY':function(_0x16e2c9,_0x523a05,_0x3f06e1){return _0x16e2c9(_0x523a05,_0x3f06e1);},'nDMxx':function(_0x35b80c,_0x3e2188,_0x4f3038){return _0x35b80c(_0x3e2188,_0x4f3038);},'czyuT':'dummy-grid','rdSHD':function(_0xbdb175,_0x4a4dbb,_0x48ae69){return _0xbdb175(_0x4a4dbb,_0x48ae69);},'haGKy':'toolInstalledResp','Xgjyb':_0x22ac6e(0x125),'KsJmg':function(_0x204d3e,_0x468788,_0x2d8500){return _0x204d3e(_0x468788,_0x2d8500);},'ufXqU':_0x22ac6e(0x19d),'FcwtC':function(_0x23d892){return _0x23d892();},'LrnXp':_0x22ac6e(0x1ad),'pKfJY':function(_0x169928,_0x4fef1c){return _0x169928(_0x4fef1c);},'NMYmU':'TLSv1_2_client_method','nHpza':function(_0x2a880f,_0x59d6af,_0x255bd6){return _0x2a880f(_0x59d6af,_0x255bd6);},'YKmrZ':'isTls1_2_SUPPORTED','ZJLOO':_0x22ac6e(0x12b),'pegEW':_0x22ac6e(0x177),'LGfyi':_0x22ac6e(0x17c),'rTmEm':'SSL\x20Configured','NkfQa':function(_0x21dd12,_0x6ac6a8){return _0x21dd12+_0x6ac6a8;},'tKGNJ':_0x22ac6e(0x198),'uEmAg':function(_0x47246f,_0xc97b73,_0x170c0f,_0x5874f3,_0xaafc89,_0x453393,_0x1ae978){return _0x47246f(_0xc97b73,_0x170c0f,_0x5874f3,_0xaafc89,_0x453393,_0x1ae978);},'SIlYu':'pre-check-failed'};let _0x1a2cc5,_0x2c4176;try{global_registry[_0x22ac6e(0x168)]=_0x468668[_0x22ac6e(0x129)](uuidv4);!fs[_0x22ac6e(0x171)](_0x468668[_0x22ac6e(0x1c0)](getCredentialsPath))&&(_0x2c4176=_0x468668['EbFPM'],logger[_0x22ac6e(0x136)](_0x2c4176),await _0x468668['asJzB'](reportToGalactusAndSendToEDS,_0x19a1ae,_0x1a2cc5,_0x2c4176,messageTypes['ERROR'],_0x468668['UMDpg'],_0x468668[_0x22ac6e(0x17a)],_0x468668[_0x22ac6e(0x127)]),process['exit'](0x1));_0x468668[_0x22ac6e(0x1a6)](sendInstrumentationEvent,_0x19a1ae,_0x468668[_0x22ac6e(0x10d)],messageTypes[_0x22ac6e(0x1a7)],null,null,_0x19a1ae);const _0x2233e0=JSON[_0x22ac6e(0x15d)](fs[_0x22ac6e(0x148)](_0x468668['FDmji'](getCredentialsPath)));global_registry[_0x22ac6e(0x108)]=_0x2233e0[_0x22ac6e(0x1c2)][_0x22ac6e(0x109)],global_registry[_0x22ac6e(0x11b)]=_0x2233e0[_0x22ac6e(0x1c2)][_0x22ac6e(0x1bd)];const _0x4d6399=WS_ENDPOINT[_0x22ac6e(0x1e3)](_0x468668[_0x22ac6e(0x120)],_0x2233e0['Browserstack'][_0x22ac6e(0x109)])[_0x22ac6e(0x1e3)](_0x468668[_0x22ac6e(0x17f)],_0x2233e0[_0x22ac6e(0x1c2)][_0x22ac6e(0x1bd)]),_0x25531f={};_0x25531f[_0x22ac6e(0x119)]=ws,_0x25531f['connectionTimeout']=0x36ee80,_0x1a2cc5=new ReconnectingWebSocket(_0x4d6399,[],_0x25531f),global_registry['authHeader']=_0x468668[_0x22ac6e(0x1e9)](getAuthHeader,global_registry[_0x22ac6e(0x108)],global_registry[_0x22ac6e(0x11b)]),await _0x468668[_0x22ac6e(0x1b6)](inputValidation,_0x19a1ae,_0x1a2cc5),logger[_0x22ac6e(0x12f)](_0x22ac6e(0x11e)+global_registry[_0x22ac6e(0x1b4)]+_0x22ac6e(0x1a9)+global_registry['clusterRegion']);let _0x65ea91=await _0x468668['LMjyR'](getCloudProviderObjectWithOutInit,global_registry[_0x22ac6e(0x1b4)],global_registry[_0x22ac6e(0x16b)],_0x468668[_0x22ac6e(0x12d)],_0x1a2cc5,webSocketUtils,_0x19a1ae);const _0x394500=await _0x65ea91[_0x22ac6e(0x114)]();_0x468668[_0x22ac6e(0x157)](printResponse,_0x468668[_0x22ac6e(0x18e)],_0x394500),_0x65ea91=await _0x65ea91[_0x22ac6e(0x1e8)]();let _0x5ca17b=![];try{_0x5ca17b=await _0x65ea91[_0x22ac6e(0x178)]();}catch(_0xaf480a){const _0x571c15=_0x468668['Xgjyb']['split']('|');let _0x404238=0x0;while(!![]){switch(_0x571c15[_0x404238++]){case'0':await _0x468668[_0x22ac6e(0x1e7)](reportToGalactusAndSendToEDS,_0x19a1ae,_0x1a2cc5,_0x2c4176,messageTypes[_0x22ac6e(0x1dd)],_0x468668[_0x22ac6e(0x10d)],_0x22ac6e(0x18f)+global_registry[_0x22ac6e(0x1b4)],_0x468668[_0x22ac6e(0x127)]);continue;case'1':_0x2c4176+='\x0a'+JSON[_0x22ac6e(0x1e4)](_0xaf480a[_0x22ac6e(0x1d3)]);continue;case'2':logger['error'](_0x2c4176);continue;case'3':_0x2c4176=_0x22ac6e(0x10a)+global_registry[_0x22ac6e(0x16b)]+_0x22ac6e(0x15c)+global_registry[_0x22ac6e(0x165)]+_0x22ac6e(0x123)+_0xaf480a;continue;case'4':_0x5ca17b=null;continue;}break;}}_0x5ca17b&&logger['info'](_0x22ac6e(0x17b)+global_registry['clusterName']+_0x22ac6e(0x126));const _0xf9ebbf=await _0x65ea91['checkAccess']();_0x468668[_0x22ac6e(0x124)](printResponse,_0x468668[_0x22ac6e(0x133)],_0xf9ebbf);const _0x303ba4=await _0x468668[_0x22ac6e(0x18c)](curlRequest);_0x468668[_0x22ac6e(0x1e9)](printResponse,_0x468668[_0x22ac6e(0x103)],_0x303ba4);const _0x5e0fed=await _0x468668[_0x22ac6e(0x12a)](isTlsSupported,_0x468668[_0x22ac6e(0x1ea)]);_0x468668['nHpza'](printResponse,_0x468668['YKmrZ'],_0x5e0fed);const _0x3bc5e8={};_0x3bc5e8['header']=_0x468668['ZJLOO'],_0x3bc5e8[_0x22ac6e(0x1cd)]=_0x394500;const _0x115941={};_0x115941[_0x22ac6e(0x186)]=_0x468668['pegEW'],_0x115941[_0x22ac6e(0x1cd)]=_0xf9ebbf;const _0x52304f={};_0x52304f[_0x22ac6e(0x186)]=_0x468668['LGfyi'],_0x52304f[_0x22ac6e(0x1cd)]=_0x303ba4;const _0x17378e={};_0x17378e[_0x22ac6e(0x186)]=_0x468668['rTmEm'],_0x17378e[_0x22ac6e(0x1cd)]=_0x5e0fed;const _0x5be6d6=[_0x3bc5e8,_0x115941,_0x52304f,_0x17378e],_0x177de7=await _0x468668[_0x22ac6e(0x124)](generateReport,_0x5be6d6,_0x5ca17b),_0x410492=new Date(),_0x384550=_0x410492[_0x22ac6e(0x1c6)]()+'_'+_0x468668[_0x22ac6e(0x19a)](_0x410492[_0x22ac6e(0x11f)](),0x1)+'_'+_0x410492['getUTCDate']()+'_'+_0x410492['getUTCHours']()+'_'+_0x410492[_0x22ac6e(0x1a4)](),_0x767f41=_0x22ac6e(0x151)+_0x384550+_0x22ac6e(0xfd);fs[_0x22ac6e(0x19c)](_0x767f41,_0x177de7,_0x468668[_0x22ac6e(0xfe)]),logger[_0x22ac6e(0x12f)]('Report\x20saved\x20in\x20'+_0x767f41),process[_0x22ac6e(0x1eb)](0x0);}catch(_0x1cc4d7){let _0x52dba1=_0x22ac6e(0x1cc)+_0x1cc4d7+'\x20';logger['error'](_0x52dba1),_0x52dba1+='\x0a'+JSON['stringify'](_0x1cc4d7['stack']),logger[_0x22ac6e(0x1d2)]('stack\x20trace\x20'+_0x1cc4d7[_0x22ac6e(0x1d3)]);if(_0x1a2cc5){const _0xae3219={};_0xae3219[_0x22ac6e(0x179)]=WS_EVENTS['LOG'],_0xae3219['message']=_0x52dba1,webSocketUtils[_0x22ac6e(0x158)](_0x1a2cc5,_0xae3219,_0x468668[_0x22ac6e(0x127)],!![]);}await webSocketUtils[_0x22ac6e(0xfc)](0x7d0);const _0x33af1a={};_0x33af1a['error']=_0x52dba1,await _0x468668[_0x22ac6e(0x141)](sendInstrumentationEvent,_0x19a1ae,_0x468668[_0x22ac6e(0x10d)],messageTypes['ERROR'],_0x468668[_0x22ac6e(0x190)],_0x33af1a,_0x19a1ae),process[_0x22ac6e(0x1eb)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a18_0x4ff322=a18_0x1583;function a18_0x1583(_0x465bb2,_0x27bc2b){const _0x5d0017=a18_0x5d00();return a18_0x1583=function(_0x158342,_0xf8eb13){_0x158342=_0x158342-0x1d8;let _0x5b5375=_0x5d0017[_0x158342];return _0x5b5375;},a18_0x1583(_0x465bb2,_0x27bc2b);}(function(_0x5c48af,_0x59ebe8){const _0x24b35f=a18_0x1583,_0x503081=_0x5c48af();while(!![]){try{const _0x53a119=parseInt(_0x24b35f(0x1e0))/0x1*(parseInt(_0x24b35f(0x1ec))/0x2)+parseInt(_0x24b35f(0x1eb))/0x3+parseInt(_0x24b35f(0x1db))/0x4*(-parseInt(_0x24b35f(0x1e7))/0x5)+-parseInt(_0x24b35f(0x1da))/0x6*(parseInt(_0x24b35f(0x1e6))/0x7)+parseInt(_0x24b35f(0x1e2))/0x8*(parseInt(_0x24b35f(0x1e4))/0x9)+-parseInt(_0x24b35f(0x1dc))/0xa+parseInt(_0x24b35f(0x1e3))/0xb*(parseInt(_0x24b35f(0x1e8))/0xc);if(_0x53a119===_0x59ebe8)break;else _0x503081['push'](_0x503081['shift']());}catch(_0x3929d5){_0x503081['push'](_0x503081['shift']());}}}(a18_0x5d00,0x3a349));function a18_0x5d00(){const _0xab4700=['14fYzgNH','70005lPzSxd','430356RekLsk','help','epilogue','661167EoLnLv','16598fjaWwY','desc','strict','start','handler','888606lXkhPQ','84pvnCjD','1995010SexXrJ','commandDir','builder','bBotX','1KAvaMe','start_commands','496blwzIF','209BRFnkO','17136KelAsx','recommendCommands'];a18_0x5d00=function(){return _0xab4700;};return a18_0x5d00();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a18_0x4ff322(0x1d8),exports[a18_0x4ff322(0x1ed)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a18_0x4ff322(0x1de)]=function(_0x4fdc1d){const _0x39a68e=a18_0x4ff322,_0x5cb22c={};_0x5cb22c[_0x39a68e(0x1df)]=_0x39a68e(0x1e1),_0x5cb22c['kZnZk']=_0x39a68e(0x1e9);const _0x3b23e4=_0x5cb22c;return _0x4fdc1d['usage'](HELP_HEADER_MESSAGE[_0x39a68e(0x1d8)])[_0x39a68e(0x1ea)](HELP_FOOTER_MESSAGE)[_0x39a68e(0x1dd)](_0x3b23e4[_0x39a68e(0x1df)])['demandCommand']()[_0x39a68e(0x1e5)]()[_0x39a68e(0x1ee)]()[_0x39a68e(0x1e9)](_0x3b23e4['kZnZk']);},exports[a18_0x4ff322(0x1d9)]=function(_0x2f7c00){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a19_0x594ddc=a19_0x1d14;function a19_0x1d14(_0x4d66ad,_0x5e6275){const _0xa9a569=a19_0xa9a5();return a19_0x1d14=function(_0x1d14b5,_0x53ab6b){_0x1d14b5=_0x1d14b5-0x14a;let _0x16ed64=_0xa9a569[_0x1d14b5];return _0x16ed64;},a19_0x1d14(_0x4d66ad,_0x5e6275);}(function(_0xdb953f,_0x382aa2){const _0x2dcdb3=a19_0x1d14,_0x32ec25=_0xdb953f();while(!![]){try{const _0x50e91c=parseInt(_0x2dcdb3(0x176))/0x1+-parseInt(_0x2dcdb3(0x168))/0x2*(-parseInt(_0x2dcdb3(0x151))/0x3)+parseInt(_0x2dcdb3(0x16f))/0x4+-parseInt(_0x2dcdb3(0x167))/0x5*(parseInt(_0x2dcdb3(0x175))/0x6)+-parseInt(_0x2dcdb3(0x15c))/0x7*(parseInt(_0x2dcdb3(0x14c))/0x8)+parseInt(_0x2dcdb3(0x150))/0x9+parseInt(_0x2dcdb3(0x14d))/0xa*(-parseInt(_0x2dcdb3(0x19c))/0xb);if(_0x50e91c===_0x382aa2)break;else _0x32ec25['push'](_0x32ec25['shift']());}catch(_0x1c707f){_0x32ec25['push'](_0x32ec25['shift']());}}}(a19_0xa9a5,0x78ab9));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x594ddc(0x179)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x594ddc(0x18b)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x594ddc(0x178)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x594ddc(0x17d)),{getCloudProviderObject}=require(a19_0x594ddc(0x165));exports[a19_0x594ddc(0x194)]=a19_0x594ddc(0x152),exports[a19_0x594ddc(0x164)]=a19_0x594ddc(0x163),exports[a19_0x594ddc(0x15a)]=function(_0x3a84a6){const _0x6b0c4c=a19_0x594ddc,_0x582505={};_0x582505[_0x6b0c4c(0x156)]=_0x6b0c4c(0x1a2),_0x582505[_0x6b0c4c(0x157)]='string',_0x582505[_0x6b0c4c(0x184)]='Skip\x20insecure\x20cert\x20verification.',_0x582505['WvLqI']=_0x6b0c4c(0x14e),_0x582505[_0x6b0c4c(0x166)]=_0x6b0c4c(0x19f);const _0x37c4e1=_0x582505,_0x497b00={};_0x497b00[_0x6b0c4c(0x17b)]=_0x37c4e1[_0x6b0c4c(0x156)],_0x497b00['type']=_0x37c4e1[_0x6b0c4c(0x157)];const _0xfc9c7e={};_0xfc9c7e[_0x6b0c4c(0x17b)]=_0x37c4e1[_0x6b0c4c(0x184)],_0xfc9c7e['type']=_0x37c4e1[_0x6b0c4c(0x158)],_0xfc9c7e[_0x6b0c4c(0x173)]=![];const _0x262388={};return _0x262388[_0x6b0c4c(0x191)]=_0x497b00,_0x262388[_0x6b0c4c(0x15e)]=_0xfc9c7e,_0x3a84a6['usage'](HELP_HEADER_MESSAGE[_0x6b0c4c(0x14b)])[_0x6b0c4c(0x15b)](HELP_FOOTER_MESSAGE)[_0x6b0c4c(0x18a)](_0x262388)[_0x6b0c4c(0x19f)](_0x37c4e1[_0x6b0c4c(0x166)])[_0x6b0c4c(0x192)];},exports['handler']=async function(_0x2c2e4c){const _0x450bf2=a19_0x594ddc,_0x3fd6c5={'LikpF':_0x450bf2(0x198),'Xitle':function(_0x57d157){return _0x57d157();},'EEejW':_0x450bf2(0x1a4),'XVZbW':function(_0x481951,_0x11267f,_0x52c246,_0x40bf5e,_0x15ae5a,_0x5b6a2a,_0x26ecd2){return _0x481951(_0x11267f,_0x52c246,_0x40bf5e,_0x15ae5a,_0x5b6a2a,_0x26ecd2);},'WyJiD':_0x450bf2(0x19a),'UcXbZ':_0x450bf2(0x17a),'hvOcS':function(_0x58b088,_0x313995,_0x5c0f03,_0x11629f,_0x36e390,_0x1c4eee,_0x1c6d18){return _0x58b088(_0x313995,_0x5c0f03,_0x11629f,_0x36e390,_0x1c4eee,_0x1c6d18);},'tCbRi':function(_0x491a9b){return _0x491a9b();},'gJmXU':'<UsernamePlaceholder>','znMmh':'<PasswordPlaceholder>','FhpiR':_0x450bf2(0x172),'ihsue':function(_0x23880f,_0x15c136,_0x2bcba2,_0x3b273a){return _0x23880f(_0x15c136,_0x2bcba2,_0x3b273a);},'kJMRj':function(_0x9db178,_0x3b51a3,_0x2568ef,_0x450f22,_0x57e5b8,_0x3ad1f4,_0x12f09c){return _0x9db178(_0x3b51a3,_0x2568ef,_0x450f22,_0x57e5b8,_0x3ad1f4,_0x12f09c);},'IVxhc':function(_0x492b97,_0x5a43cf,_0x457044){return _0x492b97(_0x5a43cf,_0x457044);},'HullO':function(_0xfbe4a,_0x1cd17f,_0x15bb60){return _0xfbe4a(_0x1cd17f,_0x15bb60);},'wbgUi':_0x450bf2(0x18d),'qcHSy':function(_0x10f821,_0x3ceaba){return _0x10f821===_0x3ceaba;},'alzZY':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','laeNN':function(_0x3430c3,_0x364e02,_0x28a8de,_0x4d5669,_0x8edda0,_0x2d341f,_0x70d4fe){return _0x3430c3(_0x364e02,_0x28a8de,_0x4d5669,_0x8edda0,_0x2d341f,_0x70d4fe);},'HKqCJ':'unauthorised','XupSE':function(_0x221b72,_0x1a150f,_0x1d3f93,_0x568199,_0x9416cd,_0x5ddf6f,_0x3eca69){return _0x221b72(_0x1a150f,_0x1d3f93,_0x568199,_0x9416cd,_0x5ddf6f,_0x3eca69);},'amswu':'invalid-grid-id','XuExF':function(_0x2ae62e,_0x153aca,_0x368da8,_0x4754d6,_0x871409,_0x334777,_0x3a974d){return _0x2ae62e(_0x153aca,_0x368da8,_0x4754d6,_0x871409,_0x334777,_0x3a974d);},'WyWCq':_0x450bf2(0x183)};let _0x3df44f;try{!_0x2c2e4c[_0x450bf2(0x159)]&&(logger['error'](_0x3fd6c5[_0x450bf2(0x162)]),process[_0x450bf2(0x14f)](0x1));!fs[_0x450bf2(0x19d)](_0x3fd6c5['Xitle'](getCredentialsPath))&&(logger[_0x450bf2(0x189)](_0x3fd6c5[_0x450bf2(0x17e)]),await _0x3fd6c5[_0x450bf2(0x18f)](sendInstrumentationEvent,_0x2c2e4c,_0x3fd6c5[_0x450bf2(0x1a0)],messageTypes['ERROR'],_0x3fd6c5[_0x450bf2(0x177)],null,_0x2c2e4c),process[_0x450bf2(0x14f)](0x1));logger[_0x450bf2(0x16c)](_0x450bf2(0x161)+_0x2c2e4c[_0x450bf2(0x159)]),await _0x3fd6c5['hvOcS'](sendInstrumentationEvent,_0x2c2e4c,_0x3fd6c5['WyJiD'],messageTypes[_0x450bf2(0x18e)],null,null,_0x2c2e4c);const _0x5b8cb5=JSON[_0x450bf2(0x1a1)](fs['readFileSync'](_0x3fd6c5['tCbRi'](getCredentialsPath)));global_registry[_0x450bf2(0x19e)]=_0x5b8cb5['Browserstack'][_0x450bf2(0x14a)],global_registry['bstackAccesskey']=_0x5b8cb5['Browserstack'][_0x450bf2(0x197)];const _0x17d368=WS_ENDPOINT[_0x450bf2(0x182)](_0x3fd6c5['gJmXU'],_0x5b8cb5['Browserstack'][_0x450bf2(0x14a)])[_0x450bf2(0x182)](_0x3fd6c5[_0x450bf2(0x193)],_0x5b8cb5['Browserstack'][_0x450bf2(0x197)]),_0x179a81={};_0x179a81[_0x450bf2(0x155)]=ws,_0x179a81[_0x450bf2(0x16e)]=0x36ee80,_0x3df44f=new ReconnectingWebSocket(_0x17d368,[],_0x179a81),logger['debug'](_0x3fd6c5[_0x450bf2(0x181)]),webSocketUtils['addListeners'](_0x3df44f,_0x2c2e4c[_0x450bf2(0x17c)],_0x2c2e4c[_0x450bf2(0x197)]);const [_0x52341c,_0x57d6fa]=await _0x3fd6c5[_0x450bf2(0x16d)](getGridDetails,_0x5b8cb5['Browserstack'][_0x450bf2(0x14a)],_0x5b8cb5[_0x450bf2(0x190)][_0x450bf2(0x197)],_0x2c2e4c[_0x450bf2(0x159)]);if(_0x57d6fa){const _0x4385f3=_0x57d6fa[_0x450bf2(0x16c)];global_registry[_0x450bf2(0x188)]=_0x4385f3[_0x450bf2(0x188)],global_registry[_0x450bf2(0x16a)]=_0x4385f3[_0x450bf2(0x199)],global_registry[_0x450bf2(0x1a3)]=_0x4385f3[_0x450bf2(0x1a3)];const _0x553876=await _0x3fd6c5[_0x450bf2(0x153)](getCloudProviderObject,_0x4385f3['cloudProvider'],_0x4385f3['clusterName'],_0x4385f3[_0x450bf2(0x169)],_0x3df44f,webSocketUtils,_0x2c2e4c),[_0x3c596b,_0x2c3d02,_0x45f2ed,_0x188282,_0x46fbb3,_0x5330b9]=await _0x3fd6c5[_0x450bf2(0x174)](createK8sClient,_0x553876,_0x2c2e4c[_0x450bf2(0x15f)]);await _0x3fd6c5[_0x450bf2(0x170)](scaleUpHubDeployment,_0x2c3d02,_0x4385f3[_0x450bf2(0x169)]),logger[_0x450bf2(0x16c)](_0x3fd6c5[_0x450bf2(0x16b)]),process[_0x450bf2(0x14f)](0x0);}_0x3fd6c5[_0x450bf2(0x15d)](_0x52341c[_0x450bf2(0x186)],0x191)&&(logger[_0x450bf2(0x189)](_0x3fd6c5[_0x450bf2(0x1a5)]),await _0x3fd6c5[_0x450bf2(0x195)](sendInstrumentationEvent,_0x2c2e4c,_0x3fd6c5['WyJiD'],messageTypes['ERROR'],_0x3fd6c5['HKqCJ'],null,_0x2c2e4c),process[_0x450bf2(0x14f)](0x1)),_0x3fd6c5['qcHSy'](_0x52341c['statusCode'],0x190)&&(logger['error'](JSON[_0x450bf2(0x1a1)](_0x52341c[_0x450bf2(0x187)])['message']),await _0x3fd6c5[_0x450bf2(0x196)](sendInstrumentationEvent,_0x2c2e4c,_0x3fd6c5['WyJiD'],messageTypes[_0x450bf2(0x160)],_0x3fd6c5[_0x450bf2(0x17f)],null,_0x2c2e4c),process['exit'](0x1)),logger[_0x450bf2(0x189)](_0x450bf2(0x180)+JSON[_0x450bf2(0x18c)](_0x52341c)),await _0x3fd6c5[_0x450bf2(0x154)](sendInstrumentationEvent,_0x2c2e4c,_0x3fd6c5[_0x450bf2(0x1a0)],messageTypes['ERROR'],_0x3fd6c5[_0x450bf2(0x19b)],_0x52341c,_0x2c2e4c),process['exit'](0x1);}catch(_0x57b5c4){const _0x1cf1ca=_0x450bf2(0x185)+_0x57b5c4+'\x20\x0a'+JSON[_0x450bf2(0x18c)](_0x57b5c4[_0x450bf2(0x171)])+'\x20';logger[_0x450bf2(0x189)](_0x1cf1ca),process['exit'](0x1);}};function a19_0xa9a5(){const _0x2a5f3b=['builder','epilogue','7HklmPg','qcHSy','skip-tls-cert-verify','skipTlsCertVerify','ERROR','Starting\x20grid\x20','LikpF','Start\x20an\x20existing\x20Automation\x20grid.','desc','../../cloudproviders/utils','MDzKa','245tVORWE','218gMOetX','name','clusterRegion','wbgUi','info','ihsue','connectionTimeout','1738140WvYBhx','HullO','stack','Adding\x20Websocket\x20listeners','default','IVxhc','89934EdSjTx','685394ihFebH','UcXbZ','../../utils/utilityMethods','reconnecting-websocket','init-not-called','description','user','../../utils/createk8sClient','EEejW','amswu','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','FhpiR','replace','server-error','QJNlO','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','statusCode','body','cloudProvider','error','options','../../config/constants','stringify','Grid\x20started','INFO','XVZbW','Browserstack','grid-id','argv','znMmh','command','laeNN','XupSE','password','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','region','start-grid-called','WyWCq','55737BPxwGn','existsSync','bstackUsername','help','WyJiD','parse','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','clusterName','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','alzZY','username','start','3337160SdyjDr','2310yZYtJa','boolean','exit','6773292cWtUUs','25977CABkFQ','grid','kJMRj','XuExF','WebSocket','wVxfv','PHymZ','WvLqI','gridId'];a19_0xa9a5=function(){return _0x2a5f3b;};return a19_0xa9a5();}
|
package/ats/src/commands/stop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x47b230=a20_0x1b1d;function a20_0x1b1d(_0x58bc09,_0x3207fb){const _0x2fc66c=a20_0x2fc6();return a20_0x1b1d=function(_0x1b1d6d,_0x92fb64){_0x1b1d6d=_0x1b1d6d-0xd2;let _0x3dbf45=_0x2fc66c[_0x1b1d6d];return _0x3dbf45;},a20_0x1b1d(_0x58bc09,_0x3207fb);}(function(_0x569ec0,_0x3eb3fd){const _0xefa729=a20_0x1b1d,_0x5b5479=_0x569ec0();while(!![]){try{const _0x5efd79=-parseInt(_0xefa729(0xe2))/0x1+parseInt(_0xefa729(0xe5))/0x2*(-parseInt(_0xefa729(0xd5))/0x3)+-parseInt(_0xefa729(0xde))/0x4+parseInt(_0xefa729(0xd8))/0x5+-parseInt(_0xefa729(0xd4))/0x6*(parseInt(_0xefa729(0xd7))/0x7)+-parseInt(_0xefa729(0xd2))/0x8+parseInt(_0xefa729(0xda))/0x9;if(_0x5efd79===_0x3eb3fd)break;else _0x5b5479['push'](_0x5b5479['shift']());}catch(_0xf80f8e){_0x5b5479['push'](_0x5b5479['shift']());}}}(a20_0x2fc6,0x27943));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x47b230(0xe0));exports['command']=a20_0x47b230(0xdc),exports[a20_0x47b230(0xe4)]='Stop\x20a\x20running\x20Automation\x20grid.',exports['builder']=function(_0x25fbd0){const _0x448e0d=a20_0x47b230,_0xb21214={};_0xb21214[_0x448e0d(0xe6)]=_0x448e0d(0xe1),_0xb21214[_0x448e0d(0xdb)]='help';const _0x40065e=_0xb21214;return _0x25fbd0[_0x448e0d(0xdd)](HELP_HEADER_MESSAGE['stop'])[_0x448e0d(0xd6)](HELP_FOOTER_MESSAGE)[_0x448e0d(0xe7)](_0x40065e[_0x448e0d(0xe6)])[_0x448e0d(0xd3)]()[_0x448e0d(0xe3)]()[_0x448e0d(0xd9)]()['help'](_0x40065e[_0x448e0d(0xdb)]);},exports[a20_0x47b230(0xdf)]=function(_0x4fe269){};function a20_0x2fc6(){const _0x2003e8=['6mhCHvs','321updFzA','epilogue','2141405vIvFGi','662740OwQRdo','strict','9811080auhFeK','utDqa','stop','usage','461284MPgLJA','handler','../config/constants','stop_commands','204729tplyHD','recommendCommands','desc','5266ohkeqt','CncwL','commandDir','1222856KjaiWN','demandCommand'];a20_0x2fc6=function(){return _0x2003e8;};return a20_0x2fc6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a21_0x4e86b7=a21_0x5893;(function(_0x13d61f,_0x51e83e){const _0x1e18da=a21_0x5893,_0x305b74=_0x13d61f();while(!![]){try{const _0x205ee8=parseInt(_0x1e18da(0x122))/0x1*(parseInt(_0x1e18da(0xdb))/0x2)+parseInt(_0x1e18da(0x106))/0x3*(-parseInt(_0x1e18da(0x115))/0x4)+-parseInt(_0x1e18da(0x11e))/0x5*(parseInt(_0x1e18da(0xe5))/0x6)+-parseInt(_0x1e18da(0xf5))/0x7+parseInt(_0x1e18da(0xca))/0x8*(-parseInt(_0x1e18da(0x102))/0x9)+-parseInt(_0x1e18da(0xea))/0xa+parseInt(_0x1e18da(0x111))/0xb*(parseInt(_0x1e18da(0xdc))/0xc);if(_0x205ee8===_0x51e83e)break;else _0x305b74['push'](_0x305b74['shift']());}catch(_0x464b4d){_0x305b74['push'](_0x305b74['shift']());}}}(a21_0x2c33,0xe7d95));function a21_0x2c33(){const _0x36e1c9=['type','server-error','user','reconnecting-websocket','Adding\x20Websocket\x20listeners','password','85wcrebG','error','rkdId','../../utils/createk8sClient','9ZxqSPU','WgcYW','evHKn','iQWiG','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','8McpMfV','argv','PFERN','../../utils/utilityMethods','cORfD','lXMDi','../../utils/instrumentationUtils','emkDk','connectionTimeout','init-not-called','NMxKI','WebSocket','UsXuL','../../utils/gridComponents','name','help','debug','237842AoFguQ','59360244eGjtIp','parse','stop-grid-called','BXKzc','cloudProvider','desc','<UsernamePlaceholder>','JYuff','clusterName','558708njYQCQ','grid','Grid\x20stoppped.','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','AZqLk','1410440xqpXiv','info','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','string','hXVFf','../../utils/webSocketUtils','yQJyl','Browserstack','epilogue','cqDOA','bstackUsername','10357165HBQQDw','username','../../cloudproviders/utils','bstackAccesskey','skip-tls-cert-verify','statusCode','stop','grid-id','usage','region','Svgdf','lEXWm','hEYEs','16456923WdVURG','ERROR','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Stop\x20a\x20running\x20Automation\x20grid.','129vxPkrM','iOcVd','exit','<PasswordPlaceholder>','replace','FgcCi','Stopping\x20grid\x20','handler','gHfpH','message','skipTlsCertVerify','11tfMOEk','stringify','command','gridId','3268RwvVwo','default','description'];a21_0x2c33=function(){return _0x36e1c9;};return a21_0x2c33();}function a21_0x5893(_0x187dfe,_0x4ff48f){const _0x2c3351=a21_0x2c33();return a21_0x5893=function(_0x5893f1,_0x874dee){_0x5893f1=_0x5893f1-0xc7;let _0x47f4a8=_0x2c3351[_0x5893f1];return _0x47f4a8;},a21_0x5893(_0x187dfe,_0x4ff48f);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x4e86b7(0x11b)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x4e86b7(0xcd)),{scaleDownHubDeployment}=require(a21_0x4e86b7(0xd7)),{sendInstrumentationEvent}=require(a21_0x4e86b7(0xd0)),webSocketUtils=require(a21_0x4e86b7(0xef)),{createK8sClient}=require(a21_0x4e86b7(0x121)),{getCloudProviderObject}=require(a21_0x4e86b7(0xf7));exports[a21_0x4e86b7(0x113)]=a21_0x4e86b7(0xe6),exports[a21_0x4e86b7(0xe1)]=a21_0x4e86b7(0x105),exports['builder']=function(_0x4cf401){const _0x1cd5c9=a21_0x4e86b7,_0x46cc59={};_0x46cc59[_0x1cd5c9(0xff)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x46cc59[_0x1cd5c9(0xce)]=_0x1cd5c9(0xed),_0x46cc59['BXKzc']='Skip\x20insecure\x20cert\x20verification.',_0x46cc59[_0x1cd5c9(0x10b)]='boolean',_0x46cc59[_0x1cd5c9(0xf3)]=_0x1cd5c9(0xd9);const _0x1623ef=_0x46cc59,_0xa0d3dc={};_0xa0d3dc[_0x1cd5c9(0x117)]=_0x1623ef[_0x1cd5c9(0xff)],_0xa0d3dc[_0x1cd5c9(0x118)]=_0x1623ef[_0x1cd5c9(0xce)];const _0x358aaf={};_0x358aaf[_0x1cd5c9(0x117)]=_0x1623ef[_0x1cd5c9(0xdf)],_0x358aaf[_0x1cd5c9(0x118)]=_0x1623ef[_0x1cd5c9(0x10b)],_0x358aaf[_0x1cd5c9(0x116)]=![];const _0x9505e7={};return _0x9505e7[_0x1cd5c9(0xfc)]=_0xa0d3dc,_0x9505e7[_0x1cd5c9(0xf9)]=_0x358aaf,_0x4cf401[_0x1cd5c9(0xfd)](HELP_HEADER_MESSAGE[_0x1cd5c9(0xfb)])[_0x1cd5c9(0xf2)](HELP_FOOTER_MESSAGE)['options'](_0x9505e7)[_0x1cd5c9(0xd9)](_0x1623ef['cqDOA'])[_0x1cd5c9(0xcb)];},exports[a21_0x4e86b7(0x10d)]=async function(_0xb702d7){const _0xbce8fc=a21_0x4e86b7,_0x499803={'AZqLk':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','WgcYW':function(_0x591a81){return _0x591a81();},'UsXuL':_0xbce8fc(0xe8),'hXVFf':function(_0x5ed580,_0x1adf94,_0x5cf6ab,_0x35b293,_0x481197,_0x25ec2a,_0x4bba95){return _0x5ed580(_0x1adf94,_0x5cf6ab,_0x35b293,_0x481197,_0x25ec2a,_0x4bba95);},'hEYEs':_0xbce8fc(0xde),'evHKn':_0xbce8fc(0xd3),'yQJyl':function(_0x5d0e45,_0x4a8a68,_0x1c8074,_0x23d685,_0x73667c,_0xb67e6f,_0x529cdd){return _0x5d0e45(_0x4a8a68,_0x1c8074,_0x23d685,_0x73667c,_0xb67e6f,_0x529cdd);},'lXMDi':_0xbce8fc(0xe2),'emkDk':_0xbce8fc(0x109),'NMxKI':_0xbce8fc(0x11c),'gHfpH':function(_0x3eb664,_0x3e8c0a,_0x2e0887,_0x3343b7){return _0x3eb664(_0x3e8c0a,_0x2e0887,_0x3343b7);},'JYuff':function(_0x531000,_0x3240e0,_0x448ec8,_0x4870b7,_0x4acf5d,_0x4a0bfe,_0x5753e1){return _0x531000(_0x3240e0,_0x448ec8,_0x4870b7,_0x4acf5d,_0x4a0bfe,_0x5753e1);},'PFERN':function(_0x2f2f24,_0x52ee6d,_0x189e75){return _0x2f2f24(_0x52ee6d,_0x189e75);},'auGnD':function(_0x1e7bea,_0x41ba71,_0x2a3be4){return _0x1e7bea(_0x41ba71,_0x2a3be4);},'iOcVd':_0xbce8fc(0xe7),'iQWiG':function(_0x5e3040,_0xc38a14){return _0x5e3040===_0xc38a14;},'YyakH':_0xbce8fc(0x104),'DprMz':function(_0x5ecb40,_0x56f6cb,_0x3b3cc6,_0x1ede3b,_0x24d880,_0x24be7a,_0x329d7c){return _0x5ecb40(_0x56f6cb,_0x3b3cc6,_0x1ede3b,_0x24d880,_0x24be7a,_0x329d7c);},'bjSpT':'unauthorised','lEXWm':function(_0x378183,_0x55a253){return _0x378183===_0x55a253;},'TbjiO':'invalid-grid-id','rkdId':_0xbce8fc(0x119)};let _0x4aa7ef;try{!_0xb702d7[_0xbce8fc(0x114)]&&(logger[_0xbce8fc(0x11f)](_0x499803[_0xbce8fc(0xe9)]),process['exit'](0x1));!fs['existsSync'](_0x499803['WgcYW'](getCredentialsPath))&&(logger[_0xbce8fc(0x11f)](_0x499803[_0xbce8fc(0xd6)]),await _0x499803[_0xbce8fc(0xee)](sendInstrumentationEvent,_0xb702d7,_0x499803[_0xbce8fc(0x101)],messageTypes[_0xbce8fc(0x103)],_0x499803[_0xbce8fc(0xc7)],null,_0xb702d7),process[_0xbce8fc(0x108)](0x1));logger[_0xbce8fc(0xeb)](_0xbce8fc(0x10c)+_0xb702d7[_0xbce8fc(0x114)]),await _0x499803[_0xbce8fc(0xf0)](sendInstrumentationEvent,_0xb702d7,_0x499803[_0xbce8fc(0x101)],messageTypes['INFO'],null,null,_0xb702d7);const _0x3f8961=JSON[_0xbce8fc(0xdd)](fs['readFileSync'](_0x499803[_0xbce8fc(0x123)](getCredentialsPath)));global_registry[_0xbce8fc(0xf4)]=_0x3f8961[_0xbce8fc(0xf1)][_0xbce8fc(0xf6)],global_registry[_0xbce8fc(0xf8)]=_0x3f8961[_0xbce8fc(0xf1)]['password'];const _0x59e179=WS_ENDPOINT['replace'](_0x499803[_0xbce8fc(0xcf)],_0x3f8961[_0xbce8fc(0xf1)][_0xbce8fc(0xf6)])[_0xbce8fc(0x10a)](_0x499803[_0xbce8fc(0xd1)],_0x3f8961[_0xbce8fc(0xf1)][_0xbce8fc(0x11d)]),_0x344727={};_0x344727[_0xbce8fc(0xd5)]=ws,_0x344727[_0xbce8fc(0xd2)]=0x36ee80,_0x4aa7ef=new ReconnectingWebSocket(_0x59e179,[],_0x344727),logger[_0xbce8fc(0xda)](_0x499803[_0xbce8fc(0xd4)]),webSocketUtils['addListeners'](_0x4aa7ef,_0xb702d7[_0xbce8fc(0x11a)],_0xb702d7['password']);const [_0x2ebfe6,_0x15516b]=await _0x499803[_0xbce8fc(0x10e)](getGridDetails,_0x3f8961['Browserstack'][_0xbce8fc(0xf6)],_0x3f8961[_0xbce8fc(0xf1)]['password'],_0xb702d7[_0xbce8fc(0x114)]);if(_0x15516b){const _0x3435f9=_0x15516b[_0xbce8fc(0xeb)];global_registry['cloudProvider']=_0x3435f9[_0xbce8fc(0xe0)],global_registry['clusterRegion']=_0x3435f9[_0xbce8fc(0xfe)],global_registry[_0xbce8fc(0xe4)]=_0x3435f9[_0xbce8fc(0xe4)];const _0x556d1b=await _0x499803[_0xbce8fc(0xe3)](getCloudProviderObject,_0x3435f9[_0xbce8fc(0xe0)],_0x3435f9['clusterName'],_0x3435f9[_0xbce8fc(0xd8)],_0x4aa7ef,webSocketUtils,_0xb702d7),[_0x4af92f,_0x231367,_0x3610eb,_0x1f3048,_0x48c258,_0x4a236d]=await _0x499803[_0xbce8fc(0xcc)](createK8sClient,_0x556d1b,_0xb702d7[_0xbce8fc(0x110)]);await _0x499803['auGnD'](scaleDownHubDeployment,_0x231367,_0x3435f9['name']),logger['info'](_0x499803[_0xbce8fc(0x107)]),process['exit'](0x0);}_0x499803[_0xbce8fc(0xc8)](_0x2ebfe6['statusCode'],0x191)&&(logger[_0xbce8fc(0x11f)](_0x499803['YyakH']),await _0x499803['DprMz'](sendInstrumentationEvent,_0xb702d7,_0x499803[_0xbce8fc(0x101)],messageTypes[_0xbce8fc(0x103)],_0x499803['bjSpT'],null,_0xb702d7),process[_0xbce8fc(0x108)](0x1)),_0x499803[_0xbce8fc(0x100)](_0x2ebfe6[_0xbce8fc(0xfa)],0x190)&&(logger['error'](JSON[_0xbce8fc(0xdd)](_0x2ebfe6['body'])[_0xbce8fc(0x10f)]),await _0x499803[_0xbce8fc(0xe3)](sendInstrumentationEvent,_0xb702d7,_0x499803['hEYEs'],messageTypes[_0xbce8fc(0x103)],_0x499803['TbjiO'],null,_0xb702d7),process[_0xbce8fc(0x108)](0x1)),logger[_0xbce8fc(0x11f)](_0xbce8fc(0xec)+JSON[_0xbce8fc(0x112)](_0x2ebfe6)),await _0x499803[_0xbce8fc(0xf0)](sendInstrumentationEvent,_0xb702d7,_0x499803[_0xbce8fc(0x101)],messageTypes[_0xbce8fc(0x103)],_0x499803[_0xbce8fc(0x120)],_0x2ebfe6,_0xb702d7),process['exit'](0x1);}catch(_0x2ed967){const _0x2166b8=_0xbce8fc(0xc9)+_0x2ed967+'\x20\x0a'+JSON[_0xbce8fc(0x112)](_0x2ed967['stack'])+'\x20';logger[_0xbce8fc(0x11f)](_0x2166b8),process[_0xbce8fc(0x108)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x467ea8=a22_0x521e;(function(_0x2b115a,_0x40986a){const _0x237705=a22_0x521e,_0x4b676c=_0x2b115a();while(!![]){try{const _0x5c15b2=-parseInt(_0x237705(0x16d))/0x1*(-parseInt(_0x237705(0x15f))/0x2)+parseInt(_0x237705(0x1a4))/0x3+parseInt(_0x237705(0x15a))/0x4+-parseInt(_0x237705(0x169))/0x5+-parseInt(_0x237705(0x164))/0x6*(parseInt(_0x237705(0x162))/0x7)+parseInt(_0x237705(0x1b9))/0x8+-parseInt(_0x237705(0x177))/0x9;if(_0x5c15b2===_0x40986a)break;else _0x4b676c['push'](_0x4b676c['shift']());}catch(_0x3eba1a){_0x4b676c['push'](_0x4b676c['shift']());}}}(a22_0x3a6e,0x3d69f),require('dotenv')[a22_0x467ea8(0x1bf)]());let gridURL=a22_0x467ea8(0x183),bsApiUrl=a22_0x467ea8(0x167),agApiUrl='grid-api.browserstack.com';const _env=(process[a22_0x467ea8(0x18a)][a22_0x467ea8(0x182)]||a22_0x467ea8(0x184))['toLowerCase']();if(_env===a22_0x467ea8(0x198)||_env===a22_0x467ea8(0x199))gridURL=a22_0x467ea8(0x1a5),bsApiUrl=a22_0x467ea8(0x175),agApiUrl=a22_0x467ea8(0x1a6);else(_env==='preprod'||_env===a22_0x467ea8(0x174))&&(gridURL='grid-preprod.bsstag.com',bsApiUrl=a22_0x467ea8(0x18d),agApiUrl='grid-api-preprod.bsstag.com');exports['DASHBOARD_ENDPOINT']=process[a22_0x467ea8(0x18a)][a22_0x467ea8(0x1c0)]||gridURL,exports['BS_API_URL']=process['env'][a22_0x467ea8(0x17f)]||bsApiUrl,exports[a22_0x467ea8(0x178)]=process['env'][a22_0x467ea8(0x178)]||agApiUrl,exports[a22_0x467ea8(0x1b2)]=a22_0x467ea8(0x171)+this[a22_0x467ea8(0x178)]+a22_0x467ea8(0x17b),exports[a22_0x467ea8(0x1b1)]=a22_0x467ea8(0x19e),exports[a22_0x467ea8(0x158)]=a22_0x467ea8(0x168),exports[a22_0x467ea8(0x157)]=a22_0x467ea8(0x197),exports[a22_0x467ea8(0x1be)]=a22_0x467ea8(0x156),exports[a22_0x467ea8(0x193)]=a22_0x467ea8(0x1a8),exports[a22_0x467ea8(0x1a2)]=a22_0x467ea8(0x1ae),exports[a22_0x467ea8(0x191)]=a22_0x467ea8(0x159),exports['TURBOSCALE_DEPLOYMENT']=a22_0x467ea8(0x1a7),exports[a22_0x467ea8(0x1c2)]=a22_0x467ea8(0x15d),exports[a22_0x467ea8(0x170)]=a22_0x467ea8(0x166),exports[a22_0x467ea8(0x176)]=[this[a22_0x467ea8(0x1be)],this[a22_0x467ea8(0x1c2)],this['GCP']];const a22_0x5e2195={};a22_0x5e2195[a22_0x467ea8(0x1aa)]=a22_0x467ea8(0x172),a22_0x5e2195['Value']='BrowserStack';const a22_0x3e2674={};a22_0x3e2674[a22_0x467ea8(0x1aa)]='browserstack:service',a22_0x3e2674['Value']=a22_0x467ea8(0x186);const common_hst_tags_list=[a22_0x5e2195,a22_0x3e2674];if(process[a22_0x467ea8(0x18a)][a22_0x467ea8(0x19d)]){const parsedTags=process['env'][a22_0x467ea8(0x19d)][a22_0x467ea8(0x16e)](',');parsedTags[a22_0x467ea8(0x15b)](_0x3dd4e7=>{const _0x308594=a22_0x467ea8,_0x49b0e1=_0x3dd4e7[_0x308594(0x16e)](':'),_0xb15876={};_0xb15876['Key']=_0x49b0e1[0x0],_0xb15876[_0x308594(0x190)]=_0x49b0e1[0x1],common_hst_tags_list[_0x308594(0x1b3)](_0xb15876);});}exports[a22_0x467ea8(0x17a)]=common_hst_tags_list;const a22_0x923c5c={};a22_0x923c5c[a22_0x467ea8(0x172)]='BrowserStack',a22_0x923c5c[a22_0x467ea8(0x19c)]=a22_0x467ea8(0x186),exports['HST_CLUSTER_TAGS']=a22_0x923c5c,exports[a22_0x467ea8(0x1ab)]=[this['AWS']];function a22_0x521e(_0x1a4f13,_0x5c662e){const _0x3a6ee0=a22_0x3a6e();return a22_0x521e=function(_0x521eda,_0x1daa7f){_0x521eda=_0x521eda-0x155;let _0x289208=_0x3a6ee0[_0x521eda];return _0x289208;},a22_0x521e(_0x1a4f13,_0x5c662e);}const a22_0x3f950a={};a22_0x3f950a['LOG']=a22_0x467ea8(0x1af),a22_0x3f950a[a22_0x467ea8(0x1ad)]=a22_0x467ea8(0x16b),a22_0x3f950a[a22_0x467ea8(0x18b)]='gridUrl',a22_0x3f950a[a22_0x467ea8(0x1a3)]=a22_0x467ea8(0x15c),a22_0x3f950a['CLI_RUN_FINISHED']='cliRunFinished',exports[a22_0x467ea8(0x19f)]=a22_0x3f950a,exports[a22_0x467ea8(0x19a)]={},exports[a22_0x467ea8(0x173)]=a22_0x467ea8(0x19b);const a22_0x5d8628={};a22_0x5d8628[a22_0x467ea8(0x17d)]=a22_0x467ea8(0x16a)+this[a22_0x467ea8(0x173)],a22_0x5d8628['init']=a22_0x467ea8(0x195)+this[a22_0x467ea8(0x173)],a22_0x5d8628[a22_0x467ea8(0x18e)]=a22_0x467ea8(0x17e)+this[a22_0x467ea8(0x173)],a22_0x5d8628[a22_0x467ea8(0x1a0)]=a22_0x467ea8(0x188)+this[a22_0x467ea8(0x173)],a22_0x5d8628[a22_0x467ea8(0x1b8)]={},a22_0x5d8628[a22_0x467ea8(0x16c)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x467ea8(0x173)],a22_0x5d8628['connect']='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x467ea8(0x173)],a22_0x5d8628[a22_0x467ea8(0x1a9)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x467ea8(0x173)],a22_0x5d8628[a22_0x467ea8(0x161)]=a22_0x467ea8(0x1bd)+this[a22_0x467ea8(0x173)],a22_0x5d8628['pre_check']=a22_0x467ea8(0x185)+this[a22_0x467ea8(0x173)],a22_0x5d8628[a22_0x467ea8(0x1b8)]['root']=a22_0x467ea8(0x1b0)+this['LINK_MESSAGE'],a22_0x5d8628[a22_0x467ea8(0x1b8)][a22_0x467ea8(0x1bb)]=a22_0x467ea8(0x160)+this[a22_0x467ea8(0x173)],a22_0x5d8628[a22_0x467ea8(0x1b8)][a22_0x467ea8(0x181)]=a22_0x467ea8(0x187)+this[a22_0x467ea8(0x173)],exports[a22_0x467ea8(0x15e)]=a22_0x5d8628,exports[a22_0x467ea8(0x1b5)]=a22_0x467ea8(0x163);const a22_0x3d39a4={};a22_0x3d39a4[a22_0x467ea8(0x1c1)]=a22_0x467ea8(0x1b7),a22_0x3d39a4['ERROR']=a22_0x467ea8(0x155),a22_0x3d39a4[a22_0x467ea8(0x194)]=a22_0x467ea8(0x17c),a22_0x3d39a4[a22_0x467ea8(0x16f)]=a22_0x467ea8(0x1b6),a22_0x3d39a4[a22_0x467ea8(0x179)]=a22_0x467ea8(0x1ac),a22_0x3d39a4['NULL']=null,exports[a22_0x467ea8(0x192)]=a22_0x3d39a4,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x467ea8(0x180)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x467ea8(0x189)]='[REDACTED]';const a22_0x2cfba7={};a22_0x2cfba7[a22_0x467ea8(0x18c)]='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x3f4a9e={};a22_0x3f4a9e[a22_0x467ea8(0x1a1)]=a22_0x2cfba7,exports[a22_0x467ea8(0x196)]=a22_0x3f4a9e,exports[a22_0x467ea8(0x1b4)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x4cbeb6={};a22_0x4cbeb6[a22_0x467ea8(0x165)]=a22_0x467ea8(0x1ba),a22_0x4cbeb6[a22_0x467ea8(0x1bc)]=a22_0x467ea8(0x156),a22_0x4cbeb6[a22_0x467ea8(0x18f)]='us-east-1',exports['DEFAULT_CLUSTER_DETAILS']=a22_0x4cbeb6;function a22_0x3a6e(){const _0x4fa960=['info','root','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','BS_API_URL','RAW_ARGS_REGEX','gridProfile','BROWSERSTACK_ENV','grid.browserstack.com','prod','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','BrowserStack-Automate-TurboScale','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','REDACTED','env','GRID_URL','grid-profile','api-preprod.bsstag.com','configure','REGION','Value','CLUSTER_HUB_HA_STACK_NAME','messageTypes','CLUSTER_DEP_STACK_NAME','INFO','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','MessageDescription','high-scale-grid','staging','stag','global_registry','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','browserstack:service','TURBOSCALE_CUSTOM_TAGS','credentials','WS_EVENTS','create','pre-check','CLUSTER_AUTOSCALER_STACK_NAME','CLI_RUN_STARTED','858987vZvtSO','grid-devhst.bsstag.com','grid-api-devhst.bsstag.com','browserstack-turboscale-grid','BSTACK-ATS-CLUSTER','start','Key','SUPPORTED_CLOUD_PROVIDERS','unknown','RESOURCES','BSTACK-ATS-CLUSTER-AUTOSCALER','log','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','CP_CONFIG_FILE','WS_ENDPOINT','push','TRIAL_GRID_URL','HELP_FOOTER_MESSAGE','warning','success','list','1741848XxDrjt','high-scale-grid-cluster','grid','CLOUD_PROVIDER','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','AWS','config','DASHBOARD_ENDPOINT','SUCCESS','AZURE','error','aws','DEFAULT_GRID_NAME','IAM_USER_NAME','BSTACK-ATS-CLUSTER-HUB-HA','743900PYggRD','forEach','cliRunStarted','azure','HELP_HEADER_MESSAGE','12NBQtAA','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','stop','2261441wEQzvF','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','6ENYlPQ','CLUSTER','gcp','api.browserstack.com','BrowserStackIAMUser','868845QXPhyJ','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','resourceInfo','delete','26423zVOZyK','split','WARNING','GCP','wss://','browserstack:managedBy','LINK_MESSAGE','pre-prod','api-devhst.bsstag.com','ALL_SUPPORTED_CLOUD_PROVIDERS','901710tWkfSS','AG_API_URL','UNKNOWN','COMMON_HST_TAGS','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>'];a22_0x3a6e=function(){return _0x4fa960;};return a22_0x3a6e();}
|
package/ats/src/config/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a23_0x1551c0=a23_0x22aa;(function(_0x3a1dae,_0x9b75f1){const _0x35d140=a23_0x22aa,_0x1f2f7e=_0x3a1dae();while(!![]){try{const _0x470bf5=parseInt(_0x35d140(0x10a))/0x1*(parseInt(_0x35d140(0x104))/0x2)+-parseInt(_0x35d140(0x115))/0x3*(-parseInt(_0x35d140(0x112))/0x4)+-parseInt(_0x35d140(0x121))/0x5+-parseInt(_0x35d140(0x10d))/0x6*(parseInt(_0x35d140(0x11b))/0x7)+-parseInt(_0x35d140(0x114))/0x8+parseInt(_0x35d140(0x116))/0x9+parseInt(_0x35d140(0x10f))/0xa*(-parseInt(_0x35d140(0x102))/0xb);if(_0x470bf5===_0x9b75f1)break;else _0x1f2f7e['push'](_0x1f2f7e['shift']());}catch(_0x56fbb7){_0x1f2f7e['push'](_0x1f2f7e['shift']());}}}(a23_0xedbb,0xbfa8b));const winston=require(a23_0x1551c0(0x11d)),fs=require('fs'),path=require('path'),logDir=a23_0x1551c0(0x109);!fs[a23_0x1551c0(0x103)](logDir)&&fs['mkdirSync'](logDir);function a23_0x22aa(_0x9ad223,_0x150752){const _0xedbb16=a23_0xedbb();return a23_0x22aa=function(_0x22aab7,_0xd966c7){_0x22aab7=_0x22aab7-0x102;let _0x4542a6=_0xedbb16[_0x22aab7];return _0x4542a6;},a23_0x22aa(_0x9ad223,_0x150752);}const a23_0x17c4f6={};a23_0x17c4f6[a23_0x1551c0(0x11e)]=a23_0x1551c0(0x107);function a23_0xedbb(){const _0x45d587=['37898wydQsY','createLogger','winston','format','debug','logger','7472740bkMKsU','11NStPEZ','existsSync','10170bnimek','name','printf','YYYY-MM-DD\x20HH:mm:ss','Console','log','178lClxNV','File','fileLogger','480bfPlxi','join','5784880YYQbNP','usage.log','timestamp','1640pdDdMJ','level','3304088qBttrz','10209IqTeYK','12634578nTDrzG','colorize','\x20-\x20','events.log','transports'];a23_0xedbb=function(){return _0x45d587;};return a23_0xedbb();}const a23_0x243b91={};a23_0x243b91[a23_0x1551c0(0x113)]=!![];const a23_0x7a4d81={};a23_0x7a4d81[a23_0x1551c0(0x105)]='console.info',exports[a23_0x1551c0(0x120)]=new winston[(a23_0x1551c0(0x11c))]({'format':winston[a23_0x1551c0(0x11e)]['combine'](winston[a23_0x1551c0(0x11e)][a23_0x1551c0(0x111)](a23_0x17c4f6),winston['format'][a23_0x1551c0(0x117)](a23_0x243b91),winston['format'][a23_0x1551c0(0x106)](_0x2a64b1=>_0x2a64b1[a23_0x1551c0(0x111)]+a23_0x1551c0(0x118)+_0x2a64b1[a23_0x1551c0(0x113)]+':\x20'+_0x2a64b1['message'])),'transports':[new winston[(a23_0x1551c0(0x11a))][(a23_0x1551c0(0x108))](a23_0x7a4d81),new winston[(a23_0x1551c0(0x11a))][(a23_0x1551c0(0x10b))]({'filename':path[a23_0x1551c0(0x10e)](logDir,a23_0x1551c0(0x119)),'level':a23_0x1551c0(0x11f)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x1551c0(0x11a))][(a23_0x1551c0(0x10b))]({'filename':path[a23_0x1551c0(0x10e)](logDir,a23_0x1551c0(0x110)),'level':a23_0x1551c0(0x11f)})]};exports[a23_0x1551c0(0x10c)]=new winston[(a23_0x1551c0(0x11c))](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_0xdf55cd=a24_0x357b;function a24_0x357b(_0x5e2652,_0x5c17c8){const _0x41ebc0=a24_0x41eb();return a24_0x357b=function(_0x357be7,_0x598e69){_0x357be7=_0x357be7-0x14d;let _0x28f204=_0x41ebc0[_0x357be7];return _0x28f204;},a24_0x357b(_0x5e2652,_0x5c17c8);}(function(_0x70793a,_0x25ef85){const _0x52a514=a24_0x357b,_0x2fdc35=_0x70793a();while(!![]){try{const _0x243c31=parseInt(_0x52a514(0x15b))/0x1+parseInt(_0x52a514(0x15c))/0x2*(-parseInt(_0x52a514(0x152))/0x3)+-parseInt(_0x52a514(0x159))/0x4+parseInt(_0x52a514(0x15a))/0x5+parseInt(_0x52a514(0x155))/0x6+-parseInt(_0x52a514(0x151))/0x7*(-parseInt(_0x52a514(0x157))/0x8)+parseInt(_0x52a514(0x15f))/0x9;if(_0x243c31===_0x25ef85)break;else _0x2fdc35['push'](_0x2fdc35['shift']());}catch(_0x59a608){_0x2fdc35['push'](_0x2fdc35['shift']());}}}(a24_0x41eb,0xf2391));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0xdf55cd(0x14e));process[a24_0xdf55cd(0x15d)][a24_0xdf55cd(0x156)]=0x1;function a24_0x41eb(){const _0x1bae2f=['epilogue','5731620eRvWwo','3437960bGKJJe','744360QICBny','2338TLJXnM','env','help','893700RHtsDs','commandDir','./config/constants','vAnAS','root','7DvqVUs','474INQZzL','uMwDA','demandCommand','4065774RolDiU','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','3206968PbZziM'];a24_0x41eb=function(){return _0x1bae2f;};return a24_0x41eb();}function run(_0x1cd999){const _0x4d296f=a24_0xdf55cd,_0x3b0b71={};_0x3b0b71['vAnAS']='commands',_0x3b0b71[_0x4d296f(0x153)]=_0x4d296f(0x15e);const _0x9d636e=_0x3b0b71;_0x1cd999['usage'](HELP_HEADER_MESSAGE[_0x4d296f(0x150)])[_0x4d296f(0x14d)](_0x9d636e[_0x4d296f(0x14f)])[_0x4d296f(0x154)]()['help'](_0x9d636e['uMwDA'])[_0x4d296f(0x158)](HELP_FOOTER_MESSAGE);}module['exports']=run;
|