04bbb392567ed8b910a141b12ebda4a6ff1eccbc
[motion-next.git] / server / services / ami / dialer / history.js
1 const a1056_0x4f6d=['ListId','originatecalleridnum','countmachineretry','callback','responsetime','calleridname','starttime','countdropretry','exports','ringtime','calleridnum','UserId','type','recallme','campaigntype','moment','countcongestionretry','countbusyretry','diff','countabandonedretry','scheduledat','countnosuchnumberretry','name','uniqueid','countnoanswerretry','outbound','VoiceQueueId','ContactId','endtime','holdtime','originatecalleridname','number','callbackat','milliseconds','callbackuniqueid','CampaignId','countagentrejectretry','queue','talktime'];(function(_0x40f7c2,_0x4f6d98){const _0x8f804e=function(_0x10bebe){while(--_0x10bebe){_0x40f7c2['push'](_0x40f7c2['shift']());}};_0x8f804e(++_0x4f6d98);}(a1056_0x4f6d,0x181));const a1056_0x8f80=function(_0x40f7c2,_0x4f6d98){_0x40f7c2=_0x40f7c2-0x0;let _0x8f804e=a1056_0x4f6d[_0x40f7c2];return _0x8f804e;};const _0x552549=a1056_0x8f80;'use strict';const moment=require(_0x552549('0x14'));function getSeconds(_0x10bebe,_0x4df40f){const _0x479e38=_0x552549,_0x11899c=moment(_0x10bebe)[_0x479e38('0x26')](0x0),_0x1c9a98=moment(_0x4df40f)[_0x479e38('0x26')](0x0);return _0x11899c[_0x479e38('0x17')](_0x1c9a98,'seconds');}function History(_0x5871b7){const _0x82e2bf=_0x552549;this[_0x82e2bf('0x1c')]=_0x5871b7[_0x82e2bf('0x1c')],this[_0x82e2bf('0x19')]=_0x5871b7[_0x82e2bf('0x19')]||undefined,this[_0x82e2bf('0x11')]=_0x5871b7[_0x82e2bf('0x11')],this[_0x82e2bf('0x13')]=_0x5871b7[_0x82e2bf('0x11')]===_0x82e2bf('0x1e')?_0x82e2bf('0x3'):_0x5871b7['type'],this[_0x82e2bf('0x16')]=_0x5871b7[_0x82e2bf('0x16')],this[_0x82e2bf('0x15')]=_0x5871b7['countcongestionretry'],this[_0x82e2bf('0x1d')]=_0x5871b7['countnoanswerretry'],this['countglobal']=_0x5871b7[_0x82e2bf('0x16')]+_0x5871b7[_0x82e2bf('0x15')]+_0x5871b7[_0x82e2bf('0x1d')]+_0x5871b7[_0x82e2bf('0x1a')]+_0x5871b7[_0x82e2bf('0xc')]+_0x5871b7[_0x82e2bf('0x18')]+_0x5871b7[_0x82e2bf('0x7')]+_0x5871b7['countagentrejectretry'],this[_0x82e2bf('0x1a')]=_0x5871b7[_0x82e2bf('0x1a')],this[_0x82e2bf('0xc')]=_0x5871b7['countdropretry'],this[_0x82e2bf('0x18')]=_0x5871b7[_0x82e2bf('0x18')],this[_0x82e2bf('0x7')]=_0x5871b7[_0x82e2bf('0x7')],this['countagentrejectretry']=_0x5871b7[_0x82e2bf('0x2')],this[_0x82e2bf('0x3')]=_0x5871b7[_0x82e2bf('0x3')],this[_0x82e2bf('0xa')]=_0x5871b7[_0x82e2bf('0x1b')],this[_0x82e2bf('0xf')]=_0x5871b7[_0x82e2bf('0x24')],this[_0x82e2bf('0xb')]=_0x5871b7['starttime'],this['responsetime']=_0x5871b7['responsetime'],this[_0x82e2bf('0x21')]=_0x5871b7[_0x82e2bf('0x9')],this[_0x82e2bf('0xe')]=getSeconds(_0x5871b7['responsetime'],_0x5871b7[_0x82e2bf('0xb')]),this[_0x82e2bf('0x22')]=0x0,this[_0x82e2bf('0x4')]=0x0,this[_0x82e2bf('0x8')]=_0x5871b7[_0x82e2bf('0x8')],this[_0x82e2bf('0x0')]=_0x5871b7['callbackuniqueid'],this[_0x82e2bf('0x25')]=_0x5871b7[_0x82e2bf('0x25')],this[_0x82e2bf('0x12')]=_0x5871b7['recallme'],this[_0x82e2bf('0x20')]=_0x5871b7['ContactId'],this[_0x82e2bf('0x5')]=_0x5871b7[_0x82e2bf('0x5')],this[_0x82e2bf('0x10')]=_0x5871b7[_0x82e2bf('0x10')],this[_0x82e2bf('0x1f')]=_0x5871b7[_0x82e2bf('0x1f')],this['CampaignId']=_0x5871b7[_0x82e2bf('0x1')],this[_0x82e2bf('0x6')]=_0x5871b7[_0x82e2bf('0x6')]||'',this[_0x82e2bf('0x23')]=_0x5871b7[_0x82e2bf('0x23')]||'';}module[_0x552549('0xd')]=History;