// 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 (AlertService == null) var AlertService = {}; AlertService._path = '/am/dwr'; AlertService.getCurrentUserAlerts = function(callback) { dwr.engine._execute(AlertService._path, 'AlertService', 'getCurrentUserAlerts', callback); } AlertService.getCurrentUserUnviewedAlertCount = function(callback) { dwr.engine._execute(AlertService._path, 'AlertService', 'getCurrentUserUnviewedAlertCount', callback); }