284950411328d25f6883585c2fb24a2f7f8eb766
[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 _0xc935=['out','STRING','TEXT','DATE','INTEGER','Email','Chat','exports','long','medium','ENUM'];(function(_0x257b0e,_0x563d7e){var _0x27ac2a=function(_0x3a4bbc){while(--_0x3a4bbc){_0x257b0e['push'](_0x257b0e['shift']());}};_0x27ac2a(++_0x563d7e);}(_0xc935,0x19e));var _0x5c93=function(_0x348503,_0x1be852){_0x348503=_0x348503-0x0;var _0x21e535=_0xc935[_0x348503];return _0x21e535;};'use strict';var Sequelize=require('sequelize');var _=require('lodash');module[_0x5c93('0x0')]={'body':{'type':Sequelize['TEXT'](_0x5c93('0x1')),'allowNull':![]},'plainBody':{'type':Sequelize['TEXT'](_0x5c93('0x2'))},'read':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'direction':{'type':Sequelize[_0x5c93('0x3')]('in',_0x5c93('0x4')),'defaultValue':'out','allowNull':![]},'messageId':{'type':Sequelize['STRING'](0x1fe)},'from':{'type':Sequelize[_0x5c93('0x5')]},'to':{'type':Sequelize[_0x5c93('0x6')](_0x5c93('0x1'))},'cc':{'type':Sequelize['TEXT'](_0x5c93('0x1'))},'bcc':{'type':Sequelize[_0x5c93('0x6')](_0x5c93('0x1'))},'subject':{'type':Sequelize[_0x5c93('0x6')]},'sentAt':{'type':Sequelize[_0x5c93('0x7')]},'attach':{'type':Sequelize[_0x5c93('0x8')],'defaultValue':0x0},'secret':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'readAt':{'type':Sequelize[_0x5c93('0x7')]},'originTo':{'type':Sequelize[_0x5c93('0x6')](_0x5c93('0x1'))},'originCc':{'type':Sequelize[_0x5c93('0x6')](_0x5c93('0x1'))},'originChannel':{'type':Sequelize['ENUM'](_0x5c93('0x9'),_0x5c93('0xa')),'defaultValue':_0x5c93('0x9'),'allowNull':![]}};