Built motion from commit 420f8c692.|1.0.30
[motion.git] / server / models / user.js
index e000bca..8357394 100644 (file)
@@ -758,6 +758,14 @@ module.exports = function(sequelize, DataTypes) {
     phoneBarUnansweredCallBadge: {
       type: DataTypes.BOOLEAN,
       defaultValue: true
+    },
+    phonebarEnableDtmfTone: {
+      type: DataTypes.BOOLEAN,
+      defaultValue: false
+    },
+    phonebarAutoAnswerDelay: {
+      type: DataTypes.INTEGER,
+      defaultValue: 0
     }
   }, {
     tableName: 'users',
@@ -1022,7 +1030,9 @@ module.exports = function(sequelize, DataTypes) {
           'phoneBarDnd',
           'phoneBarUnansweredCallBadge',
           'phone',
-          'mobile'
+          'mobile',
+          'phonebarEnableDtmfTone',
+          'phonebarAutoAnswerDelay'
         ]
       });
       User.addScope('telephone', {
@@ -1137,7 +1147,9 @@ module.exports = function(sequelize, DataTypes) {
             'phoneBarRemoteControl',
             'phoneBarRemoteControlPort',
             'loginInPause',
-            'showWebBar'
+            'showWebBar',
+            'phonebarEnableDtmfTone',
+            'phonebarAutoAnswerDelay'
           ],
           include: [{
             model: models.Module,