Built motion from commit 911eb874.|2.6.31
[motion2.git] / server / services / ami / dialer / models / hangup.js
index 43ea812..652839f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9f90=['exports','../utils','state','statedesc','Answer','scheduledat','type','campaigntype','outbound','queue','amd','countbusyretry','countnoanswerretry','countcongestionretry','countnosuchnumberretry','countabandonedretry','countmachineretry','countagentrejectretry','countdropretry','uniqueid','calleridname','name','calleridnum','number','responsetime','endtime','format','ringtime','getSeconds','starttime','holdtime','talktime','membername','IVR','reason','cause-txt','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId'];(function(_0xa5d67d,_0x105c7a){var _0x5013de=function(_0x46468a){while(--_0x46468a){_0xa5d67d['push'](_0xa5d67d['shift']());}};_0x5013de(++_0x105c7a);}(_0x9f90,0x88));var _0x09f9=function(_0x58ebb6,_0x4ecbef){_0x58ebb6=_0x58ebb6-0x0;var _0x529a2a=_0x9f90[_0x58ebb6];return _0x529a2a;};'use strict';var moment=require('moment');var utils=require(_0x09f9('0x0'));function Hangup(_0x20e3e0,_0x3fbe87){this[_0x09f9('0x1')]=0x4;this[_0x09f9('0x2')]=_0x09f9('0x3');this[_0x09f9('0x4')]=_0x20e3e0[_0x09f9('0x4')];this[_0x09f9('0x5')]=_0x20e3e0['type'];this[_0x09f9('0x6')]=_0x20e3e0['type']===_0x09f9('0x7')?_0x09f9('0x8'):_0x20e3e0['type'];this[_0x09f9('0x9')]=_0x20e3e0[_0x09f9('0x9')]||![];this[_0x09f9('0xa')]=_0x20e3e0['countbusyretry'];this['countcongestionretry']=_0x20e3e0['countcongestionretry'];this[_0x09f9('0xb')]=_0x20e3e0['countnoanswerretry'];this['countglobal']=_0x20e3e0[_0x09f9('0xa')]+_0x20e3e0[_0x09f9('0xc')]+_0x20e3e0[_0x09f9('0xb')]+_0x20e3e0[_0x09f9('0xd')]+_0x20e3e0['countdropretry']+_0x20e3e0[_0x09f9('0xe')]+_0x20e3e0[_0x09f9('0xf')]+_0x20e3e0[_0x09f9('0x10')];this['countnosuchnumberretry']=_0x20e3e0[_0x09f9('0xd')];this[_0x09f9('0x11')]=_0x20e3e0[_0x09f9('0x11')];this['countabandonedretry']=_0x20e3e0[_0x09f9('0xe')];this['countmachineretry']=_0x20e3e0['countmachineretry'];this[_0x09f9('0x10')]=_0x20e3e0[_0x09f9('0x10')];this['uniqueid']=_0x3fbe87[_0x09f9('0x12')];this[_0x09f9('0x13')]=_0x20e3e0[_0x09f9('0x14')];this[_0x09f9('0x15')]=_0x20e3e0[_0x09f9('0x16')];this['starttime']=_0x20e3e0['starttime'];this[_0x09f9('0x17')]=_0x20e3e0[_0x09f9('0x17')];this[_0x09f9('0x18')]=moment()[_0x09f9('0x19')]('YYYY-MM-DD\x20HH:mm:ss');this[_0x09f9('0x1a')]=utils[_0x09f9('0x1b')](_0x20e3e0[_0x09f9('0x17')],_0x20e3e0[_0x09f9('0x1c')]);this[_0x09f9('0x1d')]=0x0;this[_0x09f9('0x1e')]=utils['getSeconds'](this[_0x09f9('0x18')],_0x20e3e0[_0x09f9('0x17')]);this[_0x09f9('0x8')]=_0x20e3e0[_0x09f9('0x8')];this[_0x09f9('0x1f')]=_0x09f9('0x20');this[_0x09f9('0x21')]=_0x3fbe87[_0x09f9('0x22')];this[_0x09f9('0x23')]=_0x20e3e0[_0x09f9('0x23')];this[_0x09f9('0x24')]=_0x20e3e0[_0x09f9('0x24')];this[_0x09f9('0x25')]=_0x20e3e0['callbackat'];this[_0x09f9('0x26')]=_0x20e3e0['recallme'];this[_0x09f9('0x27')]=_0x20e3e0[_0x09f9('0x27')];this[_0x09f9('0x28')]=_0x20e3e0[_0x09f9('0x28')];this[_0x09f9('0x29')]=_0x20e3e0[_0x09f9('0x29')];this['VoiceQueueId']=_0x20e3e0[_0x09f9('0x2a')];this['CampaignId']=_0x20e3e0[_0x09f9('0x2b')];}module[_0x09f9('0x2c')]=Hangup;
\ No newline at end of file
+var _0x6a99=['moment','../utils','state','scheduledat','campaigntype','outbound','type','amd','countbusyretry','countglobal','countcongestionretry','countnosuchnumberretry','countmachineretry','countagentrejectretry','countdropretry','countabandonedretry','uniqueid','calleridnum','starttime','responsetime','endtime','format','YYYY-MM-DD\x20HH:mm:ss','ringtime','getSeconds','holdtime','talktime','queue','membername','IVR','reason','cause-txt','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId'];(function(_0x56b9c4,_0x14f739){var _0x5b7404=function(_0x6b3d2b){while(--_0x6b3d2b){_0x56b9c4['push'](_0x56b9c4['shift']());}};_0x5b7404(++_0x14f739);}(_0x6a99,0x148));var _0x96a9=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x6a99[_0x20a584];return _0x4b41a8;};'use strict';var moment=require(_0x96a9('0x0'));var utils=require(_0x96a9('0x1'));function Hangup(_0x5b7348,_0x423af5){this[_0x96a9('0x2')]=0x4;this['statedesc']='Answer';this[_0x96a9('0x3')]=_0x5b7348[_0x96a9('0x3')];this['type']=_0x5b7348['type'];this[_0x96a9('0x4')]=_0x5b7348['type']===_0x96a9('0x5')?'queue':_0x5b7348[_0x96a9('0x6')];this[_0x96a9('0x7')]=_0x5b7348[_0x96a9('0x7')]||![];this['countbusyretry']=_0x5b7348[_0x96a9('0x8')];this['countcongestionretry']=_0x5b7348['countcongestionretry'];this['countnoanswerretry']=_0x5b7348['countnoanswerretry'];this[_0x96a9('0x9')]=_0x5b7348[_0x96a9('0x8')]+_0x5b7348[_0x96a9('0xa')]+_0x5b7348['countnoanswerretry']+_0x5b7348[_0x96a9('0xb')]+_0x5b7348['countdropretry']+_0x5b7348['countabandonedretry']+_0x5b7348[_0x96a9('0xc')]+_0x5b7348[_0x96a9('0xd')];this[_0x96a9('0xb')]=_0x5b7348[_0x96a9('0xb')];this['countdropretry']=_0x5b7348[_0x96a9('0xe')];this[_0x96a9('0xf')]=_0x5b7348['countabandonedretry'];this[_0x96a9('0xc')]=_0x5b7348[_0x96a9('0xc')];this[_0x96a9('0xd')]=_0x5b7348['countagentrejectretry'];this['uniqueid']=_0x423af5[_0x96a9('0x10')];this['calleridname']=_0x5b7348['name'];this[_0x96a9('0x11')]=_0x5b7348['number'];this[_0x96a9('0x12')]=_0x5b7348[_0x96a9('0x12')];this[_0x96a9('0x13')]=_0x5b7348[_0x96a9('0x13')];this[_0x96a9('0x14')]=moment()[_0x96a9('0x15')](_0x96a9('0x16'));this[_0x96a9('0x17')]=utils[_0x96a9('0x18')](_0x5b7348[_0x96a9('0x13')],_0x5b7348['starttime']);this[_0x96a9('0x19')]=0x0;this[_0x96a9('0x1a')]=utils['getSeconds'](this[_0x96a9('0x14')],_0x5b7348['responsetime']);this[_0x96a9('0x1b')]=_0x5b7348[_0x96a9('0x1b')];this[_0x96a9('0x1c')]=_0x96a9('0x1d');this[_0x96a9('0x1e')]=_0x423af5[_0x96a9('0x1f')];this[_0x96a9('0x20')]=_0x5b7348[_0x96a9('0x20')];this['callbackuniqueid']=_0x5b7348[_0x96a9('0x21')];this['callbackat']=_0x5b7348[_0x96a9('0x22')];this[_0x96a9('0x23')]=_0x5b7348[_0x96a9('0x23')];this[_0x96a9('0x24')]=_0x5b7348[_0x96a9('0x24')];this[_0x96a9('0x25')]=_0x5b7348['ListId'];this[_0x96a9('0x26')]=_0x5b7348[_0x96a9('0x26')];this[_0x96a9('0x27')]=_0x5b7348[_0x96a9('0x27')];this['CampaignId']=_0x5b7348[_0x96a9('0x28')];}module['exports']=Hangup;
\ No newline at end of file