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 _0xe7fb=['STRING','TEXT','long','ENUM','out','exports','BOOLEAN','DATE'];(function(_0x491a7f,_0x28bb80){var _0x3d8f44=function(_0xdaa716){while(--_0xdaa716){_0x491a7f['push'](_0x491a7f['shift']());}};_0x3d8f44(++_0x28bb80);}(_0xe7fb,0x145));var _0xbe7f=function(_0x17138e,_0x39a261){_0x17138e=_0x17138e-0x0;var _0x559728=_0xe7fb[_0x17138e];return _0x559728;};'use strict';var Sequelize=require('sequelize');var iconv=require('iconv');module[_0xbe7f('0x0')]={'closed':{'type':Sequelize[_0xbe7f('0x1')],'defaultValue':![]},'closedAt':{'type':Sequelize[_0xbe7f('0x2')]},'disposition':{'type':Sequelize['STRING']},'secondDisposition':{'type':Sequelize[_0xbe7f('0x3')]},'thirdDisposition':{'type':Sequelize[_0xbe7f('0x3')]},'note':{'type':Sequelize[_0xbe7f('0x3')]},'inReplyTo':{'type':Sequelize[_0xbe7f('0x3')](0x1fe)},'to':{'type':Sequelize[_0xbe7f('0x3')]},'cc':{'type':Sequelize[_0xbe7f('0x4')](_0xbe7f('0x5'))},'subject':{'type':Sequelize['TEXT']()},'attach':{'type':Sequelize[_0xbe7f('0x1')],'defaultValue':![]},'read1stAt':{'type':Sequelize[_0xbe7f('0x2')]},'substatus':{'type':Sequelize['STRING'](0x3c)},'substatusAt':{'type':Sequelize['DATE']},'firstMsgDirection':{'type':Sequelize[_0xbe7f('0x6')]('in',_0xbe7f('0x7')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0xbe7f('0x2')]},'lastMsgDirection':{'type':Sequelize[_0xbe7f('0x6')]('in',_0xbe7f('0x7')),'defaultValue':'in','allowNull':![]},'lastMsgBody':{'type':Sequelize[_0xbe7f('0x4')](_0xbe7f('0x5'))},'lastMsgText':{'type':Sequelize[_0xbe7f('0x4')]('long')}};