Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / services / ami / rpc / memberReport.js
index cab32d2..120fc8a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9ace=['isNil','interface','SIP/%s','lastAssignedTo','TALKING','queuecallerleaveAt','diff','seconds','calleridnum','exten','queue','agent','accountcode','toNumber','uniqueid','voiceDialReport','membername','endtime','starttime','outbound','moment','lodash','util','../client','voiceQueueReport','queuecallercompleteAt','Request','CreateMemberReport','voice'];(function(_0x4a5bc5,_0x1b7986){var _0x471924=function(_0x23deb5){while(--_0x23deb5){_0x4a5bc5['push'](_0x4a5bc5['shift']());}};_0x471924(++_0x1b7986);}(_0x9ace,0x153));var _0xe9ac=function(_0x9c4cd3,_0x1f0c88){_0x9c4cd3=_0x9c4cd3-0x0;var _0x5ed84d=_0x9ace[_0x9c4cd3];return _0x5ed84d;};'use strict';var moment=require(_0xe9ac('0x0'));var _=require(_0xe9ac('0x1'));var util=require(_0xe9ac('0x2'));var client=require(_0xe9ac('0x3'));exports[_0xe9ac('0x4')]=function(_0x59f6d6){var _0x411304=_0x59f6d6[_0xe9ac('0x5')]||_0x59f6d6['queuecallerexitAt'];return client[_0xe9ac('0x6')](_0xe9ac('0x7'),{'body':{'channel':_0xe9ac('0x8'),'membername':_0x59f6d6['lastAssignedTo'],'interface':_[_0xe9ac('0x9')](_0x59f6d6[_0xe9ac('0xa')])?util['format'](_0xe9ac('0xb'),_0x59f6d6[_0xe9ac('0xc')]):_0x59f6d6[_0xe9ac('0xa')],'type':_0xe9ac('0xd'),'enterAt':_0x59f6d6[_0xe9ac('0xe')],'exitAt':_0x411304,'duration':moment(_0x411304)[_0xe9ac('0xf')](_0x59f6d6['queuecallerleaveAt'],_0xe9ac('0x10')),'data1':'inbound','data2':_0x59f6d6[_0xe9ac('0x11')],'data3':_0x59f6d6[_0xe9ac('0x12')],'data4':null,'data5':_0x59f6d6[_0xe9ac('0x13')],'role':_0xe9ac('0x14'),'internal':_0x59f6d6[_0xe9ac('0x15')]?_[_0xe9ac('0x16')](_0x59f6d6['accountcode']):undefined,'uniqueid':_0x59f6d6[_0xe9ac('0x17')]},'log':_0xe9ac('0x7')});};exports[_0xe9ac('0x18')]=function(_0x27565b){return client[_0xe9ac('0x6')](_0xe9ac('0x7'),{'body':{'channel':_0xe9ac('0x8'),'membername':_0x27565b[_0xe9ac('0x19')],'interface':_0x27565b[_0xe9ac('0xa')],'type':_0xe9ac('0xd'),'enterAt':_0x27565b['starttime'],'exitAt':_0x27565b['endtime'],'duration':moment(_0x27565b[_0xe9ac('0x1a')])[_0xe9ac('0xf')](_0x27565b[_0xe9ac('0x1b')],_0xe9ac('0x10'))>=0x0?moment(_0x27565b[_0xe9ac('0x1a')])['diff'](_0x27565b[_0xe9ac('0x1b')],'seconds'):null,'data1':_0xe9ac('0x1c'),'data2':_0x27565b[_0xe9ac('0x15')],'data3':_0x27565b[_0xe9ac('0x12')],'data4':_0x27565b['dialstring']||null,'role':'agent','internal':_0x27565b[_0xe9ac('0x15')]?_['toNumber'](_0x27565b[_0xe9ac('0x15')]):undefined,'uniqueid':_0x27565b[_0xe9ac('0x17')]},'log':_0xe9ac('0x7')});};
\ No newline at end of file
+var _0x6ff6=['lastAssignedTo','isNil','format','SIP/%s','interface','TALKING','queuecallerleaveAt','diff','seconds','inbound','calleridnum','agent','accountcode','toNumber','voiceDialReport','membername','endtime','starttime','exten','dialstring','uniqueid','moment','util','queuecallercompleteAt','queuecallerexitAt','Request','CreateMemberReport','voice'];(function(_0x397e5f,_0x454c8f){var _0x5302b8=function(_0x1a29ef){while(--_0x1a29ef){_0x397e5f['push'](_0x397e5f['shift']());}};_0x5302b8(++_0x454c8f);}(_0x6ff6,0x69));var _0x66ff=function(_0x278bd5,_0x46b369){_0x278bd5=_0x278bd5-0x0;var _0x14ec54=_0x6ff6[_0x278bd5];return _0x14ec54;};'use strict';var moment=require(_0x66ff('0x0'));var _=require('lodash');var util=require(_0x66ff('0x1'));var client=require('../client');exports['voiceQueueReport']=function(_0x3c8082){var _0x4f7faa=_0x3c8082[_0x66ff('0x2')]||_0x3c8082[_0x66ff('0x3')];return client[_0x66ff('0x4')](_0x66ff('0x5'),{'body':{'channel':_0x66ff('0x6'),'membername':_0x3c8082[_0x66ff('0x7')],'interface':_[_0x66ff('0x8')](_0x3c8082['interface'])?util[_0x66ff('0x9')](_0x66ff('0xa'),_0x3c8082[_0x66ff('0x7')]):_0x3c8082[_0x66ff('0xb')],'type':_0x66ff('0xc'),'enterAt':_0x3c8082[_0x66ff('0xd')],'exitAt':_0x4f7faa,'duration':moment(_0x4f7faa)[_0x66ff('0xe')](_0x3c8082[_0x66ff('0xd')],_0x66ff('0xf')),'data1':_0x66ff('0x10'),'data2':_0x3c8082[_0x66ff('0x11')],'data3':_0x3c8082['exten'],'data4':null,'data5':_0x3c8082['queue'],'role':_0x66ff('0x12'),'internal':_0x3c8082[_0x66ff('0x13')]?_[_0x66ff('0x14')](_0x3c8082[_0x66ff('0x13')]):undefined,'uniqueid':_0x3c8082['uniqueid']},'log':'CreateMemberReport'});};exports[_0x66ff('0x15')]=function(_0x4d92c2){return client[_0x66ff('0x4')](_0x66ff('0x5'),{'body':{'channel':_0x66ff('0x6'),'membername':_0x4d92c2[_0x66ff('0x16')],'interface':_0x4d92c2[_0x66ff('0xb')],'type':_0x66ff('0xc'),'enterAt':_0x4d92c2['starttime'],'exitAt':_0x4d92c2[_0x66ff('0x17')],'duration':moment(_0x4d92c2['endtime'])[_0x66ff('0xe')](_0x4d92c2[_0x66ff('0x18')],_0x66ff('0xf'))>=0x0?moment(_0x4d92c2[_0x66ff('0x17')])[_0x66ff('0xe')](_0x4d92c2[_0x66ff('0x18')],_0x66ff('0xf')):null,'data1':'outbound','data2':_0x4d92c2[_0x66ff('0x13')],'data3':_0x4d92c2[_0x66ff('0x19')],'data4':_0x4d92c2[_0x66ff('0x1a')]||null,'role':_0x66ff('0x12'),'internal':_0x4d92c2[_0x66ff('0x13')]?_['toNumber'](_0x4d92c2[_0x66ff('0x13')]):undefined,'uniqueid':_0x4d92c2[_0x66ff('0x1b')]},'log':_0x66ff('0x5')});};
\ No newline at end of file