Built motion from commit f9526609.|2.6.29
[motion2.git] / server / services / ami / dialer / models / hangup.js
index 8b5892a..d7ef122 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbc86=['talktime','endtime','membername','reason','cause-txt','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','moment','../utils','state','statedesc','Answer','scheduledat','type','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countabandonedretry','countnosuchnumberretry','countdropretry','countmachineretry','countagentrejectretry','uniqueid','calleridnum','number','starttime','responsetime','format','YYYY-MM-DD\x20HH:mm:ss','getSeconds'];(function(_0x6b1508,_0x389db2){var _0x1921ed=function(_0x457ab4){while(--_0x457ab4){_0x6b1508['push'](_0x6b1508['shift']());}};_0x1921ed(++_0x389db2);}(_0xbc86,0xfe));var _0x6bc8=function(_0x5e2697,_0x12b23f){_0x5e2697=_0x5e2697-0x0;var _0xb396f4=_0xbc86[_0x5e2697];return _0xb396f4;};'use strict';var moment=require(_0x6bc8('0x0'));var utils=require(_0x6bc8('0x1'));function Hangup(_0x4eb2e3,_0x135f7b){this[_0x6bc8('0x2')]=0x4;this[_0x6bc8('0x3')]=_0x6bc8('0x4');this[_0x6bc8('0x5')]=_0x4eb2e3['scheduledat'];this[_0x6bc8('0x6')]=_0x4eb2e3[_0x6bc8('0x6')];this['campaigntype']=_0x4eb2e3[_0x6bc8('0x6')]===_0x6bc8('0x7')?_0x6bc8('0x8'):_0x4eb2e3[_0x6bc8('0x6')];this['amd']=_0x4eb2e3['amd']||![];this['countbusyretry']=_0x4eb2e3[_0x6bc8('0x9')];this[_0x6bc8('0xa')]=_0x4eb2e3[_0x6bc8('0xa')];this[_0x6bc8('0xb')]=_0x4eb2e3[_0x6bc8('0xb')];this[_0x6bc8('0xc')]=_0x4eb2e3['countbusyretry']+_0x4eb2e3[_0x6bc8('0xa')]+_0x4eb2e3[_0x6bc8('0xb')]+_0x4eb2e3['countnosuchnumberretry']+_0x4eb2e3['countdropretry']+_0x4eb2e3[_0x6bc8('0xd')]+_0x4eb2e3['countmachineretry']+_0x4eb2e3['countagentrejectretry'];this[_0x6bc8('0xe')]=_0x4eb2e3[_0x6bc8('0xe')];this[_0x6bc8('0xf')]=_0x4eb2e3['countdropretry'];this[_0x6bc8('0xd')]=_0x4eb2e3[_0x6bc8('0xd')];this[_0x6bc8('0x10')]=_0x4eb2e3[_0x6bc8('0x10')];this[_0x6bc8('0x11')]=_0x4eb2e3[_0x6bc8('0x11')];this[_0x6bc8('0x12')]=_0x135f7b[_0x6bc8('0x12')];this['calleridname']=_0x4eb2e3['name'];this[_0x6bc8('0x13')]=_0x4eb2e3[_0x6bc8('0x14')];this[_0x6bc8('0x15')]=_0x4eb2e3[_0x6bc8('0x15')];this[_0x6bc8('0x16')]=_0x4eb2e3['responsetime'];this['endtime']=moment()[_0x6bc8('0x17')](_0x6bc8('0x18'));this['ringtime']=utils[_0x6bc8('0x19')](_0x4eb2e3[_0x6bc8('0x16')],_0x4eb2e3['starttime']);this['holdtime']=0x0;this[_0x6bc8('0x1a')]=utils[_0x6bc8('0x19')](this[_0x6bc8('0x1b')],_0x4eb2e3[_0x6bc8('0x16')]);this[_0x6bc8('0x8')]=_0x4eb2e3[_0x6bc8('0x8')];this[_0x6bc8('0x1c')]='IVR';this[_0x6bc8('0x1d')]=_0x135f7b[_0x6bc8('0x1e')];this[_0x6bc8('0x1f')]=_0x4eb2e3[_0x6bc8('0x1f')];this['callbackuniqueid']=_0x4eb2e3[_0x6bc8('0x20')];this[_0x6bc8('0x21')]=_0x4eb2e3[_0x6bc8('0x21')];this[_0x6bc8('0x22')]=_0x4eb2e3[_0x6bc8('0x22')];this[_0x6bc8('0x23')]=_0x4eb2e3['ContactId'];this['ListId']=_0x4eb2e3[_0x6bc8('0x24')];this[_0x6bc8('0x25')]=_0x4eb2e3[_0x6bc8('0x25')];this[_0x6bc8('0x26')]=_0x4eb2e3[_0x6bc8('0x26')];this[_0x6bc8('0x27')]=_0x4eb2e3[_0x6bc8('0x27')];}module['exports']=Hangup;
\ No newline at end of file
+var _0x6ad4=['ringtime','getSeconds','holdtime','talktime','membername','IVR','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','moment','../utils','state','statedesc','Answer','scheduledat','type','campaigntype','outbound','queue','amd','countbusyretry','countcongestionretry','countnoanswerretry','countdropretry','countnosuchnumberretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','calleridname','name','calleridnum','number','starttime','responsetime','endtime'];(function(_0x311849,_0x5dfb54){var _0x52fed7=function(_0x399c6c){while(--_0x399c6c){_0x311849['push'](_0x311849['shift']());}};_0x52fed7(++_0x5dfb54);}(_0x6ad4,0x193));var _0x46ad=function(_0x21a21a,_0x2e08f9){_0x21a21a=_0x21a21a-0x0;var _0x2bdfcc=_0x6ad4[_0x21a21a];return _0x2bdfcc;};'use strict';var moment=require(_0x46ad('0x0'));var utils=require(_0x46ad('0x1'));function Hangup(_0x23bb82,_0x745be4){this[_0x46ad('0x2')]=0x4;this[_0x46ad('0x3')]=_0x46ad('0x4');this[_0x46ad('0x5')]=_0x23bb82[_0x46ad('0x5')];this[_0x46ad('0x6')]=_0x23bb82['type'];this[_0x46ad('0x7')]=_0x23bb82[_0x46ad('0x6')]===_0x46ad('0x8')?_0x46ad('0x9'):_0x23bb82[_0x46ad('0x6')];this[_0x46ad('0xa')]=_0x23bb82[_0x46ad('0xa')]||![];this[_0x46ad('0xb')]=_0x23bb82[_0x46ad('0xb')];this[_0x46ad('0xc')]=_0x23bb82[_0x46ad('0xc')];this[_0x46ad('0xd')]=_0x23bb82[_0x46ad('0xd')];this['countglobal']=_0x23bb82['countbusyretry']+_0x23bb82['countcongestionretry']+_0x23bb82['countnoanswerretry']+_0x23bb82['countnosuchnumberretry']+_0x23bb82[_0x46ad('0xe')]+_0x23bb82['countabandonedretry']+_0x23bb82['countmachineretry']+_0x23bb82['countagentrejectretry'];this[_0x46ad('0xf')]=_0x23bb82[_0x46ad('0xf')];this[_0x46ad('0xe')]=_0x23bb82[_0x46ad('0xe')];this[_0x46ad('0x10')]=_0x23bb82[_0x46ad('0x10')];this[_0x46ad('0x11')]=_0x23bb82[_0x46ad('0x11')];this['countagentrejectretry']=_0x23bb82[_0x46ad('0x12')];this[_0x46ad('0x13')]=_0x745be4['uniqueid'];this[_0x46ad('0x14')]=_0x23bb82[_0x46ad('0x15')];this[_0x46ad('0x16')]=_0x23bb82[_0x46ad('0x17')];this[_0x46ad('0x18')]=_0x23bb82[_0x46ad('0x18')];this[_0x46ad('0x19')]=_0x23bb82[_0x46ad('0x19')];this[_0x46ad('0x1a')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');this[_0x46ad('0x1b')]=utils[_0x46ad('0x1c')](_0x23bb82[_0x46ad('0x19')],_0x23bb82['starttime']);this[_0x46ad('0x1d')]=0x0;this[_0x46ad('0x1e')]=utils[_0x46ad('0x1c')](this[_0x46ad('0x1a')],_0x23bb82[_0x46ad('0x19')]);this[_0x46ad('0x9')]=_0x23bb82[_0x46ad('0x9')];this[_0x46ad('0x1f')]=_0x46ad('0x20');this[_0x46ad('0x21')]=_0x745be4['cause-txt'];this[_0x46ad('0x22')]=_0x23bb82[_0x46ad('0x22')];this[_0x46ad('0x23')]=_0x23bb82['callbackuniqueid'];this['callbackat']=_0x23bb82[_0x46ad('0x24')];this['recallme']=_0x23bb82[_0x46ad('0x25')];this[_0x46ad('0x26')]=_0x23bb82[_0x46ad('0x26')];this[_0x46ad('0x27')]=_0x23bb82[_0x46ad('0x27')];this['UserId']=_0x23bb82[_0x46ad('0x28')];this['VoiceQueueId']=_0x23bb82[_0x46ad('0x29')];this['CampaignId']=_0x23bb82[_0x46ad('0x2a')];}module['exports']=Hangup;
\ No newline at end of file