3 module.exports = function(sequelize, DataTypes) {
5 var ChatApplication = sequelize.define('ChatApplication', {
7 type: DataTypes.ENUM('queue', 'agent', 'sendMail', 'sendSms')
10 type: DataTypes.INTEGER
13 type: DataTypes.INTEGER,
19 type: DataTypes.STRING
22 type: DataTypes.STRING
25 type: DataTypes.STRING
28 type: DataTypes.STRING
31 type: DataTypes.STRING
34 type: DataTypes.STRING
37 type: DataTypes.STRING
43 type: DataTypes.INTEGER
46 type: DataTypes.INTEGER
49 type: DataTypes.INTEGER
52 tableName: 'chat_applications',
53 associate: function(models) {
55 ChatApplication.belongsTo(models.ChatWebsite);
56 ChatApplication.belongsTo(models.Interval);
57 ChatApplication.belongsTo(models.ChatQueue);
58 ChatApplication.belongsTo(models.User);
62 return ChatApplication;