Built motion from commit e6806ed6.|2.6.0
[motion2.git] / server / services / ami / rpc / memberReport.js
index 3652020..8088c4c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xffb6=['toNumber','CreateMemberReport','voiceDialReport','membername','endtime','starttime','outbound','accountcode','dialstring','uniqueid','moment','util','voiceQueueReport','queuecallercompleteAt','queuecallerexitAt','Request','isNil','interface','format','SIP/%s','TALKING','queuecallerleaveAt','diff','seconds','inbound','exten'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xffb6,0x128));var _0x6ffb=function(_0x191532,_0xef7088){_0x191532=_0x191532-0x0;var _0x353440=_0xffb6[_0x191532];return _0x353440;};'use strict';var moment=require(_0x6ffb('0x0'));var _=require('lodash');var util=require(_0x6ffb('0x1'));var client=require('../client');exports[_0x6ffb('0x2')]=function(_0x4cb72c){var _0x37803f=_0x4cb72c[_0x6ffb('0x3')]||_0x4cb72c[_0x6ffb('0x4')];return client[_0x6ffb('0x5')]('CreateMemberReport',{'body':{'channel':'voice','membername':_0x4cb72c['lastAssignedTo'],'interface':_[_0x6ffb('0x6')](_0x4cb72c[_0x6ffb('0x7')])?util[_0x6ffb('0x8')](_0x6ffb('0x9'),_0x4cb72c['lastAssignedTo']):_0x4cb72c[_0x6ffb('0x7')],'type':_0x6ffb('0xa'),'enterAt':_0x4cb72c[_0x6ffb('0xb')],'exitAt':_0x37803f,'duration':moment(_0x37803f)[_0x6ffb('0xc')](_0x4cb72c['queuecallerleaveAt'],_0x6ffb('0xd')),'data1':_0x6ffb('0xe'),'data2':_0x4cb72c['calleridnum'],'data3':_0x4cb72c[_0x6ffb('0xf')],'data4':null,'data5':_0x4cb72c['queue'],'role':'agent','internal':_0x4cb72c['accountcode']?_[_0x6ffb('0x10')](_0x4cb72c['accountcode']):undefined,'uniqueid':_0x4cb72c['uniqueid']},'log':_0x6ffb('0x11')});};exports[_0x6ffb('0x12')]=function(_0x5da441){return client[_0x6ffb('0x5')](_0x6ffb('0x11'),{'body':{'channel':'voice','membername':_0x5da441[_0x6ffb('0x13')],'interface':_0x5da441['interface'],'type':'TALKING','enterAt':_0x5da441['starttime'],'exitAt':_0x5da441['endtime'],'duration':moment(_0x5da441[_0x6ffb('0x14')])[_0x6ffb('0xc')](_0x5da441['starttime'],_0x6ffb('0xd'))>=0x0?moment(_0x5da441[_0x6ffb('0x14')])[_0x6ffb('0xc')](_0x5da441[_0x6ffb('0x15')],_0x6ffb('0xd')):null,'data1':_0x6ffb('0x16'),'data2':_0x5da441[_0x6ffb('0x17')],'data3':_0x5da441[_0x6ffb('0xf')],'data4':_0x5da441[_0x6ffb('0x18')]||null,'role':'agent','internal':_0x5da441[_0x6ffb('0x17')]?_[_0x6ffb('0x10')](_0x5da441[_0x6ffb('0x17')]):undefined,'uniqueid':_0x5da441[_0x6ffb('0x19')]},'log':_0x6ffb('0x11')});};
\ No newline at end of file
+var _0xb90f=['accountcode','toNumber','uniqueid','membername','endtime','diff','seconds','starttime','outbound','moment','lodash','util','../client','queuecallercompleteAt','queuecallerexitAt','CreateMemberReport','voice','lastAssignedTo','isNil','interface','format','SIP/%s','queuecallerleaveAt','exten','queue','agent'];(function(_0x2a78aa,_0x4d7b1a){var _0x330d8f=function(_0x4c3c43){while(--_0x4c3c43){_0x2a78aa['push'](_0x2a78aa['shift']());}};_0x330d8f(++_0x4d7b1a);}(_0xb90f,0x1c3));var _0xfb90=function(_0x5e2861,_0x5a4bad){_0x5e2861=_0x5e2861-0x0;var _0x4b7336=_0xb90f[_0x5e2861];return _0x4b7336;};'use strict';var moment=require(_0xfb90('0x0'));var _=require(_0xfb90('0x1'));var util=require(_0xfb90('0x2'));var client=require(_0xfb90('0x3'));exports['voiceQueueReport']=function(_0x24ed57){var _0x53e2c6=_0x24ed57[_0xfb90('0x4')]||_0x24ed57[_0xfb90('0x5')];return client['Request'](_0xfb90('0x6'),{'body':{'channel':_0xfb90('0x7'),'membername':_0x24ed57[_0xfb90('0x8')],'interface':_[_0xfb90('0x9')](_0x24ed57[_0xfb90('0xa')])?util[_0xfb90('0xb')](_0xfb90('0xc'),_0x24ed57[_0xfb90('0x8')]):_0x24ed57[_0xfb90('0xa')],'type':'TALKING','enterAt':_0x24ed57['queuecallerleaveAt'],'exitAt':_0x53e2c6,'duration':moment(_0x53e2c6)['diff'](_0x24ed57[_0xfb90('0xd')],'seconds'),'data1':'inbound','data2':_0x24ed57['calleridnum'],'data3':_0x24ed57[_0xfb90('0xe')],'data4':null,'data5':_0x24ed57[_0xfb90('0xf')],'role':_0xfb90('0x10'),'internal':_0x24ed57[_0xfb90('0x11')]?_[_0xfb90('0x12')](_0x24ed57[_0xfb90('0x11')]):undefined,'uniqueid':_0x24ed57[_0xfb90('0x13')]},'log':_0xfb90('0x6')});};exports['voiceDialReport']=function(_0x4c09c0){return client['Request']('CreateMemberReport',{'body':{'channel':_0xfb90('0x7'),'membername':_0x4c09c0[_0xfb90('0x14')],'interface':_0x4c09c0[_0xfb90('0xa')],'type':'TALKING','enterAt':_0x4c09c0['starttime'],'exitAt':_0x4c09c0[_0xfb90('0x15')],'duration':moment(_0x4c09c0[_0xfb90('0x15')])[_0xfb90('0x16')](_0x4c09c0['starttime'],_0xfb90('0x17'))>=0x0?moment(_0x4c09c0[_0xfb90('0x15')])[_0xfb90('0x16')](_0x4c09c0[_0xfb90('0x18')],_0xfb90('0x17')):null,'data1':_0xfb90('0x19'),'data2':_0x4c09c0[_0xfb90('0x11')],'data3':_0x4c09c0[_0xfb90('0xe')],'data4':_0x4c09c0['dialstring']||null,'role':_0xfb90('0x10'),'internal':_0x4c09c0[_0xfb90('0x11')]?_['toNumber'](_0x4c09c0[_0xfb90('0x11')]):undefined,'uniqueid':_0x4c09c0[_0xfb90('0x13')]},'log':_0xfb90('0x6')});};
\ No newline at end of file