Built motion from commit (unavailable).|2.6.0
[motion2.git] / server / services / ami / dialer / hangup.js
index 78ec149..d358ef1 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xacd2=['calleridnum','number','starttime','responsetime','format','YYYY-MM-DD\x20HH:mm:ss','ringtime','holdtime','talktime','endtime','membername','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','exports','util','milliseconds','diff','seconds','state','statedesc','Answer','scheduledat','type','campaigntype','outbound','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','calleridname'];(function(_0x4a848a,_0x2e09e1){var _0x396f47=function(_0x51bd0a){while(--_0x51bd0a){_0x4a848a['push'](_0x4a848a['shift']());}};_0x396f47(++_0x2e09e1);}(_0xacd2,0x1ef));var _0x2acd=function(_0x4da63e,_0x2543f8){_0x4da63e=_0x4da63e-0x0;var _0x52d104=_0xacd2[_0x4da63e];return _0x52d104;};'use strict';var util=require(_0x2acd('0x0'));var _=require('lodash');var moment=require('moment');function getSeconds(_0x5506c8,_0x2f3109){var _0x34aebc=moment(_0x5506c8)[_0x2acd('0x1')](0x0);var _0xe949f8=moment(_0x2f3109)[_0x2acd('0x1')](0x0);return _0x34aebc[_0x2acd('0x2')](_0xe949f8,_0x2acd('0x3'));}function Hangup(_0x34eeb7,_0x3aebfe){this[_0x2acd('0x4')]=0x4;this[_0x2acd('0x5')]=_0x2acd('0x6');this[_0x2acd('0x7')]=_0x34eeb7[_0x2acd('0x7')];this[_0x2acd('0x8')]=_0x34eeb7[_0x2acd('0x8')];this[_0x2acd('0x9')]=_0x34eeb7['type']===_0x2acd('0xa')?'queue':_0x34eeb7[_0x2acd('0x8')];this[_0x2acd('0xb')]=_0x34eeb7['countbusyretry'];this[_0x2acd('0xc')]=_0x34eeb7[_0x2acd('0xc')];this['countnoanswerretry']=_0x34eeb7[_0x2acd('0xd')];this['countglobal']=_0x34eeb7['countbusyretry']+_0x34eeb7[_0x2acd('0xc')]+_0x34eeb7[_0x2acd('0xd')]+_0x34eeb7[_0x2acd('0xe')]+_0x34eeb7[_0x2acd('0xf')]+_0x34eeb7[_0x2acd('0x10')]+_0x34eeb7[_0x2acd('0x11')]+_0x34eeb7['countagentrejectretry'];this['countnosuchnumberretry']=_0x34eeb7[_0x2acd('0xe')];this[_0x2acd('0xf')]=_0x34eeb7['countdropretry'];this['countabandonedretry']=_0x34eeb7[_0x2acd('0x10')];this[_0x2acd('0x11')]=_0x34eeb7[_0x2acd('0x11')];this[_0x2acd('0x12')]=_0x34eeb7[_0x2acd('0x12')];this[_0x2acd('0x13')]=_0x3aebfe[_0x2acd('0x13')];this[_0x2acd('0x14')]=_0x34eeb7['name'];this[_0x2acd('0x15')]=_0x34eeb7[_0x2acd('0x16')];this[_0x2acd('0x17')]=_0x34eeb7['starttime'];this[_0x2acd('0x18')]=_0x34eeb7['responsetime'];this['endtime']=moment()[_0x2acd('0x19')](_0x2acd('0x1a'));this[_0x2acd('0x1b')]=getSeconds(_0x34eeb7[_0x2acd('0x18')],_0x34eeb7[_0x2acd('0x17')]);this[_0x2acd('0x1c')]=0x0;this[_0x2acd('0x1d')]=getSeconds(this[_0x2acd('0x1e')],_0x34eeb7[_0x2acd('0x18')]);this['queue']=_0x34eeb7['queue'];this[_0x2acd('0x1f')]='IVR';this[_0x2acd('0x20')]=_0x3aebfe['cause-txt'];this[_0x2acd('0x21')]=_0x34eeb7['callback'];this[_0x2acd('0x22')]=_0x34eeb7[_0x2acd('0x22')];this[_0x2acd('0x23')]=_0x34eeb7['callbackat'];this[_0x2acd('0x24')]=_0x34eeb7[_0x2acd('0x24')];this[_0x2acd('0x25')]=_0x34eeb7[_0x2acd('0x25')];this[_0x2acd('0x26')]=_0x34eeb7[_0x2acd('0x26')];this[_0x2acd('0x27')]=_0x34eeb7['UserId'];this[_0x2acd('0x28')]=_0x34eeb7[_0x2acd('0x28')];this[_0x2acd('0x29')]=_0x34eeb7[_0x2acd('0x29')];}module[_0x2acd('0x2a')]=Hangup;
\ No newline at end of file
+var _0x7f2b=['countcongestionretry','countnoanswerretry','countglobal','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','countnosuchnumberretry','uniqueid','name','calleridnum','number','starttime','responsetime','endtime','format','ringtime','holdtime','queue','membername','IVR','reason','cause-txt','callback','callbackuniqueid','callbackat','recallme','ContactId','UserId','VoiceQueueId','CampaignId','util','lodash','milliseconds','diff','seconds','state','statedesc','Answer','type','campaigntype','outbound','countbusyretry'];(function(_0x493050,_0x49ead2){var _0x1a555b=function(_0x4d7f16){while(--_0x4d7f16){_0x493050['push'](_0x493050['shift']());}};_0x1a555b(++_0x49ead2);}(_0x7f2b,0xcb));var _0xb7f2=function(_0x3b4f6b,_0x40904f){_0x3b4f6b=_0x3b4f6b-0x0;var _0x3448b8=_0x7f2b[_0x3b4f6b];return _0x3448b8;};'use strict';var util=require(_0xb7f2('0x0'));var _=require(_0xb7f2('0x1'));var moment=require('moment');function getSeconds(_0x4f1afe,_0x2817c6){var _0x566738=moment(_0x4f1afe)[_0xb7f2('0x2')](0x0);var _0x7c623d=moment(_0x2817c6)['milliseconds'](0x0);return _0x566738[_0xb7f2('0x3')](_0x7c623d,_0xb7f2('0x4'));}function Hangup(_0x31230f,_0x35e02c){this[_0xb7f2('0x5')]=0x4;this[_0xb7f2('0x6')]=_0xb7f2('0x7');this['scheduledat']=_0x31230f['scheduledat'];this[_0xb7f2('0x8')]=_0x31230f[_0xb7f2('0x8')];this[_0xb7f2('0x9')]=_0x31230f[_0xb7f2('0x8')]===_0xb7f2('0xa')?'queue':_0x31230f[_0xb7f2('0x8')];this[_0xb7f2('0xb')]=_0x31230f[_0xb7f2('0xb')];this[_0xb7f2('0xc')]=_0x31230f['countcongestionretry'];this['countnoanswerretry']=_0x31230f[_0xb7f2('0xd')];this[_0xb7f2('0xe')]=_0x31230f[_0xb7f2('0xb')]+_0x31230f[_0xb7f2('0xc')]+_0x31230f[_0xb7f2('0xd')]+_0x31230f['countnosuchnumberretry']+_0x31230f[_0xb7f2('0xf')]+_0x31230f[_0xb7f2('0x10')]+_0x31230f[_0xb7f2('0x11')]+_0x31230f[_0xb7f2('0x12')];this['countnosuchnumberretry']=_0x31230f[_0xb7f2('0x13')];this['countdropretry']=_0x31230f[_0xb7f2('0xf')];this[_0xb7f2('0x10')]=_0x31230f[_0xb7f2('0x10')];this[_0xb7f2('0x11')]=_0x31230f[_0xb7f2('0x11')];this[_0xb7f2('0x12')]=_0x31230f[_0xb7f2('0x12')];this[_0xb7f2('0x14')]=_0x35e02c[_0xb7f2('0x14')];this['calleridname']=_0x31230f[_0xb7f2('0x15')];this[_0xb7f2('0x16')]=_0x31230f[_0xb7f2('0x17')];this[_0xb7f2('0x18')]=_0x31230f['starttime'];this[_0xb7f2('0x19')]=_0x31230f[_0xb7f2('0x19')];this[_0xb7f2('0x1a')]=moment()[_0xb7f2('0x1b')]('YYYY-MM-DD\x20HH:mm:ss');this[_0xb7f2('0x1c')]=getSeconds(_0x31230f[_0xb7f2('0x19')],_0x31230f[_0xb7f2('0x18')]);this[_0xb7f2('0x1d')]=0x0;this['talktime']=getSeconds(this['endtime'],_0x31230f[_0xb7f2('0x19')]);this[_0xb7f2('0x1e')]=_0x31230f[_0xb7f2('0x1e')];this[_0xb7f2('0x1f')]=_0xb7f2('0x20');this[_0xb7f2('0x21')]=_0x35e02c[_0xb7f2('0x22')];this[_0xb7f2('0x23')]=_0x31230f[_0xb7f2('0x23')];this['callbackuniqueid']=_0x31230f[_0xb7f2('0x24')];this[_0xb7f2('0x25')]=_0x31230f[_0xb7f2('0x25')];this['recallme']=_0x31230f[_0xb7f2('0x26')];this[_0xb7f2('0x27')]=_0x31230f[_0xb7f2('0x27')];this['ListId']=_0x31230f['ListId'];this[_0xb7f2('0x28')]=_0x31230f[_0xb7f2('0x28')];this[_0xb7f2('0x29')]=_0x31230f['VoiceQueueId'];this[_0xb7f2('0x2a')]=_0x31230f[_0xb7f2('0x2a')];}module['exports']=Hangup;
\ No newline at end of file