4aeac7dab74483124a23528404bdc6ef41f5075d
[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 _0x3c00=['BOOLEAN','out','STRING','DATE','INTEGER','ENUM','Email','Chat','lodash','exports','TEXT','long'];(function(_0x3c7601,_0x5eb803){var _0x254f65=function(_0x1a65ad){while(--_0x1a65ad){_0x3c7601['push'](_0x3c7601['shift']());}};_0x254f65(++_0x5eb803);}(_0x3c00,0xf8));var _0x03c0=function(_0x2dab2b,_0x424660){_0x2dab2b=_0x2dab2b-0x0;var _0x3730cc=_0x3c00[_0x2dab2b];return _0x3730cc;};'use strict';var Sequelize=require('sequelize');var _=require(_0x03c0('0x0'));module[_0x03c0('0x1')]={'body':{'type':Sequelize[_0x03c0('0x2')](_0x03c0('0x3')),'allowNull':![]},'plainBody':{'type':Sequelize[_0x03c0('0x2')]('medium')},'read':{'type':Sequelize[_0x03c0('0x4')],'defaultValue':![]},'direction':{'type':Sequelize['ENUM']('in',_0x03c0('0x5')),'defaultValue':_0x03c0('0x5'),'allowNull':![]},'messageId':{'type':Sequelize[_0x03c0('0x6')](0x1fe)},'from':{'type':Sequelize[_0x03c0('0x6')]},'to':{'type':Sequelize[_0x03c0('0x2')]('long')},'cc':{'type':Sequelize[_0x03c0('0x2')](_0x03c0('0x3'))},'bcc':{'type':Sequelize['TEXT']('long')},'subject':{'type':Sequelize['TEXT']},'sentAt':{'type':Sequelize[_0x03c0('0x7')]},'attach':{'type':Sequelize[_0x03c0('0x8')],'defaultValue':0x0},'secret':{'type':Sequelize[_0x03c0('0x4')],'defaultValue':![]},'readAt':{'type':Sequelize[_0x03c0('0x7')]},'originTo':{'type':Sequelize[_0x03c0('0x2')](_0x03c0('0x3'))},'originCc':{'type':Sequelize[_0x03c0('0x2')](_0x03c0('0x3'))},'originChannel':{'type':Sequelize[_0x03c0('0x9')](_0x03c0('0xa'),_0x03c0('0xb')),'defaultValue':'Email','allowNull':![]}};