Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / services / ami / dialer / hangup.js
index 21649df..4699fb7 100644 (file)
@@ -1 +1 @@
-const a1054_0x33e6=['endtime','countnosuchnumberretry','countcongestionretry','callback','campaigntype','format','diff','ListId','callbackat','UserId','countglobal','scheduledat','countnoanswerretry','number','moment','name','countabandonedretry','reason','responsetime','ringtime','CampaignId','queue','talktime','state','membername','Answer','starttime','VoiceQueueId','countmachineretry','uniqueid','outbound','countdropretry','exports','milliseconds','calleridname','ContactId','type','YYYY-MM-DD\x20HH:mm:ss','callbackuniqueid','statedesc','countbusyretry','countagentrejectretry','calleridnum','recallme'];(function(_0x1ae7a8,_0x33e65f){const _0x1fc73c=function(_0x39f1cc){while(--_0x39f1cc){_0x1ae7a8['push'](_0x1ae7a8['shift']());}};_0x1fc73c(++_0x33e65f);}(a1054_0x33e6,0x149));const a1054_0x1fc7=function(_0x1ae7a8,_0x33e65f){_0x1ae7a8=_0x1ae7a8-0x0;let _0x1fc73c=a1054_0x33e6[_0x1ae7a8];return _0x1fc73c;};const _0x4e3ce2=a1054_0x1fc7;'use strict';const moment=require(_0x4e3ce2('0x25'));function getSeconds(_0x39f1cc,_0x4c8e77){const _0x35d753=_0x4e3ce2,_0x577d5e=moment(_0x39f1cc)[_0x35d753('0xc')](0x0),_0x5e0a7f=moment(_0x4c8e77)[_0x35d753('0xc')](0x0);return _0x577d5e[_0x35d753('0x1d')](_0x5e0a7f,'seconds');}function Hangup(_0x1ab038,_0xb0bc47){const _0x352139=_0x4e3ce2;this[_0x352139('0x2')]=0x4,this[_0x352139('0x12')]=_0x352139('0x4'),this[_0x352139('0x22')]=_0x1ab038[_0x352139('0x22')],this[_0x352139('0xf')]=_0x1ab038[_0x352139('0xf')],this[_0x352139('0x1b')]=_0x1ab038['type']===_0x352139('0x9')?_0x352139('0x0'):_0x1ab038[_0x352139('0xf')],this[_0x352139('0x13')]=_0x1ab038[_0x352139('0x13')],this[_0x352139('0x19')]=_0x1ab038['countcongestionretry'],this['countnoanswerretry']=_0x1ab038['countnoanswerretry'],this[_0x352139('0x21')]=_0x1ab038['countbusyretry']+_0x1ab038['countcongestionretry']+_0x1ab038[_0x352139('0x23')]+_0x1ab038[_0x352139('0x18')]+_0x1ab038[_0x352139('0xa')]+_0x1ab038[_0x352139('0x27')]+_0x1ab038[_0x352139('0x7')]+_0x1ab038[_0x352139('0x14')],this[_0x352139('0x18')]=_0x1ab038[_0x352139('0x18')],this[_0x352139('0xa')]=_0x1ab038['countdropretry'],this[_0x352139('0x27')]=_0x1ab038[_0x352139('0x27')],this['countmachineretry']=_0x1ab038[_0x352139('0x7')],this['countagentrejectretry']=_0x1ab038['countagentrejectretry'],this['uniqueid']=_0xb0bc47[_0x352139('0x8')],this[_0x352139('0xd')]=_0x1ab038[_0x352139('0x26')],this[_0x352139('0x15')]=_0x1ab038[_0x352139('0x24')],this[_0x352139('0x5')]=_0x1ab038['starttime'],this[_0x352139('0x29')]=_0x1ab038[_0x352139('0x29')],this[_0x352139('0x17')]=moment()[_0x352139('0x1c')](_0x352139('0x10')),this[_0x352139('0x2a')]=getSeconds(_0x1ab038['responsetime'],_0x1ab038[_0x352139('0x5')]),this['holdtime']=0x0,this[_0x352139('0x1')]=getSeconds(this['endtime'],_0x1ab038[_0x352139('0x29')]),this[_0x352139('0x0')]=_0x1ab038[_0x352139('0x0')],this[_0x352139('0x3')]='IVR',this[_0x352139('0x28')]=_0xb0bc47['cause-txt'],this['callback']=_0x1ab038[_0x352139('0x1a')],this[_0x352139('0x11')]=_0x1ab038[_0x352139('0x11')],this[_0x352139('0x1f')]=_0x1ab038['callbackat'],this[_0x352139('0x16')]=_0x1ab038['recallme'],this[_0x352139('0xe')]=_0x1ab038[_0x352139('0xe')],this[_0x352139('0x1e')]=_0x1ab038['ListId'],this[_0x352139('0x20')]=_0x1ab038[_0x352139('0x20')],this[_0x352139('0x6')]=_0x1ab038['VoiceQueueId'],this[_0x352139('0x2b')]=_0x1ab038['CampaignId'];}module[_0x4e3ce2('0xb')]=Hangup;
\ No newline at end of file
+const a1054_0x3394=['milliseconds','CampaignId','scheduledat','starttime','state','YYYY-MM-DD\x20HH:mm:ss','countmachineretry','callbackat','Answer','number','queue','countagentrejectretry','diff','format','uniqueid','name','countglobal','responsetime','calleridnum','ListId','countdropretry','exports','callbackuniqueid','outbound','countnoanswerretry','endtime','ringtime','ContactId','calleridname','VoiceQueueId','countabandonedretry','reason','seconds','type','callback','countbusyretry','recallme','countnosuchnumberretry','IVR','UserId','countcongestionretry'];(function(_0x1ce488,_0x3394b5){const _0x5d52a5=function(_0x387c57){while(--_0x387c57){_0x1ce488['push'](_0x1ce488['shift']());}};_0x5d52a5(++_0x3394b5);}(a1054_0x3394,0x158));const a1054_0x5d52=function(_0x1ce488,_0x3394b5){_0x1ce488=_0x1ce488-0x0;let _0x5d52a5=a1054_0x3394[_0x1ce488];return _0x5d52a5;};const _0x28d7ef=a1054_0x5d52;'use strict';const moment=require('moment');function getSeconds(_0x387c57,_0x29b8cb){const _0x3f6aa7=a1054_0x5d52,_0x1cea1a=moment(_0x387c57)[_0x3f6aa7('0x19')](0x0),_0xaaa28a=moment(_0x29b8cb)[_0x3f6aa7('0x19')](0x0);return _0x1cea1a[_0x3f6aa7('0x25')](_0xaaa28a,_0x3f6aa7('0x10'));}function Hangup(_0x4ec536,_0x9a3619){const _0x440382=a1054_0x5d52;this[_0x440382('0x1d')]=0x4,this['statedesc']=_0x440382('0x21'),this[_0x440382('0x1b')]=_0x4ec536['scheduledat'],this[_0x440382('0x11')]=_0x4ec536[_0x440382('0x11')],this['campaigntype']=_0x4ec536[_0x440382('0x11')]===_0x440382('0x7')?'queue':_0x4ec536['type'],this[_0x440382('0x13')]=_0x4ec536[_0x440382('0x13')],this[_0x440382('0x18')]=_0x4ec536[_0x440382('0x18')],this['countnoanswerretry']=_0x4ec536[_0x440382('0x8')],this[_0x440382('0x0')]=_0x4ec536[_0x440382('0x13')]+_0x4ec536['countcongestionretry']+_0x4ec536[_0x440382('0x8')]+_0x4ec536[_0x440382('0x15')]+_0x4ec536[_0x440382('0x4')]+_0x4ec536[_0x440382('0xe')]+_0x4ec536['countmachineretry']+_0x4ec536['countagentrejectretry'],this[_0x440382('0x15')]=_0x4ec536['countnosuchnumberretry'],this[_0x440382('0x4')]=_0x4ec536['countdropretry'],this[_0x440382('0xe')]=_0x4ec536[_0x440382('0xe')],this[_0x440382('0x1f')]=_0x4ec536[_0x440382('0x1f')],this[_0x440382('0x24')]=_0x4ec536[_0x440382('0x24')],this[_0x440382('0x27')]=_0x9a3619[_0x440382('0x27')],this[_0x440382('0xc')]=_0x4ec536[_0x440382('0x28')],this[_0x440382('0x2')]=_0x4ec536[_0x440382('0x22')],this[_0x440382('0x1c')]=_0x4ec536[_0x440382('0x1c')],this[_0x440382('0x1')]=_0x4ec536[_0x440382('0x1')],this[_0x440382('0x9')]=moment()[_0x440382('0x26')](_0x440382('0x1e')),this[_0x440382('0xa')]=getSeconds(_0x4ec536[_0x440382('0x1')],_0x4ec536[_0x440382('0x1c')]),this['holdtime']=0x0,this['talktime']=getSeconds(this[_0x440382('0x9')],_0x4ec536[_0x440382('0x1')]),this[_0x440382('0x23')]=_0x4ec536[_0x440382('0x23')],this['membername']=_0x440382('0x16'),this[_0x440382('0xf')]=_0x9a3619['cause-txt'],this[_0x440382('0x12')]=_0x4ec536[_0x440382('0x12')],this['callbackuniqueid']=_0x4ec536[_0x440382('0x6')],this[_0x440382('0x20')]=_0x4ec536[_0x440382('0x20')],this['recallme']=_0x4ec536[_0x440382('0x14')],this[_0x440382('0xb')]=_0x4ec536['ContactId'],this[_0x440382('0x3')]=_0x4ec536[_0x440382('0x3')],this[_0x440382('0x17')]=_0x4ec536[_0x440382('0x17')],this['VoiceQueueId']=_0x4ec536[_0x440382('0xd')],this[_0x440382('0x1a')]=_0x4ec536[_0x440382('0x1a')];}module[_0x28d7ef('0x5')]=Hangup;
\ No newline at end of file