Built motion from commit 19a84241.|2.5.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 _0xd51b=['Chat','exports','long','TEXT','medium','BOOLEAN','ENUM','out','STRING','INTEGER','DATE','Email'];(function(_0x4cf98e,_0xba4b79){var _0x1623ac=function(_0x459bc0){while(--_0x459bc0){_0x4cf98e['push'](_0x4cf98e['shift']());}};_0x1623ac(++_0xba4b79);}(_0xd51b,0xb5));var _0xbd51=function(_0x5bfff2,_0x5a9215){_0x5bfff2=_0x5bfff2-0x0;var _0x7d09ba=_0xd51b[_0x5bfff2];return _0x7d09ba;};'use strict';var Sequelize=require('sequelize');var _=require('lodash');module[_0xbd51('0x0')]={'body':{'type':Sequelize['TEXT'](_0xbd51('0x1')),'allowNull':![]},'plainBody':{'type':Sequelize[_0xbd51('0x2')](_0xbd51('0x3'))},'read':{'type':Sequelize[_0xbd51('0x4')],'defaultValue':![]},'direction':{'type':Sequelize[_0xbd51('0x5')]('in',_0xbd51('0x6')),'defaultValue':_0xbd51('0x6'),'allowNull':![]},'messageId':{'type':Sequelize[_0xbd51('0x7')](0x1fe)},'from':{'type':Sequelize['STRING']},'to':{'type':Sequelize[_0xbd51('0x2')](_0xbd51('0x1'))},'cc':{'type':Sequelize[_0xbd51('0x2')](_0xbd51('0x1'))},'bcc':{'type':Sequelize[_0xbd51('0x2')](_0xbd51('0x1'))},'subject':{'type':Sequelize[_0xbd51('0x2')]},'sentAt':{'type':Sequelize['DATE']},'attach':{'type':Sequelize[_0xbd51('0x8')],'defaultValue':0x0},'secret':{'type':Sequelize[_0xbd51('0x4')],'defaultValue':![]},'readAt':{'type':Sequelize[_0xbd51('0x9')]},'originTo':{'type':Sequelize[_0xbd51('0x2')](_0xbd51('0x1'))},'originCc':{'type':Sequelize[_0xbd51('0x2')]('long')},'originChannel':{'type':Sequelize[_0xbd51('0x5')](_0xbd51('0xa'),_0xbd51('0xb')),'defaultValue':_0xbd51('0xa'),'allowNull':![]}};