Built motion from commit (unavailable).|2.0.74
[motion2.git] / server / services / ami / dialer / history.js
index 3770072..e4f06cf 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf373=['starttime','responsetime','endtime','ringtime','holdtime','talktime','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','exports','util','lodash','moment','milliseconds','diff','seconds','uniqueid','scheduledat','type','campaigntype','queue','countbusyretry','countcongestionretry','countnoanswerretry','calleridname','name','calleridnum'];(function(_0xb42239,_0x3b93b8){var _0x5ba924=function(_0x52cf29){while(--_0x52cf29){_0xb42239['push'](_0xb42239['shift']());}};_0x5ba924(++_0x3b93b8);}(_0xf373,0x1b6));var _0x3f37=function(_0x272bd6,_0x2b50b5){_0x272bd6=_0x272bd6-0x0;var _0x3f1c80=_0xf373[_0x272bd6];return _0x3f1c80;};'use strict';var util=require(_0x3f37('0x0'));var _=require(_0x3f37('0x1'));var moment=require(_0x3f37('0x2'));function getSeconds(_0x449082,_0x5228e6){var _0x9c1a1d=moment(_0x449082)[_0x3f37('0x3')](0x0);var _0x52c68b=moment(_0x5228e6)['milliseconds'](0x0);return _0x9c1a1d[_0x3f37('0x4')](_0x52c68b,_0x3f37('0x5'));}function History(_0xcd583d){this[_0x3f37('0x6')]=_0xcd583d[_0x3f37('0x6')];this[_0x3f37('0x7')]=_0xcd583d[_0x3f37('0x7')]||undefined;this[_0x3f37('0x8')]=_0xcd583d[_0x3f37('0x8')];this[_0x3f37('0x9')]=_0xcd583d[_0x3f37('0x8')]==='outbound'?_0x3f37('0xa'):_0xcd583d['type'];this[_0x3f37('0xb')]=_0xcd583d[_0x3f37('0xb')];this[_0x3f37('0xc')]=_0xcd583d[_0x3f37('0xc')];this[_0x3f37('0xd')]=_0xcd583d[_0x3f37('0xd')];this['countglobal']=_0xcd583d[_0x3f37('0xb')]+_0xcd583d['countcongestionretry']+_0xcd583d[_0x3f37('0xd')];this['queue']=_0xcd583d[_0x3f37('0xa')];this[_0x3f37('0xe')]=_0xcd583d[_0x3f37('0xf')];this[_0x3f37('0x10')]=_0xcd583d['number'];this[_0x3f37('0x11')]=_0xcd583d['starttime'];this[_0x3f37('0x12')]=_0xcd583d[_0x3f37('0x12')];this[_0x3f37('0x13')]=_0xcd583d['responsetime'];this[_0x3f37('0x14')]=getSeconds(_0xcd583d[_0x3f37('0x12')],_0xcd583d['starttime']);this[_0x3f37('0x15')]=0x0;this[_0x3f37('0x16')]=0x0;this[_0x3f37('0x17')]=_0xcd583d[_0x3f37('0x17')];this['callbackuniqueid']=_0xcd583d[_0x3f37('0x18')];this[_0x3f37('0x19')]=_0xcd583d[_0x3f37('0x19')];this['recallme']=_0xcd583d[_0x3f37('0x1a')];this[_0x3f37('0x1b')]=_0xcd583d['ContactId'];this[_0x3f37('0x1c')]=_0xcd583d[_0x3f37('0x1c')];this['UserId']=_0xcd583d[_0x3f37('0x1d')];this['VoiceQueueId']=_0xcd583d[_0x3f37('0x1e')];this[_0x3f37('0x1f')]=_0xcd583d[_0x3f37('0x1f')];this[_0x3f37('0x20')]=_0xcd583d[_0x3f37('0x20')]||'';this[_0x3f37('0x21')]=_0xcd583d[_0x3f37('0x21')]||'';}module[_0x3f37('0x22')]=History;
\ No newline at end of file
+var _0x52e1=['callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','exports','util','moment','milliseconds','diff','seconds','uniqueid','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','calleridname','name','starttime','responsetime','endtime','ringtime','holdtime','talktime','callback'];(function(_0x3af749,_0x342a60){var _0xe297d4=function(_0x4e74f3){while(--_0x4e74f3){_0x3af749['push'](_0x3af749['shift']());}};_0xe297d4(++_0x342a60);}(_0x52e1,0x1d2));var _0x152e=function(_0x16c314,_0x4bcd8e){_0x16c314=_0x16c314-0x0;var _0x1b0580=_0x52e1[_0x16c314];return _0x1b0580;};'use strict';var util=require(_0x152e('0x0'));var _=require('lodash');var moment=require(_0x152e('0x1'));function getSeconds(_0x403753,_0x3e9019){var _0x1ca279=moment(_0x403753)[_0x152e('0x2')](0x0);var _0xcb6a10=moment(_0x3e9019)['milliseconds'](0x0);return _0x1ca279[_0x152e('0x3')](_0xcb6a10,_0x152e('0x4'));}function History(_0x3d4b6a){this[_0x152e('0x5')]=_0x3d4b6a[_0x152e('0x5')];this[_0x152e('0x6')]=_0x3d4b6a[_0x152e('0x6')]||undefined;this[_0x152e('0x7')]=_0x3d4b6a[_0x152e('0x7')];this[_0x152e('0x8')]=_0x3d4b6a[_0x152e('0x7')]===_0x152e('0x9')?_0x152e('0xa'):_0x3d4b6a['type'];this['countbusyretry']=_0x3d4b6a[_0x152e('0xb')];this[_0x152e('0xc')]=_0x3d4b6a[_0x152e('0xc')];this[_0x152e('0xd')]=_0x3d4b6a[_0x152e('0xd')];this[_0x152e('0xe')]=_0x3d4b6a[_0x152e('0xb')]+_0x3d4b6a[_0x152e('0xc')]+_0x3d4b6a[_0x152e('0xd')];this[_0x152e('0xa')]=_0x3d4b6a[_0x152e('0xa')];this[_0x152e('0xf')]=_0x3d4b6a[_0x152e('0x10')];this['calleridnum']=_0x3d4b6a['number'];this[_0x152e('0x11')]=_0x3d4b6a[_0x152e('0x11')];this[_0x152e('0x12')]=_0x3d4b6a[_0x152e('0x12')];this[_0x152e('0x13')]=_0x3d4b6a[_0x152e('0x12')];this[_0x152e('0x14')]=getSeconds(_0x3d4b6a['responsetime'],_0x3d4b6a['starttime']);this[_0x152e('0x15')]=0x0;this[_0x152e('0x16')]=0x0;this[_0x152e('0x17')]=_0x3d4b6a[_0x152e('0x17')];this[_0x152e('0x18')]=_0x3d4b6a[_0x152e('0x18')];this[_0x152e('0x19')]=_0x3d4b6a['callbackat'];this['recallme']=_0x3d4b6a[_0x152e('0x1a')];this[_0x152e('0x1b')]=_0x3d4b6a[_0x152e('0x1b')];this[_0x152e('0x1c')]=_0x3d4b6a['ListId'];this[_0x152e('0x1d')]=_0x3d4b6a['UserId'];this[_0x152e('0x1e')]=_0x3d4b6a['VoiceQueueId'];this['CampaignId']=_0x3d4b6a[_0x152e('0x1f')];this['originatecalleridnum']=_0x3d4b6a[_0x152e('0x20')]||'';this[_0x152e('0x21')]=_0x3d4b6a[_0x152e('0x21')]||'';}module[_0x152e('0x22')]=History;
\ No newline at end of file