allow: {
type: DataTypes.STRING,
allowNull: true,
- defaultValue: 'alaw;ulaw;gsm'
+ defaultValue: 'ulaw;gsm'
},
autoframing: {
type: DataTypes.ENUM('yes', 'no'),
phoneBarShowOmniDesktop: {
type: DataTypes.BOOLEAN,
defaultValue: true
+ },
+ phoneBarRingInUse: {
+ type: DataTypes.BOOLEAN,
+ defaultValue: false
+ },
+ phoneBarDnd: {
+ type: DataTypes.BOOLEAN,
+ defaultValue: true
+ },
+ 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
'showWebBar',
'callgroup',
'pickupgroup',
- 'phoneBarShowOmniDesktop'
+ 'phoneBarShowOmniDesktop',
+ 'phoneBarRingInUse',
+ 'phoneBarDnd',
+ 'phoneBarUnansweredCallBadge',
+ 'phone',
+ '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;