Built motion from commit efa66e19.|2.6.22
[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 _0x3337=['INTEGER','ENUM','Chat','Email','lodash','exports','TEXT','long','medium','BOOLEAN','out','STRING'];(function(_0x58fc2f,_0x111399){var _0x3a1312=function(_0x3d2ff2){while(--_0x3d2ff2){_0x58fc2f['push'](_0x58fc2f['shift']());}};_0x3a1312(++_0x111399);}(_0x3337,0xe8));var _0x7333=function(_0x29632e,_0x5ecba4){_0x29632e=_0x29632e-0x0;var _0x426e04=_0x3337[_0x29632e];return _0x426e04;};'use strict';var Sequelize=require('sequelize');var _=require(_0x7333('0x0'));module[_0x7333('0x1')]={'body':{'type':Sequelize[_0x7333('0x2')](_0x7333('0x3')),'allowNull':![]},'plainBody':{'type':Sequelize[_0x7333('0x2')](_0x7333('0x4'))},'read':{'type':Sequelize[_0x7333('0x5')],'defaultValue':![]},'direction':{'type':Sequelize['ENUM']('in',_0x7333('0x6')),'defaultValue':'out','allowNull':![]},'messageId':{'type':Sequelize[_0x7333('0x7')](0x1fe)},'from':{'type':Sequelize[_0x7333('0x7')]},'to':{'type':Sequelize[_0x7333('0x2')](_0x7333('0x3'))},'cc':{'type':Sequelize[_0x7333('0x2')](_0x7333('0x3'))},'bcc':{'type':Sequelize[_0x7333('0x2')]('long')},'subject':{'type':Sequelize[_0x7333('0x2')]},'sentAt':{'type':Sequelize['DATE']},'attach':{'type':Sequelize[_0x7333('0x8')],'defaultValue':0x0},'secret':{'type':Sequelize[_0x7333('0x5')],'defaultValue':![]},'readAt':{'type':Sequelize['DATE']},'originTo':{'type':Sequelize[_0x7333('0x2')]('long')},'originCc':{'type':Sequelize['TEXT']('long')},'originChannel':{'type':Sequelize[_0x7333('0x9')]('Email',_0x7333('0xa')),'defaultValue':_0x7333('0xb'),'allowNull':![]}};