Built motion from commit b0a9a629.|2.6.33
[motion2.git] / server / services / ami / rpc / memberReport.js
index ed7f2a2..1b5d4d3 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x35ab=['agent','accountcode','toNumber','uniqueid','voiceDialReport','membername','starttime','endtime','moment','util','../client','queuecallercompleteAt','queuecallerexitAt','Request','CreateMemberReport','lastAssignedTo','interface','format','SIP/%s','TALKING','diff','queuecallerleaveAt','seconds','calleridnum','exten','queue'];(function(_0x336973,_0x45ab12){var _0x4f8c23=function(_0x4c2089){while(--_0x4c2089){_0x336973['push'](_0x336973['shift']());}};_0x4f8c23(++_0x45ab12);}(_0x35ab,0x10c));var _0xb35a=function(_0x3f78f0,_0x501872){_0x3f78f0=_0x3f78f0-0x0;var _0x53f3ca=_0x35ab[_0x3f78f0];return _0x53f3ca;};'use strict';var moment=require(_0xb35a('0x0'));var _=require('lodash');var util=require(_0xb35a('0x1'));var client=require(_0xb35a('0x2'));exports['voiceQueueReport']=function(_0x363cd5){var _0x1e1bf4=_0x363cd5[_0xb35a('0x3')]||_0x363cd5[_0xb35a('0x4')];return client[_0xb35a('0x5')](_0xb35a('0x6'),{'body':{'channel':'voice','membername':_0x363cd5[_0xb35a('0x7')],'interface':_['isNil'](_0x363cd5[_0xb35a('0x8')])?util[_0xb35a('0x9')](_0xb35a('0xa'),_0x363cd5[_0xb35a('0x7')]):_0x363cd5[_0xb35a('0x8')],'type':_0xb35a('0xb'),'enterAt':_0x363cd5['queuecallerleaveAt'],'exitAt':_0x1e1bf4,'duration':moment(_0x1e1bf4)[_0xb35a('0xc')](_0x363cd5[_0xb35a('0xd')],_0xb35a('0xe')),'data1':'inbound','data2':_0x363cd5[_0xb35a('0xf')],'data3':_0x363cd5[_0xb35a('0x10')],'data4':null,'data5':_0x363cd5[_0xb35a('0x11')],'role':_0xb35a('0x12'),'internal':_0x363cd5[_0xb35a('0x13')]?_[_0xb35a('0x14')](_0x363cd5[_0xb35a('0x13')]):undefined,'uniqueid':_0x363cd5[_0xb35a('0x15')]},'log':'CreateMemberReport'});};exports[_0xb35a('0x16')]=function(_0x1ebbd4){return client['Request'](_0xb35a('0x6'),{'body':{'channel':'voice','membername':_0x1ebbd4[_0xb35a('0x17')],'interface':_0x1ebbd4[_0xb35a('0x8')],'type':_0xb35a('0xb'),'enterAt':_0x1ebbd4[_0xb35a('0x18')],'exitAt':_0x1ebbd4['endtime'],'duration':moment(_0x1ebbd4['endtime'])['diff'](_0x1ebbd4[_0xb35a('0x18')],_0xb35a('0xe'))>=0x0?moment(_0x1ebbd4[_0xb35a('0x19')])[_0xb35a('0xc')](_0x1ebbd4[_0xb35a('0x18')],'seconds'):null,'data1':'outbound','data2':_0x1ebbd4[_0xb35a('0x13')],'data3':_0x1ebbd4[_0xb35a('0x10')],'data4':_0x1ebbd4['dialstring']||null,'role':'agent','internal':_0x1ebbd4[_0xb35a('0x13')]?_[_0xb35a('0x14')](_0x1ebbd4[_0xb35a('0x13')]):undefined,'uniqueid':_0x1ebbd4[_0xb35a('0x15')]},'log':_0xb35a('0x6')});};
\ No newline at end of file
+var _0xf760=['outbound','agent','lodash','util','../client','voiceQueueReport','queuecallercompleteAt','queuecallerexitAt','Request','voice','lastAssignedTo','isNil','interface','format','SIP/%s','TALKING','queuecallerleaveAt','seconds','inbound','exten','queue','accountcode','toNumber','uniqueid','CreateMemberReport','voiceDialReport','starttime','endtime','diff'];(function(_0x363349,_0x3cd05e){var _0x54a9b2=function(_0x4cabd1){while(--_0x4cabd1){_0x363349['push'](_0x363349['shift']());}};_0x54a9b2(++_0x3cd05e);}(_0xf760,0x1ef));var _0x0f76=function(_0x2b091c,_0xd0e130){_0x2b091c=_0x2b091c-0x0;var _0x54a3ab=_0xf760[_0x2b091c];return _0x54a3ab;};'use strict';var moment=require('moment');var _=require(_0x0f76('0x0'));var util=require(_0x0f76('0x1'));var client=require(_0x0f76('0x2'));exports[_0x0f76('0x3')]=function(_0x5028bc){var _0x1ab3e2=_0x5028bc[_0x0f76('0x4')]||_0x5028bc[_0x0f76('0x5')];return client[_0x0f76('0x6')]('CreateMemberReport',{'body':{'channel':_0x0f76('0x7'),'membername':_0x5028bc[_0x0f76('0x8')],'interface':_[_0x0f76('0x9')](_0x5028bc[_0x0f76('0xa')])?util[_0x0f76('0xb')](_0x0f76('0xc'),_0x5028bc['lastAssignedTo']):_0x5028bc[_0x0f76('0xa')],'type':_0x0f76('0xd'),'enterAt':_0x5028bc[_0x0f76('0xe')],'exitAt':_0x1ab3e2,'duration':moment(_0x1ab3e2)['diff'](_0x5028bc[_0x0f76('0xe')],_0x0f76('0xf')),'data1':_0x0f76('0x10'),'data2':_0x5028bc['calleridnum'],'data3':_0x5028bc[_0x0f76('0x11')],'data4':null,'data5':_0x5028bc[_0x0f76('0x12')],'role':'agent','internal':_0x5028bc[_0x0f76('0x13')]?_[_0x0f76('0x14')](_0x5028bc[_0x0f76('0x13')]):undefined,'uniqueid':_0x5028bc[_0x0f76('0x15')]},'log':_0x0f76('0x16')});};exports[_0x0f76('0x17')]=function(_0xc6ef7c){return client[_0x0f76('0x6')](_0x0f76('0x16'),{'body':{'channel':_0x0f76('0x7'),'membername':_0xc6ef7c['membername'],'interface':_0xc6ef7c['interface'],'type':_0x0f76('0xd'),'enterAt':_0xc6ef7c[_0x0f76('0x18')],'exitAt':_0xc6ef7c[_0x0f76('0x19')],'duration':moment(_0xc6ef7c['endtime'])[_0x0f76('0x1a')](_0xc6ef7c['starttime'],_0x0f76('0xf'))>=0x0?moment(_0xc6ef7c[_0x0f76('0x19')])[_0x0f76('0x1a')](_0xc6ef7c[_0x0f76('0x18')],_0x0f76('0xf')):null,'data1':_0x0f76('0x1b'),'data2':_0xc6ef7c[_0x0f76('0x13')],'data3':_0xc6ef7c['exten'],'data4':_0xc6ef7c['dialstring']||null,'role':_0x0f76('0x1c'),'internal':_0xc6ef7c['accountcode']?_[_0x0f76('0x14')](_0xc6ef7c[_0x0f76('0x13')]):undefined,'uniqueid':_0xc6ef7c['uniqueid']},'log':'CreateMemberReport'});};
\ No newline at end of file