e7156e11177b1e93fa22d6fcb25cba81ea73c790
[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 _0x4534=['long','medium','BOOLEAN','out','STRING','DATE','ENUM','Email','exports','TEXT'];(function(_0x2a5640,_0x364354){var _0x5d928e=function(_0x497b59){while(--_0x497b59){_0x2a5640['push'](_0x2a5640['shift']());}};_0x5d928e(++_0x364354);}(_0x4534,0x6c));var _0x4453=function(_0x2e54c6,_0x4a7b4a){_0x2e54c6=_0x2e54c6-0x0;var _0x173337=_0x4534[_0x2e54c6];return _0x173337;};'use strict';var Sequelize=require('sequelize');var _=require('lodash');module[_0x4453('0x0')]={'body':{'type':Sequelize[_0x4453('0x1')](_0x4453('0x2')),'allowNull':![]},'plainBody':{'type':Sequelize[_0x4453('0x1')](_0x4453('0x3'))},'read':{'type':Sequelize[_0x4453('0x4')],'defaultValue':![]},'direction':{'type':Sequelize['ENUM']('in',_0x4453('0x5')),'defaultValue':_0x4453('0x5'),'allowNull':![]},'messageId':{'type':Sequelize[_0x4453('0x6')](0x1fe)},'from':{'type':Sequelize[_0x4453('0x6')]},'to':{'type':Sequelize['TEXT'](_0x4453('0x2'))},'cc':{'type':Sequelize[_0x4453('0x1')]('long')},'bcc':{'type':Sequelize['TEXT']('long')},'subject':{'type':Sequelize[_0x4453('0x1')]},'sentAt':{'type':Sequelize[_0x4453('0x7')]},'attach':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'secret':{'type':Sequelize[_0x4453('0x4')],'defaultValue':![]},'readAt':{'type':Sequelize[_0x4453('0x7')]},'originTo':{'type':Sequelize['TEXT'](_0x4453('0x2'))},'originCc':{'type':Sequelize[_0x4453('0x1')](_0x4453('0x2'))},'originChannel':{'type':Sequelize[_0x4453('0x8')](_0x4453('0x9'),'Chat'),'defaultValue':_0x4453('0x9'),'allowNull':![]}};