Built motion from commit 25580385.|2.6.2
[motion2.git] / server / services / ami / rpc / memberReport.js
index d4e250f..da535f0 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x37c6=['exten','queue','accountcode','toNumber','CreateMemberReport','voiceDialReport','membername','starttime','endtime','seconds','outbound','dialstring','agent','uniqueid','moment','lodash','util','queuecallercompleteAt','queuecallerexitAt','lastAssignedTo','isNil','interface','format','TALKING','queuecallerleaveAt','diff','calleridnum'];(function(_0x445696,_0x57f21e){var _0x1e25ed=function(_0x18fe10){while(--_0x18fe10){_0x445696['push'](_0x445696['shift']());}};_0x1e25ed(++_0x57f21e);}(_0x37c6,0x11c));var _0x637c=function(_0x39dbfd,_0xb37ae2){_0x39dbfd=_0x39dbfd-0x0;var _0x42ad41=_0x37c6[_0x39dbfd];return _0x42ad41;};'use strict';var moment=require(_0x637c('0x0'));var _=require(_0x637c('0x1'));var util=require(_0x637c('0x2'));var client=require('../client');exports['voiceQueueReport']=function(_0xba79cf){var _0x58da91=_0xba79cf[_0x637c('0x3')]||_0xba79cf[_0x637c('0x4')];return client['Request']('CreateMemberReport',{'body':{'channel':'voice','membername':_0xba79cf[_0x637c('0x5')],'interface':_[_0x637c('0x6')](_0xba79cf[_0x637c('0x7')])?util[_0x637c('0x8')]('SIP/%s',_0xba79cf[_0x637c('0x5')]):_0xba79cf[_0x637c('0x7')],'type':_0x637c('0x9'),'enterAt':_0xba79cf[_0x637c('0xa')],'exitAt':_0x58da91,'duration':moment(_0x58da91)[_0x637c('0xb')](_0xba79cf[_0x637c('0xa')],'seconds'),'data1':'inbound','data2':_0xba79cf[_0x637c('0xc')],'data3':_0xba79cf[_0x637c('0xd')],'data4':null,'data5':_0xba79cf[_0x637c('0xe')],'role':'agent','internal':_0xba79cf[_0x637c('0xf')]?_[_0x637c('0x10')](_0xba79cf['accountcode']):undefined,'uniqueid':_0xba79cf['uniqueid']},'log':_0x637c('0x11')});};exports[_0x637c('0x12')]=function(_0x4fc1aa){return client['Request'](_0x637c('0x11'),{'body':{'channel':'voice','membername':_0x4fc1aa[_0x637c('0x13')],'interface':_0x4fc1aa[_0x637c('0x7')],'type':'TALKING','enterAt':_0x4fc1aa[_0x637c('0x14')],'exitAt':_0x4fc1aa[_0x637c('0x15')],'duration':moment(_0x4fc1aa[_0x637c('0x15')])[_0x637c('0xb')](_0x4fc1aa[_0x637c('0x14')],'seconds')>=0x0?moment(_0x4fc1aa[_0x637c('0x15')])[_0x637c('0xb')](_0x4fc1aa[_0x637c('0x14')],_0x637c('0x16')):null,'data1':_0x637c('0x17'),'data2':_0x4fc1aa[_0x637c('0xf')],'data3':_0x4fc1aa[_0x637c('0xd')],'data4':_0x4fc1aa[_0x637c('0x18')]||null,'role':_0x637c('0x19'),'internal':_0x4fc1aa['accountcode']?_['toNumber'](_0x4fc1aa[_0x637c('0xf')]):undefined,'uniqueid':_0x4fc1aa[_0x637c('0x1a')]},'log':_0x637c('0x11')});};
\ No newline at end of file
+var _0x129a=['moment','util','voiceQueueReport','voice','lastAssignedTo','isNil','interface','format','SIP/%s','TALKING','queuecallerleaveAt','diff','seconds','inbound','calleridnum','exten','agent','accountcode','toNumber','uniqueid','CreateMemberReport','voiceDialReport','Request','membername','endtime','starttime','dialstring'];(function(_0x1631d3,_0x577800){var _0x1ae1b4=function(_0xf427b3){while(--_0xf427b3){_0x1631d3['push'](_0x1631d3['shift']());}};_0x1ae1b4(++_0x577800);}(_0x129a,0x10e));var _0xa129=function(_0x82b6a0,_0x441d41){_0x82b6a0=_0x82b6a0-0x0;var _0xe78ca9=_0x129a[_0x82b6a0];return _0xe78ca9;};'use strict';var moment=require(_0xa129('0x0'));var _=require('lodash');var util=require(_0xa129('0x1'));var client=require('../client');exports[_0xa129('0x2')]=function(_0x1ae0a6){var _0x30c55e=_0x1ae0a6['queuecallercompleteAt']||_0x1ae0a6['queuecallerexitAt'];return client['Request']('CreateMemberReport',{'body':{'channel':_0xa129('0x3'),'membername':_0x1ae0a6[_0xa129('0x4')],'interface':_[_0xa129('0x5')](_0x1ae0a6[_0xa129('0x6')])?util[_0xa129('0x7')](_0xa129('0x8'),_0x1ae0a6[_0xa129('0x4')]):_0x1ae0a6[_0xa129('0x6')],'type':_0xa129('0x9'),'enterAt':_0x1ae0a6[_0xa129('0xa')],'exitAt':_0x30c55e,'duration':moment(_0x30c55e)[_0xa129('0xb')](_0x1ae0a6['queuecallerleaveAt'],_0xa129('0xc')),'data1':_0xa129('0xd'),'data2':_0x1ae0a6[_0xa129('0xe')],'data3':_0x1ae0a6[_0xa129('0xf')],'data4':null,'data5':_0x1ae0a6['queue'],'role':_0xa129('0x10'),'internal':_0x1ae0a6[_0xa129('0x11')]?_[_0xa129('0x12')](_0x1ae0a6['accountcode']):undefined,'uniqueid':_0x1ae0a6[_0xa129('0x13')]},'log':_0xa129('0x14')});};exports[_0xa129('0x15')]=function(_0x5d448a){return client[_0xa129('0x16')](_0xa129('0x14'),{'body':{'channel':'voice','membername':_0x5d448a[_0xa129('0x17')],'interface':_0x5d448a[_0xa129('0x6')],'type':_0xa129('0x9'),'enterAt':_0x5d448a['starttime'],'exitAt':_0x5d448a[_0xa129('0x18')],'duration':moment(_0x5d448a['endtime'])[_0xa129('0xb')](_0x5d448a[_0xa129('0x19')],'seconds')>=0x0?moment(_0x5d448a['endtime'])[_0xa129('0xb')](_0x5d448a[_0xa129('0x19')],'seconds'):null,'data1':'outbound','data2':_0x5d448a['accountcode'],'data3':_0x5d448a['exten'],'data4':_0x5d448a[_0xa129('0x1a')]||null,'role':_0xa129('0x10'),'internal':_0x5d448a[_0xa129('0x11')]?_['toNumber'](_0x5d448a['accountcode']):undefined,'uniqueid':_0x5d448a[_0xa129('0x13')]},'log':_0xa129('0x14')});};
\ No newline at end of file