diff options
Diffstat (limited to 'usecaseui-common/src/main/webapp/app/fusion/scripts/services/profileService.js')
-rw-r--r-- | usecaseui-common/src/main/webapp/app/fusion/scripts/services/profileService.js | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/usecaseui-common/src/main/webapp/app/fusion/scripts/services/profileService.js b/usecaseui-common/src/main/webapp/app/fusion/scripts/services/profileService.js deleted file mode 100644 index ca4252df..00000000 --- a/usecaseui-common/src/main/webapp/app/fusion/scripts/services/profileService.js +++ /dev/null @@ -1,79 +0,0 @@ - -app.factory('ProfileService', function ($http, $q) { - return { - getProfile: function() { - return $http.get('get_user') - .then(function(response) { - if (typeof response.data === 'object') { - return response.data; - } else { - return $q.reject(response.data); - } - - }, function(response) { - // something went wrong - return $q.reject(response.data); - }); - }, - - getProfilePagination: function(pageNum,viewPerPage) { - return $http.get('get_user_pagination?pageNum=' + pageNum + '&viewPerPage=' + viewPerPage) - .then(function(response) { - if (typeof response.data === 'object') { - return response.data; - } else { - return $q.reject(response.data); - } - - }, function(response) { - // something went wrong - return $q.reject(response.data); - }); - }, - - getPostProfile: function() { - return $http.get('post_search_sample') - .then(function(response) { - if (typeof response.data === 'object') { - return response.data; - } else { - return $q.reject(response.data); - } - - }, function(response) { - // something went wrong - return $q.reject(response.data); - }); - }, - - getProfileDetail: function(profileId) { - return $http.get('get_profile?profile_id='+profileId) - .then(function(response) { - if (typeof response.data === 'object') { - return response.data; - } else { - return $q.reject(response.data); - } - - }, function(response) { - // something went wrong - return $q.reject(response.data); - }); - }, - - getSelfProfileDetail: function() { - return $http.get('get_self_profile') - .then(function(response) { - if (typeof response.data === 'object') { - return response.data; - } else { - return $q.reject(response.data); - } - - }, function(response) { - // something went wrong - return $q.reject(response.data); - }); - } - }; -}); |