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 (TownInterface == null) var TownInterface = {}; TownInterface._path = '/dwr'; TownInterface.get = function(p0, p1, callback) { dwr.engine._execute(TownInterface._path, 'TownInterface', 'get', p0, p1, callback); } TownInterface.search = function(p0, callback) { dwr.engine._execute(TownInterface._path, 'TownInterface', 'search', p0, callback); } TownInterface.create = function(p0, p1, callback) { dwr.engine._execute(TownInterface._path, 'TownInterface', 'create', p0, p1, callback); } TownInterface.getAll = function(callback) { dwr.engine._execute(TownInterface._path, 'TownInterface', 'getAll', callback); } TownInterface.getAllMetroRegions = function(callback) { dwr.engine._execute(TownInterface._path, 'TownInterface', 'getAllMetroRegions', callback); } TownInterface.saveMetroRegion = function(p0, callback) { dwr.engine._execute(TownInterface._path, 'TownInterface', 'saveMetroRegion', p0, callback); } TownInterface.deleteMetroRegion = function(p0, callback) { dwr.engine._execute(TownInterface._path, 'TownInterface', 'deleteMetroRegion', p0, callback); }