Built motion from commit (unavailable).|2.3.4
[motion2.git] / server / services / ami / rpc / user.js
index 7263f4b..23720fb 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5fc2=['fullname','online','lastLoginAt','pauseType','lastPauseAt','voicePause','phone','mobile','interface','telephone','internal','getTelephones','savePause','PauseUser','saveUnpause','UnpauseUser','getAgent','name','../client','getAgents','Request','agent','email','accountcode'];(function(_0x5bbd8b,_0x411321){var _0x5146c2=function(_0x5b5258){while(--_0x5b5258){_0x5bbd8b['push'](_0x5bbd8b['shift']());}};_0x5146c2(++_0x411321);}(_0x5fc2,0x1c2));var _0x25fc=function(_0x4695ba,_0x5a7f2a){_0x4695ba=_0x4695ba-0x0;var _0x524b7d=_0x5fc2[_0x4695ba];return _0x524b7d;};'use strict';var client=require(_0x25fc('0x0'));exports[_0x25fc('0x1')]=function(){return function(){return client[_0x25fc('0x2')]('GetUser',{'options':{'raw':![],'where':{'role':_0x25fc('0x3')},'attributes':['id','name',_0x25fc('0x4'),_0x25fc('0x5'),_0x25fc('0x6'),_0x25fc('0x7'),_0x25fc('0x8'),_0x25fc('0x9'),_0x25fc('0xa'),_0x25fc('0xb'),_0x25fc('0xc'),_0x25fc('0xd'),_0x25fc('0xe')]},'log':_0x25fc('0x1')});};};exports['getTelephones']=function(){return function(){return client[_0x25fc('0x2')]('GetUser',{'options':{'raw':!![],'where':{'role':_0x25fc('0xf')},'attributes':['id','name',_0x25fc('0x5'),_0x25fc('0x10')]},'log':_0x25fc('0x11')});};};exports[_0x25fc('0x12')]=function(_0x322768,_0x1fc6d1,_0x493c06){return client['Request'](_0x25fc('0x13'),{'body':{'type':_0x1fc6d1,'uniqueid':_0x493c06},'options':{'where':{'id':_0x322768['id']}},'log':_0x25fc('0x12')});};exports[_0x25fc('0x14')]=function(_0xac5ad){return client[_0x25fc('0x2')](_0x25fc('0x15'),{'body':{},'options':{'where':{'id':_0xac5ad['id']}},'log':'savePause'});};exports[_0x25fc('0x16')]=function(_0x589f6b){return client[_0x25fc('0x2')]('ShowUser',{'options':{'raw':![],'where':{'role':_0x25fc('0x3'),'id':_0x589f6b},'attributes':['id',_0x25fc('0x17'),_0x25fc('0x4'),_0x25fc('0x5'),'fullname',_0x25fc('0x7'),'lastLoginAt','pauseType',_0x25fc('0xa'),_0x25fc('0xb'),_0x25fc('0xe')]},'log':'getAgent'});};
\ No newline at end of file
+var _0x99e6=['../client','Request','GetUser','email','accountcode','lastLoginAt','pauseType','phone','mobile','interface','getAgents','telephone','name','savePause','getAgent','ShowUser','agent','online','lastPauseAt','voicePause'];(function(_0x254a06,_0x1986d2){var _0x194c99=function(_0x24c1f9){while(--_0x24c1f9){_0x254a06['push'](_0x254a06['shift']());}};_0x194c99(++_0x1986d2);}(_0x99e6,0x1b8));var _0x699e=function(_0x934425,_0x5af72f){_0x934425=_0x934425-0x0;var _0x31d596=_0x99e6[_0x934425];return _0x31d596;};'use strict';var client=require(_0x699e('0x0'));exports['getAgents']=function(){return function(){return client[_0x699e('0x1')](_0x699e('0x2'),{'options':{'raw':![],'where':{'role':'agent'},'attributes':['id','name',_0x699e('0x3'),_0x699e('0x4'),'fullname','online',_0x699e('0x5'),_0x699e('0x6'),'lastPauseAt','voicePause',_0x699e('0x7'),_0x699e('0x8'),_0x699e('0x9')]},'log':_0x699e('0xa')});};};exports['getTelephones']=function(){return function(){return client[_0x699e('0x1')](_0x699e('0x2'),{'options':{'raw':!![],'where':{'role':_0x699e('0xb')},'attributes':['id',_0x699e('0xc'),_0x699e('0x4'),'internal']},'log':'getTelephones'});};};exports[_0x699e('0xd')]=function(_0x2cfaa8,_0x36e719,_0x2c21c2){return client['Request']('PauseUser',{'body':{'type':_0x36e719,'uniqueid':_0x2c21c2},'options':{'where':{'id':_0x2cfaa8['id']}},'log':_0x699e('0xd')});};exports['saveUnpause']=function(_0x4ba150){return client[_0x699e('0x1')]('UnpauseUser',{'body':{},'options':{'where':{'id':_0x4ba150['id']}},'log':_0x699e('0xd')});};exports[_0x699e('0xe')]=function(_0xe79cae){return client[_0x699e('0x1')](_0x699e('0xf'),{'options':{'raw':![],'where':{'role':_0x699e('0x10'),'id':_0xe79cae},'attributes':['id',_0x699e('0xc'),_0x699e('0x3'),_0x699e('0x4'),'fullname',_0x699e('0x11'),_0x699e('0x5'),'pauseType',_0x699e('0x12'),_0x699e('0x13'),'interface']},'log':'getAgent'});};
\ No newline at end of file