Built motion from commit (unavailable).|2.5.0
[motion2.git] / server / services / ami / dialer / history.js
index 337f9c2..4a30ea9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4597=['originatecalleridnum','originatecalleridname','util','lodash','moment','milliseconds','diff','seconds','uniqueid','scheduledat','type','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','calleridname','number','responsetime','endtime','ringtime','starttime','holdtime','talktime','callback','callbackuniqueid','callbackat','recallme','ListId','VoiceQueueId','CampaignId'];(function(_0x1110db,_0xc82f49){var _0x5c9357=function(_0x137660){while(--_0x137660){_0x1110db['push'](_0x1110db['shift']());}};_0x5c9357(++_0xc82f49);}(_0x4597,0x1e3));var _0x7459=function(_0x27ee1c,_0x5d93b7){_0x27ee1c=_0x27ee1c-0x0;var _0x226db3=_0x4597[_0x27ee1c];return _0x226db3;};'use strict';var util=require(_0x7459('0x0'));var _=require(_0x7459('0x1'));var moment=require(_0x7459('0x2'));function getSeconds(_0x2f1d28,_0x473716){var _0x1e4801=moment(_0x2f1d28)['milliseconds'](0x0);var _0x41004c=moment(_0x473716)[_0x7459('0x3')](0x0);return _0x1e4801[_0x7459('0x4')](_0x41004c,_0x7459('0x5'));}function History(_0x23000b){this[_0x7459('0x6')]=_0x23000b[_0x7459('0x6')];this[_0x7459('0x7')]=_0x23000b['scheduledat']||undefined;this[_0x7459('0x8')]=_0x23000b[_0x7459('0x8')];this['campaigntype']=_0x23000b[_0x7459('0x8')]===_0x7459('0x9')?_0x7459('0xa'):_0x23000b['type'];this[_0x7459('0xb')]=_0x23000b['countbusyretry'];this[_0x7459('0xc')]=_0x23000b['countcongestionretry'];this[_0x7459('0xd')]=_0x23000b[_0x7459('0xd')];this[_0x7459('0xe')]=_0x23000b[_0x7459('0xb')]+_0x23000b[_0x7459('0xc')]+_0x23000b[_0x7459('0xd')]+_0x23000b[_0x7459('0xf')]+_0x23000b[_0x7459('0x10')]+_0x23000b[_0x7459('0x11')]+_0x23000b['countmachineretry']+_0x23000b['countagentrejectretry'];this[_0x7459('0xf')]=_0x23000b['countnosuchnumberretry'];this[_0x7459('0x10')]=_0x23000b['countdropretry'];this['countabandonedretry']=_0x23000b[_0x7459('0x11')];this[_0x7459('0x12')]=_0x23000b[_0x7459('0x12')];this[_0x7459('0x13')]=_0x23000b['countagentrejectretry'];this[_0x7459('0xa')]=_0x23000b[_0x7459('0xa')];this[_0x7459('0x14')]=_0x23000b['name'];this['calleridnum']=_0x23000b[_0x7459('0x15')];this['starttime']=_0x23000b['starttime'];this[_0x7459('0x16')]=_0x23000b[_0x7459('0x16')];this[_0x7459('0x17')]=_0x23000b[_0x7459('0x16')];this[_0x7459('0x18')]=getSeconds(_0x23000b['responsetime'],_0x23000b[_0x7459('0x19')]);this[_0x7459('0x1a')]=0x0;this[_0x7459('0x1b')]=0x0;this[_0x7459('0x1c')]=_0x23000b['callback'];this[_0x7459('0x1d')]=_0x23000b['callbackuniqueid'];this[_0x7459('0x1e')]=_0x23000b[_0x7459('0x1e')];this[_0x7459('0x1f')]=_0x23000b[_0x7459('0x1f')];this['ContactId']=_0x23000b['ContactId'];this['ListId']=_0x23000b[_0x7459('0x20')];this['UserId']=_0x23000b['UserId'];this[_0x7459('0x21')]=_0x23000b[_0x7459('0x21')];this[_0x7459('0x22')]=_0x23000b[_0x7459('0x22')];this[_0x7459('0x23')]=_0x23000b['originatecalleridnum']||'';this[_0x7459('0x24')]=_0x23000b[_0x7459('0x24')]||'';}module['exports']=History;
\ No newline at end of file
+var _0x63c4=['lodash','moment','milliseconds','seconds','uniqueid','scheduledat','type','campaigntype','queue','countbusyretry','countcongestionretry','countnoanswerretry','countabandonedretry','countmachineretry','countnosuchnumberretry','countagentrejectretry','calleridname','name','calleridnum','number','starttime','responsetime','holdtime','talktime','callback','callbackuniqueid','callbackat','recallme','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','util'];(function(_0x31aa78,_0x390f1c){var _0x5930e5=function(_0x4c684b){while(--_0x4c684b){_0x31aa78['push'](_0x31aa78['shift']());}};_0x5930e5(++_0x390f1c);}(_0x63c4,0x1c6));var _0x463c=function(_0x28e46f,_0x599926){_0x28e46f=_0x28e46f-0x0;var _0x405b3e=_0x63c4[_0x28e46f];return _0x405b3e;};'use strict';var util=require(_0x463c('0x0'));var _=require(_0x463c('0x1'));var moment=require(_0x463c('0x2'));function getSeconds(_0x1a4226,_0x7b26dd){var _0x37fc1e=moment(_0x1a4226)[_0x463c('0x3')](0x0);var _0x1d29dc=moment(_0x7b26dd)[_0x463c('0x3')](0x0);return _0x37fc1e['diff'](_0x1d29dc,_0x463c('0x4'));}function History(_0x2f5652){this[_0x463c('0x5')]=_0x2f5652[_0x463c('0x5')];this['scheduledat']=_0x2f5652[_0x463c('0x6')]||undefined;this[_0x463c('0x7')]=_0x2f5652[_0x463c('0x7')];this[_0x463c('0x8')]=_0x2f5652[_0x463c('0x7')]==='outbound'?_0x463c('0x9'):_0x2f5652[_0x463c('0x7')];this['countbusyretry']=_0x2f5652[_0x463c('0xa')];this[_0x463c('0xb')]=_0x2f5652[_0x463c('0xb')];this[_0x463c('0xc')]=_0x2f5652[_0x463c('0xc')];this['countglobal']=_0x2f5652[_0x463c('0xa')]+_0x2f5652[_0x463c('0xb')]+_0x2f5652['countnoanswerretry']+_0x2f5652['countnosuchnumberretry']+_0x2f5652['countdropretry']+_0x2f5652[_0x463c('0xd')]+_0x2f5652[_0x463c('0xe')]+_0x2f5652['countagentrejectretry'];this[_0x463c('0xf')]=_0x2f5652[_0x463c('0xf')];this['countdropretry']=_0x2f5652['countdropretry'];this['countabandonedretry']=_0x2f5652[_0x463c('0xd')];this[_0x463c('0xe')]=_0x2f5652[_0x463c('0xe')];this[_0x463c('0x10')]=_0x2f5652['countagentrejectretry'];this[_0x463c('0x9')]=_0x2f5652[_0x463c('0x9')];this[_0x463c('0x11')]=_0x2f5652[_0x463c('0x12')];this[_0x463c('0x13')]=_0x2f5652[_0x463c('0x14')];this[_0x463c('0x15')]=_0x2f5652[_0x463c('0x15')];this[_0x463c('0x16')]=_0x2f5652['responsetime'];this['endtime']=_0x2f5652[_0x463c('0x16')];this['ringtime']=getSeconds(_0x2f5652['responsetime'],_0x2f5652[_0x463c('0x15')]);this[_0x463c('0x17')]=0x0;this[_0x463c('0x18')]=0x0;this[_0x463c('0x19')]=_0x2f5652['callback'];this['callbackuniqueid']=_0x2f5652[_0x463c('0x1a')];this['callbackat']=_0x2f5652[_0x463c('0x1b')];this['recallme']=_0x2f5652[_0x463c('0x1c')];this['ContactId']=_0x2f5652['ContactId'];this[_0x463c('0x1d')]=_0x2f5652[_0x463c('0x1d')];this[_0x463c('0x1e')]=_0x2f5652['UserId'];this[_0x463c('0x1f')]=_0x2f5652[_0x463c('0x1f')];this[_0x463c('0x20')]=_0x2f5652['CampaignId'];this[_0x463c('0x21')]=_0x2f5652[_0x463c('0x21')]||'';this['originatecalleridname']=_0x2f5652[_0x463c('0x22')]||'';}module['exports']=History;
\ No newline at end of file