Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / services / ami / dialer / models / hangup.js
index 93e1da8..fd138fc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xcf38=['ringtime','getSeconds','holdtime','talktime','membername','cause-txt','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','CampaignId','moment','../utils','state','Answer','scheduledat','type','outbound','queue','amd','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','countnosuchnumberretry','uniqueid','calleridname','name','calleridnum','number','starttime','responsetime','endtime','format','YYYY-MM-DD\x20HH:mm:ss'];(function(_0x36c5b0,_0x5001da){var _0xf19333=function(_0x1e880a){while(--_0x1e880a){_0x36c5b0['push'](_0x36c5b0['shift']());}};_0xf19333(++_0x5001da);}(_0xcf38,0x12c));var _0x8cf3=function(_0x4250b4,_0x3fd543){_0x4250b4=_0x4250b4-0x0;var _0x8a4807=_0xcf38[_0x4250b4];return _0x8a4807;};'use strict';var moment=require(_0x8cf3('0x0'));var utils=require(_0x8cf3('0x1'));function Hangup(_0x382b2d,_0x2e9a42){this[_0x8cf3('0x2')]=0x4;this['statedesc']=_0x8cf3('0x3');this[_0x8cf3('0x4')]=_0x382b2d[_0x8cf3('0x4')];this[_0x8cf3('0x5')]=_0x382b2d[_0x8cf3('0x5')];this['campaigntype']=_0x382b2d[_0x8cf3('0x5')]===_0x8cf3('0x6')?_0x8cf3('0x7'):_0x382b2d[_0x8cf3('0x5')];this[_0x8cf3('0x8')]=_0x382b2d['amd']||![];this[_0x8cf3('0x9')]=_0x382b2d[_0x8cf3('0x9')];this[_0x8cf3('0xa')]=_0x382b2d[_0x8cf3('0xa')];this[_0x8cf3('0xb')]=_0x382b2d[_0x8cf3('0xb')];this[_0x8cf3('0xc')]=_0x382b2d[_0x8cf3('0x9')]+_0x382b2d[_0x8cf3('0xa')]+_0x382b2d['countnoanswerretry']+_0x382b2d['countnosuchnumberretry']+_0x382b2d[_0x8cf3('0xd')]+_0x382b2d[_0x8cf3('0xe')]+_0x382b2d[_0x8cf3('0xf')]+_0x382b2d[_0x8cf3('0x10')];this[_0x8cf3('0x11')]=_0x382b2d[_0x8cf3('0x11')];this['countdropretry']=_0x382b2d[_0x8cf3('0xd')];this['countabandonedretry']=_0x382b2d[_0x8cf3('0xe')];this[_0x8cf3('0xf')]=_0x382b2d['countmachineretry'];this['countagentrejectretry']=_0x382b2d['countagentrejectretry'];this['uniqueid']=_0x2e9a42[_0x8cf3('0x12')];this[_0x8cf3('0x13')]=_0x382b2d[_0x8cf3('0x14')];this[_0x8cf3('0x15')]=_0x382b2d[_0x8cf3('0x16')];this[_0x8cf3('0x17')]=_0x382b2d[_0x8cf3('0x17')];this['responsetime']=_0x382b2d[_0x8cf3('0x18')];this[_0x8cf3('0x19')]=moment()[_0x8cf3('0x1a')](_0x8cf3('0x1b'));this[_0x8cf3('0x1c')]=utils[_0x8cf3('0x1d')](_0x382b2d['responsetime'],_0x382b2d[_0x8cf3('0x17')]);this[_0x8cf3('0x1e')]=0x0;this[_0x8cf3('0x1f')]=utils[_0x8cf3('0x1d')](this['endtime'],_0x382b2d[_0x8cf3('0x18')]);this[_0x8cf3('0x7')]=_0x382b2d['queue'];this[_0x8cf3('0x20')]='IVR';this['reason']=_0x2e9a42[_0x8cf3('0x21')];this[_0x8cf3('0x22')]=_0x382b2d[_0x8cf3('0x22')];this[_0x8cf3('0x23')]=_0x382b2d[_0x8cf3('0x23')];this['callbackat']=_0x382b2d[_0x8cf3('0x24')];this[_0x8cf3('0x25')]=_0x382b2d[_0x8cf3('0x25')];this[_0x8cf3('0x26')]=_0x382b2d[_0x8cf3('0x26')];this[_0x8cf3('0x27')]=_0x382b2d[_0x8cf3('0x27')];this['UserId']=_0x382b2d['UserId'];this['VoiceQueueId']=_0x382b2d['VoiceQueueId'];this[_0x8cf3('0x28')]=_0x382b2d[_0x8cf3('0x28')];}module['exports']=Hangup;
\ No newline at end of file
+var _0x455a=['recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','moment','../utils','state','statedesc','scheduledat','campaigntype','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','ringtime','holdtime','talktime','getSeconds','IVR','reason','cause-txt','callback','callbackuniqueid','callbackat'];(function(_0x25f4f7,_0x1fbc47){var _0x5d223e=function(_0x32680d){while(--_0x32680d){_0x25f4f7['push'](_0x25f4f7['shift']());}};_0x5d223e(++_0x1fbc47);}(_0x455a,0x8a));var _0xa455=function(_0x45518f,_0x475a6b){_0x45518f=_0x45518f-0x0;var _0x198175=_0x455a[_0x45518f];return _0x198175;};'use strict';var moment=require(_0xa455('0x0'));var utils=require(_0xa455('0x1'));function Hangup(_0x324159,_0x538b23){this[_0xa455('0x2')]=0x4;this[_0xa455('0x3')]='Answer';this['scheduledat']=_0x324159[_0xa455('0x4')];this['type']=_0x324159['type'];this[_0xa455('0x5')]=_0x324159['type']===_0xa455('0x6')?_0xa455('0x7'):_0x324159['type'];this[_0xa455('0x8')]=_0x324159[_0xa455('0x8')]||![];this[_0xa455('0x9')]=_0x324159[_0xa455('0x9')];this[_0xa455('0xa')]=_0x324159[_0xa455('0xa')];this['countnoanswerretry']=_0x324159[_0xa455('0xb')];this[_0xa455('0xc')]=_0x324159['countbusyretry']+_0x324159['countcongestionretry']+_0x324159[_0xa455('0xb')]+_0x324159[_0xa455('0xd')]+_0x324159[_0xa455('0xe')]+_0x324159[_0xa455('0xf')]+_0x324159['countmachineretry']+_0x324159['countagentrejectretry'];this[_0xa455('0xd')]=_0x324159['countnosuchnumberretry'];this[_0xa455('0xe')]=_0x324159[_0xa455('0xe')];this[_0xa455('0xf')]=_0x324159[_0xa455('0xf')];this[_0xa455('0x10')]=_0x324159[_0xa455('0x10')];this[_0xa455('0x11')]=_0x324159[_0xa455('0x11')];this[_0xa455('0x12')]=_0x538b23[_0xa455('0x12')];this[_0xa455('0x13')]=_0x324159[_0xa455('0x14')];this[_0xa455('0x15')]=_0x324159[_0xa455('0x16')];this['starttime']=_0x324159[_0xa455('0x17')];this[_0xa455('0x18')]=_0x324159[_0xa455('0x18')];this[_0xa455('0x19')]=moment()[_0xa455('0x1a')](_0xa455('0x1b'));this[_0xa455('0x1c')]=utils['getSeconds'](_0x324159[_0xa455('0x18')],_0x324159['starttime']);this[_0xa455('0x1d')]=0x0;this[_0xa455('0x1e')]=utils[_0xa455('0x1f')](this['endtime'],_0x324159[_0xa455('0x18')]);this[_0xa455('0x7')]=_0x324159[_0xa455('0x7')];this['membername']=_0xa455('0x20');this[_0xa455('0x21')]=_0x538b23[_0xa455('0x22')];this[_0xa455('0x23')]=_0x324159[_0xa455('0x23')];this[_0xa455('0x24')]=_0x324159['callbackuniqueid'];this['callbackat']=_0x324159[_0xa455('0x25')];this[_0xa455('0x26')]=_0x324159[_0xa455('0x26')];this[_0xa455('0x27')]=_0x324159[_0xa455('0x27')];this[_0xa455('0x28')]=_0x324159[_0xa455('0x28')];this[_0xa455('0x29')]=_0x324159[_0xa455('0x29')];this[_0xa455('0x2a')]=_0x324159[_0xa455('0x2a')];this[_0xa455('0x2b')]=_0x324159['CampaignId'];}module['exports']=Hangup;
\ No newline at end of file