Built motion from commit 47436d59.|2.6.7
[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 _0x9421=['exports','long','TEXT','BOOLEAN','out','STRING','ENUM','Chat','Email'];(function(_0x4b12ae,_0xf2b3b){var _0x16957b=function(_0x51932c){while(--_0x51932c){_0x4b12ae['push'](_0x4b12ae['shift']());}};_0x16957b(++_0xf2b3b);}(_0x9421,0xc6));var _0x1942=function(_0x512783,_0x3bed65){_0x512783=_0x512783-0x0;var _0x276f2b=_0x9421[_0x512783];return _0x276f2b;};'use strict';var Sequelize=require('sequelize');var _=require('lodash');module[_0x1942('0x0')]={'body':{'type':Sequelize['TEXT'](_0x1942('0x1')),'allowNull':![]},'plainBody':{'type':Sequelize[_0x1942('0x2')]('medium')},'read':{'type':Sequelize[_0x1942('0x3')],'defaultValue':![]},'direction':{'type':Sequelize['ENUM']('in',_0x1942('0x4')),'defaultValue':_0x1942('0x4'),'allowNull':![]},'messageId':{'type':Sequelize['STRING'](0x1fe)},'from':{'type':Sequelize[_0x1942('0x5')]},'to':{'type':Sequelize[_0x1942('0x2')](_0x1942('0x1'))},'cc':{'type':Sequelize['TEXT']('long')},'bcc':{'type':Sequelize[_0x1942('0x2')]('long')},'subject':{'type':Sequelize['TEXT']},'sentAt':{'type':Sequelize['DATE']},'attach':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'secret':{'type':Sequelize[_0x1942('0x3')],'defaultValue':![]},'readAt':{'type':Sequelize['DATE']},'originTo':{'type':Sequelize[_0x1942('0x2')]('long')},'originCc':{'type':Sequelize['TEXT'](_0x1942('0x1'))},'originChannel':{'type':Sequelize[_0x1942('0x6')]('Email',_0x1942('0x7')),'defaultValue':_0x1942('0x8'),'allowNull':![]}};