browserstack-node-sdk 1.55.6 → 1.55.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +2 -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/caCertHelper.js +1 -0
- 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 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a15_0x30c4(_0x23cced,_0x5a3bf3){const _0x5a4ed7=a15_0x5a4e();return a15_0x30c4=function(_0x30c4e8,_0x52e5ea){_0x30c4e8=_0x30c4e8-0x101;let _0x4a9fd6=_0x5a4ed7[_0x30c4e8];return _0x4a9fd6;},a15_0x30c4(_0x23cced,_0x5a3bf3);}const a15_0x1014f0=a15_0x30c4;(function(_0x1cda71,_0x2864cd){const _0x162f76=a15_0x30c4,_0x2c0e80=_0x1cda71();while(!![]){try{const _0x1d91fc=parseInt(_0x162f76(0x123))/0x1+-parseInt(_0x162f76(0x13e))/0x2*(-parseInt(_0x162f76(0x137))/0x3)+-parseInt(_0x162f76(0x151))/0x4+-parseInt(_0x162f76(0x142))/0x5+-parseInt(_0x162f76(0x10e))/0x6*(-parseInt(_0x162f76(0x134))/0x7)+parseInt(_0x162f76(0x124))/0x8*(parseInt(_0x162f76(0x117))/0x9)+-parseInt(_0x162f76(0x145))/0xa;if(_0x1d91fc===_0x2864cd)break;else _0x2c0e80['push'](_0x2c0e80['shift']());}catch(_0x84c5a5){_0x2c0e80['push'](_0x2c0e80['shift']());}}}(a15_0x5a4e,0xdfe8b));const fs=require('fs'),got=require(a15_0x1014f0(0x12f)),{table}=require(a15_0x1014f0(0x130)),{v4:uuidv4}=require(a15_0x1014f0(0x138)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x1014f0(0x10c)),{getCredentialsPath,getAuthHeader}=require(a15_0x1014f0(0x148)),{sendInstrumentationEvent}=require(a15_0x1014f0(0x139));function a15_0x5a4e(){const _0xc90a5a=['vaULw','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','existsSync','status','1331402ZSGrqT','GET','requestId','bstackAccesskey','2840685QLWyBt','WjNqe','stringify','16234880lqixDV','cluster-name','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/utilityMethods','oAoHn','grids','zQufy','forEach','options','type','bahDb','FFJzD','2097572hfYzdE','EfuKQ','parse','eLSyh','desc','password','MXQuP','XxWut','unauthorised','jSRZs','SjwXM','TaFwq','readFileSync','stack','list','handler','nKqIT','builder','ERROR','../../config/constants','running','6SNUwyR','DUMYb','grid-name','push','oPXbC','boolean','XDfcZ','Failed\x20to\x20list\x20resources!\x20Error:\x20','EokTl','22167KAbbDl','username','exit','epilogue','lAaJK','name','Browserstack','nRLUC','JrLge','help','Lcgpw','log','794903wWMPyx','5352ypIAPs','rfUcp','FvStj','bstackUsername','server-error','queued','error','https://','statusCode','VTnUl','INFO','got','table','list-grids-called','init-not-called','argv','3673586PjWCAd','grid-id','FrKTi','3AtJBjo','uuid','../../utils/instrumentationUtils'];a15_0x5a4e=function(){return _0xc90a5a;};return a15_0x5a4e();}exports['command']=a15_0x1014f0(0x14a),exports[a15_0x1014f0(0x155)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x1014f0(0x10a)]=function(_0x21c06b){const _0x3f0c10=a15_0x1014f0,_0x52df89={};_0x52df89['DUMYb']='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x52df89[_0x3f0c10(0x103)]=_0x3f0c10(0x113),_0x52df89[_0x3f0c10(0x125)]=_0x3f0c10(0x120);const _0x253471=_0x52df89,_0x4ac934={};_0x4ac934['description']=_0x253471[_0x3f0c10(0x10f)],_0x4ac934[_0x3f0c10(0x14e)]=_0x253471[_0x3f0c10(0x103)];const _0x402564={};return _0x402564['all-grids']=_0x4ac934,_0x21c06b['usage'](HELP_HEADER_MESSAGE[_0x3f0c10(0x107)]['grid'])[_0x3f0c10(0x11a)](HELP_FOOTER_MESSAGE)[_0x3f0c10(0x14d)](_0x402564)[_0x3f0c10(0x120)](_0x253471[_0x3f0c10(0x125)])[_0x3f0c10(0x133)];},exports[a15_0x1014f0(0x108)]=async function(_0x3c1967){const _0x4aa044=a15_0x1014f0,_0x672037={'XxWut':function(_0x2d1e3f){return _0x2d1e3f();},'QxTRT':_0x4aa044(0x147),'FFJzD':function(_0x599950,_0x5479f6,_0x300665,_0x45e266,_0x268dac,_0x118995,_0x3cbed5){return _0x599950(_0x5479f6,_0x300665,_0x45e266,_0x268dac,_0x118995,_0x3cbed5);},'VTnUl':_0x4aa044(0x131),'nKqIT':_0x4aa044(0x132),'vaULw':_0x4aa044(0x13f),'bahDb':function(_0x5ef141,_0x3ce4a1,_0xf56461){return _0x5ef141(_0x3ce4a1,_0xf56461);},'oPXbC':function(_0x5d2c8d,_0x55a577,_0x3dd058,_0x469d38,_0x1357fb,_0x2a4999,_0x3a6f7c){return _0x5d2c8d(_0x55a577,_0x3dd058,_0x469d38,_0x1357fb,_0x2a4999,_0x3a6f7c);},'nRLUC':function(_0x49e3ea,_0x1fded4,_0x28151b){return _0x49e3ea(_0x1fded4,_0x28151b);},'JrLge':function(_0xe8c2b4,_0x1cf65d){return _0xe8c2b4!==_0x1cf65d;},'WjNqe':function(_0x4042e1,_0x382a16){return _0x4042e1===_0x382a16;},'XDfcZ':'\x0aFound\x20the\x20following\x20grids:\x0a','MXQuP':_0x4aa044(0x135),'TaFwq':_0x4aa044(0x110),'Lcgpw':'status','EfuKQ':_0x4aa044(0x10d),'FrKTi':_0x4aa044(0x129),'eLSyh':_0x4aa044(0x146),'FvStj':function(_0x4bc0aa,_0x1f1883){return _0x4bc0aa(_0x1f1883);},'EokTl':function(_0x50d67d,_0xec5c70){return _0x50d67d===_0xec5c70;},'lAaJK':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','zQufy':_0x4aa044(0x101),'jSRZs':_0x4aa044(0x128),'oAoHn':function(_0x556d5c,_0x4777ec,_0x5c24f2,_0x281483,_0x2a1a5b,_0x5972a3,_0x37be47){return _0x556d5c(_0x4777ec,_0x5c24f2,_0x281483,_0x2a1a5b,_0x5972a3,_0x37be47);},'EWldX':'unknown-error'};try{global_registry[_0x4aa044(0x140)]=_0x672037[_0x4aa044(0x158)](uuidv4);!fs[_0x4aa044(0x13c)](_0x672037[_0x4aa044(0x158)](getCredentialsPath))&&(console['error'](_0x672037['QxTRT']),await _0x672037[_0x4aa044(0x150)](sendInstrumentationEvent,_0x3c1967,_0x672037[_0x4aa044(0x12d)],messageTypes[_0x4aa044(0x10b)],_0x672037[_0x4aa044(0x109)],null,_0x3c1967),process[_0x4aa044(0x119)](0x1));const _0x50bf79=JSON[_0x4aa044(0x153)](fs[_0x4aa044(0x105)](_0x672037[_0x4aa044(0x158)](getCredentialsPath)));let _0x533471='https://'+AG_API_URL+'/packages/cli/get-grids';_0x3c1967['allGrids']&&(_0x533471=_0x4aa044(0x12b)+AG_API_URL+'/packages/cli/get-all-grids');const _0x5d0990={'method':_0x672037[_0x4aa044(0x13a)],'headers':_0x672037[_0x4aa044(0x14f)](getAuthHeader,_0x50bf79[_0x4aa044(0x11d)]['username'],_0x50bf79['Browserstack']['password']),'throwHttpErrors':![]};global_registry[_0x4aa044(0x127)]=_0x50bf79[_0x4aa044(0x11d)][_0x4aa044(0x118)],global_registry[_0x4aa044(0x141)]=_0x50bf79[_0x4aa044(0x11d)][_0x4aa044(0x156)],_0x672037[_0x4aa044(0x112)](sendInstrumentationEvent,_0x3c1967,_0x672037[_0x4aa044(0x12d)],messageTypes[_0x4aa044(0x12e)],null,null,_0x3c1967);const _0x5342ad=await _0x672037[_0x4aa044(0x11e)](got,_0x533471,_0x5d0990);if(_0x672037[_0x4aa044(0x11f)](_0x5342ad,null)&&_0x672037['JrLge'](_0x5342ad,undefined)&&_0x672037[_0x4aa044(0x143)](_0x5342ad[_0x4aa044(0x12c)],0xc8)){const _0x54981e=JSON[_0x4aa044(0x153)](_0x5342ad['body']);console[_0x4aa044(0x122)](_0x672037[_0x4aa044(0x114)]);const _0x497646=[];_0x497646[_0x4aa044(0x111)]([_0x672037[_0x4aa044(0x157)],_0x672037[_0x4aa044(0x104)],_0x672037[_0x4aa044(0x121)],_0x672037[_0x4aa044(0x152)],_0x672037[_0x4aa044(0x136)],_0x672037[_0x4aa044(0x154)]]),_0x54981e[_0x4aa044(0x14c)](_0x4d9182=>{const _0x16b637=_0x4aa044;_0x497646[_0x16b637(0x111)]([_0x4d9182['id'],_0x4d9182[_0x16b637(0x11c)],_0x4d9182[_0x16b637(0x13d)],_0x4d9182[_0x16b637(0x10d)],_0x4d9182[_0x16b637(0x129)],_0x4d9182['clusterName']]);}),console[_0x4aa044(0x122)](_0x672037[_0x4aa044(0x126)](table,_0x497646)),process[_0x4aa044(0x119)](0x0);}_0x672037[_0x4aa044(0x116)](_0x5342ad[_0x4aa044(0x12c)],0x191)&&(console['error'](_0x672037[_0x4aa044(0x11b)]),await _0x672037[_0x4aa044(0x150)](sendInstrumentationEvent,_0x3c1967,_0x672037[_0x4aa044(0x12d)],messageTypes[_0x4aa044(0x10b)],_0x672037[_0x4aa044(0x14b)],null,_0x3c1967),process[_0x4aa044(0x119)](0x1)),console[_0x4aa044(0x12a)](_0x4aa044(0x13b)+JSON[_0x4aa044(0x144)](_0x5342ad)),await _0x672037[_0x4aa044(0x150)](sendInstrumentationEvent,_0x3c1967,_0x672037[_0x4aa044(0x12d)],messageTypes[_0x4aa044(0x10b)],_0x672037[_0x4aa044(0x102)],_0x5342ad,_0x3c1967),process[_0x4aa044(0x119)](0x1);}catch(_0x3bb598){console[_0x4aa044(0x12a)](_0x4aa044(0x115)+_0x3bb598[_0x4aa044(0x106)]),await _0x672037[_0x4aa044(0x149)](sendInstrumentationEvent,_0x3c1967,_0x672037['VTnUl'],messageTypes[_0x4aa044(0x10b)],_0x672037['EWldX'],_0x3bb598,_0x3c1967),process['exit'](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a16_0x496332=a16_0x2b3d;(function(_0x1a460c,_0x53c1a1){const _0x2e4e81=a16_0x2b3d,_0x42027e=_0x1a460c();while(!![]){try{const _0x208c08=parseInt(_0x2e4e81(0x1b0))/0x1+-parseInt(_0x2e4e81(0x1aa))/0x2*(parseInt(_0x2e4e81(0x1b6))/0x3)+parseInt(_0x2e4e81(0x1bb))/0x4*(parseInt(_0x2e4e81(0x1b9))/0x5)+parseInt(_0x2e4e81(0x1bd))/0x6*(-parseInt(_0x2e4e81(0x1b8))/0x7)+-parseInt(_0x2e4e81(0x1b7))/0x8+parseInt(_0x2e4e81(0x1ba))/0x9*(-parseInt(_0x2e4e81(0x1bf))/0xa)+parseInt(_0x2e4e81(0x1bc))/0xb;if(_0x208c08===_0x53c1a1)break;else _0x42027e['push'](_0x42027e['shift']());}catch(_0x4be18a){_0x42027e['push'](_0x42027e['shift']());}}}(a16_0x28b2,0x66205));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a16_0x28b2(){const _0x8a502e=['CZCRc','620192aFNGSi','demandCommand','builder','command','handler','help','9gvDjAY','6119448YROCdF','56YvJFPB','1455tgepuQ','54AFhUHa','3420WDSwEi','19557846WRlTKQ','275304gWWtbC','pre_check','818460XfjiQJ','strict','usage','recommendCommands','desc','403730xglviX','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','pre-check','epilogue','SfIUO'];a16_0x28b2=function(){return _0x8a502e;};return a16_0x28b2();}function a16_0x2b3d(_0x5c5666,_0x148a73){const _0x28b286=a16_0x28b2();return a16_0x2b3d=function(_0x2b3d77,_0xbc0cde){_0x2b3d77=_0x2b3d77-0x1a6;let _0x191940=_0x28b286[_0x2b3d77];return _0x191940;},a16_0x2b3d(_0x5c5666,_0x148a73);}exports[a16_0x496332(0x1b3)]=a16_0x496332(0x1ac),exports[a16_0x496332(0x1a9)]=a16_0x496332(0x1ab),exports[a16_0x496332(0x1b2)]=function(_0x51a21f){const _0x3a3bb5=a16_0x496332,_0x1472e7={};_0x1472e7['CZCRc']='precheck_commands',_0x1472e7[_0x3a3bb5(0x1ae)]=_0x3a3bb5(0x1b5);const _0x49c8a4=_0x1472e7;return _0x51a21f[_0x3a3bb5(0x1a7)](HELP_HEADER_MESSAGE[_0x3a3bb5(0x1be)])[_0x3a3bb5(0x1ad)](HELP_FOOTER_MESSAGE)['commandDir'](_0x49c8a4[_0x3a3bb5(0x1af)])[_0x3a3bb5(0x1b1)]()[_0x3a3bb5(0x1a8)]()[_0x3a3bb5(0x1a6)]()[_0x3a3bb5(0x1b5)](_0x49c8a4[_0x3a3bb5(0x1ae)]);},exports[a16_0x496332(0x1b4)]=function(_0x4d6ca1){};
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const a17_0x1e0cf5=a17_0x1e96;(function(_0x2f796c,_0x5d34ac){const _0x145223=a17_0x1e96,_0x3ec915=_0x2f796c();while(!![]){try{const _0x24ae1f=-parseInt(_0x145223(0x208))/0x1+parseInt(_0x145223(0x215))/0x2*(parseInt(_0x145223(0x19b))/0x3)+parseInt(_0x145223(0x12d))/0x4+parseInt(_0x145223(0x124))/0x5*(parseInt(_0x145223(0x1e2))/0x6)+-parseInt(_0x145223(0x1d8))/0x7+parseInt(_0x145223(0x17c))/0x8*(parseInt(_0x145223(0x1ec))/0x9)+parseInt(_0x145223(0x13e))/0xa*(-parseInt(_0x145223(0x180))/0xb);if(_0x24ae1f===_0x5d34ac)break;else _0x3ec915['push'](_0x3ec915['shift']());}catch(_0x826d1d){_0x3ec915['push'](_0x3ec915['shift']());}}}(a17_0x3608,0x34345));const fs=require('fs'),ws=require('ws'),got=require(a17_0x1e0cf5(0x15f)),{v4:uuidv4}=require(a17_0x1e0cf5(0x1d4)),ReconnectingWebSocket=require(a17_0x1e0cf5(0x203)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x1e0cf5(0x15e)),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x1e0cf5(0x1b6)),{getCloudProviderObjectWithOutInit}=require(a17_0x1e0cf5(0x1d2)),webSocketUtils=require(a17_0x1e0cf5(0x161)),{sendInstrumentationEvent}=require(a17_0x1e0cf5(0x14d));exports['command']=a17_0x1e0cf5(0x1e0),exports[a17_0x1e0cf5(0x20e)]=a17_0x1e0cf5(0x1cd),exports[a17_0x1e0cf5(0x147)]=function(_0x2117c6){const _0x153631=a17_0x1e0cf5,_0x314f97={};_0x314f97[_0x153631(0x16b)]=_0x153631(0x11b),_0x314f97[_0x153631(0x14f)]=_0x153631(0x1be),_0x314f97[_0x153631(0x210)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x314f97['OAhKm']=_0x153631(0x20d),_0x314f97[_0x153631(0x131)]=_0x153631(0x126),_0x314f97[_0x153631(0x20f)]=_0x153631(0x143);const _0xb74f4d=_0x314f97,_0x50e2d5={};_0x50e2d5[_0x153631(0x1f1)]=_0xb74f4d['DOtZZ'],_0x50e2d5['type']=_0xb74f4d[_0x153631(0x14f)];const _0x13a30d={};_0x13a30d[_0x153631(0x1f1)]=_0xb74f4d[_0x153631(0x210)],_0x13a30d[_0x153631(0x21d)]=_0xb74f4d[_0x153631(0x14f)];const _0x496ba7={};_0x496ba7[_0x153631(0x1f1)]=_0xb74f4d['OAhKm'],_0x496ba7[_0x153631(0x21d)]=_0xb74f4d[_0x153631(0x14f)];const _0xc88795={};_0xc88795['description']=_0xb74f4d[_0x153631(0x131)],_0xc88795['type']=_0xb74f4d[_0x153631(0x14f)];const _0x2e0afc={};return _0x2e0afc[_0x153631(0x1c7)]=_0x50e2d5,_0x2e0afc[_0x153631(0x13b)]=_0x13a30d,_0x2e0afc['region']=_0x496ba7,_0x2e0afc[_0x153631(0x1f9)]=_0xc88795,_0x2117c6[_0x153631(0x14e)](HELP_HEADER_MESSAGE[_0x153631(0x1c2)])[_0x153631(0x1e3)](HELP_FOOTER_MESSAGE)[_0x153631(0x146)](_0x2e0afc)[_0x153631(0x143)](_0xb74f4d[_0x153631(0x20f)])[_0x153631(0x16d)];};async function inputValidation(_0xf2b664,_0x22c03e){const _0x54c0e6=a17_0x1e0cf5,_0x2d05b9={'FqrRW':'cloud-provider','qNGFT':_0x54c0e6(0x1c4),'QzDqO':_0x54c0e6(0x11b),'YgNsE':'string','KgXFg':_0x54c0e6(0x1f2),'HpYvI':_0x54c0e6(0x20d),'MjdJE':_0x54c0e6(0x126),'qNsEd':_0x54c0e6(0x143),'hnzFL':'region','PypYc':_0x54c0e6(0x1e6),'sfnNc':_0x54c0e6(0x192),'xwpTm':_0x54c0e6(0x19d),'RjRNs':function(_0x1e2ce8,_0x47b693){return _0x1e2ce8+_0x47b693;},'TgRmD':_0x54c0e6(0x174),'VqklK':_0x54c0e6(0x1ca),'RfGnQ':function(_0x4a5ce4,_0x1df345){return _0x4a5ce4||_0x1df345;},'ibdXq':_0x54c0e6(0x1c7),'TTUCk':_0x54c0e6(0x123),'lrecg':'will\x20be\x20created','emIci':function(_0x59a8c5,_0x24ce4f){return _0x59a8c5!==_0x24ce4f;},'XJOOU':'EmTEK','NTSex':function(_0xe939bd,_0x39c244){return _0xe939bd!==_0x39c244;},'KFDTJ':_0x54c0e6(0x1af),'tLfob':function(_0x2611be,_0x18d3f7){return _0x2611be===_0x18d3f7;},'uxzMp':_0x54c0e6(0x1db),'TXigO':_0x54c0e6(0x1bc),'tXsdF':'uXmsn','kHaeH':_0x54c0e6(0x177),'lAuOK':function(_0x9d040b,_0x130150){return _0x9d040b===_0x130150;},'tLbLN':'OavZH','WeKxg':_0x54c0e6(0x135),'DXIIq':function(_0x1a02fa,_0x4e786f){return _0x1a02fa>_0x4e786f;},'XDWmA':_0x54c0e6(0x1ea),'mxhrJ':function(_0x2e5cff,_0x346296,_0x3d5d78,_0x1cdfe7,_0x11230f,_0x1d6f32,_0x39a813,_0x1697d8){return _0x2e5cff(_0x346296,_0x3d5d78,_0x1cdfe7,_0x11230f,_0x1d6f32,_0x39a813,_0x1697d8);},'NxTxF':_0x54c0e6(0x120),'TOxCP':_0x54c0e6(0x1a4),'LJLML':_0x54c0e6(0x1c5),'sTAst':_0x54c0e6(0x16c),'qkwAK':function(_0x2b4832,_0x206e8f,_0x37f5a3,_0x5efae8,_0x1a7e5e,_0x389236,_0x351aab,_0x5ea371){return _0x2b4832(_0x206e8f,_0x37f5a3,_0x5efae8,_0x1a7e5e,_0x389236,_0x351aab,_0x5ea371);},'tKjhA':_0x54c0e6(0x136),'EeCER':function(_0x47a493,_0x5cd333){return _0x47a493===_0x5cd333;},'Mupzp':_0x54c0e6(0x1eb),'uredf':_0x54c0e6(0x1d1),'NbkbF':_0x54c0e6(0x20b),'hcGWg':_0x54c0e6(0x17a),'HlBLh':_0x54c0e6(0x19f),'NkLjG':function(_0x591e97,_0x27afea,_0x514015){return _0x591e97(_0x27afea,_0x514015);},'vxmiJ':function(_0x57547d,_0x396957,_0x29a315,_0x4e7b94,_0x1dc449,_0x1adc9c){return _0x57547d(_0x396957,_0x29a315,_0x4e7b94,_0x1dc449,_0x1adc9c);},'IKIHc':_0x54c0e6(0x1b2),'sfdHJ':_0x54c0e6(0x1f9),'ArsUP':'rZXyk','DrCCw':function(_0x38930a,_0x1fc894){return _0x38930a(_0x1fc894);},'pDUfk':function(_0x39e4c3,_0x44e777){return _0x39e4c3===_0x44e777;},'qkqan':_0x54c0e6(0x193),'StLnQ':'MZOcY','NiFod':_0x54c0e6(0x209),'qJXUj':function(_0x1a8322,_0x402651){return _0x1a8322!==_0x402651;},'iIRal':_0x54c0e6(0x1f3),'afVzf':function(_0x3ec623,_0x1b9b93){return _0x3ec623===_0x1b9b93;},'ThmhO':'cqQtI','gbpTL':'MHwPd','RdGxI':'Grid\x20profile\x20fetched\x20for\x20pre-check','joKaR':_0x54c0e6(0x11e),'jpZsg':function(_0x31ed70,_0x6523e6){return _0x31ed70!==_0x6523e6;},'uMqsD':_0x54c0e6(0x1fd),'Niiur':_0x54c0e6(0x213)};let _0x478d2e;try{if(_0x2d05b9[_0x54c0e6(0x128)](_0x2d05b9['XJOOU'],_0x2d05b9[_0x54c0e6(0x171)]))_0x1d226c[_0x54c0e6(0x1b4)](0x1);else{if(_0xf2b664[_0x54c0e6(0x1fe)]||_0xf2b664[_0x54c0e6(0x1ac)]||_0xf2b664[_0x54c0e6(0x1ae)]){if(_0x2d05b9[_0x54c0e6(0x18c)](_0x2d05b9[_0x54c0e6(0x178)],_0x2d05b9[_0x54c0e6(0x178)]))_0x5d1b54[_0x54c0e6(0x12b)](_0x2d05b9[_0x54c0e6(0x165)]);else{const _0xe48094=[];!_0xf2b664['clusterName']&&(_0x2d05b9[_0x54c0e6(0x1d6)](_0x2d05b9[_0x54c0e6(0x13a)],_0x2d05b9[_0x54c0e6(0x134)])?(_0xdb8a7f[_0x54c0e6(0x19d)](_0x2d05b9[_0x54c0e6(0x14c)]),_0x2a73f8[_0x54c0e6(0x1b4)](0x1)):_0xe48094[_0x54c0e6(0x12b)](_0x2d05b9[_0x54c0e6(0x20c)]));;if(!_0xf2b664[_0x54c0e6(0x1ac)]){if(_0x2d05b9[_0x54c0e6(0x18c)](_0x2d05b9[_0x54c0e6(0x1ba)],_0x2d05b9[_0x54c0e6(0x158)]))_0xe48094[_0x54c0e6(0x12b)](_0x2d05b9['FqrRW']);else{const _0x460293={};_0x460293[_0x54c0e6(0x1f1)]=_0x2d05b9['QzDqO'],_0x460293[_0x54c0e6(0x21d)]=_0x2d05b9[_0x54c0e6(0x137)];const _0x4919d2={};_0x4919d2[_0x54c0e6(0x1f1)]=_0x2d05b9[_0x54c0e6(0x139)],_0x4919d2[_0x54c0e6(0x21d)]=_0x2d05b9[_0x54c0e6(0x137)];const _0x3990ad={};_0x3990ad['description']=_0x2d05b9[_0x54c0e6(0x182)],_0x3990ad[_0x54c0e6(0x21d)]=_0x2d05b9['YgNsE'];const _0xe63432={};_0xe63432[_0x54c0e6(0x1f1)]=_0x2d05b9[_0x54c0e6(0x169)],_0xe63432[_0x54c0e6(0x21d)]=_0x2d05b9['YgNsE'];const _0x4ca7fd={};return _0x4ca7fd[_0x54c0e6(0x1c7)]=_0x460293,_0x4ca7fd[_0x54c0e6(0x13b)]=_0x4919d2,_0x4ca7fd[_0x54c0e6(0x1ae)]=_0x3990ad,_0x4ca7fd[_0x54c0e6(0x1f9)]=_0xe63432,_0x3805c8['usage'](_0x32133a['pre_check'])[_0x54c0e6(0x1e3)](_0x2ddc7a)[_0x54c0e6(0x146)](_0x4ca7fd)[_0x54c0e6(0x143)](_0x2d05b9['qNsEd'])[_0x54c0e6(0x16d)];}};!_0xf2b664[_0x54c0e6(0x1ae)]&&(_0x2d05b9[_0x54c0e6(0x18d)](_0x2d05b9[_0x54c0e6(0x121)],_0x2d05b9['WeKxg'])?_0x98052d[_0x54c0e6(0x12b)](_0x2d05b9[_0x54c0e6(0x151)]):_0xe48094[_0x54c0e6(0x12b)](_0x2d05b9[_0x54c0e6(0x151)]));;_0x2d05b9[_0x54c0e6(0x200)](_0xe48094[_0x54c0e6(0x1cf)],0x0)&&(_0x2d05b9[_0x54c0e6(0x18d)](_0x2d05b9[_0x54c0e6(0x21a)],_0x2d05b9[_0x54c0e6(0x21a)])?(_0x478d2e='Missing\x20required\x20arguments:\x20'+_0xe48094[_0x54c0e6(0x186)](',\x20')+_0x54c0e6(0x15a),await _0x2d05b9['mxhrJ'](reportToGalactusAndSendToEDS,_0xf2b664,_0x22c03e,_0x478d2e,messageTypes['ERROR'],_0x2d05b9['NxTxF'],_0x2d05b9[_0x54c0e6(0x1e8)],_0x2d05b9['xwpTm']),logger[_0x54c0e6(0x19d)](_0x478d2e),process['exit'](0x1)):(_0x4b8f86[_0x54c0e6(0x167)]('['+_0x13ccdc+']\x20status\x20:\x20'+_0x1c2f38[_0x54c0e6(0x1d9)]+_0x54c0e6(0x175)+_0xb543ba['data']+'\x20error\x20:\x20'+_0x38ca45[_0x54c0e6(0x19d)]),_0xf9bfa1[_0x54c0e6(0x19d)]&&_0x2ca52a[_0x54c0e6(0x19d)](_0x54c0e6(0x153)+_0x3ea564[_0x54c0e6(0x19d)]['stack']))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x54c0e6(0x13f)](_0xf2b664['cloudProvider'][_0x54c0e6(0x16a)]())&&(_0x2d05b9[_0x54c0e6(0x1d6)](_0x2d05b9['LJLML'],_0x2d05b9[_0x54c0e6(0x202)])?(_0x478d2e=_0x2d05b9[_0x54c0e6(0x20a)],await _0x2d05b9['qkwAK'](reportToGalactusAndSendToEDS,_0xf2b664,_0x22c03e,_0x478d2e,messageTypes[_0x54c0e6(0x170)],_0x2d05b9[_0x54c0e6(0x14a)],_0x2d05b9[_0x54c0e6(0x17b)],_0x2d05b9['xwpTm']),logger[_0x54c0e6(0x19d)](_0x478d2e),!_0xf2b664['cloudProvider']&&(_0x2d05b9['EeCER'](_0x2d05b9[_0x54c0e6(0x1aa)],_0x2d05b9[_0x54c0e6(0x1f5)])?_0x33a144+=_0x54c0e6(0x17d)+_0x288249['clusterName']+_0x54c0e6(0x17f):(logger[_0x54c0e6(0x167)](_0x54c0e6(0x159)+DEFAULT_CLUSTER_DETAILS[_0x54c0e6(0x1a9)]+'\x20'),_0xf2b664[_0x54c0e6(0x1ac)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']))):(_0x4864b9+=_0x2d05b9[_0x54c0e6(0x1e4)],_0x35aa7a+='\x20\x20Message:\x20'+(_0x998db9[_0x54c0e6(0x163)]||_0x2d05b9[_0x54c0e6(0x15d)])+'\x0a',_0x2d0ca9+='\x20\x20Code:\x20'+(_0x27cfad[_0x54c0e6(0x1a2)]||_0x2d05b9[_0x54c0e6(0x15d)])+'\x0a',_0x5e2ab3+=_0x54c0e6(0x176)+(_0x18678f[_0x54c0e6(0x144)]||_0x2d05b9[_0x54c0e6(0x15d)])+'\x0a')),global_registry[_0x54c0e6(0x1fe)]=_0xf2b664[_0x54c0e6(0x1fe)],global_registry['cloudProvider']=_0xf2b664[_0x54c0e6(0x1ac)],global_registry[_0x54c0e6(0x1fc)]=_0xf2b664['region'];}}else{if(_0xf2b664[_0x54c0e6(0x1f6)]){if(_0x2d05b9[_0x54c0e6(0x1bf)](_0x2d05b9[_0x54c0e6(0x207)],_0x2d05b9[_0x54c0e6(0x127)]))_0x8c72fd[_0x54c0e6(0x167)](_0x54c0e6(0x159)+_0x232649[_0x54c0e6(0x1a9)]+'\x20'),_0x1ee5ee[_0x54c0e6(0x1ac)]=_0x406fd0['CLOUD_PROVIDER'];else{global_registry[_0x54c0e6(0x1f6)]=_0xf2b664['gridProfile'],logger['debug']('grid\x20profile\x20flow\x20'+_0xf2b664[_0x54c0e6(0x1f6)]);const _0x3e89e6=_0x54c0e6(0x156)+AG_API_URL+_0x54c0e6(0x160),_0x455bfd={};_0x455bfd[_0x54c0e6(0x141)]=_0x2d05b9[_0x54c0e6(0x13c)],_0x455bfd['headers']=global_registry[_0x54c0e6(0x199)],_0x455bfd[_0x54c0e6(0x211)]=![];const _0x36b6e4=_0x455bfd,_0x36613d=await _0x2d05b9[_0x54c0e6(0x1cc)](got,_0x3e89e6,_0x36b6e4),_0x444e4d=await _0x2d05b9['vxmiJ'](responseValidation,_0x36613d,_0x2d05b9[_0x54c0e6(0x1ff)],_0x2d05b9[_0x54c0e6(0x1a6)],_0xf2b664,_0x22c03e);let _0x2f24e0={};if(_0x2d05b9[_0x54c0e6(0x18d)](_0x444e4d,0xc8)){if(_0x2d05b9[_0x54c0e6(0x1d6)](_0x2d05b9[_0x54c0e6(0x1ce)],_0x2d05b9[_0x54c0e6(0x1ce)])){const _0x528267=JSON['parse'](_0x36613d[_0x54c0e6(0x12a)]),_0x45c80e=_0x528267[_0x54c0e6(0x15c)](_0x13f57c=>_0x13f57c[_0x54c0e6(0x1a5)]===_0xf2b664['gridProfile'])||null;if(_0x2d05b9[_0x54c0e6(0x194)](isUndefined,_0x45c80e)){if(_0x2d05b9[_0x54c0e6(0x17e)](_0x2d05b9[_0x54c0e6(0x1de)],_0x2d05b9['StLnQ'])){const _0x140993={};_0x140993['type']=_0x1d01b9['LOG'],_0x140993[_0x54c0e6(0x163)]=_0x144a9f,_0x1d67fe[_0x54c0e6(0x152)](_0x3fd510,_0x140993,_0x2d05b9['xwpTm'],!![]);}else _0x478d2e='Invalid\x20input.\x20grid\x20profiles:\x20'+_0xf2b664[_0x54c0e6(0x1f6)]+_0x54c0e6(0x1f8),await _0x2d05b9[_0x54c0e6(0x1b3)](reportToGalactusAndSendToEDS,_0xf2b664,_0x22c03e,_0x478d2e,messageTypes[_0x54c0e6(0x170)],_0x2d05b9[_0x54c0e6(0x14a)],_0x2d05b9['NiFod'],_0x2d05b9[_0x54c0e6(0x216)]),logger[_0x54c0e6(0x19d)](_0x478d2e),process[_0x54c0e6(0x1b4)](0x1);}else{if(_0x2d05b9['qJXUj'](_0x2d05b9['iIRal'],_0x2d05b9[_0x54c0e6(0x21c)])){const {header:_0x2afd30,response:_0x412bc4}=_0x5b8b54,{status:_0x4e4fa6,data:_0x553646,error:_0x9877c1}=_0x412bc4;_0x2f6707+=_0x2afd30+'\x20#'+_0x2d05b9[_0x54c0e6(0x1c3)](_0xed6b53,0x1)+'\x0a',_0x55ac1a+=_0x54c0e6(0x217)+(_0x4e4fa6?_0x2d05b9['TgRmD']:_0x2d05b9['VqklK'])+'\x0a',_0x3db9cc+=_0x54c0e6(0x191)+_0x2d05b9[_0x54c0e6(0x196)](_0x553646,_0x2d05b9[_0x54c0e6(0x15d)])+'\x0a',_0x9877c1&&(_0x436344+=_0x2d05b9[_0x54c0e6(0x1e4)],_0x2f0e0e+=_0x54c0e6(0x197)+(_0x9877c1[_0x54c0e6(0x163)]||_0x2d05b9['sfnNc'])+'\x0a',_0x35f396+=_0x54c0e6(0x195)+(_0x9877c1['code']||_0x2d05b9[_0x54c0e6(0x15d)])+'\x0a',_0x3630a5+=_0x54c0e6(0x176)+(_0x9877c1[_0x54c0e6(0x144)]||_0x2d05b9['sfnNc'])+'\x0a'),_0x5cc617+='\x0a\x0a';}else _0x2f24e0=_0x45c80e;}}else _0xc416c0['push'](_0x2d05b9[_0x54c0e6(0x20c)]);}else _0x2d05b9[_0x54c0e6(0x1ad)](_0x2d05b9['ThmhO'],_0x2d05b9[_0x54c0e6(0x1d3)])?_0x2131b9=_0x1b809a:process[_0x54c0e6(0x1b4)](0x1);const _0x33cfe5={};_0x33cfe5[_0x54c0e6(0x21d)]=WS_EVENTS[_0x54c0e6(0x218)],_0x33cfe5['message']=_0x2d05b9[_0x54c0e6(0x15b)],webSocketUtils[_0x54c0e6(0x152)](_0x22c03e,_0x33cfe5),global_registry[_0x54c0e6(0x1ac)]=_0x2f24e0[_0x54c0e6(0x1ac)],global_registry[_0x54c0e6(0x1fc)]=_0x2f24e0[_0x54c0e6(0x1ae)],global_registry[_0x54c0e6(0x1fe)]=_0x2f24e0[_0x54c0e6(0x1fe)];}}else _0x2d05b9[_0x54c0e6(0x19e)](_0x2d05b9[_0x54c0e6(0x1a0)],_0x2d05b9[_0x54c0e6(0x1a0)])?_0x5570a6+=_0x54c0e6(0x17d)+_0x54241c[_0x54c0e6(0x1fe)]+'\x20'+(_0x389982?_0x2d05b9[_0x54c0e6(0x168)]:_0x2d05b9['lrecg'])+'\x0a\x0a':(logger[_0x54c0e6(0x19d)](_0x2d05b9[_0x54c0e6(0x14c)]),process[_0x54c0e6(0x1b4)](0x1));}}}catch(_0x4282a2){_0x2d05b9[_0x54c0e6(0x1d0)](_0x2d05b9[_0x54c0e6(0x198)],_0x2d05b9[_0x54c0e6(0x201)])?(_0x478d2e=_0x54c0e6(0x204)+_0x4282a2+':\x20'+_0x4282a2[_0x54c0e6(0x144)],logger[_0x54c0e6(0x19d)](_0x478d2e),await _0x2d05b9[_0x54c0e6(0x1b8)](reportToGalactusAndSendToEDS,_0xf2b664,_0x22c03e,_0x478d2e,messageTypes[_0x54c0e6(0x170)],_0x2d05b9[_0x54c0e6(0x14a)],_0x2d05b9[_0x54c0e6(0x17b)],_0x2d05b9['xwpTm']),process['exit'](0x1)):_0x4617ff[_0x54c0e6(0x167)]('Cluster\x20`'+_0x42cde5[_0x54c0e6(0x1fe)]+_0x54c0e6(0x157));}}function a17_0x3608(){const _0x340a2e=['name','sfdHJ','SbFoi','data','CLOUD_PROVIDER','Mupzp','\x20region\x20-\x20','cloudProvider','afVzf','region','KHIhT','INFO','Browserstack','pre-check','qkwAK','exit','rUEkT','../../config/constants','delay','mxhrJ','Cluster\x20`','tXsdF','QHtVT','uKOth','stack\x20trace\x20','string','EeCER','===\x20Precheck\x20Report\x20-\x20','debug','pre_check','RjRNs','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','yXTsg','veGbF','cluster-name','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','eUAcx','Failure','unable\x20to\x20verify\x20if\x20cluster\x20`','NkLjG','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','ArsUP','length','jpZsg','GQcTg','../../cloudproviders/utils','gbpTL','uuid','ezaZb','tLfob','response','988316kCJQdZ','status','dZkCt','VLAqY','getUTCDate','yINee','qkqan','pre-check-failed','grid','writeFileSync','2128482Fshzbk','epilogue','PypYc','toolInstalledResp','Error\x20Details:\x0a','OImpL','TOxCP','`\x20,error\x20:\x20','geYJY','QBVdR','132903kxdCUu','Updeg','Failed\x20in\x20pre-check!\x20Error:\x20','credential-not-found','checkAccess','description','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','ubGCw','getUTCMonth','uredf','gridProfile','User\x20Access','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','grid-profile','JreAv','WebSocket','clusterRegion','Tqnhm','clusterName','IKIHc','DXIIq','Niiur','LJLML','reconnecting-websocket','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','YgASz','GMWuL','NbkbF','270723qzVaeN','pre-check-grid-profile-empty','sTAst','INgIA','ibdXq','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','desc','BUqOi','uJBtf','throwHttpErrors','ixEOU','UNpph','vCjIm','466UKhOkv','xwpTm','Status:\x20','LOG','pjpWz','XDWmA','BdTdg','iIRal','type','requestId','<PasswordPlaceholder>','DYmcN','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','vTMZe','username','ggPrP','QkgWV','pre-check-grid-called','tLbLN','\x20===\x0a\x0a','is\x20already\x20present','5BjHQQw','isTrialGridAccessible','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','hcGWg','emIci','cluster-check-failed-','body','push','Tool\x20Installed','1049872vNXbpB','handler','stringify','parse','mhahM','sLeLj','bstackAccesskey','TXigO','mJVxZ','cloud-provider-not-supported','YgNsE','nQjur','KgXFg','uxzMp','cloud-provider','HlBLh','forEach','14990upNluG','includes','replace','method','isCliToolInstalled','help','stack','isTls1_2_SUPPORTED','options','builder','mUNKz','readFileSync','NxTxF','TLSv1_2_client_method','qNGFT','../../utils/instrumentationUtils','usage','sdAuG','<UsernamePlaceholder>','hnzFL','sendEventToBackend','error\x20stack\x20:\x20','\x20error\x20:\x20','password','https://','`\x20already\x20exists','kHaeH','Setting\x20cloud\x20provider\x20as\x20','.\x20Please\x20provide\x20all\x20required\x20arguments.','RdGxI','find','sfnNc','../../utils/utilityMethods','got','/packages/cli/get-all-grid-profiles','../../utils/webSocketUtils','getUTCHours','message','kqGWP','FqrRW','Atjgg','info','TTUCk','MjdJE','toLowerCase','DOtZZ','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','argv','UImFU','split','ERROR','XJOOU','`\x20is\x20present\x20in\x20region\x20`','cAuqd','Success','\x20data\x20:\x20','\x20\x20Stack:\x20','emKFX','KFDTJ','mTLeE','JbkWi','tKjhA','216rsNNlh','Cluster\x20','pDUfk','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','3289DKMwjy','rNKaE','HpYvI','uuJUM','Report\x20saved\x20in\x20','FMSLM','join','log/report_','uFXXV','3|1|2|4|0','dZALz','will\x20be\x20created','NTSex','lAuOK','utf-8','sHRrt','Cluster\x20details\x0a-----------------------\x0a','Message:\x20','N/A','xmiqC','DrCCw','\x20\x20Code:\x20','RfGnQ','\x20\x20Message:\x20','uMqsD','authHeader','bstackUsername','747JuoLZE','HFQIb','error','qJXUj','GET','joKaR','header','code','dummy-grid','pre-check-cluster-args-not-passed'];a17_0x3608=function(){return _0x340a2e;};return a17_0x3608();}function a17_0x1e96(_0x31c394,_0x7cf106){const _0x360890=a17_0x3608();return a17_0x1e96=function(_0x1e9635,_0x2c98f7){_0x1e9635=_0x1e9635-0x11b;let _0x185ece=_0x360890[_0x1e9635];return _0x185ece;},a17_0x1e96(_0x31c394,_0x7cf106);}function printResponse(_0x49ace7,_0x2dc103){const _0x138348=a17_0x1e0cf5,_0x2777c4={};_0x2777c4[_0x138348(0x185)]=function(_0x22c21c,_0x267ad0){return _0x22c21c!==_0x267ad0;},_0x2777c4['uuJUM']='pOtvb',_0x2777c4[_0x138348(0x1a7)]=_0x138348(0x1c9);const _0x3e355c=_0x2777c4;logger[_0x138348(0x167)]('['+_0x49ace7+']\x20status\x20:\x20'+_0x2dc103[_0x138348(0x1d9)]+'\x20data\x20:\x20'+_0x2dc103[_0x138348(0x1a8)]+_0x138348(0x154)+_0x2dc103[_0x138348(0x19d)]),_0x2dc103[_0x138348(0x19d)]&&(_0x3e355c[_0x138348(0x185)](_0x3e355c[_0x138348(0x183)],_0x3e355c[_0x138348(0x1a7)])?logger[_0x138348(0x19d)](_0x138348(0x153)+_0x2dc103['error'][_0x138348(0x144)]):_0x2b1ad6[_0x138348(0x19d)](_0x138348(0x153)+_0x8c7e94[_0x138348(0x19d)][_0x138348(0x144)]));}async function generateReport(_0x29bf0b,_0x533b8d){const _0x360968=a17_0x1e0cf5,_0x366205={'JFzmT':function(_0x517dd5,_0x53eeb3){return _0x517dd5+_0x53eeb3;},'rUEkT':_0x360968(0x174),'uFXXV':'Failure','XMktT':function(_0x49a3e8,_0x1de641){return _0x49a3e8||_0x1de641;},'QkgWV':_0x360968(0x192),'HFQIb':_0x360968(0x1e6),'ezaZb':_0x360968(0x190),'PUvFZ':function(_0x12e9dd,_0x283c6a){return _0x12e9dd!=_0x283c6a;},'mTLeE':_0x360968(0x123),'nQjur':_0x360968(0x18b),'BdTdg':function(_0x1b3c0f){return _0x1b3c0f();}};let _0x395bcf=_0x360968(0x1c0)+global_registry[_0x360968(0x1ac)]+_0x360968(0x122);return _0x29bf0b[_0x360968(0x13d)]((_0x4d011b,_0x382ddf)=>{const _0x5a6740=_0x360968,{header:_0x7cc27c,response:_0x1c5c15}=_0x4d011b,{status:_0x553065,data:_0x17fd89,error:_0x3a8cae}=_0x1c5c15;_0x395bcf+=_0x7cc27c+'\x20#'+_0x366205['JFzmT'](_0x382ddf,0x1)+'\x0a',_0x395bcf+=_0x5a6740(0x217)+(_0x553065?_0x366205[_0x5a6740(0x1b5)]:_0x366205[_0x5a6740(0x188)])+'\x0a',_0x395bcf+=_0x5a6740(0x191)+_0x366205['XMktT'](_0x17fd89,_0x366205[_0x5a6740(0x11f)])+'\x0a',_0x3a8cae&&(_0x395bcf+=_0x366205[_0x5a6740(0x19c)],_0x395bcf+=_0x5a6740(0x197)+(_0x3a8cae[_0x5a6740(0x163)]||_0x366205[_0x5a6740(0x11f)])+'\x0a',_0x395bcf+=_0x5a6740(0x195)+(_0x3a8cae[_0x5a6740(0x1a2)]||_0x366205[_0x5a6740(0x11f)])+'\x0a',_0x395bcf+=_0x5a6740(0x176)+(_0x3a8cae[_0x5a6740(0x144)]||_0x366205[_0x5a6740(0x11f)])+'\x0a'),_0x395bcf+='\x0a\x0a';}),_0x395bcf+=_0x366205[_0x360968(0x1d5)],_0x366205['PUvFZ'](_0x533b8d,null)?_0x395bcf+=_0x360968(0x17d)+global_registry[_0x360968(0x1fe)]+'\x20'+(_0x533b8d?_0x366205[_0x360968(0x179)]:_0x366205[_0x360968(0x138)])+'\x0a\x0a':_0x395bcf+=_0x360968(0x17d)+global_registry[_0x360968(0x1fe)]+_0x360968(0x17f),_0x395bcf+=_0x366205[_0x360968(0x21b)](getSystemMetaData),_0x395bcf;};exports[a17_0x1e0cf5(0x12e)]=async function(_0x475ed3){const _0x338a0d=a17_0x1e0cf5,_0x3d7709={'dZkCt':function(_0x4bb1e0){return _0x4bb1e0();},'mUNKz':_0x338a0d(0x1c8),'kqGWP':function(_0x1e2fb9,_0x8cc3fa,_0x5afe49,_0x2e4998,_0x2df534,_0x529c76,_0xbc871a,_0xef30d0){return _0x1e2fb9(_0x8cc3fa,_0x5afe49,_0x2e4998,_0x2df534,_0x529c76,_0xbc871a,_0xef30d0);},'GMWuL':'pre-check-grid-called','rbOpr':_0x338a0d(0x1ef),'OImpL':_0x338a0d(0x19d),'yINee':function(_0x1e4100,_0x16d083,_0x5ab1db,_0x3b301f,_0x26f504,_0x47a118,_0x62ec79){return _0x1e4100(_0x16d083,_0x5ab1db,_0x3b301f,_0x26f504,_0x47a118,_0x62ec79);},'ynxOv':_0x338a0d(0x150),'dZALz':_0x338a0d(0x21f),'sHRrt':function(_0x4083a3,_0x30a8ce,_0x5ae4f7){return _0x4083a3(_0x30a8ce,_0x5ae4f7);},'QHtVT':_0x338a0d(0x1a3),'YgASz':_0x338a0d(0x1e5),'veGbF':_0x338a0d(0x189),'ixEOU':function(_0x21d6cb,_0x139f33,_0x4704c0,_0x5ebb2a,_0x962ffb,_0x5a24aa,_0x5e4842,_0x33528c){return _0x21d6cb(_0x139f33,_0x4704c0,_0x5ebb2a,_0x962ffb,_0x5a24aa,_0x5e4842,_0x33528c);},'rNKaE':function(_0x4270e4,_0x5f30a7,_0x5e250c){return _0x4270e4(_0x5f30a7,_0x5e250c);},'cAuqd':'accessResp','vCjIm':_0x338a0d(0x125),'ZnQbd':function(_0x4d8de,_0x2708ef){return _0x4d8de(_0x2708ef);},'sLeLj':_0x338a0d(0x14b),'vTMZe':_0x338a0d(0x145),'ZfOjn':_0x338a0d(0x12c),'DYmcN':_0x338a0d(0x1f7),'DdvjF':'Whitelisted\x20browserstack','Atjgg':'SSL\x20Configured','UImFU':function(_0x1ad588,_0x320cce,_0x5c86b0){return _0x1ad588(_0x320cce,_0x5c86b0);},'Updeg':function(_0x57c5bc,_0x4f787e){return _0x57c5bc+_0x4f787e;},'pjpWz':_0x338a0d(0x18e),'JreAv':_0x338a0d(0x1df)};let _0xfefeac,_0x5aa0fc;try{global_registry[_0x338a0d(0x21e)]=_0x3d7709[_0x338a0d(0x1da)](uuidv4);!fs['existsSync'](_0x3d7709[_0x338a0d(0x1da)](getCredentialsPath))&&(_0x5aa0fc=_0x3d7709[_0x338a0d(0x148)],logger['error'](_0x5aa0fc),await _0x3d7709[_0x338a0d(0x164)](reportToGalactusAndSendToEDS,_0x475ed3,_0xfefeac,_0x5aa0fc,messageTypes[_0x338a0d(0x170)],_0x3d7709[_0x338a0d(0x206)],_0x3d7709['rbOpr'],_0x3d7709[_0x338a0d(0x1e7)]),process[_0x338a0d(0x1b4)](0x1));_0x3d7709[_0x338a0d(0x1dd)](sendInstrumentationEvent,_0x475ed3,_0x3d7709[_0x338a0d(0x206)],messageTypes[_0x338a0d(0x1b0)],null,null,_0x475ed3);const _0x504977=JSON[_0x338a0d(0x130)](fs[_0x338a0d(0x149)](_0x3d7709['dZkCt'](getCredentialsPath)));global_registry[_0x338a0d(0x19a)]=_0x504977[_0x338a0d(0x1b1)][_0x338a0d(0x11d)],global_registry[_0x338a0d(0x133)]=_0x504977['Browserstack'][_0x338a0d(0x155)];const _0x4b4620=WS_ENDPOINT[_0x338a0d(0x140)](_0x3d7709['ynxOv'],_0x504977[_0x338a0d(0x1b1)][_0x338a0d(0x11d)])[_0x338a0d(0x140)](_0x3d7709[_0x338a0d(0x18a)],_0x504977[_0x338a0d(0x1b1)]['password']),_0x460ea8={};_0x460ea8[_0x338a0d(0x1fb)]=ws,_0x460ea8['connectionTimeout']=0x36ee80,_0xfefeac=new ReconnectingWebSocket(_0x4b4620,[],_0x460ea8),global_registry[_0x338a0d(0x199)]=_0x3d7709[_0x338a0d(0x18f)](getAuthHeader,global_registry[_0x338a0d(0x19a)],global_registry[_0x338a0d(0x133)]),await _0x3d7709['sHRrt'](inputValidation,_0x475ed3,_0xfefeac),logger[_0x338a0d(0x167)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry['cloudProvider']+_0x338a0d(0x1ab)+global_registry[_0x338a0d(0x1fc)]);let _0x52d446=await _0x3d7709[_0x338a0d(0x1dd)](getCloudProviderObjectWithOutInit,global_registry[_0x338a0d(0x1ac)],global_registry[_0x338a0d(0x1fe)],_0x3d7709[_0x338a0d(0x1bb)],_0xfefeac,webSocketUtils,_0x475ed3);const _0x5e7ed5=await _0x52d446[_0x338a0d(0x142)]();_0x3d7709['sHRrt'](printResponse,_0x3d7709[_0x338a0d(0x205)],_0x5e7ed5),_0x52d446=await _0x52d446['init']();let _0x508151=![];try{_0x508151=await _0x52d446['isClusterPresent']();}catch(_0x4098d0){const _0x37a160=_0x3d7709[_0x338a0d(0x1c6)][_0x338a0d(0x16f)]('|');let _0x57dcd0=0x0;while(!![]){switch(_0x37a160[_0x57dcd0++]){case'0':await _0x3d7709[_0x338a0d(0x212)](reportToGalactusAndSendToEDS,_0x475ed3,_0xfefeac,_0x5aa0fc,messageTypes[_0x338a0d(0x170)],_0x3d7709[_0x338a0d(0x206)],_0x338a0d(0x129)+global_registry[_0x338a0d(0x1ac)],_0x3d7709[_0x338a0d(0x1e7)]);continue;case'1':_0x508151=null;continue;case'2':logger[_0x338a0d(0x19d)](_0x5aa0fc);continue;case'3':_0x5aa0fc=_0x338a0d(0x1cb)+global_registry[_0x338a0d(0x1fe)]+_0x338a0d(0x172)+global_registry['clusterRegion']+_0x338a0d(0x1e9)+_0x4098d0;continue;case'4':_0x5aa0fc+='\x0a'+JSON[_0x338a0d(0x12f)](_0x4098d0[_0x338a0d(0x144)]);continue;}break;}}_0x508151&&logger[_0x338a0d(0x167)](_0x338a0d(0x1b9)+global_registry['clusterName']+'`\x20already\x20exists');const _0xd23cd4=await _0x52d446[_0x338a0d(0x1f0)]();_0x3d7709[_0x338a0d(0x181)](printResponse,_0x3d7709[_0x338a0d(0x173)],_0xd23cd4);const _0x436cf4=await _0x3d7709['dZkCt'](curlRequest);_0x3d7709[_0x338a0d(0x18f)](printResponse,_0x3d7709[_0x338a0d(0x214)],_0x436cf4);const _0x4a9123=await _0x3d7709['ZnQbd'](isTlsSupported,_0x3d7709[_0x338a0d(0x132)]);_0x3d7709[_0x338a0d(0x181)](printResponse,_0x3d7709[_0x338a0d(0x11c)],_0x4a9123);const _0x39d8cb={};_0x39d8cb[_0x338a0d(0x1a1)]=_0x3d7709['ZfOjn'],_0x39d8cb[_0x338a0d(0x1d7)]=_0x5e7ed5;const _0x36f158={};_0x36f158[_0x338a0d(0x1a1)]=_0x3d7709[_0x338a0d(0x220)],_0x36f158[_0x338a0d(0x1d7)]=_0xd23cd4;const _0x40321b={};_0x40321b[_0x338a0d(0x1a1)]=_0x3d7709['DdvjF'],_0x40321b[_0x338a0d(0x1d7)]=_0x436cf4;const _0x186821={};_0x186821[_0x338a0d(0x1a1)]=_0x3d7709[_0x338a0d(0x166)],_0x186821[_0x338a0d(0x1d7)]=_0x4a9123;const _0x557764=[_0x39d8cb,_0x36f158,_0x40321b,_0x186821],_0x2ad0e4=await _0x3d7709[_0x338a0d(0x16e)](generateReport,_0x557764,_0x508151),_0x360eda=new Date(),_0x318f9e=_0x360eda['getUTCFullYear']()+'_'+_0x3d7709[_0x338a0d(0x1ed)](_0x360eda[_0x338a0d(0x1f4)](),0x1)+'_'+_0x360eda[_0x338a0d(0x1dc)]()+'_'+_0x360eda[_0x338a0d(0x162)]()+'_'+_0x360eda['getUTCMinutes'](),_0x29b511=_0x338a0d(0x187)+_0x318f9e+'.txt';fs[_0x338a0d(0x1e1)](_0x29b511,_0x2ad0e4,_0x3d7709[_0x338a0d(0x219)]),logger[_0x338a0d(0x167)](_0x338a0d(0x184)+_0x29b511),process[_0x338a0d(0x1b4)](0x0);}catch(_0x24b4e8){let _0x1c40af=_0x338a0d(0x1ee)+_0x24b4e8+'\x20';logger[_0x338a0d(0x19d)](_0x1c40af),_0x1c40af+='\x0a'+JSON[_0x338a0d(0x12f)](_0x24b4e8[_0x338a0d(0x144)]),logger[_0x338a0d(0x1c1)](_0x338a0d(0x1bd)+_0x24b4e8['stack']);if(_0xfefeac){const _0x549f16={};_0x549f16['type']=WS_EVENTS[_0x338a0d(0x218)],_0x549f16[_0x338a0d(0x163)]=_0x1c40af,webSocketUtils[_0x338a0d(0x152)](_0xfefeac,_0x549f16,_0x3d7709[_0x338a0d(0x1e7)],!![]);}await webSocketUtils[_0x338a0d(0x1b7)](0x7d0);const _0x536820={};_0x536820['error']=_0x1c40af,await _0x3d7709[_0x338a0d(0x1dd)](sendInstrumentationEvent,_0x475ed3,_0x3d7709[_0x338a0d(0x206)],messageTypes['ERROR'],_0x3d7709[_0x338a0d(0x1fa)],_0x536820,_0x475ed3),process['exit'](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a18_0x5caa84=a18_0x1b6f;(function(_0x5348f7,_0x298135){const _0x4abed4=a18_0x1b6f,_0x2de287=_0x5348f7();while(!![]){try{const _0x388e9f=-parseInt(_0x4abed4(0x1f1))/0x1*(-parseInt(_0x4abed4(0x1e7))/0x2)+-parseInt(_0x4abed4(0x1e5))/0x3+-parseInt(_0x4abed4(0x1e2))/0x4*(-parseInt(_0x4abed4(0x1f4))/0x5)+-parseInt(_0x4abed4(0x1e8))/0x6+parseInt(_0x4abed4(0x1f0))/0x7+-parseInt(_0x4abed4(0x1ed))/0x8*(parseInt(_0x4abed4(0x1ef))/0x9)+parseInt(_0x4abed4(0x1e6))/0xa;if(_0x388e9f===_0x298135)break;else _0x2de287['push'](_0x2de287['shift']());}catch(_0x593d2f){_0x2de287['push'](_0x2de287['shift']());}}}(a18_0x5c96,0xee804));function a18_0x1b6f(_0x3d3204,_0x2d6c20){const _0x5c969d=a18_0x5c96();return a18_0x1b6f=function(_0x1b6f3e,_0x980dad){_0x1b6f3e=_0x1b6f3e-0x1e0;let _0x1e460c=_0x5c969d[_0x1b6f3e];return _0x1e460c;},a18_0x1b6f(_0x3d3204,_0x2d6c20);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x5caa84(0x1f2));function a18_0x5c96(){const _0x3e81ab=['start','1466715aBtoVI','12317520mqvEVW','394ZJlSGj','5381496TRpbKG','commandDir','nkCLg','Start\x20an\x20existing\x20Automation\x20grid.','recommendCommands','5144SPzKNB','usage','477mUZjMG','1941282WFlKiF','2194hyXOcW','../config/constants','epilogue','140eshdUR','pYmKe','help','65072RsyDYZ','start_commands'];a18_0x5c96=function(){return _0x3e81ab;};return a18_0x5c96();}exports['command']='start',exports['desc']=a18_0x5caa84(0x1eb),exports['builder']=function(_0x38ee61){const _0xc3238c=a18_0x5caa84,_0x379a6b={};_0x379a6b[_0xc3238c(0x1ea)]=_0xc3238c(0x1e3),_0x379a6b[_0xc3238c(0x1e0)]=_0xc3238c(0x1e1);const _0x54aa68=_0x379a6b;return _0x38ee61[_0xc3238c(0x1ee)](HELP_HEADER_MESSAGE[_0xc3238c(0x1e4)])[_0xc3238c(0x1f3)](HELP_FOOTER_MESSAGE)[_0xc3238c(0x1e9)](_0x54aa68[_0xc3238c(0x1ea)])['demandCommand']()[_0xc3238c(0x1ec)]()['strict']()[_0xc3238c(0x1e1)](_0x54aa68['pYmKe']);},exports['handler']=function(_0xf3fec1){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a19_0x4f37(_0x1c8f0d,_0x390666){const _0x5c6dec=a19_0x5c6d();return a19_0x4f37=function(_0x4f3752,_0x50f2de){_0x4f3752=_0x4f3752-0x19f;let _0x4128f7=_0x5c6dec[_0x4f3752];return _0x4128f7;},a19_0x4f37(_0x1c8f0d,_0x390666);}const a19_0x1a1a06=a19_0x4f37;(function(_0x2b9a2b,_0x58eea7){const _0x2a1aaf=a19_0x4f37,_0x3bfddd=_0x2b9a2b();while(!![]){try{const _0x360f1d=parseInt(_0x2a1aaf(0x1ee))/0x1+parseInt(_0x2a1aaf(0x1f6))/0x2+-parseInt(_0x2a1aaf(0x1be))/0x3*(parseInt(_0x2a1aaf(0x1e6))/0x4)+parseInt(_0x2a1aaf(0x1fc))/0x5*(parseInt(_0x2a1aaf(0x1bc))/0x6)+parseInt(_0x2a1aaf(0x1bf))/0x7+parseInt(_0x2a1aaf(0x1a3))/0x8+-parseInt(_0x2a1aaf(0x19f))/0x9;if(_0x360f1d===_0x58eea7)break;else _0x3bfddd['push'](_0x3bfddd['shift']());}catch(_0x663e48){_0x3bfddd['push'](_0x3bfddd['shift']());}}}(a19_0x5c6d,0x6d025));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x1a1a06(0x1de)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x1a1a06(0x1d4)),{logger}=require(a19_0x1a1a06(0x1f8)),{getCredentialsPath,getGridDetails}=require(a19_0x1a1a06(0x1f1)),{scaleUpHubDeployment}=require(a19_0x1a1a06(0x1c0)),{sendInstrumentationEvent}=require(a19_0x1a1a06(0x1e4)),webSocketUtils=require(a19_0x1a1a06(0x1d6)),{createK8sClient}=require(a19_0x1a1a06(0x1d8)),{getCloudProviderObject}=require(a19_0x1a1a06(0x1dd));function a19_0x5c6d(){const _0x511166=['body','379086xQQKWg','deeod','565755RNRSuf','5112457sfjSun','../../utils/gridComponents','erokd','boolean','cloudProvider','EKwrj','invalid-grid-id','pjgyN','server-error','user','clusterName','start','clusterRegion','stringify','password','GFqoq','connectionTimeout','stack','skip-tls-cert-verify','XbzBg','parse','../../config/constants','error','../../utils/webSocketUtils','usage','../../utils/createk8sClient','skipTlsCertVerify','ROiZL','RrbTi','MwQcJ','../../cloudproviders/utils','reconnecting-websocket','meoTE','region','handler','INFO','VqyvD','../../utils/instrumentationUtils','message','8JhaFIi','username','bstackAccesskey','OniWR','replace','help','mJJcp','jYRrZ','22590bOpllI','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','desc','../../utils/utilityMethods','BUiIk','default','init-not-called','argv','1777458rfQNQs','<UsernamePlaceholder>','../../config/logger','description','info','Eucpl','15zKizjC','10267911vNDZmz','Mhoxl','OxhDz','options','1066696KLquRN','Skip\x20insecure\x20cert\x20verification.','Adding\x20Websocket\x20listeners','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','existsSync','bstackUsername','exit','type','grid-id','name','PDAJI','BuCbO','Grid\x20started','unauthorised','readFileSync','QfCnc','statusCode','cgVsq','ERROR','ZphuE','gridId','Browserstack','debug','<PasswordPlaceholder>'];a19_0x5c6d=function(){return _0x511166;};return a19_0x5c6d();}exports['command']='grid',exports[a19_0x1a1a06(0x1f0)]='Start\x20an\x20existing\x20Automation\x20grid.',exports['builder']=function(_0x4292d5){const _0x3f143e=a19_0x1a1a06,_0x496444={};_0x496444[_0x3f143e(0x1ae)]=_0x3f143e(0x1ef),_0x496444['OniWR']='string',_0x496444[_0x3f143e(0x1da)]=_0x3f143e(0x1a4),_0x496444[_0x3f143e(0x1b6)]=_0x3f143e(0x1c2),_0x496444[_0x3f143e(0x1db)]=_0x3f143e(0x1eb);const _0x135cb5=_0x496444,_0x371fde={};_0x371fde['description']=_0x135cb5[_0x3f143e(0x1ae)],_0x371fde[_0x3f143e(0x1aa)]=_0x135cb5[_0x3f143e(0x1e9)];const _0x40645c={};_0x40645c[_0x3f143e(0x1f9)]=_0x135cb5['ROiZL'],_0x40645c[_0x3f143e(0x1aa)]=_0x135cb5['ZphuE'],_0x40645c[_0x3f143e(0x1f3)]=![];const _0x56614e={};return _0x56614e[_0x3f143e(0x1ab)]=_0x371fde,_0x56614e[_0x3f143e(0x1d1)]=_0x40645c,_0x4292d5[_0x3f143e(0x1d7)](HELP_HEADER_MESSAGE[_0x3f143e(0x1ca)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x3f143e(0x1a2)](_0x56614e)['help'](_0x135cb5[_0x3f143e(0x1db)])[_0x3f143e(0x1f5)];},exports[a19_0x1a1a06(0x1e1)]=async function(_0x32af7c){const _0x24989f=a19_0x1a1a06,_0xd209b2={'PDAJI':_0x24989f(0x1a6),'Eucpl':function(_0x8aea57){return _0x8aea57();},'Nwchy':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','pjgyN':function(_0x308244,_0x5c8c3d,_0x5c4f0c,_0x2a41e4,_0x53ac57,_0x4ac9dc,_0x44143f){return _0x308244(_0x5c8c3d,_0x5c4f0c,_0x2a41e4,_0x53ac57,_0x4ac9dc,_0x44143f);},'meoTE':'start-grid-called','Mhoxl':_0x24989f(0x1f4),'GkwMY':function(_0x3bc7d1,_0x1ad6b9,_0x4b622d,_0x1a722d,_0x582a49,_0x54af78,_0x1ab379){return _0x3bc7d1(_0x1ad6b9,_0x4b622d,_0x1a722d,_0x582a49,_0x54af78,_0x1ab379);},'XbzBg':_0x24989f(0x1f7),'EKwrj':_0x24989f(0x1ba),'mJJcp':_0x24989f(0x1a5),'MwQcJ':function(_0x411270,_0x5a6ce3,_0x2c2dc1,_0x59c845){return _0x411270(_0x5a6ce3,_0x2c2dc1,_0x59c845);},'BUiIk':function(_0x1ff6a5,_0x343c6d,_0x19e2e8){return _0x1ff6a5(_0x343c6d,_0x19e2e8);},'erokd':function(_0x4e04db,_0xc22e8c,_0x4762e7){return _0x4e04db(_0xc22e8c,_0x4762e7);},'GFqoq':_0x24989f(0x1af),'deeod':function(_0x2b49b6,_0x4b97a7){return _0x2b49b6===_0x4b97a7;},'sZhnC':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','QfCnc':_0x24989f(0x1b0),'xmeqb':function(_0x50e1e5,_0x489781){return _0x50e1e5===_0x489781;},'VqyvD':function(_0x3d30fe,_0x5280eb,_0x3f844d,_0x55a85d,_0x15baa6,_0x2dd2a5,_0x1834a0){return _0x3d30fe(_0x5280eb,_0x3f844d,_0x55a85d,_0x15baa6,_0x2dd2a5,_0x1834a0);},'cgVsq':_0x24989f(0x1c5),'jYRrZ':function(_0x3df5c6,_0x11a37d,_0x50b0c8,_0x554064,_0x16b13f,_0x1dfd50,_0x2586e2){return _0x3df5c6(_0x11a37d,_0x50b0c8,_0x554064,_0x16b13f,_0x1dfd50,_0x2586e2);},'OxhDz':_0x24989f(0x1c7)};let _0x16b980;try{!_0x32af7c[_0x24989f(0x1b7)]&&(logger[_0x24989f(0x1d5)](_0xd209b2[_0x24989f(0x1ad)]),process[_0x24989f(0x1a9)](0x1));!fs[_0x24989f(0x1a7)](_0xd209b2[_0x24989f(0x1fb)](getCredentialsPath))&&(logger[_0x24989f(0x1d5)](_0xd209b2['Nwchy']),await _0xd209b2[_0x24989f(0x1c6)](sendInstrumentationEvent,_0x32af7c,_0xd209b2[_0x24989f(0x1df)],messageTypes[_0x24989f(0x1b5)],_0xd209b2[_0x24989f(0x1a0)],null,_0x32af7c),process['exit'](0x1));logger['info']('Starting\x20grid\x20'+_0x32af7c['gridId']),await _0xd209b2['GkwMY'](sendInstrumentationEvent,_0x32af7c,_0xd209b2[_0x24989f(0x1df)],messageTypes[_0x24989f(0x1e2)],null,null,_0x32af7c);const _0xe537f1=JSON[_0x24989f(0x1d3)](fs[_0x24989f(0x1b1)](_0xd209b2[_0x24989f(0x1fb)](getCredentialsPath)));global_registry[_0x24989f(0x1a8)]=_0xe537f1[_0x24989f(0x1b8)][_0x24989f(0x1e7)],global_registry[_0x24989f(0x1e8)]=_0xe537f1[_0x24989f(0x1b8)][_0x24989f(0x1cd)];const _0x330ff9=WS_ENDPOINT[_0x24989f(0x1ea)](_0xd209b2[_0x24989f(0x1d2)],_0xe537f1[_0x24989f(0x1b8)][_0x24989f(0x1e7)])[_0x24989f(0x1ea)](_0xd209b2[_0x24989f(0x1c4)],_0xe537f1[_0x24989f(0x1b8)][_0x24989f(0x1cd)]),_0x252c3a={};_0x252c3a['WebSocket']=ws,_0x252c3a[_0x24989f(0x1cf)]=0x36ee80,_0x16b980=new ReconnectingWebSocket(_0x330ff9,[],_0x252c3a),logger[_0x24989f(0x1b9)](_0xd209b2[_0x24989f(0x1ec)]),webSocketUtils['addListeners'](_0x16b980,_0x32af7c[_0x24989f(0x1c8)],_0x32af7c[_0x24989f(0x1cd)]);const [_0x524145,_0x13815a]=await _0xd209b2[_0x24989f(0x1dc)](getGridDetails,_0xe537f1[_0x24989f(0x1b8)]['username'],_0xe537f1[_0x24989f(0x1b8)]['password'],_0x32af7c[_0x24989f(0x1b7)]);if(_0x13815a){const _0x42d267=_0x13815a[_0x24989f(0x1fa)];global_registry[_0x24989f(0x1c3)]=_0x42d267['cloudProvider'],global_registry[_0x24989f(0x1cb)]=_0x42d267[_0x24989f(0x1e0)],global_registry[_0x24989f(0x1c9)]=_0x42d267['clusterName'];const _0x16a04f=await _0xd209b2[_0x24989f(0x1c6)](getCloudProviderObject,_0x42d267[_0x24989f(0x1c3)],_0x42d267[_0x24989f(0x1c9)],_0x42d267[_0x24989f(0x1ac)],_0x16b980,webSocketUtils,_0x32af7c),[_0x1e45dd,_0x8ceccf,_0x4a354b,_0x8d0ba5,_0x90c78a,_0x47b11a]=await _0xd209b2[_0x24989f(0x1f2)](createK8sClient,_0x16a04f,_0x32af7c[_0x24989f(0x1d9)]);await _0xd209b2[_0x24989f(0x1c1)](scaleUpHubDeployment,_0x8ceccf,_0x42d267['name']),logger[_0x24989f(0x1fa)](_0xd209b2[_0x24989f(0x1ce)]),process[_0x24989f(0x1a9)](0x0);}_0xd209b2[_0x24989f(0x1bd)](_0x524145[_0x24989f(0x1b3)],0x191)&&(logger[_0x24989f(0x1d5)](_0xd209b2['sZhnC']),await _0xd209b2[_0x24989f(0x1c6)](sendInstrumentationEvent,_0x32af7c,_0xd209b2['meoTE'],messageTypes[_0x24989f(0x1b5)],_0xd209b2[_0x24989f(0x1b2)],null,_0x32af7c),process[_0x24989f(0x1a9)](0x1)),_0xd209b2['xmeqb'](_0x524145[_0x24989f(0x1b3)],0x190)&&(logger[_0x24989f(0x1d5)](JSON[_0x24989f(0x1d3)](_0x524145[_0x24989f(0x1bb)])[_0x24989f(0x1e5)]),await _0xd209b2[_0x24989f(0x1e3)](sendInstrumentationEvent,_0x32af7c,_0xd209b2[_0x24989f(0x1df)],messageTypes[_0x24989f(0x1b5)],_0xd209b2[_0x24989f(0x1b4)],null,_0x32af7c),process[_0x24989f(0x1a9)](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x24989f(0x1cc)](_0x524145)),await _0xd209b2[_0x24989f(0x1ed)](sendInstrumentationEvent,_0x32af7c,_0xd209b2['meoTE'],messageTypes[_0x24989f(0x1b5)],_0xd209b2[_0x24989f(0x1a1)],_0x524145,_0x32af7c),process[_0x24989f(0x1a9)](0x1);}catch(_0x26204f){const _0x640e3b='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x26204f+'\x20\x0a'+JSON[_0x24989f(0x1cc)](_0x26204f[_0x24989f(0x1d0)])+'\x20';logger[_0x24989f(0x1d5)](_0x640e3b),process[_0x24989f(0x1a9)](0x1);}};
|
package/ats/src/commands/stop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a20_0x1eb7(_0x45f1f0,_0x23bde0){const _0x35f7ff=a20_0x35f7();return a20_0x1eb7=function(_0x1eb752,_0x2b6943){_0x1eb752=_0x1eb752-0x8d;let _0x3239af=_0x35f7ff[_0x1eb752];return _0x3239af;},a20_0x1eb7(_0x45f1f0,_0x23bde0);}const a20_0x5bd7e4=a20_0x1eb7;(function(_0x2e00a4,_0x304e6a){const _0x450803=a20_0x1eb7,_0x379a90=_0x2e00a4();while(!![]){try{const _0x312f11=parseInt(_0x450803(0x96))/0x1*(-parseInt(_0x450803(0xa4))/0x2)+parseInt(_0x450803(0x92))/0x3+-parseInt(_0x450803(0x9c))/0x4*(-parseInt(_0x450803(0x99))/0x5)+parseInt(_0x450803(0x90))/0x6*(parseInt(_0x450803(0x98))/0x7)+-parseInt(_0x450803(0x9f))/0x8+parseInt(_0x450803(0xa2))/0x9*(-parseInt(_0x450803(0xa6))/0xa)+-parseInt(_0x450803(0x9b))/0xb*(-parseInt(_0x450803(0x91))/0xc);if(_0x312f11===_0x304e6a)break;else _0x379a90['push'](_0x379a90['shift']());}catch(_0x3bf01f){_0x379a90['push'](_0x379a90['shift']());}}}(a20_0x35f7,0x475e5));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x5bd7e4(0xa0));function a20_0x35f7(){const _0xd6ee50=['11bXgXHQ','4QoJyuN','builder','demandCommand','360736XUvuZX','../config/constants','command','116379HxQMci','desc','578216AaXCOD','usage','350sNovSD','stop','recommendCommands','jCDSp','commandDir','6mIpsDn','6231252VgEppS','384615JoKirp','Stop\x20a\x20running\x20Automation\x20grid.','strict','handler','2AQThKg','ZhfUl','2647211sZIZVC','1712845zOllPw','help'];a20_0x35f7=function(){return _0xd6ee50;};return a20_0x35f7();}exports[a20_0x5bd7e4(0xa1)]=a20_0x5bd7e4(0xa7),exports[a20_0x5bd7e4(0xa3)]=a20_0x5bd7e4(0x93),exports[a20_0x5bd7e4(0x9d)]=function(_0x14368e){const _0x58191c=a20_0x5bd7e4,_0x570c02={};_0x570c02['ZhfUl']='stop_commands',_0x570c02['jCDSp']=_0x58191c(0x9a);const _0x263381=_0x570c02;return _0x14368e[_0x58191c(0xa5)](HELP_HEADER_MESSAGE[_0x58191c(0xa7)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x58191c(0x8f)](_0x263381[_0x58191c(0x97)])[_0x58191c(0x9e)]()[_0x58191c(0x8d)]()[_0x58191c(0x94)]()[_0x58191c(0x9a)](_0x263381[_0x58191c(0x8e)]);},exports[a20_0x5bd7e4(0x95)]=function(_0x50ef9a){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a21_0x483cd0=a21_0x272e;(function(_0x27f4d7,_0x32b6fd){const _0x2e436d=a21_0x272e,_0x4a880c=_0x27f4d7();while(!![]){try{const _0x535dcf=-parseInt(_0x2e436d(0xd3))/0x1+parseInt(_0x2e436d(0xc5))/0x2+-parseInt(_0x2e436d(0xc1))/0x3*(parseInt(_0x2e436d(0xb5))/0x4)+-parseInt(_0x2e436d(0xab))/0x5*(-parseInt(_0x2e436d(0xce))/0x6)+parseInt(_0x2e436d(0xa4))/0x7+-parseInt(_0x2e436d(0xaa))/0x8*(-parseInt(_0x2e436d(0xd4))/0x9)+-parseInt(_0x2e436d(0xb9))/0xa*(parseInt(_0x2e436d(0xc6))/0xb);if(_0x535dcf===_0x32b6fd)break;else _0x4a880c['push'](_0x4a880c['shift']());}catch(_0x4d4fd9){_0x4a880c['push'](_0x4a880c['shift']());}}}(a21_0x5c19,0x70ec8));function a21_0x272e(_0x4db862,_0x213267){const _0x5c19ca=a21_0x5c19();return a21_0x272e=function(_0x272e67,_0x307ed9){_0x272e67=_0x272e67-0x96;let _0x50a077=_0x5c19ca[_0x272e67];return _0x50a077;},a21_0x272e(_0x4db862,_0x213267);}function a21_0x5c19(){const _0x3cb67a=['143LRCXHA','KTRRm','error','grid-id','../../utils/utilityMethods','password','addListeners','YhOnX','78lXVUqG','../../utils/instrumentationUtils','description','OgZZY','ERROR','581548FwdVJX','1602OeHhdp','boolean','clusterRegion','Browserstack','MEune','exit','body','clusterName','handler','stringify','Oqpbu','../../config/logger','usage','invalid-grid-id','stack','Stop\x20a\x20running\x20Automation\x20grid.','options','unauthorised','pnZoA','UfQnF','Skip\x20insecure\x20cert\x20verification.','reconnecting-websocket','lnAgP','desc','connectionTimeout','qnvth','<PasswordPlaceholder>','cloudProvider','grid','OiLiw','INFO','DQbeU','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','rHgTb','default','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','gridId','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','existsSync','builder','Stopping\x20grid\x20','stop-grid-called','statusCode','TvXIQ','<UsernamePlaceholder>','5330465VAtQWU','stop','parse','CEYIw','../../config/constants','region','20712WhrCUL','169055KmgEyT','mbqZc','../../utils/gridComponents','replace','epilogue','type','../../utils/createk8sClient','Cwavc','help','bstackAccesskey','2743844YwzozI','skip-tls-cert-verify','debug','username','448660AxoSdc','server-error','command','UEkmC','XpHTQ','info','lzAVx','string','3xsIlCV','name','sHiOv','OYWQn','1302846nWCkse'];a21_0x5c19=function(){return _0x3cb67a;};return a21_0x5c19();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x483cd0(0xe9)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x483cd0(0xa8)),{logger}=require(a21_0x483cd0(0xdf)),{getCredentialsPath,getGridDetails}=require(a21_0x483cd0(0xca)),{scaleDownHubDeployment}=require(a21_0x483cd0(0xad)),{sendInstrumentationEvent}=require(a21_0x483cd0(0xcf)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x483cd0(0xb1)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a21_0x483cd0(0xbb)]=a21_0x483cd0(0xf0),exports[a21_0x483cd0(0xeb)]=a21_0x483cd0(0xe3),exports[a21_0x483cd0(0x9e)]=function(_0x8ef71d){const _0xfb464d=a21_0x483cd0,_0xae74c4={};_0xae74c4[_0xfb464d(0xbd)]=_0xfb464d(0x9c),_0xae74c4[_0xfb464d(0xac)]=_0xfb464d(0xc0),_0xae74c4[_0xfb464d(0xa7)]=_0xfb464d(0xe8),_0xae74c4[_0xfb464d(0xd1)]=_0xfb464d(0xd5),_0xae74c4['OYWQn']=_0xfb464d(0xb3);const _0x1770c4=_0xae74c4,_0x16508c={};_0x16508c[_0xfb464d(0xd0)]=_0x1770c4[_0xfb464d(0xbd)],_0x16508c[_0xfb464d(0xb0)]=_0x1770c4[_0xfb464d(0xac)];const _0x25341c={};_0x25341c[_0xfb464d(0xd0)]=_0x1770c4[_0xfb464d(0xa7)],_0x25341c['type']=_0x1770c4[_0xfb464d(0xd1)],_0x25341c[_0xfb464d(0x99)]=![];const _0x23d8b8={};return _0x23d8b8[_0xfb464d(0xc9)]=_0x16508c,_0x23d8b8[_0xfb464d(0xb6)]=_0x25341c,_0x8ef71d[_0xfb464d(0xe0)](HELP_HEADER_MESSAGE[_0xfb464d(0xa5)])[_0xfb464d(0xaf)](HELP_FOOTER_MESSAGE)[_0xfb464d(0xe4)](_0x23d8b8)[_0xfb464d(0xb3)](_0x1770c4[_0xfb464d(0xc4)])['argv'];},exports[a21_0x483cd0(0xdc)]=async function(_0x40b1f5){const _0x2dc44f=a21_0x483cd0,_0x57aa72={'UEkmC':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','GDBEc':function(_0x31409a){return _0x31409a();},'qnvth':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','sHiOv':function(_0x55f8b3,_0x5c1335,_0x357c22,_0x1cdd21,_0x4b1728,_0x2cf708,_0x13a336){return _0x55f8b3(_0x5c1335,_0x357c22,_0x1cdd21,_0x4b1728,_0x2cf708,_0x13a336);},'Oqpbu':_0x2dc44f(0xa0),'lqscX':'init-not-called','rHgTb':function(_0x422361,_0x44c641,_0x5e123c,_0x1d7e70,_0x3a5e8c,_0x179899,_0xd24925){return _0x422361(_0x44c641,_0x5e123c,_0x1d7e70,_0x3a5e8c,_0x179899,_0xd24925);},'lzAVx':function(_0x373496){return _0x373496();},'MEune':_0x2dc44f(0xa3),'KTRRm':_0x2dc44f(0xee),'Cwavc':'Adding\x20Websocket\x20listeners','pnZoA':function(_0xfca78c,_0x2752f1,_0x33aa4a,_0xdd1c00){return _0xfca78c(_0x2752f1,_0x33aa4a,_0xdd1c00);},'UXZzg':function(_0x4657a2,_0x2fbbb2,_0x223688,_0xfea773,_0x49702d,_0x47522c,_0x56fa6a){return _0x4657a2(_0x2fbbb2,_0x223688,_0xfea773,_0x49702d,_0x47522c,_0x56fa6a);},'YhOnX':function(_0x2b5285,_0x17ee93,_0x24d664){return _0x2b5285(_0x17ee93,_0x24d664);},'UfQnF':function(_0x59e569,_0x11b47c,_0x379fe5){return _0x59e569(_0x11b47c,_0x379fe5);},'TvXIQ':'Grid\x20stoppped.','fCGZo':function(_0xf354cb,_0x2abaf9){return _0xf354cb===_0x2abaf9;},'DQbeU':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','GsOKc':function(_0x54a730,_0x33183c,_0x2095d4,_0x318031,_0x5718ec,_0x252d36,_0x5709b5){return _0x54a730(_0x33183c,_0x2095d4,_0x318031,_0x5718ec,_0x252d36,_0x5709b5);},'qWeGX':_0x2dc44f(0xe5),'eEEEk':function(_0x352153,_0x53473a){return _0x352153===_0x53473a;},'lnAgP':function(_0x2e90b4,_0x3215ee,_0x152e01,_0x246055,_0x18ea3a,_0x484da4,_0x75473f){return _0x2e90b4(_0x3215ee,_0x152e01,_0x246055,_0x18ea3a,_0x484da4,_0x75473f);},'eTkJl':_0x2dc44f(0xe1),'xNQQf':function(_0x1d58f3,_0x577d12,_0x473418,_0x4ad932,_0x3e7e74,_0xc828d4,_0x22eabc){return _0x1d58f3(_0x577d12,_0x473418,_0x4ad932,_0x3e7e74,_0xc828d4,_0x22eabc);},'OiLiw':_0x2dc44f(0xba)};let _0x28e4fd;try{!_0x40b1f5['gridId']&&(logger[_0x2dc44f(0xc8)](_0x57aa72[_0x2dc44f(0xbc)]),process['exit'](0x1));!fs[_0x2dc44f(0x9d)](_0x57aa72['GDBEc'](getCredentialsPath))&&(logger[_0x2dc44f(0xc8)](_0x57aa72[_0x2dc44f(0xed)]),await _0x57aa72[_0x2dc44f(0xc3)](sendInstrumentationEvent,_0x40b1f5,_0x57aa72[_0x2dc44f(0xde)],messageTypes[_0x2dc44f(0xd2)],_0x57aa72['lqscX'],null,_0x40b1f5),process[_0x2dc44f(0xd9)](0x1));logger[_0x2dc44f(0xbe)](_0x2dc44f(0x9f)+_0x40b1f5[_0x2dc44f(0x9b)]),await _0x57aa72[_0x2dc44f(0x98)](sendInstrumentationEvent,_0x40b1f5,_0x57aa72['Oqpbu'],messageTypes[_0x2dc44f(0xf2)],null,null,_0x40b1f5);const _0x2be128=JSON[_0x2dc44f(0xa6)](fs['readFileSync'](_0x57aa72[_0x2dc44f(0xbf)](getCredentialsPath)));global_registry['bstackUsername']=_0x2be128[_0x2dc44f(0xd7)][_0x2dc44f(0xb8)],global_registry[_0x2dc44f(0xb4)]=_0x2be128[_0x2dc44f(0xd7)][_0x2dc44f(0xcb)];const _0x4ef2ef=WS_ENDPOINT[_0x2dc44f(0xae)](_0x57aa72[_0x2dc44f(0xd8)],_0x2be128['Browserstack'][_0x2dc44f(0xb8)])[_0x2dc44f(0xae)](_0x57aa72[_0x2dc44f(0xc7)],_0x2be128[_0x2dc44f(0xd7)]['password']),_0x54eb9e={};_0x54eb9e['WebSocket']=ws,_0x54eb9e[_0x2dc44f(0xec)]=0x36ee80,_0x28e4fd=new ReconnectingWebSocket(_0x4ef2ef,[],_0x54eb9e),logger[_0x2dc44f(0xb7)](_0x57aa72[_0x2dc44f(0xb2)]),webSocketUtils[_0x2dc44f(0xcc)](_0x28e4fd,_0x40b1f5['user'],_0x40b1f5['password']);const [_0x14a211,_0x400bda]=await _0x57aa72[_0x2dc44f(0xe6)](getGridDetails,_0x2be128[_0x2dc44f(0xd7)][_0x2dc44f(0xb8)],_0x2be128['Browserstack']['password'],_0x40b1f5[_0x2dc44f(0x9b)]);if(_0x400bda){const _0x7537db=_0x400bda['info'];global_registry[_0x2dc44f(0xef)]=_0x7537db[_0x2dc44f(0xef)],global_registry[_0x2dc44f(0xd6)]=_0x7537db[_0x2dc44f(0xa9)],global_registry[_0x2dc44f(0xdb)]=_0x7537db[_0x2dc44f(0xdb)];const _0x14ec7d=await _0x57aa72['UXZzg'](getCloudProviderObject,_0x7537db[_0x2dc44f(0xef)],_0x7537db[_0x2dc44f(0xdb)],_0x7537db[_0x2dc44f(0xc2)],_0x28e4fd,webSocketUtils,_0x40b1f5),[_0x55bb7b,_0x2f6a80,_0x1bb0ce,_0x2a1e6c,_0x573544,_0x149b98]=await _0x57aa72[_0x2dc44f(0xcd)](createK8sClient,_0x14ec7d,_0x40b1f5['skipTlsCertVerify']);await _0x57aa72[_0x2dc44f(0xe7)](scaleDownHubDeployment,_0x2f6a80,_0x7537db['name']),logger[_0x2dc44f(0xbe)](_0x57aa72[_0x2dc44f(0xa2)]),process[_0x2dc44f(0xd9)](0x0);}_0x57aa72['fCGZo'](_0x14a211['statusCode'],0x191)&&(logger['error'](_0x57aa72[_0x2dc44f(0x96)]),await _0x57aa72['GsOKc'](sendInstrumentationEvent,_0x40b1f5,_0x57aa72[_0x2dc44f(0xde)],messageTypes[_0x2dc44f(0xd2)],_0x57aa72['qWeGX'],null,_0x40b1f5),process[_0x2dc44f(0xd9)](0x1)),_0x57aa72['eEEEk'](_0x14a211[_0x2dc44f(0xa1)],0x190)&&(logger['error'](JSON[_0x2dc44f(0xa6)](_0x14a211[_0x2dc44f(0xda)])['message']),await _0x57aa72[_0x2dc44f(0xea)](sendInstrumentationEvent,_0x40b1f5,_0x57aa72[_0x2dc44f(0xde)],messageTypes['ERROR'],_0x57aa72['eTkJl'],null,_0x40b1f5),process[_0x2dc44f(0xd9)](0x1)),logger['error'](_0x2dc44f(0x97)+JSON[_0x2dc44f(0xdd)](_0x14a211)),await _0x57aa72['xNQQf'](sendInstrumentationEvent,_0x40b1f5,_0x57aa72[_0x2dc44f(0xde)],messageTypes[_0x2dc44f(0xd2)],_0x57aa72[_0x2dc44f(0xf1)],_0x14a211,_0x40b1f5),process[_0x2dc44f(0xd9)](0x1);}catch(_0x576fea){const _0x2c3279=_0x2dc44f(0x9a)+_0x576fea+'\x20\x0a'+JSON[_0x2dc44f(0xdd)](_0x576fea[_0x2dc44f(0xe2)])+'\x20';logger[_0x2dc44f(0xc8)](_0x2c3279),process['exit'](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x12e7bc=a22_0x18b6;(function(_0x52d275,_0x2ae382){const _0x571888=a22_0x18b6,_0x65d4d3=_0x52d275();while(!![]){try{const _0x1fd2e3=parseInt(_0x571888(0x12f))/0x1+parseInt(_0x571888(0x138))/0x2+parseInt(_0x571888(0xe8))/0x3+-parseInt(_0x571888(0xff))/0x4*(-parseInt(_0x571888(0x123))/0x5)+parseInt(_0x571888(0x106))/0x6+parseInt(_0x571888(0xde))/0x7+-parseInt(_0x571888(0xe6))/0x8*(parseInt(_0x571888(0xf1))/0x9);if(_0x1fd2e3===_0x2ae382)break;else _0x65d4d3['push'](_0x65d4d3['shift']());}catch(_0x5bc905){_0x65d4d3['push'](_0x65d4d3['shift']());}}}(a22_0x32b9,0x402c9),require(a22_0x12e7bc(0xe2))['config']());let gridURL=a22_0x12e7bc(0x12c),bsApiUrl=a22_0x12e7bc(0xed),agApiUrl=a22_0x12e7bc(0x137);const _env=(process[a22_0x12e7bc(0x133)][a22_0x12e7bc(0x107)]||a22_0x12e7bc(0xf9))[a22_0x12e7bc(0x127)]();if(_env===a22_0x12e7bc(0xf5)||_env===a22_0x12e7bc(0x13e))gridURL='grid-devhst.bsstag.com',bsApiUrl=a22_0x12e7bc(0xd2),agApiUrl=a22_0x12e7bc(0x12d);else(_env===a22_0x12e7bc(0x105)||_env==='pre-prod')&&(gridURL=a22_0x12e7bc(0xdc),bsApiUrl='api-preprod.bsstag.com',agApiUrl='grid-api-preprod.bsstag.com');exports[a22_0x12e7bc(0x129)]=process[a22_0x12e7bc(0x133)]['DASHBOARD_ENDPOINT']||gridURL,exports[a22_0x12e7bc(0xd8)]=process[a22_0x12e7bc(0x133)]['BS_API_URL']||bsApiUrl,exports[a22_0x12e7bc(0xf4)]=process['env'][a22_0x12e7bc(0xf4)]||agApiUrl,exports[a22_0x12e7bc(0x108)]=a22_0x12e7bc(0x109)+this['AG_API_URL']+a22_0x12e7bc(0xe9),exports[a22_0x12e7bc(0xe5)]=a22_0x12e7bc(0x100),exports['IAM_USER_NAME']=a22_0x12e7bc(0x12b),exports[a22_0x12e7bc(0x135)]=a22_0x12e7bc(0x112),exports['AWS']='aws',exports[a22_0x12e7bc(0xfc)]=a22_0x12e7bc(0xef),exports[a22_0x12e7bc(0x11c)]=a22_0x12e7bc(0x11f),exports[a22_0x12e7bc(0x121)]=a22_0x12e7bc(0xfa),exports['TURBOSCALE_DEPLOYMENT']=a22_0x12e7bc(0x13b),exports[a22_0x12e7bc(0x124)]='azure',exports[a22_0x12e7bc(0xd7)]=a22_0x12e7bc(0x13c),exports[a22_0x12e7bc(0xf3)]=[this[a22_0x12e7bc(0xd4)],this['AZURE'],this[a22_0x12e7bc(0xd7)]];const a22_0x35681b={};a22_0x35681b[a22_0x12e7bc(0xf0)]='browserstack:managedBy',a22_0x35681b[a22_0x12e7bc(0xdb)]=a22_0x12e7bc(0x114);const a22_0x3addb={};a22_0x3addb['Key']=a22_0x12e7bc(0xd3),a22_0x3addb['Value']=a22_0x12e7bc(0x10f);const common_hst_tags_list=[a22_0x35681b,a22_0x3addb];if(process[a22_0x12e7bc(0x133)][a22_0x12e7bc(0x119)]){const parsedTags=process['env'][a22_0x12e7bc(0x119)][a22_0x12e7bc(0x12a)](',');parsedTags[a22_0x12e7bc(0x111)](_0x579a9f=>{const _0x47b8e7=a22_0x12e7bc,_0x15e117=_0x579a9f[_0x47b8e7(0x12a)](':'),_0x569d8b={};_0x569d8b[_0x47b8e7(0xf0)]=_0x15e117[0x0],_0x569d8b[_0x47b8e7(0xdb)]=_0x15e117[0x1],common_hst_tags_list[_0x47b8e7(0xec)](_0x569d8b);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x389cd2={};function a22_0x18b6(_0x503bce,_0x3854e6){const _0x32b998=a22_0x32b9();return a22_0x18b6=function(_0x18b699,_0xabec6f){_0x18b699=_0x18b699-0xd0;let _0x534a8e=_0x32b998[_0x18b699];return _0x534a8e;},a22_0x18b6(_0x503bce,_0x3854e6);}a22_0x389cd2['browserstack:managedBy']='BrowserStack',a22_0x389cd2[a22_0x12e7bc(0xd3)]=a22_0x12e7bc(0x10f),exports[a22_0x12e7bc(0x118)]=a22_0x389cd2,exports[a22_0x12e7bc(0x12e)]=[this[a22_0x12e7bc(0xd4)]];const a22_0x37a8a8={};a22_0x37a8a8[a22_0x12e7bc(0x139)]=a22_0x12e7bc(0x126),a22_0x37a8a8[a22_0x12e7bc(0xe1)]=a22_0x12e7bc(0xf8),a22_0x37a8a8[a22_0x12e7bc(0xfe)]=a22_0x12e7bc(0x102),a22_0x37a8a8[a22_0x12e7bc(0x130)]=a22_0x12e7bc(0x10c),a22_0x37a8a8['CLI_RUN_FINISHED']='cliRunFinished',exports[a22_0x12e7bc(0xea)]=a22_0x37a8a8,exports[a22_0x12e7bc(0x122)]={},exports[a22_0x12e7bc(0x101)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';function a22_0x32b9(){const _0x52e2c1=['996384JczZSD','LOG','grid-profile','browserstack-turboscale-grid','gcp','CLUSTER','stag','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','api-devhst.bsstag.com','browserstack:service','AWS','list','messageTypes','GCP','BS_API_URL','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','pre_check','Value','grid-preprod.bsstag.com','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','1427629jFYcyK','info','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','RESOURCES','dotenv','create','HELP_FOOTER_MESSAGE','CP_CONFIG_FILE','15952072MBhpeb','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','1339434GwCPkj','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','WS_EVENTS','init','push','api.browserstack.com','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','BSTACK-ATS-CLUSTER','Key','9eIVADs','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','ALL_SUPPORTED_CLOUD_PROVIDERS','AG_API_URL','staging','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','resourceInfo','prod','BSTACK-ATS-CLUSTER-HUB-HA','ERROR','CLUSTER_DEP_STACK_NAME','CLOUD_PROVIDER','GRID_URL','72ecVBQc','credentials','LINK_MESSAGE','gridUrl','WARNING','aws','preprod','952494uuoBGJ','BROWSERSTACK_ENV','WS_ENDPOINT','wss://','success','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','cliRunStarted','TRIAL_GRID_URL','delete','BrowserStack-Automate-TurboScale','pre-check','forEach','high-scale-grid','root','BrowserStack','DEFAULT_CLUSTER_DETAILS','us-east-1','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','HST_CLUSTER_TAGS','TURBOSCALE_CUSTOM_TAGS','MessageDescription','SUCCESS','CLUSTER_AUTOSCALER_STACK_NAME','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','BSTACK-ATS-CLUSTER-AUTOSCALER','stop','CLUSTER_HUB_HA_STACK_NAME','global_registry','137155jGVZfl','AZURE','unknown','log','toLowerCase','REGION','DASHBOARD_ENDPOINT','split','BrowserStackIAMUser','grid.browserstack.com','grid-api-devhst.bsstag.com','SUPPORTED_CLOUD_PROVIDERS','455742fdGDOs','CLI_RUN_STARTED','high-scale-grid-cluster','start','env','CLI_ARGS_REGEX','DEFAULT_GRID_NAME','NULL','grid-api.browserstack.com'];a22_0x32b9=function(){return _0x52e2c1;};return a22_0x32b9();}const a22_0x5daaaa={};a22_0x5daaaa['root']=a22_0x12e7bc(0x10b)+this[a22_0x12e7bc(0x101)],a22_0x5daaaa[a22_0x12e7bc(0xeb)]=a22_0x12e7bc(0xf7)+this[a22_0x12e7bc(0x101)],a22_0x5daaaa['configure']=a22_0x12e7bc(0x117)+this['LINK_MESSAGE'],a22_0x5daaaa[a22_0x12e7bc(0xe3)]=a22_0x12e7bc(0xdd)+this[a22_0x12e7bc(0x101)],a22_0x5daaaa[a22_0x12e7bc(0xd5)]={},a22_0x5daaaa[a22_0x12e7bc(0x10e)]=a22_0x12e7bc(0xee)+this[a22_0x12e7bc(0x101)],a22_0x5daaaa['connect']=a22_0x12e7bc(0xd0)+this[a22_0x12e7bc(0x101)],a22_0x5daaaa[a22_0x12e7bc(0x132)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x12e7bc(0x101)],a22_0x5daaaa[a22_0x12e7bc(0x120)]=a22_0x12e7bc(0xe7)+this[a22_0x12e7bc(0x101)],a22_0x5daaaa[a22_0x12e7bc(0xda)]=a22_0x12e7bc(0xf6)+this[a22_0x12e7bc(0x101)],a22_0x5daaaa[a22_0x12e7bc(0xd5)][a22_0x12e7bc(0x113)]=a22_0x12e7bc(0xe0)+this[a22_0x12e7bc(0x101)],a22_0x5daaaa[a22_0x12e7bc(0xd5)]['grid']=a22_0x12e7bc(0x11e)+this['LINK_MESSAGE'],a22_0x5daaaa[a22_0x12e7bc(0xd5)]['gridProfile']=a22_0x12e7bc(0xd9)+this[a22_0x12e7bc(0x101)],exports['HELP_HEADER_MESSAGE']=a22_0x5daaaa,exports[a22_0x12e7bc(0xe4)]=a22_0x12e7bc(0xd1);const a22_0x34eff3={};a22_0x34eff3[a22_0x12e7bc(0x11b)]=a22_0x12e7bc(0x10a),a22_0x34eff3[a22_0x12e7bc(0xfb)]='error',a22_0x34eff3['INFO']=a22_0x12e7bc(0xdf),a22_0x34eff3[a22_0x12e7bc(0x103)]='warning',a22_0x34eff3['UNKNOWN']=a22_0x12e7bc(0x125),a22_0x34eff3[a22_0x12e7bc(0x136)]=null,exports[a22_0x12e7bc(0xd6)]=a22_0x34eff3,exports[a22_0x12e7bc(0x134)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']='[REDACTED]';const a22_0xa2589f={};a22_0xa2589f[a22_0x12e7bc(0x13a)]=a22_0x12e7bc(0xf2);const a22_0x527278={};a22_0x527278[a22_0x12e7bc(0x110)]=a22_0xa2589f,exports[a22_0x12e7bc(0x11a)]=a22_0x527278,exports[a22_0x12e7bc(0x10d)]=a22_0x12e7bc(0x11d);const a22_0x40def5={};a22_0x40def5[a22_0x12e7bc(0x13d)]=a22_0x12e7bc(0x131),a22_0x40def5[a22_0x12e7bc(0xfd)]=a22_0x12e7bc(0x104),a22_0x40def5[a22_0x12e7bc(0x128)]=a22_0x12e7bc(0x116),exports[a22_0x12e7bc(0x115)]=a22_0x40def5;
|
package/ats/src/config/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a23_0xf69b32=a23_0x28cf;function a23_0x4203(){const _0x543a2b=['colorize','548331RAcxnf','File','printf','existsSync','log','timestamp','console.info','combine','61658MaWEJx','logger','5605984oqhPDm','mkdirSync','315lMSIHb','transports','path','join','winston','Console','format','YYYY-MM-DD\x20HH:mm:ss','debug','name','18366cBDsEj','\x20-\x20','level','message','5516161tImqcA','fileLogger','usage.log','50780csEGLu','63thcELM','createLogger','2259pGFvNo','726224uTZmFu'];a23_0x4203=function(){return _0x543a2b;};return a23_0x4203();}(function(_0x1d6a98,_0xddd97b){const _0x5d2d35=a23_0x28cf,_0x41b3db=_0x1d6a98();while(!![]){try{const _0x4b8e34=parseInt(_0x5d2d35(0x1f1))/0x1+-parseInt(_0x5d2d35(0x1f9))/0x2*(parseInt(_0x5d2d35(0x1ec))/0x3)+parseInt(_0x5d2d35(0x1ef))/0x4+parseInt(_0x5d2d35(0x1fd))/0x5*(parseInt(_0x5d2d35(0x207))/0x6)+parseInt(_0x5d2d35(0x1e8))/0x7+parseInt(_0x5d2d35(0x1fb))/0x8+-parseInt(_0x5d2d35(0x1ee))/0x9*(parseInt(_0x5d2d35(0x1eb))/0xa);if(_0x4b8e34===_0xddd97b)break;else _0x41b3db['push'](_0x41b3db['shift']());}catch(_0x713f75){_0x41b3db['push'](_0x41b3db['shift']());}}}(a23_0x4203,0x7782a));const winston=require(a23_0xf69b32(0x201)),fs=require('fs'),path=require(a23_0xf69b32(0x1ff)),logDir=a23_0xf69b32(0x1f5);function a23_0x28cf(_0x2e6c6d,_0x15ff23){const _0x420347=a23_0x4203();return a23_0x28cf=function(_0x28cfd6,_0x4f9d53){_0x28cfd6=_0x28cfd6-0x1e5;let _0x9a0986=_0x420347[_0x28cfd6];return _0x9a0986;},a23_0x28cf(_0x2e6c6d,_0x15ff23);}!fs[a23_0xf69b32(0x1f4)](logDir)&&fs[a23_0xf69b32(0x1fc)](logDir);const a23_0x1d33bf={};a23_0x1d33bf[a23_0xf69b32(0x203)]=a23_0xf69b32(0x204);const a23_0x3ac95f={};a23_0x3ac95f[a23_0xf69b32(0x1e6)]=!![];const a23_0x20485a={};a23_0x20485a[a23_0xf69b32(0x206)]=a23_0xf69b32(0x1f7),exports[a23_0xf69b32(0x1fa)]=new winston[(a23_0xf69b32(0x1ed))]({'format':winston['format'][a23_0xf69b32(0x1f8)](winston['format']['timestamp'](a23_0x1d33bf),winston[a23_0xf69b32(0x203)][a23_0xf69b32(0x1f0)](a23_0x3ac95f),winston[a23_0xf69b32(0x203)][a23_0xf69b32(0x1f3)](_0x3a4fa0=>_0x3a4fa0[a23_0xf69b32(0x1f6)]+a23_0xf69b32(0x1e5)+_0x3a4fa0[a23_0xf69b32(0x1e6)]+':\x20'+_0x3a4fa0[a23_0xf69b32(0x1e7)])),'transports':[new winston['transports'][(a23_0xf69b32(0x202))](a23_0x20485a),new winston[(a23_0xf69b32(0x1fe))]['File']({'filename':path['join'](logDir,'events.log'),'level':a23_0xf69b32(0x205)})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0xf69b32(0x1f2))]({'filename':path[a23_0xf69b32(0x200)](logDir,a23_0xf69b32(0x1ea)),'level':'debug'})]};exports[a23_0xf69b32(0x1e9)]=new winston[(a23_0xf69b32(0x1ed))](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_0x485305=a24_0x2458;(function(_0x3df851,_0x290ab4){const _0x1b553d=a24_0x2458,_0x3322e3=_0x3df851();while(!![]){try{const _0x228e11=-parseInt(_0x1b553d(0x178))/0x1+-parseInt(_0x1b553d(0x17f))/0x2*(parseInt(_0x1b553d(0x189))/0x3)+parseInt(_0x1b553d(0x175))/0x4*(parseInt(_0x1b553d(0x17b))/0x5)+-parseInt(_0x1b553d(0x180))/0x6+parseInt(_0x1b553d(0x186))/0x7+parseInt(_0x1b553d(0x179))/0x8*(parseInt(_0x1b553d(0x187))/0x9)+-parseInt(_0x1b553d(0x17d))/0xa;if(_0x228e11===_0x290ab4)break;else _0x3322e3['push'](_0x3322e3['shift']());}catch(_0xdd58ad){_0x3322e3['push'](_0x3322e3['shift']());}}}(a24_0x5ed6,0x28348));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process[a24_0x485305(0x18a)][a24_0x485305(0x17a)]=0x1;function a24_0x2458(_0x21d4e9,_0x57e2ac){const _0x5ed6b7=a24_0x5ed6();return a24_0x2458=function(_0x245812,_0x1b179a){_0x245812=_0x245812-0x175;let _0x1898ed=_0x5ed6b7[_0x245812];return _0x1898ed;},a24_0x2458(_0x21d4e9,_0x57e2ac);}function run(_0x2f8b38){const _0x167472=a24_0x485305,_0x541581={};_0x541581[_0x167472(0x176)]=_0x167472(0x177),_0x541581[_0x167472(0x184)]='help';const _0x3bdce4=_0x541581;_0x2f8b38[_0x167472(0x17c)](HELP_HEADER_MESSAGE[_0x167472(0x183)])[_0x167472(0x185)](_0x3bdce4[_0x167472(0x176)])[_0x167472(0x17e)]()[_0x167472(0x182)](_0x3bdce4['kYcPv'])[_0x167472(0x181)](HELP_FOOTER_MESSAGE);}function a24_0x5ed6(){const _0xe805ac=['zcCvV','commands','22544rzqwmE','1792888HNYdqO','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','535420BmbmPd','usage','622870rFliKB','demandCommand','14TYHKlv','616188MsGSmv','epilogue','help','root','kYcPv','commandDir','991417OrWycP','9boVJZP','exports','51693KSCkAO','env','4RQkpLr'];a24_0x5ed6=function(){return _0xe805ac;};return a24_0x5ed6();}module[a24_0x485305(0x188)]=run;
|