},
type: {
type: DataTypes.ENUM,
- values: ['inbound', 'internal', 'outbound']
+ values: ['inbound', 'internal', 'outbound', 'inbound-fax', 'outbound-fax', 'tigerdial']
},
tag: DataTypes.STRING,
accountcode: DataTypes.STRING,
}, {
tableName: 'report_call_history',
associate: function(models) {
- ReportCallHistory.hasMany(models.ReportQueueHistory, {
- as: 'HistoryQueueCalls',
- foreignKey: 'uniqueid',
- constraints: false
- });
- ReportCallHistory.hasMany(models.ReportAgentHistory, {
- as: 'HistoryReportAgents',
- foreignKey: 'uniqueid',
- constraints: false
- });
+ // ReportCallHistory.hasMany(models.ReportQueueHistory, {
+ // as: 'HistoryQueueCalls',
+ // foreignKey: 'uniqueid',
+ // constraints: false
+ // });
+ // ReportCallHistory.hasMany(models.ReportAgentHistory, {
+ // as: 'HistoryReportAgents',
+ // foreignKey: 'uniqueid',
+ // constraints: false
+ // });
}
});
-
+ ReportCallHistory.removeAttribute('id');
return ReportCallHistory;
};