browserstack-node-sdk 1.55.4 → 1.55.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/generated/sdk-messages_pb.d.ts +40 -0
- package/generated/sdk-messages_pb.js +322 -2
- package/package.json +3 -2
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -0
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15_0x32ef8b=a15_0xa435;function a15_0xa435(_0x1ef737,_0x551560){const _0x4124a9=a15_0x4124();return a15_0xa435=function(_0xa435a9,_0x3ef0ff){_0xa435a9=_0xa435a9-0x1c2;let _0x352f7c=_0x4124a9[_0xa435a9];return _0x352f7c;},a15_0xa435(_0x1ef737,_0x551560);}(function(_0x596418,_0x543d99){const _0x531148=a15_0xa435,_0x41d0c1=_0x596418();while(!![]){try{const _0x264bd4=parseInt(_0x531148(0x1ec))/0x1*(-parseInt(_0x531148(0x1dd))/0x2)+-parseInt(_0x531148(0x218))/0x3*(-parseInt(_0x531148(0x1f1))/0x4)+-parseInt(_0x531148(0x1ff))/0x5*(parseInt(_0x531148(0x1f9))/0x6)+parseInt(_0x531148(0x1fe))/0x7+-parseInt(_0x531148(0x1f3))/0x8*(-parseInt(_0x531148(0x1fc))/0x9)+parseInt(_0x531148(0x208))/0xa*(parseInt(_0x531148(0x1d7))/0xb)+parseInt(_0x531148(0x216))/0xc*(parseInt(_0x531148(0x1fb))/0xd);if(_0x264bd4===_0x543d99)break;else _0x41d0c1['push'](_0x41d0c1['shift']());}catch(_0x2573ac){_0x41d0c1['push'](_0x41d0c1['shift']());}}}(a15_0x4124,0x61ce3));const fs=require('fs'),got=require(a15_0x32ef8b(0x1e5)),{table}=require(a15_0x32ef8b(0x213)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x32ef8b(0x1c5)),{getCredentialsPath,getAuthHeader}=require(a15_0x32ef8b(0x215)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a15_0x4124(){const _0x20f470=['existsSync','bstackUsername','asvby','got','PQUEu','type','xrnir','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','exit','username','7bNzgWk','forEach','bstackAccesskey','command','\x0aFound\x20the\x20following\x20grids:\x0a','4uibQyZ','statusCode','2104pfCezo','status','grid-name','ERROR','unauthorised','oFMrr','173454PukkGR','LHkev','246428rIYZeP','6543caUGiS','grid','552181IcfeGC','110qdSGTg','init-not-called','uSgqC','DYcEs','parse','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','readFileSync','queued','fZtoU','1630nZklUh','boolean','server-error','xTNAF','Failed\x20to\x20list\x20resources!\x20Error:\x20','sNjwq','all-grids','KVAUa','epilogue','fIOXH','fNNYV','table','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../utils/utilityMethods','204BbLiOp','list','1748379zvwteh','https://','OjslW','help','uOQct','stringify','builder','jiSvS','error','../../config/constants','QlepL','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','INFO','LoQEd','argv','unknown-error','pVAjg','ApSCb','grid-id','grids','push','handler','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','jdATj','dgjGo','options','log','19613cFUrUe','ctAim','PJDaC','desc','usage','running','122614mGIPow','Browserstack','/packages/cli/get-all-grids','NlsfF','password'];a15_0x4124=function(){return _0x20f470;};return a15_0x4124();}exports[a15_0x32ef8b(0x1ef)]=a15_0x32ef8b(0x1cf),exports[a15_0x32ef8b(0x1da)]=a15_0x32ef8b(0x1d2),exports[a15_0x32ef8b(0x1c2)]=function(_0x48bc97){const _0x1a4912=a15_0x32ef8b,_0x5c5b3b={};_0x5c5b3b[_0x1a4912(0x212)]=_0x1a4912(0x204),_0x5c5b3b[_0x1a4912(0x21c)]=_0x1a4912(0x209),_0x5c5b3b[_0x1a4912(0x1d9)]='help';const _0x12ca00=_0x5c5b3b,_0x38e0ca={};_0x38e0ca['description']=_0x12ca00['fNNYV'],_0x38e0ca[_0x1a4912(0x1e7)]=_0x12ca00['uOQct'];const _0x448a51={};return _0x448a51[_0x1a4912(0x20e)]=_0x38e0ca,_0x48bc97[_0x1a4912(0x1db)](HELP_HEADER_MESSAGE[_0x1a4912(0x217)][_0x1a4912(0x1fd)])[_0x1a4912(0x210)](HELP_FOOTER_MESSAGE)[_0x1a4912(0x1d5)](_0x448a51)[_0x1a4912(0x21b)](_0x12ca00['PJDaC'])[_0x1a4912(0x1ca)];},exports[a15_0x32ef8b(0x1d1)]=async function(_0x1ce5a0){const _0x1b2481=a15_0x32ef8b,_0x4bb474={'dgjGo':function(_0x591878){return _0x591878();},'PQUEu':_0x1b2481(0x1e9),'fZtoU':function(_0x1ac619,_0x395063,_0xd45642,_0x67f10a,_0x2a92b2,_0x4d68f2,_0x2ed3c0){return _0x1ac619(_0x395063,_0xd45642,_0x67f10a,_0x2a92b2,_0x4d68f2,_0x2ed3c0);},'fIOXH':'list-grids-called','ctAim':_0x1b2481(0x200),'QlepL':function(_0x159798){return _0x159798();},'sNjwq':'GET','asvby':function(_0x5517b7,_0xd36684,_0x495f3c){return _0x5517b7(_0xd36684,_0x495f3c);},'xrnir':function(_0x27428c,_0x1b5763,_0x599b61){return _0x27428c(_0x1b5763,_0x599b61);},'DYcEs':function(_0x4f5819,_0x41bbf1){return _0x4f5819!==_0x41bbf1;},'exNJj':function(_0x4ca2d3,_0x33e705){return _0x4ca2d3!==_0x33e705;},'LoQEd':function(_0x5151c2,_0x28d93c){return _0x5151c2===_0x28d93c;},'oFMrr':_0x1b2481(0x1f0),'LHkev':_0x1b2481(0x1ce),'pGhDk':_0x1b2481(0x1f5),'vkjfW':_0x1b2481(0x1f4),'uSgqC':_0x1b2481(0x1dc),'OjslW':_0x1b2481(0x206),'HgiOV':'cluster-name','shvpL':function(_0x19bb8b,_0x563772){return _0x19bb8b(_0x563772);},'pVAjg':function(_0x5b9958,_0x192525){return _0x5b9958===_0x192525;},'jiSvS':_0x1b2481(0x214),'ApSCb':function(_0x4c48df,_0x2f3dd8,_0x3958d1,_0x281dff,_0x2b4a28,_0x65d6,_0x4d13e9){return _0x4c48df(_0x2f3dd8,_0x3958d1,_0x281dff,_0x2b4a28,_0x65d6,_0x4d13e9);},'NlsfF':_0x1b2481(0x1f7),'KVAUa':_0x1b2481(0x20a),'jdATj':function(_0x4fab04,_0x5cb20c,_0x2a4eda,_0x1cca8e,_0x4200d1,_0x4d44bf,_0x33cbb3){return _0x4fab04(_0x5cb20c,_0x2a4eda,_0x1cca8e,_0x4200d1,_0x4d44bf,_0x33cbb3);},'xTNAF':_0x1b2481(0x1cb)};try{global_registry['requestId']=_0x4bb474['dgjGo'](uuidv4);!fs[_0x1b2481(0x1e2)](_0x4bb474[_0x1b2481(0x1d4)](getCredentialsPath))&&(console[_0x1b2481(0x1c4)](_0x4bb474[_0x1b2481(0x1e6)]),await _0x4bb474['fZtoU'](sendInstrumentationEvent,_0x1ce5a0,_0x4bb474[_0x1b2481(0x211)],messageTypes[_0x1b2481(0x1f6)],_0x4bb474[_0x1b2481(0x1d8)],null,_0x1ce5a0),process[_0x1b2481(0x1ea)](0x1));const _0x5cb175=JSON[_0x1b2481(0x203)](fs[_0x1b2481(0x205)](_0x4bb474[_0x1b2481(0x1c6)](getCredentialsPath)));let _0x1d1e37=_0x1b2481(0x219)+AG_API_URL+'/packages/cli/get-grids';_0x1ce5a0['allGrids']&&(_0x1d1e37='https://'+AG_API_URL+_0x1b2481(0x1df));const _0xd7af56={'method':_0x4bb474[_0x1b2481(0x20d)],'headers':_0x4bb474[_0x1b2481(0x1e4)](getAuthHeader,_0x5cb175[_0x1b2481(0x1de)][_0x1b2481(0x1eb)],_0x5cb175['Browserstack'][_0x1b2481(0x1e1)]),'throwHttpErrors':![]};global_registry[_0x1b2481(0x1e3)]=_0x5cb175[_0x1b2481(0x1de)]['username'],global_registry[_0x1b2481(0x1ee)]=_0x5cb175['Browserstack'][_0x1b2481(0x1e1)],_0x4bb474[_0x1b2481(0x207)](sendInstrumentationEvent,_0x1ce5a0,_0x4bb474['fIOXH'],messageTypes[_0x1b2481(0x1c8)],null,null,_0x1ce5a0);const _0x328a8e=await _0x4bb474[_0x1b2481(0x1e8)](got,_0x1d1e37,_0xd7af56);if(_0x4bb474[_0x1b2481(0x202)](_0x328a8e,null)&&_0x4bb474['exNJj'](_0x328a8e,undefined)&&_0x4bb474[_0x1b2481(0x1c9)](_0x328a8e['statusCode'],0xc8)){const _0x500d14=JSON[_0x1b2481(0x203)](_0x328a8e['body']);console[_0x1b2481(0x1d6)](_0x4bb474[_0x1b2481(0x1f8)]);const _0x28535a=[];_0x28535a[_0x1b2481(0x1d0)]([_0x4bb474[_0x1b2481(0x1fa)],_0x4bb474['pGhDk'],_0x4bb474['vkjfW'],_0x4bb474[_0x1b2481(0x201)],_0x4bb474[_0x1b2481(0x21a)],_0x4bb474['HgiOV']]),_0x500d14[_0x1b2481(0x1ed)](_0x2ca452=>{const _0x43ae11=_0x1b2481;_0x28535a[_0x43ae11(0x1d0)]([_0x2ca452['id'],_0x2ca452['name'],_0x2ca452[_0x43ae11(0x1f4)],_0x2ca452[_0x43ae11(0x1dc)],_0x2ca452['queued'],_0x2ca452['clusterName']]);}),console[_0x1b2481(0x1d6)](_0x4bb474['shvpL'](table,_0x28535a)),process['exit'](0x0);}_0x4bb474[_0x1b2481(0x1cc)](_0x328a8e[_0x1b2481(0x1f2)],0x191)&&(console[_0x1b2481(0x1c4)](_0x4bb474[_0x1b2481(0x1c3)]),await _0x4bb474[_0x1b2481(0x1cd)](sendInstrumentationEvent,_0x1ce5a0,_0x4bb474[_0x1b2481(0x211)],messageTypes[_0x1b2481(0x1f6)],_0x4bb474[_0x1b2481(0x1e0)],null,_0x1ce5a0),process[_0x1b2481(0x1ea)](0x1)),console[_0x1b2481(0x1c4)](_0x1b2481(0x1c7)+JSON[_0x1b2481(0x21d)](_0x328a8e)),await _0x4bb474[_0x1b2481(0x207)](sendInstrumentationEvent,_0x1ce5a0,_0x4bb474[_0x1b2481(0x211)],messageTypes[_0x1b2481(0x1f6)],_0x4bb474[_0x1b2481(0x20f)],_0x328a8e,_0x1ce5a0),process[_0x1b2481(0x1ea)](0x1);}catch(_0x2e9b19){console['error'](_0x1b2481(0x20c)+_0x2e9b19['stack']),await _0x4bb474[_0x1b2481(0x1d3)](sendInstrumentationEvent,_0x1ce5a0,_0x4bb474[_0x1b2481(0x211)],messageTypes[_0x1b2481(0x1f6)],_0x4bb474[_0x1b2481(0x20b)],_0x2e9b19,_0x1ce5a0),process['exit'](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a16_0x47fe(){const _0x312bc1=['12YWCLpV','VFxUP','1832970vktmGr','8SnVeeL','pre_check','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','help','3714851XTsneE','usage','recommendCommands','desc','../config/constants','epilogue','25291503iZvRoA','strict','211946Eoebfa','2326886JhqLOe','NPBFZ','precheck_commands','1032480aALWKE','builder','2662938gxnXWV'];a16_0x47fe=function(){return _0x312bc1;};return a16_0x47fe();}const a16_0x301995=a16_0x2c47;(function(_0x350046,_0x14d9f1){const _0x7cddf6=a16_0x2c47,_0x216810=_0x350046();while(!![]){try{const _0x220d4b=-parseInt(_0x7cddf6(0x13b))/0x1+-parseInt(_0x7cddf6(0x126))/0x2+-parseInt(_0x7cddf6(0x12b))/0x3+parseInt(_0x7cddf6(0x129))/0x4+parseInt(_0x7cddf6(0x12e))/0x5*(-parseInt(_0x7cddf6(0x12c))/0x6)+parseInt(_0x7cddf6(0x133))/0x7+parseInt(_0x7cddf6(0x12f))/0x8*(parseInt(_0x7cddf6(0x139))/0x9);if(_0x220d4b===_0x14d9f1)break;else _0x216810['push'](_0x216810['shift']());}catch(_0x1c5757){_0x216810['push'](_0x216810['shift']());}}}(a16_0x47fe,0x93285));function a16_0x2c47(_0x268d23,_0x1280a9){const _0x47fe37=a16_0x47fe();return a16_0x2c47=function(_0x2c47b2,_0x70f3b5){_0x2c47b2=_0x2c47b2-0x126;let _0x46f62a=_0x47fe37[_0x2c47b2];return _0x46f62a;},a16_0x2c47(_0x268d23,_0x1280a9);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x301995(0x137));exports['command']='pre-check',exports[a16_0x301995(0x136)]=a16_0x301995(0x131),exports[a16_0x301995(0x12a)]=function(_0x29ede4){const _0x197a06=a16_0x301995,_0x36b5f8={};_0x36b5f8[_0x197a06(0x12d)]=_0x197a06(0x128),_0x36b5f8[_0x197a06(0x127)]='help';const _0x2610af=_0x36b5f8;return _0x29ede4[_0x197a06(0x134)](HELP_HEADER_MESSAGE[_0x197a06(0x130)])[_0x197a06(0x138)](HELP_FOOTER_MESSAGE)['commandDir'](_0x2610af[_0x197a06(0x12d)])['demandCommand']()[_0x197a06(0x135)]()[_0x197a06(0x13a)]()[_0x197a06(0x132)](_0x2610af[_0x197a06(0x127)]);},exports['handler']=function(_0x3cf73c){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a17_0x14fa52=a17_0x4aad;function a17_0xcb28(){const _0x4ca178=['GpxLJ','MFUjn','is\x20already\x20present','length','WsYkV','delay','pre-check-failed','Report\x20saved\x20in\x20','toLowerCase','jdvOK','reconnecting-websocket','log/report_','ubgbT','WebSocket','EUNKF','N/A','NJNlm','PfnCP','fxAPv','pre_check','existsSync','region','kKNLl','CNUWI','grid-profile','includes','xBnRZ','Failure','builder','toolInstalledResp','Setting\x20cloud\x20provider\x20as\x20','body','gridProfile','WoHAO','glitU','===\x20Precheck\x20Report\x20-\x20','SaBip','qebGr','Xxuer','method','pre-check','cloud-provider-not-supported','../../config/logger','replace','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','argv','header','\x20region\x20-\x20','requestId','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','info','\x20\x20Code:\x20','fkjMQ','will\x20be\x20created','QoQhj','gxFOp','EDuOr','xFMvD','MmVWw','vtWHH','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','YZhkZ','getUTCHours','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','cluster-check-failed-','Cluster\x20','message','mfJly','otEle','usage','\x20===\x0a\x0a','GplgM','THfRa','FyfMC','1JAeCmE','pre-check-grid-profile-empty','dZTml','.txt','vAwgZ','2068970ykHcrj','headers','ixtrp','find','Uootk','clusterRegion','4056200zBaqki','qbkNX','init','TLSv1_2_client_method','XsRRp','Failed\x20in\x20pre-check!\x20Error:\x20','getUTCDate','XwPeu','nktCs','mJwCO','QDeLn','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','lFGGB','ucjmp','Status:\x20','utf-8','username','stack\x20trace\x20','JMaDN','lCIBm','Grid\x20profile\x20fetched\x20for\x20pre-check','throwHttpErrors','sendEventToBackend','yzhkF','accessResp','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','WpARY','CVVml','eUWfc','OsBpS','connectionTimeout','atBZm','response','pre-check-grid-called','woQgD','CzItW','pEVeJ','type','zApRV','uuid','MDGfI','33TxVzPX','credential-not-found','isTls1_2_SUPPORTED','SxQZv','SSL\x20Configured','IvbEZ','jFRIt','exit','\x20error\x20:\x20','pwaQt',']\x20status\x20:\x20','forEach','BaXPG','1575834uaQYoP','9393822VtYpcS','fgkCN','parse','ROVeS','Message:\x20','JrxWr','3833851TZhofy','\x20\x20Message:\x20','EZVQy','FXtDF','getUTCMinutes','fyssH','.\x20Please\x20provide\x20all\x20required\x20arguments.','Cluster\x20details\x0a-----------------------\x0a','fQSun','cloudProvider','zTMOa','jJAEO','aNLjd','data','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Invalid\x20input.\x20grid\x20profiles:\x20','TZSUL','TfuDB','`\x20is\x20present\x20in\x20region\x20`','LrXDj','fKPQR','TmKaw','HasRj','debug','bstackUsername','JuisZ','dummy-grid','authHeader','10SIjEWs','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','description','cloud-provider','stack','HEgMP','8YdozUO','LsDKD','Error\x20Details:\x0a','xyLYx','ToKhQ','bstackAccesskey','pDxhE','ERROR','NIzsb','hYpuI','BYqxR','Pre-check\x20running\x20for\x20Cloud\x20-\x20','tMqla','isTrialGridAccessible','../../utils/utilityMethods','YlAfZ','TMnId','XCSzX','531546kQIqht','\x20data\x20:\x20','FCmOg','`\x20,error\x20:\x20','status','DVMiR','wsGco','pnZoy','clusterName','push','string','error\x20stack\x20:\x20','icQKQ','AWsAz','KwRHM','name','usKyW','epilogue','Cluster\x20`','options','620790jHcbkt','\x20\x20Stack:\x20','sdFqD','cluster-name','iIYdq','iYsMr','GET','`\x20already\x20exists','isCliToolInstalled','../../utils/instrumentationUtils','LOG','Pxttn','error','https://','kwWHZ','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Browserstack','tkaBA','code','Whitelisted\x20browserstack','grid\x20profile\x20flow\x20','IdsUC','../../utils/webSocketUtils','lZwcn','grid','CLOUD_PROVIDER','hiazB','KeDCY','Missing\x20required\x20arguments:\x20','<PasswordPlaceholder>','<UsernamePlaceholder>','Success','FjJOu','stringify','WtnEW','BoiGg','got','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','help','owLzL','OKQOE','isClusterPresent','SKCdF','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','NDUoW','pre-check-cluster-args-not-passed','FeOjS'];a17_0xcb28=function(){return _0x4ca178;};return a17_0xcb28();}(function(_0x2d7d57,_0x5e17e4){const _0x3d03c9=a17_0x4aad,_0x2136f7=_0x2d7d57();while(!![]){try{const _0x285829=parseInt(_0x3d03c9(0x193))/0x1*(parseInt(_0x3d03c9(0x198))/0x2)+-parseInt(_0x3d03c9(0x1d4))/0x3+parseInt(_0x3d03c9(0x19e))/0x4+-parseInt(_0x3d03c9(0x1f7))/0x5*(parseInt(_0x3d03c9(0x20f))/0x6)+parseInt(_0x3d03c9(0x1db))/0x7+parseInt(_0x3d03c9(0x1fd))/0x8*(-parseInt(_0x3d03c9(0x1d5))/0x9)+parseInt(_0x3d03c9(0x11a))/0xa*(-parseInt(_0x3d03c9(0x1c7))/0xb);if(_0x285829===_0x5e17e4)break;else _0x2136f7['push'](_0x2136f7['shift']());}catch(_0xa92ae7){_0x2136f7['push'](_0x2136f7['shift']());}}}(a17_0xcb28,0xa20dd));const fs=require('fs'),ws=require('ws'),got=require(a17_0x14fa52(0x13e)),{v4:uuidv4}=require(a17_0x14fa52(0x1c5)),ReconnectingWebSocket=require(a17_0x14fa52(0x153)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x14fa52(0x20b)),{logger}=require(a17_0x14fa52(0x173)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x14fa52(0x130)),{sendInstrumentationEvent}=require(a17_0x14fa52(0x123));function a17_0x4aad(_0x44ca95,_0x5b5fd2){const _0xcb2893=a17_0xcb28();return a17_0x4aad=function(_0x4aadda,_0x1546d4){_0x4aadda=_0x4aadda-0x117;let _0x69385e=_0xcb2893[_0x4aadda];return _0x69385e;},a17_0x4aad(_0x44ca95,_0x5b5fd2);}exports['command']=a17_0x14fa52(0x132),exports['desc']=a17_0x14fa52(0x1b7),exports[a17_0x14fa52(0x165)]=function(_0xbe9111){const _0x4874ac=a17_0x14fa52,_0x28835d={};_0x28835d[_0x4874ac(0x128)]=_0x4874ac(0x129),_0x28835d[_0x4874ac(0x125)]=_0x4874ac(0x219),_0x28835d['SxQZv']=_0x4874ac(0x1a9),_0x28835d['eUWfc']=_0x4874ac(0x175),_0x28835d[_0x4874ac(0x203)]=_0x4874ac(0x185),_0x28835d['FCmOg']=_0x4874ac(0x140);const _0xde25bc=_0x28835d,_0x5db9b8={};_0x5db9b8[_0x4874ac(0x1f9)]=_0xde25bc[_0x4874ac(0x128)],_0x5db9b8['type']=_0xde25bc['Pxttn'];const _0x504ed5={};_0x504ed5[_0x4874ac(0x1f9)]=_0xde25bc[_0x4874ac(0x1ca)],_0x504ed5[_0x4874ac(0x1c3)]=_0xde25bc[_0x4874ac(0x125)];const _0x141db7={};_0x141db7[_0x4874ac(0x1f9)]=_0xde25bc[_0x4874ac(0x1ba)],_0x141db7[_0x4874ac(0x1c3)]=_0xde25bc['Pxttn'];const _0x3a4d09={};_0x3a4d09[_0x4874ac(0x1f9)]=_0xde25bc['pDxhE'],_0x3a4d09[_0x4874ac(0x1c3)]=_0xde25bc[_0x4874ac(0x125)];const _0x2c2e6f={};return _0x2c2e6f[_0x4874ac(0x11d)]=_0x5db9b8,_0x2c2e6f[_0x4874ac(0x1fa)]=_0x504ed5,_0x2c2e6f[_0x4874ac(0x15e)]=_0x141db7,_0x2c2e6f[_0x4874ac(0x161)]=_0x3a4d09,_0xbe9111[_0x4874ac(0x18e)](HELP_HEADER_MESSAGE[_0x4874ac(0x15c)])[_0x4874ac(0x117)](HELP_FOOTER_MESSAGE)[_0x4874ac(0x119)](_0x2c2e6f)[_0x4874ac(0x140)](_0xde25bc[_0x4874ac(0x211)])[_0x4874ac(0x176)];};async function inputValidation(_0x400908,_0x10a988){const _0x40694e=a17_0x14fa52,_0x794aee={'fgkCN':_0x40694e(0x13f),'MDGfI':_0x40694e(0x1ff),'EDuOr':'N/A','qebGr':'cloud-provider','lZwcn':function(_0x2335b6,_0x111b9f){return _0x2335b6+_0x111b9f;},'mfJly':_0x40694e(0x139),'uBClN':'Failure','DVMiR':function(_0x441ee6,_0x2e4291){return _0x441ee6||_0x2e4291;},'BYqxR':_0x40694e(0x14b),'xBnRZ':_0x40694e(0x17e),'ucjmp':'error','jdvOK':_0x40694e(0x15e),'REqaB':_0x40694e(0x129),'XwPeu':_0x40694e(0x219),'johWC':_0x40694e(0x1a9),'BoiGg':_0x40694e(0x175),'aqVSf':_0x40694e(0x185),'LrXDj':_0x40694e(0x140),'EUNKF':function(_0x16a4c4,_0x1aa528){return _0x16a4c4!==_0x1aa528;},'FyfMC':'PbKCh','KwRHM':_0x40694e(0x1f1),'sdFqD':function(_0x870ee,_0x4c7c09){return _0x870ee===_0x4c7c09;},'GpxLJ':'hfIVr','hiazB':_0x40694e(0x186),'iIYdq':function(_0x86a14d,_0x234191){return _0x86a14d!==_0x234191;},'OsBpS':_0x40694e(0x1b1),'CzItW':_0x40694e(0x141),'WtnEW':_0x40694e(0x11d),'oVvHS':function(_0x2bc620,_0x529397){return _0x2bc620!==_0x529397;},'fWzcD':_0x40694e(0x1e6),'NDUoW':_0x40694e(0x14a),'BaXPG':_0x40694e(0x1fe),'dZTml':function(_0x2c5f1d,_0x340619){return _0x2c5f1d>_0x340619;},'ubgbT':'DczyT','jQwej':function(_0x5efbe4,_0x123e11,_0x19a763,_0x41a128,_0x3c0e0b,_0x1787c4,_0x572f4c,_0x549274){return _0x5efbe4(_0x123e11,_0x19a763,_0x41a128,_0x3c0e0b,_0x1787c4,_0x572f4c,_0x549274);},'kKNLl':_0x40694e(0x1bf),'WsYkV':_0x40694e(0x147),'IdsUC':_0x40694e(0x1fc),'OKQOE':_0x40694e(0x1e9),'woQgD':function(_0x11ab71,_0x489a51,_0x35c45b,_0x2e2470,_0x236683,_0x2e9f30,_0x890eed,_0x4bfdcc){return _0x11ab71(_0x489a51,_0x35c45b,_0x2e2470,_0x236683,_0x2e9f30,_0x890eed,_0x4bfdcc);},'qbkNX':_0x40694e(0x172),'xyLYx':'eRHeR','aNLjd':_0x40694e(0x1dd),'dfeTl':_0x40694e(0x120),'JMaDN':function(_0x14cc71,_0x1951e9,_0x3c6f97){return _0x14cc71(_0x1951e9,_0x3c6f97);},'yHrSe':function(_0x29740b,_0x2ea7d8,_0x50000e,_0x1420f6,_0x25bbab,_0x438a50){return _0x29740b(_0x2ea7d8,_0x50000e,_0x1420f6,_0x25bbab,_0x438a50);},'THfRa':_0x40694e(0x171),'FjJOu':_0x40694e(0x161),'tkaBA':function(_0x2f0fab,_0x5dc662){return _0x2f0fab===_0x5dc662;},'NIzsb':function(_0x1ada62,_0x4442c8){return _0x1ada62!==_0x4442c8;},'Xxuer':_0x40694e(0x1eb),'WoHAO':_0x40694e(0x216),'otEle':function(_0x369b90,_0x5d2171){return _0x369b90(_0x5d2171);},'ToKhQ':function(_0xeb6021,_0x2e5520){return _0xeb6021!==_0x2e5520;},'tMqla':_0x40694e(0x16b),'nktCs':function(_0x1e7b54,_0x4a4d36,_0x28058e,_0x35cdea,_0x368073,_0x523e57,_0x1a4b25,_0x4bbe0a){return _0x1e7b54(_0x4a4d36,_0x28058e,_0x35cdea,_0x368073,_0x523e57,_0x1a4b25,_0x4bbe0a);},'AWsAz':_0x40694e(0x194),'fxAPv':_0x40694e(0x1a8),'fyssH':_0x40694e(0x148),'mJwCO':_0x40694e(0x1bd),'bMtvU':_0x40694e(0x1b2),'nMoVV':function(_0x2c3a26,_0x567ab1){return _0x2c3a26===_0x567ab1;},'rkJdm':_0x40694e(0x183),'RYrki':_0x40694e(0x180),'GplgM':function(_0x147d51,_0x25d729){return _0x147d51!==_0x25d729;},'SKCdF':'dpyHC','CNUWI':_0x40694e(0x1ef)};let _0x2a38db;try{if(_0x794aee[_0x40694e(0x157)](_0x794aee[_0x40694e(0x192)],_0x794aee[_0x40694e(0x21d)])){if(_0x400908[_0x40694e(0x217)]||_0x400908[_0x40694e(0x1e4)]||_0x400908[_0x40694e(0x15e)]){if(_0x794aee[_0x40694e(0x11c)](_0x794aee[_0x40694e(0x149)],_0x794aee[_0x40694e(0x134)]))_0x582194[_0x40694e(0x17b)](_0x40694e(0x167)+_0x11cafa[_0x40694e(0x133)]+'\x20'),_0x28df54[_0x40694e(0x1e4)]=_0x1d6aa8['CLOUD_PROVIDER'];else{const _0x31d601=[];!_0x400908[_0x40694e(0x217)]&&(_0x794aee[_0x40694e(0x11e)](_0x794aee[_0x40694e(0x1bb)],_0x794aee[_0x40694e(0x1c1)])?_0x31d601[_0x40694e(0x218)](_0x794aee[_0x40694e(0x13c)]):_0x3d57e7[_0x40694e(0x1ce)](0x1));;!_0x400908['cloudProvider']&&(_0x794aee['oVvHS'](_0x794aee['fWzcD'],_0x794aee[_0x40694e(0x146)])?_0x31d601[_0x40694e(0x218)](_0x794aee[_0x40694e(0x16e)]):(_0x5bdefe[_0x40694e(0x126)](_0x794aee[_0x40694e(0x1d6)]),_0x447b76[_0x40694e(0x1ce)](0x1)));;!_0x400908['region']&&(_0x794aee[_0x40694e(0x11e)](_0x794aee[_0x40694e(0x1d3)],_0x794aee[_0x40694e(0x1d3)])?_0x4ba710[_0x40694e(0x17b)]('Cluster\x20`'+_0x5f56c3[_0x40694e(0x217)]+_0x40694e(0x121)):_0x31d601[_0x40694e(0x218)](_0x794aee[_0x40694e(0x152)]));;_0x794aee[_0x40694e(0x195)](_0x31d601[_0x40694e(0x14c)],0x0)&&(_0x794aee[_0x40694e(0x11c)](_0x794aee[_0x40694e(0x155)],_0x794aee[_0x40694e(0x155)])?(_0x2a38db=_0x40694e(0x136)+_0x31d601['join'](',\x20')+_0x40694e(0x1e1),await _0x794aee['jQwej'](reportToGalactusAndSendToEDS,_0x400908,_0x10a988,_0x2a38db,messageTypes[_0x40694e(0x204)],_0x794aee[_0x40694e(0x15f)],_0x794aee[_0x40694e(0x14d)],_0x794aee[_0x40694e(0x1ab)]),logger['error'](_0x2a38db),process['exit'](0x1)):(_0x34f7b2+=_0x794aee[_0x40694e(0x1c6)],_0x55327e+=_0x40694e(0x1dc)+(_0x2afb34[_0x40694e(0x18b)]||_0x794aee['EDuOr'])+'\x0a',_0x57f23f+='\x20\x20Code:\x20'+(_0x56e07f[_0x40694e(0x12c)]||_0x794aee[_0x40694e(0x181)])+'\x0a',_0x46f7f2+=_0x40694e(0x11b)+(_0x2cdd21['stack']||_0x794aee['EDuOr'])+'\x0a')),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x40694e(0x162)](_0x400908['cloudProvider'][_0x40694e(0x151)]())&&(_0x794aee[_0x40694e(0x11e)](_0x794aee[_0x40694e(0x12f)],_0x794aee[_0x40694e(0x12f)])?_0x2ef0a4['error'](_0x40694e(0x21a)+_0x1ee7c6[_0x40694e(0x126)][_0x40694e(0x1fb)]):(_0x2a38db=_0x794aee[_0x40694e(0x142)],await _0x794aee[_0x40694e(0x1c0)](reportToGalactusAndSendToEDS,_0x400908,_0x10a988,_0x2a38db,messageTypes[_0x40694e(0x204)],_0x794aee[_0x40694e(0x15f)],_0x794aee[_0x40694e(0x19f)],_0x794aee[_0x40694e(0x1ab)]),logger['error'](_0x2a38db),!_0x400908[_0x40694e(0x1e4)]&&(_0x794aee[_0x40694e(0x11c)](_0x794aee[_0x40694e(0x200)],_0x794aee[_0x40694e(0x200)])?(logger['info'](_0x40694e(0x167)+DEFAULT_CLUSTER_DETAILS[_0x40694e(0x133)]+'\x20'),_0x400908['cloudProvider']=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']):_0x545e97[_0x40694e(0x218)](_0x794aee['qebGr'])))),global_registry['clusterName']=_0x400908[_0x40694e(0x217)],global_registry['cloudProvider']=_0x400908[_0x40694e(0x1e4)],global_registry[_0x40694e(0x19d)]=_0x400908['region'];}}else{if(_0x400908[_0x40694e(0x169)]){if(_0x794aee[_0x40694e(0x11c)](_0x794aee['aNLjd'],_0x794aee[_0x40694e(0x1e7)])){global_registry[_0x40694e(0x169)]=_0x400908['gridProfile'],logger[_0x40694e(0x1f2)](_0x40694e(0x12e)+_0x400908['gridProfile']);const _0x3a1b99=_0x40694e(0x127)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x5ef698={};_0x5ef698[_0x40694e(0x170)]=_0x794aee['dfeTl'],_0x5ef698[_0x40694e(0x199)]=global_registry['authHeader'],_0x5ef698[_0x40694e(0x1b3)]=![];const _0x93cfd1=_0x5ef698,_0x4be229=await _0x794aee[_0x40694e(0x1b0)](got,_0x3a1b99,_0x93cfd1),_0x54fd61=await _0x794aee['yHrSe'](responseValidation,_0x4be229,_0x794aee[_0x40694e(0x191)],_0x794aee[_0x40694e(0x13a)],_0x400908,_0x10a988);let _0x10bb42={};if(_0x794aee[_0x40694e(0x12b)](_0x54fd61,0xc8)){if(_0x794aee[_0x40694e(0x205)](_0x794aee[_0x40694e(0x16f)],_0x794aee[_0x40694e(0x16a)])){const _0x163125=JSON[_0x40694e(0x1d7)](_0x4be229[_0x40694e(0x168)]),_0x148804=_0x163125[_0x40694e(0x19b)](_0xf15c3=>_0xf15c3[_0x40694e(0x21e)]===_0x400908[_0x40694e(0x169)])||null;if(_0x794aee[_0x40694e(0x18d)](isUndefined,_0x148804)){if(_0x794aee[_0x40694e(0x201)](_0x794aee[_0x40694e(0x209)],_0x794aee[_0x40694e(0x209)])){const {header:_0x2e1260,response:_0x3e10be}=_0xa7c584,{status:_0x4256e7,data:_0x3270d1,error:_0x357615}=_0x3e10be;_0x37f08c+=_0x2e1260+'\x20#'+_0x794aee[_0x40694e(0x131)](_0x149b29,0x1)+'\x0a',_0x28dcaa+=_0x40694e(0x1ac)+(_0x4256e7?_0x794aee[_0x40694e(0x18c)]:_0x794aee['uBClN'])+'\x0a',_0xd1ebc2+='Message:\x20'+_0x794aee[_0x40694e(0x214)](_0x3270d1,_0x794aee[_0x40694e(0x181)])+'\x0a',_0x357615&&(_0x512b87+=_0x794aee['MDGfI'],_0x40f6f0+=_0x40694e(0x1dc)+(_0x357615['message']||_0x794aee['EDuOr'])+'\x0a',_0x2b546b+='\x20\x20Code:\x20'+(_0x357615[_0x40694e(0x12c)]||_0x794aee[_0x40694e(0x181)])+'\x0a',_0x22f12e+=_0x40694e(0x11b)+(_0x357615['stack']||_0x794aee[_0x40694e(0x181)])+'\x0a'),_0x18ffec+='\x0a\x0a';}else _0x2a38db=_0x40694e(0x1ea)+_0x400908[_0x40694e(0x169)]+_0x40694e(0x1f8),await _0x794aee[_0x40694e(0x1a6)](reportToGalactusAndSendToEDS,_0x400908,_0x10a988,_0x2a38db,messageTypes['ERROR'],_0x794aee[_0x40694e(0x15f)],_0x794aee[_0x40694e(0x21c)],_0x794aee[_0x40694e(0x1ab)]),logger[_0x40694e(0x126)](_0x2a38db),process[_0x40694e(0x1ce)](0x1);}else _0x794aee[_0x40694e(0x157)](_0x794aee[_0x40694e(0x15b)],_0x794aee[_0x40694e(0x1e0)])?_0x10bb42=_0x148804:_0x222217+=_0x40694e(0x18a)+_0x2966bc[_0x40694e(0x217)]+'\x20'+(_0x1c6d50?_0x794aee[_0x40694e(0x207)]:_0x794aee[_0x40694e(0x163)])+'\x0a\x0a';}else{const _0x3c09c8={};_0x3c09c8[_0x40694e(0x1c3)]=_0x1bb5da['LOG'],_0x3c09c8[_0x40694e(0x18b)]=_0x594aa2,_0x39774b[_0x40694e(0x1b4)](_0x52110b,_0x3c09c8,_0x794aee[_0x40694e(0x1ab)],!![]);}}else _0x794aee['sdFqD'](_0x794aee[_0x40694e(0x1a7)],_0x794aee[_0x40694e(0x1a7)])?process[_0x40694e(0x1ce)](0x1):(_0x225d52[_0x40694e(0x17b)]('['+_0x35f09f+_0x40694e(0x1d1)+_0x20fab2['status']+_0x40694e(0x210)+_0x1ffcde[_0x40694e(0x1e8)]+_0x40694e(0x1cf)+_0x28eccf[_0x40694e(0x126)]),_0x5eea3a[_0x40694e(0x126)]&&_0x4ee5cf[_0x40694e(0x126)](_0x40694e(0x21a)+_0x1c4a74[_0x40694e(0x126)]['stack']));const _0x1dc5b5={};_0x1dc5b5['type']=WS_EVENTS[_0x40694e(0x124)],_0x1dc5b5['message']=_0x794aee['bMtvU'],webSocketUtils[_0x40694e(0x1b4)](_0x10a988,_0x1dc5b5),global_registry['cloudProvider']=_0x10bb42[_0x40694e(0x1e4)],global_registry[_0x40694e(0x19d)]=_0x10bb42['region'],global_registry['clusterName']=_0x10bb42[_0x40694e(0x217)];}else _0x88cfd9['push'](_0x794aee[_0x40694e(0x152)]);}else _0x794aee['nMoVV'](_0x794aee['rkJdm'],_0x794aee['RYrki'])?_0x2b0bfb+=_0x40694e(0x18a)+_0x5b9d45[_0x40694e(0x217)]+_0x40694e(0x17a):(logger[_0x40694e(0x126)](_0x794aee[_0x40694e(0x1d6)]),process[_0x40694e(0x1ce)](0x1));}}else _0x110877=_0x3d0659;}catch(_0x1909e9){if(_0x794aee[_0x40694e(0x190)](_0x794aee[_0x40694e(0x144)],_0x794aee[_0x40694e(0x160)]))_0x2a38db=_0x40694e(0x188)+_0x1909e9+':\x20'+_0x1909e9[_0x40694e(0x1fb)],logger[_0x40694e(0x126)](_0x2a38db),await _0x794aee['woQgD'](reportToGalactusAndSendToEDS,_0x400908,_0x10a988,_0x2a38db,messageTypes[_0x40694e(0x204)],_0x794aee['kKNLl'],_0x794aee[_0x40694e(0x19f)],_0x794aee[_0x40694e(0x1ab)]),process[_0x40694e(0x1ce)](0x1);else{const _0x19275e={};_0x19275e[_0x40694e(0x1f9)]=_0x794aee['REqaB'],_0x19275e[_0x40694e(0x1c3)]=_0x794aee[_0x40694e(0x1a5)];const _0x217c08={};_0x217c08[_0x40694e(0x1f9)]=_0x794aee['johWC'],_0x217c08[_0x40694e(0x1c3)]=_0x794aee['XwPeu'];const _0x390b2c={};_0x390b2c[_0x40694e(0x1f9)]=_0x794aee[_0x40694e(0x13d)],_0x390b2c[_0x40694e(0x1c3)]=_0x794aee[_0x40694e(0x1a5)];const _0x48aeac={};_0x48aeac['description']=_0x794aee['aqVSf'],_0x48aeac[_0x40694e(0x1c3)]=_0x794aee[_0x40694e(0x1a5)];const _0x3f3cdb={};return _0x3f3cdb[_0x40694e(0x11d)]=_0x19275e,_0x3f3cdb[_0x40694e(0x1fa)]=_0x217c08,_0x3f3cdb['region']=_0x390b2c,_0x3f3cdb['grid-profile']=_0x48aeac,_0x4cbccb[_0x40694e(0x18e)](_0x1a680a[_0x40694e(0x15c)])[_0x40694e(0x117)](_0x310130)[_0x40694e(0x119)](_0x3f3cdb)[_0x40694e(0x140)](_0x794aee[_0x40694e(0x1ee)])[_0x40694e(0x176)];}}}function printResponse(_0x42da7c,_0x4f30d7){const _0x21d562=a17_0x14fa52,_0x1f6c7e={};_0x1f6c7e[_0x21d562(0x1b5)]='cluster-name',_0x1f6c7e['Igvsa']=function(_0x4c898d,_0x5e1a4a){return _0x4c898d===_0x5e1a4a;},_0x1f6c7e[_0x21d562(0x1f0)]=_0x21d562(0x1b8),_0x1f6c7e[_0x21d562(0x17d)]=_0x21d562(0x1a2);const _0x2f6ec5=_0x1f6c7e;logger[_0x21d562(0x17b)]('['+_0x42da7c+_0x21d562(0x1d1)+_0x4f30d7[_0x21d562(0x213)]+_0x21d562(0x210)+_0x4f30d7['data']+'\x20error\x20:\x20'+_0x4f30d7[_0x21d562(0x126)]),_0x4f30d7[_0x21d562(0x126)]&&(_0x2f6ec5['Igvsa'](_0x2f6ec5[_0x21d562(0x1f0)],_0x2f6ec5[_0x21d562(0x17d)])?_0x50ef2a['push'](_0x2f6ec5[_0x21d562(0x1b5)]):logger['error'](_0x21d562(0x21a)+_0x4f30d7[_0x21d562(0x126)][_0x21d562(0x1fb)]));}async function generateReport(_0x18a0a6,_0x6c6bf6){const _0xaa7622=a17_0x14fa52,_0x907fda={'TfuDB':function(_0x2213e7,_0x52656d){return _0x2213e7+_0x52656d;},'iYsMr':_0xaa7622(0x139),'NJNlm':_0xaa7622(0x164),'pwaQt':function(_0x3f0840,_0x45ff83){return _0x3f0840||_0x45ff83;},'SaBip':_0xaa7622(0x158),'cIiFi':_0xaa7622(0x1ff),'FXtDF':_0xaa7622(0x1e2),'fQSun':function(_0xef7f20,_0x398439){return _0xef7f20!=_0x398439;},'ixtrp':_0xaa7622(0x14b),'XCSzX':'will\x20be\x20created','jFRIt':function(_0x969926){return _0x969926();}};let _0x165e41=_0xaa7622(0x16c)+global_registry['cloudProvider']+_0xaa7622(0x18f);return _0x18a0a6[_0xaa7622(0x1d2)]((_0x1ae92c,_0x4cf300)=>{const _0x497d8c=_0xaa7622,{header:_0xb53b15,response:_0x356cef}=_0x1ae92c,{status:_0x155dd1,data:_0x51e064,error:_0x22e450}=_0x356cef;_0x165e41+=_0xb53b15+'\x20#'+_0x907fda[_0x497d8c(0x1ec)](_0x4cf300,0x1)+'\x0a',_0x165e41+=_0x497d8c(0x1ac)+(_0x155dd1?_0x907fda[_0x497d8c(0x11f)]:_0x907fda[_0x497d8c(0x159)])+'\x0a',_0x165e41+=_0x497d8c(0x1d9)+_0x907fda[_0x497d8c(0x1d0)](_0x51e064,_0x907fda[_0x497d8c(0x16d)])+'\x0a',_0x22e450&&(_0x165e41+=_0x907fda['cIiFi'],_0x165e41+='\x20\x20Message:\x20'+(_0x22e450['message']||_0x907fda['SaBip'])+'\x0a',_0x165e41+=_0x497d8c(0x17c)+(_0x22e450[_0x497d8c(0x12c)]||_0x907fda[_0x497d8c(0x16d)])+'\x0a',_0x165e41+=_0x497d8c(0x11b)+(_0x22e450[_0x497d8c(0x1fb)]||_0x907fda['SaBip'])+'\x0a'),_0x165e41+='\x0a\x0a';}),_0x165e41+=_0x907fda[_0xaa7622(0x1de)],_0x907fda[_0xaa7622(0x1e3)](_0x6c6bf6,null)?_0x165e41+=_0xaa7622(0x18a)+global_registry['clusterName']+'\x20'+(_0x6c6bf6?_0x907fda[_0xaa7622(0x19a)]:_0x907fda[_0xaa7622(0x20e)])+'\x0a\x0a':_0x165e41+=_0xaa7622(0x18a)+global_registry[_0xaa7622(0x217)]+_0xaa7622(0x17a),_0x165e41+=_0x907fda[_0xaa7622(0x1cd)](getSystemMetaData),_0x165e41;};exports['handler']=async function(_0x5471d4){const _0x4c9cb1=a17_0x14fa52,_0x189197={'PfnCP':function(_0x262172){return _0x262172();},'KhFGO':function(_0x20ffc2){return _0x20ffc2();},'zqRYg':_0x4c9cb1(0x145),'pnoDf':function(_0x443957,_0x347e34,_0x3342bb,_0x1e9479,_0x2cbbb8,_0x1e18d5,_0x59c212,_0x539165){return _0x443957(_0x347e34,_0x3342bb,_0x1e9479,_0x2cbbb8,_0x1e18d5,_0x59c212,_0x539165);},'QoQhj':_0x4c9cb1(0x1bf),'lFGGB':_0x4c9cb1(0x1c8),'usKyW':_0x4c9cb1(0x126),'icQKQ':function(_0x31ddb1,_0x2baee2,_0xc534df,_0x286fab,_0x29d5ec,_0x1ea9a2,_0x20272e){return _0x31ddb1(_0x2baee2,_0xc534df,_0x286fab,_0x29d5ec,_0x1ea9a2,_0x20272e);},'ivPGG':_0x4c9cb1(0x138),'KeDCY':_0x4c9cb1(0x137),'vtWHH':function(_0x2170c1,_0x3a1dea,_0x378163){return _0x2170c1(_0x3a1dea,_0x378163);},'wsGco':_0x4c9cb1(0x1f5),'DlBuj':_0x4c9cb1(0x166),'JuisZ':'2|1|0|3|4','vAwgZ':function(_0x1de7cc,_0x109b67,_0x4d2d4a,_0x8ead63,_0x86626d,_0x29b9f2,_0x10df5b,_0x4bc36d){return _0x1de7cc(_0x109b67,_0x4d2d4a,_0x8ead63,_0x86626d,_0x29b9f2,_0x10df5b,_0x4bc36d);},'zTMOa':_0x4c9cb1(0x1b6),'YlAfZ':function(_0x1610b5){return _0x1610b5();},'zApRV':function(_0x1e3b53,_0x42f606,_0x7213e8){return _0x1e3b53(_0x42f606,_0x7213e8);},'kiibv':_0x4c9cb1(0x20a),'Uootk':function(_0x15a964,_0x32dfd2){return _0x15a964(_0x32dfd2);},'CVVml':_0x4c9cb1(0x1a1),'ROVeS':function(_0x2f4e6b,_0x5a1e91,_0x1b4fa0){return _0x2f4e6b(_0x5a1e91,_0x1b4fa0);},'hYpuI':_0x4c9cb1(0x1c9),'IvbEZ':'Tool\x20Installed','AibmJ':'User\x20Access','JrxWr':_0x4c9cb1(0x12d),'TMnId':_0x4c9cb1(0x1cb),'xFMvD':function(_0x41a913,_0x40c613){return _0x41a913+_0x40c613;},'pEVeJ':_0x4c9cb1(0x1ad),'YMKhB':function(_0x1dfcef,_0x2c8473,_0x2e2a8b,_0x255719,_0x5c9690,_0x387f11,_0x5ce1ef){return _0x1dfcef(_0x2c8473,_0x2e2a8b,_0x255719,_0x5c9690,_0x387f11,_0x5ce1ef);},'jxGNt':_0x4c9cb1(0x14f)};let _0x5f14a3,_0x5178ef;try{global_registry[_0x4c9cb1(0x179)]=_0x189197[_0x4c9cb1(0x15a)](uuidv4);!fs[_0x4c9cb1(0x15d)](_0x189197['KhFGO'](getCredentialsPath))&&(_0x5178ef=_0x189197['zqRYg'],logger[_0x4c9cb1(0x126)](_0x5178ef),await _0x189197['pnoDf'](reportToGalactusAndSendToEDS,_0x5471d4,_0x5f14a3,_0x5178ef,messageTypes[_0x4c9cb1(0x204)],_0x189197[_0x4c9cb1(0x17f)],_0x189197[_0x4c9cb1(0x1aa)],_0x189197[_0x4c9cb1(0x21f)]),process[_0x4c9cb1(0x1ce)](0x1));_0x189197['icQKQ'](sendInstrumentationEvent,_0x5471d4,_0x189197[_0x4c9cb1(0x17f)],messageTypes['INFO'],null,null,_0x5471d4);const _0x2f8427=JSON[_0x4c9cb1(0x1d7)](fs['readFileSync'](_0x189197[_0x4c9cb1(0x15a)](getCredentialsPath)));global_registry['bstackUsername']=_0x2f8427[_0x4c9cb1(0x12a)][_0x4c9cb1(0x1ae)],global_registry[_0x4c9cb1(0x202)]=_0x2f8427[_0x4c9cb1(0x12a)]['password'];const _0x5bca3a=WS_ENDPOINT[_0x4c9cb1(0x174)](_0x189197['ivPGG'],_0x2f8427[_0x4c9cb1(0x12a)][_0x4c9cb1(0x1ae)])[_0x4c9cb1(0x174)](_0x189197[_0x4c9cb1(0x135)],_0x2f8427[_0x4c9cb1(0x12a)]['password']),_0x3aeb70={};_0x3aeb70[_0x4c9cb1(0x156)]=ws,_0x3aeb70[_0x4c9cb1(0x1bc)]=0x36ee80,_0x5f14a3=new ReconnectingWebSocket(_0x5bca3a,[],_0x3aeb70),global_registry[_0x4c9cb1(0x1f6)]=_0x189197['vtWHH'](getAuthHeader,global_registry[_0x4c9cb1(0x1f3)],global_registry[_0x4c9cb1(0x202)]),await _0x189197[_0x4c9cb1(0x184)](inputValidation,_0x5471d4,_0x5f14a3),logger[_0x4c9cb1(0x17b)](_0x4c9cb1(0x208)+global_registry['cloudProvider']+_0x4c9cb1(0x178)+global_registry[_0x4c9cb1(0x19d)]);let _0x3dbd7c=await _0x189197[_0x4c9cb1(0x21b)](getCloudProviderObjectWithOutInit,global_registry[_0x4c9cb1(0x1e4)],global_registry[_0x4c9cb1(0x217)],_0x189197[_0x4c9cb1(0x215)],_0x5f14a3,webSocketUtils,_0x5471d4);const _0x1f8eaf=await _0x3dbd7c[_0x4c9cb1(0x122)]();_0x189197[_0x4c9cb1(0x184)](printResponse,_0x189197['DlBuj'],_0x1f8eaf),_0x3dbd7c=await _0x3dbd7c[_0x4c9cb1(0x1a0)]();let _0x600db=![];try{_0x600db=await _0x3dbd7c[_0x4c9cb1(0x143)]();}catch(_0x1589c2){const _0x1d9eb8=_0x189197[_0x4c9cb1(0x1f4)]['split']('|');let _0x44f10f=0x0;while(!![]){switch(_0x1d9eb8[_0x44f10f++]){case'0':logger[_0x4c9cb1(0x126)](_0x5178ef);continue;case'1':_0x600db=null;continue;case'2':_0x5178ef='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry['clusterName']+_0x4c9cb1(0x1ed)+global_registry[_0x4c9cb1(0x19d)]+_0x4c9cb1(0x212)+_0x1589c2;continue;case'3':_0x5178ef+='\x0a'+JSON[_0x4c9cb1(0x13b)](_0x1589c2['stack']);continue;case'4':await _0x189197[_0x4c9cb1(0x197)](reportToGalactusAndSendToEDS,_0x5471d4,_0x5f14a3,_0x5178ef,messageTypes[_0x4c9cb1(0x204)],_0x189197[_0x4c9cb1(0x17f)],_0x4c9cb1(0x189)+global_registry['cloudProvider'],_0x189197[_0x4c9cb1(0x21f)]);continue;}break;}}_0x600db&&logger[_0x4c9cb1(0x17b)](_0x4c9cb1(0x118)+global_registry[_0x4c9cb1(0x217)]+_0x4c9cb1(0x121));const _0x53e43e=await _0x3dbd7c['checkAccess']();_0x189197[_0x4c9cb1(0x184)](printResponse,_0x189197[_0x4c9cb1(0x1e5)],_0x53e43e);const _0x1c6c25=await _0x189197[_0x4c9cb1(0x20c)](curlRequest);_0x189197[_0x4c9cb1(0x1c4)](printResponse,_0x189197['kiibv'],_0x1c6c25);const _0x15312a=await _0x189197[_0x4c9cb1(0x19c)](isTlsSupported,_0x189197[_0x4c9cb1(0x1b9)]);_0x189197[_0x4c9cb1(0x1d8)](printResponse,_0x189197[_0x4c9cb1(0x206)],_0x15312a);const _0x1669e5={};_0x1669e5[_0x4c9cb1(0x177)]=_0x189197[_0x4c9cb1(0x1cc)],_0x1669e5['response']=_0x1f8eaf;const _0x212299={};_0x212299[_0x4c9cb1(0x177)]=_0x189197['AibmJ'],_0x212299[_0x4c9cb1(0x1be)]=_0x53e43e;const _0x113492={};_0x113492[_0x4c9cb1(0x177)]=_0x189197[_0x4c9cb1(0x1da)],_0x113492[_0x4c9cb1(0x1be)]=_0x1c6c25;const _0x119ce3={};_0x119ce3[_0x4c9cb1(0x177)]=_0x189197[_0x4c9cb1(0x20d)],_0x119ce3[_0x4c9cb1(0x1be)]=_0x15312a;const _0x3970b8=[_0x1669e5,_0x212299,_0x113492,_0x119ce3],_0x11541a=await _0x189197[_0x4c9cb1(0x1c4)](generateReport,_0x3970b8,_0x600db),_0xdae133=new Date(),_0x13cb70=_0xdae133['getUTCFullYear']()+'_'+_0x189197[_0x4c9cb1(0x182)](_0xdae133['getUTCMonth'](),0x1)+'_'+_0xdae133[_0x4c9cb1(0x1a4)]()+'_'+_0xdae133[_0x4c9cb1(0x187)]()+'_'+_0xdae133[_0x4c9cb1(0x1df)](),_0x2ff416=_0x4c9cb1(0x154)+_0x13cb70+_0x4c9cb1(0x196);fs['writeFileSync'](_0x2ff416,_0x11541a,_0x189197[_0x4c9cb1(0x1c2)]),logger[_0x4c9cb1(0x17b)](_0x4c9cb1(0x150)+_0x2ff416),process[_0x4c9cb1(0x1ce)](0x0);}catch(_0x47128a){let _0x4fd9f7=_0x4c9cb1(0x1a3)+_0x47128a+'\x20';logger[_0x4c9cb1(0x126)](_0x4fd9f7),_0x4fd9f7+='\x0a'+JSON[_0x4c9cb1(0x13b)](_0x47128a[_0x4c9cb1(0x1fb)]),logger['debug'](_0x4c9cb1(0x1af)+_0x47128a['stack']);if(_0x5f14a3){const _0x3076e4={};_0x3076e4['type']=WS_EVENTS[_0x4c9cb1(0x124)],_0x3076e4[_0x4c9cb1(0x18b)]=_0x4fd9f7,webSocketUtils[_0x4c9cb1(0x1b4)](_0x5f14a3,_0x3076e4,_0x189197[_0x4c9cb1(0x21f)],!![]);}await webSocketUtils[_0x4c9cb1(0x14e)](0x7d0);const _0x3cb0df={};_0x3cb0df[_0x4c9cb1(0x126)]=_0x4fd9f7,await _0x189197['YMKhB'](sendInstrumentationEvent,_0x5471d4,_0x189197[_0x4c9cb1(0x17f)],messageTypes[_0x4c9cb1(0x204)],_0x189197['jxGNt'],_0x3cb0df,_0x5471d4),process[_0x4c9cb1(0x1ce)](0x1);}};
|
|
1
|
+
const a17_0x1337ce=a17_0x1331;(function(_0x7d3937,_0x3aee82){const _0xf79637=a17_0x1331,_0x38ec63=_0x7d3937();while(!![]){try{const _0x5e69e7=-parseInt(_0xf79637(0x18a))/0x1+parseInt(_0xf79637(0x257))/0x2+-parseInt(_0xf79637(0x19f))/0x3*(parseInt(_0xf79637(0x1a7))/0x4)+parseInt(_0xf79637(0x254))/0x5*(-parseInt(_0xf79637(0x1e0))/0x6)+-parseInt(_0xf79637(0x19b))/0x7*(-parseInt(_0xf79637(0x194))/0x8)+parseInt(_0xf79637(0x1f6))/0x9*(-parseInt(_0xf79637(0x1ef))/0xa)+parseInt(_0xf79637(0x1dd))/0xb;if(_0x5e69e7===_0x3aee82)break;else _0x38ec63['push'](_0x38ec63['shift']());}catch(_0x2ee525){_0x38ec63['push'](_0x38ec63['shift']());}}}(a17_0x1a0a,0xe70ff));const fs=require('fs'),ws=require('ws'),got=require(a17_0x1337ce(0x17f)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x1337ce(0x17b)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x1337ce(0x1fd)),{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_0x1337ce(0x1d7)),{getCloudProviderObjectWithOutInit}=require(a17_0x1337ce(0x1b2)),webSocketUtils=require(a17_0x1337ce(0x15f)),{sendInstrumentationEvent}=require(a17_0x1337ce(0x232));exports[a17_0x1337ce(0x261)]=a17_0x1337ce(0x1f2),exports[a17_0x1337ce(0x23b)]=a17_0x1337ce(0x23f),exports[a17_0x1337ce(0x21c)]=function(_0x16238f){const _0x4ff9fd=a17_0x1337ce,_0x3f48bd={};_0x3f48bd[_0x4ff9fd(0x1e1)]=_0x4ff9fd(0x164),_0x3f48bd['ktvAN']=_0x4ff9fd(0x1ea),_0x3f48bd[_0x4ff9fd(0x260)]=_0x4ff9fd(0x1e9),_0x3f48bd[_0x4ff9fd(0x200)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x3f48bd['akgCg']=_0x4ff9fd(0x241),_0x3f48bd[_0x4ff9fd(0x19d)]=_0x4ff9fd(0x20b);const _0x20c4ce=_0x3f48bd,_0xb584c9={};_0xb584c9[_0x4ff9fd(0x1d9)]=_0x20c4ce[_0x4ff9fd(0x1e1)],_0xb584c9['type']=_0x20c4ce[_0x4ff9fd(0x20e)];const _0x93910b={};_0x93910b['description']=_0x20c4ce['XuINx'],_0x93910b[_0x4ff9fd(0x1a8)]=_0x20c4ce['ktvAN'];const _0x2369b1={};_0x2369b1[_0x4ff9fd(0x1d9)]=_0x20c4ce[_0x4ff9fd(0x200)],_0x2369b1[_0x4ff9fd(0x1a8)]=_0x20c4ce[_0x4ff9fd(0x20e)];const _0x26ea52={};_0x26ea52['description']=_0x20c4ce[_0x4ff9fd(0x23c)],_0x26ea52[_0x4ff9fd(0x1a8)]=_0x20c4ce[_0x4ff9fd(0x20e)];const _0x4b341b={};return _0x4b341b[_0x4ff9fd(0x25c)]=_0xb584c9,_0x4b341b[_0x4ff9fd(0x1a0)]=_0x93910b,_0x4b341b[_0x4ff9fd(0x1e6)]=_0x2369b1,_0x4b341b[_0x4ff9fd(0x239)]=_0x26ea52,_0x16238f[_0x4ff9fd(0x1b6)](HELP_HEADER_MESSAGE[_0x4ff9fd(0x1d0)])[_0x4ff9fd(0x20d)](HELP_FOOTER_MESSAGE)[_0x4ff9fd(0x1b1)](_0x4b341b)[_0x4ff9fd(0x20b)](_0x20c4ce[_0x4ff9fd(0x19d)])[_0x4ff9fd(0x1b5)];};async function inputValidation(_0x3a8bc7,_0x3a8c98){const _0x4a953e=a17_0x1337ce,_0x3e0e17={'MdGcL':_0x4a953e(0x1e6),'PvyXT':_0x4a953e(0x1a0),'SseWN':_0x4a953e(0x164),'aVGaG':'string','AVtfP':_0x4a953e(0x1e9),'GcXYo':_0x4a953e(0x216),'tCSLZ':_0x4a953e(0x241),'iAmNo':_0x4a953e(0x20b),'oNVyW':_0x4a953e(0x170),'QnmWr':_0x4a953e(0x25c),'ihiMV':_0x4a953e(0x1da),'DbnNa':'Error\x20Details:\x0a','DCLBv':_0x4a953e(0x249),'kIUnb':_0x4a953e(0x220),'AwMeW':'will\x20be\x20created','NCFvd':function(_0x39bda9,_0x41803d){return _0x39bda9!==_0x41803d;},'KsiEf':'BLrIa','pYime':function(_0x480e97,_0x261559){return _0x480e97===_0x261559;},'wEjEy':_0x4a953e(0x1d1),'SVAfN':_0x4a953e(0x1f8),'UdNRT':function(_0x20e2b0,_0x38ab71){return _0x20e2b0===_0x38ab71;},'ZdfJu':_0x4a953e(0x1d5),'uZPyW':'yLSWb','tQUiO':function(_0x404fd6,_0xd719a2){return _0x404fd6!==_0xd719a2;},'XLmCq':_0x4a953e(0x205),'iHgEQ':function(_0x5ce2e6,_0x5d1bbb){return _0x5ce2e6!==_0x5d1bbb;},'fEEGW':_0x4a953e(0x231),'FRFaz':function(_0x19b754,_0x2ff825){return _0x19b754>_0x2ff825;},'NhMfw':function(_0x6b515b,_0x24efda){return _0x6b515b!==_0x24efda;},'OZrnD':_0x4a953e(0x1a9),'RcELb':_0x4a953e(0x25b),'gBRuT':function(_0x5eb0d5,_0x25fa2d,_0x31126c,_0x3c5d52,_0x4aa5e5,_0x256f48,_0x52af09,_0x404104){return _0x5eb0d5(_0x25fa2d,_0x31126c,_0x3c5d52,_0x4aa5e5,_0x256f48,_0x52af09,_0x404104);},'rHRQQ':_0x4a953e(0x20f),'sZyRo':_0x4a953e(0x179),'FPlGp':function(_0x4ca9f7,_0x4cef23){return _0x4ca9f7!==_0x4cef23;},'lcDeG':_0x4a953e(0x162),'vPlpB':_0x4a953e(0x251),'hNmeT':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','JbmPN':_0x4a953e(0x201),'bVeit':function(_0x40736c,_0x1ef3e0){return _0x40736c===_0x1ef3e0;},'KKlyj':_0x4a953e(0x168),'MLmol':_0x4a953e(0x1d3),'esDJO':_0x4a953e(0x248),'eJQlr':_0x4a953e(0x20c),'qFHDM':function(_0x23d63c,_0x1c0358,_0x4dbd08){return _0x23d63c(_0x1c0358,_0x4dbd08);},'BRynD':function(_0x5042ef,_0x42239d,_0xadd876,_0x2e7b5d,_0x53e7fc,_0x1f422f){return _0x5042ef(_0x42239d,_0xadd876,_0x2e7b5d,_0x53e7fc,_0x1f422f);},'WYIaI':'pre-check','hZIwE':_0x4a953e(0x239),'nFDfO':function(_0x1fb0d5,_0x599af6){return _0x1fb0d5===_0x599af6;},'znhhW':function(_0xd35313,_0x2a0d54){return _0xd35313===_0x2a0d54;},'lxXfq':'LXaGO','fICdR':function(_0x57f5de,_0x580a4c){return _0x57f5de(_0x580a4c);},'fhSBp':_0x4a953e(0x1eb),'LlxaL':_0x4a953e(0x1a5),'yUBqB':function(_0x524aa0,_0x471c4d,_0x31de95,_0x2b8972,_0x5b7255,_0x4dfcad,_0x33a5a4,_0x25323d){return _0x524aa0(_0x471c4d,_0x31de95,_0x2b8972,_0x5b7255,_0x4dfcad,_0x33a5a4,_0x25323d);},'rMZPg':'pre-check-grid-profile-empty','CQbVD':function(_0x17d4ef,_0x1ef772){return _0x17d4ef===_0x1ef772;},'qXYsE':_0x4a953e(0x1fc),'YQONy':_0x4a953e(0x1c9),'xNAxM':function(_0xd0c8f3,_0x211aab){return _0xd0c8f3!==_0x211aab;},'OhtWy':_0x4a953e(0x1a1),'PgecA':_0x4a953e(0x21e),'TjPsv':function(_0x5cbad0,_0x52a712){return _0x5cbad0!==_0x52a712;},'uzzRF':_0x4a953e(0x1ce),'bySRO':_0x4a953e(0x1c4),'Fufkl':function(_0x53f132,_0x200823){return _0x53f132===_0x200823;},'DwBXI':_0x4a953e(0x166),'thdDq':_0x4a953e(0x196)};let _0x5e846f;try{if(_0x3e0e17[_0x4a953e(0x1ad)](_0x3e0e17[_0x4a953e(0x226)],_0x3e0e17[_0x4a953e(0x226)]))_0x22a31f[_0x4a953e(0x16b)](_0x3e0e17[_0x4a953e(0x184)]);else{if(_0x3a8bc7['clusterName']||_0x3a8bc7[_0x4a953e(0x1ed)]||_0x3a8bc7[_0x4a953e(0x1e6)]){if(_0x3e0e17['pYime'](_0x3e0e17[_0x4a953e(0x181)],_0x3e0e17[_0x4a953e(0x195)]))_0x40142f[_0x4a953e(0x16b)](_0x3e0e17['PvyXT']);else{const _0x15bb41=[];!_0x3a8bc7[_0x4a953e(0x1ec)]&&(_0x3e0e17[_0x4a953e(0x24f)](_0x3e0e17['ZdfJu'],_0x3e0e17['uZPyW'])?_0x17b782['error'](_0x4a953e(0x25d)+_0x4b6865[_0x4a953e(0x170)][_0x4a953e(0x225)]):_0x15bb41[_0x4a953e(0x16b)](_0x3e0e17[_0x4a953e(0x1fe)]));;!_0x3a8bc7[_0x4a953e(0x1ed)]&&(_0x3e0e17[_0x4a953e(0x1f7)](_0x3e0e17[_0x4a953e(0x163)],_0x3e0e17[_0x4a953e(0x163)])?(_0x228406[_0x4a953e(0x1f0)]('['+_0x5437ed+_0x4a953e(0x1ae)+_0x2314ef[_0x4a953e(0x204)]+_0x4a953e(0x18b)+_0x4c04e5[_0x4a953e(0x240)]+_0x4a953e(0x16c)+_0x50c3e6[_0x4a953e(0x170)]),_0x36e178[_0x4a953e(0x170)]&&_0x17ae2b[_0x4a953e(0x170)](_0x4a953e(0x25d)+_0x1cc2f6[_0x4a953e(0x170)][_0x4a953e(0x225)])):_0x15bb41[_0x4a953e(0x16b)](_0x3e0e17[_0x4a953e(0x218)]));;if(!_0x3a8bc7['region']){if(_0x3e0e17['iHgEQ'](_0x3e0e17[_0x4a953e(0x180)],_0x3e0e17[_0x4a953e(0x180)])){const _0x858ff4={};_0x858ff4['description']=_0x3e0e17['SseWN'],_0x858ff4[_0x4a953e(0x1a8)]=_0x3e0e17[_0x4a953e(0x243)];const _0x48f986={};_0x48f986[_0x4a953e(0x1d9)]=_0x3e0e17[_0x4a953e(0x207)],_0x48f986[_0x4a953e(0x1a8)]=_0x3e0e17[_0x4a953e(0x243)];const _0x154bad={};_0x154bad[_0x4a953e(0x1d9)]=_0x3e0e17['GcXYo'],_0x154bad['type']=_0x3e0e17[_0x4a953e(0x243)];const _0x553db7={};_0x553db7[_0x4a953e(0x1d9)]=_0x3e0e17[_0x4a953e(0x16e)],_0x553db7[_0x4a953e(0x1a8)]=_0x3e0e17[_0x4a953e(0x243)];const _0xc49609={};return _0xc49609[_0x4a953e(0x25c)]=_0x858ff4,_0xc49609[_0x4a953e(0x1a0)]=_0x48f986,_0xc49609[_0x4a953e(0x1e6)]=_0x154bad,_0xc49609[_0x4a953e(0x239)]=_0x553db7,_0x47a56a[_0x4a953e(0x1b6)](_0x5b2b4f[_0x4a953e(0x1d0)])[_0x4a953e(0x20d)](_0x784931)[_0x4a953e(0x1b1)](_0xc49609)[_0x4a953e(0x20b)](_0x3e0e17['iAmNo'])['argv'];}else _0x15bb41[_0x4a953e(0x16b)](_0x3e0e17[_0x4a953e(0x184)]);};_0x3e0e17['FRFaz'](_0x15bb41['length'],0x0)&&(_0x3e0e17[_0x4a953e(0x1c6)](_0x3e0e17[_0x4a953e(0x1b8)],_0x3e0e17[_0x4a953e(0x1f1)])?(_0x5e846f=_0x4a953e(0x1be)+_0x15bb41[_0x4a953e(0x199)](',\x20')+_0x4a953e(0x17a),await _0x3e0e17[_0x4a953e(0x24a)](reportToGalactusAndSendToEDS,_0x3a8bc7,_0x3a8c98,_0x5e846f,messageTypes[_0x4a953e(0x236)],_0x3e0e17[_0x4a953e(0x1e8)],_0x3e0e17[_0x4a953e(0x172)],_0x3e0e17[_0x4a953e(0x16d)]),logger['error'](_0x5e846f),process[_0x4a953e(0x21f)](0x1)):_0x508018[_0x4a953e(0x21f)](0x1));if(!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0x3a8bc7['cloudProvider']['toLowerCase']())){if(_0x3e0e17[_0x4a953e(0x214)](_0x3e0e17[_0x4a953e(0x224)],_0x3e0e17['vPlpB'])){_0x5e846f=_0x3e0e17[_0x4a953e(0x222)],await _0x3e0e17[_0x4a953e(0x24a)](reportToGalactusAndSendToEDS,_0x3a8bc7,_0x3a8c98,_0x5e846f,messageTypes[_0x4a953e(0x236)],_0x3e0e17[_0x4a953e(0x1e8)],_0x3e0e17['JbmPN'],_0x3e0e17[_0x4a953e(0x16d)]),logger[_0x4a953e(0x170)](_0x5e846f);if(!_0x3a8bc7['cloudProvider']){if(_0x3e0e17[_0x4a953e(0x185)](_0x3e0e17['KKlyj'],_0x3e0e17[_0x4a953e(0x24b)]))logger['info'](_0x4a953e(0x1c2)+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x3a8bc7['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x4a953e(0x24e)];else{const _0x54e383={};_0x54e383['type']=_0x13bbd5[_0x4a953e(0x258)],_0x54e383[_0x4a953e(0x169)]=_0x10dbe4,_0x38c78d[_0x4a953e(0x1ca)](_0x49a094,_0x54e383,_0x3e0e17[_0x4a953e(0x16d)],!![]);}}}else _0x535668[_0x4a953e(0x16b)](_0x3e0e17['QnmWr']);}global_registry[_0x4a953e(0x1ec)]=_0x3a8bc7[_0x4a953e(0x1ec)],global_registry[_0x4a953e(0x1ed)]=_0x3a8bc7[_0x4a953e(0x1ed)],global_registry[_0x4a953e(0x1dc)]=_0x3a8bc7[_0x4a953e(0x1e6)];}}else{if(_0x3a8bc7[_0x4a953e(0x1b4)]){if(_0x3e0e17[_0x4a953e(0x1c6)](_0x3e0e17['MLmol'],_0x3e0e17[_0x4a953e(0x228)])){global_registry['gridProfile']=_0x3a8bc7[_0x4a953e(0x1b4)],logger[_0x4a953e(0x1bf)](_0x4a953e(0x23e)+_0x3a8bc7[_0x4a953e(0x1b4)]);const _0x36f36f=_0x4a953e(0x189)+AG_API_URL+_0x4a953e(0x1ab),_0x536de5={};_0x536de5[_0x4a953e(0x25f)]=_0x3e0e17[_0x4a953e(0x213)],_0x536de5[_0x4a953e(0x24c)]=global_registry[_0x4a953e(0x211)],_0x536de5['throwHttpErrors']=![];const _0x3c05cc=_0x536de5,_0x2f8b9c=await _0x3e0e17[_0x4a953e(0x21a)](got,_0x36f36f,_0x3c05cc),_0x5a095f=await _0x3e0e17['BRynD'](responseValidation,_0x2f8b9c,_0x3e0e17[_0x4a953e(0x16a)],_0x3e0e17[_0x4a953e(0x1cf)],_0x3a8bc7,_0x3a8c98);let _0x3bc813={};if(_0x3e0e17[_0x4a953e(0x1a4)](_0x5a095f,0xc8)){if(_0x3e0e17[_0x4a953e(0x237)](_0x3e0e17[_0x4a953e(0x1b3)],_0x3e0e17[_0x4a953e(0x1b3)])){const _0x1903c1=JSON[_0x4a953e(0x18f)](_0x2f8b9c[_0x4a953e(0x203)]),_0x56834a=_0x1903c1[_0x4a953e(0x212)](_0x3d184c=>_0x3d184c['name']===_0x3a8bc7[_0x4a953e(0x1b4)])||null;_0x3e0e17[_0x4a953e(0x173)](isUndefined,_0x56834a)?_0x3e0e17[_0x4a953e(0x1c6)](_0x3e0e17['fhSBp'],_0x3e0e17[_0x4a953e(0x22c)])?(_0x5e846f=_0x4a953e(0x18c)+_0x3a8bc7['gridProfile']+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x3e0e17['yUBqB'](reportToGalactusAndSendToEDS,_0x3a8bc7,_0x3a8c98,_0x5e846f,messageTypes[_0x4a953e(0x236)],_0x3e0e17[_0x4a953e(0x1e8)],_0x3e0e17[_0x4a953e(0x1c1)],_0x3e0e17[_0x4a953e(0x16d)]),logger[_0x4a953e(0x170)](_0x5e846f),process[_0x4a953e(0x21f)](0x1)):_0x3bb5b2['info']('Cluster\x20`'+_0x171a3b['clusterName']+_0x4a953e(0x16f)):_0x3e0e17[_0x4a953e(0x19e)](_0x3e0e17[_0x4a953e(0x1fa)],_0x3e0e17[_0x4a953e(0x1af)])?_0x1fc813=_0x921e4f:_0x3bc813=_0x56834a;}else _0x5f02e2[_0x4a953e(0x1f0)](_0x4a953e(0x1c2)+_0x1f169d[_0x4a953e(0x24e)]+'\x20'),_0x20a282[_0x4a953e(0x1ed)]=_0x5e48ca[_0x4a953e(0x24e)];}else _0x3e0e17[_0x4a953e(0x22b)](_0x3e0e17[_0x4a953e(0x1cb)],_0x3e0e17[_0x4a953e(0x1cb)])?(_0x3f93ef[_0x4a953e(0x170)](_0x3e0e17[_0x4a953e(0x171)]),_0x34f092[_0x4a953e(0x21f)](0x1)):process['exit'](0x1);const _0x2b0a2d={};_0x2b0a2d[_0x4a953e(0x1a8)]=WS_EVENTS[_0x4a953e(0x258)],_0x2b0a2d['message']=_0x3e0e17[_0x4a953e(0x235)],webSocketUtils[_0x4a953e(0x1ca)](_0x3a8c98,_0x2b0a2d),global_registry[_0x4a953e(0x1ed)]=_0x3bc813[_0x4a953e(0x1ed)],global_registry[_0x4a953e(0x1dc)]=_0x3bc813[_0x4a953e(0x1e6)],global_registry['clusterName']=_0x3bc813[_0x4a953e(0x1ec)];}else _0x5e7236+=_0x3e0e17[_0x4a953e(0x221)],_0x3655fa+=_0x4a953e(0x227)+(_0x3349eb[_0x4a953e(0x169)]||_0x3e0e17[_0x4a953e(0x19c)])+'\x0a',_0x59a85a+=_0x4a953e(0x1ac)+(_0x4803fb['code']||_0x3e0e17[_0x4a953e(0x19c)])+'\x0a',_0x5f15d4+=_0x4a953e(0x21d)+(_0x472afe[_0x4a953e(0x225)]||_0x3e0e17[_0x4a953e(0x19c)])+'\x0a';}else _0x3e0e17['TjPsv'](_0x3e0e17[_0x4a953e(0x1db)],_0x3e0e17[_0x4a953e(0x190)])?(logger[_0x4a953e(0x170)](_0x3e0e17[_0x4a953e(0x171)]),process['exit'](0x1)):_0x462669+=_0x4a953e(0x1f4)+_0x1ba5f5['clusterName']+'\x20'+(_0x2dad64?_0x3e0e17['kIUnb']:_0x3e0e17[_0x4a953e(0x1b9)])+'\x0a\x0a';}}}catch(_0x452f60){_0x3e0e17[_0x4a953e(0x22e)](_0x3e0e17[_0x4a953e(0x259)],_0x3e0e17[_0x4a953e(0x1a2)])?_0x48c795+=_0x4a953e(0x1f4)+_0x2ea9f7[_0x4a953e(0x1ec)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':(_0x5e846f='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x452f60+':\x20'+_0x452f60[_0x4a953e(0x225)],logger['error'](_0x5e846f),await _0x3e0e17[_0x4a953e(0x1c7)](reportToGalactusAndSendToEDS,_0x3a8bc7,_0x3a8c98,_0x5e846f,messageTypes[_0x4a953e(0x236)],_0x3e0e17[_0x4a953e(0x1e8)],_0x3e0e17[_0x4a953e(0x1aa)],_0x3e0e17[_0x4a953e(0x16d)]),process[_0x4a953e(0x21f)](0x1));}}function printResponse(_0x48cf7c,_0x866713){const _0x11ee39=a17_0x1337ce,_0x1b429a={};_0x1b429a[_0x11ee39(0x160)]=function(_0x9974d9,_0x13a6c1){return _0x9974d9+_0x13a6c1;},_0x1b429a['HhQwe']=_0x11ee39(0x177),_0x1b429a[_0x11ee39(0x1e3)]=_0x11ee39(0x1c8),_0x1b429a[_0x11ee39(0x1ff)]=function(_0x7582a3,_0xa12489){return _0x7582a3||_0xa12489;},_0x1b429a[_0x11ee39(0x1df)]=_0x11ee39(0x249),_0x1b429a[_0x11ee39(0x1bd)]=_0x11ee39(0x188),_0x1b429a[_0x11ee39(0x25a)]=function(_0x3f8a73,_0x14fc07){return _0x3f8a73===_0x14fc07;},_0x1b429a[_0x11ee39(0x256)]=_0x11ee39(0x1e5);const _0x5b1f86=_0x1b429a;logger['info']('['+_0x48cf7c+_0x11ee39(0x1ae)+_0x866713['status']+_0x11ee39(0x18b)+_0x866713[_0x11ee39(0x240)]+_0x11ee39(0x16c)+_0x866713[_0x11ee39(0x170)]);if(_0x866713[_0x11ee39(0x170)]){if(_0x5b1f86['TUaOn'](_0x5b1f86['ZFwKt'],_0x5b1f86[_0x11ee39(0x256)]))logger[_0x11ee39(0x170)](_0x11ee39(0x25d)+_0x866713[_0x11ee39(0x170)][_0x11ee39(0x225)]);else{const {header:_0x33963a,response:_0x32fa60}=_0x28b8e0,{status:_0x589041,data:_0x165fe5,error:_0x37853e}=_0x32fa60;_0x1c5019+=_0x33963a+'\x20#'+_0x5b1f86[_0x11ee39(0x160)](_0x288370,0x1)+'\x0a',_0x3818f4+=_0x11ee39(0x1ee)+(_0x589041?_0x5b1f86[_0x11ee39(0x23a)]:_0x5b1f86[_0x11ee39(0x1e3)])+'\x0a',_0x44f580+='Message:\x20'+_0x5b1f86[_0x11ee39(0x1ff)](_0x165fe5,_0x5b1f86[_0x11ee39(0x1df)])+'\x0a',_0x37853e&&(_0x56d61a+=_0x5b1f86['wsjOr'],_0x430ce8+='\x20\x20Message:\x20'+(_0x37853e['message']||_0x5b1f86[_0x11ee39(0x1df)])+'\x0a',_0x4110b4+=_0x11ee39(0x1ac)+(_0x37853e[_0x11ee39(0x1d2)]||_0x5b1f86[_0x11ee39(0x1df)])+'\x0a',_0x2e264a+=_0x11ee39(0x21d)+(_0x37853e[_0x11ee39(0x225)]||_0x5b1f86[_0x11ee39(0x1df)])+'\x0a'),_0x365e68+='\x0a\x0a';}}}function a17_0x1331(_0x5a0db8,_0x50cd7f){const _0x1a0a02=a17_0x1a0a();return a17_0x1331=function(_0x133192,_0x1af345){_0x133192=_0x133192-0x15f;let _0x55e990=_0x1a0a02[_0x133192];return _0x55e990;},a17_0x1331(_0x5a0db8,_0x50cd7f);}function a17_0x1a0a(){const _0x661e47=['QeboF','STkZP','qFqKG','cluster-check-failed-','PNCnT','N/A','gBRuT','KKlyj','headers','UxUHQ','CLOUD_PROVIDER','UdNRT','response','GlEeN','vZbcZ','getUTCFullYear','33815WujRlk','bstackUsername','ZFwKt','2970086helyxb','LOG','DwBXI','TUaOn','naXTM','cluster-name','error\x20stack\x20:\x20','header','method','XuINx','command','../../utils/webSocketUtils','UkbkC','baYsh','IHaGn','XLmCq','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Pre-check\x20running\x20for\x20Cloud\x20-\x20','googS','isTls1_2_SUPPORTED','eorka','message','WYIaI','push','\x20error\x20:\x20','oNVyW','tCSLZ','`\x20already\x20exists','error','ihiMV','sZyRo','fICdR','HQMny','wNxSu','Report\x20saved\x20in\x20','Success','NtBhq','pre-check-cluster-args-not-passed','.\x20Please\x20provide\x20all\x20required\x20arguments.','reconnecting-websocket','delay','YIrCD','stack\x20trace\x20','got','fEEGW','wEjEy','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','log/report_','MdGcL','bVeit','Message:\x20','wKfCJ','Error\x20Details:\x0a','https://','1083623EAlPbC','\x20data\x20:\x20','Invalid\x20input.\x20grid\x20profiles:\x20','init','getUTCHours','parse','bySRO','pljcA','UcGRm','existsSync','6520oZkesr','SVAfN','dulMc','FPSLV','Cluster\x20`','join','getUTCMonth','1932fdbdmR','DCLBv','Amuhu','CQbVD','21SBkphL','cloud-provider','AdFQa','thdDq','hkNNZ','nFDfO','VOwsH','INFO','1017208iDWuao','type','GjSsU','JbmPN','/packages/cli/get-all-grid-profiles','\x20\x20Code:\x20','NCFvd',']\x20status\x20:\x20','YQONy','wdUsZ','options','../../cloudproviders/utils','lxXfq','gridProfile','argv','usage','will\x20be\x20created','OZrnD','AwMeW','CHPxk','WebSocket','username','wsjOr','Missing\x20required\x20arguments:\x20','debug','Failed\x20in\x20pre-check!\x20Error:\x20','rMZPg','Setting\x20cloud\x20provider\x20as\x20','`\x20is\x20present\x20in\x20region\x20`','MpyfT','checkAccess','NhMfw','yUBqB','Failure','DRLpJ','sendEventToBackend','OhtWy','wAboy','utf-8','scBfY','hZIwE','pre_check','HTupF','code','gYqUR','requestId','bWpZG','isCliToolInstalled','../../config/constants','Tool\x20Installed','description','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','uzzRF','clusterRegion','42564478lCVkOy','Xsvxn','WIAym','1158nClyPN','ZFvtk','TLSv1_2_client_method','EqYpH','replace','mvIMV','region','Cluster\x20details\x0a-----------------------\x0a','rHRQQ','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','string','ibxgr','clusterName','cloudProvider','Status:\x20','370kKSkfW','info','RcELb','grid','credential-not-found','Cluster\x20','bstackAccesskey','112878fRZDqn','tQUiO','pXxQJ','===\x20Precheck\x20Report\x20-\x20','qXYsE','2|1|0|3|4','CDKAn','../../config/logger','QnmWr','MQDXS','ZxQtl','cloud-provider-not-supported','PhDpH','body','status','OiZsI','unable\x20to\x20verify\x20if\x20cluster\x20`','AVtfP','CHGXC','`\x20,error\x20:\x20','xMPJc','help','GET','epilogue','ktvAN','pre-check-grid-called','pre-check-failed','authHeader','find','eJQlr','FPlGp','isTrialGridAccessible','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','QBAGX','PvyXT','stringify','qFHDM','bHGMZ','builder','\x20\x20Stack:\x20','Grid\x20profile\x20fetched\x20for\x20pre-check','exit','is\x20already\x20present','DbnNa','hNmeT','DNAUi','lcDeG','stack','KsiEf','\x20\x20Message:\x20','esDJO','amhWt','accessResp','xNAxM','LlxaL','GdBtQ','Fufkl','Browserstack','password','bgByl','../../utils/instrumentationUtils','miWjj','OhbrL','PgecA','ERROR','znhhW','getUTCMinutes','grid-profile','HhQwe','desc','akgCg','<PasswordPlaceholder>','grid\x20profile\x20flow\x20','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','data','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','.txt','aVGaG'];a17_0x1a0a=function(){return _0x661e47;};return a17_0x1a0a();}async function generateReport(_0x2d9f19,_0x57639c){const _0x4ef2ae=a17_0x1337ce,_0x15dc25={'wNxSu':function(_0x385429,_0x1724b9){return _0x385429+_0x1724b9;},'bHGMZ':'Success','FPSLV':'Failure','fMORh':function(_0x1de8ae,_0x1a704e){return _0x1de8ae||_0x1a704e;},'DNAUi':_0x4ef2ae(0x249),'wAboy':_0x4ef2ae(0x188),'YIrCD':_0x4ef2ae(0x1e7),'Xsvxn':function(_0x5229f8,_0x57b48a){return _0x5229f8!=_0x57b48a;},'HQMny':_0x4ef2ae(0x220),'baYsh':_0x4ef2ae(0x1b7),'WAixZ':function(_0x514e6f){return _0x514e6f();}};let _0x4ccf4b=_0x4ef2ae(0x1f9)+global_registry[_0x4ef2ae(0x1ed)]+'\x20===\x0a\x0a';return _0x2d9f19['forEach']((_0x193726,_0x380f47)=>{const _0x3584f6=_0x4ef2ae,{header:_0xbdfa18,response:_0xb16e26}=_0x193726,{status:_0x3dcc87,data:_0x464574,error:_0x3472f6}=_0xb16e26;_0x4ccf4b+=_0xbdfa18+'\x20#'+_0x15dc25[_0x3584f6(0x175)](_0x380f47,0x1)+'\x0a',_0x4ccf4b+=_0x3584f6(0x1ee)+(_0x3dcc87?_0x15dc25[_0x3584f6(0x21b)]:_0x15dc25[_0x3584f6(0x197)])+'\x0a',_0x4ccf4b+=_0x3584f6(0x186)+_0x15dc25['fMORh'](_0x464574,_0x15dc25[_0x3584f6(0x223)])+'\x0a',_0x3472f6&&(_0x4ccf4b+=_0x15dc25[_0x3584f6(0x1cc)],_0x4ccf4b+=_0x3584f6(0x227)+(_0x3472f6[_0x3584f6(0x169)]||_0x15dc25[_0x3584f6(0x223)])+'\x0a',_0x4ccf4b+=_0x3584f6(0x1ac)+(_0x3472f6[_0x3584f6(0x1d2)]||_0x15dc25[_0x3584f6(0x223)])+'\x0a',_0x4ccf4b+=_0x3584f6(0x21d)+(_0x3472f6[_0x3584f6(0x225)]||_0x15dc25[_0x3584f6(0x223)])+'\x0a'),_0x4ccf4b+='\x0a\x0a';}),_0x4ccf4b+=_0x15dc25[_0x4ef2ae(0x17d)],_0x15dc25[_0x4ef2ae(0x1de)](_0x57639c,null)?_0x4ccf4b+=_0x4ef2ae(0x1f4)+global_registry[_0x4ef2ae(0x1ec)]+'\x20'+(_0x57639c?_0x15dc25[_0x4ef2ae(0x174)]:_0x15dc25[_0x4ef2ae(0x161)])+'\x0a\x0a':_0x4ccf4b+='Cluster\x20'+global_registry[_0x4ef2ae(0x1ec)]+_0x4ef2ae(0x182),_0x4ccf4b+=_0x15dc25['WAixZ'](getSystemMetaData),_0x4ccf4b;};exports['handler']=async function(_0xf745c0){const _0xb67112=a17_0x1337ce,_0x4adc73={'wKfCJ':function(_0x534fb3){return _0x534fb3();},'UxUHQ':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','amhWt':function(_0x4bf391,_0x19d0bc,_0x1736d6,_0x44370b,_0xb78cc8,_0x247490,_0x270713,_0x3b2943){return _0x4bf391(_0x19d0bc,_0x1736d6,_0x44370b,_0xb78cc8,_0x247490,_0x270713,_0x3b2943);},'NtBhq':'pre-check-grid-called','pljcA':_0xb67112(0x1f3),'STkZP':_0xb67112(0x170),'OhbrL':function(_0x4ecd06,_0x4c91c3,_0xc4c05f,_0x37641e,_0x4e1dda,_0x8e8ff1,_0x3361a0){return _0x4ecd06(_0x4c91c3,_0xc4c05f,_0x37641e,_0x4e1dda,_0x8e8ff1,_0x3361a0);},'CHPxk':'<UsernamePlaceholder>','vfADn':_0xb67112(0x23d),'vZbcZ':function(_0x17a405,_0x4837cb,_0x58ce97){return _0x17a405(_0x4837cb,_0x58ce97);},'GLmBB':'dummy-grid','qFqKG':'toolInstalledResp','KiQvL':_0xb67112(0x1fb),'hkNNZ':_0xb67112(0x22a),'eQjng':function(_0x1347a4){return _0x1347a4();},'GdBtQ':_0xb67112(0x215),'vxMFz':function(_0x57ab4e,_0x535615){return _0x57ab4e(_0x535615);},'PhDpH':_0xb67112(0x1e2),'dkkiT':function(_0x17d41d,_0x1c0fca,_0x47f4b0){return _0x17d41d(_0x1c0fca,_0x47f4b0);},'CHGXC':_0xb67112(0x167),'wdUsZ':_0xb67112(0x1d8),'xMPJc':'User\x20Access','xcHio':'Whitelisted\x20browserstack','miWjj':'SSL\x20Configured','owAyP':function(_0x5abb75,_0x156042,_0x2ad6f4){return _0x5abb75(_0x156042,_0x2ad6f4);},'XtfYN':function(_0x29b0c3,_0x10eb4c){return _0x29b0c3+_0x10eb4c;},'QeboF':_0xb67112(0x1cd),'UcGRm':function(_0x3caf41,_0x2f2f43,_0x560034,_0x5bd08a,_0x3593a3,_0x5e8a01,_0xec5b38){return _0x3caf41(_0x2f2f43,_0x560034,_0x5bd08a,_0x3593a3,_0x5e8a01,_0xec5b38);},'QBAGX':_0xb67112(0x210)};let _0xeb5e2c,_0x2412c2;try{global_registry[_0xb67112(0x1d4)]=_0x4adc73['wKfCJ'](uuidv4);!fs[_0xb67112(0x193)](_0x4adc73['wKfCJ'](getCredentialsPath))&&(_0x2412c2=_0x4adc73[_0xb67112(0x24d)],logger['error'](_0x2412c2),await _0x4adc73['amhWt'](reportToGalactusAndSendToEDS,_0xf745c0,_0xeb5e2c,_0x2412c2,messageTypes[_0xb67112(0x236)],_0x4adc73['NtBhq'],_0x4adc73[_0xb67112(0x191)],_0x4adc73[_0xb67112(0x245)]),process['exit'](0x1));_0x4adc73[_0xb67112(0x234)](sendInstrumentationEvent,_0xf745c0,_0x4adc73['NtBhq'],messageTypes[_0xb67112(0x1a6)],null,null,_0xf745c0);const _0x47e31e=JSON[_0xb67112(0x18f)](fs['readFileSync'](_0x4adc73[_0xb67112(0x187)](getCredentialsPath)));global_registry[_0xb67112(0x255)]=_0x47e31e[_0xb67112(0x22f)][_0xb67112(0x1bc)],global_registry['bstackAccesskey']=_0x47e31e[_0xb67112(0x22f)][_0xb67112(0x230)];const _0x14bfb4=WS_ENDPOINT['replace'](_0x4adc73[_0xb67112(0x1ba)],_0x47e31e[_0xb67112(0x22f)][_0xb67112(0x1bc)])[_0xb67112(0x1e4)](_0x4adc73['vfADn'],_0x47e31e['Browserstack'][_0xb67112(0x230)]),_0xfe5bda={};_0xfe5bda[_0xb67112(0x1bb)]=ws,_0xfe5bda['connectionTimeout']=0x36ee80,_0xeb5e2c=new ReconnectingWebSocket(_0x14bfb4,[],_0xfe5bda),global_registry[_0xb67112(0x211)]=_0x4adc73['vZbcZ'](getAuthHeader,global_registry[_0xb67112(0x255)],global_registry[_0xb67112(0x1f5)]),await _0x4adc73[_0xb67112(0x252)](inputValidation,_0xf745c0,_0xeb5e2c),logger[_0xb67112(0x1f0)](_0xb67112(0x165)+global_registry[_0xb67112(0x1ed)]+'\x20region\x20-\x20'+global_registry[_0xb67112(0x1dc)]);let _0x41577f=await _0x4adc73[_0xb67112(0x234)](getCloudProviderObjectWithOutInit,global_registry[_0xb67112(0x1ed)],global_registry['clusterName'],_0x4adc73['GLmBB'],_0xeb5e2c,webSocketUtils,_0xf745c0);const _0x37ae0a=await _0x41577f[_0xb67112(0x1d6)]();_0x4adc73['vZbcZ'](printResponse,_0x4adc73[_0xb67112(0x246)],_0x37ae0a),_0x41577f=await _0x41577f[_0xb67112(0x18d)]();let _0x630a18=![];try{_0x630a18=await _0x41577f['isClusterPresent']();}catch(_0x3454db){const _0x500beb=_0x4adc73['KiQvL']['split']('|');let _0x43d729=0x0;while(!![]){switch(_0x500beb[_0x43d729++]){case'0':logger[_0xb67112(0x170)](_0x2412c2);continue;case'1':_0x630a18=null;continue;case'2':_0x2412c2=_0xb67112(0x206)+global_registry[_0xb67112(0x1ec)]+_0xb67112(0x1c3)+global_registry[_0xb67112(0x1dc)]+_0xb67112(0x209)+_0x3454db;continue;case'3':_0x2412c2+='\x0a'+JSON[_0xb67112(0x219)](_0x3454db[_0xb67112(0x225)]);continue;case'4':await _0x4adc73[_0xb67112(0x229)](reportToGalactusAndSendToEDS,_0xf745c0,_0xeb5e2c,_0x2412c2,messageTypes['ERROR'],_0x4adc73['NtBhq'],_0xb67112(0x247)+global_registry[_0xb67112(0x1ed)],_0x4adc73['STkZP']);continue;}break;}}_0x630a18&&logger[_0xb67112(0x1f0)](_0xb67112(0x198)+global_registry[_0xb67112(0x1ec)]+_0xb67112(0x16f));const _0x42533b=await _0x41577f[_0xb67112(0x1c5)]();_0x4adc73['vZbcZ'](printResponse,_0x4adc73[_0xb67112(0x1a3)],_0x42533b);const _0x12a2fc=await _0x4adc73['eQjng'](curlRequest);_0x4adc73['vZbcZ'](printResponse,_0x4adc73[_0xb67112(0x22d)],_0x12a2fc);const _0x33c1e7=await _0x4adc73['vxMFz'](isTlsSupported,_0x4adc73[_0xb67112(0x202)]);_0x4adc73['dkkiT'](printResponse,_0x4adc73[_0xb67112(0x208)],_0x33c1e7);const _0x49effc={};_0x49effc[_0xb67112(0x25e)]=_0x4adc73[_0xb67112(0x1b0)],_0x49effc['response']=_0x37ae0a;const _0x42c0b4={};_0x42c0b4[_0xb67112(0x25e)]=_0x4adc73[_0xb67112(0x20a)],_0x42c0b4[_0xb67112(0x250)]=_0x42533b;const _0x42d922={};_0x42d922[_0xb67112(0x25e)]=_0x4adc73['xcHio'],_0x42d922[_0xb67112(0x250)]=_0x12a2fc;const _0x2a789b={};_0x2a789b[_0xb67112(0x25e)]=_0x4adc73[_0xb67112(0x233)],_0x2a789b[_0xb67112(0x250)]=_0x33c1e7;const _0x1dfd2d=[_0x49effc,_0x42c0b4,_0x42d922,_0x2a789b],_0x54b499=await _0x4adc73['owAyP'](generateReport,_0x1dfd2d,_0x630a18),_0x196410=new Date(),_0x4e522a=_0x196410[_0xb67112(0x253)]()+'_'+_0x4adc73['XtfYN'](_0x196410[_0xb67112(0x19a)](),0x1)+'_'+_0x196410['getUTCDate']()+'_'+_0x196410[_0xb67112(0x18e)]()+'_'+_0x196410[_0xb67112(0x238)](),_0x4b14a0=_0xb67112(0x183)+_0x4e522a+_0xb67112(0x242);fs['writeFileSync'](_0x4b14a0,_0x54b499,_0x4adc73[_0xb67112(0x244)]),logger[_0xb67112(0x1f0)](_0xb67112(0x176)+_0x4b14a0),process[_0xb67112(0x21f)](0x0);}catch(_0x47b53d){let _0x102d44=_0xb67112(0x1c0)+_0x47b53d+'\x20';logger[_0xb67112(0x170)](_0x102d44),_0x102d44+='\x0a'+JSON[_0xb67112(0x219)](_0x47b53d['stack']),logger[_0xb67112(0x1bf)](_0xb67112(0x17e)+_0x47b53d['stack']);if(_0xeb5e2c){const _0x395a9c={};_0x395a9c[_0xb67112(0x1a8)]=WS_EVENTS[_0xb67112(0x258)],_0x395a9c[_0xb67112(0x169)]=_0x102d44,webSocketUtils[_0xb67112(0x1ca)](_0xeb5e2c,_0x395a9c,_0x4adc73[_0xb67112(0x245)],!![]);}await webSocketUtils[_0xb67112(0x17c)](0x7d0);const _0x77e435={};_0x77e435[_0xb67112(0x170)]=_0x102d44,await _0x4adc73[_0xb67112(0x192)](sendInstrumentationEvent,_0xf745c0,_0x4adc73[_0xb67112(0x178)],messageTypes[_0xb67112(0x236)],_0x4adc73[_0xb67112(0x217)],_0x77e435,_0xf745c0),process[_0xb67112(0x21f)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a18_0x4d94(_0x3a13f3,_0x5694af){const _0x241792=a18_0x2417();return a18_0x4d94=function(_0x4d94de,_0x248dba){_0x4d94de=_0x4d94de-0xd9;let _0x463691=_0x241792[_0x4d94de];return _0x463691;},a18_0x4d94(_0x3a13f3,_0x5694af);}const a18_0xf1acff=a18_0x4d94;(function(_0x54cf09,_0x13a9a3){const _0x23dc1b=a18_0x4d94,_0x3714f6=_0x54cf09();while(!![]){try{const _0x9acb79=parseInt(_0x23dc1b(0xea))/0x1+parseInt(_0x23dc1b(0xdc))/0x2*(parseInt(_0x23dc1b(0xda))/0x3)+parseInt(_0x23dc1b(0xe3))/0x4+parseInt(_0x23dc1b(0xe0))/0x5*(-parseInt(_0x23dc1b(0xe9))/0x6)+-parseInt(_0x23dc1b(0xdf))/0x7+-parseInt(_0x23dc1b(0xdb))/0x8+-parseInt(_0x23dc1b(0xe4))/0x9*(-parseInt(_0x23dc1b(0xeb))/0xa);if(_0x9acb79===_0x13a9a3)break;else _0x3714f6['push'](_0x3714f6['shift']());}catch(_0x1b2ca3){_0x3714f6['push'](_0x3714f6['shift']());}}}(a18_0x2417,0x9a264));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0xf1acff(0xde));exports[a18_0xf1acff(0xed)]='start',exports[a18_0xf1acff(0xf0)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a18_0xf1acff(0xe7)]=function(_0x6da8e3){const _0x2724c9=a18_0xf1acff,_0x19b6b6={};_0x19b6b6[_0x2724c9(0xe1)]=_0x2724c9(0xdd),_0x19b6b6[_0x2724c9(0xe8)]='help';const _0x1e33ff=_0x19b6b6;return _0x6da8e3[_0x2724c9(0xd9)](HELP_HEADER_MESSAGE[_0x2724c9(0xe6)])[_0x2724c9(0xe2)](HELP_FOOTER_MESSAGE)['commandDir'](_0x1e33ff[_0x2724c9(0xe1)])[_0x2724c9(0xec)]()[_0x2724c9(0xe5)]()[_0x2724c9(0xee)]()['help'](_0x1e33ff['EeEiG']);},exports[a18_0xf1acff(0xef)]=function(_0x407fb1){};function a18_0x2417(){const _0x13d4e8=['command','strict','handler','desc','usage','3CEkCCe','3055384OnPsdf','620686jWozHK','start_commands','../config/constants','2179002LFUTKJ','9255hRrIHp','BEnXb','epilogue','11576OblBYp','18VzCRut','recommendCommands','start','builder','EeEiG','1674ZnAfhm','1058655CKMiWf','2345710yaMlCQ','demandCommand'];a18_0x2417=function(){return _0x13d4e8;};return a18_0x2417();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a19_0x3a370d=a19_0xd4b9;function a19_0x373d(){const _0x434974=['18TBlOsB','TWRNZ','<UsernamePlaceholder>','invalid-grid-id','xsWEW','bstackUsername','message','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','reconnecting-websocket','Skip\x20insecure\x20cert\x20verification.','8PBmkrT','epilogue','replace','server-error','../../config/constants','JsRcA','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','bstackAccesskey','builder','../../utils/utilityMethods','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','init-not-called','2bMgeBX','../../utils/gridComponents','stack','fXWbP','../../cloudproviders/utils','debug','type','8897172pVJKmT','stringify','../../utils/webSocketUtils','23812542XIEfUF','skip-tls-cert-verify','mBkXV','username','KQSah','name','2422469udOcYv','info','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','42855hYGeBe','fsteL','clusterName','existsSync','TwXhl','PGSPM','ERROR','argv','Start\x20an\x20existing\x20Automation\x20grid.','options','NIfOE','uoYNq','kketR','exit','PRVSZ','grid','WebSocket','parse','2201012BJlWmW','Wscsl','../../config/logger','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','EXEGa','JSOOU','description','iQKFf','11rAXFlc','lAMxW','error','default','../../utils/instrumentationUtils','command','cloudProvider','KbqJz','<PasswordPlaceholder>','connectionTimeout','password','start-grid-called','help','473780nXxZUc','DJKYU','../../utils/createk8sClient','Browserstack','grid-id','3qMEJFl','gridId','handler','630TiuWMw','region','unauthorised','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','nnmjx','statusCode','722254AnKQpE','addListeners'];a19_0x373d=function(){return _0x434974;};return a19_0x373d();}function a19_0xd4b9(_0xca8bac,_0x35f91b){const _0x373dd9=a19_0x373d();return a19_0xd4b9=function(_0xd4b9dd,_0x1e7ecc){_0xd4b9dd=_0xd4b9dd-0xfa;let _0x5940e9=_0x373dd9[_0xd4b9dd];return _0x5940e9;},a19_0xd4b9(_0xca8bac,_0x35f91b);}(function(_0x36a003,_0xa5c8c9){const _0x50779e=a19_0xd4b9,_0x1a0eb7=_0x36a003();while(!![]){try{const _0x6c96a4=parseInt(_0x50779e(0x134))/0x1*(-parseInt(_0x50779e(0x11c))/0x2)+parseInt(_0x50779e(0x113))/0x3*(-parseInt(_0x50779e(0x159))/0x4)+parseInt(_0x50779e(0x147))/0x5*(parseInt(_0x50779e(0x116))/0x6)+parseInt(_0x50779e(0x144))/0x7*(-parseInt(_0x50779e(0x128))/0x8)+parseInt(_0x50779e(0x11e))/0x9*(parseInt(_0x50779e(0x10e))/0xa)+parseInt(_0x50779e(0x101))/0xb*(-parseInt(_0x50779e(0x13b))/0xc)+parseInt(_0x50779e(0x13e))/0xd;if(_0x6c96a4===_0xa5c8c9)break;else _0x1a0eb7['push'](_0x1a0eb7['shift']());}catch(_0x5c2e96){_0x1a0eb7['push'](_0x1a0eb7['shift']());}}}(a19_0x373d,0x71e08));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x3a370d(0x126)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x3a370d(0x12c)),{logger}=require(a19_0x3a370d(0xfb)),{getCredentialsPath,getGridDetails}=require(a19_0x3a370d(0x131)),{scaleUpHubDeployment}=require(a19_0x3a370d(0x135)),{sendInstrumentationEvent}=require(a19_0x3a370d(0x105)),webSocketUtils=require(a19_0x3a370d(0x13d)),{createK8sClient}=require(a19_0x3a370d(0x110)),{getCloudProviderObject}=require(a19_0x3a370d(0x138));exports[a19_0x3a370d(0x106)]=a19_0x3a370d(0x156),exports['desc']=a19_0x3a370d(0x14f),exports[a19_0x3a370d(0x130)]=function(_0x25ce06){const _0x1adce0=a19_0x3a370d,_0x24a8fa={};_0x24a8fa[_0x1adce0(0x122)]=_0x1adce0(0x12e),_0x24a8fa[_0x1adce0(0x102)]='string',_0x24a8fa['KbqJz']=_0x1adce0(0x127),_0x24a8fa[_0x1adce0(0x148)]='boolean',_0x24a8fa['NIfOE']='help';const _0x431ea8=_0x24a8fa,_0x24e32a={};_0x24e32a[_0x1adce0(0xff)]=_0x431ea8[_0x1adce0(0x122)],_0x24e32a[_0x1adce0(0x13a)]=_0x431ea8[_0x1adce0(0x102)];const _0x2d48a1={};_0x2d48a1['description']=_0x431ea8[_0x1adce0(0x108)],_0x2d48a1[_0x1adce0(0x13a)]=_0x431ea8[_0x1adce0(0x148)],_0x2d48a1[_0x1adce0(0x104)]=![];const _0x22ce05={};return _0x22ce05[_0x1adce0(0x112)]=_0x24e32a,_0x22ce05[_0x1adce0(0x13f)]=_0x2d48a1,_0x25ce06['usage'](HELP_HEADER_MESSAGE['start'])[_0x1adce0(0x129)](HELP_FOOTER_MESSAGE)[_0x1adce0(0x150)](_0x22ce05)[_0x1adce0(0x10d)](_0x431ea8[_0x1adce0(0x151)])[_0x1adce0(0x14e)];},exports[a19_0x3a370d(0x115)]=async function(_0x8717a7){const _0x283dc2=a19_0x3a370d,_0x2ba906={'uoYNq':_0x283dc2(0x119),'RUWLi':function(_0x535b08){return _0x535b08();},'TWRNZ':_0x283dc2(0x125),'fXWbP':function(_0x284c5e,_0x8e336f,_0x198a0f,_0x1e1fcd,_0x1d75eb,_0x42e5da,_0x5992a2){return _0x284c5e(_0x8e336f,_0x198a0f,_0x1e1fcd,_0x1d75eb,_0x42e5da,_0x5992a2);},'iQKFf':_0x283dc2(0x10c),'KQSah':_0x283dc2(0x133),'ZPOHB':function(_0x343bb0){return _0x343bb0();},'TwXhl':_0x283dc2(0x120),'RtzRc':_0x283dc2(0x109),'PGSPM':'Adding\x20Websocket\x20listeners','EXEGa':function(_0x6ac8d9,_0x1c29bd,_0x29a4ec,_0x2687a5){return _0x6ac8d9(_0x1c29bd,_0x29a4ec,_0x2687a5);},'DJKYU':function(_0x515ec7,_0x218b6e,_0x1e08f3){return _0x515ec7(_0x218b6e,_0x1e08f3);},'mBkXV':'Grid\x20started','Wscsl':function(_0x4c9c78,_0x1f90d0){return _0x4c9c78===_0x1f90d0;},'JSOOU':_0x283dc2(0xfc),'PRVSZ':function(_0x11f887,_0x5c25d2,_0x3e5a5c,_0x4a9933,_0x54e4c7,_0x5eacd6,_0x1d2714){return _0x11f887(_0x5c25d2,_0x3e5a5c,_0x4a9933,_0x54e4c7,_0x5eacd6,_0x1d2714);},'JsRcA':_0x283dc2(0x118),'kketR':_0x283dc2(0x121),'nnmjx':_0x283dc2(0x12b)};let _0x243c36;try{!_0x8717a7[_0x283dc2(0x114)]&&(logger[_0x283dc2(0x103)](_0x2ba906[_0x283dc2(0x152)]),process[_0x283dc2(0x154)](0x1));!fs[_0x283dc2(0x14a)](_0x2ba906['RUWLi'](getCredentialsPath))&&(logger[_0x283dc2(0x103)](_0x2ba906[_0x283dc2(0x11f)]),await _0x2ba906['fXWbP'](sendInstrumentationEvent,_0x8717a7,_0x2ba906[_0x283dc2(0x100)],messageTypes['ERROR'],_0x2ba906[_0x283dc2(0x142)],null,_0x8717a7),process[_0x283dc2(0x154)](0x1));logger[_0x283dc2(0x145)]('Starting\x20grid\x20'+_0x8717a7[_0x283dc2(0x114)]),await _0x2ba906[_0x283dc2(0x137)](sendInstrumentationEvent,_0x8717a7,_0x2ba906[_0x283dc2(0x100)],messageTypes['INFO'],null,null,_0x8717a7);const _0x41e59d=JSON['parse'](fs['readFileSync'](_0x2ba906['ZPOHB'](getCredentialsPath)));global_registry[_0x283dc2(0x123)]=_0x41e59d[_0x283dc2(0x111)][_0x283dc2(0x141)],global_registry[_0x283dc2(0x12f)]=_0x41e59d[_0x283dc2(0x111)][_0x283dc2(0x10b)];const _0x29bf9f=WS_ENDPOINT['replace'](_0x2ba906[_0x283dc2(0x14b)],_0x41e59d[_0x283dc2(0x111)]['username'])[_0x283dc2(0x12a)](_0x2ba906['RtzRc'],_0x41e59d[_0x283dc2(0x111)][_0x283dc2(0x10b)]),_0xde69bf={};_0xde69bf[_0x283dc2(0x157)]=ws,_0xde69bf[_0x283dc2(0x10a)]=0x36ee80,_0x243c36=new ReconnectingWebSocket(_0x29bf9f,[],_0xde69bf),logger[_0x283dc2(0x139)](_0x2ba906[_0x283dc2(0x14c)]),webSocketUtils[_0x283dc2(0x11d)](_0x243c36,_0x8717a7['user'],_0x8717a7['password']);const [_0x264353,_0x4cf843]=await _0x2ba906[_0x283dc2(0xfd)](getGridDetails,_0x41e59d[_0x283dc2(0x111)][_0x283dc2(0x141)],_0x41e59d[_0x283dc2(0x111)][_0x283dc2(0x10b)],_0x8717a7[_0x283dc2(0x114)]);if(_0x4cf843){const _0x147761=_0x4cf843[_0x283dc2(0x145)];global_registry[_0x283dc2(0x107)]=_0x147761[_0x283dc2(0x107)],global_registry['clusterRegion']=_0x147761[_0x283dc2(0x117)],global_registry[_0x283dc2(0x149)]=_0x147761[_0x283dc2(0x149)];const _0xc3f6e2=await _0x2ba906['fXWbP'](getCloudProviderObject,_0x147761['cloudProvider'],_0x147761['clusterName'],_0x147761[_0x283dc2(0x143)],_0x243c36,webSocketUtils,_0x8717a7),[_0x47f4cd,_0x4a4fca,_0x205139,_0x4fc7d0,_0x29696b,_0xbc6dce]=await _0x2ba906[_0x283dc2(0x10f)](createK8sClient,_0xc3f6e2,_0x8717a7['skipTlsCertVerify']);await _0x2ba906['DJKYU'](scaleUpHubDeployment,_0x4a4fca,_0x147761[_0x283dc2(0x143)]),logger[_0x283dc2(0x145)](_0x2ba906[_0x283dc2(0x140)]),process[_0x283dc2(0x154)](0x0);}_0x2ba906[_0x283dc2(0xfa)](_0x264353[_0x283dc2(0x11b)],0x191)&&(logger[_0x283dc2(0x103)](_0x2ba906[_0x283dc2(0xfe)]),await _0x2ba906[_0x283dc2(0x155)](sendInstrumentationEvent,_0x8717a7,_0x2ba906[_0x283dc2(0x100)],messageTypes[_0x283dc2(0x14d)],_0x2ba906[_0x283dc2(0x12d)],null,_0x8717a7),process[_0x283dc2(0x154)](0x1)),_0x2ba906['Wscsl'](_0x264353[_0x283dc2(0x11b)],0x190)&&(logger[_0x283dc2(0x103)](JSON[_0x283dc2(0x158)](_0x264353['body'])[_0x283dc2(0x124)]),await _0x2ba906[_0x283dc2(0x155)](sendInstrumentationEvent,_0x8717a7,_0x2ba906['iQKFf'],messageTypes[_0x283dc2(0x14d)],_0x2ba906[_0x283dc2(0x153)],null,_0x8717a7),process[_0x283dc2(0x154)](0x1)),logger[_0x283dc2(0x103)](_0x283dc2(0x132)+JSON[_0x283dc2(0x13c)](_0x264353)),await _0x2ba906[_0x283dc2(0x137)](sendInstrumentationEvent,_0x8717a7,_0x2ba906[_0x283dc2(0x100)],messageTypes[_0x283dc2(0x14d)],_0x2ba906[_0x283dc2(0x11a)],_0x264353,_0x8717a7),process[_0x283dc2(0x154)](0x1);}catch(_0x295b2d){const _0x191a29=_0x283dc2(0x146)+_0x295b2d+'\x20\x0a'+JSON['stringify'](_0x295b2d[_0x283dc2(0x136)])+'\x20';logger['error'](_0x191a29),process['exit'](0x1);}};
|
package/ats/src/commands/stop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x1c8eca=a20_0x30ed;(function(_0x41e4e1,_0x4c2f28){const _0x493e00=a20_0x30ed,_0xa979d4=_0x41e4e1();while(!![]){try{const _0x1171f2=-parseInt(_0x493e00(0x196))/0x1+-parseInt(_0x493e00(0x1a7))/0x2*(parseInt(_0x493e00(0x1a6))/0x3)+parseInt(_0x493e00(0x1a4))/0x4*(parseInt(_0x493e00(0x199))/0x5)+parseInt(_0x493e00(0x19a))/0x6+parseInt(_0x493e00(0x19c))/0x7*(-parseInt(_0x493e00(0x1a8))/0x8)+-parseInt(_0x493e00(0x195))/0x9+parseInt(_0x493e00(0x1a9))/0xa;if(_0x1171f2===_0x4c2f28)break;else _0xa979d4['push'](_0xa979d4['shift']());}catch(_0x1315a7){_0xa979d4['push'](_0xa979d4['shift']());}}}(a20_0x3e09,0x6385f));function a20_0x30ed(_0x5c1406,_0x553783){const _0x3e0918=a20_0x3e09();return a20_0x30ed=function(_0x30eda7,_0x4bae97){_0x30eda7=_0x30eda7-0x194;let _0x1b0fc2=_0x3e0918[_0x30eda7];return _0x1b0fc2;},a20_0x30ed(_0x5c1406,_0x553783);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a20_0x1c8eca(0x1a1)]=a20_0x1c8eca(0x1a2),exports['desc']='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x1c8eca(0x1a5)]=function(_0x304377){const _0x41d09b=a20_0x1c8eca,_0x17e1eb={};_0x17e1eb[_0x41d09b(0x19b)]=_0x41d09b(0x19e),_0x17e1eb[_0x41d09b(0x197)]='help';const _0x43e38d=_0x17e1eb;return _0x304377[_0x41d09b(0x1a3)](HELP_HEADER_MESSAGE['stop'])[_0x41d09b(0x198)](HELP_FOOTER_MESSAGE)[_0x41d09b(0x19f)](_0x43e38d[_0x41d09b(0x19b)])[_0x41d09b(0x194)]()['recommendCommands']()[_0x41d09b(0x1a0)]()['help'](_0x43e38d[_0x41d09b(0x197)]);},exports[a20_0x1c8eca(0x19d)]=function(_0x58272a){};function a20_0x3e09(){const _0x61eea3=['2037965luaUTz','2550810SlploR','SIvyI','119BXamOI','handler','stop_commands','commandDir','strict','command','stop','usage','4ucikKK','builder','636UFVuiw','986erEafs','93784xLUnWZ','9955840CHgBBC','demandCommand','3566250tUHJOL','720608uTwRbV','LAmqp','epilogue'];a20_0x3e09=function(){return _0x61eea3;};return a20_0x3e09();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a21_0x11753e=a21_0x35b3;(function(_0x5c5136,_0x45afff){const _0x873196=a21_0x35b3,_0x3625e2=_0x5c5136();while(!![]){try{const _0x4904d5=parseInt(_0x873196(0x1b8))/0x1*(-parseInt(_0x873196(0x191))/0x2)+parseInt(_0x873196(0x199))/0x3+-parseInt(_0x873196(0x196))/0x4*(parseInt(_0x873196(0x19d))/0x5)+-parseInt(_0x873196(0x182))/0x6+-parseInt(_0x873196(0x1cc))/0x7+parseInt(_0x873196(0x18e))/0x8*(parseInt(_0x873196(0x1bb))/0x9)+parseInt(_0x873196(0x1b0))/0xa;if(_0x4904d5===_0x45afff)break;else _0x3625e2['push'](_0x3625e2['shift']());}catch(_0x4b0526){_0x3625e2['push'](_0x3625e2['shift']());}}}(a21_0x4dfc,0xabca9));function a21_0x4dfc(){const _0x3247f2=['error','clusterRegion','Stopping\x20grid\x20','DAwaa','clusterName','server-error','ufdKd','../../utils/createk8sClient','Adding\x20Websocket\x20listeners','5930806TwJepc','stop','cwBHU','../../utils/gridComponents','Grid\x20stoppped.','skip-tls-cert-verify','WebSocket','gridId','skipTlsCertVerify','../../cloudproviders/utils','../../config/logger','exit','description','stop-grid-called','QHQaO','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','unauthorised','1880916dVbFPf','../../utils/utilityMethods','HzKDs','argv','grid-id','<PasswordPlaceholder>','VScDI','name','xEiBh','iWmhx','body','YECVM','1108376OLslyn','parse','usage','1333214YzSMVu','OMroi','options','EOdlm','ERROR','1915316JtgWYJ','debug','bstackUsername','1726410rwbKjo','Stop\x20a\x20running\x20Automation\x20grid.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','region','5EQrgPL','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Browserstack','reconnecting-websocket','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','readFileSync','password','KFInJ','type','UJKQI','info','pIphc','INFO','string','stringify','../../config/constants','replace','statusCode','user','26853330niYNga','username','desc','<UsernamePlaceholder>','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','epilogue','iudFj','init-not-called','2kpBlcM','ONMCo','message','27MqSogM','aYKEr','help','../../utils/instrumentationUtils','cloudProvider','PwhtK','boolean','bstackAccesskey'];a21_0x4dfc=function(){return _0x3247f2;};return a21_0x4dfc();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x11753e(0x1a0)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x11753e(0x1ac)),{logger}=require(a21_0x11753e(0x17b)),{getCredentialsPath,getGridDetails}=require(a21_0x11753e(0x183)),{scaleDownHubDeployment}=require(a21_0x11753e(0x1cf)),{sendInstrumentationEvent}=require(a21_0x11753e(0x1be)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x11753e(0x1ca)),{getCloudProviderObject}=require(a21_0x11753e(0x1d5));function a21_0x35b3(_0xad3599,_0x2199f8){const _0x4dfc8f=a21_0x4dfc();return a21_0x35b3=function(_0x35b32d,_0x375d99){_0x35b32d=_0x35b32d-0x17b;let _0x15a5c6=_0x4dfc8f[_0x35b32d];return _0x15a5c6;},a21_0x35b3(_0xad3599,_0x2199f8);}exports['command']='grid',exports[a21_0x11753e(0x1b2)]=a21_0x11753e(0x19a),exports['builder']=function(_0x2d4a43){const _0x337d7a=a21_0x11753e,_0x24883e={};_0x24883e['YECVM']=_0x337d7a(0x1b4),_0x24883e['cwBHU']=_0x337d7a(0x1aa),_0x24883e[_0x337d7a(0x1a8)]='Skip\x20insecure\x20cert\x20verification.',_0x24883e[_0x337d7a(0x1c6)]=_0x337d7a(0x1c1),_0x24883e[_0x337d7a(0x18b)]=_0x337d7a(0x1bd);const _0x1d4465=_0x24883e,_0x17e13f={};_0x17e13f['description']=_0x1d4465[_0x337d7a(0x18d)],_0x17e13f[_0x337d7a(0x1a5)]=_0x1d4465[_0x337d7a(0x1ce)];const _0xe54560={};_0xe54560[_0x337d7a(0x17d)]=_0x1d4465[_0x337d7a(0x1a8)],_0xe54560[_0x337d7a(0x1a5)]=_0x1d4465[_0x337d7a(0x1c6)],_0xe54560['default']=![];const _0x42ea33={};return _0x42ea33[_0x337d7a(0x186)]=_0x17e13f,_0x42ea33[_0x337d7a(0x1d1)]=_0xe54560,_0x2d4a43[_0x337d7a(0x190)](HELP_HEADER_MESSAGE[_0x337d7a(0x1cd)])[_0x337d7a(0x1b5)](HELP_FOOTER_MESSAGE)[_0x337d7a(0x193)](_0x42ea33)[_0x337d7a(0x1bd)](_0x1d4465[_0x337d7a(0x18b)])[_0x337d7a(0x185)];},exports['handler']=async function(_0x11fcba){const _0x4903e7=a21_0x11753e,_0x5e6955={'ViFwA':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','ufdKd':function(_0x4a9edb){return _0x4a9edb();},'srOHm':_0x4903e7(0x180),'OMroi':function(_0x1b4523,_0x17c45b,_0x52678c,_0x31be97,_0x28dd83,_0x2f42b5,_0x576863){return _0x1b4523(_0x17c45b,_0x52678c,_0x31be97,_0x28dd83,_0x2f42b5,_0x576863);},'EOdlm':_0x4903e7(0x17e),'ONMCo':_0x4903e7(0x1b7),'iudFj':function(_0x4a8cdc){return _0x4a8cdc();},'OelCY':_0x4903e7(0x1b3),'VScDI':_0x4903e7(0x187),'aYKEr':_0x4903e7(0x1cb),'zYtcL':function(_0x3295fe,_0x516731,_0x2b989c,_0x4b7769){return _0x3295fe(_0x516731,_0x2b989c,_0x4b7769);},'KFInJ':function(_0x24c06a,_0x3ba528,_0x266a7a){return _0x24c06a(_0x3ba528,_0x266a7a);},'xEiBh':function(_0x3268be,_0x144936,_0x42e08){return _0x3268be(_0x144936,_0x42e08);},'kIOsQ':_0x4903e7(0x1d0),'QHQaO':function(_0x531585,_0x32ea8f){return _0x531585===_0x32ea8f;},'jqwxG':_0x4903e7(0x19b),'HzKDs':function(_0x5b7821,_0x1b89ae,_0x59e929,_0x968ffb,_0x3446e2,_0x2bd038,_0x48434e){return _0x5b7821(_0x1b89ae,_0x59e929,_0x968ffb,_0x3446e2,_0x2bd038,_0x48434e);},'PwhtK':_0x4903e7(0x181),'UJKQI':'invalid-grid-id','sEWgK':_0x4903e7(0x1c8)};let _0x1cf6ec;try{!_0x11fcba[_0x4903e7(0x1d3)]&&(logger['error'](_0x5e6955['ViFwA']),process[_0x4903e7(0x17c)](0x1));!fs['existsSync'](_0x5e6955[_0x4903e7(0x1c9)](getCredentialsPath))&&(logger[_0x4903e7(0x1c3)](_0x5e6955['srOHm']),await _0x5e6955[_0x4903e7(0x192)](sendInstrumentationEvent,_0x11fcba,_0x5e6955['EOdlm'],messageTypes['ERROR'],_0x5e6955[_0x4903e7(0x1b9)],null,_0x11fcba),process['exit'](0x1));logger['info'](_0x4903e7(0x1c5)+_0x11fcba[_0x4903e7(0x1d3)]),await _0x5e6955[_0x4903e7(0x192)](sendInstrumentationEvent,_0x11fcba,_0x5e6955['EOdlm'],messageTypes[_0x4903e7(0x1a9)],null,null,_0x11fcba);const _0x52ed38=JSON[_0x4903e7(0x18f)](fs[_0x4903e7(0x1a2)](_0x5e6955[_0x4903e7(0x1b6)](getCredentialsPath)));global_registry[_0x4903e7(0x198)]=_0x52ed38[_0x4903e7(0x19f)][_0x4903e7(0x1b1)],global_registry[_0x4903e7(0x1c2)]=_0x52ed38[_0x4903e7(0x19f)][_0x4903e7(0x1a3)];const _0x135375=WS_ENDPOINT[_0x4903e7(0x1ad)](_0x5e6955['OelCY'],_0x52ed38[_0x4903e7(0x19f)][_0x4903e7(0x1b1)])['replace'](_0x5e6955[_0x4903e7(0x188)],_0x52ed38[_0x4903e7(0x19f)][_0x4903e7(0x1a3)]),_0x36d5ee={};_0x36d5ee[_0x4903e7(0x1d2)]=ws,_0x36d5ee['connectionTimeout']=0x36ee80,_0x1cf6ec=new ReconnectingWebSocket(_0x135375,[],_0x36d5ee),logger[_0x4903e7(0x197)](_0x5e6955[_0x4903e7(0x1bc)]),webSocketUtils['addListeners'](_0x1cf6ec,_0x11fcba[_0x4903e7(0x1af)],_0x11fcba[_0x4903e7(0x1a3)]);const [_0x576bc5,_0x1c1d51]=await _0x5e6955['zYtcL'](getGridDetails,_0x52ed38[_0x4903e7(0x19f)][_0x4903e7(0x1b1)],_0x52ed38[_0x4903e7(0x19f)]['password'],_0x11fcba[_0x4903e7(0x1d3)]);if(_0x1c1d51){const _0x319a9e=_0x1c1d51[_0x4903e7(0x1a7)];global_registry[_0x4903e7(0x1bf)]=_0x319a9e['cloudProvider'],global_registry[_0x4903e7(0x1c4)]=_0x319a9e[_0x4903e7(0x19c)],global_registry['clusterName']=_0x319a9e[_0x4903e7(0x1c7)];const _0x180162=await _0x5e6955[_0x4903e7(0x192)](getCloudProviderObject,_0x319a9e['cloudProvider'],_0x319a9e[_0x4903e7(0x1c7)],_0x319a9e[_0x4903e7(0x189)],_0x1cf6ec,webSocketUtils,_0x11fcba),[_0x21cf5c,_0x307e62,_0x3147ac,_0x5c748a,_0x47438b,_0x17040f]=await _0x5e6955[_0x4903e7(0x1a4)](createK8sClient,_0x180162,_0x11fcba[_0x4903e7(0x1d4)]);await _0x5e6955[_0x4903e7(0x18a)](scaleDownHubDeployment,_0x307e62,_0x319a9e[_0x4903e7(0x189)]),logger['info'](_0x5e6955['kIOsQ']),process[_0x4903e7(0x17c)](0x0);}_0x5e6955[_0x4903e7(0x17f)](_0x576bc5[_0x4903e7(0x1ae)],0x191)&&(logger[_0x4903e7(0x1c3)](_0x5e6955['jqwxG']),await _0x5e6955[_0x4903e7(0x184)](sendInstrumentationEvent,_0x11fcba,_0x5e6955[_0x4903e7(0x194)],messageTypes[_0x4903e7(0x195)],_0x5e6955[_0x4903e7(0x1c0)],null,_0x11fcba),process[_0x4903e7(0x17c)](0x1)),_0x5e6955['QHQaO'](_0x576bc5[_0x4903e7(0x1ae)],0x190)&&(logger['error'](JSON['parse'](_0x576bc5[_0x4903e7(0x18c)])[_0x4903e7(0x1ba)]),await _0x5e6955[_0x4903e7(0x192)](sendInstrumentationEvent,_0x11fcba,_0x5e6955[_0x4903e7(0x194)],messageTypes[_0x4903e7(0x195)],_0x5e6955[_0x4903e7(0x1a6)],null,_0x11fcba),process[_0x4903e7(0x17c)](0x1)),logger[_0x4903e7(0x1c3)](_0x4903e7(0x19e)+JSON[_0x4903e7(0x1ab)](_0x576bc5)),await _0x5e6955[_0x4903e7(0x184)](sendInstrumentationEvent,_0x11fcba,_0x5e6955[_0x4903e7(0x194)],messageTypes[_0x4903e7(0x195)],_0x5e6955['sEWgK'],_0x576bc5,_0x11fcba),process[_0x4903e7(0x17c)](0x1);}catch(_0x36bbf1){const _0x6f5a9e=_0x4903e7(0x1a1)+_0x36bbf1+'\x20\x0a'+JSON[_0x4903e7(0x1ab)](_0x36bbf1['stack'])+'\x20';logger[_0x4903e7(0x1c3)](_0x6f5a9e),process[_0x4903e7(0x17c)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x4101a8=a22_0x5a48;(function(_0x478a32,_0x2d67e4){const _0x355f11=a22_0x5a48,_0x318250=_0x478a32();while(!![]){try{const _0x5d053f=-parseInt(_0x355f11(0x1ed))/0x1*(parseInt(_0x355f11(0x1b6))/0x2)+-parseInt(_0x355f11(0x1bb))/0x3+-parseInt(_0x355f11(0x1be))/0x4*(parseInt(_0x355f11(0x195))/0x5)+parseInt(_0x355f11(0x197))/0x6*(-parseInt(_0x355f11(0x198))/0x7)+parseInt(_0x355f11(0x182))/0x8+-parseInt(_0x355f11(0x1d6))/0x9+-parseInt(_0x355f11(0x1ec))/0xa*(-parseInt(_0x355f11(0x1b7))/0xb);if(_0x5d053f===_0x2d67e4)break;else _0x318250['push'](_0x318250['shift']());}catch(_0x14c6d5){_0x318250['push'](_0x318250['shift']());}}}(a22_0x14d4,0x335c3),require(a22_0x4101a8(0x1c3))[a22_0x4101a8(0x1df)]());let gridURL=a22_0x4101a8(0x1e5),bsApiUrl=a22_0x4101a8(0x1d9),agApiUrl=a22_0x4101a8(0x1ad);const _env=(process['env'][a22_0x4101a8(0x1d2)]||'prod')['toLowerCase']();if(_env===a22_0x4101a8(0x19d)||_env==='stag')gridURL=a22_0x4101a8(0x1a3),bsApiUrl=a22_0x4101a8(0x1de),agApiUrl='grid-api-devhst.bsstag.com';else(_env===a22_0x4101a8(0x1e9)||_env===a22_0x4101a8(0x1b2))&&(gridURL=a22_0x4101a8(0x19e),bsApiUrl=a22_0x4101a8(0x1da),agApiUrl=a22_0x4101a8(0x1b5));exports[a22_0x4101a8(0x19f)]=process[a22_0x4101a8(0x1a2)]['DASHBOARD_ENDPOINT']||gridURL,exports[a22_0x4101a8(0x186)]=process[a22_0x4101a8(0x1a2)]['BS_API_URL']||bsApiUrl,exports[a22_0x4101a8(0x193)]=process[a22_0x4101a8(0x1a2)][a22_0x4101a8(0x193)]||agApiUrl,exports['WS_ENDPOINT']=a22_0x4101a8(0x1dd)+this[a22_0x4101a8(0x193)]+a22_0x4101a8(0x1e4),exports['CP_CONFIG_FILE']=a22_0x4101a8(0x1e8),exports['IAM_USER_NAME']=a22_0x4101a8(0x1c0),exports[a22_0x4101a8(0x1c5)]=a22_0x4101a8(0x1cd),exports[a22_0x4101a8(0x1a7)]=a22_0x4101a8(0x192),exports[a22_0x4101a8(0x1db)]=a22_0x4101a8(0x18c),exports['CLUSTER_AUTOSCALER_STACK_NAME']='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x4101a8(0x184)]=a22_0x4101a8(0x18d),exports[a22_0x4101a8(0x1a8)]=a22_0x4101a8(0x1b9),exports[a22_0x4101a8(0x1b1)]=a22_0x4101a8(0x1a5),exports[a22_0x4101a8(0x1bc)]=a22_0x4101a8(0x1d3),exports[a22_0x4101a8(0x1e2)]=[this[a22_0x4101a8(0x1a7)],this[a22_0x4101a8(0x1b1)],this[a22_0x4101a8(0x1bc)]];const a22_0x24c1c5={};function a22_0x14d4(){const _0x57103a=['DEFAULT_CLUSTER_DETAILS','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','1800464ikQyTE','browserstack:managedBy','CLUSTER_HUB_HA_STACK_NAME','grid','BS_API_URL','TRIAL_GRID_URL','BrowserStack-Automate-TurboScale','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','log','resourceInfo','BSTACK-ATS-CLUSTER','BSTACK-ATS-CLUSTER-HUB-HA','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','global_registry','push','LINK_MESSAGE','aws','AG_API_URL','SUPPORTED_CLOUD_PROVIDERS','1925yKccWb','COMMON_HST_TAGS','84RIQYhv','165137DaHJow','MessageDescription','gridUrl','NULL','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','staging','grid-preprod.bsstag.com','DASHBOARD_ENDPOINT','configure','cliRunStarted','env','grid-devhst.bsstag.com','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','azure','WS_EVENTS','AWS','TURBOSCALE_DEPLOYMENT','Value','info','error','Key','grid-api.browserstack.com','CLOUD_PROVIDER','stop','start','AZURE','pre-prod','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','grid-profile','grid-api-preprod.bsstag.com','2cWuNhM','10730170qehuTo','high-scale-grid-cluster','browserstack-turboscale-grid','create','793401JnKvlB','GCP','gridProfile','860ICamLL','HELP_FOOTER_MESSAGE','BrowserStackIAMUser','root','CLI_RUN_STARTED','dotenv','HST_CLUSTER_TAGS','DEFAULT_GRID_NAME','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','[REDACTED]','BrowserStack','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','TURBOSCALE_CUSTOM_TAGS','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','messageTypes','high-scale-grid','WARNING','HELP_HEADER_MESSAGE','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','warning','BROWSERSTACK_ENV','gcp','REDACTED','INFO','2634552ZJVYRN','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','delete','api.browserstack.com','api-preprod.bsstag.com','CLUSTER_DEP_STACK_NAME','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','wss://','api-devhst.bsstag.com','config','browserstack:service','us-east-1','ALL_SUPPORTED_CLOUD_PROVIDERS','forEach','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','grid.browserstack.com','ERROR','UNKNOWN','credentials','preprod','list','split','10Ramluy','19913MuaflZ','SUCCESS'];a22_0x14d4=function(){return _0x57103a;};return a22_0x14d4();}a22_0x24c1c5[a22_0x4101a8(0x1ac)]=a22_0x4101a8(0x183),a22_0x24c1c5[a22_0x4101a8(0x1a9)]=a22_0x4101a8(0x1c8);const a22_0x31b81f={};a22_0x31b81f[a22_0x4101a8(0x1ac)]=a22_0x4101a8(0x1e0),a22_0x31b81f[a22_0x4101a8(0x1a9)]=a22_0x4101a8(0x188);const common_hst_tags_list=[a22_0x24c1c5,a22_0x31b81f];if(process[a22_0x4101a8(0x1a2)]['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x4101a8(0x1a2)][a22_0x4101a8(0x1ca)][a22_0x4101a8(0x1eb)](',');parsedTags[a22_0x4101a8(0x1e3)](_0x21031e=>{const _0x2b3919=a22_0x4101a8,_0x55acfb=_0x21031e[_0x2b3919(0x1eb)](':'),_0x209c51={};_0x209c51[_0x2b3919(0x1ac)]=_0x55acfb[0x0],_0x209c51[_0x2b3919(0x1a9)]=_0x55acfb[0x1],common_hst_tags_list[_0x2b3919(0x190)](_0x209c51);});}exports[a22_0x4101a8(0x196)]=common_hst_tags_list;const a22_0x46899a={};a22_0x46899a[a22_0x4101a8(0x183)]='BrowserStack',a22_0x46899a[a22_0x4101a8(0x1e0)]=a22_0x4101a8(0x188),exports[a22_0x4101a8(0x1c4)]=a22_0x46899a,exports[a22_0x4101a8(0x194)]=[this[a22_0x4101a8(0x1a7)]];const a22_0x42f7ed={};a22_0x42f7ed['LOG']=a22_0x4101a8(0x18a),a22_0x42f7ed['RESOURCES']=a22_0x4101a8(0x18b),a22_0x42f7ed['GRID_URL']=a22_0x4101a8(0x19a),a22_0x42f7ed[a22_0x4101a8(0x1c2)]=a22_0x4101a8(0x1a1),a22_0x42f7ed['CLI_RUN_FINISHED']='cliRunFinished',exports[a22_0x4101a8(0x1a6)]=a22_0x42f7ed,exports[a22_0x4101a8(0x18f)]={},exports[a22_0x4101a8(0x191)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';function a22_0x5a48(_0x4dc81c,_0x5db0cf){const _0x14d424=a22_0x14d4();return a22_0x5a48=function(_0x5a4820,_0x55fbf5){_0x5a4820=_0x5a4820-0x182;let _0x455b13=_0x14d424[_0x5a4820];return _0x455b13;},a22_0x5a48(_0x4dc81c,_0x5db0cf);}const a22_0x1f6a4e={};a22_0x1f6a4e[a22_0x4101a8(0x1c1)]=a22_0x4101a8(0x1a4)+this[a22_0x4101a8(0x191)],a22_0x1f6a4e['init']=a22_0x4101a8(0x1b3)+this[a22_0x4101a8(0x191)],a22_0x1f6a4e[a22_0x4101a8(0x1a0)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a22_0x4101a8(0x191)],a22_0x1f6a4e[a22_0x4101a8(0x1ba)]=a22_0x4101a8(0x1c6)+this[a22_0x4101a8(0x191)],a22_0x1f6a4e[a22_0x4101a8(0x1ea)]={},a22_0x1f6a4e[a22_0x4101a8(0x1d8)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x4101a8(0x191)],a22_0x1f6a4e['connect']='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x4101a8(0x191)],a22_0x1f6a4e[a22_0x4101a8(0x1b0)]=a22_0x4101a8(0x189)+this[a22_0x4101a8(0x191)],a22_0x1f6a4e[a22_0x4101a8(0x1af)]=a22_0x4101a8(0x1d0)+this['LINK_MESSAGE'],a22_0x1f6a4e['pre_check']=a22_0x4101a8(0x19c)+this['LINK_MESSAGE'],a22_0x1f6a4e[a22_0x4101a8(0x1ea)][a22_0x4101a8(0x1c1)]=a22_0x4101a8(0x1dc)+this[a22_0x4101a8(0x191)],a22_0x1f6a4e[a22_0x4101a8(0x1ea)][a22_0x4101a8(0x185)]=a22_0x4101a8(0x1d7)+this[a22_0x4101a8(0x191)],a22_0x1f6a4e[a22_0x4101a8(0x1ea)][a22_0x4101a8(0x1bd)]=a22_0x4101a8(0x1c9)+this['LINK_MESSAGE'],exports[a22_0x4101a8(0x1cf)]=a22_0x1f6a4e,exports[a22_0x4101a8(0x1bf)]=a22_0x4101a8(0x1cb);const a22_0x426901={};a22_0x426901[a22_0x4101a8(0x1ee)]='success',a22_0x426901[a22_0x4101a8(0x1e6)]=a22_0x4101a8(0x1ab),a22_0x426901[a22_0x4101a8(0x1d5)]=a22_0x4101a8(0x1aa),a22_0x426901[a22_0x4101a8(0x1ce)]=a22_0x4101a8(0x1d1),a22_0x426901[a22_0x4101a8(0x1e7)]='unknown',a22_0x426901[a22_0x4101a8(0x19b)]=null,exports[a22_0x4101a8(0x1cc)]=a22_0x426901,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x4101a8(0x1d4)]=a22_0x4101a8(0x1c7);const a22_0x48bcf8={};a22_0x48bcf8[a22_0x4101a8(0x1b4)]=a22_0x4101a8(0x1f0);const a22_0x20af6b={};a22_0x20af6b['pre-check']=a22_0x48bcf8,exports[a22_0x4101a8(0x199)]=a22_0x20af6b,exports[a22_0x4101a8(0x187)]=a22_0x4101a8(0x18e);const a22_0x535c2a={};a22_0x535c2a['CLUSTER']=a22_0x4101a8(0x1b8),a22_0x535c2a[a22_0x4101a8(0x1ae)]='aws',a22_0x535c2a['REGION']=a22_0x4101a8(0x1e1),exports[a22_0x4101a8(0x1ef)]=a22_0x535c2a;
|
package/ats/src/config/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a23_0x8e62(){const _0x2ed846=['log','timestamp','230OSdyNo','mkdirSync','28xoPlRY','combine','console.info','\x20-\x20','level','fileLogger','15309481cJVlgR','4FOAQAY','1801408plLNfC','5eYfYvG','transports','existsSync','Console','2361048chDIVj','join','1224228Alsewv','path','303099XQnDnf','110008eDMWpy','File','format','createLogger','debug','60903gYaSvT','printf','usage.log'];a23_0x8e62=function(){return _0x2ed846;};return a23_0x8e62();}const a23_0x5f453b=a23_0xdbf6;(function(_0x5632b1,_0x30fc18){const _0x24fb80=a23_0xdbf6,_0x44a9be=_0x5632b1();while(!![]){try{const _0xb3698=-parseInt(_0x24fb80(0xcb))/0x1*(-parseInt(_0x24fb80(0xb8))/0x2)+-parseInt(_0x24fb80(0xb7))/0x3*(-parseInt(_0x24fb80(0xc4))/0x4)+parseInt(_0x24fb80(0xaf))/0x5*(parseInt(_0x24fb80(0xb5))/0x6)+parseInt(_0x24fb80(0xae))/0x7+parseInt(_0x24fb80(0xb3))/0x8+parseInt(_0x24fb80(0xbd))/0x9*(parseInt(_0x24fb80(0xc2))/0xa)+-parseInt(_0x24fb80(0xca))/0xb;if(_0xb3698===_0x30fc18)break;else _0x44a9be['push'](_0x44a9be['shift']());}catch(_0x13a062){_0x44a9be['push'](_0x44a9be['shift']());}}}(a23_0x8e62,0x6d48e));const winston=require('winston'),fs=require('fs'),path=require(a23_0x5f453b(0xb6)),logDir=a23_0x5f453b(0xc0);!fs[a23_0x5f453b(0xb1)](logDir)&&fs[a23_0x5f453b(0xc3)](logDir);function a23_0xdbf6(_0x18336d,_0x514f44){const _0x8e629=a23_0x8e62();return a23_0xdbf6=function(_0xdbf66,_0x57336d){_0xdbf66=_0xdbf66-0xae;let _0x3cbf25=_0x8e629[_0xdbf66];return _0x3cbf25;},a23_0xdbf6(_0x18336d,_0x514f44);}const a23_0x2ce014={};a23_0x2ce014['format']='YYYY-MM-DD\x20HH:mm:ss';const a23_0x3a00cf={};a23_0x3a00cf[a23_0x5f453b(0xc8)]=!![];const a23_0x12a6ff={};a23_0x12a6ff['name']=a23_0x5f453b(0xc6),exports['logger']=new winston[(a23_0x5f453b(0xbb))]({'format':winston[a23_0x5f453b(0xba)][a23_0x5f453b(0xc5)](winston[a23_0x5f453b(0xba)][a23_0x5f453b(0xc1)](a23_0x2ce014),winston['format']['colorize'](a23_0x3a00cf),winston[a23_0x5f453b(0xba)][a23_0x5f453b(0xbe)](_0x438af4=>_0x438af4['timestamp']+a23_0x5f453b(0xc7)+_0x438af4[a23_0x5f453b(0xc8)]+':\x20'+_0x438af4['message'])),'transports':[new winston[(a23_0x5f453b(0xb0))][(a23_0x5f453b(0xb2))](a23_0x12a6ff),new winston['transports'][(a23_0x5f453b(0xb9))]({'filename':path[a23_0x5f453b(0xb4)](logDir,'events.log'),'level':a23_0x5f453b(0xbc)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x5f453b(0xb0))]['File']({'filename':path[a23_0x5f453b(0xb4)](logDir,a23_0x5f453b(0xbf)),'level':a23_0x5f453b(0xbc)})]};exports[a23_0x5f453b(0xc9)]=new winston[(a23_0x5f453b(0xbb))](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_0x364080=a24_0x596b;(function(_0x4c6b44,_0x206515){const _0x130ea5=a24_0x596b,_0x3380ea=_0x4c6b44();while(!![]){try{const _0x552b45=parseInt(_0x130ea5(0x136))/0x1+parseInt(_0x130ea5(0x133))/0x2*(-parseInt(_0x130ea5(0x139))/0x3)+-parseInt(_0x130ea5(0x13a))/0x4*(-parseInt(_0x130ea5(0x124))/0x5)+parseInt(_0x130ea5(0x12a))/0x6+-parseInt(_0x130ea5(0x126))/0x7*(-parseInt(_0x130ea5(0x129))/0x8)+-parseInt(_0x130ea5(0x130))/0x9+-parseInt(_0x130ea5(0x12c))/0xa;if(_0x552b45===_0x206515)break;else _0x3380ea['push'](_0x3380ea['shift']());}catch(_0x34095f){_0x3380ea['push'](_0x3380ea['shift']());}}}(a24_0x4152,0xb17b1));function a24_0x4152(){const _0x19f9cf=['345010DzatVI','QFigq','263186NOrIjF','exports','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','184OdvpDU','5302428EahZHR','demandCommand','1097130vUGuAG','usage','commandDir','help','4573683nVUSPp','./config/constants','env','15464zGqULn','commands','NDbDL','428381VNDFEM','root','epilogue','537pTjxJp','32qEIdZA'];a24_0x4152=function(){return _0x19f9cf;};return a24_0x4152();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x364080(0x131));function a24_0x596b(_0x241c1d,_0x3a47d6){const _0x4152a0=a24_0x4152();return a24_0x596b=function(_0x596be4,_0x267cd1){_0x596be4=_0x596be4-0x124;let _0x58cacf=_0x4152a0[_0x596be4];return _0x58cacf;},a24_0x596b(_0x241c1d,_0x3a47d6);}process[a24_0x364080(0x132)][a24_0x364080(0x128)]=0x1;function run(_0x33e773){const _0x484463=a24_0x364080,_0x3c0a6e={};_0x3c0a6e['QFigq']=_0x484463(0x134),_0x3c0a6e['NDbDL']=_0x484463(0x12f);const _0x3d5ebe=_0x3c0a6e;_0x33e773[_0x484463(0x12d)](HELP_HEADER_MESSAGE[_0x484463(0x137)])[_0x484463(0x12e)](_0x3d5ebe[_0x484463(0x125)])[_0x484463(0x12b)]()['help'](_0x3d5ebe[_0x484463(0x135)])[_0x484463(0x138)](HELP_FOOTER_MESSAGE);}module[a24_0x364080(0x127)]=run;
|