feat(core): Add message of the day

This commit is contained in:
smizrahi
2024-01-22 14:34:22 +01:00
parent 0d0eda2698
commit eee50697b0
32 changed files with 1362 additions and 326 deletions
@@ -29,6 +29,34 @@
return new Administration(); // return unique instance
}];
/**
* @function $getMotd
* @memberof Administration.prototype
* @desc Get the motd to the server.
*/
Administration.prototype.$getMotd = function () {
var _this = this;
return Administration.$$resource.fetch("Administration/getMotd")
.then(function (data) {
return data;
});
};
/**
* @function $saveMotd
* @memberof Administration.prototype
* @desc Save the motd to the server.
*/
Administration.prototype.$saveMotd = function (message) {
var _this = this;
return Administration.$$resource.save("Administration", { motd: message }, { action: "saveMotd" })
.then(function (data) {
return data;
});
};
/* Initialize module if necessary */
try {
angular.module('SOGo.AdministrationUI');