(function(){ var serviceNamespace = abp.utils.createNamespace(abp, 'services.app.session'); serviceNamespace.getCurrentLoginInformations = function(ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/session/GetCurrentLoginInformations', type: 'POST', data: JSON.stringify({}) }, ajaxParams)); }; })(); (function(){ var serviceNamespace = abp.utils.createNamespace(abp, 'services.app.profile'); serviceNamespace.changePassword = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/profile/ChangePassword', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.updateCurrentUserProfile = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/profile/UpdateCurrentUserProfile', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getPasswordComplexitySetting = function(ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/profile/GetPasswordComplexitySetting', type: 'POST', data: JSON.stringify({}) }, ajaxParams)); }; })(); (function(){ var serviceNamespace = abp.utils.createNamespace(abp, 'services.app.user'); serviceNamespace.prohibitPermission = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/user/ProhibitPermission', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.removeFromRole = function(userId, roleName, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/user/RemoveFromRole?userId=' + encodeURIComponent(userId) + '&roleName=' + encodeURIComponent(roleName) + '', type: 'POST', data: JSON.stringify({}) }, ajaxParams)); }; serviceNamespace.getUsers = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/user/GetUsers', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getAllUsers = function(ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/user/GetAllUsers', type: 'POST', data: JSON.stringify({}) }, ajaxParams)); }; serviceNamespace.getUserForEdit = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/user/GetUserForEdit', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.createOrUpdateUser = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/user/CreateOrUpdateUser', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.createUser = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/user/CreateUser', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.deleteUser = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/user/DeleteUser', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.resetPassword = function(userId, newPassword, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/user/ResetPassword?userId=' + encodeURIComponent(userId) + '&newPassword=' + encodeURIComponent(newPassword) + '', type: 'POST', data: JSON.stringify({}) }, ajaxParams)); }; serviceNamespace.updateUser = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/user/UpdateUser', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getDetailAsync = function(userId, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/user/GetDetailAsync?userId=' + encodeURIComponent(userId) + '', type: 'POST', data: JSON.stringify({}) }, ajaxParams)); }; serviceNamespace.changePasswordAsync = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/user/ChangePasswordAsync', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; })(); (function(){ var serviceNamespace = abp.utils.createNamespace(abp, 'services.app.userLink'); serviceNamespace.getRecentlyUsedLinkedUsers = function(ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/userLink/GetRecentlyUsedLinkedUsers', type: 'POST', data: JSON.stringify({}) }, ajaxParams)); }; })(); (function(){ var serviceNamespace = abp.utils.createNamespace(abp, 'services.app.role'); serviceNamespace.updateRolePermissions = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/role/UpdateRolePermissions', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getRoles = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/role/GetRoles', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getRoleForEdit = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/role/GetRoleForEdit', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.createOrUpdateRole = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/role/CreateOrUpdateRole', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; })(); (function(){ var serviceNamespace = abp.utils.createNamespace(abp, 'services.app.category'); serviceNamespace.createOrUpdate = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/category/CreateOrUpdate', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.get = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/category/Get', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getAll = function(ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/category/GetAll', type: 'POST', data: JSON.stringify({}) }, ajaxParams)); }; serviceNamespace.getList = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/category/GetList', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getOrDefault = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/category/GetOrDefault', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.move = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/category/Move', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.moveDown = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/category/MoveDown', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.moveUp = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/category/MoveUp', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace['delete'] = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/category/Delete', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; })(); (function(){ var serviceNamespace = abp.utils.createNamespace(abp, 'services.app.post'); serviceNamespace.createOrUpdatePost = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/post/CreateOrUpdatePost', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.deletePost = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/post/DeletePost', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getPost = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/post/GetPost', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getPostDetail = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/post/GetPostDetail', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getPosts = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/post/GetPosts', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getLastPostDetail = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/post/GetLastPostDetail', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; })(); (function(){ var serviceNamespace = abp.utils.createNamespace(abp, 'services.app.onlineMessage'); serviceNamespace.createOnlineMessage = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/onlineMessage/CreateOnlineMessage', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getOnlineMessages = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/onlineMessage/GetOnlineMessages', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getOpenOnlineMessages = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/onlineMessage/GetOpenOnlineMessages', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.reviewOnlineMessage = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/onlineMessage/ReviewOnlineMessage', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getOnlineMessage = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/onlineMessage/GetOnlineMessage', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.deleteOnlineMessage = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/onlineMessage/DeleteOnlineMessage', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; })(); (function(){ var serviceNamespace = abp.utils.createNamespace(abp, 'services.app.notification'); serviceNamespace.updateNotificationSettings = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/notification/UpdateNotificationSettings', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getUserNotifications = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/notification/GetUserNotifications', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; })(); (function(){ var serviceNamespace = abp.utils.createNamespace(abp, 'services.app.tenant'); serviceNamespace.getTenants = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/tenant/GetTenants', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getTenant = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/tenant/GetTenant', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.createTenant = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/tenant/CreateTenant', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.deleteTenant = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/tenant/DeleteTenant', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.updateTenant = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/tenant/UpdateTenant', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.initTenantNavigation = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/tenant/InitTenantNavigation', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; })(); (function(){ var serviceNamespace = abp.utils.createNamespace(abp, 'services.app.language'); serviceNamespace.importLanguageText = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/language/ImportLanguageText', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getLanguageTextCreate = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/language/GetLanguageTextCreate', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getLanguageTextEdit = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/language/GetLanguageTextEdit', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.updateLanguageText = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/language/UpdateLanguageText', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.setDefaultLanguage = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/language/SetDefaultLanguage', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getLanguages = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/language/GetLanguages', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getLanguageTexts = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/language/GetLanguageTexts', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; })(); (function(){ var serviceNamespace = abp.utils.createNamespace(abp, 'services.app.outsiteBulletin'); serviceNamespace.getBulletin = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/outsiteBulletin/GetBulletin', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getBulletins = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/outsiteBulletin/GetBulletins', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; })(); (function(){ var serviceNamespace = abp.utils.createNamespace(abp, 'services.app.auditLog'); serviceNamespace.getAll = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/auditLog/GetAll', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; })(); (function(){ var serviceNamespace = abp.utils.createNamespace(abp, 'services.app.menu'); serviceNamespace.create = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/menu/Create', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.update = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/menu/Update', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.createOrUpdate = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/menu/CreateOrUpdate', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace['delete'] = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/menu/Delete', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.get = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/menu/Get', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getOrDefault = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/menu/GetOrDefault', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getAll = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/menu/GetAll', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getMenuWithItems = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/menu/GetMenuWithItems', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getMenuItemsTree = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/menu/GetMenuItemsTree', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.getCreateOrEditMenuItem = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/menu/GetCreateOrEditMenuItem', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.createOrUpdateMenuItem = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/menu/CreateOrUpdateMenuItem', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.deleteItem = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/menu/DeleteItem', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.moveDown = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/menu/MoveDown', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.moveUp = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/menu/MoveUp', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; serviceNamespace.move = function(input, ajaxParams) { return abp.ajax($.extend({ url: abp.appPath + 'api/services/app/menu/Move', type: 'POST', data: JSON.stringify(input) }, ajaxParams)); }; })();