Built motion from commit 88aa8522.|2.5.37
[motion2.git] / server / services / ami / rpc / memberReport.js
index 29cf43d..009211a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6b1e=['toNumber','uniqueid','voiceDialReport','Request','membername','TALKING','endtime','starttime','seconds','outbound','dialstring','agent','lodash','util','../client','voiceQueueReport','queuecallercompleteAt','queuecallerexitAt','CreateMemberReport','voice','lastAssignedTo','isNil','interface','SIP/%s','queuecallerleaveAt','diff','inbound','calleridnum','exten','queue','accountcode'];(function(_0x4de622,_0x16bf7c){var _0x2b238a=function(_0x2ac5e2){while(--_0x2ac5e2){_0x4de622['push'](_0x4de622['shift']());}};_0x2b238a(++_0x16bf7c);}(_0x6b1e,0x142));var _0xe6b1=function(_0x22e1c4,_0x410e2a){_0x22e1c4=_0x22e1c4-0x0;var _0x5d70d5=_0x6b1e[_0x22e1c4];return _0x5d70d5;};'use strict';var moment=require('moment');var _=require(_0xe6b1('0x0'));var util=require(_0xe6b1('0x1'));var client=require(_0xe6b1('0x2'));exports[_0xe6b1('0x3')]=function(_0xdf45e0){var _0x39c2c6=_0xdf45e0[_0xe6b1('0x4')]||_0xdf45e0[_0xe6b1('0x5')];return client['Request'](_0xe6b1('0x6'),{'body':{'channel':_0xe6b1('0x7'),'membername':_0xdf45e0[_0xe6b1('0x8')],'interface':_[_0xe6b1('0x9')](_0xdf45e0[_0xe6b1('0xa')])?util['format'](_0xe6b1('0xb'),_0xdf45e0['lastAssignedTo']):_0xdf45e0[_0xe6b1('0xa')],'type':'TALKING','enterAt':_0xdf45e0[_0xe6b1('0xc')],'exitAt':_0x39c2c6,'duration':moment(_0x39c2c6)[_0xe6b1('0xd')](_0xdf45e0[_0xe6b1('0xc')],'seconds'),'data1':_0xe6b1('0xe'),'data2':_0xdf45e0[_0xe6b1('0xf')],'data3':_0xdf45e0[_0xe6b1('0x10')],'data4':null,'data5':_0xdf45e0[_0xe6b1('0x11')],'role':'agent','internal':_0xdf45e0[_0xe6b1('0x12')]?_[_0xe6b1('0x13')](_0xdf45e0[_0xe6b1('0x12')]):undefined,'uniqueid':_0xdf45e0[_0xe6b1('0x14')]},'log':_0xe6b1('0x6')});};exports[_0xe6b1('0x15')]=function(_0x59bf48){return client[_0xe6b1('0x16')]('CreateMemberReport',{'body':{'channel':'voice','membername':_0x59bf48[_0xe6b1('0x17')],'interface':_0x59bf48[_0xe6b1('0xa')],'type':_0xe6b1('0x18'),'enterAt':_0x59bf48['starttime'],'exitAt':_0x59bf48[_0xe6b1('0x19')],'duration':moment(_0x59bf48[_0xe6b1('0x19')])[_0xe6b1('0xd')](_0x59bf48[_0xe6b1('0x1a')],'seconds')>=0x0?moment(_0x59bf48[_0xe6b1('0x19')])[_0xe6b1('0xd')](_0x59bf48[_0xe6b1('0x1a')],_0xe6b1('0x1b')):null,'data1':_0xe6b1('0x1c'),'data2':_0x59bf48[_0xe6b1('0x12')],'data3':_0x59bf48['exten'],'data4':_0x59bf48[_0xe6b1('0x1d')]||null,'role':_0xe6b1('0x1e'),'internal':_0x59bf48['accountcode']?_[_0xe6b1('0x13')](_0x59bf48[_0xe6b1('0x12')]):undefined,'uniqueid':_0x59bf48['uniqueid']},'log':_0xe6b1('0x6')});};
\ No newline at end of file
+var _0x7daf=['isNil','interface','format','SIP/%s','TALKING','queuecallerleaveAt','diff','inbound','exten','toNumber','accountcode','uniqueid','voiceDialReport','membername','starttime','endtime','seconds','outbound','dialstring','agent','moment','lodash','util','../client','voiceQueueReport','queuecallercompleteAt','Request','CreateMemberReport','voice','lastAssignedTo'];(function(_0x258425,_0x460d0e){var _0x454fdf=function(_0x54c888){while(--_0x54c888){_0x258425['push'](_0x258425['shift']());}};_0x454fdf(++_0x460d0e);}(_0x7daf,0xaa));var _0xf7da=function(_0x7671bc,_0x171145){_0x7671bc=_0x7671bc-0x0;var _0x55229f=_0x7daf[_0x7671bc];return _0x55229f;};'use strict';var moment=require(_0xf7da('0x0'));var _=require(_0xf7da('0x1'));var util=require(_0xf7da('0x2'));var client=require(_0xf7da('0x3'));exports[_0xf7da('0x4')]=function(_0x48e797){var _0x4d8d16=_0x48e797[_0xf7da('0x5')]||_0x48e797['queuecallerexitAt'];return client[_0xf7da('0x6')](_0xf7da('0x7'),{'body':{'channel':_0xf7da('0x8'),'membername':_0x48e797[_0xf7da('0x9')],'interface':_[_0xf7da('0xa')](_0x48e797[_0xf7da('0xb')])?util[_0xf7da('0xc')](_0xf7da('0xd'),_0x48e797[_0xf7da('0x9')]):_0x48e797[_0xf7da('0xb')],'type':_0xf7da('0xe'),'enterAt':_0x48e797[_0xf7da('0xf')],'exitAt':_0x4d8d16,'duration':moment(_0x4d8d16)[_0xf7da('0x10')](_0x48e797[_0xf7da('0xf')],'seconds'),'data1':_0xf7da('0x11'),'data2':_0x48e797['calleridnum'],'data3':_0x48e797[_0xf7da('0x12')],'data4':null,'data5':_0x48e797['queue'],'role':'agent','internal':_0x48e797['accountcode']?_[_0xf7da('0x13')](_0x48e797[_0xf7da('0x14')]):undefined,'uniqueid':_0x48e797[_0xf7da('0x15')]},'log':_0xf7da('0x7')});};exports[_0xf7da('0x16')]=function(_0x2c0f6a){return client[_0xf7da('0x6')](_0xf7da('0x7'),{'body':{'channel':'voice','membername':_0x2c0f6a[_0xf7da('0x17')],'interface':_0x2c0f6a[_0xf7da('0xb')],'type':_0xf7da('0xe'),'enterAt':_0x2c0f6a[_0xf7da('0x18')],'exitAt':_0x2c0f6a[_0xf7da('0x19')],'duration':moment(_0x2c0f6a['endtime'])['diff'](_0x2c0f6a['starttime'],_0xf7da('0x1a'))>=0x0?moment(_0x2c0f6a['endtime'])[_0xf7da('0x10')](_0x2c0f6a[_0xf7da('0x18')],_0xf7da('0x1a')):null,'data1':_0xf7da('0x1b'),'data2':_0x2c0f6a[_0xf7da('0x14')],'data3':_0x2c0f6a['exten'],'data4':_0x2c0f6a[_0xf7da('0x1c')]||null,'role':_0xf7da('0x1d'),'internal':_0x2c0f6a[_0xf7da('0x14')]?_[_0xf7da('0x13')](_0x2c0f6a[_0xf7da('0x14')]):undefined,'uniqueid':_0x2c0f6a[_0xf7da('0x15')]},'log':_0xf7da('0x7')});};
\ No newline at end of file