Built motion from commit (unavailable).|2.5.22
[motion2.git] / server / services / ami / rpc / memberReport.js
index 5d04d36..e1939c6 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 _0x73ae=['TALKING','seconds','inbound','calleridnum','exten','accountcode','toNumber','uniqueid','voiceDialReport','starttime','endtime','diff','outbound','dialstring','moment','../client','voiceQueueReport','queuecallercompleteAt','queuecallerexitAt','Request','CreateMemberReport','voice','interface','SIP/%s','lastAssignedTo'];(function(_0x397e5f,_0x454c8f){var _0x5302b8=function(_0x1a29ef){while(--_0x1a29ef){_0x397e5f['push'](_0x397e5f['shift']());}};_0x5302b8(++_0x454c8f);}(_0x73ae,0x185));var _0xe73a=function(_0x187ee1,_0x3fd1e6){_0x187ee1=_0x187ee1-0x0;var _0x388160=_0x73ae[_0x187ee1];return _0x388160;};'use strict';var moment=require(_0xe73a('0x0'));var _=require('lodash');var util=require('util');var client=require(_0xe73a('0x1'));exports[_0xe73a('0x2')]=function(_0xb638ba){var _0x564e5c=_0xb638ba[_0xe73a('0x3')]||_0xb638ba[_0xe73a('0x4')];return client[_0xe73a('0x5')](_0xe73a('0x6'),{'body':{'channel':_0xe73a('0x7'),'membername':_0xb638ba['lastAssignedTo'],'interface':_['isNil'](_0xb638ba[_0xe73a('0x8')])?util['format'](_0xe73a('0x9'),_0xb638ba[_0xe73a('0xa')]):_0xb638ba[_0xe73a('0x8')],'type':_0xe73a('0xb'),'enterAt':_0xb638ba['queuecallerleaveAt'],'exitAt':_0x564e5c,'duration':moment(_0x564e5c)['diff'](_0xb638ba['queuecallerleaveAt'],_0xe73a('0xc')),'data1':_0xe73a('0xd'),'data2':_0xb638ba[_0xe73a('0xe')],'data3':_0xb638ba[_0xe73a('0xf')],'data4':null,'data5':_0xb638ba['queue'],'role':'agent','internal':_0xb638ba[_0xe73a('0x10')]?_[_0xe73a('0x11')](_0xb638ba[_0xe73a('0x10')]):undefined,'uniqueid':_0xb638ba[_0xe73a('0x12')]},'log':_0xe73a('0x6')});};exports[_0xe73a('0x13')]=function(_0x5836eb){return client[_0xe73a('0x5')]('CreateMemberReport',{'body':{'channel':_0xe73a('0x7'),'membername':_0x5836eb['membername'],'interface':_0x5836eb[_0xe73a('0x8')],'type':_0xe73a('0xb'),'enterAt':_0x5836eb[_0xe73a('0x14')],'exitAt':_0x5836eb[_0xe73a('0x15')],'duration':moment(_0x5836eb[_0xe73a('0x15')])[_0xe73a('0x16')](_0x5836eb[_0xe73a('0x14')],_0xe73a('0xc'))>=0x0?moment(_0x5836eb[_0xe73a('0x15')])['diff'](_0x5836eb[_0xe73a('0x14')],_0xe73a('0xc')):null,'data1':_0xe73a('0x17'),'data2':_0x5836eb['accountcode'],'data3':_0x5836eb['exten'],'data4':_0x5836eb[_0xe73a('0x18')]||null,'role':'agent','internal':_0x5836eb[_0xe73a('0x10')]?_[_0xe73a('0x11')](_0x5836eb['accountcode']):undefined,'uniqueid':_0x5836eb['uniqueid']},'log':'CreateMemberReport'});};
\ No newline at end of file