Built motion from commit c56b56e.|0.0.125
[motion.git] / server / models / mail_account.js
index 3235d20..b3c5af3 100644 (file)
@@ -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',