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