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 _0x7ec6=['createdAt','format','MM-DD-YYYY\x20HH:mm','updatedAt','sequelize','exports','getDataValue','extname','value','STRING','setDataValue','membername','split','INTEGER','TEXT','NEW','FLOAT','BOOLEAN','DATE'];(function(_0x5cc5f8,_0x17ba2f){var _0x24c9b4=function(_0xf561f6){while(--_0xf561f6){_0x5cc5f8['push'](_0x5cc5f8['shift']());}};_0x24c9b4(++_0x17ba2f);}(_0x7ec6,0x180));var _0x67ec=function(_0x1da10a,_0x1fe948){_0x1da10a=_0x1da10a-0x0;var _0x5aea64=_0x7ec6[_0x1da10a];return _0x5aea64;};'use strict';var Sequelize=require(_0x67ec('0x0'));var moment=require('moment');var path=require('path');module[_0x67ec('0x1')]={'format':{'type':Sequelize['VIRTUAL'],'get':function(){return this[_0x67ec('0x2')]('value')?path[_0x67ec('0x3')](this[_0x67ec('0x2')](_0x67ec('0x4'))):undefined;}},'uniqueid':{'type':Sequelize[_0x67ec('0x5')]},'channel':{'type':Sequelize['STRING'],'set':function(_0x21a37d){if(_0x21a37d){this[_0x67ec('0x6')]('channel',_0x21a37d);this['setDataValue'](_0x67ec('0x7'),_0x21a37d[_0x67ec('0x8')](/\/|-/)[0x1]);}}},'membername':{'type':Sequelize[_0x67ec('0x5')]},'calleridnum':{'type':Sequelize[_0x67ec('0x5')]},'calleridname':{'type':Sequelize[_0x67ec('0x5')]},'connectedlinenum':{'type':Sequelize['STRING']},'connectedlinename':{'type':Sequelize['STRING']},'accountcode':{'type':Sequelize[_0x67ec('0x5')]},'context':{'type':Sequelize['STRING']},'exten':{'type':Sequelize[_0x67ec('0x5')]},'value':{'type':Sequelize[_0x67ec('0x5')]},'type':{'type':Sequelize['STRING']},'rating':{'type':Sequelize[_0x67ec('0x9')],'validate':{'max':0x5,'min':0x0}},'queue':{'type':Sequelize[_0x67ec('0x5')]},'userDisposition':{'type':Sequelize[_0x67ec('0x5')]},'location':{'type':Sequelize[_0x67ec('0xa')]},'transcribeName':{'type':Sequelize[_0x67ec('0x5')]},'transcribeStatus':{'type':Sequelize[_0x67ec('0x5')],'defaultValue':_0x67ec('0xb')},'fileUri':{'type':Sequelize['TEXT']},'fileText':{'type':Sequelize[_0x67ec('0xa')]},'failureReason':{'type':Sequelize[_0x67ec('0xa')]},'sentiment':{'type':Sequelize[_0x67ec('0x5')]},'sPositive':{'type':Sequelize[_0x67ec('0xc')]},'sNegative':{'type':Sequelize[_0x67ec('0xc')]},'sNeutral':{'type':Sequelize[_0x67ec('0xc')]},'sMixed':{'type':Sequelize[_0x67ec('0xc')]},'tempSentiment':{'type':Sequelize[_0x67ec('0xd')],'defaultValue':![]},'createdAt':{'type':Sequelize[_0x67ec('0xe')],'get':function(){return moment(this['getDataValue'](_0x67ec('0xf')))[_0x67ec('0x10')](_0x67ec('0x11'))['toString']();}},'updatedAt':{'type':Sequelize[_0x67ec('0xe')],'get':function(){return moment(this['getDataValue'](_0x67ec('0x12')))[_0x67ec('0x10')](_0x67ec('0x11'))['toString']();}}};