browserstack-node-sdk 1.40.4 → 1.40.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/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/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/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/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.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/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.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/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a15_0x404f(_0x1dcc76,_0x1250dc){const _0x26cd22=a15_0x26cd();return a15_0x404f=function(_0x404fa1,_0x5606bb){_0x404fa1=_0x404fa1-0x1db;let _0x577f9b=_0x26cd22[_0x404fa1];return _0x577f9b;},a15_0x404f(_0x1dcc76,_0x1250dc);}const a15_0x4730d7=a15_0x404f;(function(_0x2653b6,_0x159a3e){const _0x5de15e=a15_0x404f,_0x25319e=_0x2653b6();while(!![]){try{const _0x369361=-parseInt(_0x5de15e(0x1f7))/0x1+-parseInt(_0x5de15e(0x200))/0x2*(-parseInt(_0x5de15e(0x22a))/0x3)+parseInt(_0x5de15e(0x220))/0x4*(-parseInt(_0x5de15e(0x217))/0x5)+-parseInt(_0x5de15e(0x1f0))/0x6*(-parseInt(_0x5de15e(0x1f3))/0x7)+-parseInt(_0x5de15e(0x22f))/0x8*(parseInt(_0x5de15e(0x21f))/0x9)+-parseInt(_0x5de15e(0x21e))/0xa+parseInt(_0x5de15e(0x216))/0xb*(parseInt(_0x5de15e(0x229))/0xc);if(_0x369361===_0x159a3e)break;else _0x25319e['push'](_0x25319e['shift']());}catch(_0x220443){_0x25319e['push'](_0x25319e['shift']());}}}(a15_0x26cd,0x26bda));const fs=require('fs'),got=require(a15_0x4730d7(0x211)),{table}=require(a15_0x4730d7(0x1dc)),{v4:uuidv4}=require(a15_0x4730d7(0x21d)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x4730d7(0x219)),{getCredentialsPath,getAuthHeader}=require(a15_0x4730d7(0x208)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a15_0x26cd(){const _0xa58154=['944ShfhQN','KdWAI','allGrids','table','handler','command','GET','epilogue','cikGn','keqRZ','queued','list-grids-called','log','name','BxjSJ','nGIkR','INFO','https://','DAhEg','ijHKb','/packages/cli/get-all-grids','readFileSync','pRYtH','11982FfHOQs','statusCode','iSuXF','322UrtlsV','usage','grid','exit','78172MsNRKH','dQGWf','ERROR','username','ooBmq','unauthorised','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','forEach','49750CkJUbe','Kszgf','Browserstack','error','init-not-called','stringify','type','options','../../utils/utilityMethods','bcEPY','parse','password','AVqTM','/packages/cli/get-grids','all-grids','desc','htRcO','got','description','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','cluster-name','status','3498IfbJMF','5465iEuksu','grid-id','../../config/constants','existsSync','UesUk','argv','uuid','2656360FKslCS','8370OGItZm','20NyrRsu','unknown-error','VlLWV','\x0aFound\x20the\x20following\x20grids:\x0a','stack','grid-name','kYhea','help','grids','13272QlMhol','21IlWHkr','body','builder','running','push'];a15_0x26cd=function(){return _0xa58154;};return a15_0x26cd();}exports[a15_0x4730d7(0x1de)]=a15_0x4730d7(0x228),exports[a15_0x4730d7(0x20f)]=a15_0x4730d7(0x1fe),exports[a15_0x4730d7(0x22c)]=function(_0x2d6822){const _0x229190=a15_0x4730d7,_0xa63f3d={};_0xa63f3d[_0x229190(0x201)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0xa63f3d[_0x229190(0x230)]='boolean',_0xa63f3d[_0x229190(0x209)]=_0x229190(0x227);const _0x563bba=_0xa63f3d,_0x5c6444={};_0x5c6444[_0x229190(0x212)]=_0x563bba['Kszgf'],_0x5c6444[_0x229190(0x206)]=_0x563bba[_0x229190(0x230)];const _0x166273={};return _0x166273[_0x229190(0x20e)]=_0x5c6444,_0x2d6822[_0x229190(0x1f4)](HELP_HEADER_MESSAGE['list'][_0x229190(0x1f5)])[_0x229190(0x1e0)](HELP_FOOTER_MESSAGE)[_0x229190(0x207)](_0x166273)['help'](_0x563bba['bcEPY'])[_0x229190(0x21c)];},exports[a15_0x4730d7(0x1dd)]=async function(_0x2ba063){const _0x3bc04b=a15_0x4730d7,_0x341a06={'tbJaf':function(_0x46df17){return _0x46df17();},'cikGn':function(_0x5ae413){return _0x5ae413();},'htRcO':_0x3bc04b(0x1fd),'AVqTM':function(_0x36e660,_0x2fc4a7,_0x403b00,_0x493fb6,_0x30fd8b,_0x1bf137,_0x58f351){return _0x36e660(_0x2fc4a7,_0x403b00,_0x493fb6,_0x30fd8b,_0x1bf137,_0x58f351);},'BxjSJ':_0x3bc04b(0x1e4),'VJTbO':_0x3bc04b(0x204),'ASzQj':function(_0x1f3c81){return _0x1f3c81();},'VlLWV':_0x3bc04b(0x1df),'nKklK':function(_0x4fd594,_0x440ba5,_0x29cdb2){return _0x4fd594(_0x440ba5,_0x29cdb2);},'ijHKb':function(_0x5b5d2f,_0x25633c,_0x5072ca,_0x26263f,_0x3137c3,_0x3692ca,_0x37b007){return _0x5b5d2f(_0x25633c,_0x5072ca,_0x26263f,_0x3137c3,_0x3692ca,_0x37b007);},'dQGWf':function(_0x5e09ff,_0x1a2f6d,_0x365621){return _0x5e09ff(_0x1a2f6d,_0x365621);},'ooBmq':function(_0x9e6051,_0x4e5c3c){return _0x9e6051!==_0x4e5c3c;},'PQLCK':function(_0x2c4a56,_0x131bee){return _0x2c4a56===_0x131bee;},'UesUk':_0x3bc04b(0x223),'nGIkR':_0x3bc04b(0x218),'zldyb':_0x3bc04b(0x225),'iSuXF':_0x3bc04b(0x215),'pRYtH':'running','QsnjZ':'queued','Typhp':_0x3bc04b(0x214),'keqRZ':function(_0x53fb2f,_0x57f7e1){return _0x53fb2f(_0x57f7e1);},'kYhea':_0x3bc04b(0x213),'qPQbo':_0x3bc04b(0x1fc),'DAhEg':'server-error','nfcrs':_0x3bc04b(0x221)};try{global_registry['requestId']=_0x341a06['tbJaf'](uuidv4);!fs[_0x3bc04b(0x21a)](_0x341a06[_0x3bc04b(0x1e1)](getCredentialsPath))&&(console[_0x3bc04b(0x203)](_0x341a06[_0x3bc04b(0x210)]),await _0x341a06[_0x3bc04b(0x20c)](sendInstrumentationEvent,_0x2ba063,_0x341a06[_0x3bc04b(0x1e7)],messageTypes[_0x3bc04b(0x1f9)],_0x341a06['VJTbO'],null,_0x2ba063),process[_0x3bc04b(0x1f6)](0x1));const _0x9627d=JSON[_0x3bc04b(0x20a)](fs[_0x3bc04b(0x1ee)](_0x341a06['ASzQj'](getCredentialsPath)));let _0x1e651a=_0x3bc04b(0x1ea)+AG_API_URL+_0x3bc04b(0x20d);_0x2ba063[_0x3bc04b(0x1db)]&&(_0x1e651a=_0x3bc04b(0x1ea)+AG_API_URL+_0x3bc04b(0x1ed));const _0x3bb7ad={'method':_0x341a06[_0x3bc04b(0x222)],'headers':_0x341a06['nKklK'](getAuthHeader,_0x9627d[_0x3bc04b(0x202)][_0x3bc04b(0x1fa)],_0x9627d['Browserstack'][_0x3bc04b(0x20b)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x9627d['Browserstack'][_0x3bc04b(0x1fa)],global_registry['bstackAccesskey']=_0x9627d[_0x3bc04b(0x202)]['password'],_0x341a06['ijHKb'](sendInstrumentationEvent,_0x2ba063,_0x341a06['BxjSJ'],messageTypes[_0x3bc04b(0x1e9)],null,null,_0x2ba063);const _0x425101=await _0x341a06[_0x3bc04b(0x1f8)](got,_0x1e651a,_0x3bb7ad);if(_0x341a06[_0x3bc04b(0x1fb)](_0x425101,null)&&_0x341a06[_0x3bc04b(0x1fb)](_0x425101,undefined)&&_0x341a06['PQLCK'](_0x425101[_0x3bc04b(0x1f1)],0xc8)){const _0x3b238a=JSON[_0x3bc04b(0x20a)](_0x425101[_0x3bc04b(0x22b)]);console[_0x3bc04b(0x1e5)](_0x341a06[_0x3bc04b(0x21b)]);const _0x4d4f53=[];_0x4d4f53[_0x3bc04b(0x22e)]([_0x341a06[_0x3bc04b(0x1e8)],_0x341a06['zldyb'],_0x341a06[_0x3bc04b(0x1f2)],_0x341a06[_0x3bc04b(0x1ef)],_0x341a06['QsnjZ'],_0x341a06['Typhp']]),_0x3b238a[_0x3bc04b(0x1ff)](_0x11b7d8=>{const _0x207afa=_0x3bc04b;_0x4d4f53['push']([_0x11b7d8['id'],_0x11b7d8[_0x207afa(0x1e6)],_0x11b7d8['status'],_0x11b7d8[_0x207afa(0x22d)],_0x11b7d8[_0x207afa(0x1e3)],_0x11b7d8['clusterName']]);}),console[_0x3bc04b(0x1e5)](_0x341a06[_0x3bc04b(0x1e2)](table,_0x4d4f53)),process[_0x3bc04b(0x1f6)](0x0);}_0x341a06['PQLCK'](_0x425101[_0x3bc04b(0x1f1)],0x191)&&(console[_0x3bc04b(0x203)](_0x341a06[_0x3bc04b(0x226)]),await _0x341a06['ijHKb'](sendInstrumentationEvent,_0x2ba063,_0x341a06[_0x3bc04b(0x1e7)],messageTypes[_0x3bc04b(0x1f9)],_0x341a06['qPQbo'],null,_0x2ba063),process[_0x3bc04b(0x1f6)](0x1)),console['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x3bc04b(0x205)](_0x425101)),await _0x341a06[_0x3bc04b(0x20c)](sendInstrumentationEvent,_0x2ba063,_0x341a06['BxjSJ'],messageTypes['ERROR'],_0x341a06[_0x3bc04b(0x1eb)],_0x425101,_0x2ba063),process[_0x3bc04b(0x1f6)](0x1);}catch(_0x5ad55a){console[_0x3bc04b(0x203)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x5ad55a[_0x3bc04b(0x224)]),await _0x341a06[_0x3bc04b(0x1ec)](sendInstrumentationEvent,_0x2ba063,_0x341a06['BxjSJ'],messageTypes[_0x3bc04b(0x1f9)],_0x341a06['nfcrs'],_0x5ad55a,_0x2ba063),process['exit'](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16_0x253cfc=a16_0x3b75;function a16_0x3b75(_0x49d4bc,_0x5f171c){const _0x325017=a16_0x3250();return a16_0x3b75=function(_0x3b75ec,_0x573f64){_0x3b75ec=_0x3b75ec-0xc4;let _0x396574=_0x325017[_0x3b75ec];return _0x396574;},a16_0x3b75(_0x49d4bc,_0x5f171c);}(function(_0x56bd72,_0x572b3e){const _0x6c7fcb=a16_0x3b75,_0x910763=_0x56bd72();while(!![]){try{const _0x1ec7a7=-parseInt(_0x6c7fcb(0xda))/0x1*(parseInt(_0x6c7fcb(0xd1))/0x2)+parseInt(_0x6c7fcb(0xc8))/0x3+parseInt(_0x6c7fcb(0xc4))/0x4+-parseInt(_0x6c7fcb(0xd0))/0x5+parseInt(_0x6c7fcb(0xde))/0x6*(parseInt(_0x6c7fcb(0xcb))/0x7)+parseInt(_0x6c7fcb(0xdc))/0x8+-parseInt(_0x6c7fcb(0xce))/0x9;if(_0x1ec7a7===_0x572b3e)break;else _0x910763['push'](_0x910763['shift']());}catch(_0x4fbe6a){_0x910763['push'](_0x910763['shift']());}}}(a16_0x3250,0xe08a9));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x253cfc(0xc7));exports[a16_0x253cfc(0xd4)]=a16_0x253cfc(0xdd),exports[a16_0x253cfc(0xd8)]=a16_0x253cfc(0xcd),exports[a16_0x253cfc(0xc6)]=function(_0x56e2bd){const _0x866edc=a16_0x253cfc,_0x2deaff={};_0x2deaff['naMHf']=_0x866edc(0xd9),_0x2deaff['nxcVi']=_0x866edc(0xc9);const _0x2896c0=_0x2deaff;return _0x56e2bd[_0x866edc(0xca)](HELP_HEADER_MESSAGE[_0x866edc(0xcf)])[_0x866edc(0xcc)](HELP_FOOTER_MESSAGE)[_0x866edc(0xd3)](_0x2896c0[_0x866edc(0xd5)])[_0x866edc(0xd2)]()[_0x866edc(0xdb)]()[_0x866edc(0xd6)]()[_0x866edc(0xc9)](_0x2896c0[_0x866edc(0xc5)]);},exports[a16_0x253cfc(0xd7)]=function(_0x3312e3){};function a16_0x3250(){const _0x2b7dc6=['epilogue','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','13244886yAKCAA','pre_check','7960555UiNEKs','2096qxvTWz','demandCommand','commandDir','command','naMHf','strict','handler','desc','precheck_commands','1604KljztN','recommendCommands','4688992cpTuHh','pre-check','1804284BssexC','7140284ovlpqL','nxcVi','builder','../config/constants','4466997UwPLLJ','help','usage','42hbjAlW'];a16_0x3250=function(){return _0x2b7dc6;};return a16_0x3250();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a17_0x450e64=a17_0x3ebc;(function(_0x438381,_0x2a43c8){const _0x599762=a17_0x3ebc,_0x37ea01=_0x438381();while(!![]){try{const _0x2a7a2c=-parseInt(_0x599762(0x211))/0x1+parseInt(_0x599762(0x197))/0x2+-parseInt(_0x599762(0x18e))/0x3*(-parseInt(_0x599762(0x1c4))/0x4)+-parseInt(_0x599762(0x226))/0x5*(parseInt(_0x599762(0x22a))/0x6)+-parseInt(_0x599762(0x1de))/0x7*(parseInt(_0x599762(0x187))/0x8)+parseInt(_0x599762(0x1a4))/0x9+parseInt(_0x599762(0x218))/0xa;if(_0x2a7a2c===_0x2a43c8)break;else _0x37ea01['push'](_0x37ea01['shift']());}catch(_0x40fb65){_0x37ea01['push'](_0x37ea01['shift']());}}}(a17_0x4f10,0xb9627));function a17_0x4f10(){const _0x4d0870=['13191858EsWyWA','xNRIj','.txt','throwHttpErrors','is\x20already\x20present','SOuqL','uachv','ktlxO','GET','ililN','ERROR','name','mOovk','oSZwA','Status:\x20','wAErJ','PGJAC','VqULX','cWhqr','getUTCFullYear','data','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','description',']\x20status\x20:\x20','xpoiK','cBYku','FziXi','INFO','HlbdA','uuid','Wgmdq','headers','2000urYeyj','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/utilityMethods','pre_check','error\x20stack\x20:\x20','help','toolInstalledResp','mqbSr','VzoDF','code','Vyhhi','KieFN','gKQUK','XPDWU','<PasswordPlaceholder>','header','CAecR','handler','qYRXU','CLOUD_PROVIDER','debug','PlcZq','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','Whitelisted\x20browserstack','getUTCHours','TREgd','158683BMnHKJ','mcBEe','Missing\x20required\x20arguments:\x20','BQasT','jOGol','TgyPl','https://','EmJWf','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','fwKuI','EcXlk','pre-check','error','authHeader','checkAccess','MdduE','nSQEo','Orntb','clusterName','fzThK','cXWVL','FfbsU','HvHCY','Message:\x20','jWqia','CCptm','aIiEK','readFileSync','Failure','TkMlc','XNDSD','stringify','FQoeg','hiikl','PCrhS','desc','TLSv1_2_client_method','grid\x20profile\x20flow\x20','info','\x20data\x20:\x20','../../cloudproviders/utils','PLDgj','BPbWe','eLTtO','cluster-check-failed-','isTls1_2_SUPPORTED','sEDsC','ZLuHM','gWKum','LIehg','gZhfP','1372122WcHBwi','type','TphwT','message','NokEz','pTYAd','username','4414410xdNULq','HaAlL','qFuSK','getUTCMonth','rpVoi','dummy-grid','fVuIT','Cluster\x20`','clusterRegion','kNEVF','fBQMT','lvIgj','XVWwm','join','1195JSINcs','`\x20already\x20exists','cluster-name','BRZrV','18474ZaZyOM','hbHws','RMGRo','CIppA','pre-check-grid-called','jEUiH','SWxHq','exit','FPelM','find','OrBvd','ydwjP','Browserstack','uOQvE','`\x20is\x20present\x20in\x20region\x20`','0|2|3|1|4','push','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','ozOLl','stack','\x20region\x20-\x20','MzUdM','replace','VrGhW','gnHwN','options','TynHF','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','vUoWo','GDjMG','pre-check-failed','log/report_','\x20error\x20:\x20','Setting\x20cloud\x20provider\x20as\x20','reconnecting-websocket','requestId','epilogue','pre-check-cluster-args-not-passed','KNpKG','will\x20be\x20created','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','TNPmT','LuZex','ZxTGY','User\x20Access','Report\x20saved\x20in\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','fJerd','N/A','\x20\x20Message:\x20','getUTCMinutes','zdZNR','JHwaR','INBVo','\x20\x20Code:\x20','Pre-check\x20running\x20for\x20Cloud\x20-\x20','qprZh','rgddH','status','parse','sendEventToBackend','DbhFQ','argv','fUmKw','zBttW','\x20\x20Stack:\x20','lVGPK','command','JCMPq','ZRnni','usage','region','isCliToolInstalled','cloud-provider-not-supported','oVWDF','ZuRFR','LiDwp','wXKeb','eUKSJ','zxjKX','cloud-provider','response','PRItW','grid-profile','utf-8','../../config/constants','.\x20Please\x20provide\x20all\x20required\x20arguments.','Success','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','unable\x20to\x20verify\x20if\x20cluster\x20`','296zLHFjT','WUoiD','gridProfile','split','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','connectionTimeout','Tool\x20Installed','7305UZCDGh','eyoXP','ffZQq','SSL\x20Configured','iCESH','bstackAccesskey','WaIZM','gkBQK','XurxR','1162776PqjNVP','krvTj','Cluster\x20','IObKk','Srimi','cloudProvider','Failed\x20in\x20pre-check!\x20Error:\x20','XaeNy','WEMVC','dvxDx','bfAzZ','LOG','===\x20Precheck\x20Report\x20-\x20'];a17_0x4f10=function(){return _0x4d0870;};return a17_0x4f10();}const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x450e64(0x1c1)),ReconnectingWebSocket=require(a17_0x450e64(0x24c)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x450e64(0x1c6)),{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_0x450e64(0x27f)),{getCloudProviderObjectWithOutInit}=require(a17_0x450e64(0x206)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x450e64(0x26d)]='grid',exports[a17_0x450e64(0x201)]=a17_0x450e64(0x245),exports['builder']=function(_0x450b79){const _0x5e51ac=a17_0x450e64,_0x3955d8={};_0x3955d8['TphwT']=_0x5e51ac(0x1b9),_0x3955d8[_0x5e51ac(0x1a5)]='string',_0x3955d8['CIppA']='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x3955d8[_0x5e51ac(0x237)]=_0x5e51ac(0x282),_0x3955d8['WaIZM']=_0x5e51ac(0x258),_0x3955d8[_0x5e51ac(0x1cc)]=_0x5e51ac(0x1c9);const _0x3c9d43=_0x3955d8,_0x1c433b={};_0x1c433b['description']=_0x3c9d43[_0x5e51ac(0x213)],_0x1c433b[_0x5e51ac(0x212)]=_0x3c9d43[_0x5e51ac(0x1a5)];const _0x1c69c1={};_0x1c69c1['description']=_0x3c9d43[_0x5e51ac(0x22d)],_0x1c69c1[_0x5e51ac(0x212)]=_0x3c9d43[_0x5e51ac(0x1a5)];const _0xb5633={};_0xb5633[_0x5e51ac(0x1ba)]=_0x3c9d43[_0x5e51ac(0x237)],_0xb5633[_0x5e51ac(0x212)]=_0x3c9d43['xNRIj'];const _0x4e8dd9={};_0x4e8dd9['description']=_0x3c9d43[_0x5e51ac(0x194)],_0x4e8dd9[_0x5e51ac(0x212)]=_0x3c9d43[_0x5e51ac(0x1a5)];const _0x12faeb={};return _0x12faeb[_0x5e51ac(0x228)]=_0x1c433b,_0x12faeb[_0x5e51ac(0x27a)]=_0x1c69c1,_0x12faeb['region']=_0xb5633,_0x12faeb[_0x5e51ac(0x27d)]=_0x4e8dd9,_0x450b79[_0x5e51ac(0x270)](HELP_HEADER_MESSAGE['pre_check'])[_0x5e51ac(0x24e)](HELP_FOOTER_MESSAGE)[_0x5e51ac(0x243)](_0x12faeb)[_0x5e51ac(0x1c9)](_0x3c9d43[_0x5e51ac(0x1cc)])[_0x5e51ac(0x268)];};function a17_0x3ebc(_0x14e36f,_0x436c3d){const _0x4f10e4=a17_0x4f10();return a17_0x3ebc=function(_0x3ebce2,_0x5b600c){_0x3ebce2=_0x3ebce2-0x187;let _0x464683=_0x4f10e4[_0x3ebce2];return _0x464683;},a17_0x3ebc(_0x14e36f,_0x436c3d);}async function inputValidation(_0x5e2b1a,_0x36f66b){const _0x4409f8=a17_0x450e64,_0x1f5d26={'KieFN':_0x4409f8(0x27a),'HvHCY':_0x4409f8(0x23b),'BPbWe':'error','VrGhW':function(_0x2ea006,_0x108ef5){return _0x2ea006+_0x108ef5;},'qECKS':_0x4409f8(0x281),'EcXlk':_0x4409f8(0x1fa),'nSQEo':function(_0xecfb26,_0x1f277c){return _0xecfb26||_0x1f277c;},'PCrhS':_0x4409f8(0x25a),'dhcEm':'Error\x20Details:\x0a','fzThK':_0x4409f8(0x271),'ydwjP':_0x4409f8(0x1a8),'JGVzz':_0x4409f8(0x251),'ililN':_0x4409f8(0x228),'BQasT':function(_0x4c2125,_0x236883){return _0x4c2125===_0x236883;},'CAecR':_0x4409f8(0x26a),'wXKeb':function(_0x4390b6,_0x185713){return _0x4390b6===_0x185713;},'XurxR':_0x4409f8(0x253),'jWqia':function(_0x1a5eec,_0x1858af){return _0x1a5eec!==_0x1858af;},'fBQMT':'ecYDV','cXWVL':'pBQWw','ffZQq':_0x4409f8(0x1dd),'sEDsC':_0x4409f8(0x1f7),'zxjKX':function(_0x1d93b9,_0x1968f5){return _0x1d93b9!==_0x1968f5;},'oSZwA':_0x4409f8(0x1ce),'FQoeg':function(_0xe4f4d,_0x69899e){return _0xe4f4d>_0x69899e;},'aIiEK':function(_0x36f348,_0x2e8d64){return _0x36f348!==_0x2e8d64;},'Sgqdj':_0x4409f8(0x22f),'ZuRFR':_0x4409f8(0x242),'mGbXN':function(_0x32a78d,_0x500102,_0x471d12,_0x212ee4,_0x586d2b,_0x528154,_0x10e990,_0x33a763){return _0x32a78d(_0x500102,_0x471d12,_0x212ee4,_0x586d2b,_0x528154,_0x10e990,_0x33a763);},'ZLuHM':_0x4409f8(0x22e),'qYRXU':_0x4409f8(0x24f),'bomSI':function(_0x27f6d4,_0x1535f4){return _0x27f6d4===_0x1535f4;},'WEMVC':_0x4409f8(0x26f),'vUoWo':'cHUcR','ktlxO':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','EmJWf':function(_0x2dde3d,_0x1a230b,_0x41faed,_0x19e28a,_0x174752,_0x488a36,_0x4aead5,_0x5127ff){return _0x2dde3d(_0x1a230b,_0x41faed,_0x19e28a,_0x174752,_0x488a36,_0x4aead5,_0x5127ff);},'LiDwp':_0x4409f8(0x273),'TkMlc':'OUGgT','gfDQb':_0x4409f8(0x23c),'INBVo':_0x4409f8(0x1aa),'gWKum':_0x4409f8(0x1b3),'fwKuI':_0x4409f8(0x1ac),'ZsgmW':function(_0x431db5,_0x2b1d8c,_0x13690c){return _0x431db5(_0x2b1d8c,_0x13690c);},'NYFwQ':function(_0x1d88d7,_0x5a5c98,_0xa792c7,_0x538cc3,_0x1b70cf,_0x1526fc){return _0x1d88d7(_0x5a5c98,_0xa792c7,_0x538cc3,_0x1b70cf,_0x1526fc);},'zyhKg':_0x4409f8(0x1e9),'XaeNy':_0x4409f8(0x27d),'IObKk':_0x4409f8(0x259),'FfbsU':'KUTGS','BRZrV':function(_0x55f5ff,_0x2a71a6){return _0x55f5ff(_0x2a71a6);},'mqbSr':_0x4409f8(0x1b0),'TynHF':_0x4409f8(0x21e),'ZxTGY':'pre-check-grid-profile-empty','fMzhj':'qnrHX','Wgmdq':_0x4409f8(0x1e3),'iCESH':function(_0x38c9f4,_0x5d0dce){return _0x38c9f4!==_0x5d0dce;},'rpVoi':_0x4409f8(0x19b),'Orntb':_0x4409f8(0x198),'eMCpu':'Grid\x20profile\x20fetched\x20for\x20pre-check','hbHws':function(_0x5eb707,_0x3971f0){return _0x5eb707!==_0x3971f0;},'pTYAd':_0x4409f8(0x209),'rgddH':_0x4409f8(0x27c),'GDjMG':_0x4409f8(0x269),'PlcZq':function(_0x21bf9e,_0x1c9f37,_0x1a574e,_0x384031,_0x25e6c9,_0x3dae9c,_0x185953,_0x2231ab){return _0x21bf9e(_0x1c9f37,_0x1a574e,_0x384031,_0x25e6c9,_0x3dae9c,_0x185953,_0x2231ab);}};let _0x3a9398;try{if(_0x1f5d26[_0x4409f8(0x1e1)](_0x1f5d26[_0x4409f8(0x1d4)],_0x1f5d26[_0x4409f8(0x1d4)])){if(_0x5e2b1a[_0x4409f8(0x1f0)]||_0x5e2b1a[_0x4409f8(0x19c)]||_0x5e2b1a['region']){if(_0x1f5d26[_0x4409f8(0x277)](_0x1f5d26['XurxR'],_0x1f5d26[_0x4409f8(0x196)])){const _0x55ce30=[];!_0x5e2b1a[_0x4409f8(0x1f0)]&&(_0x1f5d26[_0x4409f8(0x1f6)](_0x1f5d26[_0x4409f8(0x222)],_0x1f5d26[_0x4409f8(0x1f2)])?_0x55ce30[_0x4409f8(0x23a)](_0x1f5d26[_0x4409f8(0x1ad)]):_0x5caea7[_0x4409f8(0x204)](_0x4409f8(0x21f)+_0x5e20e2['clusterName']+_0x4409f8(0x227)));;!_0x5e2b1a[_0x4409f8(0x19c)]&&(_0x1f5d26[_0x4409f8(0x1e1)](_0x1f5d26[_0x4409f8(0x190)],_0x1f5d26[_0x4409f8(0x20c)])?_0x106ef5[_0x4409f8(0x23a)](_0x1f5d26[_0x4409f8(0x1cf)]):_0x55ce30[_0x4409f8(0x23a)](_0x1f5d26[_0x4409f8(0x1cf)]));;!_0x5e2b1a[_0x4409f8(0x271)]&&(_0x1f5d26[_0x4409f8(0x279)](_0x1f5d26[_0x4409f8(0x1b1)],_0x1f5d26['oSZwA'])?(_0x68b4b6[_0x4409f8(0x1ea)](_0x1f5d26['HvHCY']),_0x13a9f6[_0x4409f8(0x231)](0x1)):_0x55ce30['push'](_0x1f5d26[_0x4409f8(0x1f1)]));;if(_0x1f5d26[_0x4409f8(0x1fe)](_0x55ce30['length'],0x0)){if(_0x1f5d26[_0x4409f8(0x1f8)](_0x1f5d26['Sgqdj'],_0x1f5d26[_0x4409f8(0x275)]))_0x3a9398=_0x4409f8(0x1e0)+_0x55ce30[_0x4409f8(0x225)](',\x20')+_0x4409f8(0x280),await _0x1f5d26['mGbXN'](reportToGalactusAndSendToEDS,_0x5e2b1a,_0x36f66b,_0x3a9398,messageTypes[_0x4409f8(0x1ae)],_0x1f5d26[_0x4409f8(0x20d)],_0x1f5d26[_0x4409f8(0x1d6)],_0x1f5d26[_0x4409f8(0x208)]),logger[_0x4409f8(0x1ea)](_0x3a9398),process['exit'](0x1);else{const _0x368fc8={};_0x368fc8[_0x4409f8(0x212)]=_0x6c8f6c[_0x4409f8(0x1a2)],_0x368fc8[_0x4409f8(0x214)]=_0x5d0fcc,_0x23c471[_0x4409f8(0x266)](_0x2f7304,_0x368fc8,_0x1f5d26[_0x4409f8(0x208)],!![]);}}if(!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0x5e2b1a[_0x4409f8(0x19c)]['toLowerCase']())){if(_0x1f5d26['bomSI'](_0x1f5d26[_0x4409f8(0x19f)],_0x1f5d26[_0x4409f8(0x246)])){const {header:_0xfd79f6,response:_0x318ecc}=_0xee9e79,{status:_0x2f4020,data:_0x414bcf,error:_0x50857f}=_0x318ecc;_0x34f6e8+=_0xfd79f6+'\x20#'+_0x1f5d26[_0x4409f8(0x241)](_0x422969,0x1)+'\x0a',_0x57fc4f+=_0x4409f8(0x1b2)+(_0x2f4020?_0x1f5d26['qECKS']:_0x1f5d26[_0x4409f8(0x1e8)])+'\x0a',_0x1953a4+=_0x4409f8(0x1f5)+_0x1f5d26[_0x4409f8(0x1ee)](_0x414bcf,_0x1f5d26[_0x4409f8(0x200)])+'\x0a',_0x50857f&&(_0x580f23+=_0x1f5d26['dhcEm'],_0x444b91+='\x20\x20Message:\x20'+(_0x50857f['message']||_0x1f5d26[_0x4409f8(0x200)])+'\x0a',_0x20cf73+=_0x4409f8(0x260)+(_0x50857f[_0x4409f8(0x1cd)]||_0x1f5d26['PCrhS'])+'\x0a',_0x51bfee+=_0x4409f8(0x26b)+(_0x50857f[_0x4409f8(0x23d)]||_0x1f5d26[_0x4409f8(0x200)])+'\x0a'),_0x59d6c1+='\x0a\x0a';}else _0x3a9398=_0x1f5d26[_0x4409f8(0x1ab)],await _0x1f5d26[_0x4409f8(0x1e5)](reportToGalactusAndSendToEDS,_0x5e2b1a,_0x36f66b,_0x3a9398,messageTypes[_0x4409f8(0x1ae)],_0x1f5d26[_0x4409f8(0x20d)],_0x1f5d26[_0x4409f8(0x276)],_0x1f5d26['BPbWe']),logger['error'](_0x3a9398),!_0x5e2b1a[_0x4409f8(0x19c)]&&(_0x1f5d26[_0x4409f8(0x1f6)](_0x1f5d26[_0x4409f8(0x1fb)],_0x1f5d26['gfDQb'])?(logger[_0x4409f8(0x204)](_0x4409f8(0x24b)+DEFAULT_CLUSTER_DETAILS[_0x4409f8(0x1d7)]+'\x20'),_0x5e2b1a[_0x4409f8(0x19c)]=DEFAULT_CLUSTER_DETAILS[_0x4409f8(0x1d7)]):_0x303ab8[_0x4409f8(0x1ea)](_0x4409f8(0x1c8)+_0x12e2ab[_0x4409f8(0x1ea)]['stack']));}global_registry[_0x4409f8(0x1f0)]=_0x5e2b1a[_0x4409f8(0x1f0)],global_registry[_0x4409f8(0x19c)]=_0x5e2b1a[_0x4409f8(0x19c)],global_registry[_0x4409f8(0x220)]=_0x5e2b1a[_0x4409f8(0x271)];}else _0x1a6ae7[_0x4409f8(0x23a)](_0x1f5d26[_0x4409f8(0x1f1)]);}else{if(_0x5e2b1a[_0x4409f8(0x189)]){if(_0x1f5d26['jWqia'](_0x1f5d26[_0x4409f8(0x25f)],_0x1f5d26[_0x4409f8(0x20e)])){global_registry['gridProfile']=_0x5e2b1a['gridProfile'],logger[_0x4409f8(0x1d8)](_0x4409f8(0x203)+_0x5e2b1a[_0x4409f8(0x189)]);const _0x593df8=_0x4409f8(0x1e4)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x2a4f98={};_0x2a4f98['method']=_0x1f5d26[_0x4409f8(0x1e7)],_0x2a4f98[_0x4409f8(0x1c3)]=global_registry[_0x4409f8(0x1eb)],_0x2a4f98[_0x4409f8(0x1a7)]=![];const _0x1bc55c=_0x2a4f98,_0x2e763b=await _0x1f5d26['ZsgmW'](got,_0x593df8,_0x1bc55c),_0x21cb1a=await _0x1f5d26['NYFwQ'](responseValidation,_0x2e763b,_0x1f5d26['zyhKg'],_0x1f5d26[_0x4409f8(0x19e)],_0x5e2b1a,_0x36f66b);let _0x53ecde={};if(_0x1f5d26[_0x4409f8(0x1e1)](_0x21cb1a,0xc8)){if(_0x1f5d26[_0x4409f8(0x1f8)](_0x1f5d26[_0x4409f8(0x19a)],_0x1f5d26[_0x4409f8(0x1f3)])){const _0x186ed1=JSON['parse'](_0x2e763b['body']),_0x1ba056=_0x186ed1[_0x4409f8(0x233)](_0xcb2ea4=>_0xcb2ea4[_0x4409f8(0x1af)]===_0x5e2b1a[_0x4409f8(0x189)])||null;_0x1f5d26[_0x4409f8(0x229)](isUndefined,_0x1ba056)?_0x1f5d26['wXKeb'](_0x1f5d26[_0x4409f8(0x1cb)],_0x1f5d26[_0x4409f8(0x244)])?(_0x4161c9+=_0x1f5d26['dhcEm'],_0x13af88+=_0x4409f8(0x25b)+(_0x2fe398[_0x4409f8(0x214)]||_0x1f5d26[_0x4409f8(0x200)])+'\x0a',_0xf58ad3+='\x20\x20Code:\x20'+(_0x414382['code']||_0x1f5d26['PCrhS'])+'\x0a',_0xb844ab+=_0x4409f8(0x26b)+(_0x42dbbd['stack']||_0x1f5d26[_0x4409f8(0x200)])+'\x0a'):(_0x3a9398='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x5e2b1a[_0x4409f8(0x189)]+_0x4409f8(0x1e6),await _0x1f5d26[_0x4409f8(0x1e5)](reportToGalactusAndSendToEDS,_0x5e2b1a,_0x36f66b,_0x3a9398,messageTypes[_0x4409f8(0x1ae)],_0x1f5d26[_0x4409f8(0x20d)],_0x1f5d26[_0x4409f8(0x255)],_0x1f5d26[_0x4409f8(0x208)]),logger['error'](_0x3a9398),process[_0x4409f8(0x231)](0x1)):_0x1f5d26[_0x4409f8(0x1f6)](_0x1f5d26['fMzhj'],_0x1f5d26[_0x4409f8(0x1c2)])?_0x53ecde=_0x1ba056:_0x26d6e9+='Cluster\x20'+_0x14e42f['clusterName']+'\x20'+(_0x33a3fb?_0x1f5d26[_0x4409f8(0x235)]:_0x1f5d26['JGVzz'])+'\x0a\x0a';}else _0x49989e[_0x4409f8(0x204)]('['+_0x191fbe+_0x4409f8(0x1bb)+_0x5a493b[_0x4409f8(0x264)]+_0x4409f8(0x205)+_0x3157ad[_0x4409f8(0x1b8)]+'\x20error\x20:\x20'+_0x172f40['error']),_0x9c1321[_0x4409f8(0x1ea)]&&_0x2253cc[_0x4409f8(0x1ea)](_0x4409f8(0x1c8)+_0x763e23[_0x4409f8(0x1ea)]['stack']);}else _0x1f5d26[_0x4409f8(0x192)](_0x1f5d26[_0x4409f8(0x21c)],_0x1f5d26[_0x4409f8(0x1ef)])?process[_0x4409f8(0x231)](0x1):_0x57abc6[_0x4409f8(0x231)](0x1);const _0x382d6f={};_0x382d6f[_0x4409f8(0x212)]=WS_EVENTS[_0x4409f8(0x1a2)],_0x382d6f[_0x4409f8(0x214)]=_0x1f5d26['eMCpu'],webSocketUtils[_0x4409f8(0x266)](_0x36f66b,_0x382d6f),global_registry['cloudProvider']=_0x53ecde[_0x4409f8(0x19c)],global_registry['clusterRegion']=_0x53ecde[_0x4409f8(0x271)],global_registry[_0x4409f8(0x1f0)]=_0x53ecde[_0x4409f8(0x1f0)];}else _0x1f58e2+=_0x4409f8(0x199)+_0x1b6d6d[_0x4409f8(0x1f0)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';}else _0x1f5d26[_0x4409f8(0x22b)](_0x1f5d26[_0x4409f8(0x216)],_0x1f5d26[_0x4409f8(0x263)])?(logger[_0x4409f8(0x1ea)](_0x1f5d26[_0x4409f8(0x1f4)]),process[_0x4409f8(0x231)](0x1)):_0x38d88c[_0x4409f8(0x23a)](_0x1f5d26[_0x4409f8(0x1ad)]);}}else _0x1b38f4=_0x1935e1;}catch(_0x3d429d){_0x1f5d26[_0x4409f8(0x22b)](_0x1f5d26['GDjMG'],_0x1f5d26[_0x4409f8(0x247)])?(_0x446cf6[_0x4409f8(0x204)](_0x4409f8(0x24b)+_0x1e9117[_0x4409f8(0x1d7)]+'\x20'),_0x4e1cd4[_0x4409f8(0x19c)]=_0x3556bc[_0x4409f8(0x1d7)]):(_0x3a9398=_0x4409f8(0x1da)+_0x3d429d+':\x20'+_0x3d429d[_0x4409f8(0x23d)],logger[_0x4409f8(0x1ea)](_0x3a9398),await _0x1f5d26[_0x4409f8(0x1d9)](reportToGalactusAndSendToEDS,_0x5e2b1a,_0x36f66b,_0x3a9398,messageTypes['ERROR'],_0x1f5d26[_0x4409f8(0x20d)],_0x1f5d26[_0x4409f8(0x276)],_0x1f5d26[_0x4409f8(0x208)]),process[_0x4409f8(0x231)](0x1));}}function printResponse(_0x4a7ac3,_0x3fb122){const _0x58e95d=a17_0x450e64,_0x257692={};_0x257692['hiikl']=_0x58e95d(0x1b9),_0x257692[_0x58e95d(0x1a0)]='string',_0x257692[_0x58e95d(0x274)]=_0x58e95d(0x252),_0x257692[_0x58e95d(0x25e)]=_0x58e95d(0x282),_0x257692[_0x58e95d(0x26c)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x257692[_0x58e95d(0x267)]='help',_0x257692[_0x58e95d(0x1fc)]=function(_0x432dac,_0x42a9d5){return _0x432dac===_0x42a9d5;},_0x257692[_0x58e95d(0x22c)]=_0x58e95d(0x1d1),_0x257692['XrBSZ']=_0x58e95d(0x221);const _0x58c57d=_0x257692;logger[_0x58e95d(0x204)]('['+_0x4a7ac3+_0x58e95d(0x1bb)+_0x3fb122[_0x58e95d(0x264)]+_0x58e95d(0x205)+_0x3fb122[_0x58e95d(0x1b8)]+_0x58e95d(0x24a)+_0x3fb122[_0x58e95d(0x1ea)]);if(_0x3fb122[_0x58e95d(0x1ea)]){if(_0x58c57d['XNDSD'](_0x58c57d[_0x58e95d(0x22c)],_0x58c57d['XrBSZ'])){const _0x376a11={};_0x376a11[_0x58e95d(0x1ba)]=_0x58c57d[_0x58e95d(0x1ff)],_0x376a11[_0x58e95d(0x212)]=_0x58c57d[_0x58e95d(0x1a0)];const _0x254b66={};_0x254b66[_0x58e95d(0x1ba)]=_0x58c57d[_0x58e95d(0x274)],_0x254b66[_0x58e95d(0x212)]=_0x58c57d[_0x58e95d(0x1a0)];const _0x13f39b={};_0x13f39b[_0x58e95d(0x1ba)]=_0x58c57d['JHwaR'],_0x13f39b[_0x58e95d(0x212)]=_0x58c57d[_0x58e95d(0x1a0)];const _0x39bb7c={};_0x39bb7c[_0x58e95d(0x1ba)]=_0x58c57d[_0x58e95d(0x26c)],_0x39bb7c[_0x58e95d(0x212)]=_0x58c57d[_0x58e95d(0x1a0)];const _0x352efb={};return _0x352efb[_0x58e95d(0x228)]=_0x376a11,_0x352efb[_0x58e95d(0x27a)]=_0x254b66,_0x352efb[_0x58e95d(0x271)]=_0x13f39b,_0x352efb[_0x58e95d(0x27d)]=_0x39bb7c,_0x1bd31d['usage'](_0x2e2672[_0x58e95d(0x1c7)])[_0x58e95d(0x24e)](_0xd948f4)[_0x58e95d(0x243)](_0x352efb)[_0x58e95d(0x1c9)](_0x58c57d[_0x58e95d(0x267)])['argv'];}else logger[_0x58e95d(0x1ea)](_0x58e95d(0x1c8)+_0x3fb122[_0x58e95d(0x1ea)][_0x58e95d(0x23d)]);}}async function generateReport(_0x3c89cd,_0xfd6061){const _0x21d18b=a17_0x450e64,_0x43a787={'WUoiD':function(_0x455d3e,_0x52ab5a){return _0x455d3e+_0x52ab5a;},'VqULX':_0x21d18b(0x281),'LIehg':'Failure','NokEz':function(_0x3a943e,_0x20a052){return _0x3a943e||_0x20a052;},'KNpKG':'N/A','COPKl':'Error\x20Details:\x0a','eUKSJ':'Cluster\x20details\x0a-----------------------\x0a','xpoiK':function(_0xdfeb50,_0xbce705){return _0xdfeb50!=_0xbce705;},'lvIgj':_0x21d18b(0x1a8),'PGJAC':_0x21d18b(0x251),'SWxHq':function(_0x43d2ba){return _0x43d2ba();}};let _0x215557=_0x21d18b(0x1a3)+global_registry[_0x21d18b(0x19c)]+'\x20===\x0a\x0a';return _0x3c89cd['forEach']((_0x5d7c03,_0x5e545b)=>{const _0x43a160=_0x21d18b,{header:_0x5308d1,response:_0x4fe3c9}=_0x5d7c03,{status:_0x291178,data:_0x14ad88,error:_0x36aef4}=_0x4fe3c9;_0x215557+=_0x5308d1+'\x20#'+_0x43a787[_0x43a160(0x188)](_0x5e545b,0x1)+'\x0a',_0x215557+=_0x43a160(0x1b2)+(_0x291178?_0x43a787[_0x43a160(0x1b5)]:_0x43a787[_0x43a160(0x20f)])+'\x0a',_0x215557+=_0x43a160(0x1f5)+_0x43a787[_0x43a160(0x215)](_0x14ad88,_0x43a787[_0x43a160(0x250)])+'\x0a',_0x36aef4&&(_0x215557+=_0x43a787['COPKl'],_0x215557+='\x20\x20Message:\x20'+(_0x36aef4['message']||_0x43a787[_0x43a160(0x250)])+'\x0a',_0x215557+=_0x43a160(0x260)+(_0x36aef4[_0x43a160(0x1cd)]||_0x43a787[_0x43a160(0x250)])+'\x0a',_0x215557+=_0x43a160(0x26b)+(_0x36aef4[_0x43a160(0x23d)]||_0x43a787[_0x43a160(0x250)])+'\x0a'),_0x215557+='\x0a\x0a';}),_0x215557+=_0x43a787[_0x21d18b(0x278)],_0x43a787[_0x21d18b(0x1bc)](_0xfd6061,null)?_0x215557+='Cluster\x20'+global_registry['clusterName']+'\x20'+(_0xfd6061?_0x43a787[_0x21d18b(0x223)]:_0x43a787[_0x21d18b(0x1b4)])+'\x0a\x0a':_0x215557+=_0x21d18b(0x199)+global_registry[_0x21d18b(0x1f0)]+_0x21d18b(0x18b),_0x215557+=_0x43a787[_0x21d18b(0x230)](getSystemMetaData),_0x215557;};exports[a17_0x450e64(0x1d5)]=async function(_0x40d779){const _0x5035df=a17_0x450e64,_0x3d3984={'MdduE':function(_0x198112){return _0x198112();},'MzUdM':_0x5035df(0x1c5),'jOGol':function(_0x3ddb2d,_0x2d4aa6,_0xdb56fe,_0x102a2d,_0x274048,_0x3e35db,_0x1220c9,_0x1990f7){return _0x3ddb2d(_0x2d4aa6,_0xdb56fe,_0x102a2d,_0x274048,_0x3e35db,_0x1220c9,_0x1990f7);},'qprZh':'pre-check-grid-called','oYNLz':'credential-not-found','FPelM':_0x5035df(0x1ea),'qFuSK':function(_0x276636,_0x17f2b5,_0x46a42e,_0x10b27e,_0x22c51f,_0xb41575,_0x5cda83){return _0x276636(_0x17f2b5,_0x46a42e,_0x10b27e,_0x22c51f,_0xb41575,_0x5cda83);},'gKQUK':function(_0x1df682){return _0x1df682();},'REoty':'<UsernamePlaceholder>','cTZWa':_0x5035df(0x1d2),'gkBQK':function(_0x3dbdbc,_0x46348e,_0x514271){return _0x3dbdbc(_0x46348e,_0x514271);},'cWhqr':function(_0x59ea97,_0x6bc009,_0x20d5e0){return _0x59ea97(_0x6bc009,_0x20d5e0);},'vcaNW':_0x5035df(0x21d),'cBYku':_0x5035df(0x1ca),'JCMPq':_0x5035df(0x239),'HlbdA':function(_0x309d55,_0x1c54c2,_0x416c99){return _0x309d55(_0x1c54c2,_0x416c99);},'zdZNR':'accessResp','EtgBn':function(_0x6a921a){return _0x6a921a();},'HaAlL':function(_0x66a352,_0x1bd4e5,_0x1071f6){return _0x66a352(_0x1bd4e5,_0x1071f6);},'gZhfP':'isTrialGridAccessible','bfAzZ':function(_0x3bfdf1,_0xbd30d6){return _0x3bfdf1(_0xbd30d6);},'mcBEe':_0x5035df(0x202),'fjfIw':_0x5035df(0x20b),'OrBvd':_0x5035df(0x18d),'XVWwm':_0x5035df(0x256),'SOuqL':_0x5035df(0x1db),'LuZex':_0x5035df(0x191),'PnVeQ':function(_0x357cf5,_0x3be46c){return _0x357cf5+_0x3be46c;},'FziXi':_0x5035df(0x27e),'eyoXP':function(_0xd67e42,_0x33f304,_0x1fe46b,_0x1a4fc0,_0x1bb49b,_0xcf3bb1,_0xb3117){return _0xd67e42(_0x33f304,_0x1fe46b,_0x1a4fc0,_0x1bb49b,_0xcf3bb1,_0xb3117);},'PLDgj':_0x5035df(0x248)};let _0x445361,_0x15a6fd;try{global_registry[_0x5035df(0x24d)]=_0x3d3984[_0x5035df(0x1ed)](uuidv4);!fs['existsSync'](_0x3d3984['MdduE'](getCredentialsPath))&&(_0x15a6fd=_0x3d3984[_0x5035df(0x23f)],logger['error'](_0x15a6fd),await _0x3d3984[_0x5035df(0x1e2)](reportToGalactusAndSendToEDS,_0x40d779,_0x445361,_0x15a6fd,messageTypes[_0x5035df(0x1ae)],_0x3d3984['qprZh'],_0x3d3984['oYNLz'],_0x3d3984['FPelM']),process[_0x5035df(0x231)](0x1));_0x3d3984[_0x5035df(0x21a)](sendInstrumentationEvent,_0x40d779,_0x3d3984[_0x5035df(0x262)],messageTypes[_0x5035df(0x1bf)],null,null,_0x40d779);const _0x12fe48=JSON[_0x5035df(0x265)](fs[_0x5035df(0x1f9)](_0x3d3984[_0x5035df(0x1d0)](getCredentialsPath)));global_registry['bstackUsername']=_0x12fe48['Browserstack'][_0x5035df(0x217)],global_registry['bstackAccesskey']=_0x12fe48[_0x5035df(0x236)]['password'];const _0x5f357e=WS_ENDPOINT[_0x5035df(0x240)](_0x3d3984['REoty'],_0x12fe48[_0x5035df(0x236)][_0x5035df(0x217)])[_0x5035df(0x240)](_0x3d3984['cTZWa'],_0x12fe48[_0x5035df(0x236)]['password']),_0x1e947d={};_0x1e947d['WebSocket']=ws,_0x1e947d[_0x5035df(0x18c)]=0x36ee80,_0x445361=new ReconnectingWebSocket(_0x5f357e,[],_0x1e947d),global_registry[_0x5035df(0x1eb)]=_0x3d3984[_0x5035df(0x195)](getAuthHeader,global_registry['bstackUsername'],global_registry[_0x5035df(0x193)]),await _0x3d3984[_0x5035df(0x1b6)](inputValidation,_0x40d779,_0x445361),logger[_0x5035df(0x204)](_0x5035df(0x261)+global_registry[_0x5035df(0x19c)]+_0x5035df(0x23e)+global_registry[_0x5035df(0x220)]);let _0x4841b1=await _0x3d3984['qFuSK'](getCloudProviderObjectWithOutInit,global_registry[_0x5035df(0x19c)],global_registry[_0x5035df(0x1f0)],_0x3d3984['vcaNW'],_0x445361,webSocketUtils,_0x40d779);const _0x2b85c5=await _0x4841b1[_0x5035df(0x272)]();_0x3d3984[_0x5035df(0x195)](printResponse,_0x3d3984[_0x5035df(0x1bd)],_0x2b85c5),_0x4841b1=await _0x4841b1['init']();let _0x25c5e2=![];try{_0x25c5e2=await _0x4841b1['isClusterPresent']();}catch(_0x233e8a){const _0x14777e=_0x3d3984[_0x5035df(0x26e)][_0x5035df(0x18a)]('|');let _0x41010c=0x0;while(!![]){switch(_0x14777e[_0x41010c++]){case'0':_0x15a6fd=_0x5035df(0x283)+global_registry[_0x5035df(0x1f0)]+_0x5035df(0x238)+global_registry[_0x5035df(0x220)]+'`\x20,error\x20:\x20'+_0x233e8a;continue;case'1':_0x15a6fd+='\x0a'+JSON['stringify'](_0x233e8a[_0x5035df(0x23d)]);continue;case'2':_0x25c5e2=null;continue;case'3':logger[_0x5035df(0x1ea)](_0x15a6fd);continue;case'4':await _0x3d3984[_0x5035df(0x1e2)](reportToGalactusAndSendToEDS,_0x40d779,_0x445361,_0x15a6fd,messageTypes[_0x5035df(0x1ae)],_0x3d3984[_0x5035df(0x262)],_0x5035df(0x20a)+global_registry['cloudProvider'],_0x3d3984[_0x5035df(0x232)]);continue;}break;}}_0x25c5e2&&logger[_0x5035df(0x204)](_0x5035df(0x21f)+global_registry[_0x5035df(0x1f0)]+_0x5035df(0x227));const _0x42d554=await _0x4841b1[_0x5035df(0x1ec)]();_0x3d3984[_0x5035df(0x1c0)](printResponse,_0x3d3984[_0x5035df(0x25d)],_0x42d554);const _0x24df5e=await _0x3d3984['EtgBn'](curlRequest);_0x3d3984[_0x5035df(0x219)](printResponse,_0x3d3984[_0x5035df(0x210)],_0x24df5e);const _0x4017ab=await _0x3d3984[_0x5035df(0x1a1)](isTlsSupported,_0x3d3984[_0x5035df(0x1df)]);_0x3d3984[_0x5035df(0x195)](printResponse,_0x3d3984['fjfIw'],_0x4017ab);const _0x16744f={};_0x16744f[_0x5035df(0x1d3)]=_0x3d3984[_0x5035df(0x234)],_0x16744f[_0x5035df(0x27b)]=_0x2b85c5;const _0x5aff0a={};_0x5aff0a[_0x5035df(0x1d3)]=_0x3d3984[_0x5035df(0x224)],_0x5aff0a['response']=_0x42d554;const _0x39adfe={};_0x39adfe['header']=_0x3d3984[_0x5035df(0x1a9)],_0x39adfe[_0x5035df(0x27b)]=_0x24df5e;const _0x42161b={};_0x42161b['header']=_0x3d3984[_0x5035df(0x254)],_0x42161b[_0x5035df(0x27b)]=_0x4017ab;const _0x10a9ee=[_0x16744f,_0x5aff0a,_0x39adfe,_0x42161b],_0x184e58=await _0x3d3984[_0x5035df(0x1b6)](generateReport,_0x10a9ee,_0x25c5e2),_0x46d733=new Date(),_0x1cb370=_0x46d733[_0x5035df(0x1b7)]()+'_'+_0x3d3984['PnVeQ'](_0x46d733[_0x5035df(0x21b)](),0x1)+'_'+_0x46d733['getUTCDate']()+'_'+_0x46d733[_0x5035df(0x1dc)]()+'_'+_0x46d733[_0x5035df(0x25c)](),_0x4e8a03=_0x5035df(0x249)+_0x1cb370+_0x5035df(0x1a6);fs['writeFileSync'](_0x4e8a03,_0x184e58,_0x3d3984[_0x5035df(0x1be)]),logger['info'](_0x5035df(0x257)+_0x4e8a03),process[_0x5035df(0x231)](0x0);}catch(_0xd6eeec){let _0x4949e4=_0x5035df(0x19d)+_0xd6eeec+'\x20';logger[_0x5035df(0x1ea)](_0x4949e4),_0x4949e4+='\x0a'+JSON[_0x5035df(0x1fd)](_0xd6eeec[_0x5035df(0x23d)]),logger['debug']('stack\x20trace\x20'+_0xd6eeec['stack']);if(_0x445361){const _0x1726a3={};_0x1726a3[_0x5035df(0x212)]=WS_EVENTS[_0x5035df(0x1a2)],_0x1726a3[_0x5035df(0x214)]=_0x4949e4,webSocketUtils[_0x5035df(0x266)](_0x445361,_0x1726a3,_0x3d3984[_0x5035df(0x232)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x38bd96={};_0x38bd96[_0x5035df(0x1ea)]=_0x4949e4,await _0x3d3984[_0x5035df(0x18f)](sendInstrumentationEvent,_0x40d779,_0x3d3984[_0x5035df(0x262)],messageTypes[_0x5035df(0x1ae)],_0x3d3984[_0x5035df(0x207)],_0x38bd96,_0x40d779),process[_0x5035df(0x231)](0x1);}};
|
|
1
|
+
const a17_0x1fbbf4=a17_0x1a59;(function(_0x2b249c,_0x34dbd7){const _0x5c3898=a17_0x1a59,_0x2498b7=_0x2b249c();while(!![]){try{const _0x5bc5fb=parseInt(_0x5c3898(0x164))/0x1+-parseInt(_0x5c3898(0x1c6))/0x2*(parseInt(_0x5c3898(0x121))/0x3)+-parseInt(_0x5c3898(0x19f))/0x4*(parseInt(_0x5c3898(0x1b9))/0x5)+parseInt(_0x5c3898(0x1d5))/0x6*(parseInt(_0x5c3898(0x1cd))/0x7)+parseInt(_0x5c3898(0x193))/0x8*(-parseInt(_0x5c3898(0x1f6))/0x9)+-parseInt(_0x5c3898(0x142))/0xa+parseInt(_0x5c3898(0x1fa))/0xb;if(_0x5bc5fb===_0x34dbd7)break;else _0x2498b7['push'](_0x2498b7['shift']());}catch(_0x51aad6){_0x2498b7['push'](_0x2498b7['shift']());}}}(a17_0x2184,0x243b7));function a17_0x2184(){const _0x7fbcf3=['dummy-grid','Pre-check\x20running\x20for\x20Cloud\x20-\x20','error','stringify','NZPde','qwpbu','stack\x20trace\x20','eaarA','MoITV','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','prekp','parse','iBKws','wGRhB','NZPAC','Invalid\x20input.\x20grid\x20profiles:\x20','`\x20already\x20exists','existsSync','unable\x20to\x20verify\x20if\x20cluster\x20`','Error\x20Details:\x0a','delay','FLIcV','is\x20already\x20present','Grid\x20profile\x20fetched\x20for\x20pre-check','QGrlw','getUTCFullYear','pre-check','dykdH','code','AswtC','HzubY','EudJT','.\x20Please\x20provide\x20all\x20required\x20arguments.','AOrrJ','cloud-provider','will\x20be\x20created','IUbWG','aHPzS','QSdRv','1208EpHTva','Failed\x20in\x20pre-check!\x20Error:\x20','civpA','OStmO','`\x20is\x20present\x20in\x20region\x20`','qHqss','help','split','credential-not-found','Tool\x20Installed','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','jYren','4toBWsM','GAubp','username','hkRXJ','PKnPe','WGWOp','../../config/constants','utf-8','ntMpv','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','\x20===\x0a\x0a','toLowerCase','CLOUD_PROVIDER','jJDZP','debug','gridProfile','hhFkG','TnuTb','AuCQO','fNHxL','description','headers','header','Failure','TLveM','ERROR','567595QMKJqx','VZLYk','JRhFo','KVbxs','wcJUH','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','NtZzk','lgnVK','MpcaY','gwtsm','argv','<PasswordPlaceholder>','22hahzKj','getUTCDate','Report\x20saved\x20in\x20','byoml','connectionTimeout','grid\x20profile\x20flow\x20','../../utils/webSocketUtils','3997MVxQWy','desc','JJfBI','Whitelisted\x20browserstack','ySGKU','bfMGM','User\x20Access','authHeader','150lfbBkd','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','qZNVD','epilogue','\x20\x20Message:\x20','BQZmC','tkLBz','toolInstalledResp','NgGGx','bstackAccesskey','push','stack','clusterRegion','isCliToolInstalled','WebSocket','YyybL','reconnecting-websocket','bstackUsername','gkWOg','pre-check-grid-called','/packages/cli/get-all-grid-profiles','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','INFO','got','mzmHq','ONeSd','HHSah','UlAxH','accessResp','Browserstack','uDLTF','FvupY','HTMLl','15831sBFzIw','BXlgs','kztFd','getUTCMonth','8617345IYQrnk','clusterName','PwibL','mWJAo','NTzXZ','0|3|1|2|4','getUTCMinutes','\x20\x20Stack:\x20','region','DmWXH','length','password','`\x20,error\x20:\x20','info','isClusterPresent','error\x20stack\x20:\x20','Pxzsd','<UsernamePlaceholder>','init',']\x20status\x20:\x20','xWnIz','AHVmq','Status:\x20','OZBDb','rAHri','ajTUd','qVsAM','QDNyv','LOG','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','\x20error\x20:\x20','DAsdp','qbSjg','GET','\x20\x20Code:\x20','19641DTtypE','xHxLz','CXUgb','name','options','N/A','log/report_','Success','hhzII','builder','method','type','pre-check-cluster-args-not-passed','../../utils/utilityMethods','hirfV','pre-check-grid-profile-empty','../../utils/instrumentationUtils','uwPtW','MiRib','requestId','response','body','ScXab','OcfmI','vRLdg','join','replace','PNsvq','kkZiZ','Cluster\x20details\x0a-----------------------\x0a','qUATe','kCmId','pSteh','2704560oXIDWA','Cluster\x20','getUTCHours','ksdrw','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Setting\x20cloud\x20provider\x20as\x20','gVsYN','zjlde','ZPBOy','SSL\x20Configured','exit','iFDpE','tZlUp','grid-profile','vzIKE','Message:\x20','jDWZX','HOyhD','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','DSRci','vBedU','Cluster\x20`','checkAccess','kqmec','Ndflq','uagZE','xBXtb','FWlpq','message','grid','ZLcAB','cloudProvider','cluster-name','JsFwd','72338VgnEIk','usage','kIXtD','sendEventToBackend','data','xaXOi','vGTcE','status'];a17_0x2184=function(){return _0x7fbcf3;};return a17_0x2184();}const fs=require('fs'),ws=require('ws'),got=require(a17_0x1fbbf4(0x1ec)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x1fbbf4(0x1e5)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x1fbbf4(0x12e)),{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_0x1fbbf4(0x1a5)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x1fbbf4(0x1cc)),{sendInstrumentationEvent}=require(a17_0x1fbbf4(0x131));exports['command']=a17_0x1fbbf4(0x15f),exports[a17_0x1fbbf4(0x1ce)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a17_0x1fbbf4(0x12a)]=function(_0x17ca6e){const _0xc40112=a17_0x1fbbf4,_0x5cb237={};_0x5cb237[_0xc40112(0x141)]=_0xc40112(0x1d6),_0x5cb237[_0xc40112(0x14e)]='string',_0x5cb237['FvupY']=_0xc40112(0x19d),_0x5cb237[_0xc40112(0x1a0)]=_0xc40112(0x154),_0x5cb237[_0xc40112(0x1a7)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x5cb237[_0xc40112(0x1a3)]='help';const _0x38d484=_0x5cb237,_0x329b86={};_0x329b86[_0xc40112(0x1b3)]=_0x38d484[_0xc40112(0x141)],_0x329b86[_0xc40112(0x12c)]=_0x38d484[_0xc40112(0x14e)];const _0xf56c83={};_0xf56c83[_0xc40112(0x1b3)]=_0x38d484[_0xc40112(0x1f4)],_0xf56c83[_0xc40112(0x12c)]=_0x38d484[_0xc40112(0x14e)];const _0x3a12ab={};_0x3a12ab[_0xc40112(0x1b3)]=_0x38d484[_0xc40112(0x1a0)],_0x3a12ab[_0xc40112(0x12c)]=_0x38d484[_0xc40112(0x14e)];const _0x50b74e={};_0x50b74e[_0xc40112(0x1b3)]=_0x38d484[_0xc40112(0x1a7)],_0x50b74e['type']=_0x38d484['tZlUp'];const _0x4ab983={};return _0x4ab983['cluster-name']=_0x329b86,_0x4ab983[_0xc40112(0x18e)]=_0xf56c83,_0x4ab983[_0xc40112(0x202)]=_0x3a12ab,_0x4ab983[_0xc40112(0x14f)]=_0x50b74e,_0x17ca6e[_0xc40112(0x165)](HELP_HEADER_MESSAGE['pre_check'])[_0xc40112(0x1d8)](HELP_FOOTER_MESSAGE)['options'](_0x4ab983)['help'](_0x38d484[_0xc40112(0x1a3)])[_0xc40112(0x1c4)];};function a17_0x1a59(_0x32d6ac,_0x17039c){const _0x218433=a17_0x2184();return a17_0x1a59=function(_0x1a593c,_0x12ad2b){_0x1a593c=_0x1a593c-0x10d;let _0x14917f=_0x218433[_0x1a593c];return _0x14917f;},a17_0x1a59(_0x32d6ac,_0x17039c);}async function inputValidation(_0x49f0f5,_0x3aa222){const _0x5358d1=a17_0x1fbbf4,_0x4e8daa={'eTVow':_0x5358d1(0x1d6),'bfMGM':'string','TnuTb':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','eaCJR':_0x5358d1(0x154),'GHwHd':_0x5358d1(0x1a8),'umJpj':'help','hhzII':_0x5358d1(0x182),'QSdRv':_0x5358d1(0x18f),'KVbxs':'Error\x20Details:\x0a','IUbWG':_0x5358d1(0x126),'kztFd':_0x5358d1(0x202),'QDNyv':_0x5358d1(0x1be),'uDLTF':_0x5358d1(0x162),'NgGGx':_0x5358d1(0x18e),'vBedU':_0x5358d1(0x16e),'ScXab':function(_0x3aff5c,_0x253f19){return _0x3aff5c===_0x253f19;},'lgnVK':_0x5358d1(0x15c),'WGWOp':'kqStp','hirfV':function(_0x115f4f,_0x2b14cb){return _0x115f4f!==_0x2b14cb;},'ONeSd':_0x5358d1(0x1fc),'xsWtG':_0x5358d1(0x13c),'mzmHq':function(_0x3e3e52,_0x3ada72){return _0x3e3e52===_0x3ada72;},'qUATe':'GvGms','xWnIz':_0x5358d1(0x1da),'ylvCl':function(_0x309863,_0xce995d){return _0x309863>_0xce995d;},'CAutg':_0x5358d1(0x169),'FLIcV':_0x5358d1(0x1b7),'vzIKE':function(_0x2e63b9,_0x1e83c8,_0x46de16,_0x7974c0,_0x436122,_0x45a331,_0x28b273,_0x2225c3){return _0x2e63b9(_0x1e83c8,_0x46de16,_0x7974c0,_0x436122,_0x45a331,_0x28b273,_0x2225c3);},'DmWXH':_0x5358d1(0x1e8),'FWlpq':_0x5358d1(0x12d),'GEVgQ':_0x5358d1(0x1d1),'qUZBn':_0x5358d1(0x1bb),'DLYFI':_0x5358d1(0x1ea),'NTzXZ':'cloud-provider-not-supported','ksdrw':function(_0x20ce91,_0xbd4226){return _0x20ce91===_0xbd4226;},'qwpbu':_0x5358d1(0x1d7),'aHPzS':_0x5358d1(0x117),'TAdPr':'fqBuE','UTpNe':_0x5358d1(0x189),'kkZiZ':_0x5358d1(0x11f),'AuCQO':function(_0x412cca,_0x242955,_0x1d008a){return _0x412cca(_0x242955,_0x1d008a);},'YyybL':function(_0x29c3d6,_0x1016f0,_0x47849e,_0x4cec7d,_0x448fbc,_0x3e69e8){return _0x29c3d6(_0x1016f0,_0x47849e,_0x4cec7d,_0x448fbc,_0x3e69e8);},'NZPAC':_0x5358d1(0x186),'ufOUQ':_0x5358d1(0x14f),'qbSjg':function(_0x4f7c70,_0xf91f72){return _0x4f7c70===_0xf91f72;},'mWJAo':_0x5358d1(0x140),'wGSPO':function(_0x1d780c,_0x3d83b2){return _0x1d780c(_0x3d83b2);},'MiRib':function(_0x3c3ac3,_0x3bb50a){return _0x3c3ac3===_0x3bb50a;},'ZPBOy':'poOFE','EudJT':'gQlaL','vRLdg':_0x5358d1(0x130),'aUULN':_0x5358d1(0x16a),'OZBDb':_0x5358d1(0x122),'eaarA':'EWTNm','uagZE':_0x5358d1(0x183),'jDWZX':_0x5358d1(0x1e7),'civpA':function(_0x64ceb7,_0x53fe47){return _0x64ceb7!==_0x53fe47;},'JDjio':_0x5358d1(0x198),'iBKws':_0x5358d1(0x113)};let _0x26f902;try{if(_0x4e8daa[_0x5358d1(0x137)](_0x4e8daa[_0x5358d1(0x1c1)],_0x4e8daa[_0x5358d1(0x1c1)])){if(_0x49f0f5[_0x5358d1(0x1fb)]||_0x49f0f5['cloudProvider']||_0x49f0f5[_0x5358d1(0x202)]){if(_0x4e8daa[_0x5358d1(0x137)](_0x4e8daa[_0x5358d1(0x1a4)],_0x4e8daa[_0x5358d1(0x1a4)])){const _0x311ad7=[];if(!_0x49f0f5[_0x5358d1(0x1fb)]){if(_0x4e8daa[_0x5358d1(0x12f)](_0x4e8daa[_0x5358d1(0x1ee)],_0x4e8daa['xsWtG']))_0x311ad7['push'](_0x4e8daa[_0x5358d1(0x1f3)]);else{const _0x30c531={};_0x30c531[_0x5358d1(0x1b3)]=_0x4e8daa['eTVow'],_0x30c531[_0x5358d1(0x12c)]=_0x4e8daa[_0x5358d1(0x1d2)];const _0x5d6b7a={};_0x5d6b7a[_0x5358d1(0x1b3)]=_0x4e8daa[_0x5358d1(0x1b0)],_0x5d6b7a[_0x5358d1(0x12c)]=_0x4e8daa['bfMGM'];const _0x9cf5fb={};_0x9cf5fb[_0x5358d1(0x1b3)]=_0x4e8daa['eaCJR'],_0x9cf5fb[_0x5358d1(0x12c)]=_0x4e8daa['bfMGM'];const _0x5a16c2={};_0x5a16c2[_0x5358d1(0x1b3)]=_0x4e8daa['GHwHd'],_0x5a16c2[_0x5358d1(0x12c)]=_0x4e8daa['bfMGM'];const _0x2b5c1c={};return _0x2b5c1c[_0x5358d1(0x162)]=_0x30c531,_0x2b5c1c[_0x5358d1(0x18e)]=_0x5d6b7a,_0x2b5c1c[_0x5358d1(0x202)]=_0x9cf5fb,_0x2b5c1c[_0x5358d1(0x14f)]=_0x5a16c2,_0x41d379[_0x5358d1(0x165)](_0x19914e['pre_check'])[_0x5358d1(0x1d8)](_0x40c2f5)[_0x5358d1(0x125)](_0x2b5c1c)[_0x5358d1(0x199)](_0x4e8daa['umJpj'])[_0x5358d1(0x1c4)];}};!_0x49f0f5[_0x5358d1(0x161)]&&(_0x4e8daa[_0x5358d1(0x1ed)](_0x4e8daa['qUATe'],_0x4e8daa[_0x5358d1(0x13f)])?_0x311ad7[_0x5358d1(0x1df)](_0x4e8daa[_0x5358d1(0x1dd)]):_0x1779d8+=_0x5358d1(0x143)+_0x4e4c01[_0x5358d1(0x1fb)]+'\x20'+(_0x270aab?_0x4e8daa[_0x5358d1(0x129)]:_0x4e8daa[_0x5358d1(0x192)])+'\x0a\x0a');;!_0x49f0f5['region']&&(_0x4e8daa[_0x5358d1(0x12f)](_0x4e8daa[_0x5358d1(0x112)],_0x4e8daa[_0x5358d1(0x112)])?_0xc113f5[_0x5358d1(0x16e)](_0x5358d1(0x10d)+_0x415382[_0x5358d1(0x16e)][_0x5358d1(0x1e0)]):_0x311ad7[_0x5358d1(0x1df)](_0x4e8daa[_0x5358d1(0x1f8)]));;_0x4e8daa['ylvCl'](_0x311ad7[_0x5358d1(0x204)],0x0)&&(_0x4e8daa['hirfV'](_0x4e8daa['CAutg'],_0x4e8daa[_0x5358d1(0x181)])?(_0x26f902='Missing\x20required\x20arguments:\x20'+_0x311ad7[_0x5358d1(0x13a)](',\x20')+_0x5358d1(0x18c),await _0x4e8daa['vzIKE'](reportToGalactusAndSendToEDS,_0x49f0f5,_0x3aa222,_0x26f902,messageTypes[_0x5358d1(0x1b8)],_0x4e8daa[_0x5358d1(0x203)],_0x4e8daa[_0x5358d1(0x15d)],_0x4e8daa[_0x5358d1(0x156)]),logger['error'](_0x26f902),process['exit'](0x1)):(_0x1a46e0+=_0x4e8daa[_0x5358d1(0x1bc)],_0x598eaa+=_0x5358d1(0x1d9)+(_0x5caf3e['message']||_0x4e8daa[_0x5358d1(0x190)])+'\x0a',_0xac5810+='\x20\x20Code:\x20'+(_0x55005[_0x5358d1(0x188)]||_0x4e8daa[_0x5358d1(0x190)])+'\x0a',_0x5ba912+=_0x5358d1(0x201)+(_0x39d578[_0x5358d1(0x1e0)]||_0x4e8daa['IUbWG'])+'\x0a')),!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0x49f0f5[_0x5358d1(0x161)][_0x5358d1(0x1aa)]())&&(_0x4e8daa[_0x5358d1(0x1ed)](_0x4e8daa['GEVgQ'],_0x4e8daa['qUZBn'])?_0x1f4e37=_0x2e4c14:(_0x26f902=_0x4e8daa['DLYFI'],await _0x4e8daa['vzIKE'](reportToGalactusAndSendToEDS,_0x49f0f5,_0x3aa222,_0x26f902,messageTypes[_0x5358d1(0x1b8)],_0x4e8daa['DmWXH'],_0x4e8daa[_0x5358d1(0x1fe)],_0x4e8daa[_0x5358d1(0x156)]),logger[_0x5358d1(0x16e)](_0x26f902),!_0x49f0f5[_0x5358d1(0x161)]&&(_0x4e8daa[_0x5358d1(0x145)](_0x4e8daa[_0x5358d1(0x171)],_0x4e8daa[_0x5358d1(0x191)])?_0x5cd521[_0x5358d1(0x1df)](_0x4e8daa[_0x5358d1(0x1f8)]):(logger[_0x5358d1(0x207)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x49f0f5[_0x5358d1(0x161)]=DEFAULT_CLUSTER_DETAILS[_0x5358d1(0x1ab)])))),global_registry[_0x5358d1(0x1fb)]=_0x49f0f5[_0x5358d1(0x1fb)],global_registry[_0x5358d1(0x161)]=_0x49f0f5[_0x5358d1(0x161)],global_registry[_0x5358d1(0x1e1)]=_0x49f0f5[_0x5358d1(0x202)];}else _0x7ff814['info'](_0x5358d1(0x157)+_0x5c86cd[_0x5358d1(0x1fb)]+_0x5358d1(0x17c));}else{if(_0x49f0f5['gridProfile']){if(_0x4e8daa[_0x5358d1(0x12f)](_0x4e8daa['TAdPr'],_0x4e8daa['UTpNe'])){global_registry[_0x5358d1(0x1ae)]=_0x49f0f5[_0x5358d1(0x1ae)],logger[_0x5358d1(0x1ad)](_0x5358d1(0x1cb)+_0x49f0f5[_0x5358d1(0x1ae)]);const _0x758878='https://'+AG_API_URL+_0x5358d1(0x1e9),_0x22b9b2={};_0x22b9b2[_0x5358d1(0x12b)]=_0x4e8daa[_0x5358d1(0x13d)],_0x22b9b2[_0x5358d1(0x1b4)]=global_registry['authHeader'],_0x22b9b2['throwHttpErrors']=![];const _0x5df49d=_0x22b9b2,_0x23bec8=await _0x4e8daa[_0x5358d1(0x1b1)](got,_0x758878,_0x5df49d),_0x47a098=await _0x4e8daa[_0x5358d1(0x1e4)](responseValidation,_0x23bec8,_0x4e8daa[_0x5358d1(0x17a)],_0x4e8daa['ufOUQ'],_0x49f0f5,_0x3aa222);let _0x16de06={};if(_0x4e8daa[_0x5358d1(0x11e)](_0x47a098,0xc8)){if(_0x4e8daa[_0x5358d1(0x1ed)](_0x4e8daa[_0x5358d1(0x1fd)],_0x4e8daa[_0x5358d1(0x1fd)])){const _0x355a48=JSON[_0x5358d1(0x177)](_0x23bec8[_0x5358d1(0x136)]),_0x5bebd2=_0x355a48['find'](_0x41af13=>_0x41af13[_0x5358d1(0x124)]===_0x49f0f5['gridProfile'])||null;_0x4e8daa['wGSPO'](isUndefined,_0x5bebd2)?_0x4e8daa[_0x5358d1(0x133)](_0x4e8daa[_0x5358d1(0x14a)],_0x4e8daa[_0x5358d1(0x18b)])?(_0x5b053d[_0x5358d1(0x16e)](_0x4e8daa['QDNyv']),_0x49ed9f['exit'](0x1)):(_0x26f902=_0x5358d1(0x17b)+_0x49f0f5[_0x5358d1(0x1ae)]+_0x5358d1(0x1bf),await _0x4e8daa[_0x5358d1(0x150)](reportToGalactusAndSendToEDS,_0x49f0f5,_0x3aa222,_0x26f902,messageTypes[_0x5358d1(0x1b8)],_0x4e8daa[_0x5358d1(0x203)],_0x4e8daa[_0x5358d1(0x139)],_0x4e8daa[_0x5358d1(0x156)]),logger[_0x5358d1(0x16e)](_0x26f902),process['exit'](0x1)):_0x4e8daa[_0x5358d1(0x1ed)](_0x4e8daa['aUULN'],_0x4e8daa[_0x5358d1(0x115)])?_0x30da74[_0x5358d1(0x1df)](_0x4e8daa[_0x5358d1(0x1f3)]):_0x16de06=_0x5bebd2;}else _0x23a6d1+=_0x5358d1(0x143)+_0x4f43fa['clusterName']+_0x5358d1(0x11b);}else _0x4e8daa[_0x5358d1(0x12f)](_0x4e8daa['eaarA'],_0x4e8daa[_0x5358d1(0x173)])?(_0x8e3995[_0x5358d1(0x207)]('['+_0x2e5a51+_0x5358d1(0x111)+_0x5cd4f9[_0x5358d1(0x16b)]+'\x20data\x20:\x20'+_0x28284e['data']+'\x20error\x20:\x20'+_0x3b5408['error']),_0x548156['error']&&_0x4e034d[_0x5358d1(0x16e)]('error\x20stack\x20:\x20'+_0x586377[_0x5358d1(0x16e)][_0x5358d1(0x1e0)])):process[_0x5358d1(0x14c)](0x1);const _0xb6d973={};_0xb6d973[_0x5358d1(0x12c)]=WS_EVENTS[_0x5358d1(0x11a)],_0xb6d973[_0x5358d1(0x15e)]=_0x4e8daa[_0x5358d1(0x15b)],webSocketUtils[_0x5358d1(0x167)](_0x3aa222,_0xb6d973),global_registry[_0x5358d1(0x161)]=_0x16de06[_0x5358d1(0x161)],global_registry['clusterRegion']=_0x16de06[_0x5358d1(0x202)],global_registry[_0x5358d1(0x1fb)]=_0x16de06['clusterName'];}else _0x2ad723['push'](_0x4e8daa['NgGGx']);}else _0x4e8daa['hirfV'](_0x4e8daa[_0x5358d1(0x152)],_0x4e8daa[_0x5358d1(0x152)])?(_0x1fe404[_0x5358d1(0x207)](_0x5358d1(0x147)+_0x1892a8[_0x5358d1(0x1ab)]+'\x20'),_0x5e862b[_0x5358d1(0x161)]=_0x78d53b[_0x5358d1(0x1ab)]):(logger[_0x5358d1(0x16e)](_0x4e8daa[_0x5358d1(0x119)]),process[_0x5358d1(0x14c)](0x1));}}else _0x2bc5c0[_0x5358d1(0x14c)](0x1);}catch(_0x1b4565){if(_0x4e8daa[_0x5358d1(0x195)](_0x4e8daa['JDjio'],_0x4e8daa[_0x5358d1(0x178)]))_0x26f902=_0x5358d1(0x175)+_0x1b4565+':\x20'+_0x1b4565[_0x5358d1(0x1e0)],logger[_0x5358d1(0x16e)](_0x26f902),await _0x4e8daa['vzIKE'](reportToGalactusAndSendToEDS,_0x49f0f5,_0x3aa222,_0x26f902,messageTypes[_0x5358d1(0x1b8)],_0x4e8daa[_0x5358d1(0x203)],_0x4e8daa['NTzXZ'],_0x4e8daa[_0x5358d1(0x156)]),process[_0x5358d1(0x14c)](0x1);else{const _0x29beb2={};_0x29beb2[_0x5358d1(0x12c)]=_0x765c49[_0x5358d1(0x11a)],_0x29beb2[_0x5358d1(0x15e)]=_0x3ccd0c,_0x28534b[_0x5358d1(0x167)](_0x5001ac,_0x29beb2,_0x4e8daa['vBedU'],!![]);}}}function printResponse(_0x37c4ee,_0x34289c){const _0x523cb2=a17_0x1fbbf4,_0x422415={};_0x422415[_0x523cb2(0x1a2)]=function(_0x56c9de,_0x2434fa){return _0x56c9de+_0x2434fa;},_0x422415['byoml']=_0x523cb2(0x128),_0x422415[_0x523cb2(0x1f5)]=_0x523cb2(0x1b6),_0x422415[_0x523cb2(0x153)]=function(_0x33701b,_0x48bfb0){return _0x33701b||_0x48bfb0;},_0x422415[_0x523cb2(0x15a)]=_0x523cb2(0x126),_0x422415[_0x523cb2(0x123)]=_0x523cb2(0x17f),_0x422415[_0x523cb2(0x1b2)]=function(_0xb339db,_0x291729){return _0xb339db===_0x291729;},_0x422415['PziGJ']=_0x523cb2(0x159),_0x422415[_0x523cb2(0x174)]=_0x523cb2(0x170);const _0x46f9b1=_0x422415;logger[_0x523cb2(0x207)]('['+_0x37c4ee+_0x523cb2(0x111)+_0x34289c['status']+'\x20data\x20:\x20'+_0x34289c[_0x523cb2(0x168)]+_0x523cb2(0x11c)+_0x34289c['error']);if(_0x34289c['error']){if(_0x46f9b1[_0x523cb2(0x1b2)](_0x46f9b1['PziGJ'],_0x46f9b1[_0x523cb2(0x174)])){const {header:_0x544164,response:_0xabf85f}=_0x1e40d9,{status:_0x41c260,data:_0x5e356a,error:_0x3586ef}=_0xabf85f;_0x32cf14+=_0x544164+'\x20#'+_0x46f9b1[_0x523cb2(0x1a2)](_0x19ac82,0x1)+'\x0a',_0x4bec96+=_0x523cb2(0x114)+(_0x41c260?_0x46f9b1[_0x523cb2(0x1c9)]:_0x46f9b1[_0x523cb2(0x1f5)])+'\x0a',_0x23dd34+=_0x523cb2(0x151)+_0x46f9b1['HOyhD'](_0x5e356a,_0x46f9b1[_0x523cb2(0x15a)])+'\x0a',_0x3586ef&&(_0xad42e8+=_0x46f9b1[_0x523cb2(0x123)],_0x40e142+='\x20\x20Message:\x20'+(_0x3586ef[_0x523cb2(0x15e)]||_0x46f9b1['Ndflq'])+'\x0a',_0x5e32e3+='\x20\x20Code:\x20'+(_0x3586ef[_0x523cb2(0x188)]||_0x46f9b1[_0x523cb2(0x15a)])+'\x0a',_0x27d5b6+=_0x523cb2(0x201)+(_0x3586ef[_0x523cb2(0x1e0)]||_0x46f9b1[_0x523cb2(0x15a)])+'\x0a'),_0x7c9e64+='\x0a\x0a';}else logger[_0x523cb2(0x16e)]('error\x20stack\x20:\x20'+_0x34289c['error'][_0x523cb2(0x1e0)]);}}async function generateReport(_0x2d1fd1,_0x233e21){const _0x370639=a17_0x1fbbf4,_0x43dce6={'spkIM':function(_0x378ae8,_0x120d02){return _0x378ae8+_0x120d02;},'BXlgs':'Success','QGrlw':_0x370639(0x1b6),'MpcaY':function(_0x1b310a,_0x1aabdc){return _0x1b310a||_0x1aabdc;},'hhFkG':_0x370639(0x126),'zUauK':_0x370639(0x17f),'AOrrJ':_0x370639(0x13e),'jJDZP':function(_0x21398c,_0x5eaa5d){return _0x21398c!=_0x5eaa5d;},'VZLYk':_0x370639(0x182),'tkLBz':_0x370639(0x18f),'gVsYN':function(_0x5ef41c){return _0x5ef41c();}};let _0x2fd2c7='===\x20Precheck\x20Report\x20-\x20'+global_registry['cloudProvider']+_0x370639(0x1a9);return _0x2d1fd1['forEach']((_0x361a59,_0x42805a)=>{const _0x4c1d2e=_0x370639,{header:_0x418874,response:_0x11349b}=_0x361a59,{status:_0x4d447b,data:_0xbe03ae,error:_0x2b040a}=_0x11349b;_0x2fd2c7+=_0x418874+'\x20#'+_0x43dce6['spkIM'](_0x42805a,0x1)+'\x0a',_0x2fd2c7+=_0x4c1d2e(0x114)+(_0x4d447b?_0x43dce6[_0x4c1d2e(0x1f7)]:_0x43dce6[_0x4c1d2e(0x184)])+'\x0a',_0x2fd2c7+=_0x4c1d2e(0x151)+_0x43dce6[_0x4c1d2e(0x1c2)](_0xbe03ae,_0x43dce6[_0x4c1d2e(0x1af)])+'\x0a',_0x2b040a&&(_0x2fd2c7+=_0x43dce6['zUauK'],_0x2fd2c7+='\x20\x20Message:\x20'+(_0x2b040a[_0x4c1d2e(0x15e)]||_0x43dce6[_0x4c1d2e(0x1af)])+'\x0a',_0x2fd2c7+=_0x4c1d2e(0x120)+(_0x2b040a['code']||_0x43dce6[_0x4c1d2e(0x1af)])+'\x0a',_0x2fd2c7+=_0x4c1d2e(0x201)+(_0x2b040a[_0x4c1d2e(0x1e0)]||_0x43dce6[_0x4c1d2e(0x1af)])+'\x0a'),_0x2fd2c7+='\x0a\x0a';}),_0x2fd2c7+=_0x43dce6[_0x370639(0x18d)],_0x43dce6[_0x370639(0x1ac)](_0x233e21,null)?_0x2fd2c7+=_0x370639(0x143)+global_registry[_0x370639(0x1fb)]+'\x20'+(_0x233e21?_0x43dce6[_0x370639(0x1ba)]:_0x43dce6[_0x370639(0x1db)])+'\x0a\x0a':_0x2fd2c7+=_0x370639(0x143)+global_registry[_0x370639(0x1fb)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x2fd2c7+=_0x43dce6[_0x370639(0x148)](getSystemMetaData),_0x2fd2c7;};exports['handler']=async function(_0x320501){const _0xf82d27=a17_0x1fbbf4,_0x3a75ab={'OZYhb':function(_0x18d67f){return _0x18d67f();},'rAHri':function(_0x9e12bb){return _0x9e12bb();},'JJfBI':_0xf82d27(0x146),'wHOpX':function(_0x1df62c,_0x176944,_0x107893,_0x393afb,_0x5e3889,_0x2605c1,_0x4280c9,_0x5d3355){return _0x1df62c(_0x176944,_0x107893,_0x393afb,_0x5e3889,_0x2605c1,_0x4280c9,_0x5d3355);},'JsFwd':'pre-check-grid-called','ZLcAB':_0xf82d27(0x19b),'HzubY':_0xf82d27(0x16e),'dykdH':function(_0xe678b3,_0x11ba55,_0x27d353,_0x4dbdc8,_0x22372d,_0x40f596,_0x2e8cba){return _0xe678b3(_0x11ba55,_0x27d353,_0x4dbdc8,_0x22372d,_0x40f596,_0x2e8cba);},'kfypr':_0xf82d27(0x10f),'puJBa':_0xf82d27(0x1c5),'jYren':function(_0x1294a3,_0xc4bb6e,_0x5e96c2){return _0x1294a3(_0xc4bb6e,_0x5e96c2);},'wGRhB':function(_0x2a1851,_0x1c5c51,_0x379e23,_0x5dca68,_0x28c194,_0x2f3171,_0x3b0866){return _0x2a1851(_0x1c5c51,_0x379e23,_0x5dca68,_0x28c194,_0x2f3171,_0x3b0866);},'GskAg':_0xf82d27(0x16c),'icXxM':_0xf82d27(0x1dc),'zjlde':_0xf82d27(0x1ff),'OStmO':function(_0x5429e2,_0x20d16d,_0x13eff3,_0x13a76b,_0x1e400a,_0x11c5b4,_0x22ff31,_0xef5f66){return _0x5429e2(_0x20d16d,_0x13eff3,_0x13a76b,_0x1e400a,_0x11c5b4,_0x22ff31,_0xef5f66);},'kIXtD':_0xf82d27(0x1f1),'wcJUH':function(_0x49bbf3){return _0x49bbf3();},'gwtsm':'isTrialGridAccessible','QxNqf':function(_0x1fb65d,_0x169d8f){return _0x1fb65d(_0x169d8f);},'NtZzk':'TLSv1_2_client_method','OcfmI':function(_0x32a419,_0x536199,_0x1aa205){return _0x32a419(_0x536199,_0x1aa205);},'iFDpE':'isTls1_2_SUPPORTED','uwPtW':_0xf82d27(0x19c),'Pxzsd':_0xf82d27(0x1d3),'qVsAM':_0xf82d27(0x1d0),'UlAxH':_0xf82d27(0x14b),'DAsdp':function(_0x34fff6,_0x288c81){return _0x34fff6+_0x288c81;},'prekp':_0xf82d27(0x1a6),'HHSah':function(_0x505f87,_0x212b82,_0x160f4d,_0x52af04,_0x160ced,_0x59f9aa,_0x3fa09c){return _0x505f87(_0x212b82,_0x160f4d,_0x52af04,_0x160ced,_0x59f9aa,_0x3fa09c);},'DSRci':'pre-check-failed'};let _0x47e1b2,_0x4c5e7;try{global_registry[_0xf82d27(0x134)]=_0x3a75ab['OZYhb'](uuidv4);!fs[_0xf82d27(0x17d)](_0x3a75ab[_0xf82d27(0x116)](getCredentialsPath))&&(_0x4c5e7=_0x3a75ab[_0xf82d27(0x1cf)],logger[_0xf82d27(0x16e)](_0x4c5e7),await _0x3a75ab['wHOpX'](reportToGalactusAndSendToEDS,_0x320501,_0x47e1b2,_0x4c5e7,messageTypes[_0xf82d27(0x1b8)],_0x3a75ab[_0xf82d27(0x163)],_0x3a75ab[_0xf82d27(0x160)],_0x3a75ab['HzubY']),process[_0xf82d27(0x14c)](0x1));_0x3a75ab[_0xf82d27(0x187)](sendInstrumentationEvent,_0x320501,_0x3a75ab[_0xf82d27(0x163)],messageTypes[_0xf82d27(0x1eb)],null,null,_0x320501);const _0x469397=JSON[_0xf82d27(0x177)](fs['readFileSync'](_0x3a75ab[_0xf82d27(0x116)](getCredentialsPath)));global_registry[_0xf82d27(0x1e6)]=_0x469397['Browserstack']['username'],global_registry[_0xf82d27(0x1de)]=_0x469397['Browserstack'][_0xf82d27(0x205)];const _0x169857=WS_ENDPOINT[_0xf82d27(0x13b)](_0x3a75ab['kfypr'],_0x469397[_0xf82d27(0x1f2)][_0xf82d27(0x1a1)])[_0xf82d27(0x13b)](_0x3a75ab['puJBa'],_0x469397[_0xf82d27(0x1f2)][_0xf82d27(0x205)]),_0x493ccc={};_0x493ccc[_0xf82d27(0x1e3)]=ws,_0x493ccc[_0xf82d27(0x1ca)]=0x36ee80,_0x47e1b2=new ReconnectingWebSocket(_0x169857,[],_0x493ccc),global_registry[_0xf82d27(0x1d4)]=_0x3a75ab[_0xf82d27(0x19e)](getAuthHeader,global_registry[_0xf82d27(0x1e6)],global_registry[_0xf82d27(0x1de)]),await _0x3a75ab[_0xf82d27(0x19e)](inputValidation,_0x320501,_0x47e1b2),logger[_0xf82d27(0x207)](_0xf82d27(0x16d)+global_registry['cloudProvider']+'\x20region\x20-\x20'+global_registry[_0xf82d27(0x1e1)]);let _0x521ab4=await _0x3a75ab[_0xf82d27(0x179)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry['clusterName'],_0x3a75ab['GskAg'],_0x47e1b2,webSocketUtils,_0x320501);const _0x373881=await _0x521ab4[_0xf82d27(0x1e2)]();_0x3a75ab[_0xf82d27(0x19e)](printResponse,_0x3a75ab['icXxM'],_0x373881),_0x521ab4=await _0x521ab4[_0xf82d27(0x110)]();let _0x5a1111=![];try{_0x5a1111=await _0x521ab4[_0xf82d27(0x208)]();}catch(_0x378f57){const _0x239917=_0x3a75ab[_0xf82d27(0x149)][_0xf82d27(0x19a)]('|');let _0x191845=0x0;while(!![]){switch(_0x239917[_0x191845++]){case'0':_0x4c5e7=_0xf82d27(0x17e)+global_registry[_0xf82d27(0x1fb)]+_0xf82d27(0x197)+global_registry[_0xf82d27(0x1e1)]+_0xf82d27(0x206)+_0x378f57;continue;case'1':logger[_0xf82d27(0x16e)](_0x4c5e7);continue;case'2':_0x4c5e7+='\x0a'+JSON[_0xf82d27(0x16f)](_0x378f57[_0xf82d27(0x1e0)]);continue;case'3':_0x5a1111=null;continue;case'4':await _0x3a75ab[_0xf82d27(0x196)](reportToGalactusAndSendToEDS,_0x320501,_0x47e1b2,_0x4c5e7,messageTypes[_0xf82d27(0x1b8)],_0x3a75ab[_0xf82d27(0x163)],'cluster-check-failed-'+global_registry[_0xf82d27(0x161)],_0x3a75ab[_0xf82d27(0x18a)]);continue;}break;}}_0x5a1111&&logger[_0xf82d27(0x207)]('Cluster\x20`'+global_registry[_0xf82d27(0x1fb)]+_0xf82d27(0x17c));const _0x2de260=await _0x521ab4[_0xf82d27(0x158)]();_0x3a75ab[_0xf82d27(0x19e)](printResponse,_0x3a75ab[_0xf82d27(0x166)],_0x2de260);const _0x4f23ba=await _0x3a75ab[_0xf82d27(0x1bd)](curlRequest);_0x3a75ab[_0xf82d27(0x19e)](printResponse,_0x3a75ab[_0xf82d27(0x1c3)],_0x4f23ba);const _0x59438b=await _0x3a75ab['QxNqf'](isTlsSupported,_0x3a75ab[_0xf82d27(0x1c0)]);_0x3a75ab[_0xf82d27(0x138)](printResponse,_0x3a75ab[_0xf82d27(0x14d)],_0x59438b);const _0x11bd68={};_0x11bd68['header']=_0x3a75ab[_0xf82d27(0x132)],_0x11bd68[_0xf82d27(0x135)]=_0x373881;const _0x3cb987={};_0x3cb987[_0xf82d27(0x1b5)]=_0x3a75ab[_0xf82d27(0x10e)],_0x3cb987[_0xf82d27(0x135)]=_0x2de260;const _0x2abfd3={};_0x2abfd3[_0xf82d27(0x1b5)]=_0x3a75ab[_0xf82d27(0x118)],_0x2abfd3['response']=_0x4f23ba;const _0x3ad166={};_0x3ad166[_0xf82d27(0x1b5)]=_0x3a75ab[_0xf82d27(0x1f0)],_0x3ad166['response']=_0x59438b;const _0x56379f=[_0x11bd68,_0x3cb987,_0x2abfd3,_0x3ad166],_0x568a97=await _0x3a75ab[_0xf82d27(0x19e)](generateReport,_0x56379f,_0x5a1111),_0x3ba4ec=new Date(),_0x49dd54=_0x3ba4ec[_0xf82d27(0x185)]()+'_'+_0x3a75ab[_0xf82d27(0x11d)](_0x3ba4ec[_0xf82d27(0x1f9)](),0x1)+'_'+_0x3ba4ec[_0xf82d27(0x1c7)]()+'_'+_0x3ba4ec[_0xf82d27(0x144)]()+'_'+_0x3ba4ec[_0xf82d27(0x200)](),_0x28b287=_0xf82d27(0x127)+_0x49dd54+'.txt';fs['writeFileSync'](_0x28b287,_0x568a97,_0x3a75ab[_0xf82d27(0x176)]),logger[_0xf82d27(0x207)](_0xf82d27(0x1c8)+_0x28b287),process[_0xf82d27(0x14c)](0x0);}catch(_0x16ad56){let _0x47e876=_0xf82d27(0x194)+_0x16ad56+'\x20';logger[_0xf82d27(0x16e)](_0x47e876),_0x47e876+='\x0a'+JSON['stringify'](_0x16ad56[_0xf82d27(0x1e0)]),logger['debug'](_0xf82d27(0x172)+_0x16ad56[_0xf82d27(0x1e0)]);if(_0x47e1b2){const _0x1d8c34={};_0x1d8c34[_0xf82d27(0x12c)]=WS_EVENTS[_0xf82d27(0x11a)],_0x1d8c34['message']=_0x47e876,webSocketUtils[_0xf82d27(0x167)](_0x47e1b2,_0x1d8c34,_0x3a75ab[_0xf82d27(0x18a)],!![]);}await webSocketUtils[_0xf82d27(0x180)](0x7d0);const _0x2b6d42={};_0x2b6d42[_0xf82d27(0x16e)]=_0x47e876,await _0x3a75ab[_0xf82d27(0x1ef)](sendInstrumentationEvent,_0x320501,_0x3a75ab[_0xf82d27(0x163)],messageTypes[_0xf82d27(0x1b8)],_0x3a75ab[_0xf82d27(0x155)],_0x2b6d42,_0x320501),process[_0xf82d27(0x14c)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a18_0x134f(){const _0x5f144a=['60UnreSI','3710arrlzy','commandDir','5034fxtdaT','970oIORdy','help','start','14HLlKfa','command','306585wclfrc','412TDcZLK','2013UUzazr','usage','Start\x20an\x20existing\x20Automation\x20grid.','recommendCommands','../config/constants','desc','207258fdxPxB','strict','172458KPUTcH','demandCommand','ctssw','OsiVc','builder','560424lxDjyW'];a18_0x134f=function(){return _0x5f144a;};return a18_0x134f();}const a18_0x367da4=a18_0x24a1;function a18_0x24a1(_0x18bf81,_0x5a63de){const _0x134fd8=a18_0x134f();return a18_0x24a1=function(_0x24a1a6,_0x295b25){_0x24a1a6=_0x24a1a6-0xf8;let _0x122e6e=_0x134fd8[_0x24a1a6];return _0x122e6e;},a18_0x24a1(_0x18bf81,_0x5a63de);}(function(_0x47eb8c,_0x337450){const _0x44d01c=a18_0x24a1,_0x25c972=_0x47eb8c();while(!![]){try{const _0x4cd08d=parseInt(_0x44d01c(0x106))/0x1*(parseInt(_0x44d01c(0x109))/0x2)+-parseInt(_0x44d01c(0x10f))/0x3+parseInt(_0x44d01c(0x110))/0x4*(parseInt(_0x44d01c(0x10a))/0x5)+-parseInt(_0x44d01c(0xfe))/0x6*(-parseInt(_0x44d01c(0x10d))/0x7)+-parseInt(_0x44d01c(0x105))/0x8+-parseInt(_0x44d01c(0x100))/0x9+parseInt(_0x44d01c(0x107))/0xa*(parseInt(_0x44d01c(0xf8))/0xb);if(_0x4cd08d===_0x337450)break;else _0x25c972['push'](_0x25c972['shift']());}catch(_0x26a18e){_0x25c972['push'](_0x25c972['shift']());}}}(a18_0x134f,0x1c75b));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x367da4(0xfc));exports[a18_0x367da4(0x10e)]=a18_0x367da4(0x10c),exports[a18_0x367da4(0xfd)]=a18_0x367da4(0xfa),exports[a18_0x367da4(0x104)]=function(_0x2acbf2){const _0x389848=a18_0x367da4,_0x3646fb={};_0x3646fb[_0x389848(0x102)]='start_commands',_0x3646fb[_0x389848(0x103)]=_0x389848(0x10b);const _0xae3c5a=_0x3646fb;return _0x2acbf2[_0x389848(0xf9)](HELP_HEADER_MESSAGE[_0x389848(0x10c)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x389848(0x108)](_0xae3c5a[_0x389848(0x102)])[_0x389848(0x101)]()[_0x389848(0xfb)]()[_0x389848(0xff)]()[_0x389848(0x10b)](_0xae3c5a[_0x389848(0x103)]);},exports['handler']=function(_0x5131ab){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a19_0x3d143e=a19_0x1492;function a19_0x1492(_0xbe9bda,_0x3dedae){const _0x2b8fed=a19_0x2b8f();return a19_0x1492=function(_0x1492b6,_0x1e8dde){_0x1492b6=_0x1492b6-0x1d8;let _0x2fb6a3=_0x2b8fed[_0x1492b6];return _0x2fb6a3;},a19_0x1492(_0xbe9bda,_0x3dedae);}function a19_0x2b8f(){const _0x1994cd=['../../utils/webSocketUtils','parse','type','swmmK','grid','stack','5306IQmVqC','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','640bKqUXQ','cloudProvider','VweNK','83844kzZiRF','../../utils/instrumentationUtils','reconnecting-websocket','<PasswordPlaceholder>','afVxR','skip-tls-cert-verify','command','mCWpJ','grid-id','494112VBofwc','RLpAP','bstackUsername','KxTtp','string','error','ERROR','stringify','Browserstack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','username','info','UVnmm','VbdgH','region','skipTlsCertVerify','gridId','Adding\x20Websocket\x20listeners','IKetv','Start\x20an\x20existing\x20Automation\x20grid.','boolean','2976736jiiEUI','name','Ksqwg','INFO','../../utils/gridComponents','2ljNwfr','Grid\x20started','options','5464nZMEai','builder','144475NgzCEd','uaPyQ','bstackAccesskey','nrMIJ','zpQzW','usage','init-not-called','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','replace','nFbto','IZSkU','clusterName','../../utils/createk8sClient','cfnoG','../../cloudproviders/utils','body','desc','../../config/logger','password','statusCode','user','30zTArBM','iuceT','epilogue','11BhaHda','JdOGZ','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../utils/utilityMethods','start-grid-called','exit','../../config/constants','VyVAZ','clusterRegion','argv','description','default','43122obVcNS','unauthorised','EUaHx','XbDJZ','12822372pYjaRU','help','debug','eoxCQ','existsSync','yyxne','<UsernamePlaceholder>'];a19_0x2b8f=function(){return _0x1994cd;};return a19_0x2b8f();}(function(_0x159762,_0x2ad292){const _0x5dfd75=a19_0x1492,_0x3043da=_0x159762();while(!![]){try{const _0x443c31=parseInt(_0x5dfd75(0x21e))/0x1+parseInt(_0x5dfd75(0x238))/0x2*(parseInt(_0x5dfd75(0x1ff))/0x3)+parseInt(_0x5dfd75(0x233))/0x4+parseInt(_0x5dfd75(0x1db))/0x5*(parseInt(_0x5dfd75(0x1f0))/0x6)+parseInt(_0x5dfd75(0x210))/0x7*(-parseInt(_0x5dfd75(0x1d9))/0x8)+parseInt(_0x5dfd75(0x215))/0x9*(parseInt(_0x5dfd75(0x212))/0xa)+parseInt(_0x5dfd75(0x1f3))/0xb*(-parseInt(_0x5dfd75(0x203))/0xc);if(_0x443c31===_0x2ad292)break;else _0x3043da['push'](_0x3043da['shift']());}catch(_0x37a729){_0x3043da['push'](_0x3043da['shift']());}}}(a19_0x2b8f,0x63654));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x3d143e(0x217)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x3d143e(0x1f9)),{logger}=require(a19_0x3d143e(0x1ec)),{getCredentialsPath,getGridDetails}=require(a19_0x3d143e(0x1f6)),{scaleUpHubDeployment}=require(a19_0x3d143e(0x237)),{sendInstrumentationEvent}=require(a19_0x3d143e(0x216)),webSocketUtils=require(a19_0x3d143e(0x20a)),{createK8sClient}=require(a19_0x3d143e(0x1e7)),{getCloudProviderObject}=require(a19_0x3d143e(0x1e9));exports[a19_0x3d143e(0x21b)]=a19_0x3d143e(0x20e),exports[a19_0x3d143e(0x1eb)]=a19_0x3d143e(0x231),exports[a19_0x3d143e(0x1da)]=function(_0x4ab408){const _0x3d5c12=a19_0x3d143e,_0x21c679={};_0x21c679[_0x3d5c12(0x1f1)]=_0x3d5c12(0x1e2),_0x21c679['zpQzW']=_0x3d5c12(0x222),_0x21c679[_0x3d5c12(0x208)]='Skip\x20insecure\x20cert\x20verification.',_0x21c679[_0x3d5c12(0x206)]=_0x3d5c12(0x232),_0x21c679[_0x3d5c12(0x21c)]=_0x3d5c12(0x204);const _0x2acb4d=_0x21c679,_0x487b20={};_0x487b20[_0x3d5c12(0x1fd)]=_0x2acb4d[_0x3d5c12(0x1f1)],_0x487b20[_0x3d5c12(0x20c)]=_0x2acb4d[_0x3d5c12(0x1df)];const _0x2e28fe={};_0x2e28fe[_0x3d5c12(0x1fd)]=_0x2acb4d[_0x3d5c12(0x208)],_0x2e28fe['type']=_0x2acb4d[_0x3d5c12(0x206)],_0x2e28fe[_0x3d5c12(0x1fe)]=![];const _0x10c3af={};return _0x10c3af[_0x3d5c12(0x21d)]=_0x487b20,_0x10c3af[_0x3d5c12(0x21a)]=_0x2e28fe,_0x4ab408[_0x3d5c12(0x1e0)](HELP_HEADER_MESSAGE['start'])[_0x3d5c12(0x1f2)](HELP_FOOTER_MESSAGE)[_0x3d5c12(0x1d8)](_0x10c3af)[_0x3d5c12(0x204)](_0x2acb4d[_0x3d5c12(0x21c)])[_0x3d5c12(0x1fc)];},exports['handler']=async function(_0x15f45a){const _0x45732d=a19_0x3d143e,_0x4cabcb={'VbdgH':_0x45732d(0x211),'KxTtp':function(_0x472f6e){return _0x472f6e();},'VyVAZ':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','EUaHx':function(_0x1c28de,_0x25f9a3,_0x5952c2,_0x1899c1,_0x2946e0,_0x339414,_0x40e0a2){return _0x1c28de(_0x25f9a3,_0x5952c2,_0x1899c1,_0x2946e0,_0x339414,_0x40e0a2);},'RLpAP':_0x45732d(0x1f7),'RxVbC':_0x45732d(0x1e1),'swmmK':function(_0x508b0d,_0x1e31df,_0x5d9201,_0x13b744,_0x8c38fe,_0x172c46,_0x3a3eee){return _0x508b0d(_0x1e31df,_0x5d9201,_0x13b744,_0x8c38fe,_0x172c46,_0x3a3eee);},'XbDJZ':_0x45732d(0x209),'IZSkU':_0x45732d(0x218),'nFbto':_0x45732d(0x22f),'IKetv':function(_0x5f5777,_0x47d76f,_0x3c7617,_0x4e2fca){return _0x5f5777(_0x47d76f,_0x3c7617,_0x4e2fca);},'cfnoG':function(_0x232456,_0x2a10ac,_0x270ac5,_0x7cb702,_0x2bc569,_0x54a563,_0x4df9bd){return _0x232456(_0x2a10ac,_0x270ac5,_0x7cb702,_0x2bc569,_0x54a563,_0x4df9bd);},'nrMIJ':function(_0xa84043,_0x47da1f,_0x11d20e){return _0xa84043(_0x47da1f,_0x11d20e);},'JdOGZ':_0x45732d(0x239),'uaPyQ':function(_0x27a1ae,_0x2b0e08){return _0x27a1ae===_0x2b0e08;},'VweNK':_0x45732d(0x1f5),'afVxR':_0x45732d(0x200),'Ksqwg':'invalid-grid-id','UVnmm':'server-error'};let _0x5e08f6;try{!_0x15f45a[_0x45732d(0x22e)]&&(logger[_0x45732d(0x223)](_0x4cabcb[_0x45732d(0x22b)]),process[_0x45732d(0x1f8)](0x1));!fs[_0x45732d(0x207)](_0x4cabcb[_0x45732d(0x221)](getCredentialsPath))&&(logger[_0x45732d(0x223)](_0x4cabcb[_0x45732d(0x1fa)]),await _0x4cabcb[_0x45732d(0x201)](sendInstrumentationEvent,_0x15f45a,_0x4cabcb[_0x45732d(0x21f)],messageTypes[_0x45732d(0x224)],_0x4cabcb['RxVbC'],null,_0x15f45a),process[_0x45732d(0x1f8)](0x1));logger[_0x45732d(0x229)]('Starting\x20grid\x20'+_0x15f45a[_0x45732d(0x22e)]),await _0x4cabcb[_0x45732d(0x20d)](sendInstrumentationEvent,_0x15f45a,_0x4cabcb['RLpAP'],messageTypes[_0x45732d(0x236)],null,null,_0x15f45a);const _0x11a221=JSON[_0x45732d(0x20b)](fs['readFileSync'](_0x4cabcb[_0x45732d(0x221)](getCredentialsPath)));global_registry[_0x45732d(0x220)]=_0x11a221[_0x45732d(0x226)][_0x45732d(0x228)],global_registry[_0x45732d(0x1dd)]=_0x11a221[_0x45732d(0x226)][_0x45732d(0x1ed)];const _0x1abdd5=WS_ENDPOINT[_0x45732d(0x1e3)](_0x4cabcb[_0x45732d(0x202)],_0x11a221[_0x45732d(0x226)][_0x45732d(0x228)])[_0x45732d(0x1e3)](_0x4cabcb[_0x45732d(0x1e5)],_0x11a221[_0x45732d(0x226)][_0x45732d(0x1ed)]),_0x24cac3={};_0x24cac3['WebSocket']=ws,_0x24cac3['connectionTimeout']=0x36ee80,_0x5e08f6=new ReconnectingWebSocket(_0x1abdd5,[],_0x24cac3),logger[_0x45732d(0x205)](_0x4cabcb[_0x45732d(0x1e4)]),webSocketUtils['addListeners'](_0x5e08f6,_0x15f45a[_0x45732d(0x1ef)],_0x15f45a[_0x45732d(0x1ed)]);const [_0x2e6667,_0x20b86b]=await _0x4cabcb[_0x45732d(0x230)](getGridDetails,_0x11a221[_0x45732d(0x226)][_0x45732d(0x228)],_0x11a221['Browserstack'][_0x45732d(0x1ed)],_0x15f45a[_0x45732d(0x22e)]);if(_0x20b86b){const _0xf11ee3=_0x20b86b[_0x45732d(0x229)];global_registry['cloudProvider']=_0xf11ee3[_0x45732d(0x213)],global_registry[_0x45732d(0x1fb)]=_0xf11ee3[_0x45732d(0x22c)],global_registry['clusterName']=_0xf11ee3[_0x45732d(0x1e6)];const _0x37501e=await _0x4cabcb[_0x45732d(0x1e8)](getCloudProviderObject,_0xf11ee3[_0x45732d(0x213)],_0xf11ee3[_0x45732d(0x1e6)],_0xf11ee3[_0x45732d(0x234)],_0x5e08f6,webSocketUtils,_0x15f45a),[_0x10a8c7,_0xf7e092,_0x3a4999,_0x4a80de,_0x219d9b,_0x2ceead]=await _0x4cabcb[_0x45732d(0x1de)](createK8sClient,_0x37501e,_0x15f45a[_0x45732d(0x22d)]);await _0x4cabcb[_0x45732d(0x1de)](scaleUpHubDeployment,_0xf7e092,_0xf11ee3['name']),logger[_0x45732d(0x229)](_0x4cabcb[_0x45732d(0x1f4)]),process[_0x45732d(0x1f8)](0x0);}_0x4cabcb[_0x45732d(0x1dc)](_0x2e6667[_0x45732d(0x1ee)],0x191)&&(logger[_0x45732d(0x223)](_0x4cabcb[_0x45732d(0x214)]),await _0x4cabcb[_0x45732d(0x20d)](sendInstrumentationEvent,_0x15f45a,_0x4cabcb[_0x45732d(0x21f)],messageTypes[_0x45732d(0x224)],_0x4cabcb[_0x45732d(0x219)],null,_0x15f45a),process[_0x45732d(0x1f8)](0x1)),_0x4cabcb[_0x45732d(0x1dc)](_0x2e6667[_0x45732d(0x1ee)],0x190)&&(logger[_0x45732d(0x223)](JSON[_0x45732d(0x20b)](_0x2e6667[_0x45732d(0x1ea)])['message']),await _0x4cabcb[_0x45732d(0x20d)](sendInstrumentationEvent,_0x15f45a,_0x4cabcb['RLpAP'],messageTypes[_0x45732d(0x224)],_0x4cabcb[_0x45732d(0x235)],null,_0x15f45a),process[_0x45732d(0x1f8)](0x1)),logger['error'](_0x45732d(0x227)+JSON[_0x45732d(0x225)](_0x2e6667)),await _0x4cabcb[_0x45732d(0x1e8)](sendInstrumentationEvent,_0x15f45a,_0x4cabcb[_0x45732d(0x21f)],messageTypes[_0x45732d(0x224)],_0x4cabcb[_0x45732d(0x22a)],_0x2e6667,_0x15f45a),process[_0x45732d(0x1f8)](0x1);}catch(_0xfe5a50){const _0x45aabe='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0xfe5a50+'\x20\x0a'+JSON[_0x45732d(0x225)](_0xfe5a50[_0x45732d(0x20f)])+'\x20';logger['error'](_0x45aabe),process[_0x45732d(0x1f8)](0x1);}};
|
package/ats/src/commands/stop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x16fb3a=a20_0x68c8;(function(_0xf43167,_0x10edd9){const _0x19b4ef=a20_0x68c8,_0x3f7062=_0xf43167();while(!![]){try{const _0x5eecd1=parseInt(_0x19b4ef(0x8c))/0x1*(parseInt(_0x19b4ef(0x90))/0x2)+parseInt(_0x19b4ef(0x84))/0x3*(-parseInt(_0x19b4ef(0x8a))/0x4)+parseInt(_0x19b4ef(0x91))/0x5+parseInt(_0x19b4ef(0x80))/0x6+parseInt(_0x19b4ef(0x8f))/0x7+parseInt(_0x19b4ef(0x86))/0x8+parseInt(_0x19b4ef(0x81))/0x9*(-parseInt(_0x19b4ef(0x93))/0xa);if(_0x5eecd1===_0x10edd9)break;else _0x3f7062['push'](_0x3f7062['shift']());}catch(_0x22fca3){_0x3f7062['push'](_0x3f7062['shift']());}}}(a20_0x445a,0x41345));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a20_0x445a(){const _0x2c5b6b=['stop','2972376IGpYae','342ruWCjZ','desc','usage','380622VXQsfG','help','961104cMxSWR','commandDir','Stop\x20a\x20running\x20Automation\x20grid.','IGgSC','4KThEpq','xMiiQ','19UdovWX','command','demandCommand','263886VlJojX','14106mssTnM','216470HQVCqo','recommendCommands','114890dSBfTe'];a20_0x445a=function(){return _0x2c5b6b;};return a20_0x445a();}function a20_0x68c8(_0x4f3de5,_0x414438){const _0x445a8f=a20_0x445a();return a20_0x68c8=function(_0x68c880,_0x496c26){_0x68c880=_0x68c880-0x80;let _0x1a356c=_0x445a8f[_0x68c880];return _0x1a356c;},a20_0x68c8(_0x4f3de5,_0x414438);}exports[a20_0x16fb3a(0x8d)]='stop',exports[a20_0x16fb3a(0x82)]=a20_0x16fb3a(0x88),exports['builder']=function(_0x3a399a){const _0x50a260=a20_0x16fb3a,_0x5b0d3a={};_0x5b0d3a[_0x50a260(0x8b)]='stop_commands',_0x5b0d3a[_0x50a260(0x89)]=_0x50a260(0x85);const _0x5d6ce2=_0x5b0d3a;return _0x3a399a[_0x50a260(0x83)](HELP_HEADER_MESSAGE[_0x50a260(0x94)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x50a260(0x87)](_0x5d6ce2[_0x50a260(0x8b)])[_0x50a260(0x8e)]()[_0x50a260(0x92)]()['strict']()[_0x50a260(0x85)](_0x5d6ce2[_0x50a260(0x89)]);},exports['handler']=function(_0x10e7dd){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a21_0x50a1(_0x53b40a,_0x5816f4){const _0x563461=a21_0x5634();return a21_0x50a1=function(_0x50a13d,_0x5d0b3d){_0x50a13d=_0x50a13d-0x1eb;let _0x23da4b=_0x563461[_0x50a13d];return _0x23da4b;},a21_0x50a1(_0x53b40a,_0x5816f4);}const a21_0x2c1dd6=a21_0x50a1;(function(_0x37a835,_0x3773b5){const _0x2e5674=a21_0x50a1,_0x193269=_0x37a835();while(!![]){try{const _0x18cc05=parseInt(_0x2e5674(0x22a))/0x1+-parseInt(_0x2e5674(0x221))/0x2*(parseInt(_0x2e5674(0x227))/0x3)+-parseInt(_0x2e5674(0x211))/0x4+parseInt(_0x2e5674(0x1f5))/0x5+parseInt(_0x2e5674(0x21f))/0x6*(-parseInt(_0x2e5674(0x203))/0x7)+-parseInt(_0x2e5674(0x224))/0x8+-parseInt(_0x2e5674(0x23d))/0x9*(-parseInt(_0x2e5674(0x230))/0xa);if(_0x18cc05===_0x3773b5)break;else _0x193269['push'](_0x193269['shift']());}catch(_0x464bbb){_0x193269['push'](_0x193269['shift']());}}}(a21_0x5634,0xac0ee));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x2c1dd6(0x1ee)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x2c1dd6(0x1fe)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x2c1dd6(0x217)),{scaleDownHubDeployment}=require(a21_0x2c1dd6(0x20c)),{sendInstrumentationEvent}=require(a21_0x2c1dd6(0x232)),webSocketUtils=require(a21_0x2c1dd6(0x1fb)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a21_0x2c1dd6(0x214));function a21_0x5634(){const _0x207a4f=['builder','../../utils/instrumentationUtils','parse','skipTlsCertVerify','password','stop','existsSync','bstackUsername','argv','string','ofEyX','HXZFX','18527931qThrEO','help','description','user','Lplek','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','IpZjC','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','rRlqY','reconnecting-websocket','clusterName','epilogue','ERROR','error','Mvrqa','mFemh','534640XFWQRR','izGvu','grid-id','username','hQLCt','WebSocket','../../utils/webSocketUtils','options','exit','../../config/constants','VlgFt','skip-tls-cert-verify','default','hmeWg','1120zOWmwT','Stopping\x20grid\x20','INFO','readFileSync','stringify','jRgbJ','debug','XsBrE','Skip\x20insecure\x20cert\x20verification.','../../utils/gridComponents','clusterRegion','OqsCp','gridId','command','428460hGFoZd','MUXgq','body','../../cloudproviders/utils','fPRfh','rCeTg','../../utils/utilityMethods','type','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','info','replace','boolean','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','stack','10248UEhtCN','statusCode','422TyfxhH','KXZdb','<UsernamePlaceholder>','2514328LNMWUW','EHekl','init-not-called','14919utvxmc','Browserstack','name','283152MYGayT','invalid-grid-id','server-error','connectionTimeout','cloudProvider','unauthorised','10hHxJZZ'];a21_0x5634=function(){return _0x207a4f;};return a21_0x5634();}exports[a21_0x2c1dd6(0x210)]='grid',exports['desc']='Stop\x20a\x20running\x20Automation\x20grid.',exports[a21_0x2c1dd6(0x231)]=function(_0x4be628){const _0x3261ef=a21_0x2c1dd6,_0x51373d={};_0x51373d[_0x3261ef(0x23b)]=_0x3261ef(0x1ec),_0x51373d[_0x3261ef(0x1f9)]=_0x3261ef(0x23a),_0x51373d[_0x3261ef(0x23c)]=_0x3261ef(0x20b),_0x51373d[_0x3261ef(0x208)]=_0x3261ef(0x21c),_0x51373d['EHekl']=_0x3261ef(0x23e);const _0x2839e7=_0x51373d,_0x2484a6={};_0x2484a6[_0x3261ef(0x23f)]=_0x2839e7[_0x3261ef(0x23b)],_0x2484a6[_0x3261ef(0x218)]=_0x2839e7[_0x3261ef(0x1f9)];const _0x9781f2={};_0x9781f2['description']=_0x2839e7[_0x3261ef(0x23c)],_0x9781f2['type']=_0x2839e7[_0x3261ef(0x208)],_0x9781f2[_0x3261ef(0x201)]=![];const _0xab0380={};return _0xab0380[_0x3261ef(0x1f7)]=_0x2484a6,_0xab0380[_0x3261ef(0x200)]=_0x9781f2,_0x4be628['usage'](HELP_HEADER_MESSAGE[_0x3261ef(0x236)])[_0x3261ef(0x1f0)](HELP_FOOTER_MESSAGE)[_0x3261ef(0x1fc)](_0xab0380)[_0x3261ef(0x23e)](_0x2839e7[_0x3261ef(0x225)])[_0x3261ef(0x239)];},exports['handler']=async function(_0x1df00e){const _0x2f0671=a21_0x2c1dd6,_0x132448={'YQils':_0x2f0671(0x242),'VlgFt':function(_0x450999){return _0x450999();},'OqsCp':_0x2f0671(0x21d),'hmeWg':function(_0x119263,_0xd372c7,_0x4d42a9,_0xcad821,_0x3929ee,_0x38f2c0,_0x2c5604){return _0x119263(_0xd372c7,_0x4d42a9,_0xcad821,_0x3929ee,_0x38f2c0,_0x2c5604);},'XsBrE':'stop-grid-called','rCeTg':_0x2f0671(0x226),'RYFgM':function(_0x364ad9,_0x2f70e2,_0x2ad89d,_0x398af7,_0x548ab7,_0x51211b,_0x41b073){return _0x364ad9(_0x2f70e2,_0x2ad89d,_0x398af7,_0x548ab7,_0x51211b,_0x41b073);},'rRlqY':function(_0x51f1ff){return _0x51f1ff();},'uYZyt':_0x2f0671(0x223),'fPRfh':'<PasswordPlaceholder>','izGvu':'Adding\x20Websocket\x20listeners','vsNLg':function(_0x252a9c,_0x4f5db4,_0x1b1adf,_0x508965){return _0x252a9c(_0x4f5db4,_0x1b1adf,_0x508965);},'Mvrqa':function(_0x23037f,_0x5507f7,_0x2f355f){return _0x23037f(_0x5507f7,_0x2f355f);},'Ivkgq':function(_0x55000a,_0x559027,_0x3b3dc1){return _0x55000a(_0x559027,_0x3b3dc1);},'KXZdb':'Grid\x20stoppped.','IpZjC':function(_0x5e3150,_0x45af87){return _0x5e3150===_0x45af87;},'SEVbT':_0x2f0671(0x219),'eghwz':function(_0x4f396c,_0x5961e3,_0x4e2e1c,_0x4ad5e8,_0x556e48,_0x53577d,_0x25480f){return _0x4f396c(_0x5961e3,_0x4e2e1c,_0x4ad5e8,_0x556e48,_0x53577d,_0x25480f);},'mFemh':_0x2f0671(0x22f),'Lplek':function(_0x36e718,_0x574e8a,_0x5e5d1d,_0x2cb7e6,_0x353c4e,_0x1dd39e,_0x58f4d5){return _0x36e718(_0x574e8a,_0x5e5d1d,_0x2cb7e6,_0x353c4e,_0x1dd39e,_0x58f4d5);},'ECJat':_0x2f0671(0x22b),'yighG':function(_0x5b88c0,_0x1933c0,_0x369c4b,_0x3bc14a,_0x266d3c,_0x2d2979,_0x520d1f){return _0x5b88c0(_0x1933c0,_0x369c4b,_0x3bc14a,_0x266d3c,_0x2d2979,_0x520d1f);},'MUXgq':_0x2f0671(0x22c)};let _0x51bd17;try{!_0x1df00e[_0x2f0671(0x20f)]&&(logger[_0x2f0671(0x1f2)](_0x132448['YQils']),process[_0x2f0671(0x1fd)](0x1));!fs[_0x2f0671(0x237)](_0x132448[_0x2f0671(0x1ff)](getCredentialsPath))&&(logger['error'](_0x132448[_0x2f0671(0x20e)]),await _0x132448[_0x2f0671(0x202)](sendInstrumentationEvent,_0x1df00e,_0x132448[_0x2f0671(0x20a)],messageTypes[_0x2f0671(0x1f1)],_0x132448[_0x2f0671(0x216)],null,_0x1df00e),process['exit'](0x1));logger[_0x2f0671(0x21a)](_0x2f0671(0x204)+_0x1df00e['gridId']),await _0x132448['RYFgM'](sendInstrumentationEvent,_0x1df00e,_0x132448[_0x2f0671(0x20a)],messageTypes[_0x2f0671(0x205)],null,null,_0x1df00e);const _0x5c44f7=JSON[_0x2f0671(0x233)](fs[_0x2f0671(0x206)](_0x132448[_0x2f0671(0x1ed)](getCredentialsPath)));global_registry[_0x2f0671(0x238)]=_0x5c44f7[_0x2f0671(0x228)][_0x2f0671(0x1f8)],global_registry['bstackAccesskey']=_0x5c44f7[_0x2f0671(0x228)][_0x2f0671(0x235)];const _0x1572dd=WS_ENDPOINT['replace'](_0x132448['uYZyt'],_0x5c44f7[_0x2f0671(0x228)][_0x2f0671(0x1f8)])[_0x2f0671(0x21b)](_0x132448[_0x2f0671(0x215)],_0x5c44f7[_0x2f0671(0x228)][_0x2f0671(0x235)]),_0x196e1a={};_0x196e1a[_0x2f0671(0x1fa)]=ws,_0x196e1a[_0x2f0671(0x22d)]=0x36ee80,_0x51bd17=new ReconnectingWebSocket(_0x1572dd,[],_0x196e1a),logger[_0x2f0671(0x209)](_0x132448[_0x2f0671(0x1f6)]),webSocketUtils['addListeners'](_0x51bd17,_0x1df00e[_0x2f0671(0x240)],_0x1df00e[_0x2f0671(0x235)]);const [_0x346f57,_0x18ab95]=await _0x132448['vsNLg'](getGridDetails,_0x5c44f7[_0x2f0671(0x228)][_0x2f0671(0x1f8)],_0x5c44f7[_0x2f0671(0x228)][_0x2f0671(0x235)],_0x1df00e['gridId']);if(_0x18ab95){const _0x4464d2=_0x18ab95[_0x2f0671(0x21a)];global_registry[_0x2f0671(0x22e)]=_0x4464d2[_0x2f0671(0x22e)],global_registry[_0x2f0671(0x20d)]=_0x4464d2['region'],global_registry[_0x2f0671(0x1ef)]=_0x4464d2[_0x2f0671(0x1ef)];const _0x47f5ee=await _0x132448['RYFgM'](getCloudProviderObject,_0x4464d2[_0x2f0671(0x22e)],_0x4464d2[_0x2f0671(0x1ef)],_0x4464d2[_0x2f0671(0x229)],_0x51bd17,webSocketUtils,_0x1df00e),[_0x5c7034,_0x15e114,_0x501f64,_0xbb99f,_0xb15e53,_0xac0ad1]=await _0x132448[_0x2f0671(0x1f3)](createK8sClient,_0x47f5ee,_0x1df00e[_0x2f0671(0x234)]);await _0x132448['Ivkgq'](scaleDownHubDeployment,_0x15e114,_0x4464d2[_0x2f0671(0x229)]),logger['info'](_0x132448[_0x2f0671(0x222)]),process[_0x2f0671(0x1fd)](0x0);}_0x132448[_0x2f0671(0x1eb)](_0x346f57[_0x2f0671(0x220)],0x191)&&(logger[_0x2f0671(0x1f2)](_0x132448['SEVbT']),await _0x132448['eghwz'](sendInstrumentationEvent,_0x1df00e,_0x132448[_0x2f0671(0x20a)],messageTypes[_0x2f0671(0x1f1)],_0x132448[_0x2f0671(0x1f4)],null,_0x1df00e),process[_0x2f0671(0x1fd)](0x1)),_0x132448[_0x2f0671(0x1eb)](_0x346f57[_0x2f0671(0x220)],0x190)&&(logger[_0x2f0671(0x1f2)](JSON[_0x2f0671(0x233)](_0x346f57[_0x2f0671(0x213)])['message']),await _0x132448[_0x2f0671(0x241)](sendInstrumentationEvent,_0x1df00e,_0x132448['XsBrE'],messageTypes['ERROR'],_0x132448['ECJat'],null,_0x1df00e),process[_0x2f0671(0x1fd)](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x2f0671(0x207)](_0x346f57)),await _0x132448['yighG'](sendInstrumentationEvent,_0x1df00e,_0x132448[_0x2f0671(0x20a)],messageTypes['ERROR'],_0x132448[_0x2f0671(0x212)],_0x346f57,_0x1df00e),process['exit'](0x1);}catch(_0x5f4fea){const _0x6204a8='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x5f4fea+'\x20\x0a'+JSON[_0x2f0671(0x207)](_0x5f4fea[_0x2f0671(0x21e)])+'\x20';logger[_0x2f0671(0x1f2)](_0x6204a8),process[_0x2f0671(0x1fd)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x4cce60=a22_0x66cf;(function(_0x21cacd,_0x2f1b44){const _0x5a5624=a22_0x66cf,_0x5e2f1d=_0x21cacd();while(!![]){try{const _0x386807=parseInt(_0x5a5624(0xed))/0x1+-parseInt(_0x5a5624(0x13a))/0x2*(parseInt(_0x5a5624(0x13c))/0x3)+-parseInt(_0x5a5624(0x129))/0x4*(-parseInt(_0x5a5624(0x109))/0x5)+parseInt(_0x5a5624(0xea))/0x6+parseInt(_0x5a5624(0xe8))/0x7*(-parseInt(_0x5a5624(0x13e))/0x8)+parseInt(_0x5a5624(0x104))/0x9+-parseInt(_0x5a5624(0x10f))/0xa;if(_0x386807===_0x2f1b44)break;else _0x5e2f1d['push'](_0x5e2f1d['shift']());}catch(_0x22cbdf){_0x5e2f1d['push'](_0x5e2f1d['shift']());}}}(a22_0x2b05,0x9b706),require(a22_0x4cce60(0xec))[a22_0x4cce60(0x118)]());let gridURL='grid.browserstack.com',bsApiUrl='api.browserstack.com',agApiUrl='grid-api.browserstack.com';const _env=(process[a22_0x4cce60(0x113)][a22_0x4cce60(0x11b)]||'prod')['toLowerCase']();if(_env==='staging'||_env===a22_0x4cce60(0x134))gridURL=a22_0x4cce60(0x138),bsApiUrl=a22_0x4cce60(0x107),agApiUrl=a22_0x4cce60(0x102);else(_env===a22_0x4cce60(0x10a)||_env===a22_0x4cce60(0xfc))&&(gridURL=a22_0x4cce60(0x124),bsApiUrl=a22_0x4cce60(0x11c),agApiUrl=a22_0x4cce60(0xde));exports[a22_0x4cce60(0x12c)]=process[a22_0x4cce60(0x113)]['DASHBOARD_ENDPOINT']||gridURL,exports[a22_0x4cce60(0xf1)]=process[a22_0x4cce60(0x113)][a22_0x4cce60(0xf1)]||bsApiUrl,exports['AG_API_URL']=process[a22_0x4cce60(0x113)]['AG_API_URL']||agApiUrl,exports[a22_0x4cce60(0x139)]=a22_0x4cce60(0xff)+this[a22_0x4cce60(0x13f)]+a22_0x4cce60(0xf3),exports[a22_0x4cce60(0xeb)]=a22_0x4cce60(0x147),exports[a22_0x4cce60(0xe2)]=a22_0x4cce60(0x12a),exports[a22_0x4cce60(0x127)]=a22_0x4cce60(0xe5),exports['AWS']=a22_0x4cce60(0x114),exports['CLUSTER_DEP_STACK_NAME']=a22_0x4cce60(0xf9),exports[a22_0x4cce60(0x132)]=a22_0x4cce60(0xfe),exports[a22_0x4cce60(0x106)]=a22_0x4cce60(0x10c),exports[a22_0x4cce60(0xe6)]=a22_0x4cce60(0x103),exports[a22_0x4cce60(0x10d)]='azure',exports[a22_0x4cce60(0x148)]='gcp',exports[a22_0x4cce60(0xef)]=[this[a22_0x4cce60(0x11a)],this[a22_0x4cce60(0x10d)],this[a22_0x4cce60(0x148)]];const a22_0x4b60c7={};a22_0x4b60c7[a22_0x4cce60(0x125)]='browserstack:managedBy',a22_0x4b60c7[a22_0x4cce60(0x122)]=a22_0x4cce60(0x145);const a22_0x245063={};a22_0x245063[a22_0x4cce60(0x125)]=a22_0x4cce60(0x10b),a22_0x245063[a22_0x4cce60(0x122)]=a22_0x4cce60(0x146);const common_hst_tags_list=[a22_0x4b60c7,a22_0x245063];function a22_0x66cf(_0x14f246,_0x4726aa){const _0x2b05d4=a22_0x2b05();return a22_0x66cf=function(_0x66cfb4,_0x139334){_0x66cfb4=_0x66cfb4-0xdb;let _0x19ccb0=_0x2b05d4[_0x66cfb4];return _0x19ccb0;},a22_0x66cf(_0x14f246,_0x4726aa);}if(process[a22_0x4cce60(0x113)][a22_0x4cce60(0x126)]){const parsedTags=process[a22_0x4cce60(0x113)][a22_0x4cce60(0x126)][a22_0x4cce60(0x12e)](',');parsedTags[a22_0x4cce60(0x117)](_0x9e4434=>{const _0x66bb5=a22_0x4cce60,_0x3852ae=_0x9e4434[_0x66bb5(0x12e)](':'),_0x530d28={};_0x530d28[_0x66bb5(0x125)]=_0x3852ae[0x0],_0x530d28[_0x66bb5(0x122)]=_0x3852ae[0x1],common_hst_tags_list[_0x66bb5(0x11f)](_0x530d28);});}exports[a22_0x4cce60(0x131)]=common_hst_tags_list;const a22_0x5c3d3f={};a22_0x5c3d3f[a22_0x4cce60(0x10e)]='BrowserStack',a22_0x5c3d3f[a22_0x4cce60(0x10b)]=a22_0x4cce60(0x146),exports[a22_0x4cce60(0xf7)]=a22_0x5c3d3f,exports[a22_0x4cce60(0xe3)]=[this['AWS']];function a22_0x2b05(){const _0x3b941f=['list','1461212PVXTzD','BrowserStackIAMUser','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','DASHBOARD_ENDPOINT','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','split','[REDACTED]','NULL','COMMON_HST_TAGS','CLUSTER_AUTOSCALER_STACK_NAME','info','stag','REGION','unknown','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','grid-devhst.bsstag.com','WS_ENDPOINT','331826YfNHGZ','LOG','12WHjuKD','CLI_RUN_STARTED','1184320tiaCef','AG_API_URL','LINK_MESSAGE','global_registry','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','REDACTED','BrowserStack','BrowserStack-Automate-TurboScale','credentials','GCP','CLI_RUN_FINISHED','messageTypes','configure','grid-api-preprod.bsstag.com','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','GRID_URL','DEFAULT_CLUSTER_DETAILS','IAM_USER_NAME','SUPPORTED_CLOUD_PROVIDERS','gridProfile','high-scale-grid','TURBOSCALE_DEPLOYMENT','delete','35Jsitic','success','76572zBtbXL','CP_CONFIG_FILE','dotenv','1157158fbusqi','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','ALL_SUPPORTED_CLOUD_PROVIDERS','pre_check','BS_API_URL','connect','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','INFO','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','HST_CLUSTER_TAGS','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','BSTACK-ATS-CLUSTER','grid','high-scale-grid-cluster','pre-prod','ERROR','BSTACK-ATS-CLUSTER-AUTOSCALER','wss://','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','HELP_FOOTER_MESSAGE','grid-api-devhst.bsstag.com','browserstack-turboscale-grid','4321593tfUQAY','RESOURCES','CLUSTER_HUB_HA_STACK_NAME','api-devhst.bsstag.com','error','15KzcaDI','preprod','browserstack:service','BSTACK-ATS-CLUSTER-HUB-HA','AZURE','browserstack:managedBy','7054760sasgFW','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','cliRunFinished','env','aws','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','gridUrl','forEach','config','init','AWS','BROWSERSTACK_ENV','api-preprod.bsstag.com','WARNING','log','push','SUCCESS','CLUSTER','Value','HELP_HEADER_MESSAGE','grid-preprod.bsstag.com','Key','TURBOSCALE_CUSTOM_TAGS','DEFAULT_GRID_NAME'];a22_0x2b05=function(){return _0x3b941f;};return a22_0x2b05();}const a22_0x54c891={};a22_0x54c891[a22_0x4cce60(0x13b)]=a22_0x4cce60(0x11e),a22_0x54c891[a22_0x4cce60(0x105)]='resourceInfo',a22_0x54c891[a22_0x4cce60(0xe0)]=a22_0x4cce60(0x116),a22_0x54c891[a22_0x4cce60(0x13d)]='cliRunStarted',a22_0x54c891[a22_0x4cce60(0xdb)]=a22_0x4cce60(0x112),exports['WS_EVENTS']=a22_0x54c891,exports[a22_0x4cce60(0x141)]={},exports[a22_0x4cce60(0x140)]=a22_0x4cce60(0x142);const a22_0x3d1832={};a22_0x3d1832['root']=a22_0x4cce60(0xf4)+this[a22_0x4cce60(0x140)],a22_0x3d1832[a22_0x4cce60(0x119)]=a22_0x4cce60(0xf8)+this[a22_0x4cce60(0x140)],a22_0x3d1832[a22_0x4cce60(0xdd)]=a22_0x4cce60(0xdf)+this[a22_0x4cce60(0x140)],a22_0x3d1832['create']=a22_0x4cce60(0x100)+this[a22_0x4cce60(0x140)],a22_0x3d1832[a22_0x4cce60(0x128)]={},a22_0x3d1832[a22_0x4cce60(0xe7)]=a22_0x4cce60(0x115)+this[a22_0x4cce60(0x140)],a22_0x3d1832[a22_0x4cce60(0xf2)]=a22_0x4cce60(0x12d)+this['LINK_MESSAGE'],a22_0x3d1832['start']='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x4cce60(0x140)],a22_0x3d1832['stop']=a22_0x4cce60(0xee)+this[a22_0x4cce60(0x140)],a22_0x3d1832[a22_0x4cce60(0xf0)]=a22_0x4cce60(0x143)+this['LINK_MESSAGE'],a22_0x3d1832[a22_0x4cce60(0x128)]['root']='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this[a22_0x4cce60(0x140)],a22_0x3d1832[a22_0x4cce60(0x128)][a22_0x4cce60(0xfa)]=a22_0x4cce60(0x12b)+this['LINK_MESSAGE'],a22_0x3d1832[a22_0x4cce60(0x128)][a22_0x4cce60(0xe4)]=a22_0x4cce60(0x137)+this[a22_0x4cce60(0x140)],exports[a22_0x4cce60(0x123)]=a22_0x3d1832,exports[a22_0x4cce60(0x101)]=a22_0x4cce60(0x110);const a22_0x88aa8c={};a22_0x88aa8c[a22_0x4cce60(0x120)]=a22_0x4cce60(0xe9),a22_0x88aa8c[a22_0x4cce60(0xfd)]=a22_0x4cce60(0x108),a22_0x88aa8c[a22_0x4cce60(0xf5)]=a22_0x4cce60(0x133),a22_0x88aa8c[a22_0x4cce60(0x11d)]='warning',a22_0x88aa8c['UNKNOWN']=a22_0x4cce60(0x136),a22_0x88aa8c[a22_0x4cce60(0x130)]=null,exports[a22_0x4cce60(0xdc)]=a22_0x88aa8c,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x4cce60(0x144)]=a22_0x4cce60(0x12f);const a22_0x585495={};a22_0x585495['grid-profile']=a22_0x4cce60(0x111);const a22_0x758c7a={};a22_0x758c7a['pre-check']=a22_0x585495,exports['MessageDescription']=a22_0x758c7a,exports['TRIAL_GRID_URL']=a22_0x4cce60(0xf6);const a22_0x119083={};a22_0x119083[a22_0x4cce60(0x121)]=a22_0x4cce60(0xfb),a22_0x119083['CLOUD_PROVIDER']=a22_0x4cce60(0x114),a22_0x119083[a22_0x4cce60(0x135)]='us-east-1',exports[a22_0x4cce60(0xe1)]=a22_0x119083;
|
package/ats/src/config/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a23_0xee1cfc=a23_0x5c8e;function a23_0x5c8e(_0x5a08cc,_0x9cde73){const _0x31567a=a23_0x3156();return a23_0x5c8e=function(_0x5c8e68,_0x4e014){_0x5c8e68=_0x5c8e68-0x11f;let _0xe96cf7=_0x31567a[_0x5c8e68];return _0xe96cf7;},a23_0x5c8e(_0x5a08cc,_0x9cde73);}(function(_0x2a56e4,_0x3062d6){const _0x2761ad=a23_0x5c8e,_0x3df86c=_0x2a56e4();while(!![]){try{const _0x4e1280=parseInt(_0x2761ad(0x122))/0x1*(-parseInt(_0x2761ad(0x129))/0x2)+-parseInt(_0x2761ad(0x12d))/0x3*(-parseInt(_0x2761ad(0x13a))/0x4)+-parseInt(_0x2761ad(0x138))/0x5+parseInt(_0x2761ad(0x123))/0x6+-parseInt(_0x2761ad(0x140))/0x7+parseInt(_0x2761ad(0x120))/0x8*(parseInt(_0x2761ad(0x12f))/0x9)+parseInt(_0x2761ad(0x125))/0xa*(parseInt(_0x2761ad(0x13f))/0xb);if(_0x4e1280===_0x3062d6)break;else _0x3df86c['push'](_0x3df86c['shift']());}catch(_0x28f189){_0x3df86c['push'](_0x3df86c['shift']());}}}(a23_0x3156,0x21c2c));const winston=require(a23_0xee1cfc(0x134)),fs=require('fs'),path=require(a23_0xee1cfc(0x13c)),logDir='log';!fs[a23_0xee1cfc(0x13d)](logDir)&&fs['mkdirSync'](logDir);const a23_0xd816c={};a23_0xd816c[a23_0xee1cfc(0x13e)]=a23_0xee1cfc(0x12e);const a23_0x2e75c5={};a23_0x2e75c5[a23_0xee1cfc(0x12c)]=!![];function a23_0x3156(){const _0xce7328=['Console','path','existsSync','format','814PZCTEI','795991CFDjOo','name','85912RSqakt','colorize','8842ZVcgyE','749190QLumuL','logger','15630pLdnSO','transports','console.info','fileLogger','44lGZumn','events.log','message','level','99qvYtLO','YYYY-MM-DD\x20HH:mm:ss','81JfpRyO','combine','debug','timestamp','printf','winston','File','usage.log','join','590300wxrASs','createLogger','27564FWUKvi'];a23_0x3156=function(){return _0xce7328;};return a23_0x3156();}const a23_0x42729f={};a23_0x42729f[a23_0xee1cfc(0x11f)]=a23_0xee1cfc(0x127),exports[a23_0xee1cfc(0x124)]=new winston[(a23_0xee1cfc(0x139))]({'format':winston[a23_0xee1cfc(0x13e)][a23_0xee1cfc(0x130)](winston[a23_0xee1cfc(0x13e)]['timestamp'](a23_0xd816c),winston[a23_0xee1cfc(0x13e)][a23_0xee1cfc(0x121)](a23_0x2e75c5),winston[a23_0xee1cfc(0x13e)][a23_0xee1cfc(0x133)](_0x546bfe=>_0x546bfe[a23_0xee1cfc(0x132)]+'\x20-\x20'+_0x546bfe[a23_0xee1cfc(0x12c)]+':\x20'+_0x546bfe[a23_0xee1cfc(0x12b)])),'transports':[new winston[(a23_0xee1cfc(0x126))][(a23_0xee1cfc(0x13b))](a23_0x42729f),new winston[(a23_0xee1cfc(0x126))][(a23_0xee1cfc(0x135))]({'filename':path[a23_0xee1cfc(0x137)](logDir,a23_0xee1cfc(0x12a)),'level':a23_0xee1cfc(0x131)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0xee1cfc(0x126))]['File']({'filename':path[a23_0xee1cfc(0x137)](logDir,a23_0xee1cfc(0x136)),'level':a23_0xee1cfc(0x131)})]};exports[a23_0xee1cfc(0x128)]=new winston[(a23_0xee1cfc(0x139))](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_0x264581=a24_0x5c4b;(function(_0x567b21,_0x8c8d86){const _0x2f1999=a24_0x5c4b,_0x4dc029=_0x567b21();while(!![]){try{const _0x22918e=parseInt(_0x2f1999(0xf4))/0x1+parseInt(_0x2f1999(0xf5))/0x2+-parseInt(_0x2f1999(0xf7))/0x3+-parseInt(_0x2f1999(0xec))/0x4+parseInt(_0x2f1999(0xf9))/0x5*(parseInt(_0x2f1999(0xf8))/0x6)+parseInt(_0x2f1999(0xf3))/0x7*(parseInt(_0x2f1999(0xf6))/0x8)+parseInt(_0x2f1999(0xfa))/0x9*(-parseInt(_0x2f1999(0xf1))/0xa);if(_0x22918e===_0x8c8d86)break;else _0x4dc029['push'](_0x4dc029['shift']());}catch(_0xf142fd){_0x4dc029['push'](_0x4dc029['shift']());}}}(a24_0x20fe,0x370cc));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');function a24_0x20fe(){const _0x2109d5=['1026SZAknf','42hwQuOx','78470wYGXbb','4386429QLShaz','pTepm','commandDir','root','epilogue','exports','1278756YnlTjA','env','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','help','commands','10IvzPFb','usage','7ybrEgE','392030yTNNZh','288862vSxWUu','3092616xBFBkJ'];a24_0x20fe=function(){return _0x2109d5;};return a24_0x20fe();}process[a24_0x264581(0xed)][a24_0x264581(0xee)]=0x1;function a24_0x5c4b(_0x2e3083,_0xff6422){const _0x20fe29=a24_0x20fe();return a24_0x5c4b=function(_0x5c4be5,_0x206f97){_0x5c4be5=_0x5c4be5-0xea;let _0x237f91=_0x20fe29[_0x5c4be5];return _0x237f91;},a24_0x5c4b(_0x2e3083,_0xff6422);}function run(_0x34e532){const _0x266849=a24_0x264581,_0x47768d={};_0x47768d['pLgrw']=_0x266849(0xf0),_0x47768d[_0x266849(0xfb)]=_0x266849(0xef);const _0x44e8c7=_0x47768d;_0x34e532[_0x266849(0xf2)](HELP_HEADER_MESSAGE[_0x266849(0xfd)])[_0x266849(0xfc)](_0x44e8c7['pLgrw'])['demandCommand']()[_0x266849(0xef)](_0x44e8c7['pTepm'])[_0x266849(0xea)](HELP_FOOTER_MESSAGE);}module[a24_0x264581(0xeb)]=run;
|