Built motion from commit (unavailable).|2.6.0
[motion2.git] / server / services / ami / dialer / history.js
index 8fbbc53..1d69aa8 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x12ee=['talktime','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','originatecalleridnum','originatecalleridname','exports','moment','milliseconds','uniqueid','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countmachineretry','countagentrejectretry','countabandonedretry','calleridname','name','number','starttime','endtime','responsetime','ringtime','holdtime'];(function(_0x1eb590,_0x348b6a){var _0x6a5e82=function(_0x2ddd7f){while(--_0x2ddd7f){_0x1eb590['push'](_0x1eb590['shift']());}};_0x6a5e82(++_0x348b6a);}(_0x12ee,0x1a3));var _0xe12e=function(_0x1d3ce8,_0x2775e4){_0x1d3ce8=_0x1d3ce8-0x0;var _0x483045=_0x12ee[_0x1d3ce8];return _0x483045;};'use strict';var util=require('util');var _=require('lodash');var moment=require(_0xe12e('0x0'));function getSeconds(_0x3b81b6,_0x51f285){var _0x38e227=moment(_0x3b81b6)[_0xe12e('0x1')](0x0);var _0x3d37db=moment(_0x51f285)[_0xe12e('0x1')](0x0);return _0x38e227['diff'](_0x3d37db,'seconds');}function History(_0x315f4a){this[_0xe12e('0x2')]=_0x315f4a[_0xe12e('0x2')];this[_0xe12e('0x3')]=_0x315f4a['scheduledat']||undefined;this[_0xe12e('0x4')]=_0x315f4a[_0xe12e('0x4')];this[_0xe12e('0x5')]=_0x315f4a[_0xe12e('0x4')]===_0xe12e('0x6')?_0xe12e('0x7'):_0x315f4a['type'];this[_0xe12e('0x8')]=_0x315f4a[_0xe12e('0x8')];this[_0xe12e('0x9')]=_0x315f4a[_0xe12e('0x9')];this['countnoanswerretry']=_0x315f4a[_0xe12e('0xa')];this[_0xe12e('0xb')]=_0x315f4a[_0xe12e('0x8')]+_0x315f4a[_0xe12e('0x9')]+_0x315f4a[_0xe12e('0xa')]+_0x315f4a[_0xe12e('0xc')]+_0x315f4a[_0xe12e('0xd')]+_0x315f4a['countabandonedretry']+_0x315f4a[_0xe12e('0xe')]+_0x315f4a[_0xe12e('0xf')];this[_0xe12e('0xc')]=_0x315f4a[_0xe12e('0xc')];this['countdropretry']=_0x315f4a[_0xe12e('0xd')];this[_0xe12e('0x10')]=_0x315f4a['countabandonedretry'];this[_0xe12e('0xe')]=_0x315f4a['countmachineretry'];this[_0xe12e('0xf')]=_0x315f4a[_0xe12e('0xf')];this['queue']=_0x315f4a['queue'];this[_0xe12e('0x11')]=_0x315f4a[_0xe12e('0x12')];this['calleridnum']=_0x315f4a[_0xe12e('0x13')];this[_0xe12e('0x14')]=_0x315f4a[_0xe12e('0x14')];this['responsetime']=_0x315f4a['responsetime'];this[_0xe12e('0x15')]=_0x315f4a[_0xe12e('0x16')];this[_0xe12e('0x17')]=getSeconds(_0x315f4a['responsetime'],_0x315f4a[_0xe12e('0x14')]);this[_0xe12e('0x18')]=0x0;this[_0xe12e('0x19')]=0x0;this[_0xe12e('0x1a')]=_0x315f4a[_0xe12e('0x1a')];this['callbackuniqueid']=_0x315f4a[_0xe12e('0x1b')];this[_0xe12e('0x1c')]=_0x315f4a[_0xe12e('0x1c')];this[_0xe12e('0x1d')]=_0x315f4a[_0xe12e('0x1d')];this[_0xe12e('0x1e')]=_0x315f4a[_0xe12e('0x1e')];this[_0xe12e('0x1f')]=_0x315f4a[_0xe12e('0x1f')];this[_0xe12e('0x20')]=_0x315f4a[_0xe12e('0x20')];this[_0xe12e('0x21')]=_0x315f4a[_0xe12e('0x21')];this['CampaignId']=_0x315f4a['CampaignId'];this[_0xe12e('0x22')]=_0x315f4a[_0xe12e('0x22')]||'';this[_0xe12e('0x23')]=_0x315f4a[_0xe12e('0x23')]||'';}module[_0xe12e('0x24')]=History;
\ No newline at end of file
+var _0xa2ae=['type','campaigntype','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','calleridname','name','number','starttime','responsetime','endtime','ringtime','holdtime','talktime','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridname','exports','util','lodash','milliseconds','diff','seconds','uniqueid','scheduledat'];(function(_0x2cde0a,_0x1f9695){var _0x260610=function(_0x179089){while(--_0x179089){_0x2cde0a['push'](_0x2cde0a['shift']());}};_0x260610(++_0x1f9695);}(_0xa2ae,0x95));var _0xea2a=function(_0x98459f,_0x4dfb55){_0x98459f=_0x98459f-0x0;var _0x128f94=_0xa2ae[_0x98459f];return _0x128f94;};'use strict';var util=require(_0xea2a('0x0'));var _=require(_0xea2a('0x1'));var moment=require('moment');function getSeconds(_0x8db3d7,_0x3f62e2){var _0x408dfb=moment(_0x8db3d7)[_0xea2a('0x2')](0x0);var _0x568b94=moment(_0x3f62e2)[_0xea2a('0x2')](0x0);return _0x408dfb[_0xea2a('0x3')](_0x568b94,_0xea2a('0x4'));}function History(_0x435f1d){this[_0xea2a('0x5')]=_0x435f1d[_0xea2a('0x5')];this[_0xea2a('0x6')]=_0x435f1d[_0xea2a('0x6')]||undefined;this[_0xea2a('0x7')]=_0x435f1d[_0xea2a('0x7')];this[_0xea2a('0x8')]=_0x435f1d[_0xea2a('0x7')]==='outbound'?_0xea2a('0x9'):_0x435f1d[_0xea2a('0x7')];this[_0xea2a('0xa')]=_0x435f1d[_0xea2a('0xa')];this[_0xea2a('0xb')]=_0x435f1d[_0xea2a('0xb')];this[_0xea2a('0xc')]=_0x435f1d[_0xea2a('0xc')];this[_0xea2a('0xd')]=_0x435f1d[_0xea2a('0xa')]+_0x435f1d['countcongestionretry']+_0x435f1d[_0xea2a('0xc')]+_0x435f1d[_0xea2a('0xe')]+_0x435f1d[_0xea2a('0xf')]+_0x435f1d[_0xea2a('0x10')]+_0x435f1d[_0xea2a('0x11')]+_0x435f1d[_0xea2a('0x12')];this[_0xea2a('0xe')]=_0x435f1d['countnosuchnumberretry'];this[_0xea2a('0xf')]=_0x435f1d['countdropretry'];this[_0xea2a('0x10')]=_0x435f1d['countabandonedretry'];this[_0xea2a('0x11')]=_0x435f1d[_0xea2a('0x11')];this['countagentrejectretry']=_0x435f1d[_0xea2a('0x12')];this[_0xea2a('0x9')]=_0x435f1d[_0xea2a('0x9')];this[_0xea2a('0x13')]=_0x435f1d[_0xea2a('0x14')];this['calleridnum']=_0x435f1d[_0xea2a('0x15')];this[_0xea2a('0x16')]=_0x435f1d[_0xea2a('0x16')];this[_0xea2a('0x17')]=_0x435f1d[_0xea2a('0x17')];this[_0xea2a('0x18')]=_0x435f1d[_0xea2a('0x17')];this[_0xea2a('0x19')]=getSeconds(_0x435f1d[_0xea2a('0x17')],_0x435f1d[_0xea2a('0x16')]);this[_0xea2a('0x1a')]=0x0;this[_0xea2a('0x1b')]=0x0;this[_0xea2a('0x1c')]=_0x435f1d[_0xea2a('0x1c')];this[_0xea2a('0x1d')]=_0x435f1d[_0xea2a('0x1d')];this[_0xea2a('0x1e')]=_0x435f1d[_0xea2a('0x1e')];this['recallme']=_0x435f1d[_0xea2a('0x1f')];this[_0xea2a('0x20')]=_0x435f1d['ContactId'];this['ListId']=_0x435f1d[_0xea2a('0x21')];this[_0xea2a('0x22')]=_0x435f1d[_0xea2a('0x22')];this[_0xea2a('0x23')]=_0x435f1d[_0xea2a('0x23')];this[_0xea2a('0x24')]=_0x435f1d[_0xea2a('0x24')];this['originatecalleridnum']=_0x435f1d['originatecalleridnum']||'';this[_0xea2a('0x25')]=_0x435f1d['originatecalleridname']||'';}module[_0xea2a('0x26')]=History;
\ No newline at end of file