b0282854d444e637d2b624ba9bbb66fecad768f7
[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 _0x6a8e=['DATE','Email','Chat','lodash','exports','TEXT','long','medium','BOOLEAN','ENUM','out','STRING'];(function(_0x45b1a8,_0x4e2752){var _0x53d0e7=function(_0x43277c){while(--_0x43277c){_0x45b1a8['push'](_0x45b1a8['shift']());}};_0x53d0e7(++_0x4e2752);}(_0x6a8e,0x93));var _0xe6a8=function(_0x5e4d64,_0x4c641b){_0x5e4d64=_0x5e4d64-0x0;var _0x239a93=_0x6a8e[_0x5e4d64];return _0x239a93;};'use strict';var Sequelize=require('sequelize');var _=require(_0xe6a8('0x0'));module[_0xe6a8('0x1')]={'body':{'type':Sequelize[_0xe6a8('0x2')](_0xe6a8('0x3')),'allowNull':![]},'plainBody':{'type':Sequelize[_0xe6a8('0x2')](_0xe6a8('0x4'))},'read':{'type':Sequelize[_0xe6a8('0x5')],'defaultValue':![]},'direction':{'type':Sequelize[_0xe6a8('0x6')]('in',_0xe6a8('0x7')),'defaultValue':_0xe6a8('0x7'),'allowNull':![]},'messageId':{'type':Sequelize[_0xe6a8('0x8')](0x1fe)},'from':{'type':Sequelize[_0xe6a8('0x8')]},'to':{'type':Sequelize[_0xe6a8('0x2')]('long')},'cc':{'type':Sequelize[_0xe6a8('0x2')](_0xe6a8('0x3'))},'bcc':{'type':Sequelize[_0xe6a8('0x2')](_0xe6a8('0x3'))},'subject':{'type':Sequelize['TEXT']},'sentAt':{'type':Sequelize[_0xe6a8('0x9')]},'attach':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'secret':{'type':Sequelize[_0xe6a8('0x5')],'defaultValue':![]},'readAt':{'type':Sequelize[_0xe6a8('0x9')]},'originTo':{'type':Sequelize['TEXT'](_0xe6a8('0x3'))},'originCc':{'type':Sequelize[_0xe6a8('0x2')](_0xe6a8('0x3'))},'originChannel':{'type':Sequelize['ENUM'](_0xe6a8('0xa'),_0xe6a8('0xb')),'defaultValue':_0xe6a8('0xa'),'allowNull':![]}};