visitorid: DataTypes.STRING,
visitorname: DataTypes.STRING,
visitoremail: DataTypes.STRING,
- queueid: DataTypes.INTEGER,
+ queue: DataTypes.INTEGER,
queuename: DataTypes.STRING,
roomid: DataTypes.INTEGER,
reason: {
},
connectid: {
type: DataTypes.STRING,
- unique: true,
- set: function(agentconnectedAt) {
- this.setDataValue('connectid', this.uniqueid);
- this.setDataValue('reason', 'connect');
- this.setDataValue('connectedAt', moment().format("YYYY-MM-DD HH:mm:ss"));
- }
+ unique: true
},
calledAt: DataTypes.DATE,
rejectedAt: DataTypes.DATE,
tableName: 'report_chat_history'
});
+ ReportChatHistory.removeAttribute('id');
+
return ReportChatHistory;
};