Built motion from commit b517aaa2a6638133380e4d135c64a80893061362. Version 3.0.0...
[motion-next.git] / server / services / ami / dialer / history.js
1 const a1055_0x387b=['countnosuchnumberretry','scheduledat','diff','countmachineretry','callbackat','responsetime','countagentrejectretry','countnoanswerretry','outbound','ContactId','callbackuniqueid','countdropretry','countbusyretry','starttime','uniqueid','calleridnum','endtime','countabandonedretry','ringtime','name','callback','milliseconds','originatecalleridnum','seconds','UserId','recallme','CampaignId','VoiceQueueId','countcongestionretry','queue','exports','holdtime','type','talktime','ListId','moment','campaigntype','number'];(function(_0x1da941,_0x387ba5){const _0x375bb8=function(_0x2ed897){while(--_0x2ed897){_0x1da941['push'](_0x1da941['shift']());}};_0x375bb8(++_0x387ba5);}(a1055_0x387b,0x171));const a1055_0x375b=function(_0x1da941,_0x387ba5){_0x1da941=_0x1da941-0x0;let _0x375bb8=a1055_0x387b[_0x1da941];return _0x375bb8;};const _0xf225bf=a1055_0x375b;'use strict';const moment=require(_0xf225bf('0x8'));function getSeconds(_0x2ed897,_0xb5e3b9){const _0x2a2aa5=_0xf225bf,_0x4ef096=moment(_0x2ed897)['milliseconds'](0x0),_0x88f414=moment(_0xb5e3b9)[_0x2a2aa5('0x20')](0x0);return _0x4ef096[_0x2a2aa5('0xd')](_0x88f414,_0x2a2aa5('0x22'));}function History(_0x3c8e7d){const _0xac8b1b=_0xf225bf;this['uniqueid']=_0x3c8e7d[_0xac8b1b('0x19')],this[_0xac8b1b('0xc')]=_0x3c8e7d[_0xac8b1b('0xc')]||undefined,this['type']=_0x3c8e7d['type'],this[_0xac8b1b('0x9')]=_0x3c8e7d[_0xac8b1b('0x5')]===_0xac8b1b('0x13')?_0xac8b1b('0x2'):_0x3c8e7d[_0xac8b1b('0x5')],this[_0xac8b1b('0x17')]=_0x3c8e7d[_0xac8b1b('0x17')],this[_0xac8b1b('0x1')]=_0x3c8e7d[_0xac8b1b('0x1')],this[_0xac8b1b('0x12')]=_0x3c8e7d['countnoanswerretry'],this['countglobal']=_0x3c8e7d[_0xac8b1b('0x17')]+_0x3c8e7d[_0xac8b1b('0x1')]+_0x3c8e7d[_0xac8b1b('0x12')]+_0x3c8e7d[_0xac8b1b('0xb')]+_0x3c8e7d[_0xac8b1b('0x16')]+_0x3c8e7d[_0xac8b1b('0x1c')]+_0x3c8e7d['countmachineretry']+_0x3c8e7d[_0xac8b1b('0x11')],this[_0xac8b1b('0xb')]=_0x3c8e7d[_0xac8b1b('0xb')],this[_0xac8b1b('0x16')]=_0x3c8e7d['countdropretry'],this[_0xac8b1b('0x1c')]=_0x3c8e7d[_0xac8b1b('0x1c')],this[_0xac8b1b('0xe')]=_0x3c8e7d[_0xac8b1b('0xe')],this[_0xac8b1b('0x11')]=_0x3c8e7d['countagentrejectretry'],this[_0xac8b1b('0x2')]=_0x3c8e7d['queue'],this['calleridname']=_0x3c8e7d[_0xac8b1b('0x1e')],this[_0xac8b1b('0x1a')]=_0x3c8e7d[_0xac8b1b('0xa')],this[_0xac8b1b('0x18')]=_0x3c8e7d[_0xac8b1b('0x18')],this['responsetime']=_0x3c8e7d[_0xac8b1b('0x10')],this[_0xac8b1b('0x1b')]=_0x3c8e7d[_0xac8b1b('0x10')],this[_0xac8b1b('0x1d')]=getSeconds(_0x3c8e7d[_0xac8b1b('0x10')],_0x3c8e7d['starttime']),this[_0xac8b1b('0x4')]=0x0,this[_0xac8b1b('0x6')]=0x0,this[_0xac8b1b('0x1f')]=_0x3c8e7d[_0xac8b1b('0x1f')],this[_0xac8b1b('0x15')]=_0x3c8e7d['callbackuniqueid'],this[_0xac8b1b('0xf')]=_0x3c8e7d[_0xac8b1b('0xf')],this[_0xac8b1b('0x24')]=_0x3c8e7d[_0xac8b1b('0x24')],this[_0xac8b1b('0x14')]=_0x3c8e7d[_0xac8b1b('0x14')],this['ListId']=_0x3c8e7d[_0xac8b1b('0x7')],this[_0xac8b1b('0x23')]=_0x3c8e7d[_0xac8b1b('0x23')],this[_0xac8b1b('0x0')]=_0x3c8e7d['VoiceQueueId'],this['CampaignId']=_0x3c8e7d[_0xac8b1b('0x25')],this[_0xac8b1b('0x21')]=_0x3c8e7d[_0xac8b1b('0x21')]||'',this['originatecalleridname']=_0x3c8e7d['originatecalleridname']||'';}module[_0xf225bf('0x3')]=History;