Built motion from commit eeb7beacd.|1.0.21
[motion.git] / server / models / setting.js
index 4540f36..904910d 100644 (file)
@@ -64,6 +64,50 @@ module.exports = function(sequelize, DataTypes) {
       type: DataTypes.BOOLEAN,
       defaultValue: true
     },
+    mailRoutingCapacity: {
+      type: DataTypes.INTEGER,
+      defaultValue: 20,
+      validate: {
+        min: 1,
+        max: 50
+      }
+    },
+    chatRoutingCapacity: {
+      type: DataTypes.INTEGER,
+      defaultValue: 20,
+      validate: {
+        min: 1,
+        max: 50
+      }
+    },
+    smsRoutingCapacity: {
+      type: DataTypes.INTEGER,
+      defaultValue: 20,
+      validate: {
+        min: 1,
+        max: 50
+      }
+    },
+    faxRoutingCapacity: {
+      type: DataTypes.INTEGER,
+      defaultValue: 20,
+      validate: {
+        min: 1,
+        max: 50
+      }
+    },
+    openchannelRoutingCapacity: {
+      type: DataTypes.INTEGER,
+      defaultValue: 20,
+      validate: {
+        min: 1,
+        max: 50
+      }
+    },
+    logoutOnWindowClose: {
+      type: DataTypes.BOOLEAN,
+      defaultValue: true
+    }
   }, {
     tableName: 'settings'
   });