Built motion from commit 10af8726.|2.6.34
[motion2.git] / server / services / ami / rpc / memberReport.js
index f7da099..a186849 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4dfc=['seconds','inbound','exten','agent','accountcode','toNumber','uniqueid','Request','voice','starttime','endtime','dialstring','moment','lodash','util','../client','CreateMemberReport','isNil','interface','format','SIP/%s','TALKING','queuecallerleaveAt','diff'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x4dfc,0x84));var _0xc4df=function(_0x254d9f,_0x54ddb5){_0x254d9f=_0x254d9f-0x0;var _0x1eedb9=_0x4dfc[_0x254d9f];return _0x1eedb9;};'use strict';var moment=require(_0xc4df('0x0'));var _=require(_0xc4df('0x1'));var util=require(_0xc4df('0x2'));var client=require(_0xc4df('0x3'));exports['voiceQueueReport']=function(_0x38d931){var _0x4364fc=_0x38d931['queuecallercompleteAt']||_0x38d931['queuecallerexitAt'];return client['Request'](_0xc4df('0x4'),{'body':{'channel':'voice','membername':_0x38d931['lastAssignedTo'],'interface':_[_0xc4df('0x5')](_0x38d931[_0xc4df('0x6')])?util[_0xc4df('0x7')](_0xc4df('0x8'),_0x38d931['lastAssignedTo']):_0x38d931[_0xc4df('0x6')],'type':_0xc4df('0x9'),'enterAt':_0x38d931[_0xc4df('0xa')],'exitAt':_0x4364fc,'duration':moment(_0x4364fc)[_0xc4df('0xb')](_0x38d931['queuecallerleaveAt'],_0xc4df('0xc')),'data1':_0xc4df('0xd'),'data2':_0x38d931['calleridnum'],'data3':_0x38d931[_0xc4df('0xe')],'data4':null,'data5':_0x38d931['queue'],'role':_0xc4df('0xf'),'internal':_0x38d931[_0xc4df('0x10')]?_[_0xc4df('0x11')](_0x38d931[_0xc4df('0x10')]):undefined,'uniqueid':_0x38d931[_0xc4df('0x12')]},'log':_0xc4df('0x4')});};exports['voiceDialReport']=function(_0x3fd96b){return client[_0xc4df('0x13')](_0xc4df('0x4'),{'body':{'channel':_0xc4df('0x14'),'membername':_0x3fd96b['membername'],'interface':_0x3fd96b['interface'],'type':'TALKING','enterAt':_0x3fd96b[_0xc4df('0x15')],'exitAt':_0x3fd96b['endtime'],'duration':moment(_0x3fd96b[_0xc4df('0x16')])[_0xc4df('0xb')](_0x3fd96b[_0xc4df('0x15')],_0xc4df('0xc'))>=0x0?moment(_0x3fd96b[_0xc4df('0x16')])[_0xc4df('0xb')](_0x3fd96b[_0xc4df('0x15')],'seconds'):null,'data1':'outbound','data2':_0x3fd96b[_0xc4df('0x10')],'data3':_0x3fd96b['exten'],'data4':_0x3fd96b[_0xc4df('0x17')]||null,'role':_0xc4df('0xf'),'internal':_0x3fd96b['accountcode']?_[_0xc4df('0x11')](_0x3fd96b[_0xc4df('0x10')]):undefined,'uniqueid':_0x3fd96b[_0xc4df('0x12')]},'log':_0xc4df('0x4')});};
\ No newline at end of file
+var _0x9eab=['TALKING','seconds','calleridnum','queue','agent','accountcode','toNumber','uniqueid','voiceDialReport','Request','membername','starttime','endtime','diff','exten','moment','lodash','util','voiceQueueReport','queuecallercompleteAt','CreateMemberReport','voice','lastAssignedTo','isNil','interface','format','SIP/%s'];(function(_0x30505b,_0x3b6c06){var _0x4f7466=function(_0x1714fe){while(--_0x1714fe){_0x30505b['push'](_0x30505b['shift']());}};_0x4f7466(++_0x3b6c06);}(_0x9eab,0x16e));var _0xb9ea=function(_0x5cae8f,_0x2f89dd){_0x5cae8f=_0x5cae8f-0x0;var _0x214281=_0x9eab[_0x5cae8f];return _0x214281;};'use strict';var moment=require(_0xb9ea('0x0'));var _=require(_0xb9ea('0x1'));var util=require(_0xb9ea('0x2'));var client=require('../client');exports[_0xb9ea('0x3')]=function(_0x3af128){var _0x32246c=_0x3af128[_0xb9ea('0x4')]||_0x3af128['queuecallerexitAt'];return client['Request'](_0xb9ea('0x5'),{'body':{'channel':_0xb9ea('0x6'),'membername':_0x3af128[_0xb9ea('0x7')],'interface':_[_0xb9ea('0x8')](_0x3af128[_0xb9ea('0x9')])?util[_0xb9ea('0xa')](_0xb9ea('0xb'),_0x3af128['lastAssignedTo']):_0x3af128[_0xb9ea('0x9')],'type':_0xb9ea('0xc'),'enterAt':_0x3af128['queuecallerleaveAt'],'exitAt':_0x32246c,'duration':moment(_0x32246c)['diff'](_0x3af128['queuecallerleaveAt'],_0xb9ea('0xd')),'data1':'inbound','data2':_0x3af128[_0xb9ea('0xe')],'data3':_0x3af128['exten'],'data4':null,'data5':_0x3af128[_0xb9ea('0xf')],'role':_0xb9ea('0x10'),'internal':_0x3af128[_0xb9ea('0x11')]?_[_0xb9ea('0x12')](_0x3af128[_0xb9ea('0x11')]):undefined,'uniqueid':_0x3af128[_0xb9ea('0x13')]},'log':_0xb9ea('0x5')});};exports[_0xb9ea('0x14')]=function(_0x1befc7){return client[_0xb9ea('0x15')]('CreateMemberReport',{'body':{'channel':_0xb9ea('0x6'),'membername':_0x1befc7[_0xb9ea('0x16')],'interface':_0x1befc7[_0xb9ea('0x9')],'type':'TALKING','enterAt':_0x1befc7[_0xb9ea('0x17')],'exitAt':_0x1befc7[_0xb9ea('0x18')],'duration':moment(_0x1befc7[_0xb9ea('0x18')])['diff'](_0x1befc7[_0xb9ea('0x17')],_0xb9ea('0xd'))>=0x0?moment(_0x1befc7[_0xb9ea('0x18')])[_0xb9ea('0x19')](_0x1befc7[_0xb9ea('0x17')],_0xb9ea('0xd')):null,'data1':'outbound','data2':_0x1befc7[_0xb9ea('0x11')],'data3':_0x1befc7[_0xb9ea('0x1a')],'data4':_0x1befc7['dialstring']||null,'role':_0xb9ea('0x10'),'internal':_0x1befc7[_0xb9ea('0x11')]?_[_0xb9ea('0x12')](_0x1befc7[_0xb9ea('0x11')]):undefined,'uniqueid':_0x1befc7[_0xb9ea('0x13')]},'log':'CreateMemberReport'});};
\ No newline at end of file