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 _0xa104=['STRING','DATE','Email','sequelize','lodash','long','TEXT','medium','BOOLEAN','ENUM','out'];(function(_0x1df602,_0x407ead){var _0x1b30b8=function(_0x33d647){while(--_0x33d647){_0x1df602['push'](_0x1df602['shift']());}};_0x1b30b8(++_0x407ead);}(_0xa104,0xc9));var _0x4a10=function(_0x1d2111,_0xbbf073){_0x1d2111=_0x1d2111-0x0;var _0x52ecd2=_0xa104[_0x1d2111];return _0x52ecd2;};'use strict';var Sequelize=require(_0x4a10('0x0'));var _=require(_0x4a10('0x1'));module['exports']={'body':{'type':Sequelize['TEXT'](_0x4a10('0x2')),'allowNull':![]},'plainBody':{'type':Sequelize[_0x4a10('0x3')](_0x4a10('0x4'))},'read':{'type':Sequelize[_0x4a10('0x5')],'defaultValue':![]},'direction':{'type':Sequelize[_0x4a10('0x6')]('in',_0x4a10('0x7')),'defaultValue':'out','allowNull':![]},'messageId':{'type':Sequelize[_0x4a10('0x8')](0x1fe)},'from':{'type':Sequelize[_0x4a10('0x8')]},'to':{'type':Sequelize[_0x4a10('0x3')]('long')},'cc':{'type':Sequelize[_0x4a10('0x3')](_0x4a10('0x2'))},'bcc':{'type':Sequelize['TEXT'](_0x4a10('0x2'))},'subject':{'type':Sequelize[_0x4a10('0x3')]},'sentAt':{'type':Sequelize[_0x4a10('0x9')]},'attach':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'secret':{'type':Sequelize[_0x4a10('0x5')],'defaultValue':![]},'readAt':{'type':Sequelize[_0x4a10('0x9')]},'originTo':{'type':Sequelize[_0x4a10('0x3')](_0x4a10('0x2'))},'originCc':{'type':Sequelize[_0x4a10('0x3')](_0x4a10('0x2'))},'originChannel':{'type':Sequelize[_0x4a10('0x6')](_0x4a10('0xa'),'Chat'),'defaultValue':_0x4a10('0xa'),'allowNull':![]}};