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