Source: directives/incidentes/Incidente.js

    /**
     * @ngdoc directives
     * @name .Incidente
     * @module s4c.directives.incidentes.incidente
     *
     * @description
     * `Incidente` gerencia a comunicação entre incidentes no Frontend
     * e a API do backend.
     */
(function () {
    'use strict';

    function Incidente($resource, API_ENDPOINT) {
        return $resource(API_ENDPOINT + 'incidentes/:id', {
            id: '@id'
        }, {
            save: {
                method: 'PUT'
            },
            delete: {
                method: 'DELETE'
            }
        });
    }

    Incidente.$inject = ['$resource', 'API_ENDPOINT'];

    /**
     * @ngdoc overview
     * @name s4c.components.incidentes
     */
    //angular.module('s4c_components_incidentes').factory('Incidente', Incidente);
    angular.module('s4c.components.incidentes').factory('Incidente', Incidente);
}());