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