if (typeof UserGroup != "function") { function UserGroup() { this.id = 0; this.group = null; this.user = null; } } if (typeof User != "function") { function User() { this.birthday = null; this.lastName = null; this.primaryOfficeName = null; this.userGroupsNames = null; this.agent = null; this.id = 0; this.primaryOffice = null; this.userGroups = null; this.phoneNumber = null; this.email = null; this.copierCode = null; this.login = null; this.firstName = null; this.resourceGallerySize = 0; this.disabled = false; } } // Provide a default path to dwr.engine if (dwr == null) var dwr = {}; if (dwr.engine == null) dwr.engine = {}; if (DWREngine == null) var DWREngine = dwr.engine; if (OfficeInterface == null) var OfficeInterface = {}; OfficeInterface._path = '/dwr'; OfficeInterface.get = function(p0, callback) { dwr.engine._execute(OfficeInterface._path, 'OfficeInterface', 'get', p0, callback); } OfficeInterface.save = function(p0, callback) { dwr.engine._execute(OfficeInterface._path, 'OfficeInterface', 'save', p0, callback); } OfficeInterface.search = function(p0, callback) { dwr.engine._execute(OfficeInterface._path, 'OfficeInterface', 'search', p0, callback); } OfficeInterface.getAvailable = function(p0, callback) { dwr.engine._execute(OfficeInterface._path, 'OfficeInterface', 'getAvailable', p0, callback); } OfficeInterface.getAll = function(callback) { dwr.engine._execute(OfficeInterface._path, 'OfficeInterface', 'getAll', callback); } OfficeInterface.getUserOffices = function(p0, callback) { dwr.engine._execute(OfficeInterface._path, 'OfficeInterface', 'getUserOffices', p0, callback); } OfficeInterface.getAllTypeOffice = function(callback) { dwr.engine._execute(OfficeInterface._path, 'OfficeInterface', 'getAllTypeOffice', callback); } OfficeInterface.getEditableOffices = function(callback) { dwr.engine._execute(OfficeInterface._path, 'OfficeInterface', 'getEditableOffices', callback); } OfficeInterface.deleteOffice = function(p0, callback) { dwr.engine._execute(OfficeInterface._path, 'OfficeInterface', 'deleteOffice', p0, callback); }