X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fmodels%2Fmail_account.js;h=b3c5af3e5acf62f5a85c84e760516a7e62f85084;hb=9c67eff8b98f3784e4fa1b031a29d4590547e055;hp=3235d20f77bc972a2b9b21e7f57583c35b6c0c3e;hpb=2c028dc81dced7b7435dd16e21e89e4178a6b18c;p=motion.git diff --git a/server/models/mail_account.js b/server/models/mail_account.js index 3235d20..b3c5af3 100644 --- a/server/models/mail_account.js +++ b/server/models/mail_account.js @@ -29,6 +29,27 @@ module.exports = function(sequelize, DataTypes) { }, whiteLabel: { type: DataTypes.STRING + }, + acceptUrl: { + type: DataTypes.STRING + }, + rejectUrl: { + type: DataTypes.STRING + }, + acceptMethod: { + type: DataTypes.ENUM('GET', 'POST') + }, + rejectMethod: { + type: DataTypes.ENUM('GET', 'POST') + }, + actions: { + type: DataTypes.STRING, + get: function() { + return this.getDataValue('actions') ? JSON.parse(this.getDataValue('actions')) : []; + }, + set: function(val) { + return this.setDataValue('actions', JSON.stringify(val)); + } } }, { tableName: 'mail_accounts',