Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / services / ami / dialer / agentComplete.js
index 2bc94bb..bb32c76 100644 (file)
@@ -1 +1 @@
-const a1052_0x1d3d=['uniqueid','countmachineretry','callbackat','campaigntype','statedesc','state','responsetime','diff','UserId','talktime','starttime','ContactId','originatecalleridname','calleridnum','endtime','milliseconds','queue','callbackuniqueid','outbound','countnosuchnumberretry','holdtime','membername','callback','Answer','countdropretry','countnoanswerretry','countabandonedretry','recallme','CampaignId','countagentrejectretry','ringtime','countcongestionretry','scheduledat','countbusyretry','moment','answertime','VoiceQueueId','name','originatecalleridnum','reason','type','countglobal','format','ListId'];(function(_0x17863b,_0x1d3db1){const _0x108a05=function(_0x4936f7){while(--_0x4936f7){_0x17863b['push'](_0x17863b['shift']());}};_0x108a05(++_0x1d3db1);}(a1052_0x1d3d,0x9b));const a1052_0x108a=function(_0x17863b,_0x1d3db1){_0x17863b=_0x17863b-0x0;let _0x108a05=a1052_0x1d3d[_0x17863b];return _0x108a05;};const _0x4bb761=a1052_0x108a;'use strict';const moment=require(_0x4bb761('0xb'));function getSeconds(_0x4936f7,_0x4a4506){const _0x1e6520=_0x4bb761,_0x31dd95=moment(_0x4936f7)[_0x1e6520('0x24')](0x0),_0x35a984=moment(_0x4a4506)[_0x1e6520('0x24')](0x0);return _0x31dd95[_0x1e6520('0x1c')](_0x35a984,'seconds');}function AgentComplete(_0x28ed7e,_0x63f2f9){const _0x350deb=_0x4bb761;this[_0x350deb('0x1a')]=0x4,this[_0x350deb('0x19')]=_0x350deb('0x0'),this[_0x350deb('0x9')]=_0x28ed7e['scheduledat'],this[_0x350deb('0x11')]=_0x28ed7e[_0x350deb('0x11')],this[_0x350deb('0x18')]=_0x28ed7e['type']===_0x350deb('0x27')?_0x350deb('0x25'):_0x28ed7e[_0x350deb('0x11')],this[_0x350deb('0xa')]=_0x28ed7e[_0x350deb('0xa')],this[_0x350deb('0x8')]=_0x28ed7e[_0x350deb('0x8')],this[_0x350deb('0x2')]=_0x28ed7e[_0x350deb('0x2')],this[_0x350deb('0x12')]=_0x28ed7e[_0x350deb('0xa')]+_0x28ed7e[_0x350deb('0x8')]+_0x28ed7e[_0x350deb('0x2')]+_0x28ed7e[_0x350deb('0x28')]+_0x28ed7e[_0x350deb('0x1')]+_0x28ed7e[_0x350deb('0x3')]+_0x28ed7e['countmachineretry']+_0x28ed7e['countagentrejectretry'],this[_0x350deb('0x28')]=_0x28ed7e['countnosuchnumberretry'],this[_0x350deb('0x1')]=_0x28ed7e[_0x350deb('0x1')],this[_0x350deb('0x3')]=_0x28ed7e[_0x350deb('0x3')],this[_0x350deb('0x16')]=_0x28ed7e[_0x350deb('0x16')],this[_0x350deb('0x6')]=_0x28ed7e['countagentrejectretry'],this[_0x350deb('0x15')]=_0x63f2f9['uniqueid'],this['calleridname']=_0x28ed7e[_0x350deb('0xe')],this[_0x350deb('0x22')]=_0x28ed7e['number'],this[_0x350deb('0x1f')]=_0x28ed7e['starttime'],this[_0x350deb('0x1b')]=_0x28ed7e[_0x350deb('0x1b')],this[_0x350deb('0xc')]=_0x28ed7e[_0x350deb('0xc')],this[_0x350deb('0x23')]=moment()[_0x350deb('0x13')]('YYYY-MM-DD\x20HH:mm:ss'),this[_0x350deb('0x7')]=getSeconds(_0x28ed7e[_0x350deb('0x1b')],_0x28ed7e[_0x350deb('0x1f')]),this[_0x350deb('0x29')]=getSeconds(_0x28ed7e['answertime'],_0x28ed7e[_0x350deb('0x1b')]),this[_0x350deb('0x1e')]=getSeconds(this[_0x350deb('0x23')],_0x28ed7e[_0x350deb('0xc')]),this[_0x350deb('0x25')]=_0x63f2f9[_0x350deb('0x25')],this[_0x350deb('0x2a')]=_0x63f2f9[_0x350deb('0x2a')],this[_0x350deb('0x10')]=_0x63f2f9['reason'],this['callback']=_0x28ed7e[_0x350deb('0x2b')],this['callbackuniqueid']=_0x28ed7e[_0x350deb('0x26')],this[_0x350deb('0x17')]=_0x28ed7e[_0x350deb('0x17')],this['recallme']=_0x28ed7e[_0x350deb('0x4')],this[_0x350deb('0x20')]=_0x28ed7e[_0x350deb('0x20')],this[_0x350deb('0x14')]=_0x28ed7e['ListId'],this[_0x350deb('0x1d')]=_0x28ed7e[_0x350deb('0x1d')],this[_0x350deb('0xd')]=_0x28ed7e[_0x350deb('0xd')],this[_0x350deb('0x5')]=_0x28ed7e[_0x350deb('0x5')],this[_0x350deb('0xf')]=_0x28ed7e[_0x350deb('0xf')]||'',this[_0x350deb('0x21')]=_0x28ed7e[_0x350deb('0x21')]||'';}module['exports']=AgentComplete;
\ No newline at end of file
+const a1052_0x44d4=['countcongestionretry','countmachineretry','countbusyretry','starttime','holdtime','ListId','state','countglobal','scheduledat','callbackat','callbackuniqueid','originatecalleridnum','responsetime','Answer','calleridname','ContactId','milliseconds','campaigntype','answertime','originatecalleridname','membername','reason','name','endtime','statedesc','VoiceQueueId','type','callback','format','UserId','calleridnum','CampaignId','countabandonedretry','seconds','queue','number','countnosuchnumberretry','ringtime','countnoanswerretry','recallme','countagentrejectretry'];(function(_0x3365f7,_0x44d458){const _0x5f4cc2=function(_0x5516bb){while(--_0x5516bb){_0x3365f7['push'](_0x3365f7['shift']());}};_0x5f4cc2(++_0x44d458);}(a1052_0x44d4,0x153));const a1052_0x5f4c=function(_0x3365f7,_0x44d458){_0x3365f7=_0x3365f7-0x0;let _0x5f4cc2=a1052_0x44d4[_0x3365f7];return _0x5f4cc2;};'use strict';const moment=require('moment');function getSeconds(_0x5516bb,_0x5b38ec){const _0x15d71b=a1052_0x5f4c,_0x4dd9da=moment(_0x5516bb)[_0x15d71b('0x5')](0x0),_0x3fdb8d=moment(_0x5b38ec)[_0x15d71b('0x5')](0x0);return _0x4dd9da['diff'](_0x3fdb8d,_0x15d71b('0x16'));}function AgentComplete(_0x32b6da,_0x466354){const _0x7e7c76=a1052_0x5f4c;this[_0x7e7c76('0x24')]=0x4,this[_0x7e7c76('0xd')]=_0x7e7c76('0x2'),this[_0x7e7c76('0x26')]=_0x32b6da[_0x7e7c76('0x26')],this[_0x7e7c76('0xf')]=_0x32b6da[_0x7e7c76('0xf')],this[_0x7e7c76('0x6')]=_0x32b6da['type']==='outbound'?_0x7e7c76('0x17'):_0x32b6da[_0x7e7c76('0xf')],this['countbusyretry']=_0x32b6da[_0x7e7c76('0x20')],this['countcongestionretry']=_0x32b6da['countcongestionretry'],this[_0x7e7c76('0x1b')]=_0x32b6da['countnoanswerretry'],this[_0x7e7c76('0x25')]=_0x32b6da['countbusyretry']+_0x32b6da[_0x7e7c76('0x1e')]+_0x32b6da[_0x7e7c76('0x1b')]+_0x32b6da[_0x7e7c76('0x19')]+_0x32b6da['countdropretry']+_0x32b6da[_0x7e7c76('0x15')]+_0x32b6da[_0x7e7c76('0x1f')]+_0x32b6da['countagentrejectretry'],this['countnosuchnumberretry']=_0x32b6da[_0x7e7c76('0x19')],this['countdropretry']=_0x32b6da['countdropretry'],this['countabandonedretry']=_0x32b6da[_0x7e7c76('0x15')],this[_0x7e7c76('0x1f')]=_0x32b6da[_0x7e7c76('0x1f')],this[_0x7e7c76('0x1d')]=_0x32b6da[_0x7e7c76('0x1d')],this['uniqueid']=_0x466354['uniqueid'],this[_0x7e7c76('0x3')]=_0x32b6da[_0x7e7c76('0xb')],this[_0x7e7c76('0x13')]=_0x32b6da[_0x7e7c76('0x18')],this['starttime']=_0x32b6da['starttime'],this[_0x7e7c76('0x1')]=_0x32b6da[_0x7e7c76('0x1')],this[_0x7e7c76('0x7')]=_0x32b6da['answertime'],this['endtime']=moment()[_0x7e7c76('0x11')]('YYYY-MM-DD\x20HH:mm:ss'),this[_0x7e7c76('0x1a')]=getSeconds(_0x32b6da[_0x7e7c76('0x1')],_0x32b6da[_0x7e7c76('0x21')]),this[_0x7e7c76('0x22')]=getSeconds(_0x32b6da[_0x7e7c76('0x7')],_0x32b6da['responsetime']),this['talktime']=getSeconds(this[_0x7e7c76('0xc')],_0x32b6da[_0x7e7c76('0x7')]),this[_0x7e7c76('0x17')]=_0x466354[_0x7e7c76('0x17')],this[_0x7e7c76('0x9')]=_0x466354[_0x7e7c76('0x9')],this[_0x7e7c76('0xa')]=_0x466354['reason'],this['callback']=_0x32b6da[_0x7e7c76('0x10')],this[_0x7e7c76('0x28')]=_0x32b6da[_0x7e7c76('0x28')],this[_0x7e7c76('0x27')]=_0x32b6da['callbackat'],this[_0x7e7c76('0x1c')]=_0x32b6da[_0x7e7c76('0x1c')],this[_0x7e7c76('0x4')]=_0x32b6da[_0x7e7c76('0x4')],this[_0x7e7c76('0x23')]=_0x32b6da[_0x7e7c76('0x23')],this[_0x7e7c76('0x12')]=_0x32b6da['UserId'],this[_0x7e7c76('0xe')]=_0x32b6da['VoiceQueueId'],this['CampaignId']=_0x32b6da[_0x7e7c76('0x14')],this[_0x7e7c76('0x0')]=_0x32b6da[_0x7e7c76('0x0')]||'',this[_0x7e7c76('0x8')]=_0x32b6da['originatecalleridname']||'';}module['exports']=AgentComplete;
\ No newline at end of file