Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / services / ami / dialer / hangup.js
index c1ea6c9..ad1131f 100644 (file)
@@ -1 +1 @@
-const a1219_0x431d=['CampaignId','state','countnoanswerretry','UserId','countcongestionretry','countabandonedretry','talktime','countbusyretry','responsetime','endtime','callbackuniqueid','scheduledat','countnosuchnumberretry','Answer','VoiceQueueId','countagentrejectretry','countmachineretry','seconds','milliseconds','ContactId','starttime','uniqueid','callbackat','outbound','membername','callback','countdropretry','diff','calleridnum','holdtime','ringtime','recallme','number','type','statedesc','ListId','queue','countglobal'];(function(_0x563d70,_0xfe393f){const _0x431d59=function(_0x34b6e4){while(--_0x34b6e4){_0x563d70['push'](_0x563d70['shift']());}};_0x431d59(++_0xfe393f);}(a1219_0x431d,0x163));const a1219_0x34b6=function(_0x563d70,_0xfe393f){_0x563d70=_0x563d70-0x1e9;let _0x431d59=a1219_0x431d[_0x563d70];return _0x431d59;};'use strict';const moment=require('moment');function getSeconds(_0x317c9a,_0x2caf04){const _0x45231b=a1219_0x34b6,_0x15448b=moment(_0x317c9a)[_0x45231b(0x1ee)](0x0),_0x4f9016=moment(_0x2caf04)['milliseconds'](0x0);return _0x15448b[_0x45231b(0x1f7)](_0x4f9016,_0x45231b(0x1ed));}function Hangup(_0x420dcd,_0x2dfba0){const _0x467a87=a1219_0x34b6;this[_0x467a87(0x203)]=0x4,this[_0x467a87(0x1fe)]=_0x467a87(0x1e9),this[_0x467a87(0x20d)]=_0x420dcd['scheduledat'],this[_0x467a87(0x1fd)]=_0x420dcd[_0x467a87(0x1fd)],this['campaigntype']=_0x420dcd['type']===_0x467a87(0x1f3)?_0x467a87(0x200):_0x420dcd[_0x467a87(0x1fd)],this[_0x467a87(0x209)]=_0x420dcd[_0x467a87(0x209)],this[_0x467a87(0x206)]=_0x420dcd[_0x467a87(0x206)],this[_0x467a87(0x204)]=_0x420dcd[_0x467a87(0x204)],this[_0x467a87(0x201)]=_0x420dcd[_0x467a87(0x209)]+_0x420dcd[_0x467a87(0x206)]+_0x420dcd[_0x467a87(0x204)]+_0x420dcd[_0x467a87(0x20e)]+_0x420dcd[_0x467a87(0x1f6)]+_0x420dcd[_0x467a87(0x207)]+_0x420dcd[_0x467a87(0x1ec)]+_0x420dcd[_0x467a87(0x1eb)],this[_0x467a87(0x20e)]=_0x420dcd[_0x467a87(0x20e)],this['countdropretry']=_0x420dcd[_0x467a87(0x1f6)],this['countabandonedretry']=_0x420dcd[_0x467a87(0x207)],this[_0x467a87(0x1ec)]=_0x420dcd[_0x467a87(0x1ec)],this[_0x467a87(0x1eb)]=_0x420dcd[_0x467a87(0x1eb)],this[_0x467a87(0x1f1)]=_0x2dfba0['uniqueid'],this['calleridname']=_0x420dcd['name'],this[_0x467a87(0x1f8)]=_0x420dcd[_0x467a87(0x1fc)],this[_0x467a87(0x1f0)]=_0x420dcd[_0x467a87(0x1f0)],this[_0x467a87(0x20a)]=_0x420dcd[_0x467a87(0x20a)],this[_0x467a87(0x20b)]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),this[_0x467a87(0x1fa)]=getSeconds(_0x420dcd[_0x467a87(0x20a)],_0x420dcd[_0x467a87(0x1f0)]),this[_0x467a87(0x1f9)]=0x0,this[_0x467a87(0x208)]=getSeconds(this[_0x467a87(0x20b)],_0x420dcd['responsetime']),this[_0x467a87(0x200)]=_0x420dcd[_0x467a87(0x200)],this[_0x467a87(0x1f4)]='IVR',this['reason']=_0x2dfba0['cause-txt'],this[_0x467a87(0x1f5)]=_0x420dcd['callback'],this[_0x467a87(0x20c)]=_0x420dcd[_0x467a87(0x20c)],this[_0x467a87(0x1f2)]=_0x420dcd['callbackat'],this[_0x467a87(0x1fb)]=_0x420dcd['recallme'],this[_0x467a87(0x1ef)]=_0x420dcd[_0x467a87(0x1ef)],this[_0x467a87(0x1ff)]=_0x420dcd[_0x467a87(0x1ff)],this[_0x467a87(0x205)]=_0x420dcd[_0x467a87(0x205)],this[_0x467a87(0x1ea)]=_0x420dcd[_0x467a87(0x1ea)],this[_0x467a87(0x202)]=_0x420dcd['CampaignId'];}module['exports']=Hangup;
\ No newline at end of file
+const a1223_0x5b8c=['queue','calleridnum','outbound','ListId','countglobal','UserId','number','countbusyretry','recallme','seconds','milliseconds','VoiceQueueId','statedesc','CampaignId','scheduledat','countdropretry','callback','diff','callbackuniqueid','membername','type','uniqueid','starttime','countagentrejectretry','endtime','countabandonedretry','countcongestionretry','reason','ContactId','state','callbackat','responsetime','name','campaigntype','calleridname','countmachineretry','moment','countnosuchnumberretry'];(function(_0xa49619,_0x2582bd){const _0x5b8cd1=function(_0x1ba659){while(--_0x1ba659){_0xa49619['push'](_0xa49619['shift']());}};_0x5b8cd1(++_0x2582bd);}(a1223_0x5b8c,0x91));const a1223_0x1ba6=function(_0xa49619,_0x2582bd){_0xa49619=_0xa49619-0x6e;let _0x5b8cd1=a1223_0x5b8c[_0xa49619];return _0x5b8cd1;};const a1223_0x3f282e=a1223_0x1ba6;'use strict';const moment=require(a1223_0x3f282e(0x73));function getSeconds(_0x28bd86,_0x72d9d){const _0x3d842f=a1223_0x3f282e,_0xa1ad53=moment(_0x28bd86)[_0x3d842f(0x7f)](0x0),_0x317883=moment(_0x72d9d)[_0x3d842f(0x7f)](0x0);return _0xa1ad53[_0x3d842f(0x86)](_0x317883,_0x3d842f(0x7e));}function Hangup(_0x1f76e4,_0x5057a3){const _0x5ebaaa=a1223_0x3f282e;this[_0x5ebaaa(0x92)]=0x4,this[_0x5ebaaa(0x81)]='Answer',this['scheduledat']=_0x1f76e4[_0x5ebaaa(0x83)],this[_0x5ebaaa(0x89)]=_0x1f76e4[_0x5ebaaa(0x89)],this[_0x5ebaaa(0x70)]=_0x1f76e4['type']===_0x5ebaaa(0x77)?_0x5ebaaa(0x75):_0x1f76e4[_0x5ebaaa(0x89)],this[_0x5ebaaa(0x7c)]=_0x1f76e4['countbusyretry'],this[_0x5ebaaa(0x8f)]=_0x1f76e4[_0x5ebaaa(0x8f)],this['countnoanswerretry']=_0x1f76e4['countnoanswerretry'],this[_0x5ebaaa(0x79)]=_0x1f76e4[_0x5ebaaa(0x7c)]+_0x1f76e4[_0x5ebaaa(0x8f)]+_0x1f76e4['countnoanswerretry']+_0x1f76e4[_0x5ebaaa(0x74)]+_0x1f76e4['countdropretry']+_0x1f76e4[_0x5ebaaa(0x8e)]+_0x1f76e4['countmachineretry']+_0x1f76e4[_0x5ebaaa(0x8c)],this['countnosuchnumberretry']=_0x1f76e4[_0x5ebaaa(0x74)],this[_0x5ebaaa(0x84)]=_0x1f76e4['countdropretry'],this[_0x5ebaaa(0x8e)]=_0x1f76e4[_0x5ebaaa(0x8e)],this[_0x5ebaaa(0x72)]=_0x1f76e4['countmachineretry'],this[_0x5ebaaa(0x8c)]=_0x1f76e4[_0x5ebaaa(0x8c)],this[_0x5ebaaa(0x8a)]=_0x5057a3[_0x5ebaaa(0x8a)],this[_0x5ebaaa(0x71)]=_0x1f76e4[_0x5ebaaa(0x6f)],this[_0x5ebaaa(0x76)]=_0x1f76e4[_0x5ebaaa(0x7b)],this['starttime']=_0x1f76e4[_0x5ebaaa(0x8b)],this['responsetime']=_0x1f76e4['responsetime'],this[_0x5ebaaa(0x8d)]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),this['ringtime']=getSeconds(_0x1f76e4[_0x5ebaaa(0x6e)],_0x1f76e4['starttime']),this['holdtime']=0x0,this['talktime']=getSeconds(this['endtime'],_0x1f76e4[_0x5ebaaa(0x6e)]),this[_0x5ebaaa(0x75)]=_0x1f76e4[_0x5ebaaa(0x75)],this[_0x5ebaaa(0x88)]='IVR',this[_0x5ebaaa(0x90)]=_0x5057a3['cause-txt'],this[_0x5ebaaa(0x85)]=_0x1f76e4['callback'],this['callbackuniqueid']=_0x1f76e4[_0x5ebaaa(0x87)],this[_0x5ebaaa(0x93)]=_0x1f76e4['callbackat'],this[_0x5ebaaa(0x7d)]=_0x1f76e4[_0x5ebaaa(0x7d)],this['ContactId']=_0x1f76e4[_0x5ebaaa(0x91)],this[_0x5ebaaa(0x78)]=_0x1f76e4[_0x5ebaaa(0x78)],this[_0x5ebaaa(0x7a)]=_0x1f76e4[_0x5ebaaa(0x7a)],this[_0x5ebaaa(0x80)]=_0x1f76e4[_0x5ebaaa(0x80)],this['CampaignId']=_0x1f76e4[_0x5ebaaa(0x82)];}module['exports']=Hangup;
\ No newline at end of file