Built motion from commit (unavailable).|2.3.9
[motion2.git] / server / services / ami / dialer / history.js
index fa164f1..f831afc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1400=['originatecalleridname','exports','util','lodash','milliseconds','diff','seconds','uniqueid','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','calleridname','name','number','starttime','responsetime','endtime','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum'];(function(_0x2521b0,_0x57194c){var _0x2fa564=function(_0x1fe9cf){while(--_0x1fe9cf){_0x2521b0['push'](_0x2521b0['shift']());}};_0x2fa564(++_0x57194c);}(_0x1400,0x10a));var _0x0140=function(_0x27ca8c,_0x231aaa){_0x27ca8c=_0x27ca8c-0x0;var _0x4107b7=_0x1400[_0x27ca8c];return _0x4107b7;};'use strict';var util=require(_0x0140('0x0'));var _=require(_0x0140('0x1'));var moment=require('moment');function getSeconds(_0x598813,_0x4db269){var _0x3ae7b8=moment(_0x598813)['milliseconds'](0x0);var _0x4800b8=moment(_0x4db269)[_0x0140('0x2')](0x0);return _0x3ae7b8[_0x0140('0x3')](_0x4800b8,_0x0140('0x4'));}function History(_0x49956e){this[_0x0140('0x5')]=_0x49956e[_0x0140('0x5')];this['scheduledat']=_0x49956e[_0x0140('0x6')]||undefined;this[_0x0140('0x7')]=_0x49956e[_0x0140('0x7')];this[_0x0140('0x8')]=_0x49956e[_0x0140('0x7')]===_0x0140('0x9')?_0x0140('0xa'):_0x49956e['type'];this[_0x0140('0xb')]=_0x49956e['countbusyretry'];this[_0x0140('0xc')]=_0x49956e[_0x0140('0xc')];this[_0x0140('0xd')]=_0x49956e['countnoanswerretry'];this[_0x0140('0xe')]=_0x49956e['countbusyretry']+_0x49956e[_0x0140('0xc')]+_0x49956e[_0x0140('0xd')];this[_0x0140('0xa')]=_0x49956e['queue'];this[_0x0140('0xf')]=_0x49956e[_0x0140('0x10')];this['calleridnum']=_0x49956e[_0x0140('0x11')];this[_0x0140('0x12')]=_0x49956e[_0x0140('0x12')];this[_0x0140('0x13')]=_0x49956e['responsetime'];this[_0x0140('0x14')]=_0x49956e['responsetime'];this['ringtime']=getSeconds(_0x49956e['responsetime'],_0x49956e[_0x0140('0x12')]);this['holdtime']=0x0;this['talktime']=0x0;this[_0x0140('0x15')]=_0x49956e[_0x0140('0x15')];this[_0x0140('0x16')]=_0x49956e[_0x0140('0x16')];this[_0x0140('0x17')]=_0x49956e[_0x0140('0x17')];this[_0x0140('0x18')]=_0x49956e['recallme'];this[_0x0140('0x19')]=_0x49956e['ContactId'];this[_0x0140('0x1a')]=_0x49956e[_0x0140('0x1a')];this[_0x0140('0x1b')]=_0x49956e[_0x0140('0x1b')];this[_0x0140('0x1c')]=_0x49956e[_0x0140('0x1c')];this[_0x0140('0x1d')]=_0x49956e[_0x0140('0x1d')];this['originatecalleridnum']=_0x49956e[_0x0140('0x1e')]||'';this[_0x0140('0x1f')]=_0x49956e[_0x0140('0x1f')]||'';}module[_0x0140('0x20')]=History;
\ No newline at end of file
+var _0x411c=['lodash','moment','milliseconds','diff','seconds','uniqueid','scheduledat','type','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','name','calleridnum','starttime','responsetime','holdtime','talktime','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridname','exports','util'];(function(_0x30d877,_0x5e502e){var _0x3d0e35=function(_0x3f094c){while(--_0x3f094c){_0x30d877['push'](_0x30d877['shift']());}};_0x3d0e35(++_0x5e502e);}(_0x411c,0x7f));var _0xc411=function(_0x13cac1,_0x1dac14){_0x13cac1=_0x13cac1-0x0;var _0x79b12f=_0x411c[_0x13cac1];return _0x79b12f;};'use strict';var util=require(_0xc411('0x0'));var _=require(_0xc411('0x1'));var moment=require(_0xc411('0x2'));function getSeconds(_0x1150fa,_0x2c081b){var _0x3c18b8=moment(_0x1150fa)[_0xc411('0x3')](0x0);var _0x417820=moment(_0x2c081b)[_0xc411('0x3')](0x0);return _0x3c18b8[_0xc411('0x4')](_0x417820,_0xc411('0x5'));}function History(_0x59aa95){this[_0xc411('0x6')]=_0x59aa95['uniqueid'];this[_0xc411('0x7')]=_0x59aa95[_0xc411('0x7')]||undefined;this[_0xc411('0x8')]=_0x59aa95[_0xc411('0x8')];this['campaigntype']=_0x59aa95['type']===_0xc411('0x9')?_0xc411('0xa'):_0x59aa95['type'];this[_0xc411('0xb')]=_0x59aa95['countbusyretry'];this[_0xc411('0xc')]=_0x59aa95[_0xc411('0xc')];this['countnoanswerretry']=_0x59aa95[_0xc411('0xd')];this[_0xc411('0xe')]=_0x59aa95[_0xc411('0xb')]+_0x59aa95[_0xc411('0xc')]+_0x59aa95[_0xc411('0xd')];this[_0xc411('0xa')]=_0x59aa95['queue'];this['calleridname']=_0x59aa95[_0xc411('0xf')];this[_0xc411('0x10')]=_0x59aa95['number'];this[_0xc411('0x11')]=_0x59aa95[_0xc411('0x11')];this['responsetime']=_0x59aa95[_0xc411('0x12')];this['endtime']=_0x59aa95[_0xc411('0x12')];this['ringtime']=getSeconds(_0x59aa95[_0xc411('0x12')],_0x59aa95[_0xc411('0x11')]);this[_0xc411('0x13')]=0x0;this[_0xc411('0x14')]=0x0;this[_0xc411('0x15')]=_0x59aa95[_0xc411('0x15')];this[_0xc411('0x16')]=_0x59aa95[_0xc411('0x16')];this[_0xc411('0x17')]=_0x59aa95[_0xc411('0x17')];this['recallme']=_0x59aa95[_0xc411('0x18')];this['ContactId']=_0x59aa95[_0xc411('0x19')];this[_0xc411('0x1a')]=_0x59aa95[_0xc411('0x1a')];this[_0xc411('0x1b')]=_0x59aa95[_0xc411('0x1b')];this[_0xc411('0x1c')]=_0x59aa95[_0xc411('0x1c')];this[_0xc411('0x1d')]=_0x59aa95[_0xc411('0x1d')];this['originatecalleridnum']=_0x59aa95['originatecalleridnum']||'';this[_0xc411('0x1e')]=_0x59aa95[_0xc411('0x1e')]||'';}module[_0xc411('0x1f')]=History;
\ No newline at end of file