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