Built motion from commit 42801a18.|2.6.28
[motion2.git] / server / services / ami / dialer / models / hangup.js
index a9a94fb..d6d7c0b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x52cb=['moment','../utils','statedesc','Answer','scheduledat','type','campaigntype','outbound','queue','amd','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countabandonedretry','countmachineretry','countagentrejectretry','countdropretry','uniqueid','name','calleridnum','number','starttime','responsetime','endtime','YYYY-MM-DD\x20HH:mm:ss','ringtime','getSeconds','holdtime','membername','IVR','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','CampaignId','exports'];(function(_0x5a7112,_0x1f9492){var _0x3147f7=function(_0x4d2329){while(--_0x4d2329){_0x5a7112['push'](_0x5a7112['shift']());}};_0x3147f7(++_0x1f9492);}(_0x52cb,0x148));var _0xb52c=function(_0x2d65e7,_0x187cca){_0x2d65e7=_0x2d65e7-0x0;var _0x23672b=_0x52cb[_0x2d65e7];return _0x23672b;};'use strict';var moment=require(_0xb52c('0x0'));var utils=require(_0xb52c('0x1'));function Hangup(_0x270485,_0x1ecf2a){this['state']=0x4;this[_0xb52c('0x2')]=_0xb52c('0x3');this[_0xb52c('0x4')]=_0x270485[_0xb52c('0x4')];this[_0xb52c('0x5')]=_0x270485[_0xb52c('0x5')];this[_0xb52c('0x6')]=_0x270485[_0xb52c('0x5')]===_0xb52c('0x7')?_0xb52c('0x8'):_0x270485[_0xb52c('0x5')];this[_0xb52c('0x9')]=_0x270485[_0xb52c('0x9')]||![];this['countbusyretry']=_0x270485[_0xb52c('0xa')];this[_0xb52c('0xb')]=_0x270485['countcongestionretry'];this[_0xb52c('0xc')]=_0x270485[_0xb52c('0xc')];this['countglobal']=_0x270485['countbusyretry']+_0x270485[_0xb52c('0xb')]+_0x270485[_0xb52c('0xc')]+_0x270485[_0xb52c('0xd')]+_0x270485['countdropretry']+_0x270485[_0xb52c('0xe')]+_0x270485[_0xb52c('0xf')]+_0x270485[_0xb52c('0x10')];this[_0xb52c('0xd')]=_0x270485[_0xb52c('0xd')];this[_0xb52c('0x11')]=_0x270485['countdropretry'];this[_0xb52c('0xe')]=_0x270485['countabandonedretry'];this['countmachineretry']=_0x270485[_0xb52c('0xf')];this[_0xb52c('0x10')]=_0x270485['countagentrejectretry'];this['uniqueid']=_0x1ecf2a[_0xb52c('0x12')];this['calleridname']=_0x270485[_0xb52c('0x13')];this[_0xb52c('0x14')]=_0x270485[_0xb52c('0x15')];this['starttime']=_0x270485[_0xb52c('0x16')];this[_0xb52c('0x17')]=_0x270485[_0xb52c('0x17')];this[_0xb52c('0x18')]=moment()['format'](_0xb52c('0x19'));this[_0xb52c('0x1a')]=utils[_0xb52c('0x1b')](_0x270485[_0xb52c('0x17')],_0x270485[_0xb52c('0x16')]);this[_0xb52c('0x1c')]=0x0;this['talktime']=utils[_0xb52c('0x1b')](this[_0xb52c('0x18')],_0x270485['responsetime']);this[_0xb52c('0x8')]=_0x270485[_0xb52c('0x8')];this[_0xb52c('0x1d')]=_0xb52c('0x1e');this[_0xb52c('0x1f')]=_0x1ecf2a['cause-txt'];this['callback']=_0x270485[_0xb52c('0x20')];this['callbackuniqueid']=_0x270485[_0xb52c('0x21')];this[_0xb52c('0x22')]=_0x270485['callbackat'];this[_0xb52c('0x23')]=_0x270485[_0xb52c('0x23')];this[_0xb52c('0x24')]=_0x270485[_0xb52c('0x24')];this[_0xb52c('0x25')]=_0x270485[_0xb52c('0x25')];this[_0xb52c('0x26')]=_0x270485[_0xb52c('0x26')];this['VoiceQueueId']=_0x270485['VoiceQueueId'];this[_0xb52c('0x27')]=_0x270485['CampaignId'];}module[_0xb52c('0x28')]=Hangup;
\ No newline at end of file
+var _0xb3c1=['callback','callbackuniqueid','callbackat','ContactId','ListId','UserId','VoiceQueueId','CampaignId','exports','moment','../utils','state','statedesc','Answer','scheduledat','type','outbound','queue','amd','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','calleridname','name','calleridnum','number','starttime','responsetime','endtime','format','YYYY-MM-DD\x20HH:mm:ss','talktime','getSeconds','membername','IVR','reason'];(function(_0x19f95d,_0x4edd65){var _0x198fba=function(_0xc8bc4c){while(--_0xc8bc4c){_0x19f95d['push'](_0x19f95d['shift']());}};_0x198fba(++_0x4edd65);}(_0xb3c1,0xb5));var _0x1b3c=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0xb3c1[_0x20a584];return _0x4b41a8;};'use strict';var moment=require(_0x1b3c('0x0'));var utils=require(_0x1b3c('0x1'));function Hangup(_0x1069a7,_0x32a047){this[_0x1b3c('0x2')]=0x4;this[_0x1b3c('0x3')]=_0x1b3c('0x4');this[_0x1b3c('0x5')]=_0x1069a7['scheduledat'];this[_0x1b3c('0x6')]=_0x1069a7[_0x1b3c('0x6')];this['campaigntype']=_0x1069a7[_0x1b3c('0x6')]===_0x1b3c('0x7')?_0x1b3c('0x8'):_0x1069a7['type'];this[_0x1b3c('0x9')]=_0x1069a7[_0x1b3c('0x9')]||![];this[_0x1b3c('0xa')]=_0x1069a7[_0x1b3c('0xa')];this[_0x1b3c('0xb')]=_0x1069a7[_0x1b3c('0xb')];this[_0x1b3c('0xc')]=_0x1069a7[_0x1b3c('0xc')];this[_0x1b3c('0xd')]=_0x1069a7['countbusyretry']+_0x1069a7[_0x1b3c('0xb')]+_0x1069a7['countnoanswerretry']+_0x1069a7[_0x1b3c('0xe')]+_0x1069a7[_0x1b3c('0xf')]+_0x1069a7[_0x1b3c('0x10')]+_0x1069a7[_0x1b3c('0x11')]+_0x1069a7[_0x1b3c('0x12')];this[_0x1b3c('0xe')]=_0x1069a7[_0x1b3c('0xe')];this[_0x1b3c('0xf')]=_0x1069a7[_0x1b3c('0xf')];this[_0x1b3c('0x10')]=_0x1069a7['countabandonedretry'];this[_0x1b3c('0x11')]=_0x1069a7['countmachineretry'];this['countagentrejectretry']=_0x1069a7[_0x1b3c('0x12')];this[_0x1b3c('0x13')]=_0x32a047[_0x1b3c('0x13')];this[_0x1b3c('0x14')]=_0x1069a7[_0x1b3c('0x15')];this[_0x1b3c('0x16')]=_0x1069a7[_0x1b3c('0x17')];this['starttime']=_0x1069a7[_0x1b3c('0x18')];this[_0x1b3c('0x19')]=_0x1069a7[_0x1b3c('0x19')];this[_0x1b3c('0x1a')]=moment()[_0x1b3c('0x1b')](_0x1b3c('0x1c'));this['ringtime']=utils['getSeconds'](_0x1069a7[_0x1b3c('0x19')],_0x1069a7['starttime']);this['holdtime']=0x0;this[_0x1b3c('0x1d')]=utils[_0x1b3c('0x1e')](this[_0x1b3c('0x1a')],_0x1069a7['responsetime']);this['queue']=_0x1069a7[_0x1b3c('0x8')];this[_0x1b3c('0x1f')]=_0x1b3c('0x20');this[_0x1b3c('0x21')]=_0x32a047['cause-txt'];this['callback']=_0x1069a7[_0x1b3c('0x22')];this[_0x1b3c('0x23')]=_0x1069a7[_0x1b3c('0x23')];this[_0x1b3c('0x24')]=_0x1069a7[_0x1b3c('0x24')];this['recallme']=_0x1069a7['recallme'];this[_0x1b3c('0x25')]=_0x1069a7[_0x1b3c('0x25')];this[_0x1b3c('0x26')]=_0x1069a7[_0x1b3c('0x26')];this[_0x1b3c('0x27')]=_0x1069a7[_0x1b3c('0x27')];this[_0x1b3c('0x28')]=_0x1069a7[_0x1b3c('0x28')];this['CampaignId']=_0x1069a7[_0x1b3c('0x29')];}module[_0x1b3c('0x2a')]=Hangup;
\ No newline at end of file