if (typeof UserGroup != "function") { function UserGroup() { this.id = 0; this.group = null; this.user = null; } } if (typeof User != "function") { function User() { this.birthday = null; this.lastName = null; this.primaryOfficeName = null; this.userGroupsNames = null; this.agent = null; this.id = 0; this.primaryOffice = null; this.userGroups = null; this.phoneNumber = null; this.email = null; this.copierCode = null; this.login = null; this.firstName = null; this.resourceGallerySize = 0; this.disabled = false; } } // 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 (EmailCampaignInterface == null) var EmailCampaignInterface = {}; EmailCampaignInterface._path = '/dwr'; EmailCampaignInterface.save = function(p0, callback) { dwr.engine._execute(EmailCampaignInterface._path, 'EmailCampaignInterface', 'save', p0, callback); } EmailCampaignInterface.send = function(p0, callback) { dwr.engine._execute(EmailCampaignInterface._path, 'EmailCampaignInterface', 'send', p0, callback); } EmailCampaignInterface.getAllTemplates = function(callback) { dwr.engine._execute(EmailCampaignInterface._path, 'EmailCampaignInterface', 'getAllTemplates', callback); } EmailCampaignInterface.saveTemplate = function(p0, callback) { dwr.engine._execute(EmailCampaignInterface._path, 'EmailCampaignInterface', 'saveTemplate', p0, callback); } EmailCampaignInterface.deleteTemplate = function(p0, callback) { dwr.engine._execute(EmailCampaignInterface._path, 'EmailCampaignInterface', 'deleteTemplate', p0, callback); } EmailCampaignInterface.getMyCampaigns = function(callback) { dwr.engine._execute(EmailCampaignInterface._path, 'EmailCampaignInterface', 'getMyCampaigns', callback); } EmailCampaignInterface.deleteCampaign = function(p0, callback) { dwr.engine._execute(EmailCampaignInterface._path, 'EmailCampaignInterface', 'deleteCampaign', p0, callback); } EmailCampaignInterface.isBlacklisted = function(p0, callback) { dwr.engine._execute(EmailCampaignInterface._path, 'EmailCampaignInterface', 'isBlacklisted', p0, callback); } EmailCampaignInterface.addToBlacklist = function(p0, callback) { dwr.engine._execute(EmailCampaignInterface._path, 'EmailCampaignInterface', 'addToBlacklist', p0, callback); } EmailCampaignInterface.removeFromBlacklist = function(p0, callback) { dwr.engine._execute(EmailCampaignInterface._path, 'EmailCampaignInterface', 'removeFromBlacklist', p0, callback); }