Built motion from commit (unavailable).|2.4.4
[motion2.git] / server / services / ami / rpc / user.js
index 872bad1..fcb6bde 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe0d9=['GetUser','agent','email','accountcode','online','lastLoginAt','pauseType','lastPauseAt','voicePause','phone','mobile','interface','getTelephones','Request','name','internal','savePause','PauseUser','saveUnpause','UnpauseUser','getAgent','ShowUser','../client'];(function(_0xaba410,_0x11680e){var _0x10cd03=function(_0x3f57e2){while(--_0x3f57e2){_0xaba410['push'](_0xaba410['shift']());}};_0x10cd03(++_0x11680e);}(_0xe0d9,0x12a));var _0x9e0d=function(_0x47a12a,_0x70f591){_0x47a12a=_0x47a12a-0x0;var _0x30cd40=_0xe0d9[_0x47a12a];return _0x30cd40;};'use strict';var client=require(_0x9e0d('0x0'));exports['getAgents']=function(){return function(){return client['Request'](_0x9e0d('0x1'),{'options':{'raw':![],'where':{'role':_0x9e0d('0x2')},'attributes':['id','name',_0x9e0d('0x3'),_0x9e0d('0x4'),'fullname',_0x9e0d('0x5'),_0x9e0d('0x6'),_0x9e0d('0x7'),_0x9e0d('0x8'),_0x9e0d('0x9'),_0x9e0d('0xa'),_0x9e0d('0xb'),_0x9e0d('0xc')]},'log':'getAgents'});};};exports[_0x9e0d('0xd')]=function(){return function(){return client[_0x9e0d('0xe')]('GetUser',{'options':{'raw':!![],'where':{'role':'telephone'},'attributes':['id',_0x9e0d('0xf'),_0x9e0d('0x4'),_0x9e0d('0x10')]},'log':'getTelephones'});};};exports[_0x9e0d('0x11')]=function(_0x3fe9bd,_0x263a48,_0x16f91f){return client[_0x9e0d('0xe')](_0x9e0d('0x12'),{'body':{'type':_0x263a48,'uniqueid':_0x16f91f},'options':{'where':{'id':_0x3fe9bd['id']}},'log':'savePause'});};exports[_0x9e0d('0x13')]=function(_0x12259d){return client['Request'](_0x9e0d('0x14'),{'body':{},'options':{'where':{'id':_0x12259d['id']}},'log':_0x9e0d('0x11')});};exports[_0x9e0d('0x15')]=function(_0x18151e){return client[_0x9e0d('0xe')](_0x9e0d('0x16'),{'options':{'raw':![],'where':{'role':_0x9e0d('0x2'),'id':_0x18151e},'attributes':['id',_0x9e0d('0xf'),_0x9e0d('0x3'),_0x9e0d('0x4'),'fullname',_0x9e0d('0x5'),_0x9e0d('0x6'),_0x9e0d('0x7'),_0x9e0d('0x8'),'voicePause',_0x9e0d('0xc')]},'log':_0x9e0d('0x15')});};
\ No newline at end of file
+var _0xcf90=['saveUnpause','getAgent','lastLoginAt','../client','getAgents','Request','GetUser','agent','name','email','fullname','online','pauseType','lastPauseAt','voicePause','phone','interface','telephone','accountcode','internal','getTelephones','savePause','PauseUser'];(function(_0x819464,_0x46fc91){var _0x49dcc0=function(_0x36b2b2){while(--_0x36b2b2){_0x819464['push'](_0x819464['shift']());}};_0x49dcc0(++_0x46fc91);}(_0xcf90,0xe9));var _0x0cf9=function(_0x218735,_0xc5c7ae){_0x218735=_0x218735-0x0;var _0xdff336=_0xcf90[_0x218735];return _0xdff336;};'use strict';var client=require(_0x0cf9('0x0'));exports[_0x0cf9('0x1')]=function(){return function(){return client[_0x0cf9('0x2')](_0x0cf9('0x3'),{'options':{'raw':![],'where':{'role':_0x0cf9('0x4')},'attributes':['id',_0x0cf9('0x5'),_0x0cf9('0x6'),'accountcode',_0x0cf9('0x7'),_0x0cf9('0x8'),'lastLoginAt',_0x0cf9('0x9'),_0x0cf9('0xa'),_0x0cf9('0xb'),_0x0cf9('0xc'),'mobile',_0x0cf9('0xd')]},'log':'getAgents'});};};exports['getTelephones']=function(){return function(){return client[_0x0cf9('0x2')](_0x0cf9('0x3'),{'options':{'raw':!![],'where':{'role':_0x0cf9('0xe')},'attributes':['id',_0x0cf9('0x5'),_0x0cf9('0xf'),_0x0cf9('0x10')]},'log':_0x0cf9('0x11')});};};exports[_0x0cf9('0x12')]=function(_0x280388,_0x34bea8,_0x1d411f){return client[_0x0cf9('0x2')](_0x0cf9('0x13'),{'body':{'type':_0x34bea8,'uniqueid':_0x1d411f},'options':{'where':{'id':_0x280388['id']}},'log':_0x0cf9('0x12')});};exports[_0x0cf9('0x14')]=function(_0x395c36){return client[_0x0cf9('0x2')]('UnpauseUser',{'body':{},'options':{'where':{'id':_0x395c36['id']}},'log':_0x0cf9('0x12')});};exports[_0x0cf9('0x15')]=function(_0x1a0908){return client[_0x0cf9('0x2')]('ShowUser',{'options':{'raw':![],'where':{'role':_0x0cf9('0x4'),'id':_0x1a0908},'attributes':['id',_0x0cf9('0x5'),_0x0cf9('0x6'),_0x0cf9('0xf'),_0x0cf9('0x7'),'online',_0x0cf9('0x16'),'pauseType',_0x0cf9('0xa'),'voicePause',_0x0cf9('0xd')]},'log':_0x0cf9('0x15')});};
\ No newline at end of file