bdd8b1e966ad47fadb37e1e3a580000bef11475e
[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 _0x7efc=['STRING','long','DATE','INTEGER','BOOLEAN','Email','Chat','sequelize','exports','TEXT','medium','ENUM','out'];(function(_0x47e4c8,_0x28f5a5){var _0x3e98bb=function(_0xeb576){while(--_0xeb576){_0x47e4c8['push'](_0x47e4c8['shift']());}};_0x3e98bb(++_0x28f5a5);}(_0x7efc,0x173));var _0xc7ef=function(_0x43941d,_0x45fd0d){_0x43941d=_0x43941d-0x0;var _0x27b82a=_0x7efc[_0x43941d];return _0x27b82a;};'use strict';var Sequelize=require(_0xc7ef('0x0'));var _=require('lodash');module[_0xc7ef('0x1')]={'body':{'type':Sequelize[_0xc7ef('0x2')]('long'),'allowNull':![]},'plainBody':{'type':Sequelize['TEXT'](_0xc7ef('0x3'))},'read':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'direction':{'type':Sequelize[_0xc7ef('0x4')]('in',_0xc7ef('0x5')),'defaultValue':_0xc7ef('0x5'),'allowNull':![]},'messageId':{'type':Sequelize[_0xc7ef('0x6')](0x1fe)},'from':{'type':Sequelize[_0xc7ef('0x6')]},'to':{'type':Sequelize[_0xc7ef('0x2')](_0xc7ef('0x7'))},'cc':{'type':Sequelize[_0xc7ef('0x2')](_0xc7ef('0x7'))},'bcc':{'type':Sequelize[_0xc7ef('0x2')](_0xc7ef('0x7'))},'subject':{'type':Sequelize[_0xc7ef('0x2')]},'sentAt':{'type':Sequelize[_0xc7ef('0x8')]},'attach':{'type':Sequelize[_0xc7ef('0x9')],'defaultValue':0x0},'secret':{'type':Sequelize[_0xc7ef('0xa')],'defaultValue':![]},'readAt':{'type':Sequelize[_0xc7ef('0x8')]},'originTo':{'type':Sequelize[_0xc7ef('0x2')](_0xc7ef('0x7'))},'originCc':{'type':Sequelize['TEXT']('long')},'originChannel':{'type':Sequelize[_0xc7ef('0x4')](_0xc7ef('0xb'),_0xc7ef('0xc')),'defaultValue':'Email','allowNull':![]}};