Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / services / ami / rpc / user.js
index d15b474..93ed11a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa7dc=['fullname','online','pauseType','lastPauseAt','interface','getAgents','getTelephones','Request','telephone','accountcode','internal','savePause','saveUnpause','UnpauseUser','getAgent','lastLoginAt','voicePause','../client','GetUser','agent','email'];(function(_0x43d8ca,_0x2e09fb){var _0x4a7419=function(_0x65ad66){while(--_0x65ad66){_0x43d8ca['push'](_0x43d8ca['shift']());}};_0x4a7419(++_0x2e09fb);}(_0xa7dc,0x137));var _0xca7d=function(_0xb86b5b,_0x1c242b){_0xb86b5b=_0xb86b5b-0x0;var _0xffddb4=_0xa7dc[_0xb86b5b];return _0xffddb4;};'use strict';var client=require(_0xca7d('0x0'));exports['getAgents']=function(){return function(){return client['Request'](_0xca7d('0x1'),{'options':{'raw':![],'where':{'role':_0xca7d('0x2')},'attributes':['id','name',_0xca7d('0x3'),'accountcode',_0xca7d('0x4'),_0xca7d('0x5'),'lastLoginAt',_0xca7d('0x6'),_0xca7d('0x7'),'voicePause','phone','mobile',_0xca7d('0x8')]},'log':_0xca7d('0x9')});};};exports[_0xca7d('0xa')]=function(){return function(){return client[_0xca7d('0xb')](_0xca7d('0x1'),{'options':{'raw':!![],'where':{'role':_0xca7d('0xc')},'attributes':['id','name',_0xca7d('0xd'),_0xca7d('0xe')]},'log':_0xca7d('0xa')});};};exports['savePause']=function(_0x5d3f6f,_0x1ff670,_0x52628d){return client[_0xca7d('0xb')]('PauseUser',{'body':{'type':_0x1ff670,'uniqueid':_0x52628d},'options':{'where':{'id':_0x5d3f6f['id']}},'log':_0xca7d('0xf')});};exports[_0xca7d('0x10')]=function(_0x351ea7){return client['Request'](_0xca7d('0x11'),{'body':{},'options':{'where':{'id':_0x351ea7['id']}},'log':'savePause'});};exports[_0xca7d('0x12')]=function(_0x4aef84){return client[_0xca7d('0xb')]('ShowUser',{'options':{'raw':![],'where':{'role':_0xca7d('0x2'),'id':_0x4aef84},'attributes':['id','name',_0xca7d('0x3'),_0xca7d('0xd'),_0xca7d('0x4'),'online',_0xca7d('0x13'),_0xca7d('0x6'),_0xca7d('0x7'),_0xca7d('0x14'),_0xca7d('0x8')]},'log':_0xca7d('0x12')});};
\ No newline at end of file
+var _0x1fcb=['agent','name','email','accountcode','fullname','online','lastLoginAt','pauseType','lastPauseAt','voicePause','phone','mobile','interface','getAgents','getTelephones','GetUser','telephone','internal','savePause','PauseUser','saveUnpause','UnpauseUser','getAgent','ShowUser','../client','Request'];(function(_0x126d3b,_0xb13081){var _0x5b819e=function(_0x2e7305){while(--_0x2e7305){_0x126d3b['push'](_0x126d3b['shift']());}};_0x5b819e(++_0xb13081);}(_0x1fcb,0x1ec));var _0xb1fc=function(_0x524b15,_0x51c457){_0x524b15=_0x524b15-0x0;var _0x28bdef=_0x1fcb[_0x524b15];return _0x28bdef;};'use strict';var client=require(_0xb1fc('0x0'));exports['getAgents']=function(){return function(){return client[_0xb1fc('0x1')]('GetUser',{'options':{'raw':![],'where':{'role':_0xb1fc('0x2')},'attributes':['id',_0xb1fc('0x3'),_0xb1fc('0x4'),_0xb1fc('0x5'),_0xb1fc('0x6'),_0xb1fc('0x7'),_0xb1fc('0x8'),_0xb1fc('0x9'),_0xb1fc('0xa'),_0xb1fc('0xb'),_0xb1fc('0xc'),_0xb1fc('0xd'),_0xb1fc('0xe')]},'log':_0xb1fc('0xf')});};};exports[_0xb1fc('0x10')]=function(){return function(){return client[_0xb1fc('0x1')](_0xb1fc('0x11'),{'options':{'raw':!![],'where':{'role':_0xb1fc('0x12')},'attributes':['id',_0xb1fc('0x3'),_0xb1fc('0x5'),_0xb1fc('0x13')]},'log':'getTelephones'});};};exports[_0xb1fc('0x14')]=function(_0x2e7cec,_0x2b238a,_0x47b05a){return client['Request'](_0xb1fc('0x15'),{'body':{'type':_0x2b238a,'uniqueid':_0x47b05a},'options':{'where':{'id':_0x2e7cec['id']}},'log':'savePause'});};exports[_0xb1fc('0x16')]=function(_0x9d3b9d){return client[_0xb1fc('0x1')](_0xb1fc('0x17'),{'body':{},'options':{'where':{'id':_0x9d3b9d['id']}},'log':'savePause'});};exports[_0xb1fc('0x18')]=function(_0x3b5fdf){return client[_0xb1fc('0x1')](_0xb1fc('0x19'),{'options':{'raw':![],'where':{'role':_0xb1fc('0x2'),'id':_0x3b5fdf},'attributes':['id',_0xb1fc('0x3'),_0xb1fc('0x4'),_0xb1fc('0x5'),_0xb1fc('0x6'),'online',_0xb1fc('0x8'),_0xb1fc('0x9'),_0xb1fc('0xa'),_0xb1fc('0xb'),_0xb1fc('0xe')]},'log':_0xb1fc('0x18')});};
\ No newline at end of file