myems-admin/app/services/fdd/emailmessage.service.js

Summary

Maintainability
C
1 day
Test Coverage
'use strict';
app.factory('EmailMessageService', function($http) {
    return {
        getResult: function(query, headers, callback) {
            $http.get(getAPI()+"emailmessages?" + 'startdatetime=' + query.startdatetime + '&enddatetime=' + query.enddatetime, {headers})
            .then(function (response) {
                callback(response);
            }, function (response) {
                callback(response);
            });
        },

        deleteEmailMessage: function(emailmessage, headers, callback) {
            $http.delete(getAPI()+'emailmessages/'+emailmessage.id, {headers})
            .then(function (response) {
                callback(response);
            }, function (response) {
                callback(response);
            });
        }

    };
});