b797231b2b082e588aa199558f972e96347e51cb
[motion2.git] / server / api / mailMessage / mailMessage.attributes.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x5360=['long','DATE','BOOLEAN','sequelize','lodash','exports','TEXT','medium','ENUM','out'];(function(_0x430b31,_0x25d328){var _0x35f74a=function(_0x28bc66){while(--_0x28bc66){_0x430b31['push'](_0x430b31['shift']());}};_0x35f74a(++_0x25d328);}(_0x5360,0x157));var _0x0536=function(_0x14e266,_0x1510ee){_0x14e266=_0x14e266-0x0;var _0x14ee57=_0x5360[_0x14e266];return _0x14ee57;};'use strict';var Sequelize=require(_0x0536('0x0'));var _=require(_0x0536('0x1'));module[_0x0536('0x2')]={'body':{'type':Sequelize[_0x0536('0x3')]('long'),'allowNull':![]},'plainBody':{'type':Sequelize['TEXT'](_0x0536('0x4'))},'read':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'direction':{'type':Sequelize[_0x0536('0x5')]('in',_0x0536('0x6')),'defaultValue':'out','allowNull':![]},'messageId':{'type':Sequelize['STRING'](0x1fe)},'from':{'type':Sequelize['STRING']},'to':{'type':Sequelize[_0x0536('0x3')](_0x0536('0x7'))},'cc':{'type':Sequelize[_0x0536('0x3')](_0x0536('0x7'))},'bcc':{'type':Sequelize['TEXT'](_0x0536('0x7'))},'subject':{'type':Sequelize[_0x0536('0x3')]},'sentAt':{'type':Sequelize[_0x0536('0x8')]},'attach':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'secret':{'type':Sequelize[_0x0536('0x9')],'defaultValue':![]},'readAt':{'type':Sequelize['DATE']},'originTo':{'type':Sequelize['TEXT']('long')},'originCc':{'type':Sequelize['TEXT'](_0x0536('0x7'))}};