-/**
- * Chat Website Model
- */
+'use strict';
-var _ = require('lodash');
+const _ = require('lodash');
module.exports = function(sequelize, DataTypes) {
-
var MailAccount = sequelize.define('MailAccount', {
description: DataTypes.STRING,
name: {
// SCOPES
MailAccount.addScope('default', {
where: {
- service: false,
+ custom: false,
},
include: [{
model: models.MailServerIn,
- attributes: ['id', 'host', 'port', 'username', 'password', 'ssl', 'delete', 'filter', 'state', 'mailbox', 'connTimeout', 'authTimeout', 'keepalive', 'source']
+ attributes: ['id', 'host', 'port', 'username', 'password', 'ssl', 'delete', 'filter', 'state', 'mailbox', 'connTimeout', 'authTimeout', 'keepalive', 'source', 'polling', 'pollingTimeout']
}, {
model: models.MailServerOut,
attributes: ['id', 'host', 'port', 'username', 'password', 'ssl', 'state', 'source', 'description']