57eff4912cc33f3f341ec7953be3ae0f2705576f
[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 _0xcdc1=['DATE','INTEGER','Email','Chat','sequelize','lodash','long','TEXT','BOOLEAN','ENUM','out','STRING'];(function(_0x3658d1,_0x5b3437){var _0x3db9de=function(_0x23bb15){while(--_0x23bb15){_0x3658d1['push'](_0x3658d1['shift']());}};_0x3db9de(++_0x5b3437);}(_0xcdc1,0xdc));var _0x1cdc=function(_0x5ddb1c,_0x5ea4df){_0x5ddb1c=_0x5ddb1c-0x0;var _0x354adc=_0xcdc1[_0x5ddb1c];return _0x354adc;};'use strict';var Sequelize=require(_0x1cdc('0x0'));var _=require(_0x1cdc('0x1'));module['exports']={'body':{'type':Sequelize['TEXT'](_0x1cdc('0x2')),'allowNull':![]},'plainBody':{'type':Sequelize[_0x1cdc('0x3')]('medium')},'read':{'type':Sequelize[_0x1cdc('0x4')],'defaultValue':![]},'direction':{'type':Sequelize[_0x1cdc('0x5')]('in','out'),'defaultValue':_0x1cdc('0x6'),'allowNull':![]},'messageId':{'type':Sequelize[_0x1cdc('0x7')](0x1fe)},'from':{'type':Sequelize[_0x1cdc('0x7')]},'to':{'type':Sequelize[_0x1cdc('0x3')]('long')},'cc':{'type':Sequelize[_0x1cdc('0x3')](_0x1cdc('0x2'))},'bcc':{'type':Sequelize[_0x1cdc('0x3')]('long')},'subject':{'type':Sequelize['TEXT']},'sentAt':{'type':Sequelize[_0x1cdc('0x8')]},'attach':{'type':Sequelize[_0x1cdc('0x9')],'defaultValue':0x0},'secret':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'readAt':{'type':Sequelize[_0x1cdc('0x8')]},'originTo':{'type':Sequelize[_0x1cdc('0x3')]('long')},'originCc':{'type':Sequelize[_0x1cdc('0x3')]('long')},'originChannel':{'type':Sequelize[_0x1cdc('0x5')](_0x1cdc('0xa'),_0x1cdc('0xb')),'defaultValue':_0x1cdc('0xa'),'allowNull':![]}};