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 _0xe7bf=['DATE','Email','Chat','sequelize','lodash','exports','long','TEXT','medium','ENUM','out','STRING','INTEGER','BOOLEAN'];(function(_0x260f28,_0x4e9b30){var _0x3aefcc=function(_0x223b18){while(--_0x223b18){_0x260f28['push'](_0x260f28['shift']());}};_0x3aefcc(++_0x4e9b30);}(_0xe7bf,0x16f));var _0xfe7b=function(_0x484503,_0x217fb4){_0x484503=_0x484503-0x0;var _0x3338d7=_0xe7bf[_0x484503];return _0x3338d7;};'use strict';var Sequelize=require(_0xfe7b('0x0'));var _=require(_0xfe7b('0x1'));module[_0xfe7b('0x2')]={'body':{'type':Sequelize['TEXT'](_0xfe7b('0x3')),'allowNull':![]},'plainBody':{'type':Sequelize[_0xfe7b('0x4')](_0xfe7b('0x5'))},'read':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'direction':{'type':Sequelize[_0xfe7b('0x6')]('in',_0xfe7b('0x7')),'defaultValue':'out','allowNull':![]},'messageId':{'type':Sequelize[_0xfe7b('0x8')](0x1fe)},'from':{'type':Sequelize['STRING']},'to':{'type':Sequelize[_0xfe7b('0x4')](_0xfe7b('0x3'))},'cc':{'type':Sequelize['TEXT'](_0xfe7b('0x3'))},'bcc':{'type':Sequelize[_0xfe7b('0x4')](_0xfe7b('0x3'))},'subject':{'type':Sequelize[_0xfe7b('0x4')]},'sentAt':{'type':Sequelize['DATE']},'attach':{'type':Sequelize[_0xfe7b('0x9')],'defaultValue':0x0},'secret':{'type':Sequelize[_0xfe7b('0xa')],'defaultValue':![]},'readAt':{'type':Sequelize[_0xfe7b('0xb')]},'originTo':{'type':Sequelize[_0xfe7b('0x4')]('long')},'originCc':{'type':Sequelize[_0xfe7b('0x4')](_0xfe7b('0x3'))},'originChannel':{'type':Sequelize[_0xfe7b('0x6')](_0xfe7b('0xc'),_0xfe7b('0xd')),'defaultValue':_0xfe7b('0xc'),'allowNull':![]}};