Built motion from commit d1eab355.|2.6.28
[motion2.git] / server / services / ami / rpc / memberReport.js
index 2f1d884..0edeeb5 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd14e=['interface','format','SIP/%s','queuecallerleaveAt','inbound','calleridnum','exten','agent','accountcode','toNumber','voiceDialReport','starttime','endtime','diff','seconds','dialstring','uniqueid','moment','util','../client','queuecallercompleteAt','CreateMemberReport','voice','lastAssignedTo','isNil'];(function(_0x40e460,_0x3fa78a){var _0x404607=function(_0xb2e957){while(--_0xb2e957){_0x40e460['push'](_0x40e460['shift']());}};_0x404607(++_0x3fa78a);}(_0xd14e,0x156));var _0xed14=function(_0x1796bc,_0x1d8a78){_0x1796bc=_0x1796bc-0x0;var _0x3a381f=_0xd14e[_0x1796bc];return _0x3a381f;};'use strict';var moment=require(_0xed14('0x0'));var _=require('lodash');var util=require(_0xed14('0x1'));var client=require(_0xed14('0x2'));exports['voiceQueueReport']=function(_0x53a657){var _0x125ed1=_0x53a657[_0xed14('0x3')]||_0x53a657['queuecallerexitAt'];return client['Request'](_0xed14('0x4'),{'body':{'channel':_0xed14('0x5'),'membername':_0x53a657[_0xed14('0x6')],'interface':_[_0xed14('0x7')](_0x53a657[_0xed14('0x8')])?util[_0xed14('0x9')](_0xed14('0xa'),_0x53a657[_0xed14('0x6')]):_0x53a657[_0xed14('0x8')],'type':'TALKING','enterAt':_0x53a657[_0xed14('0xb')],'exitAt':_0x125ed1,'duration':moment(_0x125ed1)['diff'](_0x53a657['queuecallerleaveAt'],'seconds'),'data1':_0xed14('0xc'),'data2':_0x53a657[_0xed14('0xd')],'data3':_0x53a657[_0xed14('0xe')],'data4':null,'data5':_0x53a657['queue'],'role':_0xed14('0xf'),'internal':_0x53a657[_0xed14('0x10')]?_[_0xed14('0x11')](_0x53a657['accountcode']):undefined,'uniqueid':_0x53a657['uniqueid']},'log':_0xed14('0x4')});};exports[_0xed14('0x12')]=function(_0x400546){return client['Request'](_0xed14('0x4'),{'body':{'channel':_0xed14('0x5'),'membername':_0x400546['membername'],'interface':_0x400546['interface'],'type':'TALKING','enterAt':_0x400546[_0xed14('0x13')],'exitAt':_0x400546[_0xed14('0x14')],'duration':moment(_0x400546[_0xed14('0x14')])[_0xed14('0x15')](_0x400546[_0xed14('0x13')],_0xed14('0x16'))>=0x0?moment(_0x400546['endtime'])[_0xed14('0x15')](_0x400546['starttime'],_0xed14('0x16')):null,'data1':'outbound','data2':_0x400546['accountcode'],'data3':_0x400546[_0xed14('0xe')],'data4':_0x400546[_0xed14('0x17')]||null,'role':_0xed14('0xf'),'internal':_0x400546[_0xed14('0x10')]?_[_0xed14('0x11')](_0x400546[_0xed14('0x10')]):undefined,'uniqueid':_0x400546[_0xed14('0x18')]},'log':_0xed14('0x4')});};
\ No newline at end of file
+var _0xe9c3=['calleridnum','accountcode','toNumber','uniqueid','voiceDialReport','membername','starttime','endtime','outbound','exten','agent','moment','lodash','util','../client','queuecallerexitAt','Request','CreateMemberReport','voice','interface','format','SIP/%s','lastAssignedTo','TALKING','queuecallerleaveAt','diff','seconds','inbound'];(function(_0x501510,_0x61caa9){var _0x1e6ee5=function(_0x32845b){while(--_0x32845b){_0x501510['push'](_0x501510['shift']());}};_0x1e6ee5(++_0x61caa9);}(_0xe9c3,0x1af));var _0x3e9c=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xe9c3[_0x3dd15e];return _0x231fd0;};'use strict';var moment=require(_0x3e9c('0x0'));var _=require(_0x3e9c('0x1'));var util=require(_0x3e9c('0x2'));var client=require(_0x3e9c('0x3'));exports['voiceQueueReport']=function(_0x2e34e7){var _0x8e276c=_0x2e34e7['queuecallercompleteAt']||_0x2e34e7[_0x3e9c('0x4')];return client[_0x3e9c('0x5')](_0x3e9c('0x6'),{'body':{'channel':_0x3e9c('0x7'),'membername':_0x2e34e7['lastAssignedTo'],'interface':_['isNil'](_0x2e34e7[_0x3e9c('0x8')])?util[_0x3e9c('0x9')](_0x3e9c('0xa'),_0x2e34e7[_0x3e9c('0xb')]):_0x2e34e7[_0x3e9c('0x8')],'type':_0x3e9c('0xc'),'enterAt':_0x2e34e7[_0x3e9c('0xd')],'exitAt':_0x8e276c,'duration':moment(_0x8e276c)[_0x3e9c('0xe')](_0x2e34e7[_0x3e9c('0xd')],_0x3e9c('0xf')),'data1':_0x3e9c('0x10'),'data2':_0x2e34e7[_0x3e9c('0x11')],'data3':_0x2e34e7['exten'],'data4':null,'data5':_0x2e34e7['queue'],'role':'agent','internal':_0x2e34e7[_0x3e9c('0x12')]?_[_0x3e9c('0x13')](_0x2e34e7['accountcode']):undefined,'uniqueid':_0x2e34e7[_0x3e9c('0x14')]},'log':_0x3e9c('0x6')});};exports[_0x3e9c('0x15')]=function(_0x7342a){return client[_0x3e9c('0x5')](_0x3e9c('0x6'),{'body':{'channel':_0x3e9c('0x7'),'membername':_0x7342a[_0x3e9c('0x16')],'interface':_0x7342a[_0x3e9c('0x8')],'type':_0x3e9c('0xc'),'enterAt':_0x7342a[_0x3e9c('0x17')],'exitAt':_0x7342a[_0x3e9c('0x18')],'duration':moment(_0x7342a[_0x3e9c('0x18')])[_0x3e9c('0xe')](_0x7342a[_0x3e9c('0x17')],'seconds')>=0x0?moment(_0x7342a[_0x3e9c('0x18')])[_0x3e9c('0xe')](_0x7342a[_0x3e9c('0x17')],_0x3e9c('0xf')):null,'data1':_0x3e9c('0x19'),'data2':_0x7342a['accountcode'],'data3':_0x7342a[_0x3e9c('0x1a')],'data4':_0x7342a['dialstring']||null,'role':_0x3e9c('0x1b'),'internal':_0x7342a[_0x3e9c('0x12')]?_[_0x3e9c('0x13')](_0x7342a['accountcode']):undefined,'uniqueid':_0x7342a['uniqueid']},'log':_0x3e9c('0x6')});};
\ No newline at end of file