Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / services / ami / rpc / memberReport.js
index d1574f1..834081c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe1ab=['membername','starttime','diff','outbound','dialstring','moment','lodash','voiceQueueReport','queuecallercompleteAt','queuecallerexitAt','Request','voice','lastAssignedTo','isNil','interface','SIP/%s','TALKING','queuecallerleaveAt','seconds','inbound','calleridnum','exten','queue','agent','accountcode','toNumber','uniqueid','CreateMemberReport','voiceDialReport'];(function(_0x4b369d,_0x265eb8){var _0x571a98=function(_0x56341a){while(--_0x56341a){_0x4b369d['push'](_0x4b369d['shift']());}};_0x571a98(++_0x265eb8);}(_0xe1ab,0x79));var _0xbe1a=function(_0x4a0f16,_0x21ba18){_0x4a0f16=_0x4a0f16-0x0;var _0x45d653=_0xe1ab[_0x4a0f16];return _0x45d653;};'use strict';var moment=require(_0xbe1a('0x0'));var _=require(_0xbe1a('0x1'));var util=require('util');var client=require('../client');exports[_0xbe1a('0x2')]=function(_0xf3ea01){var _0x18206d=_0xf3ea01[_0xbe1a('0x3')]||_0xf3ea01[_0xbe1a('0x4')];return client[_0xbe1a('0x5')]('CreateMemberReport',{'body':{'channel':_0xbe1a('0x6'),'membername':_0xf3ea01[_0xbe1a('0x7')],'interface':_[_0xbe1a('0x8')](_0xf3ea01[_0xbe1a('0x9')])?util['format'](_0xbe1a('0xa'),_0xf3ea01[_0xbe1a('0x7')]):_0xf3ea01['interface'],'type':_0xbe1a('0xb'),'enterAt':_0xf3ea01[_0xbe1a('0xc')],'exitAt':_0x18206d,'duration':moment(_0x18206d)['diff'](_0xf3ea01[_0xbe1a('0xc')],_0xbe1a('0xd')),'data1':_0xbe1a('0xe'),'data2':_0xf3ea01[_0xbe1a('0xf')],'data3':_0xf3ea01[_0xbe1a('0x10')],'data4':null,'data5':_0xf3ea01[_0xbe1a('0x11')],'role':_0xbe1a('0x12'),'internal':_0xf3ea01[_0xbe1a('0x13')]?_[_0xbe1a('0x14')](_0xf3ea01[_0xbe1a('0x13')]):undefined,'uniqueid':_0xf3ea01[_0xbe1a('0x15')]},'log':_0xbe1a('0x16')});};exports[_0xbe1a('0x17')]=function(_0x39cd86){return client['Request'](_0xbe1a('0x16'),{'body':{'channel':_0xbe1a('0x6'),'membername':_0x39cd86[_0xbe1a('0x18')],'interface':_0x39cd86[_0xbe1a('0x9')],'type':'TALKING','enterAt':_0x39cd86[_0xbe1a('0x19')],'exitAt':_0x39cd86['endtime'],'duration':moment(_0x39cd86['endtime'])[_0xbe1a('0x1a')](_0x39cd86[_0xbe1a('0x19')],_0xbe1a('0xd'))>=0x0?moment(_0x39cd86['endtime'])[_0xbe1a('0x1a')](_0x39cd86[_0xbe1a('0x19')],_0xbe1a('0xd')):null,'data1':_0xbe1a('0x1b'),'data2':_0x39cd86['accountcode'],'data3':_0x39cd86[_0xbe1a('0x10')],'data4':_0x39cd86[_0xbe1a('0x1c')]||null,'role':_0xbe1a('0x12'),'internal':_0x39cd86['accountcode']?_['toNumber'](_0x39cd86[_0xbe1a('0x13')]):undefined,'uniqueid':_0x39cd86['uniqueid']},'log':_0xbe1a('0x16')});};
\ No newline at end of file
+var _0x7f5b=['voiceDialReport','starttime','endtime','outbound','dialstring','agent','moment','lodash','util','../client','voiceQueueReport','queuecallercompleteAt','queuecallerexitAt','Request','CreateMemberReport','lastAssignedTo','isNil','interface','format','SIP/%s','TALKING','diff','queuecallerleaveAt','seconds','inbound','calleridnum','exten','queue','accountcode','toNumber','uniqueid'];(function(_0xc26b63,_0x15d609){var _0x5595b0=function(_0x395b65){while(--_0x395b65){_0xc26b63['push'](_0xc26b63['shift']());}};_0x5595b0(++_0x15d609);}(_0x7f5b,0x82));var _0xb7f5=function(_0x105278,_0x774ed2){_0x105278=_0x105278-0x0;var _0x47b1f=_0x7f5b[_0x105278];return _0x47b1f;};'use strict';var moment=require(_0xb7f5('0x0'));var _=require(_0xb7f5('0x1'));var util=require(_0xb7f5('0x2'));var client=require(_0xb7f5('0x3'));exports[_0xb7f5('0x4')]=function(_0x4f678a){var _0x3b6650=_0x4f678a[_0xb7f5('0x5')]||_0x4f678a[_0xb7f5('0x6')];return client[_0xb7f5('0x7')](_0xb7f5('0x8'),{'body':{'channel':'voice','membername':_0x4f678a[_0xb7f5('0x9')],'interface':_[_0xb7f5('0xa')](_0x4f678a[_0xb7f5('0xb')])?util[_0xb7f5('0xc')](_0xb7f5('0xd'),_0x4f678a['lastAssignedTo']):_0x4f678a['interface'],'type':_0xb7f5('0xe'),'enterAt':_0x4f678a['queuecallerleaveAt'],'exitAt':_0x3b6650,'duration':moment(_0x3b6650)[_0xb7f5('0xf')](_0x4f678a[_0xb7f5('0x10')],_0xb7f5('0x11')),'data1':_0xb7f5('0x12'),'data2':_0x4f678a[_0xb7f5('0x13')],'data3':_0x4f678a[_0xb7f5('0x14')],'data4':null,'data5':_0x4f678a[_0xb7f5('0x15')],'role':'agent','internal':_0x4f678a[_0xb7f5('0x16')]?_[_0xb7f5('0x17')](_0x4f678a[_0xb7f5('0x16')]):undefined,'uniqueid':_0x4f678a[_0xb7f5('0x18')]},'log':'CreateMemberReport'});};exports[_0xb7f5('0x19')]=function(_0x14de48){return client[_0xb7f5('0x7')](_0xb7f5('0x8'),{'body':{'channel':'voice','membername':_0x14de48['membername'],'interface':_0x14de48['interface'],'type':_0xb7f5('0xe'),'enterAt':_0x14de48[_0xb7f5('0x1a')],'exitAt':_0x14de48[_0xb7f5('0x1b')],'duration':moment(_0x14de48[_0xb7f5('0x1b')])[_0xb7f5('0xf')](_0x14de48[_0xb7f5('0x1a')],_0xb7f5('0x11'))>=0x0?moment(_0x14de48[_0xb7f5('0x1b')])[_0xb7f5('0xf')](_0x14de48[_0xb7f5('0x1a')],_0xb7f5('0x11')):null,'data1':_0xb7f5('0x1c'),'data2':_0x14de48[_0xb7f5('0x16')],'data3':_0x14de48['exten'],'data4':_0x14de48[_0xb7f5('0x1d')]||null,'role':_0xb7f5('0x1e'),'internal':_0x14de48[_0xb7f5('0x16')]?_[_0xb7f5('0x17')](_0x14de48['accountcode']):undefined,'uniqueid':_0x14de48[_0xb7f5('0x18')]},'log':'CreateMemberReport'});};
\ No newline at end of file