Built motion from commit (unavailable).|2.5.22
[motion2.git] / server / services / ami / rpc / memberReport.js
index 61dcdb7..5d04d36 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x55fa=['moment','lodash','util','voiceQueueReport','queuecallercompleteAt','CreateMemberReport','voice','lastAssignedTo','isNil','format','SIP/%s','interface','diff','inbound','exten','agent','accountcode','uniqueid','voiceDialReport','Request','membername','TALKING','starttime','endtime','seconds','outbound','toNumber'];(function(_0x19488e,_0x20ae6b){var _0x255e3d=function(_0x1ca994){while(--_0x1ca994){_0x19488e['push'](_0x19488e['shift']());}};_0x255e3d(++_0x20ae6b);}(_0x55fa,0x87));var _0xa55f=function(_0x8a7e59,_0x5efa06){_0x8a7e59=_0x8a7e59-0x0;var _0x14d10a=_0x55fa[_0x8a7e59];return _0x14d10a;};'use strict';var moment=require(_0xa55f('0x0'));var _=require(_0xa55f('0x1'));var util=require(_0xa55f('0x2'));var client=require('../client');exports[_0xa55f('0x3')]=function(_0x59521e){var _0x25dcce=_0x59521e[_0xa55f('0x4')]||_0x59521e['queuecallerexitAt'];return client['Request'](_0xa55f('0x5'),{'body':{'channel':_0xa55f('0x6'),'membername':_0x59521e[_0xa55f('0x7')],'interface':_[_0xa55f('0x8')](_0x59521e['interface'])?util[_0xa55f('0x9')](_0xa55f('0xa'),_0x59521e[_0xa55f('0x7')]):_0x59521e[_0xa55f('0xb')],'type':'TALKING','enterAt':_0x59521e['queuecallerleaveAt'],'exitAt':_0x25dcce,'duration':moment(_0x25dcce)[_0xa55f('0xc')](_0x59521e['queuecallerleaveAt'],'seconds'),'data1':_0xa55f('0xd'),'data2':_0x59521e['calleridnum'],'data3':_0x59521e[_0xa55f('0xe')],'data4':null,'data5':_0x59521e['queue'],'role':_0xa55f('0xf'),'internal':_0x59521e[_0xa55f('0x10')]?_['toNumber'](_0x59521e[_0xa55f('0x10')]):undefined,'uniqueid':_0x59521e[_0xa55f('0x11')]},'log':'CreateMemberReport'});};exports[_0xa55f('0x12')]=function(_0x4a230a){return client[_0xa55f('0x13')](_0xa55f('0x5'),{'body':{'channel':'voice','membername':_0x4a230a[_0xa55f('0x14')],'interface':_0x4a230a[_0xa55f('0xb')],'type':_0xa55f('0x15'),'enterAt':_0x4a230a[_0xa55f('0x16')],'exitAt':_0x4a230a[_0xa55f('0x17')],'duration':moment(_0x4a230a[_0xa55f('0x17')])[_0xa55f('0xc')](_0x4a230a[_0xa55f('0x16')],_0xa55f('0x18'))>=0x0?moment(_0x4a230a[_0xa55f('0x17')])[_0xa55f('0xc')](_0x4a230a['starttime'],_0xa55f('0x18')):null,'data1':_0xa55f('0x19'),'data2':_0x4a230a[_0xa55f('0x10')],'data3':_0x4a230a[_0xa55f('0xe')],'data4':_0x4a230a['dialstring']||null,'role':_0xa55f('0xf'),'internal':_0x4a230a[_0xa55f('0x10')]?_[_0xa55f('0x1a')](_0x4a230a[_0xa55f('0x10')]):undefined,'uniqueid':_0x4a230a[_0xa55f('0x11')]},'log':_0xa55f('0x5')});};
\ No newline at end of file
+var _0x3c2e=['lastAssignedTo','interface','format','SIP/%s','queuecallerleaveAt','diff','seconds','inbound','agent','CreateMemberReport','Request','membername','TALKING','starttime','endtime','outbound','accountcode','exten','dialstring','toNumber','uniqueid','moment','lodash','../client','queuecallercompleteAt','voice'];(function(_0x25fd71,_0x493b52){var _0x15917d=function(_0x4337f6){while(--_0x4337f6){_0x25fd71['push'](_0x25fd71['shift']());}};_0x15917d(++_0x493b52);}(_0x3c2e,0x181));var _0xe3c2=function(_0x3c1d37,_0x289c46){_0x3c1d37=_0x3c1d37-0x0;var _0x10fe86=_0x3c2e[_0x3c1d37];return _0x10fe86;};'use strict';var moment=require(_0xe3c2('0x0'));var _=require(_0xe3c2('0x1'));var util=require('util');var client=require(_0xe3c2('0x2'));exports['voiceQueueReport']=function(_0x3b64bb){var _0x430e4e=_0x3b64bb[_0xe3c2('0x3')]||_0x3b64bb['queuecallerexitAt'];return client['Request']('CreateMemberReport',{'body':{'channel':_0xe3c2('0x4'),'membername':_0x3b64bb[_0xe3c2('0x5')],'interface':_['isNil'](_0x3b64bb[_0xe3c2('0x6')])?util[_0xe3c2('0x7')](_0xe3c2('0x8'),_0x3b64bb[_0xe3c2('0x5')]):_0x3b64bb[_0xe3c2('0x6')],'type':'TALKING','enterAt':_0x3b64bb[_0xe3c2('0x9')],'exitAt':_0x430e4e,'duration':moment(_0x430e4e)[_0xe3c2('0xa')](_0x3b64bb[_0xe3c2('0x9')],_0xe3c2('0xb')),'data1':_0xe3c2('0xc'),'data2':_0x3b64bb['calleridnum'],'data3':_0x3b64bb['exten'],'data4':null,'data5':_0x3b64bb['queue'],'role':_0xe3c2('0xd'),'internal':_0x3b64bb['accountcode']?_['toNumber'](_0x3b64bb['accountcode']):undefined,'uniqueid':_0x3b64bb['uniqueid']},'log':_0xe3c2('0xe')});};exports['voiceDialReport']=function(_0x9ebbce){return client[_0xe3c2('0xf')]('CreateMemberReport',{'body':{'channel':_0xe3c2('0x4'),'membername':_0x9ebbce[_0xe3c2('0x10')],'interface':_0x9ebbce[_0xe3c2('0x6')],'type':_0xe3c2('0x11'),'enterAt':_0x9ebbce[_0xe3c2('0x12')],'exitAt':_0x9ebbce['endtime'],'duration':moment(_0x9ebbce[_0xe3c2('0x13')])[_0xe3c2('0xa')](_0x9ebbce[_0xe3c2('0x12')],_0xe3c2('0xb'))>=0x0?moment(_0x9ebbce[_0xe3c2('0x13')])[_0xe3c2('0xa')](_0x9ebbce[_0xe3c2('0x12')],'seconds'):null,'data1':_0xe3c2('0x14'),'data2':_0x9ebbce[_0xe3c2('0x15')],'data3':_0x9ebbce[_0xe3c2('0x16')],'data4':_0x9ebbce[_0xe3c2('0x17')]||null,'role':_0xe3c2('0xd'),'internal':_0x9ebbce[_0xe3c2('0x15')]?_[_0xe3c2('0x18')](_0x9ebbce[_0xe3c2('0x15')]):undefined,'uniqueid':_0x9ebbce[_0xe3c2('0x19')]},'log':_0xe3c2('0xe')});};
\ No newline at end of file