Built motion from commit da617fac.|2.6.6
[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 _0x54d4=['sequelize','lodash','TEXT','medium','BOOLEAN','ENUM','out','STRING','long','DATE','Chat'];(function(_0x465a23,_0x45eb8c){var _0x5d7ea9=function(_0x195930){while(--_0x195930){_0x465a23['push'](_0x465a23['shift']());}};_0x5d7ea9(++_0x45eb8c);}(_0x54d4,0x113));var _0x454d=function(_0x56d5b9,_0x5345ca){_0x56d5b9=_0x56d5b9-0x0;var _0x4501ee=_0x54d4[_0x56d5b9];return _0x4501ee;};'use strict';var Sequelize=require(_0x454d('0x0'));var _=require(_0x454d('0x1'));module['exports']={'body':{'type':Sequelize[_0x454d('0x2')]('long'),'allowNull':![]},'plainBody':{'type':Sequelize[_0x454d('0x2')](_0x454d('0x3'))},'read':{'type':Sequelize[_0x454d('0x4')],'defaultValue':![]},'direction':{'type':Sequelize[_0x454d('0x5')]('in','out'),'defaultValue':_0x454d('0x6'),'allowNull':![]},'messageId':{'type':Sequelize[_0x454d('0x7')](0x1fe)},'from':{'type':Sequelize['STRING']},'to':{'type':Sequelize[_0x454d('0x2')](_0x454d('0x8'))},'cc':{'type':Sequelize[_0x454d('0x2')]('long')},'bcc':{'type':Sequelize[_0x454d('0x2')]('long')},'subject':{'type':Sequelize[_0x454d('0x2')]},'sentAt':{'type':Sequelize[_0x454d('0x9')]},'attach':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'secret':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'readAt':{'type':Sequelize['DATE']},'originTo':{'type':Sequelize[_0x454d('0x2')](_0x454d('0x8'))},'originCc':{'type':Sequelize[_0x454d('0x2')](_0x454d('0x8'))},'originChannel':{'type':Sequelize[_0x454d('0x5')]('Email',_0x454d('0xa')),'defaultValue':'Email','allowNull':![]}};