phoneBarUnansweredCallBadge: {
type: DataTypes.BOOLEAN,
defaultValue: true
+ },
+ phonebarEnableDtmfTone: {
+ type: DataTypes.BOOLEAN,
+ defaultValue: false
+ },
+ phonebarAutoAnswerDelay: {
+ type: DataTypes.INTEGER,
+ defaultValue: 0
}
}, {
tableName: 'users',
+ charset: 'utf8',
+ collate: 'utf8_bin',
instanceMethods: {
/**
* Authenticate - check if the passwords are the same
'phoneBarDnd',
'phoneBarUnansweredCallBadge',
'phone',
- 'mobile'
+ 'mobile',
+ 'phonebarEnableDtmfTone',
+ 'phonebarAutoAnswerDelay'
]
});
User.addScope('telephone', {
'phoneBarRemoteControl',
'phoneBarRemoteControlPort',
'loginInPause',
- 'showWebBar'
+ 'showWebBar',
+ 'phonebarEnableDtmfTone',
+ 'phonebarAutoAnswerDelay'
],
include: [{
model: models.Module,
+ attributes: ['id', 'path'],
include: [{
model: models.Module,
+ attributes: ['id', 'path'],
as: 'SubModules',
required: false,
include: [{
- all: true
+ model: models.Module,
+ attributes: ['id', 'path'],
+ as: 'SubModules'
}]
}]
- }, {
- model: models.VoiceQueue,
- as: 'PVoiceQueues'
- }, {
- model: models.ChatQueue,
- as: 'PChatQueues'
- }, {
- model: models.MailQueue,
- as: 'PMailQueues'
- }, {
- model: models.FaxQueue,
- as: 'PFaxQueues'
- }, {
- model: models.SmsQueue,
- as: 'PSmsQueues'
}]
};
return scope;