Built motion from commit 4fa9d4a7.|2.6.31
[motion2.git] / server / services / ami / dialer / models / hangup.js
index d7041c2..91a2fae 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x753e=['responsetime','endtime','ringtime','holdtime','getSeconds','queue','cause-txt','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','CampaignId','exports','moment','../utils','state','statedesc','scheduledat','type','campaigntype','amd','countbusyretry','countcongestionretry','countnoanswerretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','calleridname','name','starttime'];(function(_0x1df25a,_0x2683f2){var _0xe11b8f=function(_0x3fbcc2){while(--_0x3fbcc2){_0x1df25a['push'](_0x1df25a['shift']());}};_0xe11b8f(++_0x2683f2);}(_0x753e,0xe2));var _0xe753=function(_0x45783c,_0x49c56d){_0x45783c=_0x45783c-0x0;var _0x1161da=_0x753e[_0x45783c];return _0x1161da;};'use strict';var moment=require(_0xe753('0x0'));var utils=require(_0xe753('0x1'));function Hangup(_0x7db5f1,_0x2c110c){this[_0xe753('0x2')]=0x4;this[_0xe753('0x3')]='Answer';this[_0xe753('0x4')]=_0x7db5f1[_0xe753('0x4')];this[_0xe753('0x5')]=_0x7db5f1[_0xe753('0x5')];this[_0xe753('0x6')]=_0x7db5f1[_0xe753('0x5')]==='outbound'?'queue':_0x7db5f1[_0xe753('0x5')];this[_0xe753('0x7')]=_0x7db5f1[_0xe753('0x7')]||![];this[_0xe753('0x8')]=_0x7db5f1[_0xe753('0x8')];this['countcongestionretry']=_0x7db5f1[_0xe753('0x9')];this[_0xe753('0xa')]=_0x7db5f1[_0xe753('0xa')];this['countglobal']=_0x7db5f1['countbusyretry']+_0x7db5f1['countcongestionretry']+_0x7db5f1[_0xe753('0xa')]+_0x7db5f1['countnosuchnumberretry']+_0x7db5f1[_0xe753('0xb')]+_0x7db5f1[_0xe753('0xc')]+_0x7db5f1[_0xe753('0xd')]+_0x7db5f1[_0xe753('0xe')];this['countnosuchnumberretry']=_0x7db5f1['countnosuchnumberretry'];this[_0xe753('0xb')]=_0x7db5f1[_0xe753('0xb')];this[_0xe753('0xc')]=_0x7db5f1[_0xe753('0xc')];this[_0xe753('0xd')]=_0x7db5f1[_0xe753('0xd')];this[_0xe753('0xe')]=_0x7db5f1['countagentrejectretry'];this[_0xe753('0xf')]=_0x2c110c[_0xe753('0xf')];this[_0xe753('0x10')]=_0x7db5f1[_0xe753('0x11')];this['calleridnum']=_0x7db5f1['number'];this[_0xe753('0x12')]=_0x7db5f1[_0xe753('0x12')];this[_0xe753('0x13')]=_0x7db5f1[_0xe753('0x13')];this[_0xe753('0x14')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');this[_0xe753('0x15')]=utils['getSeconds'](_0x7db5f1[_0xe753('0x13')],_0x7db5f1[_0xe753('0x12')]);this[_0xe753('0x16')]=0x0;this['talktime']=utils[_0xe753('0x17')](this[_0xe753('0x14')],_0x7db5f1[_0xe753('0x13')]);this[_0xe753('0x18')]=_0x7db5f1[_0xe753('0x18')];this['membername']='IVR';this['reason']=_0x2c110c[_0xe753('0x19')];this[_0xe753('0x1a')]=_0x7db5f1[_0xe753('0x1a')];this[_0xe753('0x1b')]=_0x7db5f1[_0xe753('0x1b')];this[_0xe753('0x1c')]=_0x7db5f1['callbackat'];this[_0xe753('0x1d')]=_0x7db5f1[_0xe753('0x1d')];this[_0xe753('0x1e')]=_0x7db5f1[_0xe753('0x1e')];this[_0xe753('0x1f')]=_0x7db5f1[_0xe753('0x1f')];this[_0xe753('0x20')]=_0x7db5f1[_0xe753('0x20')];this['VoiceQueueId']=_0x7db5f1['VoiceQueueId'];this[_0xe753('0x21')]=_0x7db5f1[_0xe753('0x21')];}module[_0xe753('0x22')]=Hangup;
\ No newline at end of file
+var _0x4280=['countabandonedretry','uniqueid','calleridname','name','calleridnum','number','starttime','responsetime','endtime','format','YYYY-MM-DD\x20HH:mm:ss','ringtime','getSeconds','holdtime','talktime','IVR','cause-txt','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','exports','statedesc','Answer','scheduledat','campaigntype','type','outbound','queue','amd','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countmachineretry','countagentrejectretry','countdropretry'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x4280,0x1e9));var _0x0428=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x4280[_0x3dd15e];return _0x231fd0;};'use strict';var moment=require('moment');var utils=require('../utils');function Hangup(_0x51251f,_0x42c540){this['state']=0x4;this[_0x0428('0x0')]=_0x0428('0x1');this['scheduledat']=_0x51251f[_0x0428('0x2')];this['type']=_0x51251f['type'];this[_0x0428('0x3')]=_0x51251f[_0x0428('0x4')]===_0x0428('0x5')?_0x0428('0x6'):_0x51251f[_0x0428('0x4')];this[_0x0428('0x7')]=_0x51251f[_0x0428('0x7')]||![];this[_0x0428('0x8')]=_0x51251f['countbusyretry'];this[_0x0428('0x9')]=_0x51251f['countcongestionretry'];this[_0x0428('0xa')]=_0x51251f[_0x0428('0xa')];this['countglobal']=_0x51251f[_0x0428('0x8')]+_0x51251f['countcongestionretry']+_0x51251f[_0x0428('0xa')]+_0x51251f[_0x0428('0xb')]+_0x51251f['countdropretry']+_0x51251f['countabandonedretry']+_0x51251f[_0x0428('0xc')]+_0x51251f[_0x0428('0xd')];this[_0x0428('0xb')]=_0x51251f[_0x0428('0xb')];this[_0x0428('0xe')]=_0x51251f[_0x0428('0xe')];this['countabandonedretry']=_0x51251f[_0x0428('0xf')];this[_0x0428('0xc')]=_0x51251f[_0x0428('0xc')];this[_0x0428('0xd')]=_0x51251f[_0x0428('0xd')];this[_0x0428('0x10')]=_0x42c540[_0x0428('0x10')];this[_0x0428('0x11')]=_0x51251f[_0x0428('0x12')];this[_0x0428('0x13')]=_0x51251f[_0x0428('0x14')];this['starttime']=_0x51251f[_0x0428('0x15')];this[_0x0428('0x16')]=_0x51251f[_0x0428('0x16')];this[_0x0428('0x17')]=moment()[_0x0428('0x18')](_0x0428('0x19'));this[_0x0428('0x1a')]=utils[_0x0428('0x1b')](_0x51251f[_0x0428('0x16')],_0x51251f[_0x0428('0x15')]);this[_0x0428('0x1c')]=0x0;this[_0x0428('0x1d')]=utils[_0x0428('0x1b')](this['endtime'],_0x51251f[_0x0428('0x16')]);this['queue']=_0x51251f[_0x0428('0x6')];this['membername']=_0x0428('0x1e');this['reason']=_0x42c540[_0x0428('0x1f')];this[_0x0428('0x20')]=_0x51251f['callback'];this[_0x0428('0x21')]=_0x51251f[_0x0428('0x21')];this['callbackat']=_0x51251f[_0x0428('0x22')];this[_0x0428('0x23')]=_0x51251f['recallme'];this['ContactId']=_0x51251f[_0x0428('0x24')];this[_0x0428('0x25')]=_0x51251f[_0x0428('0x25')];this[_0x0428('0x26')]=_0x51251f['UserId'];this[_0x0428('0x27')]=_0x51251f[_0x0428('0x27')];this[_0x0428('0x28')]=_0x51251f[_0x0428('0x28')];}module[_0x0428('0x29')]=Hangup;
\ No newline at end of file