{"size": 1175, "ext": "js", "max_stars_repo_path": "public/modules/reportings/services/reportings.client.service.js", "max_stars_repo_name": "lizhi97/WebPortal", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/modules/reportings/services/reportings.client.service.js", "max_issues_repo_name": "lizhi97/WebPortal", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/modules/reportings/services/reportings.client.service.js", "max_forks_repo_name": "lizhi97/WebPortal", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.9821428571, "max_line_length": 67, "alphanum_fraction": 0.690212766}
'use strict';

//Reportings service used to communicate Reportings REST endpoints
var myModule = angular.module('reportings');
myModule.factory('Reportings', ['$resource',
	function($resource) {
		return $resource('reportings/:reportingId', { reportingId: '@_id'
		}, {
			update: {
				method: 'PUT'
			}
		});
	}
]);

myModule.factory('GetFPUS', ['$resource',
	function($resource){
		return $resource('/getLatestFailedTests');
	}
]);
myModule.factory('GetTop10Failure', ['$resource',
	function($resource){
		return $resource('/getTop10Failure');
	}
]);

myModule.factory('GetTeamReport', ['$resource',
	function($resource){
		return $resource('/getTeamReport');
	}
]);

myModule.factory('GetCreatedReport', ['$resource',
	function($resource){
		return $resource('/getCreatedReport');
	}
]);

myModule.factory('GetCreatedByDate', ['$resource',
	function($resource){
		return $resource('/getCreatedByDate');
	}
]);

myModule.factory('GetFailedPassedList', ['$resource',
	function($resource){
		return $resource('/getFailedPassedList');
	}
]);

myModule.factory('GetFailedPassedByDate', ['$resource',
	function($resource){
		return $resource('/getFailedPassedByDate');
	}
]);
