Built motion from commit (unavailable).|2.5.27
[motion2.git] / server / services / ami / rpc / memberReport.js
index 83eb496..3e2541b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa938=['accountcode','uniqueid','voiceDialReport','membername','starttime','endtime','diff','outbound','exten','dialstring','toNumber','moment','lodash','util','../client','voiceQueueReport','queuecallercompleteAt','queuecallerexitAt','Request','CreateMemberReport','voice','isNil','interface','SIP/%s','lastAssignedTo','TALKING','queuecallerleaveAt','seconds','inbound','calleridnum','agent'];(function(_0x51ea69,_0x501676){var _0x49db84=function(_0x1d1616){while(--_0x1d1616){_0x51ea69['push'](_0x51ea69['shift']());}};_0x49db84(++_0x501676);}(_0xa938,0x1bd));var _0x8a93=function(_0x19f754,_0x121ef8){_0x19f754=_0x19f754-0x0;var _0x2586a5=_0xa938[_0x19f754];return _0x2586a5;};'use strict';var moment=require(_0x8a93('0x0'));var _=require(_0x8a93('0x1'));var util=require(_0x8a93('0x2'));var client=require(_0x8a93('0x3'));exports[_0x8a93('0x4')]=function(_0x33a961){var _0x49ac83=_0x33a961[_0x8a93('0x5')]||_0x33a961[_0x8a93('0x6')];return client[_0x8a93('0x7')](_0x8a93('0x8'),{'body':{'channel':_0x8a93('0x9'),'membername':_0x33a961['lastAssignedTo'],'interface':_[_0x8a93('0xa')](_0x33a961[_0x8a93('0xb')])?util['format'](_0x8a93('0xc'),_0x33a961[_0x8a93('0xd')]):_0x33a961[_0x8a93('0xb')],'type':_0x8a93('0xe'),'enterAt':_0x33a961[_0x8a93('0xf')],'exitAt':_0x49ac83,'duration':moment(_0x49ac83)['diff'](_0x33a961[_0x8a93('0xf')],_0x8a93('0x10')),'data1':_0x8a93('0x11'),'data2':_0x33a961[_0x8a93('0x12')],'data3':_0x33a961['exten'],'data4':null,'data5':_0x33a961['queue'],'role':_0x8a93('0x13'),'internal':_0x33a961[_0x8a93('0x14')]?_['toNumber'](_0x33a961[_0x8a93('0x14')]):undefined,'uniqueid':_0x33a961[_0x8a93('0x15')]},'log':'CreateMemberReport'});};exports[_0x8a93('0x16')]=function(_0x58c89c){return client[_0x8a93('0x7')](_0x8a93('0x8'),{'body':{'channel':_0x8a93('0x9'),'membername':_0x58c89c[_0x8a93('0x17')],'interface':_0x58c89c[_0x8a93('0xb')],'type':_0x8a93('0xe'),'enterAt':_0x58c89c[_0x8a93('0x18')],'exitAt':_0x58c89c[_0x8a93('0x19')],'duration':moment(_0x58c89c[_0x8a93('0x19')])['diff'](_0x58c89c['starttime'],_0x8a93('0x10'))>=0x0?moment(_0x58c89c[_0x8a93('0x19')])[_0x8a93('0x1a')](_0x58c89c[_0x8a93('0x18')],_0x8a93('0x10')):null,'data1':_0x8a93('0x1b'),'data2':_0x58c89c[_0x8a93('0x14')],'data3':_0x58c89c[_0x8a93('0x1c')],'data4':_0x58c89c[_0x8a93('0x1d')]||null,'role':_0x8a93('0x13'),'internal':_0x58c89c[_0x8a93('0x14')]?_[_0x8a93('0x1e')](_0x58c89c[_0x8a93('0x14')]):undefined,'uniqueid':_0x58c89c[_0x8a93('0x15')]},'log':_0x8a93('0x8')});};
\ 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