Built motion from commit cb845558.|2.6.34
[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 _0xfcfb=['Chat','exports','long','TEXT','medium','BOOLEAN','ENUM','out','STRING','INTEGER','DATE','Email'];(function(_0x529b9a,_0x3ddafe){var _0x15b1f2=function(_0x584921){while(--_0x584921){_0x529b9a['push'](_0x529b9a['shift']());}};_0x15b1f2(++_0x3ddafe);}(_0xfcfb,0x145));var _0xbfcf=function(_0x1cffe2,_0x5383e8){_0x1cffe2=_0x1cffe2-0x0;var _0x57030e=_0xfcfb[_0x1cffe2];return _0x57030e;};'use strict';var Sequelize=require('sequelize');var _=require('lodash');module[_0xbfcf('0x0')]={'body':{'type':Sequelize['TEXT'](_0xbfcf('0x1')),'allowNull':![]},'plainBody':{'type':Sequelize[_0xbfcf('0x2')](_0xbfcf('0x3'))},'read':{'type':Sequelize[_0xbfcf('0x4')],'defaultValue':![]},'direction':{'type':Sequelize[_0xbfcf('0x5')]('in',_0xbfcf('0x6')),'defaultValue':_0xbfcf('0x6'),'allowNull':![]},'messageId':{'type':Sequelize[_0xbfcf('0x7')](0x1fe)},'from':{'type':Sequelize[_0xbfcf('0x7')]},'to':{'type':Sequelize[_0xbfcf('0x2')](_0xbfcf('0x1'))},'cc':{'type':Sequelize['TEXT'](_0xbfcf('0x1'))},'bcc':{'type':Sequelize[_0xbfcf('0x2')]('long')},'subject':{'type':Sequelize[_0xbfcf('0x2')]},'sentAt':{'type':Sequelize['DATE']},'attach':{'type':Sequelize[_0xbfcf('0x8')],'defaultValue':0x0},'secret':{'type':Sequelize[_0xbfcf('0x4')],'defaultValue':![]},'readAt':{'type':Sequelize[_0xbfcf('0x9')]},'originTo':{'type':Sequelize[_0xbfcf('0x2')](_0xbfcf('0x1'))},'originCc':{'type':Sequelize[_0xbfcf('0x2')]('long')},'originChannel':{'type':Sequelize[_0xbfcf('0x5')](_0xbfcf('0xa'),_0xbfcf('0xb')),'defaultValue':_0xbfcf('0xa'),'allowNull':![]}};