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 (LeadInterface == null) var LeadInterface = {}; LeadInterface._path = '/dwr'; LeadInterface.get = function(p0, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'get', p0, callback); } LeadInterface.save = function(p0, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'save', p0, callback); } LeadInterface.search = function(p0, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'search', p0, callback); } LeadInterface.accept = function(p0, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'accept', p0, callback); } LeadInterface.validate = function(p0, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'validate', p0, callback); } LeadInterface.getAll = function(p0, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'getAll', p0, callback); } LeadInterface.getTypes = function(callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'getTypes', callback); } LeadInterface.getRequests = function(p0, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'getRequests', p0, callback); } LeadInterface.addRequest = function(p0, p1, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'addRequest', p0, p1, callback); } LeadInterface.canAcceptLead = function(p0, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'canAcceptLead', p0, callback); } LeadInterface.getByCustomer = function(p0, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'getByCustomer', p0, callback); } LeadInterface.reopen = function(p0, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'reopen', p0, callback); } LeadInterface.addNote = function(p0, p1, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'addNote', p0, p1, callback); } LeadInterface.decline = function(p0, p1, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'decline', p0, p1, callback); } LeadInterface.getMyCustomers = function(p0, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'getMyCustomers', p0, callback); } LeadInterface.getMyContacts = function(p0, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'getMyContacts', p0, callback); } LeadInterface.getGroupLeads = function(p0, p1, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'getGroupLeads', p0, p1, callback); } LeadInterface.getAllLeadCount = function(callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'getAllLeadCount', callback); } LeadInterface.getMyCustomerCount = function(callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'getMyCustomerCount', callback); } LeadInterface.getMyContactCount = function(callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'getMyContactCount', callback); } LeadInterface.getPoolCount = function(callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'getPoolCount', callback); } LeadInterface.getPoolLeads = function(p0, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'getPoolLeads', p0, callback); } LeadInterface.getMyAssignedLeads = function(callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'getMyAssignedLeads', callback); } LeadInterface.getMyNewRequests = function(callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'getMyNewRequests', callback); } LeadInterface.getByEmail = function(p0, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'getByEmail', p0, callback); } LeadInterface.getHistory = function(p0, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'getHistory', p0, callback); } LeadInterface.getAllGroups = function(callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'getAllGroups', callback); } LeadInterface.saveGroup = function(p0, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'saveGroup', p0, callback); } LeadInterface.deleteGroup = function(p0, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'deleteGroup', p0, callback); } LeadInterface.deleteContacts = function(p0, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'deleteContacts', p0, callback); } LeadInterface.getCustomerCount = function(p0, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'getCustomerCount', p0, callback); } LeadInterface.saveLeads = function(p0, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'saveLeads', p0, callback); } LeadInterface.reassign = function(p0, p1, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'reassign', p0, p1, callback); } LeadInterface.addNotes = function(p0, p1, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'addNotes', p0, p1, callback); } LeadInterface.closeLeads = function(p0, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'closeLeads', p0, callback); } LeadInterface.takeLeadFromPool = function(p0, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'takeLeadFromPool', p0, callback); } LeadInterface.putInPool = function(p0, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'putInPool', p0, callback); } LeadInterface.getGlobalGroups = function(callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'getGlobalGroups', callback); } LeadInterface.applyGroup = function(p0, p1, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'applyGroup', p0, p1, callback); } LeadInterface.removeFromGroup = function(p0, p1, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'removeFromGroup', p0, p1, callback); } LeadInterface.getGroupsForLeads = function(p0, callback) { dwr.engine._execute(LeadInterface._path, 'LeadInterface', 'getGroupsForLeads', p0, callback); }