3fb6c4e4ebf42860b63fbfd7e9a3420f3a44c747
[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 _0x39d2=['STRING','DATE','INTEGER','sequelize','exports','TEXT','long','medium','BOOLEAN','ENUM','out'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x39d2,0xf5));var _0x239d=function(_0x1e4a8e,_0x18022b){_0x1e4a8e=_0x1e4a8e-0x0;var _0x5408f9=_0x39d2[_0x1e4a8e];return _0x5408f9;};'use strict';var Sequelize=require(_0x239d('0x0'));var _=require('lodash');module[_0x239d('0x1')]={'body':{'type':Sequelize[_0x239d('0x2')](_0x239d('0x3')),'allowNull':![]},'plainBody':{'type':Sequelize[_0x239d('0x2')](_0x239d('0x4'))},'read':{'type':Sequelize[_0x239d('0x5')],'defaultValue':![]},'direction':{'type':Sequelize[_0x239d('0x6')]('in',_0x239d('0x7')),'defaultValue':_0x239d('0x7'),'allowNull':![]},'messageId':{'type':Sequelize[_0x239d('0x8')](0x1fe)},'from':{'type':Sequelize[_0x239d('0x8')]},'to':{'type':Sequelize[_0x239d('0x2')](_0x239d('0x3'))},'cc':{'type':Sequelize['TEXT'](_0x239d('0x3'))},'bcc':{'type':Sequelize[_0x239d('0x2')](_0x239d('0x3'))},'subject':{'type':Sequelize[_0x239d('0x2')]},'sentAt':{'type':Sequelize[_0x239d('0x9')]},'attach':{'type':Sequelize[_0x239d('0xa')],'defaultValue':0x0},'secret':{'type':Sequelize[_0x239d('0x5')],'defaultValue':![]},'readAt':{'type':Sequelize[_0x239d('0x9')]},'originTo':{'type':Sequelize[_0x239d('0x2')](_0x239d('0x3'))},'originCc':{'type':Sequelize[_0x239d('0x2')](_0x239d('0x3'))}};