Built motion from commit (unavailable).|2.5.30
[motion2.git] / server / services / ami / dialer / hangup.js
index 0232574..04e0267 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5738=['moment','milliseconds','diff','seconds','state','statedesc','Answer','scheduledat','type','campaigntype','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','name','number','starttime','responsetime','endtime','format','YYYY-MM-DD\x20HH:mm:ss','holdtime','talktime','membername','IVR','reason','cause-txt','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','exports','util','lodash'];(function(_0x3fafa5,_0x4aae9c){var _0x33cd4c=function(_0x2beefa){while(--_0x2beefa){_0x3fafa5['push'](_0x3fafa5['shift']());}};_0x33cd4c(++_0x4aae9c);}(_0x5738,0x1ca));var _0x8573=function(_0x33c9f8,_0x5aedbb){_0x33c9f8=_0x33c9f8-0x0;var _0x2d7004=_0x5738[_0x33c9f8];return _0x2d7004;};'use strict';var util=require(_0x8573('0x0'));var _=require(_0x8573('0x1'));var moment=require(_0x8573('0x2'));function getSeconds(_0x3d1c4e,_0x5561b7){var _0x297c03=moment(_0x3d1c4e)[_0x8573('0x3')](0x0);var _0x4375db=moment(_0x5561b7)[_0x8573('0x3')](0x0);return _0x297c03[_0x8573('0x4')](_0x4375db,_0x8573('0x5'));}function Hangup(_0x331676,_0x35c240){this[_0x8573('0x6')]=0x4;this[_0x8573('0x7')]=_0x8573('0x8');this[_0x8573('0x9')]=_0x331676['scheduledat'];this[_0x8573('0xa')]=_0x331676[_0x8573('0xa')];this[_0x8573('0xb')]=_0x331676[_0x8573('0xa')]==='outbound'?_0x8573('0xc'):_0x331676[_0x8573('0xa')];this[_0x8573('0xd')]=_0x331676[_0x8573('0xd')];this[_0x8573('0xe')]=_0x331676[_0x8573('0xe')];this[_0x8573('0xf')]=_0x331676['countnoanswerretry'];this[_0x8573('0x10')]=_0x331676['countbusyretry']+_0x331676[_0x8573('0xe')]+_0x331676[_0x8573('0xf')]+_0x331676[_0x8573('0x11')]+_0x331676[_0x8573('0x12')]+_0x331676[_0x8573('0x13')]+_0x331676[_0x8573('0x14')]+_0x331676[_0x8573('0x15')];this['countnosuchnumberretry']=_0x331676['countnosuchnumberretry'];this[_0x8573('0x12')]=_0x331676[_0x8573('0x12')];this[_0x8573('0x13')]=_0x331676[_0x8573('0x13')];this[_0x8573('0x14')]=_0x331676[_0x8573('0x14')];this[_0x8573('0x15')]=_0x331676[_0x8573('0x15')];this[_0x8573('0x16')]=_0x35c240[_0x8573('0x16')];this['calleridname']=_0x331676[_0x8573('0x17')];this['calleridnum']=_0x331676[_0x8573('0x18')];this[_0x8573('0x19')]=_0x331676[_0x8573('0x19')];this[_0x8573('0x1a')]=_0x331676['responsetime'];this[_0x8573('0x1b')]=moment()[_0x8573('0x1c')](_0x8573('0x1d'));this['ringtime']=getSeconds(_0x331676[_0x8573('0x1a')],_0x331676['starttime']);this[_0x8573('0x1e')]=0x0;this[_0x8573('0x1f')]=getSeconds(this[_0x8573('0x1b')],_0x331676[_0x8573('0x1a')]);this[_0x8573('0xc')]=_0x331676[_0x8573('0xc')];this[_0x8573('0x20')]=_0x8573('0x21');this[_0x8573('0x22')]=_0x35c240[_0x8573('0x23')];this[_0x8573('0x24')]=_0x331676['callback'];this[_0x8573('0x25')]=_0x331676[_0x8573('0x25')];this['callbackat']=_0x331676[_0x8573('0x26')];this[_0x8573('0x27')]=_0x331676['recallme'];this[_0x8573('0x28')]=_0x331676['ContactId'];this[_0x8573('0x29')]=_0x331676['ListId'];this['UserId']=_0x331676[_0x8573('0x2a')];this[_0x8573('0x2b')]=_0x331676['VoiceQueueId'];this[_0x8573('0x2c')]=_0x331676[_0x8573('0x2c')];}module[_0x8573('0x2d')]=Hangup;
\ No newline at end of file
+var _0xc451=['uniqueid','calleridname','name','number','starttime','responsetime','endtime','holdtime','membername','IVR','cause-txt','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','util','lodash','moment','milliseconds','diff','state','Answer','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry'];(function(_0x30b19b,_0x3b2599){var _0xf0376a=function(_0x5c8e59){while(--_0x5c8e59){_0x30b19b['push'](_0x30b19b['shift']());}};_0xf0376a(++_0x3b2599);}(_0xc451,0x1d7));var _0x1c45=function(_0xebef87,_0x9fbe62){_0xebef87=_0xebef87-0x0;var _0x528994=_0xc451[_0xebef87];return _0x528994;};'use strict';var util=require(_0x1c45('0x0'));var _=require(_0x1c45('0x1'));var moment=require(_0x1c45('0x2'));function getSeconds(_0x117a6e,_0x5352ec){var _0x3f5736=moment(_0x117a6e)[_0x1c45('0x3')](0x0);var _0x5ba574=moment(_0x5352ec)['milliseconds'](0x0);return _0x3f5736[_0x1c45('0x4')](_0x5ba574,'seconds');}function Hangup(_0x516dc6,_0x24d4c5){this[_0x1c45('0x5')]=0x4;this['statedesc']=_0x1c45('0x6');this[_0x1c45('0x7')]=_0x516dc6[_0x1c45('0x7')];this[_0x1c45('0x8')]=_0x516dc6[_0x1c45('0x8')];this[_0x1c45('0x9')]=_0x516dc6[_0x1c45('0x8')]===_0x1c45('0xa')?_0x1c45('0xb'):_0x516dc6[_0x1c45('0x8')];this['countbusyretry']=_0x516dc6[_0x1c45('0xc')];this['countcongestionretry']=_0x516dc6[_0x1c45('0xd')];this[_0x1c45('0xe')]=_0x516dc6['countnoanswerretry'];this[_0x1c45('0xf')]=_0x516dc6[_0x1c45('0xc')]+_0x516dc6[_0x1c45('0xd')]+_0x516dc6[_0x1c45('0xe')]+_0x516dc6[_0x1c45('0x10')]+_0x516dc6[_0x1c45('0x11')]+_0x516dc6[_0x1c45('0x12')]+_0x516dc6[_0x1c45('0x13')]+_0x516dc6[_0x1c45('0x14')];this[_0x1c45('0x10')]=_0x516dc6['countnosuchnumberretry'];this[_0x1c45('0x11')]=_0x516dc6[_0x1c45('0x11')];this[_0x1c45('0x12')]=_0x516dc6[_0x1c45('0x12')];this[_0x1c45('0x13')]=_0x516dc6['countmachineretry'];this['countagentrejectretry']=_0x516dc6[_0x1c45('0x14')];this[_0x1c45('0x15')]=_0x24d4c5['uniqueid'];this[_0x1c45('0x16')]=_0x516dc6[_0x1c45('0x17')];this['calleridnum']=_0x516dc6[_0x1c45('0x18')];this[_0x1c45('0x19')]=_0x516dc6['starttime'];this[_0x1c45('0x1a')]=_0x516dc6[_0x1c45('0x1a')];this[_0x1c45('0x1b')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');this['ringtime']=getSeconds(_0x516dc6['responsetime'],_0x516dc6[_0x1c45('0x19')]);this[_0x1c45('0x1c')]=0x0;this['talktime']=getSeconds(this[_0x1c45('0x1b')],_0x516dc6['responsetime']);this[_0x1c45('0xb')]=_0x516dc6[_0x1c45('0xb')];this[_0x1c45('0x1d')]=_0x1c45('0x1e');this['reason']=_0x24d4c5[_0x1c45('0x1f')];this[_0x1c45('0x20')]=_0x516dc6['callback'];this[_0x1c45('0x21')]=_0x516dc6[_0x1c45('0x21')];this[_0x1c45('0x22')]=_0x516dc6['callbackat'];this['recallme']=_0x516dc6[_0x1c45('0x23')];this[_0x1c45('0x24')]=_0x516dc6[_0x1c45('0x24')];this[_0x1c45('0x25')]=_0x516dc6[_0x1c45('0x25')];this[_0x1c45('0x26')]=_0x516dc6[_0x1c45('0x26')];this[_0x1c45('0x27')]=_0x516dc6['VoiceQueueId'];this[_0x1c45('0x28')]=_0x516dc6[_0x1c45('0x28')];}module['exports']=Hangup;
\ No newline at end of file