Built motion from commit (unavailable).|2.6.0
[motion2.git] / server / services / ami / rpc / user.js
index c7d4867..bf4b485 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5447=['internal','PauseUser','savePause','saveUnpause','ShowUser','email','interface','getAgent','getAgents','Request','GetUser','name','accountcode','fullname','online','lastLoginAt','pauseType','lastPauseAt','voicePause','phone','mobile','getTelephones','telephone'];(function(_0x8cea57,_0x290172){var _0x25ce1d=function(_0x152c9a){while(--_0x152c9a){_0x8cea57['push'](_0x8cea57['shift']());}};_0x25ce1d(++_0x290172);}(_0x5447,0x178));var _0x7544=function(_0x1703fe,_0x5db642){_0x1703fe=_0x1703fe-0x0;var _0x1c5d49=_0x5447[_0x1703fe];return _0x1c5d49;};'use strict';var client=require('../client');exports[_0x7544('0x0')]=function(){return function(){return client[_0x7544('0x1')](_0x7544('0x2'),{'options':{'raw':![],'where':{'role':'agent'},'attributes':['id',_0x7544('0x3'),'email',_0x7544('0x4'),_0x7544('0x5'),_0x7544('0x6'),_0x7544('0x7'),_0x7544('0x8'),_0x7544('0x9'),_0x7544('0xa'),_0x7544('0xb'),_0x7544('0xc'),'interface']},'log':_0x7544('0x0')});};};exports[_0x7544('0xd')]=function(){return function(){return client[_0x7544('0x1')](_0x7544('0x2'),{'options':{'raw':!![],'where':{'role':_0x7544('0xe')},'attributes':['id',_0x7544('0x3'),_0x7544('0x4'),_0x7544('0xf')]},'log':'getTelephones'});};};exports['savePause']=function(_0xb9ae8b,_0x539406,_0x35ca24){return client[_0x7544('0x1')](_0x7544('0x10'),{'body':{'type':_0x539406,'uniqueid':_0x35ca24},'options':{'where':{'id':_0xb9ae8b['id']}},'log':_0x7544('0x11')});};exports[_0x7544('0x12')]=function(_0x24849e){return client[_0x7544('0x1')]('UnpauseUser',{'body':{},'options':{'where':{'id':_0x24849e['id']}},'log':_0x7544('0x11')});};exports['getAgent']=function(_0x2c9a6c){return client[_0x7544('0x1')](_0x7544('0x13'),{'options':{'raw':![],'where':{'role':'agent','id':_0x2c9a6c},'attributes':['id',_0x7544('0x3'),_0x7544('0x14'),'accountcode','fullname',_0x7544('0x6'),_0x7544('0x7'),_0x7544('0x8'),'lastPauseAt',_0x7544('0xa'),_0x7544('0x15')]},'log':_0x7544('0x16')});};
\ No newline at end of file
+var _0x668c=['getAgents','Request','agent','name','email','accountcode','fullname','pauseType','voicePause','getTelephones','GetUser','telephone','internal','savePause','UnpauseUser','getAgent','ShowUser','online','lastPauseAt','../client'];(function(_0x4c24dc,_0x1b5859){var _0x4c2293=function(_0x23b1a4){while(--_0x23b1a4){_0x4c24dc['push'](_0x4c24dc['shift']());}};_0x4c2293(++_0x1b5859);}(_0x668c,0x1df));var _0xc668=function(_0x25e109,_0x6ab24c){_0x25e109=_0x25e109-0x0;var _0xc0f7d6=_0x668c[_0x25e109];return _0xc0f7d6;};'use strict';var client=require(_0xc668('0x0'));exports[_0xc668('0x1')]=function(){return function(){return client[_0xc668('0x2')]('GetUser',{'options':{'raw':![],'where':{'role':_0xc668('0x3')},'attributes':['id',_0xc668('0x4'),_0xc668('0x5'),_0xc668('0x6'),_0xc668('0x7'),'online','lastLoginAt',_0xc668('0x8'),'lastPauseAt',_0xc668('0x9'),'phone','mobile','interface']},'log':_0xc668('0x1')});};};exports[_0xc668('0xa')]=function(){return function(){return client[_0xc668('0x2')](_0xc668('0xb'),{'options':{'raw':!![],'where':{'role':_0xc668('0xc')},'attributes':['id',_0xc668('0x4'),_0xc668('0x6'),_0xc668('0xd')]},'log':_0xc668('0xa')});};};exports[_0xc668('0xe')]=function(_0x1715ce,_0x104030,_0x26462b){return client[_0xc668('0x2')]('PauseUser',{'body':{'type':_0x104030,'uniqueid':_0x26462b},'options':{'where':{'id':_0x1715ce['id']}},'log':_0xc668('0xe')});};exports['saveUnpause']=function(_0x3f8c3e){return client['Request'](_0xc668('0xf'),{'body':{},'options':{'where':{'id':_0x3f8c3e['id']}},'log':_0xc668('0xe')});};exports[_0xc668('0x10')]=function(_0x399b9f){return client[_0xc668('0x2')](_0xc668('0x11'),{'options':{'raw':![],'where':{'role':_0xc668('0x3'),'id':_0x399b9f},'attributes':['id','name',_0xc668('0x5'),'accountcode',_0xc668('0x7'),_0xc668('0x12'),'lastLoginAt',_0xc668('0x8'),_0xc668('0x13'),_0xc668('0x9'),'interface']},'log':'getAgent'});};
\ No newline at end of file