c7c33bd5aeb91332c1fa883de524b13cebe5f126
[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 _0x99e5=['TEXT','medium','BOOLEAN','ENUM','out','STRING','long','DATE','INTEGER','Email','Chat','sequelize','lodash','exports'];(function(_0x204e7c,_0xf58331){var _0x179437=function(_0x11779d){while(--_0x11779d){_0x204e7c['push'](_0x204e7c['shift']());}};_0x179437(++_0xf58331);}(_0x99e5,0xc1));var _0x599e=function(_0x3ce3c,_0x319337){_0x3ce3c=_0x3ce3c-0x0;var _0x55a2c9=_0x99e5[_0x3ce3c];return _0x55a2c9;};'use strict';var Sequelize=require(_0x599e('0x0'));var _=require(_0x599e('0x1'));module[_0x599e('0x2')]={'body':{'type':Sequelize['TEXT']('long'),'allowNull':![]},'plainBody':{'type':Sequelize[_0x599e('0x3')](_0x599e('0x4'))},'read':{'type':Sequelize[_0x599e('0x5')],'defaultValue':![]},'direction':{'type':Sequelize[_0x599e('0x6')]('in',_0x599e('0x7')),'defaultValue':_0x599e('0x7'),'allowNull':![]},'messageId':{'type':Sequelize['STRING'](0x1fe)},'from':{'type':Sequelize[_0x599e('0x8')]},'to':{'type':Sequelize[_0x599e('0x3')]('long')},'cc':{'type':Sequelize[_0x599e('0x3')](_0x599e('0x9'))},'bcc':{'type':Sequelize['TEXT']('long')},'subject':{'type':Sequelize[_0x599e('0x3')]},'sentAt':{'type':Sequelize[_0x599e('0xa')]},'attach':{'type':Sequelize[_0x599e('0xb')],'defaultValue':0x0},'secret':{'type':Sequelize[_0x599e('0x5')],'defaultValue':![]},'readAt':{'type':Sequelize[_0x599e('0xa')]},'originTo':{'type':Sequelize['TEXT'](_0x599e('0x9'))},'originCc':{'type':Sequelize[_0x599e('0x3')](_0x599e('0x9'))},'originChannel':{'type':Sequelize[_0x599e('0x6')](_0x599e('0xc'),_0x599e('0xd')),'defaultValue':'Email','allowNull':![]}};