Built motion from commit 953226e6.|2.6.32
[motion2.git] / server / services / ami / rpc / memberReport.js
index 56106ba..ed7f2a2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x38f1=['seconds','calleridnum','exten','queue','accountcode','toNumber','uniqueid','voiceDialReport','Request','starttime','endtime','dialstring','moment','../client','voiceQueueReport','queuecallercompleteAt','CreateMemberReport','voice','lastAssignedTo','isNil','interface','SIP/%s','TALKING','queuecallerleaveAt','diff'];(function(_0x555acd,_0x41811b){var _0x102581=function(_0x2d8784){while(--_0x2d8784){_0x555acd['push'](_0x555acd['shift']());}};_0x102581(++_0x41811b);}(_0x38f1,0x11f));var _0x138f=function(_0x224f65,_0x4750bf){_0x224f65=_0x224f65-0x0;var _0x3f921c=_0x38f1[_0x224f65];return _0x3f921c;};'use strict';var moment=require(_0x138f('0x0'));var _=require('lodash');var util=require('util');var client=require(_0x138f('0x1'));exports[_0x138f('0x2')]=function(_0x1812c7){var _0x28a6e8=_0x1812c7[_0x138f('0x3')]||_0x1812c7['queuecallerexitAt'];return client['Request'](_0x138f('0x4'),{'body':{'channel':_0x138f('0x5'),'membername':_0x1812c7[_0x138f('0x6')],'interface':_[_0x138f('0x7')](_0x1812c7[_0x138f('0x8')])?util['format'](_0x138f('0x9'),_0x1812c7[_0x138f('0x6')]):_0x1812c7[_0x138f('0x8')],'type':_0x138f('0xa'),'enterAt':_0x1812c7[_0x138f('0xb')],'exitAt':_0x28a6e8,'duration':moment(_0x28a6e8)[_0x138f('0xc')](_0x1812c7[_0x138f('0xb')],_0x138f('0xd')),'data1':'inbound','data2':_0x1812c7[_0x138f('0xe')],'data3':_0x1812c7[_0x138f('0xf')],'data4':null,'data5':_0x1812c7[_0x138f('0x10')],'role':'agent','internal':_0x1812c7[_0x138f('0x11')]?_[_0x138f('0x12')](_0x1812c7['accountcode']):undefined,'uniqueid':_0x1812c7[_0x138f('0x13')]},'log':_0x138f('0x4')});};exports[_0x138f('0x14')]=function(_0x32208e){return client[_0x138f('0x15')](_0x138f('0x4'),{'body':{'channel':_0x138f('0x5'),'membername':_0x32208e['membername'],'interface':_0x32208e['interface'],'type':_0x138f('0xa'),'enterAt':_0x32208e[_0x138f('0x16')],'exitAt':_0x32208e[_0x138f('0x17')],'duration':moment(_0x32208e['endtime'])[_0x138f('0xc')](_0x32208e[_0x138f('0x16')],_0x138f('0xd'))>=0x0?moment(_0x32208e['endtime'])[_0x138f('0xc')](_0x32208e[_0x138f('0x16')],_0x138f('0xd')):null,'data1':'outbound','data2':_0x32208e[_0x138f('0x11')],'data3':_0x32208e[_0x138f('0xf')],'data4':_0x32208e[_0x138f('0x18')]||null,'role':'agent','internal':_0x32208e['accountcode']?_[_0x138f('0x12')](_0x32208e[_0x138f('0x11')]):undefined,'uniqueid':_0x32208e[_0x138f('0x13')]},'log':_0x138f('0x4')});};
\ No newline at end of file
+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