95abb11f42a48b029a7e92a4661c25d1b736be2e
[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 _0xfc73=['Email','Chat','sequelize','lodash','exports','TEXT','long','medium','BOOLEAN','out','STRING','DATE','INTEGER','ENUM'];(function(_0x38c8d7,_0x5370c7){var _0x5c5521=function(_0xad3828){while(--_0xad3828){_0x38c8d7['push'](_0x38c8d7['shift']());}};_0x5c5521(++_0x5370c7);}(_0xfc73,0x160));var _0x3fc7=function(_0x413feb,_0x10477f){_0x413feb=_0x413feb-0x0;var _0x40ee88=_0xfc73[_0x413feb];return _0x40ee88;};'use strict';var Sequelize=require(_0x3fc7('0x0'));var _=require(_0x3fc7('0x1'));module[_0x3fc7('0x2')]={'body':{'type':Sequelize[_0x3fc7('0x3')](_0x3fc7('0x4')),'allowNull':![]},'plainBody':{'type':Sequelize[_0x3fc7('0x3')](_0x3fc7('0x5'))},'read':{'type':Sequelize[_0x3fc7('0x6')],'defaultValue':![]},'direction':{'type':Sequelize['ENUM']('in','out'),'defaultValue':_0x3fc7('0x7'),'allowNull':![]},'messageId':{'type':Sequelize[_0x3fc7('0x8')](0x1fe)},'from':{'type':Sequelize[_0x3fc7('0x8')]},'to':{'type':Sequelize['TEXT'](_0x3fc7('0x4'))},'cc':{'type':Sequelize['TEXT'](_0x3fc7('0x4'))},'bcc':{'type':Sequelize['TEXT']('long')},'subject':{'type':Sequelize[_0x3fc7('0x3')]},'sentAt':{'type':Sequelize[_0x3fc7('0x9')]},'attach':{'type':Sequelize[_0x3fc7('0xa')],'defaultValue':0x0},'secret':{'type':Sequelize[_0x3fc7('0x6')],'defaultValue':![]},'readAt':{'type':Sequelize[_0x3fc7('0x9')]},'originTo':{'type':Sequelize['TEXT'](_0x3fc7('0x4'))},'originCc':{'type':Sequelize[_0x3fc7('0x3')](_0x3fc7('0x4'))},'originChannel':{'type':Sequelize[_0x3fc7('0xb')](_0x3fc7('0xc'),_0x3fc7('0xd')),'defaultValue':'Email','allowNull':![]}};