Built motion from commit 1ea47bf4.|2.6.34
[motion2.git] / server / services / ami / dialer / models / hangup.js
index bd01878..10dae2e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8508=['membername','IVR','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','moment','../utils','state','Answer','scheduledat','type','outbound','amd','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','countnosuchnumberretry','uniqueid','calleridname','name','number','starttime','responsetime','endtime','format','ringtime','getSeconds','holdtime','talktime','queue'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x8508,0x1b0));var _0x8850=function(_0x4c9602,_0x553667){_0x4c9602=_0x4c9602-0x0;var _0x524ddf=_0x8508[_0x4c9602];return _0x524ddf;};'use strict';var moment=require(_0x8850('0x0'));var utils=require(_0x8850('0x1'));function Hangup(_0x483ba7,_0x58517f){this[_0x8850('0x2')]=0x4;this['statedesc']=_0x8850('0x3');this['scheduledat']=_0x483ba7[_0x8850('0x4')];this[_0x8850('0x5')]=_0x483ba7[_0x8850('0x5')];this['campaigntype']=_0x483ba7['type']===_0x8850('0x6')?'queue':_0x483ba7[_0x8850('0x5')];this[_0x8850('0x7')]=_0x483ba7[_0x8850('0x7')]||![];this[_0x8850('0x8')]=_0x483ba7[_0x8850('0x8')];this[_0x8850('0x9')]=_0x483ba7['countcongestionretry'];this[_0x8850('0xa')]=_0x483ba7['countnoanswerretry'];this[_0x8850('0xb')]=_0x483ba7[_0x8850('0x8')]+_0x483ba7['countcongestionretry']+_0x483ba7[_0x8850('0xa')]+_0x483ba7['countnosuchnumberretry']+_0x483ba7[_0x8850('0xc')]+_0x483ba7[_0x8850('0xd')]+_0x483ba7[_0x8850('0xe')]+_0x483ba7[_0x8850('0xf')];this[_0x8850('0x10')]=_0x483ba7[_0x8850('0x10')];this['countdropretry']=_0x483ba7[_0x8850('0xc')];this['countabandonedretry']=_0x483ba7[_0x8850('0xd')];this[_0x8850('0xe')]=_0x483ba7[_0x8850('0xe')];this[_0x8850('0xf')]=_0x483ba7[_0x8850('0xf')];this['uniqueid']=_0x58517f[_0x8850('0x11')];this[_0x8850('0x12')]=_0x483ba7[_0x8850('0x13')];this['calleridnum']=_0x483ba7[_0x8850('0x14')];this[_0x8850('0x15')]=_0x483ba7[_0x8850('0x15')];this['responsetime']=_0x483ba7[_0x8850('0x16')];this[_0x8850('0x17')]=moment()[_0x8850('0x18')]('YYYY-MM-DD\x20HH:mm:ss');this[_0x8850('0x19')]=utils[_0x8850('0x1a')](_0x483ba7[_0x8850('0x16')],_0x483ba7[_0x8850('0x15')]);this[_0x8850('0x1b')]=0x0;this[_0x8850('0x1c')]=utils[_0x8850('0x1a')](this[_0x8850('0x17')],_0x483ba7[_0x8850('0x16')]);this[_0x8850('0x1d')]=_0x483ba7[_0x8850('0x1d')];this[_0x8850('0x1e')]=_0x8850('0x1f');this[_0x8850('0x20')]=_0x58517f['cause-txt'];this[_0x8850('0x21')]=_0x483ba7[_0x8850('0x21')];this[_0x8850('0x22')]=_0x483ba7[_0x8850('0x22')];this[_0x8850('0x23')]=_0x483ba7[_0x8850('0x23')];this[_0x8850('0x24')]=_0x483ba7[_0x8850('0x24')];this[_0x8850('0x25')]=_0x483ba7[_0x8850('0x25')];this[_0x8850('0x26')]=_0x483ba7[_0x8850('0x26')];this[_0x8850('0x27')]=_0x483ba7[_0x8850('0x27')];this[_0x8850('0x28')]=_0x483ba7['VoiceQueueId'];this[_0x8850('0x29')]=_0x483ba7[_0x8850('0x29')];}module['exports']=Hangup;
\ No newline at end of file
+var _0x7169=['name','calleridnum','number','starttime','responsetime','format','YYYY-MM-DD\x20HH:mm:ss','ringtime','getSeconds','holdtime','talktime','endtime','membername','IVR','reason','cause-txt','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','exports','moment','../utils','state','Answer','scheduledat','type','campaigntype','outbound','queue','amd','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','countnosuchnumberretry','calleridname'];(function(_0xabc4b3,_0x182ea1){var _0x33632c=function(_0x290027){while(--_0x290027){_0xabc4b3['push'](_0xabc4b3['shift']());}};_0x33632c(++_0x182ea1);}(_0x7169,0x100));var _0x9716=function(_0x1eda20,_0x1149f4){_0x1eda20=_0x1eda20-0x0;var _0x31b953=_0x7169[_0x1eda20];return _0x31b953;};'use strict';var moment=require(_0x9716('0x0'));var utils=require(_0x9716('0x1'));function Hangup(_0x288878,_0x49132f){this[_0x9716('0x2')]=0x4;this['statedesc']=_0x9716('0x3');this[_0x9716('0x4')]=_0x288878[_0x9716('0x4')];this[_0x9716('0x5')]=_0x288878[_0x9716('0x5')];this[_0x9716('0x6')]=_0x288878[_0x9716('0x5')]===_0x9716('0x7')?_0x9716('0x8'):_0x288878['type'];this[_0x9716('0x9')]=_0x288878[_0x9716('0x9')]||![];this[_0x9716('0xa')]=_0x288878['countbusyretry'];this[_0x9716('0xb')]=_0x288878['countcongestionretry'];this[_0x9716('0xc')]=_0x288878[_0x9716('0xc')];this[_0x9716('0xd')]=_0x288878['countbusyretry']+_0x288878[_0x9716('0xb')]+_0x288878[_0x9716('0xc')]+_0x288878['countnosuchnumberretry']+_0x288878[_0x9716('0xe')]+_0x288878[_0x9716('0xf')]+_0x288878[_0x9716('0x10')]+_0x288878[_0x9716('0x11')];this[_0x9716('0x12')]=_0x288878[_0x9716('0x12')];this[_0x9716('0xe')]=_0x288878[_0x9716('0xe')];this[_0x9716('0xf')]=_0x288878[_0x9716('0xf')];this[_0x9716('0x10')]=_0x288878[_0x9716('0x10')];this[_0x9716('0x11')]=_0x288878[_0x9716('0x11')];this['uniqueid']=_0x49132f['uniqueid'];this[_0x9716('0x13')]=_0x288878[_0x9716('0x14')];this[_0x9716('0x15')]=_0x288878[_0x9716('0x16')];this[_0x9716('0x17')]=_0x288878[_0x9716('0x17')];this[_0x9716('0x18')]=_0x288878['responsetime'];this['endtime']=moment()[_0x9716('0x19')](_0x9716('0x1a'));this[_0x9716('0x1b')]=utils[_0x9716('0x1c')](_0x288878[_0x9716('0x18')],_0x288878['starttime']);this[_0x9716('0x1d')]=0x0;this[_0x9716('0x1e')]=utils['getSeconds'](this[_0x9716('0x1f')],_0x288878[_0x9716('0x18')]);this['queue']=_0x288878[_0x9716('0x8')];this[_0x9716('0x20')]=_0x9716('0x21');this[_0x9716('0x22')]=_0x49132f[_0x9716('0x23')];this[_0x9716('0x24')]=_0x288878[_0x9716('0x24')];this[_0x9716('0x25')]=_0x288878[_0x9716('0x25')];this[_0x9716('0x26')]=_0x288878[_0x9716('0x26')];this[_0x9716('0x27')]=_0x288878[_0x9716('0x27')];this['ContactId']=_0x288878[_0x9716('0x28')];this[_0x9716('0x29')]=_0x288878[_0x9716('0x29')];this['UserId']=_0x288878[_0x9716('0x2a')];this['VoiceQueueId']=_0x288878[_0x9716('0x2b')];this[_0x9716('0x2c')]=_0x288878[_0x9716('0x2c')];}module[_0x9716('0x2d')]=Hangup;
\ No newline at end of file