Built motion from commit d1eab355.|2.6.28
[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 _0x7611=['TEXT','medium','BOOLEAN','ENUM','out','STRING','INTEGER','DATE','Email','sequelize','exports','long'];(function(_0x12bff1,_0x44144d){var _0x4790bb=function(_0x1bfdbd){while(--_0x1bfdbd){_0x12bff1['push'](_0x12bff1['shift']());}};_0x4790bb(++_0x44144d);}(_0x7611,0xb1));var _0x1761=function(_0xdde105,_0x500c66){_0xdde105=_0xdde105-0x0;var _0xf115ec=_0x7611[_0xdde105];return _0xf115ec;};'use strict';var Sequelize=require(_0x1761('0x0'));var _=require('lodash');module[_0x1761('0x1')]={'body':{'type':Sequelize['TEXT'](_0x1761('0x2')),'allowNull':![]},'plainBody':{'type':Sequelize[_0x1761('0x3')](_0x1761('0x4'))},'read':{'type':Sequelize[_0x1761('0x5')],'defaultValue':![]},'direction':{'type':Sequelize[_0x1761('0x6')]('in','out'),'defaultValue':_0x1761('0x7'),'allowNull':![]},'messageId':{'type':Sequelize[_0x1761('0x8')](0x1fe)},'from':{'type':Sequelize['STRING']},'to':{'type':Sequelize[_0x1761('0x3')](_0x1761('0x2'))},'cc':{'type':Sequelize[_0x1761('0x3')](_0x1761('0x2'))},'bcc':{'type':Sequelize['TEXT'](_0x1761('0x2'))},'subject':{'type':Sequelize[_0x1761('0x3')]},'sentAt':{'type':Sequelize['DATE']},'attach':{'type':Sequelize[_0x1761('0x9')],'defaultValue':0x0},'secret':{'type':Sequelize[_0x1761('0x5')],'defaultValue':![]},'readAt':{'type':Sequelize[_0x1761('0xa')]},'originTo':{'type':Sequelize['TEXT'](_0x1761('0x2'))},'originCc':{'type':Sequelize[_0x1761('0x3')](_0x1761('0x2'))},'originChannel':{'type':Sequelize[_0x1761('0x6')](_0x1761('0xb'),'Chat'),'defaultValue':_0x1761('0xb'),'allowNull':![]}};