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