if (typeof UserGroup != "function") { function UserGroup() { this.id = 0; this.group = null; this.user = null; } } if (typeof User != "function") { function User() { this.primaryOffice = null; this.id = 0; this.lastName = null; this.birthday = null; this.userGroups = null; this.phoneNumber = null; this.email = null; this.login = null; this.firstName = null; this.agent = null; } } // 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.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); }