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