(function() { "use strict"; angular.module("raz") .service("lcmApiService", ["createApi", function (createApi) { var api = createApi('/api/lcm'); function getLCMFolderTreeById(folderId) { return api.get('/folder/tree/folderId/' + folderId); } function getLCMGroupFoldersForWeek(folder) { return api.post('/folder/week/folder', {folder: folder}); } function getLCMSSUnitsTreeById(folderId) { return api.get('/units/tree/folderId/' + folderId); } function getFSSSWeeksTreeById(folderId) { return api.get('/weeks/tree/folderId/' + folderId); } function getLCMSSUnitTree(folder) { return api.post('/folder/unit/folder', {folder: folder}); } return { getLCMFolderTreeById: getLCMFolderTreeById, getLCMGroupFoldersForWeek: getLCMGroupFoldersForWeek, getLCMSSUnitsTreeById: getLCMSSUnitsTreeById, getLCMSSUnitTree: getLCMSSUnitTree, getFSSSWeeksTreeById: getFSSSWeeksTreeById }; }]); })();