Built motion from commit b0a9a629.|2.6.33
[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 _0xa6fa=['TEXT','medium','BOOLEAN','ENUM','out','STRING','long','DATE','Chat','Email','exports'];(function(_0x487496,_0x249683){var _0x539dc8=function(_0x2c38e1){while(--_0x2c38e1){_0x487496['push'](_0x487496['shift']());}};_0x539dc8(++_0x249683);}(_0xa6fa,0x99));var _0xaa6f=function(_0x17d9e3,_0x1f969c){_0x17d9e3=_0x17d9e3-0x0;var _0x14192d=_0xa6fa[_0x17d9e3];return _0x14192d;};'use strict';var Sequelize=require('sequelize');var _=require('lodash');module[_0xaa6f('0x0')]={'body':{'type':Sequelize[_0xaa6f('0x1')]('long'),'allowNull':![]},'plainBody':{'type':Sequelize[_0xaa6f('0x1')](_0xaa6f('0x2'))},'read':{'type':Sequelize[_0xaa6f('0x3')],'defaultValue':![]},'direction':{'type':Sequelize[_0xaa6f('0x4')]('in','out'),'defaultValue':_0xaa6f('0x5'),'allowNull':![]},'messageId':{'type':Sequelize[_0xaa6f('0x6')](0x1fe)},'from':{'type':Sequelize['STRING']},'to':{'type':Sequelize['TEXT'](_0xaa6f('0x7'))},'cc':{'type':Sequelize['TEXT']('long')},'bcc':{'type':Sequelize[_0xaa6f('0x1')]('long')},'subject':{'type':Sequelize['TEXT']},'sentAt':{'type':Sequelize['DATE']},'attach':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'secret':{'type':Sequelize[_0xaa6f('0x3')],'defaultValue':![]},'readAt':{'type':Sequelize[_0xaa6f('0x8')]},'originTo':{'type':Sequelize[_0xaa6f('0x1')](_0xaa6f('0x7'))},'originCc':{'type':Sequelize[_0xaa6f('0x1')](_0xaa6f('0x7'))},'originChannel':{'type':Sequelize[_0xaa6f('0x4')]('Email',_0xaa6f('0x9')),'defaultValue':_0xaa6f('0xa'),'allowNull':![]}};