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 _0x97dd=['TEXT','medium','BOOLEAN','INTEGER','DATE','ENUM','Chat','Email','sequelize','long'];(function(_0x476bf4,_0x2a3755){var _0x788ffe=function(_0x13fa11){while(--_0x13fa11){_0x476bf4['push'](_0x476bf4['shift']());}};_0x788ffe(++_0x2a3755);}(_0x97dd,0xd0));var _0xd97d=function(_0x1207ac,_0xb1e3fb){_0x1207ac=_0x1207ac-0x0;var _0x56b6b8=_0x97dd[_0x1207ac];return _0x56b6b8;};'use strict';var Sequelize=require(_0xd97d('0x0'));var _=require('lodash');module['exports']={'body':{'type':Sequelize['TEXT'](_0xd97d('0x1')),'allowNull':![]},'plainBody':{'type':Sequelize[_0xd97d('0x2')](_0xd97d('0x3'))},'read':{'type':Sequelize[_0xd97d('0x4')],'defaultValue':![]},'direction':{'type':Sequelize['ENUM']('in','out'),'defaultValue':'out','allowNull':![]},'messageId':{'type':Sequelize['STRING'](0x1fe)},'from':{'type':Sequelize['STRING']},'to':{'type':Sequelize[_0xd97d('0x2')](_0xd97d('0x1'))},'cc':{'type':Sequelize[_0xd97d('0x2')](_0xd97d('0x1'))},'bcc':{'type':Sequelize[_0xd97d('0x2')](_0xd97d('0x1'))},'subject':{'type':Sequelize[_0xd97d('0x2')]},'sentAt':{'type':Sequelize['DATE']},'attach':{'type':Sequelize[_0xd97d('0x5')],'defaultValue':0x0},'secret':{'type':Sequelize[_0xd97d('0x4')],'defaultValue':![]},'readAt':{'type':Sequelize[_0xd97d('0x6')]},'originTo':{'type':Sequelize[_0xd97d('0x2')](_0xd97d('0x1'))},'originCc':{'type':Sequelize['TEXT'](_0xd97d('0x1'))},'originChannel':{'type':Sequelize[_0xd97d('0x7')]('Email',_0xd97d('0x8')),'defaultValue':_0xd97d('0x9'),'allowNull':![]}};