Built motion from commit c738b9ac.|2.6.25
[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 _0x085c=['Email','Chat','sequelize','TEXT','long','medium','ENUM','out','STRING','DATE','INTEGER'];(function(_0x5dcfd0,_0x19b914){var _0x5e7661=function(_0x1b059c){while(--_0x1b059c){_0x5dcfd0['push'](_0x5dcfd0['shift']());}};_0x5e7661(++_0x19b914);}(_0x085c,0xf4));var _0xc085=function(_0x59c86e,_0x38ce57){_0x59c86e=_0x59c86e-0x0;var _0x48a50e=_0x085c[_0x59c86e];return _0x48a50e;};'use strict';var Sequelize=require(_0xc085('0x0'));var _=require('lodash');module['exports']={'body':{'type':Sequelize[_0xc085('0x1')](_0xc085('0x2')),'allowNull':![]},'plainBody':{'type':Sequelize[_0xc085('0x1')](_0xc085('0x3'))},'read':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'direction':{'type':Sequelize[_0xc085('0x4')]('in',_0xc085('0x5')),'defaultValue':'out','allowNull':![]},'messageId':{'type':Sequelize[_0xc085('0x6')](0x1fe)},'from':{'type':Sequelize[_0xc085('0x6')]},'to':{'type':Sequelize[_0xc085('0x1')]('long')},'cc':{'type':Sequelize['TEXT'](_0xc085('0x2'))},'bcc':{'type':Sequelize[_0xc085('0x1')]('long')},'subject':{'type':Sequelize[_0xc085('0x1')]},'sentAt':{'type':Sequelize[_0xc085('0x7')]},'attach':{'type':Sequelize[_0xc085('0x8')],'defaultValue':0x0},'secret':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'readAt':{'type':Sequelize[_0xc085('0x7')]},'originTo':{'type':Sequelize[_0xc085('0x1')]('long')},'originCc':{'type':Sequelize[_0xc085('0x1')](_0xc085('0x2'))},'originChannel':{'type':Sequelize['ENUM'](_0xc085('0x9'),_0xc085('0xa')),'defaultValue':'Email','allowNull':![]}};