5f4edb443da8e1dca45998ca93cd06daa431aa59
[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 _0x8d7c=['exports','long','TEXT','medium','BOOLEAN','ENUM','out','STRING','DATE','Email','Chat','sequelize','lodash'];(function(_0x2638d0,_0x52f653){var _0x411a60=function(_0x1e3523){while(--_0x1e3523){_0x2638d0['push'](_0x2638d0['shift']());}};_0x411a60(++_0x52f653);}(_0x8d7c,0x73));var _0xc8d7=function(_0x1fc64b,_0x14c014){_0x1fc64b=_0x1fc64b-0x0;var _0x5e31a0=_0x8d7c[_0x1fc64b];return _0x5e31a0;};'use strict';var Sequelize=require(_0xc8d7('0x0'));var _=require(_0xc8d7('0x1'));module[_0xc8d7('0x2')]={'body':{'type':Sequelize['TEXT'](_0xc8d7('0x3')),'allowNull':![]},'plainBody':{'type':Sequelize[_0xc8d7('0x4')](_0xc8d7('0x5'))},'read':{'type':Sequelize[_0xc8d7('0x6')],'defaultValue':![]},'direction':{'type':Sequelize[_0xc8d7('0x7')]('in',_0xc8d7('0x8')),'defaultValue':_0xc8d7('0x8'),'allowNull':![]},'messageId':{'type':Sequelize[_0xc8d7('0x9')](0x1fe)},'from':{'type':Sequelize[_0xc8d7('0x9')]},'to':{'type':Sequelize[_0xc8d7('0x4')]('long')},'cc':{'type':Sequelize[_0xc8d7('0x4')](_0xc8d7('0x3'))},'bcc':{'type':Sequelize[_0xc8d7('0x4')](_0xc8d7('0x3'))},'subject':{'type':Sequelize[_0xc8d7('0x4')]},'sentAt':{'type':Sequelize[_0xc8d7('0xa')]},'attach':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'secret':{'type':Sequelize[_0xc8d7('0x6')],'defaultValue':![]},'readAt':{'type':Sequelize[_0xc8d7('0xa')]},'originTo':{'type':Sequelize['TEXT'](_0xc8d7('0x3'))},'originCc':{'type':Sequelize[_0xc8d7('0x4')]('long')},'originChannel':{'type':Sequelize['ENUM'](_0xc8d7('0xb'),_0xc8d7('0xc')),'defaultValue':'Email','allowNull':![]}};