browserstack-node-sdk 1.52.0 → 1.52.1
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 +4 -3
- 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/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/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a15_0x3d64(_0x23bb11,_0x3b9bab){const _0x1d9b52=a15_0x1d9b();return a15_0x3d64=function(_0x3d643f,_0x1848be){_0x3d643f=_0x3d643f-0x1e8;let _0x5bde63=_0x1d9b52[_0x3d643f];return _0x5bde63;},a15_0x3d64(_0x23bb11,_0x3b9bab);}const a15_0x59a238=a15_0x3d64;(function(_0x42e752,_0x4c2687){const _0x593494=a15_0x3d64,_0x1ed1f3=_0x42e752();while(!![]){try{const _0x563bad=parseInt(_0x593494(0x1e9))/0x1*(-parseInt(_0x593494(0x225))/0x2)+parseInt(_0x593494(0x1f1))/0x3*(-parseInt(_0x593494(0x205))/0x4)+parseInt(_0x593494(0x202))/0x5+-parseInt(_0x593494(0x23b))/0x6*(-parseInt(_0x593494(0x1ef))/0x7)+-parseInt(_0x593494(0x233))/0x8*(-parseInt(_0x593494(0x20e))/0x9)+-parseInt(_0x593494(0x1f3))/0xa+parseInt(_0x593494(0x21a))/0xb*(parseInt(_0x593494(0x238))/0xc);if(_0x563bad===_0x4c2687)break;else _0x1ed1f3['push'](_0x1ed1f3['shift']());}catch(_0x37e0cd){_0x1ed1f3['push'](_0x1ed1f3['shift']());}}}(a15_0x1d9b,0xb0b36));const fs=require('fs'),got=require(a15_0x59a238(0x22a)),{table}=require(a15_0x59a238(0x229)),{v4:uuidv4}=require(a15_0x59a238(0x1f7)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x59a238(0x23a));exports[a15_0x59a238(0x223)]=a15_0x59a238(0x1ea),exports[a15_0x59a238(0x214)]=a15_0x59a238(0x210),exports[a15_0x59a238(0x206)]=function(_0x33fba0){const _0x2c04ae=a15_0x59a238,_0xccedfb={};_0xccedfb[_0x2c04ae(0x235)]=_0x2c04ae(0x224),_0xccedfb[_0x2c04ae(0x217)]=_0x2c04ae(0x1fb),_0xccedfb['OapYq']=_0x2c04ae(0x234);const _0x5ad769=_0xccedfb,_0x436f1c={};_0x436f1c[_0x2c04ae(0x200)]=_0x5ad769[_0x2c04ae(0x235)],_0x436f1c['type']=_0x5ad769[_0x2c04ae(0x217)];const _0xd24640={};return _0xd24640[_0x2c04ae(0x216)]=_0x436f1c,_0x33fba0[_0x2c04ae(0x20c)](HELP_HEADER_MESSAGE[_0x2c04ae(0x239)][_0x2c04ae(0x1f6)])[_0x2c04ae(0x204)](HELP_FOOTER_MESSAGE)['options'](_0xd24640)[_0x2c04ae(0x234)](_0x5ad769['OapYq'])['argv'];},exports[a15_0x59a238(0x1e8)]=async function(_0x35267b){const _0x2a079c=a15_0x59a238,_0x308635={'ETvPd':function(_0x539b07){return _0x539b07();},'HXYBU':function(_0x43ab21){return _0x43ab21();},'GqOeY':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','OrsPw':function(_0x57c320,_0x28e2dd,_0x1e8ea5,_0x64571,_0x507ebb,_0xd569ab,_0x3716f8){return _0x57c320(_0x28e2dd,_0x1e8ea5,_0x64571,_0x507ebb,_0xd569ab,_0x3716f8);},'SFiCO':_0x2a079c(0x211),'Pbiir':'init-not-called','timuo':function(_0x26545d){return _0x26545d();},'jYeuq':_0x2a079c(0x1f9),'citDS':function(_0xc8601,_0x78b807,_0xd95596){return _0xc8601(_0x78b807,_0xd95596);},'qCNKc':function(_0x26bdd5,_0xce25a2,_0x56af54,_0x37c0ed,_0x1aca49,_0xcaedef,_0x1f13b8){return _0x26bdd5(_0xce25a2,_0x56af54,_0x37c0ed,_0x1aca49,_0xcaedef,_0x1f13b8);},'NNRnZ':function(_0x30a975,_0xead10e){return _0x30a975!==_0xead10e;},'pJlCi':function(_0x244c04,_0xa105aa){return _0x244c04!==_0xa105aa;},'ARQuL':function(_0x2e2691,_0x8a5cd4){return _0x2e2691===_0x8a5cd4;},'SIEic':_0x2a079c(0x226),'BKoDE':'grid-id','HkvlX':_0x2a079c(0x1ec),'EVNmL':_0x2a079c(0x1fd),'cgQGU':_0x2a079c(0x218),'TxIat':_0x2a079c(0x203),'yhFDZ':'cluster-name','xxBNf':function(_0x5959cc,_0x13a299){return _0x5959cc(_0x13a299);},'SKwBj':function(_0x551faa,_0x595289){return _0x551faa===_0x595289;},'JZnjZ':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','gmWvY':_0x2a079c(0x215),'ZqIRt':function(_0x348333,_0x35d0be,_0x1d8420,_0x36001f,_0x48f3dd,_0x5be1d0,_0x3fec2b){return _0x348333(_0x35d0be,_0x1d8420,_0x36001f,_0x48f3dd,_0x5be1d0,_0x3fec2b);},'hJPFF':'server-error','pVVuP':_0x2a079c(0x220)};try{global_registry['requestId']=_0x308635['ETvPd'](uuidv4);!fs[_0x2a079c(0x232)](_0x308635[_0x2a079c(0x1f5)](getCredentialsPath))&&(console['error'](_0x308635['GqOeY']),await _0x308635[_0x2a079c(0x1f8)](sendInstrumentationEvent,_0x35267b,_0x308635[_0x2a079c(0x20b)],messageTypes[_0x2a079c(0x236)],_0x308635[_0x2a079c(0x20d)],null,_0x35267b),process['exit'](0x1));const _0x5873d2=JSON['parse'](fs[_0x2a079c(0x1ed)](_0x308635['timuo'](getCredentialsPath)));let _0x1f0aba=_0x2a079c(0x21b)+AG_API_URL+_0x2a079c(0x213);_0x35267b[_0x2a079c(0x222)]&&(_0x1f0aba='https://'+AG_API_URL+_0x2a079c(0x1fc));const _0x4ca323={'method':_0x308635['jYeuq'],'headers':_0x308635[_0x2a079c(0x1f4)](getAuthHeader,_0x5873d2[_0x2a079c(0x1fe)][_0x2a079c(0x201)],_0x5873d2[_0x2a079c(0x1fe)][_0x2a079c(0x1eb)]),'throwHttpErrors':![]};global_registry[_0x2a079c(0x21f)]=_0x5873d2[_0x2a079c(0x1fe)][_0x2a079c(0x201)],global_registry['bstackAccesskey']=_0x5873d2['Browserstack'][_0x2a079c(0x1eb)],_0x308635[_0x2a079c(0x20f)](sendInstrumentationEvent,_0x35267b,_0x308635[_0x2a079c(0x20b)],messageTypes['INFO'],null,null,_0x35267b);const _0x1b5765=await _0x308635['citDS'](got,_0x1f0aba,_0x4ca323);if(_0x308635[_0x2a079c(0x227)](_0x1b5765,null)&&_0x308635[_0x2a079c(0x22b)](_0x1b5765,undefined)&&_0x308635['ARQuL'](_0x1b5765[_0x2a079c(0x209)],0xc8)){const _0x85abd4=JSON['parse'](_0x1b5765[_0x2a079c(0x237)]);console[_0x2a079c(0x21d)](_0x308635[_0x2a079c(0x212)]);const _0x488eb1=[];_0x488eb1[_0x2a079c(0x1f0)]([_0x308635[_0x2a079c(0x1fa)],_0x308635[_0x2a079c(0x22f)],_0x308635[_0x2a079c(0x230)],_0x308635['cgQGU'],_0x308635[_0x2a079c(0x22e)],_0x308635['yhFDZ']]),_0x85abd4[_0x2a079c(0x22d)](_0x3eb1fe=>{const _0x382331=_0x2a079c;_0x488eb1[_0x382331(0x1f0)]([_0x3eb1fe['id'],_0x3eb1fe[_0x382331(0x22c)],_0x3eb1fe[_0x382331(0x1fd)],_0x3eb1fe[_0x382331(0x218)],_0x3eb1fe[_0x382331(0x203)],_0x3eb1fe[_0x382331(0x221)]]);}),console['log'](_0x308635[_0x2a079c(0x1ff)](table,_0x488eb1)),process[_0x2a079c(0x21c)](0x0);}_0x308635['SKwBj'](_0x1b5765['statusCode'],0x191)&&(console[_0x2a079c(0x231)](_0x308635[_0x2a079c(0x1ee)]),await _0x308635['OrsPw'](sendInstrumentationEvent,_0x35267b,_0x308635[_0x2a079c(0x20b)],messageTypes[_0x2a079c(0x236)],_0x308635[_0x2a079c(0x219)],null,_0x35267b),process['exit'](0x1)),console['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x2a079c(0x20a)](_0x1b5765)),await _0x308635[_0x2a079c(0x1f2)](sendInstrumentationEvent,_0x35267b,_0x308635[_0x2a079c(0x20b)],messageTypes[_0x2a079c(0x236)],_0x308635[_0x2a079c(0x228)],_0x1b5765,_0x35267b),process['exit'](0x1);}catch(_0x2af570){console[_0x2a079c(0x231)](_0x2a079c(0x207)+_0x2af570[_0x2a079c(0x208)]),await _0x308635[_0x2a079c(0x1f2)](sendInstrumentationEvent,_0x35267b,_0x308635[_0x2a079c(0x20b)],messageTypes[_0x2a079c(0x236)],_0x308635[_0x2a079c(0x21e)],_0x2af570,_0x35267b),process['exit'](0x1);}};function a15_0x1d9b(){const _0x1cd1e6=['17328REWxuK','list','../../utils/instrumentationUtils','6PZaEdK','handler','171230dqLCGn','grids','password','grid-name','readFileSync','JZnjZ','5321561OVpGeP','push','606171RVVGtB','ZqIRt','12927230kOHbHP','citDS','HXYBU','grid','uuid','OrsPw','GET','BKoDE','boolean','/packages/cli/get-all-grids','status','Browserstack','xxBNf','description','username','2712590WTiQtM','queued','epilogue','8LBEAHs','builder','Failed\x20to\x20list\x20resources!\x20Error:\x20','stack','statusCode','stringify','SFiCO','usage','Pbiir','954YdAKYZ','qCNKc','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','list-grids-called','SIEic','/packages/cli/get-grids','desc','unauthorised','all-grids','jRkaa','running','gmWvY','8745OWUxVg','https://','exit','log','pVVuP','bstackUsername','unknown-error','clusterName','allGrids','command','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','6EUKaXt','\x0aFound\x20the\x20following\x20grids:\x0a','NNRnZ','hJPFF','table','got','pJlCi','name','forEach','TxIat','HkvlX','EVNmL','error','existsSync','36496SCfKgz','help','QiWgX','ERROR','body'];a15_0x1d9b=function(){return _0x1cd1e6;};return a15_0x1d9b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a16_0x1dd80e=a16_0x40b9;(function(_0x538393,_0x20c081){const _0x56e05c=a16_0x40b9,_0x42f628=_0x538393();while(!![]){try{const _0x2a0c3a=-parseInt(_0x56e05c(0x17e))/0x1+parseInt(_0x56e05c(0x187))/0x2+-parseInt(_0x56e05c(0x17f))/0x3+parseInt(_0x56e05c(0x186))/0x4+-parseInt(_0x56e05c(0x178))/0x5*(parseInt(_0x56e05c(0x17b))/0x6)+-parseInt(_0x56e05c(0x17a))/0x7+parseInt(_0x56e05c(0x18b))/0x8;if(_0x2a0c3a===_0x20c081)break;else _0x42f628['push'](_0x42f628['shift']());}catch(_0x53bbc4){_0x42f628['push'](_0x42f628['shift']());}}}(a16_0x19bc,0x37e19));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x1dd80e(0x184));function a16_0x40b9(_0x2db480,_0x21e8cc){const _0x19bc31=a16_0x19bc();return a16_0x40b9=function(_0x40b988,_0x2c7b90){_0x40b988=_0x40b988-0x177;let _0x3c2d18=_0x19bc31[_0x40b988];return _0x3c2d18;},a16_0x40b9(_0x2db480,_0x21e8cc);}function a16_0x19bc(){const _0x1bc42c=['2161684UFYxXI','2466372TDcjPN','demandCommand','recommendCommands','6862nSVwUb','451890odoUAq','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','epilogue','strict','LFLxy','../config/constants','usage','233820SIUDNW','796334fDszlt','handler','commandDir','builder','5197064VskAlA','PRBOI','5bqawHv','precheck_commands'];a16_0x19bc=function(){return _0x1bc42c;};return a16_0x19bc();}exports['command']='pre-check',exports['desc']=a16_0x1dd80e(0x180),exports[a16_0x1dd80e(0x18a)]=function(_0x40f705){const _0x471064=a16_0x1dd80e,_0xc0d789={};_0xc0d789[_0x471064(0x177)]=_0x471064(0x179),_0xc0d789[_0x471064(0x183)]='help';const _0x1ed5a3=_0xc0d789;return _0x40f705[_0x471064(0x185)](HELP_HEADER_MESSAGE['pre_check'])[_0x471064(0x181)](HELP_FOOTER_MESSAGE)[_0x471064(0x189)](_0x1ed5a3[_0x471064(0x177)])[_0x471064(0x17c)]()[_0x471064(0x17d)]()[_0x471064(0x182)]()['help'](_0x1ed5a3[_0x471064(0x183)]);},exports[a16_0x1dd80e(0x188)]=function(_0x5906c8){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a17_0x5505b5=a17_0x2047;function a17_0x2047(_0x4a16b8,_0x380734){const _0x12d487=a17_0x12d4();return a17_0x2047=function(_0x2047fa,_0x13cc96){_0x2047fa=_0x2047fa-0xaf;let _0x4d7277=_0x12d487[_0x2047fa];return _0x4d7277;},a17_0x2047(_0x4a16b8,_0x380734);}(function(_0x13763e,_0x110970){const _0x3f6df8=a17_0x2047,_0x5a7b95=_0x13763e();while(!![]){try{const _0x2fc373=-parseInt(_0x3f6df8(0x193))/0x1+parseInt(_0x3f6df8(0x118))/0x2+-parseInt(_0x3f6df8(0x14c))/0x3+-parseInt(_0x3f6df8(0xfe))/0x4+parseInt(_0x3f6df8(0x16e))/0x5*(parseInt(_0x3f6df8(0x13f))/0x6)+-parseInt(_0x3f6df8(0x17d))/0x7+parseInt(_0x3f6df8(0x177))/0x8;if(_0x2fc373===_0x110970)break;else _0x5a7b95['push'](_0x5a7b95['shift']());}catch(_0x226b6b){_0x5a7b95['push'](_0x5a7b95['shift']());}}}(a17_0x12d4,0xdd2c4));const fs=require('fs'),ws=require('ws'),got=require(a17_0x5505b5(0x18a)),{v4:uuidv4}=require(a17_0x5505b5(0x104)),ReconnectingWebSocket=require(a17_0x5505b5(0x167)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x5505b5(0xf1)),{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_0x5505b5(0xb0)),{getCloudProviderObjectWithOutInit}=require(a17_0x5505b5(0x168)),webSocketUtils=require(a17_0x5505b5(0x14f)),{sendInstrumentationEvent}=require(a17_0x5505b5(0xd2));exports['command']=a17_0x5505b5(0x10d),exports[a17_0x5505b5(0xec)]=a17_0x5505b5(0x115),exports[a17_0x5505b5(0x18b)]=function(_0x5f44da){const _0x30d3be=a17_0x5505b5,_0x4a7a7e={};_0x4a7a7e[_0x30d3be(0x154)]=_0x30d3be(0x13d),_0x4a7a7e[_0x30d3be(0x161)]=_0x30d3be(0x17c),_0x4a7a7e[_0x30d3be(0x111)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x4a7a7e[_0x30d3be(0xe2)]=_0x30d3be(0xe1),_0x4a7a7e[_0x30d3be(0x16c)]=_0x30d3be(0xe5),_0x4a7a7e[_0x30d3be(0x1a4)]=_0x30d3be(0x165);const _0x2aee67=_0x4a7a7e,_0x35330c={};_0x35330c['description']=_0x2aee67['TTzrZ'],_0x35330c[_0x30d3be(0x176)]=_0x2aee67[_0x30d3be(0x161)];const _0x26e292={};_0x26e292[_0x30d3be(0x17a)]=_0x2aee67[_0x30d3be(0x111)],_0x26e292[_0x30d3be(0x176)]=_0x2aee67[_0x30d3be(0x161)];const _0x2bdff7={};_0x2bdff7[_0x30d3be(0x17a)]=_0x2aee67[_0x30d3be(0xe2)],_0x2bdff7[_0x30d3be(0x176)]=_0x2aee67['XvuxJ'];const _0x81915e={};_0x81915e[_0x30d3be(0x17a)]=_0x2aee67[_0x30d3be(0x16c)],_0x81915e[_0x30d3be(0x176)]=_0x2aee67[_0x30d3be(0x161)];const _0xb54255={};return _0xb54255[_0x30d3be(0x130)]=_0x35330c,_0xb54255['cloud-provider']=_0x26e292,_0xb54255[_0x30d3be(0x1a8)]=_0x2bdff7,_0xb54255[_0x30d3be(0x189)]=_0x81915e,_0x5f44da[_0x30d3be(0x122)](HELP_HEADER_MESSAGE['pre_check'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x30d3be(0xd8)](_0xb54255)['help'](_0x2aee67['WVQNK'])[_0x30d3be(0x109)];};async function inputValidation(_0x5919de,_0x4e7c3a){const _0x27ae1c=a17_0x5505b5,_0x44663f={'dtNUl':'error','PRmBv':_0x27ae1c(0x198),'AnGTH':function(_0x180bbd,_0x2e433c){return _0x180bbd+_0x2e433c;},'KeavP':_0x27ae1c(0xde),'ulGIy':'Failure','VhQre':function(_0x563552,_0x52e5a2){return _0x563552||_0x52e5a2;},'Znirc':_0x27ae1c(0x194),'DgqQK':'Error\x20Details:\x0a','rxObB':_0x27ae1c(0x183),'BIUvO':_0x27ae1c(0x130),'klRDE':_0x27ae1c(0x13d),'rFiFD':_0x27ae1c(0x17c),'shvpv':_0x27ae1c(0x134),'TdbWR':_0x27ae1c(0xe1),'ZLssy':_0x27ae1c(0xe5),'xTrSy':'help','aFqFh':'region','TeesU':'is\x20already\x20present','zePHN':'will\x20be\x20created','RZjxx':function(_0x3e76a3,_0x52a1d4){return _0x3e76a3===_0x52a1d4;},'dGpcb':'aVEUY','gJzGq':function(_0x1225ab,_0x330fe5){return _0x1225ab===_0x330fe5;},'wqJNq':'ZbFWM','CTwoH':'TtIEA','lgUbz':function(_0x48f033,_0x4d170c){return _0x48f033!==_0x4d170c;},'rOpCR':_0x27ae1c(0x191),'gzCRE':'zicqU','vQsEe':function(_0x248edc,_0x31cc50){return _0x248edc===_0x31cc50;},'oAMvi':_0x27ae1c(0x11b),'UWbic':_0x27ae1c(0x171),'eUXse':function(_0x496127,_0x23d42c){return _0x496127!==_0x23d42c;},'KbGst':'jztlC','aIIWV':_0x27ae1c(0x121),'PmWNf':function(_0x2dbfcd,_0x319d40){return _0x2dbfcd>_0x319d40;},'iedBw':function(_0x26f6c8,_0x6354f2){return _0x26f6c8!==_0x6354f2;},'wnyWs':_0x27ae1c(0xeb),'TNQgO':function(_0x14281a,_0x4a471a,_0x5c13a8,_0x268ec2,_0x18d0a4,_0x5b94de,_0x164cb8,_0x36bc0c){return _0x14281a(_0x4a471a,_0x5c13a8,_0x268ec2,_0x18d0a4,_0x5b94de,_0x164cb8,_0x36bc0c);},'dubpa':_0x27ae1c(0x195),'XZaVM':_0x27ae1c(0x166),'aCEuZ':function(_0x4dfb18,_0x39d6f5){return _0x4dfb18===_0x39d6f5;},'wlHcP':'jRCmB','hXJNs':_0x27ae1c(0xc9),'qDymd':_0x27ae1c(0x12a),'hwwiE':_0x27ae1c(0x174),'NTFim':'rqbMb','mpJci':_0x27ae1c(0xc4),'NVbPb':function(_0x57b88c,_0x26f9d0){return _0x57b88c===_0x26f9d0;},'WSwqA':_0x27ae1c(0x14d),'vrrEn':_0x27ae1c(0x157),'ZDSqy':_0x27ae1c(0xd3),'JPkjE':function(_0x15b3bc,_0x9b5cdf,_0x3a33f6){return _0x15b3bc(_0x9b5cdf,_0x3a33f6);},'zSQjs':function(_0x344597,_0x2eb20a,_0x4eb63f,_0x5ea556,_0x238663,_0x3cee29){return _0x344597(_0x2eb20a,_0x4eb63f,_0x5ea556,_0x238663,_0x3cee29);},'uaaHO':'pre-check','YSvWr':_0x27ae1c(0x189),'mfpMm':function(_0x444565,_0x23a26f){return _0x444565===_0x23a26f;},'csJYB':'Fhcvn','vCexu':'zQmkq','moVKh':function(_0x1d60aa,_0x4850d5){return _0x1d60aa(_0x4850d5);},'BXXhQ':function(_0x5d867b,_0x5e1515){return _0x5d867b===_0x5e1515;},'PKLUx':_0x27ae1c(0x141),'Vrxnk':_0x27ae1c(0x188),'sWNQl':_0x27ae1c(0x100),'oyHJI':function(_0x2c697a,_0x298571){return _0x2c697a!==_0x298571;},'YOPKu':'Pfazh','Hmvgt':_0x27ae1c(0xb8),'HlWSC':'Grid\x20profile\x20fetched\x20for\x20pre-check','FCPVa':function(_0x1d4daa,_0x4454b1){return _0x1d4daa===_0x4454b1;},'rNYir':_0x27ae1c(0x196),'yunRv':_0x27ae1c(0xe3),'ipPXC':_0x27ae1c(0x185),'rNlrB':_0x27ae1c(0x17e)};let _0x52acf1;try{if(_0x44663f[_0x27ae1c(0xcc)](_0x44663f[_0x27ae1c(0xfc)],_0x44663f[_0x27ae1c(0xfc)])){if(_0x5919de['clusterName']||_0x5919de[_0x27ae1c(0x10a)]||_0x5919de['region']){if(_0x44663f['gJzGq'](_0x44663f[_0x27ae1c(0x15a)],_0x44663f[_0x27ae1c(0x10c)])){const _0x27f720={};_0x27f720['type']=_0x2804e6[_0x27ae1c(0xc5)],_0x27f720[_0x27ae1c(0x16d)]=_0x3c66c2,_0x38a5a5['sendEventToBackend'](_0x2ed9e3,_0x27f720,_0x44663f[_0x27ae1c(0x103)],!![]);}else{const _0x1917e6=[];!_0x5919de['clusterName']&&(_0x44663f['lgUbz'](_0x44663f[_0x27ae1c(0x153)],_0x44663f['gzCRE'])?_0x1917e6[_0x27ae1c(0xdb)](_0x44663f[_0x27ae1c(0x11c)]):_0x45c071[_0x27ae1c(0xdb)](_0x44663f[_0x27ae1c(0xb4)]));;if(!_0x5919de[_0x27ae1c(0x10a)]){if(_0x44663f['vQsEe'](_0x44663f['oAMvi'],_0x44663f[_0x27ae1c(0x1ab)])){const {header:_0x2c0142,response:_0x5d0796}=_0x1afebc,{status:_0x4e6b95,data:_0x5449bf,error:_0x59b430}=_0x5d0796;_0x1e473e+=_0x2c0142+'\x20#'+_0x44663f[_0x27ae1c(0xba)](_0x3b5ce1,0x1)+'\x0a',_0x30ea39+=_0x27ae1c(0x190)+(_0x4e6b95?_0x44663f[_0x27ae1c(0xf6)]:_0x44663f[_0x27ae1c(0x12f)])+'\x0a',_0x4b6e57+=_0x27ae1c(0x146)+_0x44663f[_0x27ae1c(0xfa)](_0x5449bf,_0x44663f[_0x27ae1c(0xf2)])+'\x0a',_0x59b430&&(_0x56c91c+=_0x44663f['DgqQK'],_0x489f60+=_0x27ae1c(0x186)+(_0x59b430[_0x27ae1c(0x16d)]||_0x44663f[_0x27ae1c(0xf2)])+'\x0a',_0x1cb6b6+=_0x27ae1c(0xe4)+(_0x59b430[_0x27ae1c(0x178)]||_0x44663f[_0x27ae1c(0xf2)])+'\x0a',_0xb8518f+=_0x27ae1c(0xd6)+(_0x59b430[_0x27ae1c(0x120)]||_0x44663f[_0x27ae1c(0xf2)])+'\x0a'),_0x5443bd+='\x0a\x0a';}else _0x1917e6[_0x27ae1c(0xdb)](_0x44663f[_0x27ae1c(0xb4)]);};!_0x5919de[_0x27ae1c(0x1a8)]&&(_0x44663f[_0x27ae1c(0x10f)](_0x44663f[_0x27ae1c(0xe8)],_0x44663f[_0x27ae1c(0xee)])?_0x1917e6[_0x27ae1c(0xdb)](_0x44663f['aFqFh']):(_0xf6008a[_0x27ae1c(0xfb)]('['+_0x149f1c+_0x27ae1c(0xd4)+_0x59aa19['status']+_0x27ae1c(0x18f)+_0x1e3814[_0x27ae1c(0xea)]+_0x27ae1c(0x179)+_0x272b17[_0x27ae1c(0xfd)]),_0x52b1b8[_0x27ae1c(0xfd)]&&_0x2467c2[_0x27ae1c(0xfd)](_0x27ae1c(0x101)+_0xdd9350[_0x27ae1c(0xfd)][_0x27ae1c(0x120)])));;_0x44663f['PmWNf'](_0x1917e6['length'],0x0)&&(_0x44663f[_0x27ae1c(0x151)](_0x44663f['wnyWs'],_0x44663f['wnyWs'])?(_0x37957a[_0x27ae1c(0xfd)](_0x44663f[_0x27ae1c(0x158)]),_0x41fa30[_0x27ae1c(0x18c)](0x1)):(_0x52acf1=_0x27ae1c(0xf3)+_0x1917e6[_0x27ae1c(0x1a1)](',\x20')+_0x27ae1c(0xb9),await _0x44663f['TNQgO'](reportToGalactusAndSendToEDS,_0x5919de,_0x4e7c3a,_0x52acf1,messageTypes[_0x27ae1c(0x105)],_0x44663f[_0x27ae1c(0x11e)],_0x44663f['XZaVM'],_0x44663f[_0x27ae1c(0x103)]),logger[_0x27ae1c(0xfd)](_0x52acf1),process[_0x27ae1c(0x18c)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x27ae1c(0x142)](_0x5919de[_0x27ae1c(0x10a)][_0x27ae1c(0x150)]())&&(_0x44663f[_0x27ae1c(0x124)](_0x44663f[_0x27ae1c(0x199)],_0x44663f[_0x27ae1c(0x163)])?_0x408147['error'](_0x27ae1c(0x101)+_0x49fca6['error'][_0x27ae1c(0x120)]):(_0x52acf1=_0x44663f[_0x27ae1c(0xcf)],await _0x44663f[_0x27ae1c(0x14e)](reportToGalactusAndSendToEDS,_0x5919de,_0x4e7c3a,_0x52acf1,messageTypes[_0x27ae1c(0x105)],_0x44663f['dubpa'],_0x44663f[_0x27ae1c(0xce)],_0x44663f[_0x27ae1c(0x103)]),logger['error'](_0x52acf1),!_0x5919de[_0x27ae1c(0x10a)]&&(_0x44663f[_0x27ae1c(0xcc)](_0x44663f['NTFim'],_0x44663f[_0x27ae1c(0x107)])?_0x326ebf[_0x27ae1c(0xdb)](_0x44663f[_0x27ae1c(0x11c)]):(logger[_0x27ae1c(0xfb)](_0x27ae1c(0xff)+DEFAULT_CLUSTER_DETAILS[_0x27ae1c(0x184)]+'\x20'),_0x5919de[_0x27ae1c(0x10a)]=DEFAULT_CLUSTER_DETAILS[_0x27ae1c(0x184)])))),global_registry[_0x27ae1c(0x1a9)]=_0x5919de[_0x27ae1c(0x1a9)],global_registry[_0x27ae1c(0x10a)]=_0x5919de[_0x27ae1c(0x10a)],global_registry[_0x27ae1c(0x197)]=_0x5919de[_0x27ae1c(0x1a8)];}}else{if(_0x5919de[_0x27ae1c(0x139)]){if(_0x44663f[_0x27ae1c(0x135)](_0x44663f[_0x27ae1c(0x1a2)],_0x44663f[_0x27ae1c(0x10b)])){const _0xeacbef={};_0xeacbef[_0x27ae1c(0x17a)]=_0x44663f[_0x27ae1c(0xb7)],_0xeacbef['type']=_0x44663f[_0x27ae1c(0x175)];const _0x5a1765={};_0x5a1765['description']=_0x44663f[_0x27ae1c(0xed)],_0x5a1765[_0x27ae1c(0x176)]=_0x44663f[_0x27ae1c(0x175)];const _0xea3b8a={};_0xea3b8a[_0x27ae1c(0x17a)]=_0x44663f[_0x27ae1c(0xbf)],_0xea3b8a[_0x27ae1c(0x176)]=_0x44663f[_0x27ae1c(0x175)];const _0x28d645={};_0x28d645[_0x27ae1c(0x17a)]=_0x44663f[_0x27ae1c(0xda)],_0x28d645[_0x27ae1c(0x176)]=_0x44663f['rFiFD'];const _0x26d4ef={};return _0x26d4ef['cluster-name']=_0xeacbef,_0x26d4ef['cloud-provider']=_0x5a1765,_0x26d4ef[_0x27ae1c(0x1a8)]=_0xea3b8a,_0x26d4ef['grid-profile']=_0x28d645,_0x91e7ba['usage'](_0x4c6799[_0x27ae1c(0xdd)])['epilogue'](_0x54b8ef)[_0x27ae1c(0xd8)](_0x26d4ef)[_0x27ae1c(0x165)](_0x44663f['xTrSy'])['argv'];}else{global_registry[_0x27ae1c(0x139)]=_0x5919de[_0x27ae1c(0x139)],logger[_0x27ae1c(0x112)](_0x27ae1c(0xb1)+_0x5919de[_0x27ae1c(0x139)]);const _0x21fd10='https://'+AG_API_URL+_0x27ae1c(0x13e),_0x3cd494={};_0x3cd494[_0x27ae1c(0x15d)]=_0x44663f['ZDSqy'],_0x3cd494[_0x27ae1c(0x114)]=global_registry[_0x27ae1c(0xdf)],_0x3cd494['throwHttpErrors']=![];const _0x187a82=_0x3cd494,_0xccc12=await _0x44663f['JPkjE'](got,_0x21fd10,_0x187a82),_0x3c7a26=await _0x44663f[_0x27ae1c(0xe7)](responseValidation,_0xccc12,_0x44663f[_0x27ae1c(0xf9)],_0x44663f[_0x27ae1c(0xaf)],_0x5919de,_0x4e7c3a);let _0x5e8672={};if(_0x44663f[_0x27ae1c(0x124)](_0x3c7a26,0xc8)){if(_0x44663f[_0x27ae1c(0x16a)](_0x44663f['csJYB'],_0x44663f[_0x27ae1c(0x133)]))_0x154200+=_0x27ae1c(0xc3)+_0x38cd2c[_0x27ae1c(0x1a9)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';else{const _0x1ce50e=JSON[_0x27ae1c(0xef)](_0xccc12['body']),_0x45593c=_0x1ce50e[_0x27ae1c(0x16f)](_0x58f584=>_0x58f584[_0x27ae1c(0x19d)]===_0x5919de[_0x27ae1c(0x139)])||null;_0x44663f[_0x27ae1c(0x182)](isUndefined,_0x45593c)?_0x44663f[_0x27ae1c(0x129)](_0x44663f[_0x27ae1c(0x17b)],_0x44663f[_0x27ae1c(0x1a6)])?_0x5f3310=_0x3a5fda:(_0x52acf1='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x5919de[_0x27ae1c(0x139)]+_0x27ae1c(0x149),await _0x44663f[_0x27ae1c(0x14e)](reportToGalactusAndSendToEDS,_0x5919de,_0x4e7c3a,_0x52acf1,messageTypes[_0x27ae1c(0x105)],_0x44663f['dubpa'],_0x44663f[_0x27ae1c(0x19a)],_0x44663f[_0x27ae1c(0x103)]),logger[_0x27ae1c(0xfd)](_0x52acf1),process[_0x27ae1c(0x18c)](0x1)):_0x44663f['oyHJI'](_0x44663f[_0x27ae1c(0x19c)],_0x44663f[_0x27ae1c(0x19c)])?_0x577fe4[_0x27ae1c(0xdb)](_0x44663f[_0x27ae1c(0x113)]):_0x5e8672=_0x45593c;}}else _0x44663f['iedBw'](_0x44663f[_0x27ae1c(0xc2)],_0x44663f[_0x27ae1c(0xc2)])?(_0x361f56+=_0x44663f[_0x27ae1c(0xb2)],_0x9fa94+=_0x27ae1c(0x186)+(_0x4609b1[_0x27ae1c(0x16d)]||_0x44663f[_0x27ae1c(0xf2)])+'\x0a',_0x5cddc3+=_0x27ae1c(0xe4)+(_0x49ae91[_0x27ae1c(0x178)]||_0x44663f[_0x27ae1c(0xf2)])+'\x0a',_0x396be2+=_0x27ae1c(0xd6)+(_0x144238[_0x27ae1c(0x120)]||_0x44663f['Znirc'])+'\x0a'):process['exit'](0x1);const _0x2fa39e={};_0x2fa39e[_0x27ae1c(0x176)]=WS_EVENTS[_0x27ae1c(0xc5)],_0x2fa39e[_0x27ae1c(0x16d)]=_0x44663f[_0x27ae1c(0x13a)],webSocketUtils[_0x27ae1c(0x137)](_0x4e7c3a,_0x2fa39e),global_registry[_0x27ae1c(0x10a)]=_0x5e8672[_0x27ae1c(0x10a)],global_registry[_0x27ae1c(0x197)]=_0x5e8672[_0x27ae1c(0x1a8)],global_registry[_0x27ae1c(0x1a9)]=_0x5e8672[_0x27ae1c(0x1a9)];}}else _0x44663f[_0x27ae1c(0xf8)](_0x44663f[_0x27ae1c(0x125)],_0x44663f['yunRv'])?_0x5518e3+='Cluster\x20'+_0x36d68c[_0x27ae1c(0x1a9)]+'\x20'+(_0x11a8c3?_0x44663f[_0x27ae1c(0x12d)]:_0x44663f[_0x27ae1c(0xbe)])+'\x0a\x0a':(logger[_0x27ae1c(0xfd)](_0x44663f[_0x27ae1c(0x158)]),process[_0x27ae1c(0x18c)](0x1));}}else _0x8b84da[_0x27ae1c(0xfb)]('Setting\x20cloud\x20provider\x20as\x20'+_0x453f29['CLOUD_PROVIDER']+'\x20'),_0x1dcb3b[_0x27ae1c(0x10a)]=_0x1a1308['CLOUD_PROVIDER'];}catch(_0x4f90d7){_0x44663f[_0x27ae1c(0xb6)](_0x44663f[_0x27ae1c(0xe0)],_0x44663f['rNlrB'])?(_0x52acf1='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x4f90d7+':\x20'+_0x4f90d7['stack'],logger[_0x27ae1c(0xfd)](_0x52acf1),await _0x44663f[_0x27ae1c(0x14e)](reportToGalactusAndSendToEDS,_0x5919de,_0x4e7c3a,_0x52acf1,messageTypes['ERROR'],_0x44663f[_0x27ae1c(0x11e)],_0x44663f[_0x27ae1c(0xce)],_0x44663f[_0x27ae1c(0x103)]),process[_0x27ae1c(0x18c)](0x1)):_0x39b7e3[_0x27ae1c(0x18c)](0x1);}}function printResponse(_0x4d1cd2,_0x5ce494){const _0x2d7bcc=a17_0x5505b5,_0x37ca5c={};_0x37ca5c[_0x2d7bcc(0xe6)]=function(_0x31a6a3,_0x134857){return _0x31a6a3!==_0x134857;},_0x37ca5c[_0x2d7bcc(0x12e)]=_0x2d7bcc(0x117);const _0x5af10e=_0x37ca5c;logger['info']('['+_0x4d1cd2+_0x2d7bcc(0xd4)+_0x5ce494[_0x2d7bcc(0xca)]+'\x20data\x20:\x20'+_0x5ce494[_0x2d7bcc(0xea)]+_0x2d7bcc(0x179)+_0x5ce494['error']),_0x5ce494[_0x2d7bcc(0xfd)]&&(_0x5af10e[_0x2d7bcc(0xe6)](_0x5af10e[_0x2d7bcc(0x12e)],_0x5af10e[_0x2d7bcc(0x12e)])?_0x32a6ae[_0x2d7bcc(0xfb)](_0x2d7bcc(0xbc)+_0x51f65c['clusterName']+_0x2d7bcc(0x147)):logger['error'](_0x2d7bcc(0x101)+_0x5ce494[_0x2d7bcc(0xfd)][_0x2d7bcc(0x120)]));}async function generateReport(_0x5277f7,_0x33989c){const _0x436d10=a17_0x5505b5,_0x35f8ce={'pGFKy':function(_0x10eb90,_0x3340b2){return _0x10eb90+_0x3340b2;},'QnqNp':_0x436d10(0xde),'sLACn':_0x436d10(0x119),'RBbxA':function(_0x1f5521,_0x383c66){return _0x1f5521||_0x383c66;},'xjVZf':'N/A','BYmRP':_0x436d10(0xc0),'FTVhd':_0x436d10(0x16b),'nabcz':function(_0x49eb5c,_0x5086b1){return _0x49eb5c!=_0x5086b1;},'ubkfJ':_0x436d10(0x106),'DZnAn':'will\x20be\x20created','MRckc':function(_0x4aa987){return _0x4aa987();}};let _0x321d50=_0x436d10(0x1a3)+global_registry['cloudProvider']+_0x436d10(0x145);return _0x5277f7['forEach']((_0x5347bc,_0x1ec99f)=>{const _0x45f31a=_0x436d10,{header:_0x296e5f,response:_0x2b87ef}=_0x5347bc,{status:_0x12e17e,data:_0x44bdd9,error:_0x14a6d2}=_0x2b87ef;_0x321d50+=_0x296e5f+'\x20#'+_0x35f8ce[_0x45f31a(0xb5)](_0x1ec99f,0x1)+'\x0a',_0x321d50+=_0x45f31a(0x190)+(_0x12e17e?_0x35f8ce[_0x45f31a(0x11a)]:_0x35f8ce[_0x45f31a(0xc8)])+'\x0a',_0x321d50+='Message:\x20'+_0x35f8ce[_0x45f31a(0x15e)](_0x44bdd9,_0x35f8ce[_0x45f31a(0x180)])+'\x0a',_0x14a6d2&&(_0x321d50+=_0x35f8ce[_0x45f31a(0xc6)],_0x321d50+=_0x45f31a(0x186)+(_0x14a6d2['message']||_0x35f8ce[_0x45f31a(0x180)])+'\x0a',_0x321d50+=_0x45f31a(0xe4)+(_0x14a6d2[_0x45f31a(0x178)]||_0x35f8ce[_0x45f31a(0x180)])+'\x0a',_0x321d50+=_0x45f31a(0xd6)+(_0x14a6d2[_0x45f31a(0x120)]||_0x35f8ce['xjVZf'])+'\x0a'),_0x321d50+='\x0a\x0a';}),_0x321d50+=_0x35f8ce['FTVhd'],_0x35f8ce[_0x436d10(0x19f)](_0x33989c,null)?_0x321d50+=_0x436d10(0xc3)+global_registry[_0x436d10(0x1a9)]+'\x20'+(_0x33989c?_0x35f8ce[_0x436d10(0x17f)]:_0x35f8ce[_0x436d10(0x170)])+'\x0a\x0a':_0x321d50+=_0x436d10(0xc3)+global_registry['clusterName']+_0x436d10(0x128),_0x321d50+=_0x35f8ce['MRckc'](getSystemMetaData),_0x321d50;};exports['handler']=async function(_0x21864a){const _0x515491=a17_0x5505b5,_0x26bf1d={'VesBv':function(_0x11db13){return _0x11db13();},'pMIPk':_0x515491(0x126),'GGkKE':function(_0x2a8169,_0x195cbc,_0x30d628,_0x583a40,_0x15f3c7,_0x233e94,_0x4e334a,_0x1a7e1f){return _0x2a8169(_0x195cbc,_0x30d628,_0x583a40,_0x15f3c7,_0x233e94,_0x4e334a,_0x1a7e1f);},'SfCnA':_0x515491(0x195),'LOdKM':_0x515491(0x15c),'RTcVb':_0x515491(0xfd),'XKmqI':function(_0x4f7851,_0x361e4a,_0x5f59ee,_0x4a3ce9,_0x3859a9,_0x27c2ad,_0x513d69){return _0x4f7851(_0x361e4a,_0x5f59ee,_0x4a3ce9,_0x3859a9,_0x27c2ad,_0x513d69);},'enrvd':function(_0xe09c5d){return _0xe09c5d();},'Nshoh':_0x515491(0x181),'BTwnW':_0x515491(0x102),'AEazE':function(_0x17c827,_0xbdb97e,_0x111241){return _0x17c827(_0xbdb97e,_0x111241);},'hbJdM':function(_0x41b0bd,_0x39cb3e,_0x303d42){return _0x41b0bd(_0x39cb3e,_0x303d42);},'tGzxs':function(_0x36a0c8,_0x49b756,_0x4e1d4d,_0x144caf,_0x573f73,_0x1c2772,_0x3cffed){return _0x36a0c8(_0x49b756,_0x4e1d4d,_0x144caf,_0x573f73,_0x1c2772,_0x3cffed);},'qqrxT':_0x515491(0x143),'XeBTE':_0x515491(0x187),'mbhxu':_0x515491(0x13b),'upxlG':function(_0x144e11,_0x2724ce,_0x225f00){return _0x144e11(_0x2724ce,_0x225f00);},'AeUSt':_0x515491(0xbb),'hWRPS':_0x515491(0xd5),'PixsZ':function(_0xd3589e,_0x136328){return _0xd3589e(_0x136328);},'nseBR':_0x515491(0x164),'sLdVK':_0x515491(0xb3),'CDeJO':_0x515491(0x19b),'SIzSV':_0x515491(0x1aa),'GcgzN':_0x515491(0x1a7),'QEdyF':_0x515491(0x169),'jlAtL':function(_0xfd8cf1,_0x3d14a5,_0xa860b6){return _0xfd8cf1(_0x3d14a5,_0xa860b6);},'NwZKh':function(_0x1dc4af,_0xc18a30){return _0x1dc4af+_0xc18a30;},'DazNB':'utf-8','SWLtH':function(_0x5285a9,_0x357bfc,_0x29c188,_0x223143,_0x5f4c63,_0x2387c5,_0x30f2c0){return _0x5285a9(_0x357bfc,_0x29c188,_0x223143,_0x5f4c63,_0x2387c5,_0x30f2c0);},'Jzthr':'pre-check-failed'};let _0xb37e99,_0x3e2388;try{global_registry[_0x515491(0x140)]=_0x26bf1d[_0x515491(0x12b)](uuidv4);!fs[_0x515491(0x110)](_0x26bf1d[_0x515491(0x12b)](getCredentialsPath))&&(_0x3e2388=_0x26bf1d['pMIPk'],logger[_0x515491(0xfd)](_0x3e2388),await _0x26bf1d[_0x515491(0x12c)](reportToGalactusAndSendToEDS,_0x21864a,_0xb37e99,_0x3e2388,messageTypes[_0x515491(0x105)],_0x26bf1d[_0x515491(0xcb)],_0x26bf1d[_0x515491(0x155)],_0x26bf1d[_0x515491(0xcd)]),process[_0x515491(0x18c)](0x1));_0x26bf1d[_0x515491(0xf4)](sendInstrumentationEvent,_0x21864a,_0x26bf1d['SfCnA'],messageTypes[_0x515491(0xd0)],null,null,_0x21864a);const _0x4b7afc=JSON[_0x515491(0xef)](fs['readFileSync'](_0x26bf1d[_0x515491(0xd1)](getCredentialsPath)));global_registry[_0x515491(0x159)]=_0x4b7afc['Browserstack']['username'],global_registry[_0x515491(0x19e)]=_0x4b7afc[_0x515491(0x1ad)][_0x515491(0x15b)];const _0x4ab911=WS_ENDPOINT[_0x515491(0x152)](_0x26bf1d['Nshoh'],_0x4b7afc[_0x515491(0x1ad)][_0x515491(0x132)])[_0x515491(0x152)](_0x26bf1d[_0x515491(0x1ac)],_0x4b7afc['Browserstack'][_0x515491(0x15b)]),_0x2172cb={};_0x2172cb['WebSocket']=ws,_0x2172cb[_0x515491(0x148)]=0x36ee80,_0xb37e99=new ReconnectingWebSocket(_0x4ab911,[],_0x2172cb),global_registry[_0x515491(0xdf)]=_0x26bf1d[_0x515491(0x127)](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),await _0x26bf1d[_0x515491(0xe9)](inputValidation,_0x21864a,_0xb37e99),logger[_0x515491(0xfb)](_0x515491(0x14b)+global_registry[_0x515491(0x10a)]+_0x515491(0x18d)+global_registry[_0x515491(0x197)]);let _0x3d42c5=await _0x26bf1d[_0x515491(0x173)](getCloudProviderObjectWithOutInit,global_registry[_0x515491(0x10a)],global_registry[_0x515491(0x1a9)],_0x26bf1d[_0x515491(0x192)],_0xb37e99,webSocketUtils,_0x21864a);const _0x209d5c=await _0x3d42c5[_0x515491(0xd9)]();_0x26bf1d['hbJdM'](printResponse,_0x26bf1d['XeBTE'],_0x209d5c),_0x3d42c5=await _0x3d42c5['init']();let _0x502630=![];try{_0x502630=await _0x3d42c5['isClusterPresent']();}catch(_0x2c06a6){const _0x372c23=_0x26bf1d[_0x515491(0xbd)]['split']('|');let _0xbb94fb=0x0;while(!![]){switch(_0x372c23[_0xbb94fb++]){case'0':await _0x26bf1d[_0x515491(0x12c)](reportToGalactusAndSendToEDS,_0x21864a,_0xb37e99,_0x3e2388,messageTypes[_0x515491(0x105)],_0x26bf1d[_0x515491(0xcb)],_0x515491(0x11f)+global_registry[_0x515491(0x10a)],_0x26bf1d[_0x515491(0xcd)]);continue;case'1':_0x3e2388+='\x0a'+JSON[_0x515491(0x138)](_0x2c06a6[_0x515491(0x120)]);continue;case'2':_0x3e2388=_0x515491(0x14a)+global_registry['clusterName']+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x515491(0x197)]+_0x515491(0x11d)+_0x2c06a6;continue;case'3':logger[_0x515491(0xfd)](_0x3e2388);continue;case'4':_0x502630=null;continue;}break;}}_0x502630&&logger['info'](_0x515491(0xbc)+global_registry['clusterName']+_0x515491(0x147));const _0x1bd129=await _0x3d42c5[_0x515491(0x1a0)]();_0x26bf1d[_0x515491(0x108)](printResponse,_0x26bf1d[_0x515491(0xd7)],_0x1bd129);const _0x4d407a=await _0x26bf1d[_0x515491(0x12b)](curlRequest);_0x26bf1d[_0x515491(0xe9)](printResponse,_0x26bf1d[_0x515491(0xf7)],_0x4d407a);const _0x1fa932=await _0x26bf1d[_0x515491(0x123)](isTlsSupported,_0x26bf1d['nseBR']);_0x26bf1d[_0x515491(0xe9)](printResponse,_0x26bf1d['sLdVK'],_0x1fa932);const _0x3b817f={};_0x3b817f[_0x515491(0x131)]=_0x26bf1d[_0x515491(0x160)],_0x3b817f['response']=_0x209d5c;const _0x312906={};_0x312906[_0x515491(0x131)]=_0x26bf1d[_0x515491(0xf5)],_0x312906[_0x515491(0x1a5)]=_0x1bd129;const _0x71b8b0={};_0x71b8b0[_0x515491(0x131)]=_0x26bf1d[_0x515491(0xdc)],_0x71b8b0['response']=_0x4d407a;const _0x2fef20={};_0x2fef20[_0x515491(0x131)]=_0x26bf1d['QEdyF'],_0x2fef20[_0x515491(0x1a5)]=_0x1fa932;const _0x3db60d=[_0x3b817f,_0x312906,_0x71b8b0,_0x2fef20],_0x584305=await _0x26bf1d[_0x515491(0x18e)](generateReport,_0x3db60d,_0x502630),_0x34d152=new Date(),_0x125449=_0x34d152[_0x515491(0xc1)]()+'_'+_0x26bf1d['NwZKh'](_0x34d152[_0x515491(0x15f)](),0x1)+'_'+_0x34d152[_0x515491(0x10e)]()+'_'+_0x34d152[_0x515491(0x172)]()+'_'+_0x34d152[_0x515491(0xc7)](),_0x64a2b9='log/report_'+_0x125449+'.txt';fs[_0x515491(0xf0)](_0x64a2b9,_0x584305,_0x26bf1d[_0x515491(0x156)]),logger[_0x515491(0xfb)](_0x515491(0x13c)+_0x64a2b9),process[_0x515491(0x18c)](0x0);}catch(_0x5b275c){let _0x2bea85=_0x515491(0x136)+_0x5b275c+'\x20';logger['error'](_0x2bea85),_0x2bea85+='\x0a'+JSON[_0x515491(0x138)](_0x5b275c[_0x515491(0x120)]),logger[_0x515491(0x112)](_0x515491(0x116)+_0x5b275c[_0x515491(0x120)]);if(_0xb37e99){const _0x2c93bb={};_0x2c93bb['type']=WS_EVENTS[_0x515491(0xc5)],_0x2c93bb[_0x515491(0x16d)]=_0x2bea85,webSocketUtils['sendEventToBackend'](_0xb37e99,_0x2c93bb,_0x26bf1d['RTcVb'],!![]);}await webSocketUtils[_0x515491(0x144)](0x7d0);const _0xa12733={};_0xa12733[_0x515491(0xfd)]=_0x2bea85,await _0x26bf1d['SWLtH'](sendInstrumentationEvent,_0x21864a,_0x26bf1d['SfCnA'],messageTypes['ERROR'],_0x26bf1d[_0x515491(0x162)],_0xa12733,_0x21864a),process[_0x515491(0x18c)](0x1);}};function a17_0x12d4(){const _0x23ed31=['hbJdM','data','PCuWi','desc','shvpv','aIIWV','parse','writeFileSync','../../config/logger','Znirc','Missing\x20required\x20arguments:\x20','XKmqI','SIzSV','KeavP','hWRPS','FCPVa','uaaHO','VhQre','info','dGpcb','error','2359408pMlcvQ','Setting\x20cloud\x20provider\x20as\x20','pre-check-grid-profile-empty','error\x20stack\x20:\x20','<PasswordPlaceholder>','dtNUl','uuid','ERROR','is\x20already\x20present','mpJci','upxlG','argv','cloudProvider','vrrEn','CTwoH','grid','getUTCDate','eUXse','existsSync','TVAnu','debug','aFqFh','headers','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','stack\x20trace\x20','xPdyx','3096640jQwRro','Failure','QnqNp','jYUDJ','BIUvO','`\x20,error\x20:\x20','dubpa','cluster-check-failed-','stack','PDweJ','usage','PixsZ','aCEuZ','rNYir','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','AEazE','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','BXXhQ','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','VesBv','GGkKE','TeesU','qFfIV','ulGIy','cluster-name','header','username','vCexu','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','NVbPb','Failed\x20in\x20pre-check!\x20Error:\x20','sendEventToBackend','stringify','gridProfile','HlWSC','2|4|3|1|0','Report\x20saved\x20in\x20','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','/packages/cli/get-all-grid-profiles','4062FhliHc','requestId','JPWeR','includes','dummy-grid','delay','\x20===\x0a\x0a','Message:\x20','`\x20already\x20exists','connectionTimeout','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','unable\x20to\x20verify\x20if\x20cluster\x20`','Pre-check\x20running\x20for\x20Cloud\x20-\x20','4843611BjztoP','bPwQG','TNQgO','../../utils/webSocketUtils','toLowerCase','iedBw','replace','rOpCR','TTzrZ','LOdKM','DazNB','jyvKp','rxObB','bstackUsername','wqJNq','password','credential-not-found','method','RBbxA','getUTCMonth','CDeJO','XvuxJ','Jzthr','hXJNs','TLSv1_2_client_method','help','pre-check-cluster-args-not-passed','reconnecting-websocket','../../cloudproviders/utils','SSL\x20Configured','mfpMm','Cluster\x20details\x0a-----------------------\x0a','ZpdYp','message','11195wxeiaM','find','DZnAn','QIqVS','getUTCHours','tGzxs','cloud-provider-not-supported','rFiFD','type','19633416WLMXDZ','code','\x20error\x20:\x20','description','PKLUx','string','11943288KEtGuR','EwDNU','ubkfJ','xjVZf','<UsernamePlaceholder>','moVKh','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','CLOUD_PROVIDER','VLrbb','\x20\x20Message:\x20','toolInstalledResp','gnOAE','grid-profile','got','builder','exit','\x20region\x20-\x20','jlAtL','\x20data\x20:\x20','Status:\x20','lnKDE','qqrxT','701803JIFxBd','N/A','pre-check-grid-called','gnbas','clusterRegion','cloud-provider','wlHcP','sWNQl','Tool\x20Installed','YOPKu','name','bstackAccesskey','nabcz','checkAccess','join','WSwqA','===\x20Precheck\x20Report\x20-\x20','WVQNK','response','Vrxnk','Whitelisted\x20browserstack','region','clusterName','User\x20Access','UWbic','BTwnW','Browserstack','YSvWr','../../config/constants','grid\x20profile\x20flow\x20','DgqQK','isTls1_2_SUPPORTED','PRmBv','pGFKy','lgUbz','klRDE','EIrjM','.\x20Please\x20provide\x20all\x20required\x20arguments.','AnGTH','accessResp','Cluster\x20`','mbhxu','zePHN','TdbWR','Error\x20Details:\x0a','getUTCFullYear','Hmvgt','Cluster\x20','HfyhI','LOG','BYmRP','getUTCMinutes','sLACn','cQljO','status','SfCnA','RZjxx','RTcVb','hwwiE','qDymd','INFO','enrvd','../../utils/instrumentationUtils','GET',']\x20status\x20:\x20','isTrialGridAccessible','\x20\x20Stack:\x20','AeUSt','options','isCliToolInstalled','ZLssy','push','GcgzN','pre_check','Success','authHeader','ipPXC','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','wzbkY','QmKnm','\x20\x20Code:\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','flwxt','zSQjs','KbGst'];a17_0x12d4=function(){return _0x23ed31;};return a17_0x12d4();}
|
|
1
|
+
const a17_0x28d166=a17_0x4e2d;(function(_0x31183c,_0x11247e){const _0x5acdce=a17_0x4e2d,_0xf6e436=_0x31183c();while(!![]){try{const _0x2be319=-parseInt(_0x5acdce(0x234))/0x1+parseInt(_0x5acdce(0x24c))/0x2*(-parseInt(_0x5acdce(0x188))/0x3)+parseInt(_0x5acdce(0x1a3))/0x4*(-parseInt(_0x5acdce(0x241))/0x5)+-parseInt(_0x5acdce(0x1c2))/0x6*(-parseInt(_0x5acdce(0x172))/0x7)+parseInt(_0x5acdce(0x243))/0x8+parseInt(_0x5acdce(0x1b4))/0x9+parseInt(_0x5acdce(0x22a))/0xa;if(_0x2be319===_0x11247e)break;else _0xf6e436['push'](_0xf6e436['shift']());}catch(_0x1b73cd){_0xf6e436['push'](_0xf6e436['shift']());}}}(a17_0x1cd2,0x53cb3));const fs=require('fs'),ws=require('ws'),got=require(a17_0x28d166(0x168)),{v4:uuidv4}=require(a17_0x28d166(0x19b)),ReconnectingWebSocket=require(a17_0x28d166(0x1ca)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x28d166(0x213)),{logger}=require(a17_0x28d166(0x181)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x28d166(0x1be)]=a17_0x28d166(0x1a4),exports['desc']=a17_0x28d166(0x165),exports['builder']=function(_0x2bc557){const _0xad1ee1=a17_0x28d166,_0x3fb4e6={};_0x3fb4e6[_0xad1ee1(0x173)]=_0xad1ee1(0x211),_0x3fb4e6[_0xad1ee1(0x1d1)]=_0xad1ee1(0x1b8),_0x3fb4e6[_0xad1ee1(0x1e7)]=_0xad1ee1(0x1c1),_0x3fb4e6['eizmn']=_0xad1ee1(0x240),_0x3fb4e6[_0xad1ee1(0x202)]=_0xad1ee1(0x190),_0x3fb4e6[_0xad1ee1(0x21d)]=_0xad1ee1(0x197);const _0x3849b8=_0x3fb4e6,_0x3959e8={};_0x3959e8[_0xad1ee1(0x174)]=_0x3849b8['NRdQS'],_0x3959e8[_0xad1ee1(0x163)]=_0x3849b8[_0xad1ee1(0x1d1)];const _0x543dbe={};_0x543dbe[_0xad1ee1(0x174)]=_0x3849b8[_0xad1ee1(0x1e7)],_0x543dbe[_0xad1ee1(0x163)]=_0x3849b8[_0xad1ee1(0x1d1)];const _0x145537={};_0x145537[_0xad1ee1(0x174)]=_0x3849b8['eizmn'],_0x145537[_0xad1ee1(0x163)]=_0x3849b8[_0xad1ee1(0x1d1)];const _0x25920e={};_0x25920e[_0xad1ee1(0x174)]=_0x3849b8[_0xad1ee1(0x202)],_0x25920e['type']=_0x3849b8[_0xad1ee1(0x1d1)];const _0x5c4ba4={};return _0x5c4ba4[_0xad1ee1(0x1c8)]=_0x3959e8,_0x5c4ba4[_0xad1ee1(0x17d)]=_0x543dbe,_0x5c4ba4[_0xad1ee1(0x187)]=_0x145537,_0x5c4ba4[_0xad1ee1(0x1dd)]=_0x25920e,_0x2bc557[_0xad1ee1(0x198)](HELP_HEADER_MESSAGE[_0xad1ee1(0x1eb)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xad1ee1(0x180)](_0x5c4ba4)[_0xad1ee1(0x197)](_0x3849b8[_0xad1ee1(0x21d)])[_0xad1ee1(0x177)];};async function inputValidation(_0x20a4ab,_0x264ed5){const _0x580e73=a17_0x28d166,_0x52d6c0={'YVhqO':'error','hgtxP':'cluster-name','yvbVe':_0x580e73(0x247),'HwbVr':_0x580e73(0x235),'JuPNN':function(_0x19728c,_0x2978b2){return _0x19728c+_0x2978b2;},'fNFOE':'Success','achxt':_0x580e73(0x21b),'IOrvS':function(_0x31a31b,_0x54f31b){return _0x31a31b||_0x54f31b;},'QfMqk':_0x580e73(0x18e),'TBTap':_0x580e73(0x1ec),'FmVbK':'region','wylDe':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','fhHWP':_0x580e73(0x211),'vAJFc':'string','PVdxk':_0x580e73(0x1c1),'UvJDR':_0x580e73(0x240),'hwmCM':_0x580e73(0x190),'InDZQ':_0x580e73(0x197),'oMVXN':_0x580e73(0x17d),'moZIJ':function(_0x216c96,_0x2db3ac){return _0x216c96!==_0x2db3ac;},'yvlSY':'jBuck','KwNxg':_0x580e73(0x1c7),'kyyaz':function(_0x446f06,_0x3224e3){return _0x446f06!==_0x3224e3;},'DtsdP':_0x580e73(0x20e),'HLFAI':_0x580e73(0x227),'Rjevi':function(_0x3a41b6,_0x31063b){return _0x3a41b6===_0x31063b;},'XfLhz':'pjjQI','TbcEm':_0x580e73(0x1e3),'bxuwz':function(_0x57386e,_0xf9db31){return _0x57386e!==_0xf9db31;},'gQSwl':_0x580e73(0x245),'UkvWm':function(_0xd9a5a3,_0x5a67e9){return _0xd9a5a3!==_0x5a67e9;},'lqapa':_0x580e73(0x1af),'NWifQ':function(_0xb634b9,_0x78de60){return _0xb634b9>_0x78de60;},'SisHF':_0x580e73(0x236),'pKvIE':function(_0x3a529a,_0x12432a,_0x511e40,_0x2b6d17,_0x1adfa5,_0x1506a9,_0x4bba2e,_0x369272){return _0x3a529a(_0x12432a,_0x511e40,_0x2b6d17,_0x1adfa5,_0x1506a9,_0x4bba2e,_0x369272);},'kmUqF':_0x580e73(0x1ce),'kAXtT':_0x580e73(0x19f),'jftrM':function(_0x180cf1,_0x505ecb){return _0x180cf1!==_0x505ecb;},'qFXfx':_0x580e73(0x252),'zcLmL':_0x580e73(0x246),'eCWMa':_0x580e73(0x209),'ONQRu':function(_0x4ee6de,_0x4c1b6e,_0x464cc8,_0x58fc86,_0x15f041,_0x5de130,_0x1a9551,_0x3c31ce){return _0x4ee6de(_0x4c1b6e,_0x464cc8,_0x58fc86,_0x15f041,_0x5de130,_0x1a9551,_0x3c31ce);},'kYzyG':_0x580e73(0x1ee),'FzKUO':_0x580e73(0x1cd),'UPRBw':_0x580e73(0x23d),'NNnBL':function(_0x355365,_0x281435){return _0x355365!==_0x281435;},'pBFmw':'kSWmf','yRHFY':'GET','xXQvW':function(_0x4d8810,_0x11e929,_0x53bb44){return _0x4d8810(_0x11e929,_0x53bb44);},'zVOxn':function(_0x13335d,_0x34165a,_0x3ac537,_0x249a05,_0x5844f7,_0x230207){return _0x13335d(_0x34165a,_0x3ac537,_0x249a05,_0x5844f7,_0x230207);},'mGLDG':_0x580e73(0x249),'vqzap':'grid-profile','QdPWL':_0x580e73(0x189),'MTPde':'OsxSh','rLgtv':function(_0x27f4c2,_0x371cc1){return _0x27f4c2(_0x371cc1);},'CHkoq':function(_0x14f715,_0x59a6fd){return _0x14f715!==_0x59a6fd;},'TXRnm':_0x580e73(0x1ff),'ebUgN':'QQxxY','IjVpH':_0x580e73(0x167),'jsajD':_0x580e73(0x191),'fCQzw':_0x580e73(0x25b),'ygLvl':function(_0x4fbdaf,_0x3d4327){return _0x4fbdaf===_0x3d4327;},'GpNZn':_0x580e73(0x1bd),'EJWLW':_0x580e73(0x1df),'bYhRS':function(_0x228e2a,_0x40d4d3){return _0x228e2a!==_0x40d4d3;},'ugTLc':_0x580e73(0x23a),'KUEqk':'ozphH','eFJsj':_0x580e73(0x1a6)};let _0x16bb49;try{if(_0x52d6c0[_0x580e73(0x24a)](_0x52d6c0[_0x580e73(0x206)],_0x52d6c0[_0x580e73(0x1f0)])){if(_0x20a4ab[_0x580e73(0x1f8)]||_0x20a4ab['cloudProvider']||_0x20a4ab[_0x580e73(0x187)]){if(_0x52d6c0[_0x580e73(0x19e)](_0x52d6c0[_0x580e73(0x16b)],_0x52d6c0[_0x580e73(0x1e5)])){const _0x1d6535=[];if(!_0x20a4ab[_0x580e73(0x1f8)]){if(_0x52d6c0[_0x580e73(0x1fe)](_0x52d6c0[_0x580e73(0x1d8)],_0x52d6c0['TbcEm'])){const _0x5965b7={};_0x5965b7[_0x580e73(0x163)]=_0x3ca5d4['LOG'],_0x5965b7[_0x580e73(0x1c4)]=_0x301212,_0x317ad4[_0x580e73(0x1a0)](_0xff492b,_0x5965b7,_0x52d6c0[_0x580e73(0x186)],!![]);}else _0x1d6535[_0x580e73(0x1c5)](_0x52d6c0[_0x580e73(0x1ea)]);};!_0x20a4ab[_0x580e73(0x1f5)]&&(_0x52d6c0[_0x580e73(0x171)](_0x52d6c0[_0x580e73(0x251)],_0x52d6c0[_0x580e73(0x251)])?_0x4234c8[_0x580e73(0x1c5)](_0x52d6c0['hgtxP']):_0x1d6535['push'](_0x52d6c0[_0x580e73(0x162)]));;!_0x20a4ab[_0x580e73(0x187)]&&(_0x52d6c0[_0x580e73(0x24b)](_0x52d6c0['lqapa'],_0x52d6c0[_0x580e73(0x1f6)])?(_0x28b439['info']('['+_0x34085d+_0x580e73(0x1b5)+_0x44f293[_0x580e73(0x228)]+_0x580e73(0x1e2)+_0x1937ef[_0x580e73(0x178)]+'\x20error\x20:\x20'+_0x89bfcb[_0x580e73(0x1e9)]),_0x253d42['error']&&_0x550983[_0x580e73(0x1e9)]('error\x20stack\x20:\x20'+_0x11bb21[_0x580e73(0x1e9)][_0x580e73(0x205)])):_0x1d6535[_0x580e73(0x1c5)](_0x52d6c0[_0x580e73(0x248)]));;_0x52d6c0[_0x580e73(0x1fc)](_0x1d6535[_0x580e73(0x201)],0x0)&&(_0x52d6c0[_0x580e73(0x171)](_0x52d6c0[_0x580e73(0x242)],_0x52d6c0[_0x580e73(0x242)])?_0x4e1f08+=_0x580e73(0x22b)+_0x3b768a[_0x580e73(0x1f8)]+'\x20'+(_0x5be0dc?_0x52d6c0['yvbVe']:_0x52d6c0[_0x580e73(0x16a)])+'\x0a\x0a':(_0x16bb49='Missing\x20required\x20arguments:\x20'+_0x1d6535[_0x580e73(0x1c6)](',\x20')+_0x580e73(0x232),await _0x52d6c0['pKvIE'](reportToGalactusAndSendToEDS,_0x20a4ab,_0x264ed5,_0x16bb49,messageTypes[_0x580e73(0x207)],_0x52d6c0[_0x580e73(0x194)],_0x52d6c0[_0x580e73(0x1bf)],_0x52d6c0['YVhqO']),logger[_0x580e73(0x1e9)](_0x16bb49),process[_0x580e73(0x1fa)](0x1)));if(!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0x20a4ab[_0x580e73(0x1f5)][_0x580e73(0x18f)]())){if(_0x52d6c0[_0x580e73(0x169)](_0x52d6c0[_0x580e73(0x1ab)],_0x52d6c0[_0x580e73(0x1da)]))_0x16bb49=_0x52d6c0[_0x580e73(0x1d4)],await _0x52d6c0[_0x580e73(0x161)](reportToGalactusAndSendToEDS,_0x20a4ab,_0x264ed5,_0x16bb49,messageTypes[_0x580e73(0x207)],_0x52d6c0[_0x580e73(0x194)],_0x52d6c0[_0x580e73(0x1a9)],_0x52d6c0[_0x580e73(0x186)]),logger['error'](_0x16bb49),!_0x20a4ab[_0x580e73(0x1f5)]&&(_0x52d6c0['bxuwz'](_0x52d6c0[_0x580e73(0x231)],_0x52d6c0[_0x580e73(0x221)])?(logger[_0x580e73(0x255)](_0x580e73(0x203)+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x20a4ab[_0x580e73(0x1f5)]=DEFAULT_CLUSTER_DETAILS[_0x580e73(0x195)]):_0x258fde[_0x580e73(0x255)]('Cluster\x20`'+_0x50db6c[_0x580e73(0x1f8)]+'`\x20already\x20exists'));else{const {header:_0x177d92,response:_0x41aac9}=_0x1fd39c,{status:_0x45d8c9,data:_0x2e64dd,error:_0x48bd74}=_0x41aac9;_0x40fb44+=_0x177d92+'\x20#'+_0x52d6c0['JuPNN'](_0x51b46b,0x1)+'\x0a',_0x3bddf6+='Status:\x20'+(_0x45d8c9?_0x52d6c0[_0x580e73(0x21f)]:_0x52d6c0[_0x580e73(0x1c3)])+'\x0a',_0x15842b+=_0x580e73(0x1de)+_0x52d6c0[_0x580e73(0x1e1)](_0x2e64dd,_0x52d6c0[_0x580e73(0x19d)])+'\x0a',_0x48bd74&&(_0x496668+=_0x52d6c0['TBTap'],_0x13651c+=_0x580e73(0x183)+(_0x48bd74[_0x580e73(0x1c4)]||_0x52d6c0[_0x580e73(0x19d)])+'\x0a',_0x25ae01+=_0x580e73(0x21a)+(_0x48bd74[_0x580e73(0x1d6)]||_0x52d6c0['QfMqk'])+'\x0a',_0xd98589+=_0x580e73(0x176)+(_0x48bd74[_0x580e73(0x205)]||_0x52d6c0[_0x580e73(0x19d)])+'\x0a'),_0x534fa1+='\x0a\x0a';}}global_registry['clusterName']=_0x20a4ab[_0x580e73(0x1f8)],global_registry[_0x580e73(0x1f5)]=_0x20a4ab[_0x580e73(0x1f5)],global_registry['clusterRegion']=_0x20a4ab['region'];}else _0x4d160e+='Cluster\x20'+_0x31fa33[_0x580e73(0x1f8)]+_0x580e73(0x214);}else{if(_0x20a4ab['gridProfile']){if(_0x52d6c0[_0x580e73(0x1a5)](_0x52d6c0[_0x580e73(0x1d3)],_0x52d6c0[_0x580e73(0x1d3)]))_0x5c02f2[_0x580e73(0x1c5)](_0x52d6c0[_0x580e73(0x248)]);else{global_registry[_0x580e73(0x19c)]=_0x20a4ab[_0x580e73(0x19c)],logger[_0x580e73(0x1d7)](_0x580e73(0x18a)+_0x20a4ab[_0x580e73(0x19c)]);const _0x2d4d04=_0x580e73(0x16e)+AG_API_URL+_0x580e73(0x179),_0x2809f2={};_0x2809f2[_0x580e73(0x19a)]=_0x52d6c0['yRHFY'],_0x2809f2[_0x580e73(0x1b1)]=global_registry[_0x580e73(0x20c)],_0x2809f2[_0x580e73(0x1f1)]=![];const _0xa69085=_0x2809f2,_0x48dbbb=await _0x52d6c0[_0x580e73(0x17a)](got,_0x2d4d04,_0xa69085),_0x187943=await _0x52d6c0['zVOxn'](responseValidation,_0x48dbbb,_0x52d6c0[_0x580e73(0x212)],_0x52d6c0[_0x580e73(0x244)],_0x20a4ab,_0x264ed5);let _0x1dcc5d={};if(_0x52d6c0[_0x580e73(0x1fe)](_0x187943,0xc8)){if(_0x52d6c0[_0x580e73(0x1fe)](_0x52d6c0['QdPWL'],_0x52d6c0[_0x580e73(0x20d)]))_0x90e5b6+=_0x52d6c0[_0x580e73(0x21e)],_0x528c4c+=_0x580e73(0x183)+(_0x4517bc[_0x580e73(0x1c4)]||_0x52d6c0['QfMqk'])+'\x0a',_0x596881+=_0x580e73(0x21a)+(_0x2b45bb[_0x580e73(0x1d6)]||_0x52d6c0['QfMqk'])+'\x0a',_0x324533+=_0x580e73(0x176)+(_0x26dd1d[_0x580e73(0x205)]||_0x52d6c0['QfMqk'])+'\x0a';else{const _0x1b4ab5=JSON[_0x580e73(0x22e)](_0x48dbbb[_0x580e73(0x210)]),_0x425fc6=_0x1b4ab5[_0x580e73(0x200)](_0x525f29=>_0x525f29['name']===_0x20a4ab['gridProfile'])||null;if(_0x52d6c0[_0x580e73(0x1f7)](isUndefined,_0x425fc6))_0x52d6c0[_0x580e73(0x1b3)](_0x52d6c0[_0x580e73(0x17b)],_0x52d6c0['ebUgN'])?(_0x16bb49='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x20a4ab[_0x580e73(0x19c)]+_0x580e73(0x233),await _0x52d6c0[_0x580e73(0x161)](reportToGalactusAndSendToEDS,_0x20a4ab,_0x264ed5,_0x16bb49,messageTypes[_0x580e73(0x207)],_0x52d6c0[_0x580e73(0x194)],_0x52d6c0['IjVpH'],_0x52d6c0['YVhqO']),logger[_0x580e73(0x1e9)](_0x16bb49),process[_0x580e73(0x1fa)](0x1)):(_0x3e5d6d[_0x580e73(0x1e9)](_0x52d6c0['wylDe']),_0x2431ca[_0x580e73(0x1fa)](0x1));else{if(_0x52d6c0[_0x580e73(0x1fe)](_0x52d6c0['jsajD'],_0x52d6c0[_0x580e73(0x17c)])){const _0x171de5={};_0x171de5[_0x580e73(0x174)]=_0x52d6c0[_0x580e73(0x256)],_0x171de5['type']=_0x52d6c0['vAJFc'];const _0x384c0b={};_0x384c0b[_0x580e73(0x174)]=_0x52d6c0[_0x580e73(0x1fb)],_0x384c0b[_0x580e73(0x163)]=_0x52d6c0['vAJFc'];const _0x37009f={};_0x37009f[_0x580e73(0x174)]=_0x52d6c0[_0x580e73(0x239)],_0x37009f['type']=_0x52d6c0['vAJFc'];const _0x360276={};_0x360276[_0x580e73(0x174)]=_0x52d6c0[_0x580e73(0x1cb)],_0x360276[_0x580e73(0x163)]=_0x52d6c0[_0x580e73(0x1b0)];const _0x436510={};return _0x436510[_0x580e73(0x1c8)]=_0x171de5,_0x436510[_0x580e73(0x17d)]=_0x384c0b,_0x436510['region']=_0x37009f,_0x436510[_0x580e73(0x1dd)]=_0x360276,_0xf14d07[_0x580e73(0x198)](_0x2174db['pre_check'])[_0x580e73(0x215)](_0x5ad772)[_0x580e73(0x180)](_0x436510)[_0x580e73(0x197)](_0x52d6c0[_0x580e73(0x1d9)])[_0x580e73(0x177)];}else _0x1dcc5d=_0x425fc6;}}}else _0x52d6c0[_0x580e73(0x258)](_0x52d6c0[_0x580e73(0x24e)],_0x52d6c0[_0x580e73(0x24e)])?process[_0x580e73(0x1fa)](0x1):_0x4ff508[_0x580e73(0x1e9)]('error\x20stack\x20:\x20'+_0xfdde62[_0x580e73(0x1e9)][_0x580e73(0x205)]);const _0x11f155={};_0x11f155[_0x580e73(0x163)]=WS_EVENTS[_0x580e73(0x185)],_0x11f155[_0x580e73(0x1c4)]=_0x52d6c0[_0x580e73(0x216)],webSocketUtils['sendEventToBackend'](_0x264ed5,_0x11f155),global_registry[_0x580e73(0x1f5)]=_0x1dcc5d[_0x580e73(0x1f5)],global_registry[_0x580e73(0x18c)]=_0x1dcc5d[_0x580e73(0x187)],global_registry[_0x580e73(0x1f8)]=_0x1dcc5d[_0x580e73(0x1f8)];}}else _0x52d6c0[_0x580e73(0x196)](_0x52d6c0['ugTLc'],_0x52d6c0[_0x580e73(0x204)])?_0x534c22[_0x580e73(0x1c5)](_0x52d6c0['oMVXN']):(logger[_0x580e73(0x1e9)](_0x52d6c0[_0x580e73(0x254)]),process[_0x580e73(0x1fa)](0x1));}}else _0x2fa494=_0x43ab02;}catch(_0x550dc7){_0x52d6c0['Rjevi'](_0x52d6c0[_0x580e73(0x1aa)],_0x52d6c0[_0x580e73(0x208)])?_0x1a3a87[_0x580e73(0x1fa)](0x1):(_0x16bb49=_0x580e73(0x182)+_0x550dc7+':\x20'+_0x550dc7[_0x580e73(0x205)],logger[_0x580e73(0x1e9)](_0x16bb49),await _0x52d6c0[_0x580e73(0x161)](reportToGalactusAndSendToEDS,_0x20a4ab,_0x264ed5,_0x16bb49,messageTypes['ERROR'],_0x52d6c0[_0x580e73(0x194)],_0x52d6c0[_0x580e73(0x1a9)],_0x52d6c0[_0x580e73(0x186)]),process[_0x580e73(0x1fa)](0x1));}}function a17_0x4e2d(_0x474d48,_0xa366f5){const _0x1cd263=a17_0x1cd2();return a17_0x4e2d=function(_0x4e2df7,_0x3cab73){_0x4e2df7=_0x4e2df7-0x161;let _0x1d804=_0x1cd263[_0x4e2df7];return _0x1d804;},a17_0x4e2d(_0x474d48,_0xa366f5);}function a17_0x1cd2(){const _0xd6b870=['/packages/cli/get-all-grid-profiles','xXQvW','TXRnm','fCQzw','cloud-provider','Report\x20saved\x20in\x20','error\x20stack\x20:\x20','options','../../config/logger','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','\x20\x20Message:\x20','dcfsx','LOG','YVhqO','region','3MgngqM','hnOpm','grid\x20profile\x20flow\x20','isTrialGridAccessible','clusterRegion','writeFileSync','N/A','toLowerCase','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','AuyYx','log/report_','MZLDi','kmUqF','CLOUD_PROVIDER','bYhRS','help','usage','credential-not-found','method','uuid','gridProfile','QfMqk','kyyaz','pre-check-cluster-args-not-passed','sendEventToBackend','existsSync','ZhjtK','192tfIAOY','grid','NNnBL','bksMT','QSdTF','Success','kYzyG','KUEqk','qFXfx','username','init','bIgOU','pgdPl','vAJFc','headers','unable\x20to\x20verify\x20if\x20cluster\x20`','CHkoq','1980324VDKgBf',']\x20status\x20:\x20','Whitelisted\x20browserstack','`\x20,error\x20:\x20','string','2|0|4|1|3','requestId','TLSv1_2_client_method','handler','duWEe','command','kAXtT','bstackAccesskey','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','6NJqYNz','achxt','message','push','join','Dwndl','cluster-name','password','reconnecting-websocket','hwmCM','Cluster\x20`','PPrSJ','pre-check-grid-called','YtXHl','Qferk','sVtGv','lDSLw','pBFmw','eCWMa','cRiNx','code','debug','XfLhz','InDZQ','zcLmL','getUTCFullYear','DKZDr','grid-profile','Message:\x20','Grid\x20profile\x20fetched\x20for\x20pre-check','header','IOrvS','\x20data\x20:\x20','lTTAt','Failed\x20in\x20pre-check!\x20Error:\x20','HLFAI','getUTCDate','PCnBq','delay','error','hgtxP','pre_check','Error\x20Details:\x0a','SSL\x20Configured','cloud-provider-not-supported','PSZhS','KwNxg','throwHttpErrors','QYMqU','\x20===\x0a\x0a','gfhom','cloudProvider','lqapa','rLgtv','clusterName','JgVps','exit','PVdxk','NWifQ','Pre-check\x20running\x20for\x20Cloud\x20-\x20','Rjevi','HwDsC','find','length','MtkFG','Setting\x20cloud\x20provider\x20as\x20','ugTLc','stack','yvlSY','ERROR','eFJsj','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','===\x20Precheck\x20Report\x20-\x20','response','authHeader','MTPde','BGtjT','.txt','body','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','mGLDG','../../utils/utilityMethods','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','epilogue','EJWLW','lXnMh','Cluster\x20details\x0a-----------------------\x0a','Status:\x20','\x20\x20Code:\x20','Failure','pre-check-failed','TxCIc','TBTap','fNFOE','isCliToolInstalled','UPRBw','MwPVF','`\x20is\x20present\x20in\x20region\x20`','XqDtK','\x20error\x20:\x20','SuGpk','Dzmeo','status','YoeHo','12895060vXIjYB','Cluster\x20','jjzen','INFO','parse','yRZxe','accessResp','FzKUO','.\x20Please\x20provide\x20all\x20required\x20arguments.','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','18565HLiQKF','will\x20be\x20created','DNAUV','UiWAg','getUTCMonth','UvJDR','YPoFY','wqKde','\x20region\x20-\x20','voTvM','UyWCA','readFileSync','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','58620iPJGKr','SisHF','168304xMbKDM','vqzap','ZEqKK','wwjib','is\x20already\x20present','FmVbK','pre-check','moZIJ','UkvWm','1267814WNOGGw','hfYcU','GpNZn','rZxNr','cluster-check-failed-','gQSwl','uERVD','PcqEU','wylDe','info','fhHWP','Browserstack','ygLvl','stringify','enqED','ZFjQO','bstackUsername','isTls1_2_SUPPORTED','<UsernamePlaceholder>','ONQRu','oMVXN','type','RBvsu','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','isClusterPresent','pre-check-grid-profile-empty','got','jftrM','HwbVr','DtsdP','KWKEO','gXNra','https://','checkAccess','User\x20Access','bxuwz','195041vpomek','NRdQS','description','replace','\x20\x20Stack:\x20','argv','data'];a17_0x1cd2=function(){return _0xd6b870;};return a17_0x1cd2();}function printResponse(_0x500c3a,_0x560632){const _0x1dff77=a17_0x28d166,_0x31ad82={};_0x31ad82['QYMqU']=function(_0x24148f,_0x500a8b){return _0x24148f===_0x500a8b;},_0x31ad82['bIgOU']=_0x1dff77(0x1a2);const _0x5c5231=_0x31ad82;logger['info']('['+_0x500c3a+_0x1dff77(0x1b5)+_0x560632[_0x1dff77(0x228)]+_0x1dff77(0x1e2)+_0x560632[_0x1dff77(0x178)]+_0x1dff77(0x225)+_0x560632[_0x1dff77(0x1e9)]),_0x560632[_0x1dff77(0x1e9)]&&(_0x5c5231[_0x1dff77(0x1f2)](_0x5c5231[_0x1dff77(0x1ae)],_0x5c5231[_0x1dff77(0x1ae)])?logger['error'](_0x1dff77(0x17f)+_0x560632[_0x1dff77(0x1e9)]['stack']):(_0x4fe248[_0x1dff77(0x255)](_0x1dff77(0x203)+_0x530431['CLOUD_PROVIDER']+'\x20'),_0x1fbbc4[_0x1dff77(0x1f5)]=_0x4ffc17['CLOUD_PROVIDER']));}async function generateReport(_0x5af29d,_0x3e0ddb){const _0x37dc43=a17_0x28d166,_0x1ab085={'DKZDr':function(_0x15cfbb,_0x38cac8){return _0x15cfbb+_0x38cac8;},'LQCQl':_0x37dc43(0x1a8),'MXAdO':_0x37dc43(0x21b),'Qferk':function(_0x382119,_0x17448c){return _0x382119||_0x17448c;},'XqDtK':'N/A','Smvbj':_0x37dc43(0x1ec),'gfhom':_0x37dc43(0x218),'lDSLw':function(_0x4536bc,_0x611619){return _0x4536bc!=_0x611619;},'enqED':_0x37dc43(0x247),'hfYcU':_0x37dc43(0x235),'dcfsx':function(_0x1825ec){return _0x1825ec();}};let _0x310ff9=_0x37dc43(0x20a)+global_registry[_0x37dc43(0x1f5)]+_0x37dc43(0x1f3);return _0x5af29d['forEach']((_0x191173,_0x3aa1d0)=>{const _0x51c6e3=_0x37dc43,{header:_0x180b7f,response:_0x39aa9c}=_0x191173,{status:_0x723973,data:_0x57af5d,error:_0x45e878}=_0x39aa9c;_0x310ff9+=_0x180b7f+'\x20#'+_0x1ab085[_0x51c6e3(0x1dc)](_0x3aa1d0,0x1)+'\x0a',_0x310ff9+=_0x51c6e3(0x219)+(_0x723973?_0x1ab085['LQCQl']:_0x1ab085['MXAdO'])+'\x0a',_0x310ff9+=_0x51c6e3(0x1de)+_0x1ab085[_0x51c6e3(0x1d0)](_0x57af5d,_0x1ab085[_0x51c6e3(0x224)])+'\x0a',_0x45e878&&(_0x310ff9+=_0x1ab085['Smvbj'],_0x310ff9+='\x20\x20Message:\x20'+(_0x45e878[_0x51c6e3(0x1c4)]||_0x1ab085[_0x51c6e3(0x224)])+'\x0a',_0x310ff9+=_0x51c6e3(0x21a)+(_0x45e878[_0x51c6e3(0x1d6)]||_0x1ab085[_0x51c6e3(0x224)])+'\x0a',_0x310ff9+=_0x51c6e3(0x176)+(_0x45e878[_0x51c6e3(0x205)]||_0x1ab085[_0x51c6e3(0x224)])+'\x0a'),_0x310ff9+='\x0a\x0a';}),_0x310ff9+=_0x1ab085[_0x37dc43(0x1f4)],_0x1ab085[_0x37dc43(0x1d2)](_0x3e0ddb,null)?_0x310ff9+=_0x37dc43(0x22b)+global_registry['clusterName']+'\x20'+(_0x3e0ddb?_0x1ab085[_0x37dc43(0x25a)]:_0x1ab085[_0x37dc43(0x24d)])+'\x0a\x0a':_0x310ff9+='Cluster\x20'+global_registry['clusterName']+_0x37dc43(0x214),_0x310ff9+=_0x1ab085[_0x37dc43(0x184)](getSystemMetaData),_0x310ff9;};exports[a17_0x28d166(0x1bc)]=async function(_0x489808){const _0x3ab524=a17_0x28d166,_0x443676={'GdImC':function(_0x1e468a){return _0x1e468a();},'wzAjy':function(_0x2e2ed7){return _0x2e2ed7();},'cRiNx':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','jjzen':function(_0x395901,_0x1085ea,_0x5f1619,_0x59b71a,_0x1d7ccd,_0x2ed520,_0x9c2327,_0x503a5f){return _0x395901(_0x1085ea,_0x5f1619,_0x59b71a,_0x1d7ccd,_0x2ed520,_0x9c2327,_0x503a5f);},'YtXHl':_0x3ab524(0x1ce),'yRZxe':_0x3ab524(0x199),'UyWCA':_0x3ab524(0x1e9),'PSZhS':function(_0x43b3c0,_0x45b437,_0x577fc4,_0x4aca1c,_0x1b9701,_0x336809,_0x3e7722){return _0x43b3c0(_0x45b437,_0x577fc4,_0x4aca1c,_0x1b9701,_0x336809,_0x3e7722);},'QSdTF':function(_0x57b867){return _0x57b867();},'YoeHo':_0x3ab524(0x25e),'nbyyN':'<PasswordPlaceholder>','PcqEU':function(_0x3eb524,_0x5f06e1,_0x11482d){return _0x3eb524(_0x5f06e1,_0x11482d);},'gKbLf':'dummy-grid','UiWAg':'toolInstalledResp','lXQhL':_0x3ab524(0x1b9),'SuGpk':_0x3ab524(0x230),'chCzp':_0x3ab524(0x18b),'YvzLm':function(_0x4e3027,_0x3d735e){return _0x4e3027(_0x3d735e);},'MwPVF':_0x3ab524(0x1bb),'gXNra':function(_0x22821a,_0x2d84e7,_0x2c64ef){return _0x22821a(_0x2d84e7,_0x2c64ef);},'fiBjj':_0x3ab524(0x25d),'aKlTx':'Tool\x20Installed','JgVps':_0x3ab524(0x170),'MZLDi':_0x3ab524(0x1b6),'wqKde':_0x3ab524(0x1ed),'rZxNr':function(_0x1074e3,_0x4fb0cd,_0x24300a){return _0x1074e3(_0x4fb0cd,_0x24300a);},'RBvsu':function(_0x2d6554,_0xbd1653){return _0x2d6554+_0xbd1653;},'KWKEO':'utf-8','lXnMh':_0x3ab524(0x21c)};let _0x3020f7,_0x1e6fd2;try{global_registry[_0x3ab524(0x1ba)]=_0x443676['GdImC'](uuidv4);!fs[_0x3ab524(0x1a1)](_0x443676['wzAjy'](getCredentialsPath))&&(_0x1e6fd2=_0x443676[_0x3ab524(0x1d5)],logger[_0x3ab524(0x1e9)](_0x1e6fd2),await _0x443676[_0x3ab524(0x22c)](reportToGalactusAndSendToEDS,_0x489808,_0x3020f7,_0x1e6fd2,messageTypes[_0x3ab524(0x207)],_0x443676[_0x3ab524(0x1cf)],_0x443676[_0x3ab524(0x22f)],_0x443676[_0x3ab524(0x23e)]),process[_0x3ab524(0x1fa)](0x1));_0x443676[_0x3ab524(0x1ef)](sendInstrumentationEvent,_0x489808,_0x443676[_0x3ab524(0x1cf)],messageTypes[_0x3ab524(0x22d)],null,null,_0x489808);const _0xbaa737=JSON[_0x3ab524(0x22e)](fs[_0x3ab524(0x23f)](_0x443676[_0x3ab524(0x1a7)](getCredentialsPath)));global_registry[_0x3ab524(0x25c)]=_0xbaa737['Browserstack'][_0x3ab524(0x1ac)],global_registry[_0x3ab524(0x1c0)]=_0xbaa737[_0x3ab524(0x257)]['password'];const _0x21e137=WS_ENDPOINT[_0x3ab524(0x175)](_0x443676[_0x3ab524(0x229)],_0xbaa737[_0x3ab524(0x257)]['username'])['replace'](_0x443676['nbyyN'],_0xbaa737[_0x3ab524(0x257)][_0x3ab524(0x1c9)]),_0x39c4bb={};_0x39c4bb['WebSocket']=ws,_0x39c4bb['connectionTimeout']=0x36ee80,_0x3020f7=new ReconnectingWebSocket(_0x21e137,[],_0x39c4bb),global_registry['authHeader']=_0x443676[_0x3ab524(0x253)](getAuthHeader,global_registry[_0x3ab524(0x25c)],global_registry[_0x3ab524(0x1c0)]),await _0x443676[_0x3ab524(0x253)](inputValidation,_0x489808,_0x3020f7),logger[_0x3ab524(0x255)](_0x3ab524(0x1fd)+global_registry[_0x3ab524(0x1f5)]+_0x3ab524(0x23c)+global_registry['clusterRegion']);let _0x3fcae2=await _0x443676['PSZhS'](getCloudProviderObjectWithOutInit,global_registry[_0x3ab524(0x1f5)],global_registry[_0x3ab524(0x1f8)],_0x443676['gKbLf'],_0x3020f7,webSocketUtils,_0x489808);const _0x1a4dc8=await _0x3fcae2[_0x3ab524(0x220)]();_0x443676[_0x3ab524(0x253)](printResponse,_0x443676[_0x3ab524(0x237)],_0x1a4dc8),_0x3fcae2=await _0x3fcae2[_0x3ab524(0x1ad)]();let _0x532c2f=![];try{_0x532c2f=await _0x3fcae2[_0x3ab524(0x166)]();}catch(_0x2d1ade){const _0x2fb097=_0x443676['lXQhL']['split']('|');let _0x360175=0x0;while(!![]){switch(_0x2fb097[_0x360175++]){case'0':_0x532c2f=null;continue;case'1':_0x1e6fd2+='\x0a'+JSON[_0x3ab524(0x259)](_0x2d1ade[_0x3ab524(0x205)]);continue;case'2':_0x1e6fd2=_0x3ab524(0x1b2)+global_registry[_0x3ab524(0x1f8)]+_0x3ab524(0x223)+global_registry[_0x3ab524(0x18c)]+_0x3ab524(0x1b7)+_0x2d1ade;continue;case'3':await _0x443676['jjzen'](reportToGalactusAndSendToEDS,_0x489808,_0x3020f7,_0x1e6fd2,messageTypes[_0x3ab524(0x207)],_0x443676['YtXHl'],_0x3ab524(0x250)+global_registry[_0x3ab524(0x1f5)],_0x443676[_0x3ab524(0x23e)]);continue;case'4':logger[_0x3ab524(0x1e9)](_0x1e6fd2);continue;}break;}}_0x532c2f&&logger[_0x3ab524(0x255)](_0x3ab524(0x1cc)+global_registry['clusterName']+'`\x20already\x20exists');const _0x300274=await _0x3fcae2[_0x3ab524(0x16f)]();_0x443676['PcqEU'](printResponse,_0x443676[_0x3ab524(0x226)],_0x300274);const _0x4e4438=await _0x443676[_0x3ab524(0x1a7)](curlRequest);_0x443676[_0x3ab524(0x253)](printResponse,_0x443676['chCzp'],_0x4e4438);const _0x32cccf=await _0x443676['YvzLm'](isTlsSupported,_0x443676[_0x3ab524(0x222)]);_0x443676[_0x3ab524(0x16d)](printResponse,_0x443676['fiBjj'],_0x32cccf);const _0x57a7b0={};_0x57a7b0[_0x3ab524(0x1e0)]=_0x443676['aKlTx'],_0x57a7b0[_0x3ab524(0x20b)]=_0x1a4dc8;const _0x1effcc={};_0x1effcc[_0x3ab524(0x1e0)]=_0x443676[_0x3ab524(0x1f9)],_0x1effcc['response']=_0x300274;const _0x505142={};_0x505142['header']=_0x443676[_0x3ab524(0x193)],_0x505142[_0x3ab524(0x20b)]=_0x4e4438;const _0x1ad65b={};_0x1ad65b[_0x3ab524(0x1e0)]=_0x443676[_0x3ab524(0x23b)],_0x1ad65b[_0x3ab524(0x20b)]=_0x32cccf;const _0x987ffe=[_0x57a7b0,_0x1effcc,_0x505142,_0x1ad65b],_0x37314e=await _0x443676[_0x3ab524(0x24f)](generateReport,_0x987ffe,_0x532c2f),_0x39d3e4=new Date(),_0x247ddc=_0x39d3e4[_0x3ab524(0x1db)]()+'_'+_0x443676[_0x3ab524(0x164)](_0x39d3e4[_0x3ab524(0x238)](),0x1)+'_'+_0x39d3e4[_0x3ab524(0x1e6)]()+'_'+_0x39d3e4['getUTCHours']()+'_'+_0x39d3e4['getUTCMinutes'](),_0x317483=_0x3ab524(0x192)+_0x247ddc+_0x3ab524(0x20f);fs[_0x3ab524(0x18d)](_0x317483,_0x37314e,_0x443676[_0x3ab524(0x16c)]),logger[_0x3ab524(0x255)](_0x3ab524(0x17e)+_0x317483),process[_0x3ab524(0x1fa)](0x0);}catch(_0x101576){let _0x578870=_0x3ab524(0x1e4)+_0x101576+'\x20';logger[_0x3ab524(0x1e9)](_0x578870),_0x578870+='\x0a'+JSON[_0x3ab524(0x259)](_0x101576[_0x3ab524(0x205)]),logger[_0x3ab524(0x1d7)]('stack\x20trace\x20'+_0x101576[_0x3ab524(0x205)]);if(_0x3020f7){const _0x3121dd={};_0x3121dd[_0x3ab524(0x163)]=WS_EVENTS['LOG'],_0x3121dd[_0x3ab524(0x1c4)]=_0x578870,webSocketUtils[_0x3ab524(0x1a0)](_0x3020f7,_0x3121dd,_0x443676[_0x3ab524(0x23e)],!![]);}await webSocketUtils[_0x3ab524(0x1e8)](0x7d0);const _0x1b4667={};_0x1b4667[_0x3ab524(0x1e9)]=_0x578870,await _0x443676[_0x3ab524(0x1ef)](sendInstrumentationEvent,_0x489808,_0x443676['YtXHl'],messageTypes[_0x3ab524(0x207)],_0x443676[_0x3ab524(0x217)],_0x1b4667,_0x489808),process[_0x3ab524(0x1fa)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a18_0x54f0(){const _0x4fb5c3=['commandDir','start','nkrul','epilogue','desc','449148ZchqZJ','FQNhc','36711QDHyqx','demandCommand','help','2175960mnfLNU','command','../config/constants','961806VtlrNU','start_commands','10HBboPE','Start\x20an\x20existing\x20Automation\x20grid.','strict','1671560gbpuxC','569736gaWdZd','50dJlzie','usage','1eOKsmr','2275399DOkECu'];a18_0x54f0=function(){return _0x4fb5c3;};return a18_0x54f0();}const a18_0x3a7469=a18_0x5614;(function(_0x40398e,_0x1c137b){const _0x560131=a18_0x5614,_0x16918b=_0x40398e();while(!![]){try{const _0x402b97=parseInt(_0x560131(0x11b))/0x1*(-parseInt(_0x560131(0x10a))/0x2)+parseInt(_0x560131(0x112))/0x3+parseInt(_0x560131(0x117))/0x4+-parseInt(_0x560131(0x114))/0x5*(parseInt(_0x560131(0x118))/0x6)+-parseInt(_0x560131(0x11c))/0x7+parseInt(_0x560131(0x10f))/0x8+-parseInt(_0x560131(0x10c))/0x9*(-parseInt(_0x560131(0x119))/0xa);if(_0x402b97===_0x1c137b)break;else _0x16918b['push'](_0x16918b['shift']());}catch(_0x5c6e0d){_0x16918b['push'](_0x16918b['shift']());}}}(a18_0x54f0,0x4720b));function a18_0x5614(_0x29a301,_0x917422){const _0x54f0be=a18_0x54f0();return a18_0x5614=function(_0x5614f0,_0x4d79e3){_0x5614f0=_0x5614f0-0x106;let _0x32e52a=_0x54f0be[_0x5614f0];return _0x32e52a;},a18_0x5614(_0x29a301,_0x917422);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x3a7469(0x111));exports[a18_0x3a7469(0x110)]=a18_0x3a7469(0x106),exports[a18_0x3a7469(0x109)]=a18_0x3a7469(0x115),exports['builder']=function(_0x25f91f){const _0xd209ec=a18_0x3a7469,_0x20c6e6={};_0x20c6e6[_0xd209ec(0x107)]=_0xd209ec(0x113),_0x20c6e6[_0xd209ec(0x10b)]=_0xd209ec(0x10e);const _0x9c028b=_0x20c6e6;return _0x25f91f[_0xd209ec(0x11a)](HELP_HEADER_MESSAGE['start'])[_0xd209ec(0x108)](HELP_FOOTER_MESSAGE)[_0xd209ec(0x11d)](_0x9c028b[_0xd209ec(0x107)])[_0xd209ec(0x10d)]()['recommendCommands']()[_0xd209ec(0x116)]()['help'](_0x9c028b[_0xd209ec(0x10b)]);},exports['handler']=function(_0x308565){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a19_0x56ad6b=a19_0x31bd;(function(_0x287725,_0x3f3e9c){const _0x2186ab=a19_0x31bd,_0x217f45=_0x287725();while(!![]){try{const _0x54914d=-parseInt(_0x2186ab(0xbf))/0x1*(-parseInt(_0x2186ab(0xa5))/0x2)+parseInt(_0x2186ab(0xa6))/0x3*(-parseInt(_0x2186ab(0xdd))/0x4)+parseInt(_0x2186ab(0xd8))/0x5+parseInt(_0x2186ab(0xe7))/0x6+parseInt(_0x2186ab(0xc2))/0x7*(-parseInt(_0x2186ab(0xce))/0x8)+parseInt(_0x2186ab(0xe8))/0x9*(-parseInt(_0x2186ab(0xb9))/0xa)+-parseInt(_0x2186ab(0xaf))/0xb;if(_0x54914d===_0x3f3e9c)break;else _0x217f45['push'](_0x217f45['shift']());}catch(_0x35e5f8){_0x217f45['push'](_0x217f45['shift']());}}}(a19_0x2d31,0x19b15));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x56ad6b(0xf9)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x56ad6b(0xb4)),{scaleUpHubDeployment}=require(a19_0x56ad6b(0xc5)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x56ad6b(0xe3)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0x56ad6b(0xc6));exports[a19_0x56ad6b(0xa9)]=a19_0x56ad6b(0xa8),exports[a19_0x56ad6b(0xfb)]=a19_0x56ad6b(0xb5),exports['builder']=function(_0x4b4d97){const _0x557aa5=a19_0x56ad6b,_0x37da14={};_0x37da14[_0x557aa5(0xa4)]=_0x557aa5(0xe2),_0x37da14[_0x557aa5(0xdf)]='string',_0x37da14[_0x557aa5(0xe1)]=_0x557aa5(0xb8),_0x37da14[_0x557aa5(0xb7)]=_0x557aa5(0xd3),_0x37da14['BSVHc']='help';const _0x2ead8e=_0x37da14,_0x1d9b92={};_0x1d9b92[_0x557aa5(0xbc)]=_0x2ead8e[_0x557aa5(0xa4)],_0x1d9b92[_0x557aa5(0xae)]=_0x2ead8e[_0x557aa5(0xdf)];const _0x393d88={};_0x393d88[_0x557aa5(0xbc)]=_0x2ead8e[_0x557aa5(0xe1)],_0x393d88['type']=_0x2ead8e[_0x557aa5(0xb7)],_0x393d88[_0x557aa5(0xc8)]=![];const _0x52419d={};return _0x52419d['grid-id']=_0x1d9b92,_0x52419d['skip-tls-cert-verify']=_0x393d88,_0x4b4d97[_0x557aa5(0xd2)](HELP_HEADER_MESSAGE[_0x557aa5(0xeb)])[_0x557aa5(0xac)](HELP_FOOTER_MESSAGE)[_0x557aa5(0xb2)](_0x52419d)[_0x557aa5(0xd0)](_0x2ead8e[_0x557aa5(0xd7)])[_0x557aa5(0xf8)];},exports[a19_0x56ad6b(0xca)]=async function(_0x43e020){const _0x4889db=a19_0x56ad6b,_0x44040f={'SsTJr':_0x4889db(0xcb),'bCAAF':function(_0x5d88cf){return _0x5d88cf();},'kuZDq':_0x4889db(0xda),'uSMOQ':function(_0x490a86,_0x2c0aca,_0x2d8b6c,_0x5e6d5a,_0x5118ca,_0x49543d,_0x8a4dff){return _0x490a86(_0x2c0aca,_0x2d8b6c,_0x5e6d5a,_0x5118ca,_0x49543d,_0x8a4dff);},'jgFDR':_0x4889db(0xc7),'zADVp':_0x4889db(0xed),'vrIMZ':function(_0x37569b,_0x44d105,_0x191e93,_0x25ff09,_0x38e4e3,_0x489f89,_0x33c403){return _0x37569b(_0x44d105,_0x191e93,_0x25ff09,_0x38e4e3,_0x489f89,_0x33c403);},'dynch':_0x4889db(0xd4),'gmcfC':_0x4889db(0xbe),'CfCQx':'Adding\x20Websocket\x20listeners','cimml':function(_0x4a9af4,_0x32b836,_0x438176,_0x24774f){return _0x4a9af4(_0x32b836,_0x438176,_0x24774f);},'IxEYq':function(_0x223a17,_0x957233,_0x4a0227){return _0x223a17(_0x957233,_0x4a0227);},'ddWFp':_0x4889db(0xf7),'JMQrz':function(_0x12186f,_0xc5e690){return _0x12186f===_0xc5e690;},'iHKRI':_0x4889db(0xe0),'RoFfm':function(_0x18ee4b,_0x113201,_0xbf364f,_0x56472a,_0x38b74b,_0x438f61,_0x2f2773){return _0x18ee4b(_0x113201,_0xbf364f,_0x56472a,_0x38b74b,_0x438f61,_0x2f2773);},'OZCjg':'unauthorised','tlUXL':function(_0x28cfc7,_0x50ed98){return _0x28cfc7===_0x50ed98;},'ZHxyP':_0x4889db(0xf1),'GvXPP':'server-error'};let _0x51bb7a;try{!_0x43e020[_0x4889db(0xe5)]&&(logger['error'](_0x44040f[_0x4889db(0xb3)]),process[_0x4889db(0xfa)](0x1));!fs[_0x4889db(0xea)](_0x44040f[_0x4889db(0xf3)](getCredentialsPath))&&(logger[_0x4889db(0xe6)](_0x44040f[_0x4889db(0xbb)]),await _0x44040f[_0x4889db(0xec)](sendInstrumentationEvent,_0x43e020,_0x44040f[_0x4889db(0xdc)],messageTypes[_0x4889db(0xba)],_0x44040f['zADVp'],null,_0x43e020),process[_0x4889db(0xfa)](0x1));logger[_0x4889db(0xf5)](_0x4889db(0xa1)+_0x43e020[_0x4889db(0xe5)]),await _0x44040f[_0x4889db(0xd1)](sendInstrumentationEvent,_0x43e020,_0x44040f['jgFDR'],messageTypes['INFO'],null,null,_0x43e020);const _0x5c1496=JSON[_0x4889db(0xb6)](fs[_0x4889db(0xc0)](_0x44040f['bCAAF'](getCredentialsPath)));global_registry['bstackUsername']=_0x5c1496['Browserstack'][_0x4889db(0xf6)],global_registry[_0x4889db(0xfd)]=_0x5c1496[_0x4889db(0xcd)]['password'];const _0x4d8d2a=WS_ENDPOINT['replace'](_0x44040f[_0x4889db(0xc9)],_0x5c1496['Browserstack'][_0x4889db(0xf6)])[_0x4889db(0xc4)](_0x44040f[_0x4889db(0xd9)],_0x5c1496['Browserstack'][_0x4889db(0xbd)]),_0x3a35ab={};_0x3a35ab[_0x4889db(0xc3)]=ws,_0x3a35ab[_0x4889db(0xc1)]=0x36ee80,_0x51bb7a=new ReconnectingWebSocket(_0x4d8d2a,[],_0x3a35ab),logger[_0x4889db(0xee)](_0x44040f['CfCQx']),webSocketUtils['addListeners'](_0x51bb7a,_0x43e020[_0x4889db(0xb0)],_0x43e020['password']);const [_0x1a62eb,_0x1cd641]=await _0x44040f['cimml'](getGridDetails,_0x5c1496['Browserstack'][_0x4889db(0xf6)],_0x5c1496[_0x4889db(0xcd)][_0x4889db(0xbd)],_0x43e020[_0x4889db(0xe5)]);if(_0x1cd641){const _0xdf7a28=_0x1cd641[_0x4889db(0xf5)];global_registry['cloudProvider']=_0xdf7a28[_0x4889db(0xe4)],global_registry[_0x4889db(0xe9)]=_0xdf7a28[_0x4889db(0xa2)],global_registry[_0x4889db(0xcf)]=_0xdf7a28[_0x4889db(0xcf)];const _0x5d8ae6=await _0x44040f['uSMOQ'](getCloudProviderObject,_0xdf7a28[_0x4889db(0xe4)],_0xdf7a28[_0x4889db(0xcf)],_0xdf7a28[_0x4889db(0xd6)],_0x51bb7a,webSocketUtils,_0x43e020),[_0x5524ab,_0x38d364,_0x44d871,_0x24ec6a,_0x1b59e0,_0x2a1f96]=await _0x44040f[_0x4889db(0xab)](createK8sClient,_0x5d8ae6,_0x43e020['skipTlsCertVerify']);await _0x44040f[_0x4889db(0xab)](scaleUpHubDeployment,_0x38d364,_0xdf7a28[_0x4889db(0xd6)]),logger[_0x4889db(0xf5)](_0x44040f[_0x4889db(0xde)]),process[_0x4889db(0xfa)](0x0);}_0x44040f[_0x4889db(0xd5)](_0x1a62eb['statusCode'],0x191)&&(logger[_0x4889db(0xe6)](_0x44040f[_0x4889db(0xf0)]),await _0x44040f['RoFfm'](sendInstrumentationEvent,_0x43e020,_0x44040f['jgFDR'],messageTypes[_0x4889db(0xba)],_0x44040f[_0x4889db(0xfc)],null,_0x43e020),process[_0x4889db(0xfa)](0x1)),_0x44040f[_0x4889db(0xa3)](_0x1a62eb[_0x4889db(0xf4)],0x190)&&(logger[_0x4889db(0xe6)](JSON[_0x4889db(0xb6)](_0x1a62eb[_0x4889db(0xf2)])[_0x4889db(0xef)]),await _0x44040f[_0x4889db(0xec)](sendInstrumentationEvent,_0x43e020,_0x44040f[_0x4889db(0xdc)],messageTypes[_0x4889db(0xba)],_0x44040f[_0x4889db(0xcc)],null,_0x43e020),process[_0x4889db(0xfa)](0x1)),logger['error'](_0x4889db(0xb1)+JSON[_0x4889db(0xaa)](_0x1a62eb)),await _0x44040f['vrIMZ'](sendInstrumentationEvent,_0x43e020,_0x44040f['jgFDR'],messageTypes['ERROR'],_0x44040f[_0x4889db(0xad)],_0x1a62eb,_0x43e020),process[_0x4889db(0xfa)](0x1);}catch(_0x4c08c0){const _0x19da24=_0x4889db(0xa7)+_0x4c08c0+'\x20\x0a'+JSON['stringify'](_0x4c08c0[_0x4889db(0xdb)])+'\x20';logger[_0x4889db(0xe6)](_0x19da24),process[_0x4889db(0xfa)](0x1);}};function a19_0x31bd(_0x453019,_0x3fc15e){const _0x2d31d5=a19_0x2d31();return a19_0x31bd=function(_0x31bd15,_0x2bca1d){_0x31bd15=_0x31bd15-0xa1;let _0x5a8604=_0x2d31d5[_0x31bd15];return _0x5a8604;},a19_0x31bd(_0x453019,_0x3fc15e);}function a19_0x2d31(){const _0x316e53=['username','Grid\x20started','argv','reconnecting-websocket','exit','desc','OZCjg','bstackAccesskey','Starting\x20grid\x20','region','tlUXL','LyxiA','49772GASprZ','20517jCyXnH','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','grid','command','stringify','IxEYq','epilogue','GvXPP','type','828762wjxdNo','user','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','options','SsTJr','../../utils/utilityMethods','Start\x20an\x20existing\x20Automation\x20grid.','parse','WixiK','Skip\x20insecure\x20cert\x20verification.','20430AyFIhO','ERROR','kuZDq','description','password','<PasswordPlaceholder>','8RqWoiK','readFileSync','connectionTimeout','7BuuMmM','WebSocket','replace','../../utils/gridComponents','../../cloudproviders/utils','start-grid-called','default','dynch','handler','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','ZHxyP','Browserstack','1474328oFYUGY','clusterName','help','vrIMZ','usage','boolean','<UsernamePlaceholder>','JMQrz','name','BSVHc','325980ooIFok','gmcfC','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','stack','jgFDR','4euPqBw','ddWFp','pHGrw','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','DNlkc','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','../../utils/webSocketUtils','cloudProvider','gridId','error','926484dDhEQI','207ZqcEJa','clusterRegion','existsSync','start','uSMOQ','init-not-called','debug','message','iHKRI','invalid-grid-id','body','bCAAF','statusCode','info'];a19_0x2d31=function(){return _0x316e53;};return a19_0x2d31();}
|
package/ats/src/commands/stop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0xe0fa0=a20_0x2021;(function(_0x7d95e9,_0xfa9071){const _0x493b15=a20_0x2021,_0x2b4922=_0x7d95e9();while(!![]){try{const _0x1b2697=-parseInt(_0x493b15(0x110))/0x1*(parseInt(_0x493b15(0xfb))/0x2)+-parseInt(_0x493b15(0x113))/0x3+-parseInt(_0x493b15(0x10c))/0x4*(parseInt(_0x493b15(0xfc))/0x5)+parseInt(_0x493b15(0xff))/0x6*(parseInt(_0x493b15(0x10b))/0x7)+-parseInt(_0x493b15(0x105))/0x8*(parseInt(_0x493b15(0x10e))/0x9)+parseInt(_0x493b15(0x10f))/0xa+parseInt(_0x493b15(0x102))/0xb;if(_0x1b2697===_0xfa9071)break;else _0x2b4922['push'](_0x2b4922['shift']());}catch(_0x1cf760){_0x2b4922['push'](_0x2b4922['shift']());}}}(a20_0x36c1,0x6d885));function a20_0x36c1(){const _0x51e675=['126PYNezN','1997572IgKGcH','handler','9EndIqZ','1937770VophXm','91499hKnKeh','../config/constants','command','6315WkmZmQ','epilogue','6kkkSCR','5tMtlVY','desc','commandDir','73026lxhMSw','help','stop_commands','16385897npbCGq','demandCommand','uMesD','5422736dhMKgA','IIXFd','recommendCommands','usage','stop','strict'];a20_0x36c1=function(){return _0x51e675;};return a20_0x36c1();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0xe0fa0(0x111));function a20_0x2021(_0x528622,_0x39ad3e){const _0x36c1c8=a20_0x36c1();return a20_0x2021=function(_0x2021b8,_0x2f6f14){_0x2021b8=_0x2021b8-0xfb;let _0x3c2ee3=_0x36c1c8[_0x2021b8];return _0x3c2ee3;},a20_0x2021(_0x528622,_0x39ad3e);}exports[a20_0xe0fa0(0x112)]=a20_0xe0fa0(0x109),exports[a20_0xe0fa0(0xfd)]='Stop\x20a\x20running\x20Automation\x20grid.',exports['builder']=function(_0x17ef4c){const _0x4dd9d6=a20_0xe0fa0,_0x154ed7={};_0x154ed7[_0x4dd9d6(0x106)]=_0x4dd9d6(0x101),_0x154ed7['uMesD']='help';const _0x320a55=_0x154ed7;return _0x17ef4c[_0x4dd9d6(0x108)](HELP_HEADER_MESSAGE[_0x4dd9d6(0x109)])[_0x4dd9d6(0x114)](HELP_FOOTER_MESSAGE)[_0x4dd9d6(0xfe)](_0x320a55[_0x4dd9d6(0x106)])[_0x4dd9d6(0x103)]()[_0x4dd9d6(0x107)]()[_0x4dd9d6(0x10a)]()[_0x4dd9d6(0x100)](_0x320a55[_0x4dd9d6(0x104)]);},exports[a20_0xe0fa0(0x10d)]=function(_0x2f34dd){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a21_0x1a0ec0=a21_0x222f;(function(_0xd82847,_0x208736){const _0x24e8e7=a21_0x222f,_0x1aa739=_0xd82847();while(!![]){try{const _0x30eaac=parseInt(_0x24e8e7(0xc5))/0x1*(parseInt(_0x24e8e7(0x84))/0x2)+-parseInt(_0x24e8e7(0xc6))/0x3*(-parseInt(_0x24e8e7(0x8b))/0x4)+-parseInt(_0x24e8e7(0xbf))/0x5+-parseInt(_0x24e8e7(0xb7))/0x6*(-parseInt(_0x24e8e7(0xb5))/0x7)+parseInt(_0x24e8e7(0xb1))/0x8+parseInt(_0x24e8e7(0x82))/0x9+-parseInt(_0x24e8e7(0x9f))/0xa;if(_0x30eaac===_0x208736)break;else _0x1aa739['push'](_0x1aa739['shift']());}catch(_0x32ddb1){_0x1aa739['push'](_0x1aa739['shift']());}}}(a21_0x141f,0x9b1ee));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x1a0ec0(0x76)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x1a0ec0(0x99)),{scaleDownHubDeployment}=require(a21_0x1a0ec0(0xc4)),{sendInstrumentationEvent}=require(a21_0x1a0ec0(0xb9)),webSocketUtils=require(a21_0x1a0ec0(0x7a)),{createK8sClient}=require(a21_0x1a0ec0(0xaf)),{getCloudProviderObject}=require(a21_0x1a0ec0(0x8c));function a21_0x222f(_0x55b23d,_0x56940c){const _0x141ffe=a21_0x141f();return a21_0x222f=function(_0x222f0e,_0x30ace){_0x222f0e=_0x222f0e-0x74;let _0x1bf778=_0x141ffe[_0x222f0e];return _0x1bf778;},a21_0x222f(_0x55b23d,_0x56940c);}function a21_0x141f(){const _0x322ba4=['../../config/constants','boolean','clusterName','parse','../../utils/webSocketUtils','gridId','EdDdk','bstackUsername','tsVxz','invalid-grid-id','help','ERROR','10864863gJtxzI','GgwSP','2306002EzJPpr','region','tYgIY','readFileSync','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','error','vSHZc','340mxjtOA','../../cloudproviders/utils','username','stringify','bstackAccesskey','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','grid-id','Browserstack','stop','skip-tls-cert-verify','Bwpdn','mJBUX','connectionTimeout','../../utils/utilityMethods','Stop\x20a\x20running\x20Automation\x20grid.','<UsernamePlaceholder>','NoiCc','info','tLYyC','26948760jWOYAy','WebSocket','clusterRegion','name','argv','Grid\x20stoppped.','epilogue','axocy','IsFIZ','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','WmUjv','BOBBZ','usage','vaSVU','init-not-called','unauthorised','../../utils/createk8sClient','handler','7560832VQZUsa','existsSync','statusCode','Skip\x20insecure\x20cert\x20verification.','3446681pYGfAh','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','6Sdysxh','grid','../../utils/instrumentationUtils','skipTlsCertVerify','message','body','ithUV','IrTTb','2485550piLEpD','options','raNVb','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','exit','../../utils/gridComponents','1BleYBl','1047ONabjK','builder','cloudProvider','stop-grid-called','JEXjU','password','HCrvR','debug','description','Oujld','BTLVJ','command','mktmS','type'];a21_0x141f=function(){return _0x322ba4;};return a21_0x141f();}exports[a21_0x1a0ec0(0xd1)]=a21_0x1a0ec0(0xb8),exports['desc']=a21_0x1a0ec0(0x9a),exports[a21_0x1a0ec0(0xc7)]=function(_0x652227){const _0x3f618b=a21_0x1a0ec0,_0x4d95d1={};_0x4d95d1[_0x3f618b(0xcc)]=_0x3f618b(0x88),_0x4d95d1[_0x3f618b(0x97)]='string',_0x4d95d1[_0x3f618b(0xa9)]=_0x3f618b(0xb4),_0x4d95d1[_0x3f618b(0xc1)]=_0x3f618b(0x77),_0x4d95d1[_0x3f618b(0xd0)]=_0x3f618b(0x80);const _0x414e1f=_0x4d95d1,_0x238ea5={};_0x238ea5[_0x3f618b(0xce)]=_0x414e1f['HCrvR'],_0x238ea5[_0x3f618b(0x75)]=_0x414e1f['mJBUX'];const _0xfc16b3={};_0xfc16b3[_0x3f618b(0xce)]=_0x414e1f['WmUjv'],_0xfc16b3[_0x3f618b(0x75)]=_0x414e1f['raNVb'],_0xfc16b3['default']=![];const _0x3e92ab={};return _0x3e92ab[_0x3f618b(0x92)]=_0x238ea5,_0x3e92ab[_0x3f618b(0x95)]=_0xfc16b3,_0x652227[_0x3f618b(0xab)](HELP_HEADER_MESSAGE[_0x3f618b(0x94)])[_0x3f618b(0xa5)](HELP_FOOTER_MESSAGE)[_0x3f618b(0xc0)](_0x3e92ab)[_0x3f618b(0x80)](_0x414e1f['BTLVJ'])[_0x3f618b(0xa3)];},exports[a21_0x1a0ec0(0xb0)]=async function(_0x56dc3f){const _0x4da7b8=a21_0x1a0ec0,_0x599332={'IsFIZ':_0x4da7b8(0xa8),'EdDdk':function(_0x1da5ee){return _0x1da5ee();},'NoiCc':_0x4da7b8(0x91),'Bwpdn':function(_0x554f6d,_0x1791f8,_0x329376,_0x2c03f1,_0x89d6d8,_0x35efe2,_0x3b05b8){return _0x554f6d(_0x1791f8,_0x329376,_0x2c03f1,_0x89d6d8,_0x35efe2,_0x3b05b8);},'IrTTb':_0x4da7b8(0xc9),'tsVxz':_0x4da7b8(0xad),'JEXjU':function(_0x3ce9d6,_0xff72ec,_0x361e81,_0xd33a06,_0x2f9649,_0x597a71,_0x10b05a){return _0x3ce9d6(_0xff72ec,_0x361e81,_0xd33a06,_0x2f9649,_0x597a71,_0x10b05a);},'mktmS':function(_0x3541ee){return _0x3541ee();},'eNEdj':_0x4da7b8(0x9b),'UQdWV':'<PasswordPlaceholder>','mstem':'Adding\x20Websocket\x20listeners','axocy':function(_0x4f5d41,_0x27f65b,_0x11da24,_0x1af91d){return _0x4f5d41(_0x27f65b,_0x11da24,_0x1af91d);},'Oujld':function(_0x3e302f,_0x3d1f9f,_0x15f616,_0x51cf07,_0x226026,_0x296312,_0x1ee725){return _0x3e302f(_0x3d1f9f,_0x15f616,_0x51cf07,_0x226026,_0x296312,_0x1ee725);},'WJuTx':function(_0x53f440,_0x451d9e,_0x267726){return _0x53f440(_0x451d9e,_0x267726);},'vaSVU':_0x4da7b8(0xa4),'GgwSP':function(_0x456a82,_0x4839a0){return _0x456a82===_0x4839a0;},'tYgIY':_0x4da7b8(0xc2),'vSHZc':_0x4da7b8(0xae),'BOBBZ':_0x4da7b8(0x7f),'ithUV':function(_0x1a7384,_0x1171a1,_0x275bc9,_0x3d6bc3,_0x133c77,_0xf52fcc,_0x122757){return _0x1a7384(_0x1171a1,_0x275bc9,_0x3d6bc3,_0x133c77,_0xf52fcc,_0x122757);},'tLYyC':'server-error'};let _0x2a898c;try{!_0x56dc3f[_0x4da7b8(0x7b)]&&(logger[_0x4da7b8(0x89)](_0x599332[_0x4da7b8(0xa7)]),process['exit'](0x1));!fs[_0x4da7b8(0xb2)](_0x599332[_0x4da7b8(0x7c)](getCredentialsPath))&&(logger['error'](_0x599332[_0x4da7b8(0x9c)]),await _0x599332[_0x4da7b8(0x96)](sendInstrumentationEvent,_0x56dc3f,_0x599332[_0x4da7b8(0xbe)],messageTypes[_0x4da7b8(0x81)],_0x599332[_0x4da7b8(0x7e)],null,_0x56dc3f),process[_0x4da7b8(0xc3)](0x1));logger['info']('Stopping\x20grid\x20'+_0x56dc3f['gridId']),await _0x599332[_0x4da7b8(0xca)](sendInstrumentationEvent,_0x56dc3f,_0x599332['IrTTb'],messageTypes['INFO'],null,null,_0x56dc3f);const _0x42abc7=JSON[_0x4da7b8(0x79)](fs[_0x4da7b8(0x87)](_0x599332[_0x4da7b8(0x74)](getCredentialsPath)));global_registry[_0x4da7b8(0x7d)]=_0x42abc7['Browserstack'][_0x4da7b8(0x8d)],global_registry[_0x4da7b8(0x8f)]=_0x42abc7[_0x4da7b8(0x93)][_0x4da7b8(0xcb)];const _0x53a558=WS_ENDPOINT['replace'](_0x599332['eNEdj'],_0x42abc7['Browserstack'][_0x4da7b8(0x8d)])['replace'](_0x599332['UQdWV'],_0x42abc7[_0x4da7b8(0x93)][_0x4da7b8(0xcb)]),_0xad58e1={};_0xad58e1[_0x4da7b8(0xa0)]=ws,_0xad58e1[_0x4da7b8(0x98)]=0x36ee80,_0x2a898c=new ReconnectingWebSocket(_0x53a558,[],_0xad58e1),logger[_0x4da7b8(0xcd)](_0x599332['mstem']),webSocketUtils['addListeners'](_0x2a898c,_0x56dc3f['user'],_0x56dc3f['password']);const [_0x2adeca,_0x33813e]=await _0x599332[_0x4da7b8(0xa6)](getGridDetails,_0x42abc7[_0x4da7b8(0x93)][_0x4da7b8(0x8d)],_0x42abc7[_0x4da7b8(0x93)][_0x4da7b8(0xcb)],_0x56dc3f[_0x4da7b8(0x7b)]);if(_0x33813e){const _0x4d4bd5=_0x33813e[_0x4da7b8(0x9d)];global_registry[_0x4da7b8(0xc8)]=_0x4d4bd5[_0x4da7b8(0xc8)],global_registry[_0x4da7b8(0xa1)]=_0x4d4bd5[_0x4da7b8(0x85)],global_registry[_0x4da7b8(0x78)]=_0x4d4bd5[_0x4da7b8(0x78)];const _0x57ef02=await _0x599332[_0x4da7b8(0xcf)](getCloudProviderObject,_0x4d4bd5[_0x4da7b8(0xc8)],_0x4d4bd5[_0x4da7b8(0x78)],_0x4d4bd5['name'],_0x2a898c,webSocketUtils,_0x56dc3f),[_0x28851d,_0x557c25,_0x12a79a,_0x49a340,_0x5cf10e,_0x173b76]=await _0x599332['WJuTx'](createK8sClient,_0x57ef02,_0x56dc3f[_0x4da7b8(0xba)]);await _0x599332['WJuTx'](scaleDownHubDeployment,_0x557c25,_0x4d4bd5[_0x4da7b8(0xa2)]),logger[_0x4da7b8(0x9d)](_0x599332[_0x4da7b8(0xac)]),process[_0x4da7b8(0xc3)](0x0);}_0x599332[_0x4da7b8(0x83)](_0x2adeca[_0x4da7b8(0xb3)],0x191)&&(logger[_0x4da7b8(0x89)](_0x599332[_0x4da7b8(0x86)]),await _0x599332[_0x4da7b8(0xca)](sendInstrumentationEvent,_0x56dc3f,_0x599332[_0x4da7b8(0xbe)],messageTypes['ERROR'],_0x599332[_0x4da7b8(0x8a)],null,_0x56dc3f),process[_0x4da7b8(0xc3)](0x1)),_0x599332[_0x4da7b8(0x83)](_0x2adeca[_0x4da7b8(0xb3)],0x190)&&(logger[_0x4da7b8(0x89)](JSON[_0x4da7b8(0x79)](_0x2adeca[_0x4da7b8(0xbc)])[_0x4da7b8(0xbb)]),await _0x599332[_0x4da7b8(0xca)](sendInstrumentationEvent,_0x56dc3f,_0x599332[_0x4da7b8(0xbe)],messageTypes[_0x4da7b8(0x81)],_0x599332[_0x4da7b8(0xaa)],null,_0x56dc3f),process[_0x4da7b8(0xc3)](0x1)),logger['error'](_0x4da7b8(0xb6)+JSON[_0x4da7b8(0x8e)](_0x2adeca)),await _0x599332[_0x4da7b8(0xbd)](sendInstrumentationEvent,_0x56dc3f,_0x599332['IrTTb'],messageTypes[_0x4da7b8(0x81)],_0x599332[_0x4da7b8(0x9e)],_0x2adeca,_0x56dc3f),process[_0x4da7b8(0xc3)](0x1);}catch(_0xd6af2c){const _0x334920=_0x4da7b8(0x90)+_0xd6af2c+'\x20\x0a'+JSON[_0x4da7b8(0x8e)](_0xd6af2c['stack'])+'\x20';logger['error'](_0x334920),process['exit'](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x1232ef=a22_0x12a4;(function(_0x4dc59f,_0x1e9f7b){const _0x92786d=a22_0x12a4,_0x1b8ce9=_0x4dc59f();while(!![]){try{const _0x21e45a=-parseInt(_0x92786d(0x16f))/0x1*(-parseInt(_0x92786d(0x1ac))/0x2)+-parseInt(_0x92786d(0x1af))/0x3+parseInt(_0x92786d(0x182))/0x4*(parseInt(_0x92786d(0x19c))/0x5)+parseInt(_0x92786d(0x1a2))/0x6*(parseInt(_0x92786d(0x1a9))/0x7)+-parseInt(_0x92786d(0x15a))/0x8*(-parseInt(_0x92786d(0x153))/0x9)+parseInt(_0x92786d(0x17d))/0xa*(-parseInt(_0x92786d(0x1bf))/0xb)+-parseInt(_0x92786d(0x198))/0xc;if(_0x21e45a===_0x1e9f7b)break;else _0x1b8ce9['push'](_0x1b8ce9['shift']());}catch(_0x3519f0){_0x1b8ce9['push'](_0x1b8ce9['shift']());}}}(a22_0x12f3,0x83e3c),require('dotenv')[a22_0x1232ef(0x1ab)]());let gridURL=a22_0x1232ef(0x1a1),bsApiUrl=a22_0x1232ef(0x171),agApiUrl=a22_0x1232ef(0x19f);const _env=(process[a22_0x1232ef(0x166)][a22_0x1232ef(0x170)]||a22_0x1232ef(0x17e))[a22_0x1232ef(0x15b)]();if(_env===a22_0x1232ef(0x177)||_env===a22_0x1232ef(0x187))gridURL=a22_0x1232ef(0x16a),bsApiUrl=a22_0x1232ef(0x167),agApiUrl='grid-api-devhst.bsstag.com';else(_env===a22_0x1232ef(0x17f)||_env==='pre-prod')&&(gridURL=a22_0x1232ef(0x1b4),bsApiUrl='api-preprod.bsstag.com',agApiUrl=a22_0x1232ef(0x1b2));exports['DASHBOARD_ENDPOINT']=process[a22_0x1232ef(0x166)][a22_0x1232ef(0x175)]||gridURL,exports[a22_0x1232ef(0x162)]=process[a22_0x1232ef(0x166)][a22_0x1232ef(0x162)]||bsApiUrl,exports['AG_API_URL']=process['env'][a22_0x1232ef(0x1b1)]||agApiUrl,exports[a22_0x1232ef(0x17a)]=a22_0x1232ef(0x1bd)+this['AG_API_URL']+a22_0x1232ef(0x1b3),exports[a22_0x1232ef(0x16b)]='credentials',exports['IAM_USER_NAME']='BrowserStackIAMUser',exports['DEFAULT_GRID_NAME']=a22_0x1232ef(0x156),exports[a22_0x1232ef(0x1a8)]=a22_0x1232ef(0x1b5),exports[a22_0x1232ef(0x194)]=a22_0x1232ef(0x1a3),exports['CLUSTER_AUTOSCALER_STACK_NAME']='BSTACK-ATS-CLUSTER-AUTOSCALER',exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x1232ef(0x164),exports['TURBOSCALE_DEPLOYMENT']=a22_0x1232ef(0x168),exports[a22_0x1232ef(0x181)]='azure',exports[a22_0x1232ef(0x161)]='gcp',exports[a22_0x1232ef(0x169)]=[this[a22_0x1232ef(0x1a8)],this[a22_0x1232ef(0x181)],this[a22_0x1232ef(0x161)]];const a22_0x27d026={};a22_0x27d026[a22_0x1232ef(0x184)]=a22_0x1232ef(0x19d),a22_0x27d026[a22_0x1232ef(0x1ba)]=a22_0x1232ef(0x18c);const a22_0xc64eae={};function a22_0x12a4(_0x1a2195,_0x548c20){const _0x12f3d3=a22_0x12f3();return a22_0x12a4=function(_0x12a448,_0x11065a){_0x12a448=_0x12a448-0x153;let _0x4f071f=_0x12f3d3[_0x12a448];return _0x4f071f;},a22_0x12a4(_0x1a2195,_0x548c20);}a22_0xc64eae[a22_0x1232ef(0x184)]=a22_0x1232ef(0x197),a22_0xc64eae['Value']=a22_0x1232ef(0x174);const common_hst_tags_list=[a22_0x27d026,a22_0xc64eae];if(process[a22_0x1232ef(0x166)]['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x1232ef(0x166)][a22_0x1232ef(0x15c)][a22_0x1232ef(0x15f)](',');parsedTags[a22_0x1232ef(0x159)](_0x1397c5=>{const _0x3f3f11=a22_0x1232ef,_0x51eacc=_0x1397c5[_0x3f3f11(0x15f)](':'),_0x5008f4={};_0x5008f4[_0x3f3f11(0x184)]=_0x51eacc[0x0],_0x5008f4[_0x3f3f11(0x1ba)]=_0x51eacc[0x1],common_hst_tags_list[_0x3f3f11(0x185)](_0x5008f4);});}exports[a22_0x1232ef(0x160)]=common_hst_tags_list;const a22_0x980998={};a22_0x980998[a22_0x1232ef(0x19d)]='BrowserStack',a22_0x980998['browserstack:service']='BrowserStack-Automate-TurboScale',exports[a22_0x1232ef(0x196)]=a22_0x980998,exports[a22_0x1232ef(0x176)]=[this['AWS']];const a22_0x139bae={};a22_0x139bae[a22_0x1232ef(0x157)]='log',a22_0x139bae['RESOURCES']=a22_0x1232ef(0x1a0),a22_0x139bae[a22_0x1232ef(0x17b)]=a22_0x1232ef(0x188),a22_0x139bae[a22_0x1232ef(0x180)]=a22_0x1232ef(0x1ad),a22_0x139bae[a22_0x1232ef(0x193)]=a22_0x1232ef(0x1a7),exports[a22_0x1232ef(0x192)]=a22_0x139bae,exports['global_registry']={},exports[a22_0x1232ef(0x18f)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x2eccf5={};a22_0x2eccf5[a22_0x1232ef(0x1b7)]=a22_0x1232ef(0x18e)+this['LINK_MESSAGE'],a22_0x2eccf5[a22_0x1232ef(0x1bb)]=a22_0x1232ef(0x19e)+this[a22_0x1232ef(0x18f)],a22_0x2eccf5['configure']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a22_0x1232ef(0x18f)],a22_0x2eccf5['create']=a22_0x1232ef(0x199)+this['LINK_MESSAGE'],a22_0x2eccf5[a22_0x1232ef(0x17c)]={},a22_0x2eccf5[a22_0x1232ef(0x16c)]=a22_0x1232ef(0x19b)+this[a22_0x1232ef(0x18f)],a22_0x2eccf5[a22_0x1232ef(0x163)]=a22_0x1232ef(0x18a)+this[a22_0x1232ef(0x18f)],a22_0x2eccf5[a22_0x1232ef(0x18d)]=a22_0x1232ef(0x183)+this[a22_0x1232ef(0x18f)],a22_0x2eccf5[a22_0x1232ef(0x195)]=a22_0x1232ef(0x15e)+this[a22_0x1232ef(0x18f)],a22_0x2eccf5['pre_check']='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x2eccf5[a22_0x1232ef(0x17c)][a22_0x1232ef(0x1b7)]=a22_0x1232ef(0x16d)+this['LINK_MESSAGE'],a22_0x2eccf5[a22_0x1232ef(0x17c)][a22_0x1232ef(0x1a5)]=a22_0x1232ef(0x191)+this[a22_0x1232ef(0x18f)],a22_0x2eccf5[a22_0x1232ef(0x17c)][a22_0x1232ef(0x158)]=a22_0x1232ef(0x15d)+this[a22_0x1232ef(0x18f)],exports[a22_0x1232ef(0x1b9)]=a22_0x2eccf5,exports[a22_0x1232ef(0x1b8)]=a22_0x1232ef(0x190);const a22_0x18ab22={};a22_0x18ab22['SUCCESS']=a22_0x1232ef(0x178),a22_0x18ab22[a22_0x1232ef(0x155)]=a22_0x1232ef(0x1ae),a22_0x18ab22[a22_0x1232ef(0x189)]=a22_0x1232ef(0x173),a22_0x18ab22['WARNING']=a22_0x1232ef(0x1a6),a22_0x18ab22['UNKNOWN']=a22_0x1232ef(0x16e),a22_0x18ab22[a22_0x1232ef(0x1b0)]=null,exports['messageTypes']=a22_0x18ab22,exports[a22_0x1232ef(0x165)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x1232ef(0x1a4)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x1232ef(0x186)]=a22_0x1232ef(0x19a);const a22_0x26a12b={};a22_0x26a12b[a22_0x1232ef(0x154)]=a22_0x1232ef(0x1bc);const a22_0xd7fb93={};a22_0xd7fb93[a22_0x1232ef(0x18b)]=a22_0x26a12b,exports['MessageDescription']=a22_0xd7fb93,exports[a22_0x1232ef(0x179)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x464942={};function a22_0x12f3(){const _0x516aea=['CLUSTER','385FVXThj','8577lYcLaz','grid-profile','ERROR','high-scale-grid','LOG','gridProfile','forEach','808WOBZRP','toLowerCase','TURBOSCALE_CUSTOM_TAGS','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','split','COMMON_HST_TAGS','GCP','BS_API_URL','connect','BSTACK-ATS-CLUSTER-HUB-HA','CLI_ARGS_REGEX','env','api-devhst.bsstag.com','browserstack-turboscale-grid','ALL_SUPPORTED_CLOUD_PROVIDERS','grid-devhst.bsstag.com','CP_CONFIG_FILE','delete','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','unknown','253jfiIRl','BROWSERSTACK_ENV','api.browserstack.com','REGION','info','BrowserStack-Automate-TurboScale','DASHBOARD_ENDPOINT','SUPPORTED_CLOUD_PROVIDERS','staging','success','TRIAL_GRID_URL','WS_ENDPOINT','GRID_URL','list','22270SPjeOF','prod','preprod','CLI_RUN_STARTED','AZURE','4DcVElE','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','Key','push','REDACTED','stag','gridUrl','INFO','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','pre-check','BrowserStack','start','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','LINK_MESSAGE','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','WS_EVENTS','CLI_RUN_FINISHED','CLUSTER_DEP_STACK_NAME','stop','HST_CLUSTER_TAGS','browserstack:service','12784572MMrQRt','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','[REDACTED]','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','2544905bDcpIs','browserstack:managedBy','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','grid-api.browserstack.com','resourceInfo','grid.browserstack.com','1646946kJePJI','BSTACK-ATS-CLUSTER','RAW_ARGS_REGEX','grid','warning','cliRunFinished','AWS','21exCXmS','CLOUD_PROVIDER','config','5188xScgeO','cliRunStarted','error','1204329lftcKz','NULL','AG_API_URL','grid-api-preprod.bsstag.com','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','grid-preprod.bsstag.com','aws','high-scale-grid-cluster','root','HELP_FOOTER_MESSAGE','HELP_HEADER_MESSAGE','Value','init','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','wss://'];a22_0x12f3=function(){return _0x516aea;};return a22_0x12f3();}a22_0x464942[a22_0x1232ef(0x1be)]=a22_0x1232ef(0x1b6),a22_0x464942[a22_0x1232ef(0x1aa)]='aws',a22_0x464942[a22_0x1232ef(0x172)]='us-east-1',exports['DEFAULT_CLUSTER_DETAILS']=a22_0x464942;
|
package/ats/src/config/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a23_0x1a7525=a23_0x4a5a;(function(_0x1bb1f9,_0x220a51){const _0x315bf3=a23_0x4a5a,_0x1efe86=_0x1bb1f9();while(!![]){try{const _0x3feba5=parseInt(_0x315bf3(0x8b))/0x1+-parseInt(_0x315bf3(0x7f))/0x2+-parseInt(_0x315bf3(0x80))/0x3+parseInt(_0x315bf3(0x82))/0x4*(-parseInt(_0x315bf3(0x83))/0x5)+-parseInt(_0x315bf3(0x81))/0x6+-parseInt(_0x315bf3(0x86))/0x7*(parseInt(_0x315bf3(0x96))/0x8)+parseInt(_0x315bf3(0x88))/0x9;if(_0x3feba5===_0x220a51)break;else _0x1efe86['push'](_0x1efe86['shift']());}catch(_0x2c30e4){_0x1efe86['push'](_0x1efe86['shift']());}}}(a23_0x4a0d,0x5506f));const winston=require('winston'),fs=require('fs'),path=require(a23_0x1a7525(0x91)),logDir='log';!fs[a23_0x1a7525(0x8f)](logDir)&&fs[a23_0x1a7525(0x8e)](logDir);const a23_0x38e203={};a23_0x38e203[a23_0x1a7525(0x85)]=a23_0x1a7525(0x89);const a23_0x5f0663={};function a23_0x4a5a(_0x54ae17,_0x1cdda7){const _0x4a0d23=a23_0x4a0d();return a23_0x4a5a=function(_0x4a5aef,_0x2e7b81){_0x4a5aef=_0x4a5aef-0x7d;let _0x35cc14=_0x4a0d23[_0x4a5aef];return _0x35cc14;},a23_0x4a5a(_0x54ae17,_0x1cdda7);}a23_0x5f0663[a23_0x1a7525(0x92)]=!![];const a23_0x15d476={};function a23_0x4a0d(){const _0x4c6be0=['fileLogger','createLogger','combine','message','usage.log','992350Bqqizb','2001348cjwNqM','733260tTHNip','24PCXMkO','521855MCurpo','printf','format','421582uDbBPB','transports','18485757HqLSFT','YYYY-MM-DD\x20HH:mm:ss','Console','266251JvKKdE','timestamp','debug','mkdirSync','existsSync','join','path','level','colorize','name','\x20-\x20','8tUyxgP','File'];a23_0x4a0d=function(){return _0x4c6be0;};return a23_0x4a0d();}a23_0x15d476[a23_0x1a7525(0x94)]='console.info',exports['logger']=new winston[(a23_0x1a7525(0x99))]({'format':winston[a23_0x1a7525(0x85)][a23_0x1a7525(0x9a)](winston['format'][a23_0x1a7525(0x8c)](a23_0x38e203),winston[a23_0x1a7525(0x85)][a23_0x1a7525(0x93)](a23_0x5f0663),winston[a23_0x1a7525(0x85)][a23_0x1a7525(0x84)](_0x574031=>_0x574031[a23_0x1a7525(0x8c)]+a23_0x1a7525(0x95)+_0x574031[a23_0x1a7525(0x92)]+':\x20'+_0x574031[a23_0x1a7525(0x7d)])),'transports':[new winston[(a23_0x1a7525(0x87))][(a23_0x1a7525(0x8a))](a23_0x15d476),new winston[(a23_0x1a7525(0x87))][(a23_0x1a7525(0x97))]({'filename':path['join'](logDir,'events.log'),'level':a23_0x1a7525(0x8d)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x1a7525(0x87))][(a23_0x1a7525(0x97))]({'filename':path[a23_0x1a7525(0x90)](logDir,a23_0x1a7525(0x7e)),'level':a23_0x1a7525(0x8d)})]};exports[a23_0x1a7525(0x98)]=new winston['createLogger'](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_0x34ff27=a24_0x5e64;(function(_0x3061db,_0x3db302){const _0xcd7928=a24_0x5e64,_0x12700a=_0x3061db();while(!![]){try{const _0x2ad7fe=parseInt(_0xcd7928(0x193))/0x1+parseInt(_0xcd7928(0x18f))/0x2*(parseInt(_0xcd7928(0x18e))/0x3)+-parseInt(_0xcd7928(0x18d))/0x4+-parseInt(_0xcd7928(0x187))/0x5+parseInt(_0xcd7928(0x18b))/0x6*(parseInt(_0xcd7928(0x199))/0x7)+parseInt(_0xcd7928(0x192))/0x8+parseInt(_0xcd7928(0x185))/0x9*(-parseInt(_0xcd7928(0x186))/0xa);if(_0x2ad7fe===_0x3db302)break;else _0x12700a['push'](_0x12700a['shift']());}catch(_0x2e2719){_0x12700a['push'](_0x12700a['shift']());}}}(a24_0x2d7b,0x958b1));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x34ff27(0x190));function a24_0x5e64(_0x2fecc4,_0x5df1eb){const _0x2d7b0f=a24_0x2d7b();return a24_0x5e64=function(_0x5e649b,_0x48a7fd){_0x5e649b=_0x5e649b-0x184;let _0x38596e=_0x2d7b0f[_0x5e649b];return _0x38596e;},a24_0x5e64(_0x2fecc4,_0x5df1eb);}function a24_0x2d7b(){const _0x49b6cd=['BTnse','12dfMANy','help','1966116CPNxzk','3aFUxEE','2121002VYkrER','./config/constants','env','6243072aGMAJi','732984lBktvs','commandDir','epilogue','exports','demandCommand','usage','2035460uxsnaf','mHMHX','commands','11976777tfbugq','10sumtvR','3603090ritZnT','root','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE'];a24_0x2d7b=function(){return _0x49b6cd;};return a24_0x2d7b();}process[a24_0x34ff27(0x191)][a24_0x34ff27(0x189)]=0x1;function run(_0x5017cc){const _0xc44b98=a24_0x34ff27,_0x239e82={};_0x239e82[_0xc44b98(0x18a)]=_0xc44b98(0x184),_0x239e82['mHMHX']=_0xc44b98(0x18c);const _0x2636ef=_0x239e82;_0x5017cc[_0xc44b98(0x198)](HELP_HEADER_MESSAGE[_0xc44b98(0x188)])[_0xc44b98(0x194)](_0x2636ef[_0xc44b98(0x18a)])[_0xc44b98(0x197)]()['help'](_0x2636ef[_0xc44b98(0x19a)])[_0xc44b98(0x195)](HELP_FOOTER_MESSAGE);}module[a24_0x34ff27(0x196)]=run;
|