Built motion from commit (unavailable).|2.2.0
[motion2.git] / server / services / ami / rpc / user.js
index 8242c94..ccdb3dd 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x66cc=['name','interface','Request','GetUser','agent','email','accountcode','fullname','online','lastLoginAt','pauseType','lastPauseAt','voicePause','mobile','getAgents','getTelephones','telephone','internal','savePause','PauseUser','saveUnpause','UnpauseUser','getAgent','ShowUser'];(function(_0xcce8b2,_0x39cc26){var _0x1f3e87=function(_0x703caf){while(--_0x703caf){_0xcce8b2['push'](_0xcce8b2['shift']());}};_0x1f3e87(++_0x39cc26);}(_0x66cc,0x7a));var _0xc66c=function(_0x59095e,_0x4a0bb2){_0x59095e=_0x59095e-0x0;var _0x31873c=_0x66cc[_0x59095e];return _0x31873c;};'use strict';var client=require('../client');exports['getAgents']=function(){return function(){return client[_0xc66c('0x0')](_0xc66c('0x1'),{'options':{'raw':![],'where':{'role':_0xc66c('0x2')},'attributes':['id','name',_0xc66c('0x3'),_0xc66c('0x4'),_0xc66c('0x5'),_0xc66c('0x6'),_0xc66c('0x7'),_0xc66c('0x8'),_0xc66c('0x9'),_0xc66c('0xa'),'phone',_0xc66c('0xb'),'interface']},'log':_0xc66c('0xc')});};};exports[_0xc66c('0xd')]=function(){return function(){return client[_0xc66c('0x0')]('GetUser',{'options':{'raw':!![],'where':{'role':_0xc66c('0xe')},'attributes':['id','name',_0xc66c('0x4'),_0xc66c('0xf')]},'log':_0xc66c('0xd')});};};exports[_0xc66c('0x10')]=function(_0x543dfa,_0x111705,_0xcc2b6a){return client[_0xc66c('0x0')](_0xc66c('0x11'),{'body':{'type':_0x111705,'uniqueid':_0xcc2b6a},'options':{'where':{'id':_0x543dfa['id']}},'log':_0xc66c('0x10')});};exports[_0xc66c('0x12')]=function(_0x1e5025){return client[_0xc66c('0x0')](_0xc66c('0x13'),{'body':{},'options':{'where':{'id':_0x1e5025['id']}},'log':_0xc66c('0x10')});};exports[_0xc66c('0x14')]=function(_0x5b70ae){return client[_0xc66c('0x0')](_0xc66c('0x15'),{'options':{'raw':![],'where':{'role':_0xc66c('0x2'),'id':_0x5b70ae},'attributes':['id',_0xc66c('0x16'),_0xc66c('0x3'),_0xc66c('0x4'),_0xc66c('0x5'),_0xc66c('0x6'),_0xc66c('0x7'),'pauseType',_0xc66c('0x9'),'voicePause',_0xc66c('0x17')]},'log':'getAgent'});};
\ No newline at end of file
+var _0x8dd5=['fullname','lastLoginAt','voicePause','mobile','interface','getTelephones','internal','savePause','PauseUser','saveUnpause','getAgent','ShowUser','pauseType','lastPauseAt','../client','getAgents','Request','GetUser','agent','name','email','accountcode'];(function(_0x362882,_0x3012cf){var _0x4632c9=function(_0x1cdbb8){while(--_0x1cdbb8){_0x362882['push'](_0x362882['shift']());}};_0x4632c9(++_0x3012cf);}(_0x8dd5,0x1c6));var _0x58dd=function(_0x284a61,_0x231686){_0x284a61=_0x284a61-0x0;var _0x220e3c=_0x8dd5[_0x284a61];return _0x220e3c;};'use strict';var client=require(_0x58dd('0x0'));exports[_0x58dd('0x1')]=function(){return function(){return client[_0x58dd('0x2')](_0x58dd('0x3'),{'options':{'raw':![],'where':{'role':_0x58dd('0x4')},'attributes':['id',_0x58dd('0x5'),_0x58dd('0x6'),_0x58dd('0x7'),_0x58dd('0x8'),'online',_0x58dd('0x9'),'pauseType','lastPauseAt',_0x58dd('0xa'),'phone',_0x58dd('0xb'),_0x58dd('0xc')]},'log':_0x58dd('0x1')});};};exports[_0x58dd('0xd')]=function(){return function(){return client[_0x58dd('0x2')](_0x58dd('0x3'),{'options':{'raw':!![],'where':{'role':'telephone'},'attributes':['id',_0x58dd('0x5'),_0x58dd('0x7'),_0x58dd('0xe')]},'log':'getTelephones'});};};exports[_0x58dd('0xf')]=function(_0x31fe4d,_0x18faef,_0xe731ed){return client[_0x58dd('0x2')](_0x58dd('0x10'),{'body':{'type':_0x18faef,'uniqueid':_0xe731ed},'options':{'where':{'id':_0x31fe4d['id']}},'log':_0x58dd('0xf')});};exports[_0x58dd('0x11')]=function(_0xe666ee){return client[_0x58dd('0x2')]('UnpauseUser',{'body':{},'options':{'where':{'id':_0xe666ee['id']}},'log':_0x58dd('0xf')});};exports[_0x58dd('0x12')]=function(_0x3f0e8d){return client['Request'](_0x58dd('0x13'),{'options':{'raw':![],'where':{'role':_0x58dd('0x4'),'id':_0x3f0e8d},'attributes':['id',_0x58dd('0x5'),_0x58dd('0x6'),_0x58dd('0x7'),_0x58dd('0x8'),'online',_0x58dd('0x9'),_0x58dd('0x14'),_0x58dd('0x15'),'voicePause',_0x58dd('0xc')]},'log':'getAgent'});};
\ No newline at end of file