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