6e329c62b10d39ba1fe8fd281e521f4ee3036178
[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 _0xfde2=['long','TEXT','medium','BOOLEAN','out','STRING','DATE','Email','Chat'];(function(_0x27e811,_0x20137c){var _0x1627fa=function(_0x4498ca){while(--_0x4498ca){_0x27e811['push'](_0x27e811['shift']());}};_0x1627fa(++_0x20137c);}(_0xfde2,0xea));var _0x2fde=function(_0x3e80e5,_0x5ba461){_0x3e80e5=_0x3e80e5-0x0;var _0x43a128=_0xfde2[_0x3e80e5];return _0x43a128;};'use strict';var Sequelize=require('sequelize');var _=require('lodash');module['exports']={'body':{'type':Sequelize['TEXT'](_0x2fde('0x0')),'allowNull':![]},'plainBody':{'type':Sequelize[_0x2fde('0x1')](_0x2fde('0x2'))},'read':{'type':Sequelize[_0x2fde('0x3')],'defaultValue':![]},'direction':{'type':Sequelize['ENUM']('in',_0x2fde('0x4')),'defaultValue':'out','allowNull':![]},'messageId':{'type':Sequelize[_0x2fde('0x5')](0x1fe)},'from':{'type':Sequelize[_0x2fde('0x5')]},'to':{'type':Sequelize['TEXT']('long')},'cc':{'type':Sequelize[_0x2fde('0x1')](_0x2fde('0x0'))},'bcc':{'type':Sequelize[_0x2fde('0x1')](_0x2fde('0x0'))},'subject':{'type':Sequelize[_0x2fde('0x1')]},'sentAt':{'type':Sequelize[_0x2fde('0x6')]},'attach':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'secret':{'type':Sequelize[_0x2fde('0x3')],'defaultValue':![]},'readAt':{'type':Sequelize[_0x2fde('0x6')]},'originTo':{'type':Sequelize[_0x2fde('0x1')](_0x2fde('0x0'))},'originCc':{'type':Sequelize[_0x2fde('0x1')](_0x2fde('0x0'))},'originChannel':{'type':Sequelize['ENUM'](_0x2fde('0x7'),_0x2fde('0x8')),'defaultValue':'Email','allowNull':![]}};