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