// 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 (IMService == null) var IMService = {}; IMService._path = '/im/dwr'; IMService.login = function(p0, p1, p2, callback) { dwr.engine._execute(IMService._path, 'IMService', 'login', p0, p1, p2, false, callback); } IMService.ssoLogin = function(p0, callback) { dwr.engine._execute(IMService._path, 'IMService', 'ssoLogin', p0, false, callback); } IMService.ping = function(p1, callback) { dwr.engine._execute(IMService._path, 'IMService', 'ping', false, p1, callback); } IMService.getUnreadMessages = function(callback) { dwr.engine._execute(IMService._path, 'IMService', 'getUnreadMessages', false, callback); } IMService.getChatHistory = function(p1, p2, p3, callback) { dwr.engine._execute(IMService._path, 'IMService', 'getChatHistory', false, p1, p2, p3, callback); } IMService.searchHistory = function(p1, p2, callback) { dwr.engine._execute(IMService._path, 'IMService', 'searchHistory', false, p1, p2, callback); } IMService.search = function(p1, p2, p3, p4, callback) { dwr.engine._execute(IMService._path, 'IMService', 'search', false, p1, p2, p3, p4, callback); }