{"body":"angular.module('prioritizeApp').service('departmentListService', ['$http','departmentService','APIUrls',\n    function ($http,departmentService,APIUrls) {\n        var service = this;\n        this.departments = [];\n\n        //get employee from db\n        //loop through and add\n        //this.employees.push(employeeService.Employee(emp));\n        service.refreshData = function () {\n            $http.get(APIUrls.getUrl('departments')).\n                    success(function (data, status, headers, config) {\n                        for (var count in data) {\n                            service.departments.push(departmentService.Department(data[count]));\n                        }\n                    });\n        };\n\n        service.refreshData();\n\n}","name":"","extension":"","url":"https://www.irccloud.com/pastebin/uNhO0R2S","modified":1417038734,"id":"uNhO0R2S","size":749,"lines":20,"own_paste":false,"theme":"","date":1417038734}