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 _0x1fe1=['BOOLEAN','STRING','DATE','INTEGER','ENUM','Email','Chat','sequelize','lodash','exports','long','TEXT','medium'];(function(_0x320d1b,_0x4e4191){var _0x44a198=function(_0x3aa9ea){while(--_0x3aa9ea){_0x320d1b['push'](_0x320d1b['shift']());}};_0x44a198(++_0x4e4191);}(_0x1fe1,0xbd));var _0x11fe=function(_0x179b22,_0x177708){_0x179b22=_0x179b22-0x0;var _0x3850b9=_0x1fe1[_0x179b22];return _0x3850b9;};'use strict';var Sequelize=require(_0x11fe('0x0'));var _=require(_0x11fe('0x1'));module[_0x11fe('0x2')]={'body':{'type':Sequelize['TEXT'](_0x11fe('0x3')),'allowNull':![]},'plainBody':{'type':Sequelize[_0x11fe('0x4')](_0x11fe('0x5'))},'read':{'type':Sequelize[_0x11fe('0x6')],'defaultValue':![]},'direction':{'type':Sequelize['ENUM']('in','out'),'defaultValue':'out','allowNull':![]},'messageId':{'type':Sequelize[_0x11fe('0x7')](0x1fe)},'from':{'type':Sequelize[_0x11fe('0x7')]},'to':{'type':Sequelize['TEXT']('long')},'cc':{'type':Sequelize[_0x11fe('0x4')](_0x11fe('0x3'))},'bcc':{'type':Sequelize[_0x11fe('0x4')]('long')},'subject':{'type':Sequelize[_0x11fe('0x4')]},'sentAt':{'type':Sequelize[_0x11fe('0x8')]},'attach':{'type':Sequelize[_0x11fe('0x9')],'defaultValue':0x0},'secret':{'type':Sequelize[_0x11fe('0x6')],'defaultValue':![]},'readAt':{'type':Sequelize['DATE']},'originTo':{'type':Sequelize[_0x11fe('0x4')]('long')},'originCc':{'type':Sequelize['TEXT']('long')},'originChannel':{'type':Sequelize[_0x11fe('0xa')](_0x11fe('0xb'),_0x11fe('0xc')),'defaultValue':_0x11fe('0xb'),'allowNull':![]}};