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 _0xd2b2=['DATE','STRING','TEXT','long','ENUM','out','exports'];(function(_0xa17948,_0x2befa7){var _0x396468=function(_0x26c384){while(--_0x26c384){_0xa17948['push'](_0xa17948['shift']());}};_0x396468(++_0x2befa7);}(_0xd2b2,0x110));var _0x2d2b=function(_0x1bee96,_0x528c4f){_0x1bee96=_0x1bee96-0x0;var _0xa1c3c=_0xd2b2[_0x1bee96];return _0xa1c3c;};'use strict';var Sequelize=require('sequelize');var iconv=require('iconv');module[_0x2d2b('0x0')]={'closed':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'closedAt':{'type':Sequelize[_0x2d2b('0x1')]},'disposition':{'type':Sequelize[_0x2d2b('0x2')]},'secondDisposition':{'type':Sequelize[_0x2d2b('0x2')]},'thirdDisposition':{'type':Sequelize[_0x2d2b('0x2')]},'note':{'type':Sequelize[_0x2d2b('0x2')]},'inReplyTo':{'type':Sequelize[_0x2d2b('0x2')](0x1fe)},'to':{'type':Sequelize[_0x2d2b('0x2')]},'cc':{'type':Sequelize[_0x2d2b('0x3')](_0x2d2b('0x4'))},'subject':{'type':Sequelize[_0x2d2b('0x3')]()},'attach':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'read1stAt':{'type':Sequelize['DATE']},'substatus':{'type':Sequelize[_0x2d2b('0x2')](0x3c)},'substatusAt':{'type':Sequelize[_0x2d2b('0x1')]},'firstMsgDirection':{'type':Sequelize[_0x2d2b('0x5')]('in',_0x2d2b('0x6')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x2d2b('0x1')]},'lastMsgDirection':{'type':Sequelize['ENUM']('in','out'),'defaultValue':'in','allowNull':![]},'lastMsgBody':{'type':Sequelize[_0x2d2b('0x3')](_0x2d2b('0x4'))},'lastMsgText':{'type':Sequelize[_0x2d2b('0x3')](_0x2d2b('0x4'))}};