1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Initial merged script-task into the agent.

This commit is contained in:
Ylian Saint-Hilaire 2022-08-18 16:19:39 -07:00
parent 115d80113a
commit 3aca17ea6d
3 changed files with 438 additions and 10 deletions

View file

@ -1738,8 +1738,22 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
try { obj.send(JSON.stringify({ action: 'amtconfig', user: '**MeshAgentApfTunnel**', pass: cookie })); } catch (ex) { }
break;
}
case 'scriptTask': {
// TODO
case 'script-task': {
// These command are for running regular batch jobs on the remote device
switch (command.subaction) {
case 'getScript': {
console.log('getScript');
break;
}
case 'clearAllPendingTasks': {
console.log('clearAllPendingTasks');
break;
}
case 'taskComplete': {
console.log('taskComplete');
break;
}
}
break;
}
default: {