/*jslint node: true */
/*jslint browser: true*/
/*jslint nomen: true*/
/*jslint es5: true */
/*global Class, MP_SITE_URL, angular*/
'use strict';

/*
 * Service for promises not reported widget
 *
 **/
dashboardApp.factory('notKeptWidgetService', function ($http) {
    return {
        API_URL: MP_SITE_URL + '/advancedreports/notKeptNotRepairedCount',
        getNotKeptNotRepairedStats: function (queryData) {
            var data = $.param(queryData);
            return $http({
                method: 'POST',
                headers: {
                    'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
                },
                url: this.API_URL,
                data: data,
                cache: true
            });
        }
    }
});
