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