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 _0x86a1=['out','DATE','Chat','Email','sequelize','lodash','exports','TEXT','long','medium','BOOLEAN','ENUM'];(function(_0x509f61,_0x226c03){var _0x2e26f3=function(_0x411f0d){while(--_0x411f0d){_0x509f61['push'](_0x509f61['shift']());}};_0x2e26f3(++_0x226c03);}(_0x86a1,0xc4));var _0x186a=function(_0x422be2,_0x1c439e){_0x422be2=_0x422be2-0x0;var _0x1b820e=_0x86a1[_0x422be2];return _0x1b820e;};'use strict';var Sequelize=require(_0x186a('0x0'));var _=require(_0x186a('0x1'));module[_0x186a('0x2')]={'body':{'type':Sequelize[_0x186a('0x3')](_0x186a('0x4')),'allowNull':![]},'plainBody':{'type':Sequelize['TEXT'](_0x186a('0x5'))},'read':{'type':Sequelize[_0x186a('0x6')],'defaultValue':![]},'direction':{'type':Sequelize[_0x186a('0x7')]('in',_0x186a('0x8')),'defaultValue':_0x186a('0x8'),'allowNull':![]},'messageId':{'type':Sequelize['STRING'](0x1fe)},'from':{'type':Sequelize['STRING']},'to':{'type':Sequelize['TEXT'](_0x186a('0x4'))},'cc':{'type':Sequelize['TEXT'](_0x186a('0x4'))},'bcc':{'type':Sequelize[_0x186a('0x3')](_0x186a('0x4'))},'subject':{'type':Sequelize[_0x186a('0x3')]},'sentAt':{'type':Sequelize[_0x186a('0x9')]},'attach':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'secret':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'readAt':{'type':Sequelize[_0x186a('0x9')]},'originTo':{'type':Sequelize['TEXT'](_0x186a('0x4'))},'originCc':{'type':Sequelize[_0x186a('0x3')](_0x186a('0x4'))},'originChannel':{'type':Sequelize[_0x186a('0x7')]('Email',_0x186a('0xa')),'defaultValue':_0x186a('0xb'),'allowNull':![]}};