Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / services / ami / rpc / user.js
index d99aae9..7c8b172 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xedf9=['fullname','pauseType','voicePause','mobile','interface','getTelephones','telephone','accountcode','internal','PauseUser','savePause','UnpauseUser','getAgent','ShowUser','online','lastPauseAt','getAgents','Request','agent','name','email'];(function(_0x20a558,_0x160e0e){var _0x53d3f7=function(_0x259bd8){while(--_0x259bd8){_0x20a558['push'](_0x20a558['shift']());}};_0x53d3f7(++_0x160e0e);}(_0xedf9,0x64));var _0x9edf=function(_0x37df7f,_0x4c827d){_0x37df7f=_0x37df7f-0x0;var _0x59fd67=_0xedf9[_0x37df7f];return _0x59fd67;};'use strict';var client=require('../client');exports[_0x9edf('0x0')]=function(){return function(){return client[_0x9edf('0x1')]('GetUser',{'options':{'raw':![],'where':{'role':_0x9edf('0x2')},'attributes':['id',_0x9edf('0x3'),_0x9edf('0x4'),'accountcode',_0x9edf('0x5'),'online','lastLoginAt',_0x9edf('0x6'),'lastPauseAt',_0x9edf('0x7'),'phone',_0x9edf('0x8'),_0x9edf('0x9')]},'log':'getAgents'});};};exports[_0x9edf('0xa')]=function(){return function(){return client[_0x9edf('0x1')]('GetUser',{'options':{'raw':!![],'where':{'role':_0x9edf('0xb')},'attributes':['id',_0x9edf('0x3'),_0x9edf('0xc'),_0x9edf('0xd')]},'log':_0x9edf('0xa')});};};exports['savePause']=function(_0x3f991b,_0x2bf6f1,_0x5ebb99){return client['Request'](_0x9edf('0xe'),{'body':{'type':_0x2bf6f1,'uniqueid':_0x5ebb99},'options':{'where':{'id':_0x3f991b['id']}},'log':_0x9edf('0xf')});};exports['saveUnpause']=function(_0x91bad){return client['Request'](_0x9edf('0x10'),{'body':{},'options':{'where':{'id':_0x91bad['id']}},'log':_0x9edf('0xf')});};exports[_0x9edf('0x11')]=function(_0x554e32){return client[_0x9edf('0x1')](_0x9edf('0x12'),{'options':{'raw':![],'where':{'role':_0x9edf('0x2'),'id':_0x554e32},'attributes':['id',_0x9edf('0x3'),'email',_0x9edf('0xc'),_0x9edf('0x5'),_0x9edf('0x13'),'lastLoginAt',_0x9edf('0x6'),_0x9edf('0x14'),'voicePause','interface']},'log':_0x9edf('0x11')});};
\ No newline at end of file
+var _0x9b7f=['lastPauseAt','interface','getTelephones','GetUser','telephone','savePause','saveUnpause','getAgent','voicePause','../client','getAgents','Request','agent','name','email','accountcode','fullname','online','lastLoginAt','pauseType'];(function(_0x237b3b,_0x591f4b){var _0x48a55d=function(_0x2b5afa){while(--_0x2b5afa){_0x237b3b['push'](_0x237b3b['shift']());}};_0x48a55d(++_0x591f4b);}(_0x9b7f,0x121));var _0xf9b7=function(_0x3e6108,_0x2b73c0){_0x3e6108=_0x3e6108-0x0;var _0x2bb0bb=_0x9b7f[_0x3e6108];return _0x2bb0bb;};'use strict';var client=require(_0xf9b7('0x0'));exports[_0xf9b7('0x1')]=function(){return function(){return client[_0xf9b7('0x2')]('GetUser',{'options':{'raw':![],'where':{'role':_0xf9b7('0x3')},'attributes':['id',_0xf9b7('0x4'),_0xf9b7('0x5'),_0xf9b7('0x6'),_0xf9b7('0x7'),_0xf9b7('0x8'),_0xf9b7('0x9'),_0xf9b7('0xa'),_0xf9b7('0xb'),'voicePause','phone','mobile',_0xf9b7('0xc')]},'log':'getAgents'});};};exports[_0xf9b7('0xd')]=function(){return function(){return client[_0xf9b7('0x2')](_0xf9b7('0xe'),{'options':{'raw':!![],'where':{'role':_0xf9b7('0xf')},'attributes':['id','name',_0xf9b7('0x6'),'internal']},'log':'getTelephones'});};};exports[_0xf9b7('0x10')]=function(_0x45aa1b,_0x593e45,_0x2cb1da){return client[_0xf9b7('0x2')]('PauseUser',{'body':{'type':_0x593e45,'uniqueid':_0x2cb1da},'options':{'where':{'id':_0x45aa1b['id']}},'log':_0xf9b7('0x10')});};exports[_0xf9b7('0x11')]=function(_0x5ce795){return client['Request']('UnpauseUser',{'body':{},'options':{'where':{'id':_0x5ce795['id']}},'log':_0xf9b7('0x10')});};exports[_0xf9b7('0x12')]=function(_0x2ac03d){return client[_0xf9b7('0x2')]('ShowUser',{'options':{'raw':![],'where':{'role':_0xf9b7('0x3'),'id':_0x2ac03d},'attributes':['id','name',_0xf9b7('0x5'),_0xf9b7('0x6'),_0xf9b7('0x7'),_0xf9b7('0x8'),_0xf9b7('0x9'),_0xf9b7('0xa'),'lastPauseAt',_0xf9b7('0x13'),_0xf9b7('0xc')]},'log':_0xf9b7('0x12')});};
\ No newline at end of file