Built motion from commit (unavailable).|2.5.27
[motion2.git] / server / services / ami / rpc / memberReport.js
index cf9b6b8..3e2541b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x688f=['agent','accountcode','toNumber','uniqueid','voiceDialReport','Request','membername','starttime','endtime','seconds','outbound','dialstring','lodash','util','../client','queuecallercompleteAt','CreateMemberReport','voice','lastAssignedTo','isNil','interface','format','SIP/%s','TALKING','diff','queuecallerleaveAt','inbound','calleridnum','exten','queue'];(function(_0x175c40,_0x37f161){var _0x3feac9=function(_0x4016da){while(--_0x4016da){_0x175c40['push'](_0x175c40['shift']());}};_0x3feac9(++_0x37f161);}(_0x688f,0xc0));var _0xf688=function(_0x2641f9,_0x26715f){_0x2641f9=_0x2641f9-0x0;var _0x585741=_0x688f[_0x2641f9];return _0x585741;};'use strict';var moment=require('moment');var _=require(_0xf688('0x0'));var util=require(_0xf688('0x1'));var client=require(_0xf688('0x2'));exports['voiceQueueReport']=function(_0x9c3829){var _0x36ddbb=_0x9c3829[_0xf688('0x3')]||_0x9c3829['queuecallerexitAt'];return client['Request'](_0xf688('0x4'),{'body':{'channel':_0xf688('0x5'),'membername':_0x9c3829[_0xf688('0x6')],'interface':_[_0xf688('0x7')](_0x9c3829[_0xf688('0x8')])?util[_0xf688('0x9')](_0xf688('0xa'),_0x9c3829[_0xf688('0x6')]):_0x9c3829['interface'],'type':_0xf688('0xb'),'enterAt':_0x9c3829['queuecallerleaveAt'],'exitAt':_0x36ddbb,'duration':moment(_0x36ddbb)[_0xf688('0xc')](_0x9c3829[_0xf688('0xd')],'seconds'),'data1':_0xf688('0xe'),'data2':_0x9c3829[_0xf688('0xf')],'data3':_0x9c3829[_0xf688('0x10')],'data4':null,'data5':_0x9c3829[_0xf688('0x11')],'role':_0xf688('0x12'),'internal':_0x9c3829[_0xf688('0x13')]?_[_0xf688('0x14')](_0x9c3829[_0xf688('0x13')]):undefined,'uniqueid':_0x9c3829[_0xf688('0x15')]},'log':_0xf688('0x4')});};exports[_0xf688('0x16')]=function(_0x3e3027){return client[_0xf688('0x17')]('CreateMemberReport',{'body':{'channel':_0xf688('0x5'),'membername':_0x3e3027[_0xf688('0x18')],'interface':_0x3e3027[_0xf688('0x8')],'type':'TALKING','enterAt':_0x3e3027[_0xf688('0x19')],'exitAt':_0x3e3027[_0xf688('0x1a')],'duration':moment(_0x3e3027[_0xf688('0x1a')])[_0xf688('0xc')](_0x3e3027[_0xf688('0x19')],_0xf688('0x1b'))>=0x0?moment(_0x3e3027[_0xf688('0x1a')])[_0xf688('0xc')](_0x3e3027[_0xf688('0x19')],_0xf688('0x1b')):null,'data1':_0xf688('0x1c'),'data2':_0x3e3027['accountcode'],'data3':_0x3e3027[_0xf688('0x10')],'data4':_0x3e3027[_0xf688('0x1d')]||null,'role':_0xf688('0x12'),'internal':_0x3e3027[_0xf688('0x13')]?_[_0xf688('0x14')](_0x3e3027[_0xf688('0x13')]):undefined,'uniqueid':_0x3e3027['uniqueid']},'log':_0xf688('0x4')});};
\ No newline at end of file
+var _0xfe17=['membername','TALKING','starttime','endtime','seconds','outbound','dialstring','lodash','util','queuecallercompleteAt','Request','CreateMemberReport','voice','lastAssignedTo','isNil','interface','format','queuecallerleaveAt','diff','inbound','queue','agent','accountcode','toNumber','uniqueid','voiceDialReport'];(function(_0x5535f7,_0x16e16c){var _0x4c5ffe=function(_0x5688ab){while(--_0x5688ab){_0x5535f7['push'](_0x5535f7['shift']());}};_0x4c5ffe(++_0x16e16c);}(_0xfe17,0x1c1));var _0x7fe1=function(_0x23da17,_0x4b2aff){_0x23da17=_0x23da17-0x0;var _0x1ea689=_0xfe17[_0x23da17];return _0x1ea689;};'use strict';var moment=require('moment');var _=require(_0x7fe1('0x0'));var util=require(_0x7fe1('0x1'));var client=require('../client');exports['voiceQueueReport']=function(_0x151dc4){var _0x2eb768=_0x151dc4[_0x7fe1('0x2')]||_0x151dc4['queuecallerexitAt'];return client[_0x7fe1('0x3')](_0x7fe1('0x4'),{'body':{'channel':_0x7fe1('0x5'),'membername':_0x151dc4[_0x7fe1('0x6')],'interface':_[_0x7fe1('0x7')](_0x151dc4[_0x7fe1('0x8')])?util[_0x7fe1('0x9')]('SIP/%s',_0x151dc4[_0x7fe1('0x6')]):_0x151dc4[_0x7fe1('0x8')],'type':'TALKING','enterAt':_0x151dc4[_0x7fe1('0xa')],'exitAt':_0x2eb768,'duration':moment(_0x2eb768)[_0x7fe1('0xb')](_0x151dc4['queuecallerleaveAt'],'seconds'),'data1':_0x7fe1('0xc'),'data2':_0x151dc4['calleridnum'],'data3':_0x151dc4['exten'],'data4':null,'data5':_0x151dc4[_0x7fe1('0xd')],'role':_0x7fe1('0xe'),'internal':_0x151dc4[_0x7fe1('0xf')]?_[_0x7fe1('0x10')](_0x151dc4[_0x7fe1('0xf')]):undefined,'uniqueid':_0x151dc4[_0x7fe1('0x11')]},'log':_0x7fe1('0x4')});};exports[_0x7fe1('0x12')]=function(_0x455b74){return client[_0x7fe1('0x3')]('CreateMemberReport',{'body':{'channel':_0x7fe1('0x5'),'membername':_0x455b74[_0x7fe1('0x13')],'interface':_0x455b74['interface'],'type':_0x7fe1('0x14'),'enterAt':_0x455b74[_0x7fe1('0x15')],'exitAt':_0x455b74[_0x7fe1('0x16')],'duration':moment(_0x455b74[_0x7fe1('0x16')])[_0x7fe1('0xb')](_0x455b74['starttime'],'seconds')>=0x0?moment(_0x455b74[_0x7fe1('0x16')])['diff'](_0x455b74[_0x7fe1('0x15')],_0x7fe1('0x17')):null,'data1':_0x7fe1('0x18'),'data2':_0x455b74['accountcode'],'data3':_0x455b74['exten'],'data4':_0x455b74[_0x7fe1('0x19')]||null,'role':'agent','internal':_0x455b74[_0x7fe1('0xf')]?_[_0x7fe1('0x10')](_0x455b74[_0x7fe1('0xf')]):undefined,'uniqueid':_0x455b74[_0x7fe1('0x11')]},'log':'CreateMemberReport'});};
\ No newline at end of file