Built motion from commit (unavailable).|2.4.4
[motion2.git] / server / services / ami / dialer / history.js
index 23674d1..fada2cc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x893f=['type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','calleridname','name','number','starttime','responsetime','endtime','ringtime','holdtime','talktime','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','CampaignId','originatecalleridnum','originatecalleridname','exports','util','lodash','milliseconds','diff','uniqueid','scheduledat'];(function(_0x5ccb57,_0x2a1c07){var _0x374644=function(_0x22de7d){while(--_0x22de7d){_0x5ccb57['push'](_0x5ccb57['shift']());}};_0x374644(++_0x2a1c07);}(_0x893f,0x1a7));var _0xf893=function(_0x5a19b0,_0x79ebfa){_0x5a19b0=_0x5a19b0-0x0;var _0x2051c4=_0x893f[_0x5a19b0];return _0x2051c4;};'use strict';var util=require(_0xf893('0x0'));var _=require(_0xf893('0x1'));var moment=require('moment');function getSeconds(_0x395f0a,_0x23ecce){var _0x4bc669=moment(_0x395f0a)[_0xf893('0x2')](0x0);var _0x270cc=moment(_0x23ecce)[_0xf893('0x2')](0x0);return _0x4bc669[_0xf893('0x3')](_0x270cc,'seconds');}function History(_0x2d95c1){this[_0xf893('0x4')]=_0x2d95c1[_0xf893('0x4')];this[_0xf893('0x5')]=_0x2d95c1[_0xf893('0x5')]||undefined;this[_0xf893('0x6')]=_0x2d95c1['type'];this[_0xf893('0x7')]=_0x2d95c1[_0xf893('0x6')]===_0xf893('0x8')?_0xf893('0x9'):_0x2d95c1[_0xf893('0x6')];this[_0xf893('0xa')]=_0x2d95c1[_0xf893('0xa')];this[_0xf893('0xb')]=_0x2d95c1['countcongestionretry'];this[_0xf893('0xc')]=_0x2d95c1[_0xf893('0xc')];this[_0xf893('0xd')]=_0x2d95c1[_0xf893('0xa')]+_0x2d95c1[_0xf893('0xb')]+_0x2d95c1[_0xf893('0xc')];this[_0xf893('0x9')]=_0x2d95c1[_0xf893('0x9')];this[_0xf893('0xe')]=_0x2d95c1[_0xf893('0xf')];this['calleridnum']=_0x2d95c1[_0xf893('0x10')];this[_0xf893('0x11')]=_0x2d95c1[_0xf893('0x11')];this[_0xf893('0x12')]=_0x2d95c1['responsetime'];this[_0xf893('0x13')]=_0x2d95c1[_0xf893('0x12')];this[_0xf893('0x14')]=getSeconds(_0x2d95c1['responsetime'],_0x2d95c1[_0xf893('0x11')]);this[_0xf893('0x15')]=0x0;this[_0xf893('0x16')]=0x0;this['callback']=_0x2d95c1['callback'];this['callbackuniqueid']=_0x2d95c1[_0xf893('0x17')];this[_0xf893('0x18')]=_0x2d95c1[_0xf893('0x18')];this[_0xf893('0x19')]=_0x2d95c1['recallme'];this[_0xf893('0x1a')]=_0x2d95c1['ContactId'];this[_0xf893('0x1b')]=_0x2d95c1[_0xf893('0x1b')];this[_0xf893('0x1c')]=_0x2d95c1[_0xf893('0x1c')];this['VoiceQueueId']=_0x2d95c1['VoiceQueueId'];this[_0xf893('0x1d')]=_0x2d95c1['CampaignId'];this[_0xf893('0x1e')]=_0x2d95c1['originatecalleridnum']||'';this[_0xf893('0x1f')]=_0x2d95c1['originatecalleridname']||'';}module[_0xf893('0x20')]=History;
\ No newline at end of file
+var _0xc01e=['outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','calleridname','name','calleridnum','number','starttime','responsetime','endtime','holdtime','talktime','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','exports','util','lodash','moment','milliseconds','diff','seconds','uniqueid','scheduledat','type','campaigntype'];(function(_0x1ce952,_0x41b2ef){var _0x3ff112=function(_0x3965ab){while(--_0x3965ab){_0x1ce952['push'](_0x1ce952['shift']());}};_0x3ff112(++_0x41b2ef);}(_0xc01e,0x18d));var _0xec01=function(_0x2ee321,_0x3f1d6f){_0x2ee321=_0x2ee321-0x0;var _0x106a2c=_0xc01e[_0x2ee321];return _0x106a2c;};'use strict';var util=require(_0xec01('0x0'));var _=require(_0xec01('0x1'));var moment=require(_0xec01('0x2'));function getSeconds(_0x40ae04,_0x3790ed){var _0x148325=moment(_0x40ae04)['milliseconds'](0x0);var _0x2e8c60=moment(_0x3790ed)[_0xec01('0x3')](0x0);return _0x148325[_0xec01('0x4')](_0x2e8c60,_0xec01('0x5'));}function History(_0x28d40e){this[_0xec01('0x6')]=_0x28d40e[_0xec01('0x6')];this['scheduledat']=_0x28d40e[_0xec01('0x7')]||undefined;this[_0xec01('0x8')]=_0x28d40e[_0xec01('0x8')];this[_0xec01('0x9')]=_0x28d40e[_0xec01('0x8')]===_0xec01('0xa')?_0xec01('0xb'):_0x28d40e[_0xec01('0x8')];this[_0xec01('0xc')]=_0x28d40e[_0xec01('0xc')];this[_0xec01('0xd')]=_0x28d40e['countcongestionretry'];this[_0xec01('0xe')]=_0x28d40e[_0xec01('0xe')];this[_0xec01('0xf')]=_0x28d40e['countbusyretry']+_0x28d40e[_0xec01('0xd')]+_0x28d40e[_0xec01('0xe')];this['queue']=_0x28d40e[_0xec01('0xb')];this[_0xec01('0x10')]=_0x28d40e[_0xec01('0x11')];this[_0xec01('0x12')]=_0x28d40e[_0xec01('0x13')];this[_0xec01('0x14')]=_0x28d40e[_0xec01('0x14')];this[_0xec01('0x15')]=_0x28d40e[_0xec01('0x15')];this[_0xec01('0x16')]=_0x28d40e[_0xec01('0x15')];this['ringtime']=getSeconds(_0x28d40e[_0xec01('0x15')],_0x28d40e[_0xec01('0x14')]);this[_0xec01('0x17')]=0x0;this[_0xec01('0x18')]=0x0;this[_0xec01('0x19')]=_0x28d40e[_0xec01('0x19')];this[_0xec01('0x1a')]=_0x28d40e[_0xec01('0x1a')];this['callbackat']=_0x28d40e[_0xec01('0x1b')];this[_0xec01('0x1c')]=_0x28d40e[_0xec01('0x1c')];this['ContactId']=_0x28d40e[_0xec01('0x1d')];this[_0xec01('0x1e')]=_0x28d40e['ListId'];this[_0xec01('0x1f')]=_0x28d40e[_0xec01('0x1f')];this[_0xec01('0x20')]=_0x28d40e[_0xec01('0x20')];this['CampaignId']=_0x28d40e[_0xec01('0x21')];this[_0xec01('0x22')]=_0x28d40e[_0xec01('0x22')]||'';this['originatecalleridname']=_0x28d40e[_0xec01('0x23')]||'';}module[_0xec01('0x24')]=History;
\ No newline at end of file