"use strict"; angular.module('app.service') .factory('adminUser', ['translate', 'BaseBridge', function (translate, BaseBridge) { var AdminUser = function (options) { BaseBridge.call(this, options); this.controller = 'user'; }; AdminUser.prototype = _.create(BaseBridge.prototype); AdminUser.prototype.constructor = AdminUser; AdminUser.prototype.roleNames = { user: translate('roleUser'), manager: translate('roleManager'), admin: translate('roleAdmin') }; AdminUser.prototype.readCreateData = function () { return this.post('read-create-data'); }; return new AdminUser(); }]);