Built motion from commit 43538d75.|2.5.35
[motion2.git] / server / services / ami / dialer / history.js
index 5dc0f26..af5fd37 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc200=['holdtime','talktime','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','exports','util','lodash','milliseconds','diff','uniqueid','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','calleridname','name','calleridnum','number','starttime','responsetime','endtime','ringtime'];(function(_0x2e7d01,_0x68e044){var _0x26efa9=function(_0x209952){while(--_0x209952){_0x2e7d01['push'](_0x2e7d01['shift']());}};_0x26efa9(++_0x68e044);}(_0xc200,0x19e));var _0x0c20=function(_0x27af45,_0x1b57aa){_0x27af45=_0x27af45-0x0;var _0x18df21=_0xc200[_0x27af45];return _0x18df21;};'use strict';var util=require(_0x0c20('0x0'));var _=require(_0x0c20('0x1'));var moment=require('moment');function getSeconds(_0x32ba20,_0x61fcd5){var _0x360aed=moment(_0x32ba20)[_0x0c20('0x2')](0x0);var _0x3dcf87=moment(_0x61fcd5)[_0x0c20('0x2')](0x0);return _0x360aed[_0x0c20('0x3')](_0x3dcf87,'seconds');}function History(_0x2fabac){this['uniqueid']=_0x2fabac[_0x0c20('0x4')];this['scheduledat']=_0x2fabac[_0x0c20('0x5')]||undefined;this[_0x0c20('0x6')]=_0x2fabac[_0x0c20('0x6')];this[_0x0c20('0x7')]=_0x2fabac[_0x0c20('0x6')]===_0x0c20('0x8')?_0x0c20('0x9'):_0x2fabac[_0x0c20('0x6')];this['countbusyretry']=_0x2fabac[_0x0c20('0xa')];this['countcongestionretry']=_0x2fabac['countcongestionretry'];this[_0x0c20('0xb')]=_0x2fabac[_0x0c20('0xb')];this[_0x0c20('0xc')]=_0x2fabac['countbusyretry']+_0x2fabac['countcongestionretry']+_0x2fabac[_0x0c20('0xb')]+_0x2fabac[_0x0c20('0xd')]+_0x2fabac[_0x0c20('0xe')]+_0x2fabac[_0x0c20('0xf')]+_0x2fabac[_0x0c20('0x10')]+_0x2fabac[_0x0c20('0x11')];this[_0x0c20('0xd')]=_0x2fabac[_0x0c20('0xd')];this[_0x0c20('0xe')]=_0x2fabac[_0x0c20('0xe')];this[_0x0c20('0xf')]=_0x2fabac[_0x0c20('0xf')];this[_0x0c20('0x10')]=_0x2fabac['countmachineretry'];this['countagentrejectretry']=_0x2fabac[_0x0c20('0x11')];this['queue']=_0x2fabac[_0x0c20('0x9')];this[_0x0c20('0x12')]=_0x2fabac[_0x0c20('0x13')];this[_0x0c20('0x14')]=_0x2fabac[_0x0c20('0x15')];this[_0x0c20('0x16')]=_0x2fabac[_0x0c20('0x16')];this[_0x0c20('0x17')]=_0x2fabac[_0x0c20('0x17')];this[_0x0c20('0x18')]=_0x2fabac[_0x0c20('0x17')];this[_0x0c20('0x19')]=getSeconds(_0x2fabac[_0x0c20('0x17')],_0x2fabac[_0x0c20('0x16')]);this[_0x0c20('0x1a')]=0x0;this[_0x0c20('0x1b')]=0x0;this[_0x0c20('0x1c')]=_0x2fabac['callback'];this['callbackuniqueid']=_0x2fabac[_0x0c20('0x1d')];this['callbackat']=_0x2fabac[_0x0c20('0x1e')];this[_0x0c20('0x1f')]=_0x2fabac[_0x0c20('0x1f')];this['ContactId']=_0x2fabac[_0x0c20('0x20')];this[_0x0c20('0x21')]=_0x2fabac[_0x0c20('0x21')];this[_0x0c20('0x22')]=_0x2fabac[_0x0c20('0x22')];this[_0x0c20('0x23')]=_0x2fabac[_0x0c20('0x23')];this[_0x0c20('0x24')]=_0x2fabac[_0x0c20('0x24')];this['originatecalleridnum']=_0x2fabac[_0x0c20('0x25')]||'';this[_0x0c20('0x26')]=_0x2fabac[_0x0c20('0x26')]||'';}module[_0x0c20('0x27')]=History;
\ No newline at end of file
+var _0x8a01=['type','campaigntype','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','countnosuchnumberretry','calleridname','name','calleridnum','number','starttime','responsetime','callback','callbackuniqueid','callbackat','recallme','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','exports','util','moment','milliseconds','seconds','uniqueid'];(function(_0x1ac595,_0x5d2081){var _0x455fff=function(_0x3043ee){while(--_0x3043ee){_0x1ac595['push'](_0x1ac595['shift']());}};_0x455fff(++_0x5d2081);}(_0x8a01,0xe9));var _0x18a0=function(_0x4866c5,_0x3e1670){_0x4866c5=_0x4866c5-0x0;var _0x4c2a3a=_0x8a01[_0x4866c5];return _0x4c2a3a;};'use strict';var util=require(_0x18a0('0x0'));var _=require('lodash');var moment=require(_0x18a0('0x1'));function getSeconds(_0x3307aa,_0x131e10){var _0x9dd8c0=moment(_0x3307aa)[_0x18a0('0x2')](0x0);var _0x570e82=moment(_0x131e10)[_0x18a0('0x2')](0x0);return _0x9dd8c0['diff'](_0x570e82,_0x18a0('0x3'));}function History(_0x483c02){this[_0x18a0('0x4')]=_0x483c02[_0x18a0('0x4')];this['scheduledat']=_0x483c02['scheduledat']||undefined;this[_0x18a0('0x5')]=_0x483c02[_0x18a0('0x5')];this[_0x18a0('0x6')]=_0x483c02['type']==='outbound'?_0x18a0('0x7'):_0x483c02[_0x18a0('0x5')];this['countbusyretry']=_0x483c02[_0x18a0('0x8')];this[_0x18a0('0x9')]=_0x483c02[_0x18a0('0x9')];this[_0x18a0('0xa')]=_0x483c02[_0x18a0('0xa')];this[_0x18a0('0xb')]=_0x483c02[_0x18a0('0x8')]+_0x483c02['countcongestionretry']+_0x483c02[_0x18a0('0xa')]+_0x483c02['countnosuchnumberretry']+_0x483c02[_0x18a0('0xc')]+_0x483c02[_0x18a0('0xd')]+_0x483c02[_0x18a0('0xe')]+_0x483c02[_0x18a0('0xf')];this[_0x18a0('0x10')]=_0x483c02[_0x18a0('0x10')];this[_0x18a0('0xc')]=_0x483c02['countdropretry'];this[_0x18a0('0xd')]=_0x483c02['countabandonedretry'];this[_0x18a0('0xe')]=_0x483c02[_0x18a0('0xe')];this['countagentrejectretry']=_0x483c02[_0x18a0('0xf')];this['queue']=_0x483c02[_0x18a0('0x7')];this[_0x18a0('0x11')]=_0x483c02[_0x18a0('0x12')];this[_0x18a0('0x13')]=_0x483c02[_0x18a0('0x14')];this[_0x18a0('0x15')]=_0x483c02['starttime'];this[_0x18a0('0x16')]=_0x483c02[_0x18a0('0x16')];this['endtime']=_0x483c02[_0x18a0('0x16')];this['ringtime']=getSeconds(_0x483c02[_0x18a0('0x16')],_0x483c02[_0x18a0('0x15')]);this['holdtime']=0x0;this['talktime']=0x0;this[_0x18a0('0x17')]=_0x483c02[_0x18a0('0x17')];this[_0x18a0('0x18')]=_0x483c02['callbackuniqueid'];this[_0x18a0('0x19')]=_0x483c02[_0x18a0('0x19')];this[_0x18a0('0x1a')]=_0x483c02[_0x18a0('0x1a')];this['ContactId']=_0x483c02['ContactId'];this[_0x18a0('0x1b')]=_0x483c02[_0x18a0('0x1b')];this[_0x18a0('0x1c')]=_0x483c02[_0x18a0('0x1c')];this[_0x18a0('0x1d')]=_0x483c02[_0x18a0('0x1d')];this['CampaignId']=_0x483c02[_0x18a0('0x1e')];this[_0x18a0('0x1f')]=_0x483c02['originatecalleridnum']||'';this[_0x18a0('0x20')]=_0x483c02[_0x18a0('0x20')]||'';}module[_0x18a0('0x21')]=History;
\ No newline at end of file