Built motion from commit 362b9399b4d0ed5560fbb795af995925d345fc38. Version 3.0.0...
[motion-next.git] / server / services / ami / dialer / queueCallerAbandon.js
1 const a1226_0x18c0=['queue','countbusyretry','milliseconds','callback','originatecalleridnum','type','name','exports','calleridname','VoiceQueueId','diff','starttime','CampaignId','responsetime','ringtime','countabandonedretry','countagentrejectretry','reason','scheduledat','number','countdropretry','recallme','countcongestionretry','droptime','callbackat','moment','originatecalleridname','ListId','ContactId','membername','countmachineretry','countnoanswerretry','talktime','seconds','UserId'];(function(_0x5decf1,_0x35ac7b){const _0x18c0c9=function(_0x4a8838){while(--_0x4a8838){_0x5decf1['push'](_0x5decf1['shift']());}};_0x18c0c9(++_0x35ac7b);}(a1226_0x18c0,0xe5));const a1226_0x4a88=function(_0x5decf1,_0x35ac7b){_0x5decf1=_0x5decf1-0x176;let _0x18c0c9=a1226_0x18c0[_0x5decf1];return _0x18c0c9;};const a1226_0x1ed233=a1226_0x4a88;'use strict';const moment=require(a1226_0x1ed233(0x17c));function getSeconds(_0x1cc129,_0x1d75ca){const _0x2bf872=a1226_0x1ed233,_0x3bba15=moment(_0x1cc129)[_0x2bf872(0x188)](0x0),_0x13c6bb=moment(_0x1d75ca)[_0x2bf872(0x188)](0x0);return _0x3bba15[_0x2bf872(0x190)](_0x13c6bb,_0x2bf872(0x184));}function QueueCallerAbandon(_0x237da9,_0xd0b607){const _0x36791c=a1226_0x1ed233;this[_0x36791c(0x198)]=_0x237da9['scheduledat'],this['type']=_0x237da9[_0x36791c(0x18b)],this['campaigntype']=_0x237da9[_0x36791c(0x18b)]==='outbound'?'queue':_0x237da9[_0x36791c(0x18b)],this[_0x36791c(0x187)]=_0x237da9[_0x36791c(0x187)],this[_0x36791c(0x179)]=_0x237da9['countcongestionretry'],this[_0x36791c(0x182)]=_0x237da9['countnoanswerretry'],this['countglobal']=_0x237da9['countbusyretry']+_0x237da9[_0x36791c(0x179)]+_0x237da9[_0x36791c(0x182)]+_0x237da9['countnosuchnumberretry']+_0x237da9[_0x36791c(0x177)]+_0x237da9['countabandonedretry']+_0x237da9[_0x36791c(0x181)]+_0x237da9['countagentrejectretry'],this['countnosuchnumberretry']=_0x237da9['countnosuchnumberretry'],this['countdropretry']=_0x237da9[_0x36791c(0x177)],this['countabandonedretry']=_0x237da9[_0x36791c(0x195)],this[_0x36791c(0x181)]=_0x237da9[_0x36791c(0x181)],this[_0x36791c(0x196)]=_0x237da9['countagentrejectretry'],this['uniqueid']=_0xd0b607['uniqueid'],this[_0x36791c(0x18e)]=_0x237da9[_0x36791c(0x18c)],this['calleridnum']=_0x237da9[_0x36791c(0x176)],this[_0x36791c(0x191)]=_0x237da9[_0x36791c(0x191)],this[_0x36791c(0x193)]=_0x237da9[_0x36791c(0x193)],this[_0x36791c(0x17a)]=_0x237da9[_0x36791c(0x17a)],this['endtime']=this[_0x36791c(0x17a)],this[_0x36791c(0x194)]=getSeconds(_0x237da9['responsetime'],_0x237da9[_0x36791c(0x191)]),this['holdtime']=getSeconds(this[_0x36791c(0x17a)],_0x237da9[_0x36791c(0x193)]),this[_0x36791c(0x183)]=0x0,this[_0x36791c(0x186)]=_0xd0b607[_0x36791c(0x186)],this[_0x36791c(0x180)]=_0xd0b607['connectedlinename'],this[_0x36791c(0x197)]=_0xd0b607[_0x36791c(0x197)],this[_0x36791c(0x189)]=_0x237da9[_0x36791c(0x189)],this['callbackuniqueid']=_0x237da9['callbackuniqueid'],this[_0x36791c(0x17b)]=_0x237da9[_0x36791c(0x17b)],this[_0x36791c(0x178)]=_0x237da9[_0x36791c(0x178)],this[_0x36791c(0x17f)]=_0x237da9[_0x36791c(0x17f)],this[_0x36791c(0x17e)]=_0x237da9[_0x36791c(0x17e)],this[_0x36791c(0x185)]=_0x237da9[_0x36791c(0x185)],this[_0x36791c(0x18f)]=_0x237da9[_0x36791c(0x18f)],this[_0x36791c(0x192)]=_0x237da9[_0x36791c(0x192)],this[_0x36791c(0x18a)]=_0x237da9['originatecalleridnum']||'',this['originatecalleridname']=_0x237da9[_0x36791c(0x17d)]||'';}module[a1226_0x1ed233(0x18d)]=QueueCallerAbandon;