Built motion from commit (unavailable).|2.5.0
[motion2.git] / server / services / ami / dialer / history.js
index f5bd45c..168c94a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3368=['ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','util','moment','milliseconds','seconds','uniqueid','scheduledat','type','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countabandonedretry','countmachineretry','countagentrejectretry','countdropretry','calleridname','name','calleridnum','responsetime','ringtime','holdtime','callback','callbackuniqueid','callbackat','recallme'];(function(_0x18c4a8,_0x96c52e){var _0x189ff1=function(_0x4a3ea8){while(--_0x4a3ea8){_0x18c4a8['push'](_0x18c4a8['shift']());}};_0x189ff1(++_0x96c52e);}(_0x3368,0x19f));var _0x8336=function(_0x44a9fb,_0x5231f3){_0x44a9fb=_0x44a9fb-0x0;var _0x3b296e=_0x3368[_0x44a9fb];return _0x3b296e;};'use strict';var util=require(_0x8336('0x0'));var _=require('lodash');var moment=require(_0x8336('0x1'));function getSeconds(_0x4dba4d,_0x52e85b){var _0x5893e9=moment(_0x4dba4d)[_0x8336('0x2')](0x0);var _0x4a5fd3=moment(_0x52e85b)[_0x8336('0x2')](0x0);return _0x5893e9['diff'](_0x4a5fd3,_0x8336('0x3'));}function History(_0x1543df){this['uniqueid']=_0x1543df[_0x8336('0x4')];this[_0x8336('0x5')]=_0x1543df['scheduledat']||undefined;this['type']=_0x1543df[_0x8336('0x6')];this['campaigntype']=_0x1543df[_0x8336('0x6')]===_0x8336('0x7')?_0x8336('0x8'):_0x1543df[_0x8336('0x6')];this[_0x8336('0x9')]=_0x1543df[_0x8336('0x9')];this[_0x8336('0xa')]=_0x1543df['countcongestionretry'];this[_0x8336('0xb')]=_0x1543df['countnoanswerretry'];this['countglobal']=_0x1543df[_0x8336('0x9')]+_0x1543df[_0x8336('0xa')]+_0x1543df['countnoanswerretry']+_0x1543df[_0x8336('0xc')]+_0x1543df['countdropretry']+_0x1543df[_0x8336('0xd')]+_0x1543df[_0x8336('0xe')]+_0x1543df[_0x8336('0xf')];this[_0x8336('0xc')]=_0x1543df[_0x8336('0xc')];this[_0x8336('0x10')]=_0x1543df[_0x8336('0x10')];this[_0x8336('0xd')]=_0x1543df[_0x8336('0xd')];this[_0x8336('0xe')]=_0x1543df[_0x8336('0xe')];this[_0x8336('0xf')]=_0x1543df[_0x8336('0xf')];this[_0x8336('0x8')]=_0x1543df[_0x8336('0x8')];this[_0x8336('0x11')]=_0x1543df[_0x8336('0x12')];this[_0x8336('0x13')]=_0x1543df['number'];this['starttime']=_0x1543df['starttime'];this['responsetime']=_0x1543df['responsetime'];this['endtime']=_0x1543df[_0x8336('0x14')];this[_0x8336('0x15')]=getSeconds(_0x1543df['responsetime'],_0x1543df['starttime']);this[_0x8336('0x16')]=0x0;this['talktime']=0x0;this[_0x8336('0x17')]=_0x1543df[_0x8336('0x17')];this[_0x8336('0x18')]=_0x1543df[_0x8336('0x18')];this['callbackat']=_0x1543df[_0x8336('0x19')];this[_0x8336('0x1a')]=_0x1543df[_0x8336('0x1a')];this[_0x8336('0x1b')]=_0x1543df[_0x8336('0x1b')];this[_0x8336('0x1c')]=_0x1543df[_0x8336('0x1c')];this['UserId']=_0x1543df[_0x8336('0x1d')];this['VoiceQueueId']=_0x1543df[_0x8336('0x1e')];this['CampaignId']=_0x1543df[_0x8336('0x1f')];this[_0x8336('0x20')]=_0x1543df[_0x8336('0x20')]||'';this['originatecalleridname']=_0x1543df[_0x8336('0x21')]||'';}module['exports']=History;
\ No newline at end of file
+var _0x5c71=['ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','exports','util','lodash','moment','uniqueid','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countmachineretry','countabandonedretry','countagentrejectretry','name','calleridnum','number','starttime','responsetime','ringtime','talktime','callback','callbackuniqueid','callbackat','recallme'];(function(_0x56c407,_0x19b194){var _0x501820=function(_0x5764cf){while(--_0x5764cf){_0x56c407['push'](_0x56c407['shift']());}};_0x501820(++_0x19b194);}(_0x5c71,0x188));var _0x15c7=function(_0x36b444,_0x505b35){_0x36b444=_0x36b444-0x0;var _0x786323=_0x5c71[_0x36b444];return _0x786323;};'use strict';var util=require(_0x15c7('0x0'));var _=require(_0x15c7('0x1'));var moment=require(_0x15c7('0x2'));function getSeconds(_0x15984b,_0x3b701f){var _0x36ce39=moment(_0x15984b)['milliseconds'](0x0);var _0x1b470d=moment(_0x3b701f)['milliseconds'](0x0);return _0x36ce39['diff'](_0x1b470d,'seconds');}function History(_0x25cec1){this['uniqueid']=_0x25cec1[_0x15c7('0x3')];this[_0x15c7('0x4')]=_0x25cec1[_0x15c7('0x4')]||undefined;this[_0x15c7('0x5')]=_0x25cec1['type'];this[_0x15c7('0x6')]=_0x25cec1[_0x15c7('0x5')]===_0x15c7('0x7')?_0x15c7('0x8'):_0x25cec1[_0x15c7('0x5')];this[_0x15c7('0x9')]=_0x25cec1[_0x15c7('0x9')];this['countcongestionretry']=_0x25cec1['countcongestionretry'];this[_0x15c7('0xa')]=_0x25cec1[_0x15c7('0xa')];this[_0x15c7('0xb')]=_0x25cec1[_0x15c7('0x9')]+_0x25cec1['countcongestionretry']+_0x25cec1[_0x15c7('0xa')]+_0x25cec1[_0x15c7('0xc')]+_0x25cec1[_0x15c7('0xd')]+_0x25cec1['countabandonedretry']+_0x25cec1[_0x15c7('0xe')]+_0x25cec1['countagentrejectretry'];this[_0x15c7('0xc')]=_0x25cec1[_0x15c7('0xc')];this[_0x15c7('0xd')]=_0x25cec1['countdropretry'];this[_0x15c7('0xf')]=_0x25cec1[_0x15c7('0xf')];this[_0x15c7('0xe')]=_0x25cec1[_0x15c7('0xe')];this[_0x15c7('0x10')]=_0x25cec1[_0x15c7('0x10')];this[_0x15c7('0x8')]=_0x25cec1[_0x15c7('0x8')];this['calleridname']=_0x25cec1[_0x15c7('0x11')];this[_0x15c7('0x12')]=_0x25cec1[_0x15c7('0x13')];this['starttime']=_0x25cec1[_0x15c7('0x14')];this['responsetime']=_0x25cec1[_0x15c7('0x15')];this['endtime']=_0x25cec1[_0x15c7('0x15')];this[_0x15c7('0x16')]=getSeconds(_0x25cec1['responsetime'],_0x25cec1[_0x15c7('0x14')]);this['holdtime']=0x0;this[_0x15c7('0x17')]=0x0;this['callback']=_0x25cec1[_0x15c7('0x18')];this[_0x15c7('0x19')]=_0x25cec1[_0x15c7('0x19')];this[_0x15c7('0x1a')]=_0x25cec1['callbackat'];this[_0x15c7('0x1b')]=_0x25cec1[_0x15c7('0x1b')];this['ContactId']=_0x25cec1['ContactId'];this[_0x15c7('0x1c')]=_0x25cec1[_0x15c7('0x1c')];this['UserId']=_0x25cec1[_0x15c7('0x1d')];this[_0x15c7('0x1e')]=_0x25cec1[_0x15c7('0x1e')];this[_0x15c7('0x1f')]=_0x25cec1['CampaignId'];this[_0x15c7('0x20')]=_0x25cec1[_0x15c7('0x20')]||'';this[_0x15c7('0x21')]=_0x25cec1['originatecalleridname']||'';}module[_0x15c7('0x22')]=History;
\ No newline at end of file