1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xfde2=['long','TEXT','medium','BOOLEAN','out','STRING','DATE','Email','Chat'];(function(_0x27e811,_0x20137c){var _0x1627fa=function(_0x4498ca){while(--_0x4498ca){_0x27e811['push'](_0x27e811['shift']());}};_0x1627fa(++_0x20137c);}(_0xfde2,0xea));var _0x2fde=function(_0x3e80e5,_0x5ba461){_0x3e80e5=_0x3e80e5-0x0;var _0x43a128=_0xfde2[_0x3e80e5];return _0x43a128;};'use strict';var Sequelize=require('sequelize');var _=require('lodash');module['exports']={'body':{'type':Sequelize['TEXT'](_0x2fde('0x0')),'allowNull':![]},'plainBody':{'type':Sequelize[_0x2fde('0x1')](_0x2fde('0x2'))},'read':{'type':Sequelize[_0x2fde('0x3')],'defaultValue':![]},'direction':{'type':Sequelize['ENUM']('in',_0x2fde('0x4')),'defaultValue':'out','allowNull':![]},'messageId':{'type':Sequelize[_0x2fde('0x5')](0x1fe)},'from':{'type':Sequelize[_0x2fde('0x5')]},'to':{'type':Sequelize['TEXT']('long')},'cc':{'type':Sequelize[_0x2fde('0x1')](_0x2fde('0x0'))},'bcc':{'type':Sequelize[_0x2fde('0x1')](_0x2fde('0x0'))},'subject':{'type':Sequelize[_0x2fde('0x1')]},'sentAt':{'type':Sequelize[_0x2fde('0x6')]},'attach':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'secret':{'type':Sequelize[_0x2fde('0x3')],'defaultValue':![]},'readAt':{'type':Sequelize[_0x2fde('0x6')]},'originTo':{'type':Sequelize[_0x2fde('0x1')](_0x2fde('0x0'))},'originCc':{'type':Sequelize[_0x2fde('0x1')](_0x2fde('0x0'))},'originChannel':{'type':Sequelize['ENUM'](_0x2fde('0x7'),_0x2fde('0x8')),'defaultValue':'Email','allowNull':![]}};