Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / services / ami / rpc / memberReport.js
index 5d04d36..2d213a6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-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
+var _0xa938=['toNumber','CreateMemberReport','voice','membername','TALKING','starttime','endtime','diff','exten','dialstring','lodash','util','../client','voiceQueueReport','queuecallercompleteAt','queuecallerexitAt','Request','lastAssignedTo','isNil','interface','format','SIP/%s','seconds','inbound','calleridnum','queue','agent','accountcode'];(function(_0x54b062,_0x264bb5){var _0x255e41=function(_0x3c7e6f){while(--_0x3c7e6f){_0x54b062['push'](_0x54b062['shift']());}};_0x255e41(++_0x264bb5);}(_0xa938,0xce));var _0x8a93=function(_0xa3ec1,_0x3a3b34){_0xa3ec1=_0xa3ec1-0x0;var _0x1dc7a8=_0xa938[_0xa3ec1];return _0x1dc7a8;};'use strict';var moment=require('moment');var _=require(_0x8a93('0x0'));var util=require(_0x8a93('0x1'));var client=require(_0x8a93('0x2'));exports[_0x8a93('0x3')]=function(_0x4a219c){var _0x7bb93=_0x4a219c[_0x8a93('0x4')]||_0x4a219c[_0x8a93('0x5')];return client[_0x8a93('0x6')]('CreateMemberReport',{'body':{'channel':'voice','membername':_0x4a219c[_0x8a93('0x7')],'interface':_[_0x8a93('0x8')](_0x4a219c[_0x8a93('0x9')])?util[_0x8a93('0xa')](_0x8a93('0xb'),_0x4a219c[_0x8a93('0x7')]):_0x4a219c[_0x8a93('0x9')],'type':'TALKING','enterAt':_0x4a219c['queuecallerleaveAt'],'exitAt':_0x7bb93,'duration':moment(_0x7bb93)['diff'](_0x4a219c['queuecallerleaveAt'],_0x8a93('0xc')),'data1':_0x8a93('0xd'),'data2':_0x4a219c[_0x8a93('0xe')],'data3':_0x4a219c['exten'],'data4':null,'data5':_0x4a219c[_0x8a93('0xf')],'role':_0x8a93('0x10'),'internal':_0x4a219c[_0x8a93('0x11')]?_[_0x8a93('0x12')](_0x4a219c['accountcode']):undefined,'uniqueid':_0x4a219c['uniqueid']},'log':_0x8a93('0x13')});};exports['voiceDialReport']=function(_0x39f54b){return client[_0x8a93('0x6')](_0x8a93('0x13'),{'body':{'channel':_0x8a93('0x14'),'membername':_0x39f54b[_0x8a93('0x15')],'interface':_0x39f54b['interface'],'type':_0x8a93('0x16'),'enterAt':_0x39f54b[_0x8a93('0x17')],'exitAt':_0x39f54b[_0x8a93('0x18')],'duration':moment(_0x39f54b[_0x8a93('0x18')])[_0x8a93('0x19')](_0x39f54b[_0x8a93('0x17')],_0x8a93('0xc'))>=0x0?moment(_0x39f54b['endtime'])[_0x8a93('0x19')](_0x39f54b[_0x8a93('0x17')],'seconds'):null,'data1':'outbound','data2':_0x39f54b[_0x8a93('0x11')],'data3':_0x39f54b[_0x8a93('0x1a')],'data4':_0x39f54b[_0x8a93('0x1b')]||null,'role':'agent','internal':_0x39f54b[_0x8a93('0x11')]?_[_0x8a93('0x12')](_0x39f54b[_0x8a93('0x11')]):undefined,'uniqueid':_0x39f54b['uniqueid']},'log':'CreateMemberReport'});};
\ No newline at end of file