Built motion from commit e6806ed6.|2.6.0
[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 _0x6800=['Email','sequelize','exports','TEXT','long','medium','BOOLEAN','ENUM','out','STRING','INTEGER','DATE'];(function(_0x5e55bf,_0x5de586){var _0x4b2191=function(_0x1d348b){while(--_0x1d348b){_0x5e55bf['push'](_0x5e55bf['shift']());}};_0x4b2191(++_0x5de586);}(_0x6800,0xb5));var _0x0680=function(_0x1a4bfb,_0x4862c9){_0x1a4bfb=_0x1a4bfb-0x0;var _0x5aca7a=_0x6800[_0x1a4bfb];return _0x5aca7a;};'use strict';var Sequelize=require(_0x0680('0x0'));var _=require('lodash');module[_0x0680('0x1')]={'body':{'type':Sequelize[_0x0680('0x2')](_0x0680('0x3')),'allowNull':![]},'plainBody':{'type':Sequelize[_0x0680('0x2')](_0x0680('0x4'))},'read':{'type':Sequelize[_0x0680('0x5')],'defaultValue':![]},'direction':{'type':Sequelize[_0x0680('0x6')]('in',_0x0680('0x7')),'defaultValue':'out','allowNull':![]},'messageId':{'type':Sequelize['STRING'](0x1fe)},'from':{'type':Sequelize[_0x0680('0x8')]},'to':{'type':Sequelize[_0x0680('0x2')](_0x0680('0x3'))},'cc':{'type':Sequelize[_0x0680('0x2')]('long')},'bcc':{'type':Sequelize['TEXT']('long')},'subject':{'type':Sequelize['TEXT']},'sentAt':{'type':Sequelize['DATE']},'attach':{'type':Sequelize[_0x0680('0x9')],'defaultValue':0x0},'secret':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'readAt':{'type':Sequelize[_0x0680('0xa')]},'originTo':{'type':Sequelize[_0x0680('0x2')](_0x0680('0x3'))},'originCc':{'type':Sequelize[_0x0680('0x2')](_0x0680('0x3'))},'originChannel':{'type':Sequelize[_0x0680('0x6')]('Email','Chat'),'defaultValue':_0x0680('0xb'),'allowNull':![]}};