307356458380a461bd85a83ebb384429c989489d
[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 _0x0e95=['DATE','Chat','Email','sequelize','lodash','exports','TEXT','long','medium','BOOLEAN','ENUM','out','STRING','INTEGER'];(function(_0x24e2c4,_0x3bf6a8){var _0x56986a=function(_0x55f56b){while(--_0x55f56b){_0x24e2c4['push'](_0x24e2c4['shift']());}};_0x56986a(++_0x3bf6a8);}(_0x0e95,0xb9));var _0x50e9=function(_0x2a9649,_0x5b0063){_0x2a9649=_0x2a9649-0x0;var _0x4ad162=_0x0e95[_0x2a9649];return _0x4ad162;};'use strict';var Sequelize=require(_0x50e9('0x0'));var _=require(_0x50e9('0x1'));module[_0x50e9('0x2')]={'body':{'type':Sequelize[_0x50e9('0x3')](_0x50e9('0x4')),'allowNull':![]},'plainBody':{'type':Sequelize[_0x50e9('0x3')](_0x50e9('0x5'))},'read':{'type':Sequelize[_0x50e9('0x6')],'defaultValue':![]},'direction':{'type':Sequelize[_0x50e9('0x7')]('in',_0x50e9('0x8')),'defaultValue':_0x50e9('0x8'),'allowNull':![]},'messageId':{'type':Sequelize[_0x50e9('0x9')](0x1fe)},'from':{'type':Sequelize[_0x50e9('0x9')]},'to':{'type':Sequelize['TEXT'](_0x50e9('0x4'))},'cc':{'type':Sequelize['TEXT']('long')},'bcc':{'type':Sequelize[_0x50e9('0x3')](_0x50e9('0x4'))},'subject':{'type':Sequelize[_0x50e9('0x3')]},'sentAt':{'type':Sequelize['DATE']},'attach':{'type':Sequelize[_0x50e9('0xa')],'defaultValue':0x0},'secret':{'type':Sequelize[_0x50e9('0x6')],'defaultValue':![]},'readAt':{'type':Sequelize[_0x50e9('0xb')]},'originTo':{'type':Sequelize[_0x50e9('0x3')](_0x50e9('0x4'))},'originCc':{'type':Sequelize[_0x50e9('0x3')]('long')},'originChannel':{'type':Sequelize[_0x50e9('0x7')]('Email',_0x50e9('0xc')),'defaultValue':_0x50e9('0xd'),'allowNull':![]}};