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 _0xf662=['STRING','DATE','INTEGER','sequelize','exports','TEXT','long','medium','BOOLEAN','ENUM','out'];(function(_0x2eb049,_0x271a0f){var _0xcccee3=function(_0x526539){while(--_0x526539){_0x2eb049['push'](_0x2eb049['shift']());}};_0xcccee3(++_0x271a0f);}(_0xf662,0x116));var _0x2f66=function(_0x243a39,_0x4c9b51){_0x243a39=_0x243a39-0x0;var _0x5620a2=_0xf662[_0x243a39];return _0x5620a2;};'use strict';var Sequelize=require(_0x2f66('0x0'));var _=require('lodash');module[_0x2f66('0x1')]={'body':{'type':Sequelize[_0x2f66('0x2')](_0x2f66('0x3')),'allowNull':![]},'plainBody':{'type':Sequelize['TEXT'](_0x2f66('0x4'))},'read':{'type':Sequelize[_0x2f66('0x5')],'defaultValue':![]},'direction':{'type':Sequelize[_0x2f66('0x6')]('in',_0x2f66('0x7')),'defaultValue':_0x2f66('0x7'),'allowNull':![]},'messageId':{'type':Sequelize['STRING'](0x1fe)},'from':{'type':Sequelize[_0x2f66('0x8')]},'to':{'type':Sequelize[_0x2f66('0x2')](_0x2f66('0x3'))},'cc':{'type':Sequelize[_0x2f66('0x2')]('long')},'bcc':{'type':Sequelize[_0x2f66('0x2')](_0x2f66('0x3'))},'subject':{'type':Sequelize[_0x2f66('0x2')]},'sentAt':{'type':Sequelize[_0x2f66('0x9')]},'attach':{'type':Sequelize[_0x2f66('0xa')],'defaultValue':0x0},'secret':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'readAt':{'type':Sequelize[_0x2f66('0x9')]},'originTo':{'type':Sequelize['TEXT'](_0x2f66('0x3'))},'originCc':{'type':Sequelize[_0x2f66('0x2')](_0x2f66('0x3'))}};