00927c5b8d1b8293df390e58958cac7ed65f507a
[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 _0x7651=['STRING','DATE','ENUM','Email','Chat','sequelize','exports','TEXT','long','medium','BOOLEAN','out'];(function(_0x455c6c,_0x1e78b7){var _0x488242=function(_0x3e8fb0){while(--_0x3e8fb0){_0x455c6c['push'](_0x455c6c['shift']());}};_0x488242(++_0x1e78b7);}(_0x7651,0x179));var _0x1765=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x7651[_0x3dd15e];return _0x231fd0;};'use strict';var Sequelize=require(_0x1765('0x0'));var _=require('lodash');module[_0x1765('0x1')]={'body':{'type':Sequelize[_0x1765('0x2')](_0x1765('0x3')),'allowNull':![]},'plainBody':{'type':Sequelize[_0x1765('0x2')](_0x1765('0x4'))},'read':{'type':Sequelize[_0x1765('0x5')],'defaultValue':![]},'direction':{'type':Sequelize['ENUM']('in',_0x1765('0x6')),'defaultValue':_0x1765('0x6'),'allowNull':![]},'messageId':{'type':Sequelize[_0x1765('0x7')](0x1fe)},'from':{'type':Sequelize[_0x1765('0x7')]},'to':{'type':Sequelize[_0x1765('0x2')](_0x1765('0x3'))},'cc':{'type':Sequelize['TEXT']('long')},'bcc':{'type':Sequelize[_0x1765('0x2')](_0x1765('0x3'))},'subject':{'type':Sequelize[_0x1765('0x2')]},'sentAt':{'type':Sequelize[_0x1765('0x8')]},'attach':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'secret':{'type':Sequelize[_0x1765('0x5')],'defaultValue':![]},'readAt':{'type':Sequelize[_0x1765('0x8')]},'originTo':{'type':Sequelize[_0x1765('0x2')](_0x1765('0x3'))},'originCc':{'type':Sequelize[_0x1765('0x2')](_0x1765('0x3'))},'originChannel':{'type':Sequelize[_0x1765('0x9')](_0x1765('0xa'),_0x1765('0xb')),'defaultValue':_0x1765('0xa'),'allowNull':![]}};