Built motion from commit a679711e.|2.6.15
[motion2.git] / server / services / ami / rpc / memberReport.js
index d1574f1..f7a6498 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 _0xc5a0=['endtime','diff','outbound','dialstring','agent','toNumber','moment','../client','queuecallercompleteAt','queuecallerexitAt','voice','lastAssignedTo','isNil','interface','format','SIP/%s','TALKING','queuecallerleaveAt','seconds','exten','queue','accountcode','uniqueid','CreateMemberReport','voiceDialReport','starttime'];(function(_0x34b11e,_0x777731){var _0x163481=function(_0x557610){while(--_0x557610){_0x34b11e['push'](_0x34b11e['shift']());}};_0x163481(++_0x777731);}(_0xc5a0,0xbc));var _0x0c5a=function(_0x3df4d7,_0x498f61){_0x3df4d7=_0x3df4d7-0x0;var _0x44badc=_0xc5a0[_0x3df4d7];return _0x44badc;};'use strict';var moment=require(_0x0c5a('0x0'));var _=require('lodash');var util=require('util');var client=require(_0x0c5a('0x1'));exports['voiceQueueReport']=function(_0x17cab2){var _0x384efb=_0x17cab2[_0x0c5a('0x2')]||_0x17cab2[_0x0c5a('0x3')];return client['Request']('CreateMemberReport',{'body':{'channel':_0x0c5a('0x4'),'membername':_0x17cab2[_0x0c5a('0x5')],'interface':_[_0x0c5a('0x6')](_0x17cab2[_0x0c5a('0x7')])?util[_0x0c5a('0x8')](_0x0c5a('0x9'),_0x17cab2[_0x0c5a('0x5')]):_0x17cab2[_0x0c5a('0x7')],'type':_0x0c5a('0xa'),'enterAt':_0x17cab2[_0x0c5a('0xb')],'exitAt':_0x384efb,'duration':moment(_0x384efb)['diff'](_0x17cab2[_0x0c5a('0xb')],_0x0c5a('0xc')),'data1':'inbound','data2':_0x17cab2['calleridnum'],'data3':_0x17cab2[_0x0c5a('0xd')],'data4':null,'data5':_0x17cab2[_0x0c5a('0xe')],'role':'agent','internal':_0x17cab2[_0x0c5a('0xf')]?_['toNumber'](_0x17cab2[_0x0c5a('0xf')]):undefined,'uniqueid':_0x17cab2[_0x0c5a('0x10')]},'log':_0x0c5a('0x11')});};exports[_0x0c5a('0x12')]=function(_0x289a0c){return client['Request']('CreateMemberReport',{'body':{'channel':_0x0c5a('0x4'),'membername':_0x289a0c['membername'],'interface':_0x289a0c[_0x0c5a('0x7')],'type':_0x0c5a('0xa'),'enterAt':_0x289a0c[_0x0c5a('0x13')],'exitAt':_0x289a0c[_0x0c5a('0x14')],'duration':moment(_0x289a0c[_0x0c5a('0x14')])['diff'](_0x289a0c[_0x0c5a('0x13')],_0x0c5a('0xc'))>=0x0?moment(_0x289a0c[_0x0c5a('0x14')])[_0x0c5a('0x15')](_0x289a0c['starttime'],_0x0c5a('0xc')):null,'data1':_0x0c5a('0x16'),'data2':_0x289a0c[_0x0c5a('0xf')],'data3':_0x289a0c[_0x0c5a('0xd')],'data4':_0x289a0c[_0x0c5a('0x17')]||null,'role':_0x0c5a('0x18'),'internal':_0x289a0c[_0x0c5a('0xf')]?_[_0x0c5a('0x19')](_0x289a0c[_0x0c5a('0xf')]):undefined,'uniqueid':_0x289a0c[_0x0c5a('0x10')]},'log':_0x0c5a('0x11')});};
\ No newline at end of file