Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / services / ami / dialer / models / hangup.js
index a954fc6..b197d0c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0ecf=['starttime','responsetime','endtime','YYYY-MM-DD\x20HH:mm:ss','ringtime','getSeconds','holdtime','talktime','membername','cause-txt','callback','callbackuniqueid','callbackat','recallme','ContactId','UserId','VoiceQueueId','CampaignId','exports','moment','state','statedesc','scheduledat','type','campaigntype','outbound','queue','amd','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countmachineretry','countagentrejectretry','countabandonedretry','uniqueid','calleridname','name','calleridnum','number'];(function(_0x43232f,_0x28535f){var _0x5827c2=function(_0x1d89e8){while(--_0x1d89e8){_0x43232f['push'](_0x43232f['shift']());}};_0x5827c2(++_0x28535f);}(_0x0ecf,0x10f));var _0xf0ec=function(_0xca0452,_0x131b53){_0xca0452=_0xca0452-0x0;var _0x3995cc=_0x0ecf[_0xca0452];return _0x3995cc;};'use strict';var moment=require(_0xf0ec('0x0'));var utils=require('../utils');function Hangup(_0x5d6680,_0x420759){this[_0xf0ec('0x1')]=0x4;this[_0xf0ec('0x2')]='Answer';this[_0xf0ec('0x3')]=_0x5d6680[_0xf0ec('0x3')];this[_0xf0ec('0x4')]=_0x5d6680['type'];this[_0xf0ec('0x5')]=_0x5d6680[_0xf0ec('0x4')]===_0xf0ec('0x6')?_0xf0ec('0x7'):_0x5d6680['type'];this[_0xf0ec('0x8')]=_0x5d6680['amd']||![];this[_0xf0ec('0x9')]=_0x5d6680[_0xf0ec('0x9')];this[_0xf0ec('0xa')]=_0x5d6680[_0xf0ec('0xa')];this[_0xf0ec('0xb')]=_0x5d6680[_0xf0ec('0xb')];this[_0xf0ec('0xc')]=_0x5d6680['countbusyretry']+_0x5d6680['countcongestionretry']+_0x5d6680[_0xf0ec('0xb')]+_0x5d6680[_0xf0ec('0xd')]+_0x5d6680[_0xf0ec('0xe')]+_0x5d6680['countabandonedretry']+_0x5d6680[_0xf0ec('0xf')]+_0x5d6680[_0xf0ec('0x10')];this['countnosuchnumberretry']=_0x5d6680[_0xf0ec('0xd')];this[_0xf0ec('0xe')]=_0x5d6680['countdropretry'];this['countabandonedretry']=_0x5d6680[_0xf0ec('0x11')];this['countmachineretry']=_0x5d6680[_0xf0ec('0xf')];this[_0xf0ec('0x10')]=_0x5d6680['countagentrejectretry'];this[_0xf0ec('0x12')]=_0x420759[_0xf0ec('0x12')];this[_0xf0ec('0x13')]=_0x5d6680[_0xf0ec('0x14')];this[_0xf0ec('0x15')]=_0x5d6680[_0xf0ec('0x16')];this[_0xf0ec('0x17')]=_0x5d6680['starttime'];this['responsetime']=_0x5d6680[_0xf0ec('0x18')];this[_0xf0ec('0x19')]=moment()['format'](_0xf0ec('0x1a'));this[_0xf0ec('0x1b')]=utils[_0xf0ec('0x1c')](_0x5d6680['responsetime'],_0x5d6680[_0xf0ec('0x17')]);this[_0xf0ec('0x1d')]=0x0;this[_0xf0ec('0x1e')]=utils['getSeconds'](this['endtime'],_0x5d6680['responsetime']);this[_0xf0ec('0x7')]=_0x5d6680[_0xf0ec('0x7')];this[_0xf0ec('0x1f')]='IVR';this['reason']=_0x420759[_0xf0ec('0x20')];this[_0xf0ec('0x21')]=_0x5d6680[_0xf0ec('0x21')];this['callbackuniqueid']=_0x5d6680[_0xf0ec('0x22')];this[_0xf0ec('0x23')]=_0x5d6680[_0xf0ec('0x23')];this['recallme']=_0x5d6680[_0xf0ec('0x24')];this[_0xf0ec('0x25')]=_0x5d6680[_0xf0ec('0x25')];this['ListId']=_0x5d6680['ListId'];this[_0xf0ec('0x26')]=_0x5d6680[_0xf0ec('0x26')];this[_0xf0ec('0x27')]=_0x5d6680[_0xf0ec('0x27')];this[_0xf0ec('0x28')]=_0x5d6680[_0xf0ec('0x28')];}module[_0xf0ec('0x29')]=Hangup;
\ No newline at end of file
+var _0xd544=['VoiceQueueId','CampaignId','exports','moment','../utils','state','statedesc','Answer','scheduledat','type','campaigntype','outbound','amd','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countmachineretry','countagentrejectretry','countabandonedretry','uniqueid','calleridname','name','number','starttime','responsetime','endtime','format','ringtime','getSeconds','holdtime','queue','IVR','reason','cause-txt','callback','callbackat','recallme','ListId','UserId'];(function(_0x4ceeac,_0x47286a){var _0x26307b=function(_0x212f91){while(--_0x212f91){_0x4ceeac['push'](_0x4ceeac['shift']());}};_0x26307b(++_0x47286a);}(_0xd544,0x19d));var _0x4d54=function(_0x1eb7ae,_0x1ce33c){_0x1eb7ae=_0x1eb7ae-0x0;var _0x4f54c9=_0xd544[_0x1eb7ae];return _0x4f54c9;};'use strict';var moment=require(_0x4d54('0x0'));var utils=require(_0x4d54('0x1'));function Hangup(_0x2a5ab7,_0x3b8baf){this[_0x4d54('0x2')]=0x4;this[_0x4d54('0x3')]=_0x4d54('0x4');this[_0x4d54('0x5')]=_0x2a5ab7[_0x4d54('0x5')];this[_0x4d54('0x6')]=_0x2a5ab7['type'];this[_0x4d54('0x7')]=_0x2a5ab7[_0x4d54('0x6')]===_0x4d54('0x8')?'queue':_0x2a5ab7[_0x4d54('0x6')];this[_0x4d54('0x9')]=_0x2a5ab7[_0x4d54('0x9')]||![];this[_0x4d54('0xa')]=_0x2a5ab7[_0x4d54('0xa')];this[_0x4d54('0xb')]=_0x2a5ab7[_0x4d54('0xb')];this[_0x4d54('0xc')]=_0x2a5ab7[_0x4d54('0xc')];this['countglobal']=_0x2a5ab7[_0x4d54('0xa')]+_0x2a5ab7[_0x4d54('0xb')]+_0x2a5ab7[_0x4d54('0xc')]+_0x2a5ab7[_0x4d54('0xd')]+_0x2a5ab7[_0x4d54('0xe')]+_0x2a5ab7['countabandonedretry']+_0x2a5ab7[_0x4d54('0xf')]+_0x2a5ab7[_0x4d54('0x10')];this['countnosuchnumberretry']=_0x2a5ab7[_0x4d54('0xd')];this[_0x4d54('0xe')]=_0x2a5ab7['countdropretry'];this['countabandonedretry']=_0x2a5ab7[_0x4d54('0x11')];this['countmachineretry']=_0x2a5ab7[_0x4d54('0xf')];this[_0x4d54('0x10')]=_0x2a5ab7[_0x4d54('0x10')];this['uniqueid']=_0x3b8baf[_0x4d54('0x12')];this[_0x4d54('0x13')]=_0x2a5ab7[_0x4d54('0x14')];this['calleridnum']=_0x2a5ab7[_0x4d54('0x15')];this[_0x4d54('0x16')]=_0x2a5ab7[_0x4d54('0x16')];this['responsetime']=_0x2a5ab7[_0x4d54('0x17')];this[_0x4d54('0x18')]=moment()[_0x4d54('0x19')]('YYYY-MM-DD\x20HH:mm:ss');this[_0x4d54('0x1a')]=utils[_0x4d54('0x1b')](_0x2a5ab7[_0x4d54('0x17')],_0x2a5ab7['starttime']);this[_0x4d54('0x1c')]=0x0;this['talktime']=utils['getSeconds'](this[_0x4d54('0x18')],_0x2a5ab7[_0x4d54('0x17')]);this[_0x4d54('0x1d')]=_0x2a5ab7['queue'];this['membername']=_0x4d54('0x1e');this[_0x4d54('0x1f')]=_0x3b8baf[_0x4d54('0x20')];this[_0x4d54('0x21')]=_0x2a5ab7['callback'];this['callbackuniqueid']=_0x2a5ab7['callbackuniqueid'];this[_0x4d54('0x22')]=_0x2a5ab7[_0x4d54('0x22')];this[_0x4d54('0x23')]=_0x2a5ab7[_0x4d54('0x23')];this['ContactId']=_0x2a5ab7['ContactId'];this[_0x4d54('0x24')]=_0x2a5ab7[_0x4d54('0x24')];this[_0x4d54('0x25')]=_0x2a5ab7[_0x4d54('0x25')];this[_0x4d54('0x26')]=_0x2a5ab7['VoiceQueueId'];this[_0x4d54('0x27')]=_0x2a5ab7[_0x4d54('0x27')];}module[_0x4d54('0x28')]=Hangup;
\ No newline at end of file