mail: add js code to get eventlog
This commit is contained in:
@@ -1948,6 +1948,21 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
};
|
||||
|
||||
// Email
|
||||
Client.prototype.getMailEventLogs = function (page, perPage, callback) {
|
||||
var config = {
|
||||
params: {
|
||||
page: page,
|
||||
per_page: perPage
|
||||
}
|
||||
};
|
||||
|
||||
get('/api/v1/mailserver/eventlog', config, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 200) return callback(new ClientError(status, data));
|
||||
callback(null, data.eventlogs);
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.getMailConfigForDomain = function (domain, callback) {
|
||||
get('/api/v1/mail/' + domain, null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
|
||||
Reference in New Issue
Block a user