Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / services / ami / rpc / user.js
index 72276f9..e042267 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9294=['lastLoginAt','pauseType','lastPauseAt','voicePause','phone','mobile','getTelephones','GetUser','internal','saveUnpause','UnpauseUser','savePause','getAgent','fullname','../client','getAgents','Request','agent','name','email','accountcode','online'];(function(_0x3b02fd,_0x4471b9){var _0xee4d1a=function(_0x1c4ab3){while(--_0x1c4ab3){_0x3b02fd['push'](_0x3b02fd['shift']());}};_0xee4d1a(++_0x4471b9);}(_0x9294,0x12c));var _0x4929=function(_0x3b2f12,_0x1e7128){_0x3b2f12=_0x3b2f12-0x0;var _0x36a818=_0x9294[_0x3b2f12];return _0x36a818;};'use strict';var client=require(_0x4929('0x0'));exports[_0x4929('0x1')]=function(){return function(){return client[_0x4929('0x2')]('GetUser',{'options':{'raw':![],'where':{'role':_0x4929('0x3')},'attributes':['id',_0x4929('0x4'),_0x4929('0x5'),_0x4929('0x6'),'fullname',_0x4929('0x7'),_0x4929('0x8'),_0x4929('0x9'),_0x4929('0xa'),_0x4929('0xb'),_0x4929('0xc'),_0x4929('0xd'),'interface']},'log':_0x4929('0x1')});};};exports[_0x4929('0xe')]=function(){return function(){return client['Request'](_0x4929('0xf'),{'options':{'raw':!![],'where':{'role':'telephone'},'attributes':['id','name','accountcode',_0x4929('0x10')]},'log':_0x4929('0xe')});};};exports['savePause']=function(_0xfebc39,_0x8cb3b1,_0x3cc355){return client[_0x4929('0x2')]('PauseUser',{'body':{'type':_0x8cb3b1,'uniqueid':_0x3cc355},'options':{'where':{'id':_0xfebc39['id']}},'log':'savePause'});};exports[_0x4929('0x11')]=function(_0x291d68){return client[_0x4929('0x2')](_0x4929('0x12'),{'body':{},'options':{'where':{'id':_0x291d68['id']}},'log':_0x4929('0x13')});};exports[_0x4929('0x14')]=function(_0x512710){return client[_0x4929('0x2')]('ShowUser',{'options':{'raw':![],'where':{'role':'agent','id':_0x512710},'attributes':['id',_0x4929('0x4'),_0x4929('0x5'),_0x4929('0x6'),_0x4929('0x15'),_0x4929('0x7'),_0x4929('0x8'),_0x4929('0x9'),'lastPauseAt',_0x4929('0xb'),'interface']},'log':_0x4929('0x14')});};
\ No newline at end of file
+var _0x1bd0=['fullname','online','lastLoginAt','lastPauseAt','voicePause','mobile','interface','getAgents','getTelephones','accountcode','PauseUser','saveUnpause','savePause','getAgent','ShowUser','pauseType','../client','Request','GetUser','agent','name','email'];(function(_0x1bed11,_0x32a62e){var _0x4c324d=function(_0x26dfc0){while(--_0x26dfc0){_0x1bed11['push'](_0x1bed11['shift']());}};_0x4c324d(++_0x32a62e);}(_0x1bd0,0x7e));var _0x01bd=function(_0x22648c,_0x39260a){_0x22648c=_0x22648c-0x0;var _0x2c63bd=_0x1bd0[_0x22648c];return _0x2c63bd;};'use strict';var client=require(_0x01bd('0x0'));exports['getAgents']=function(){return function(){return client[_0x01bd('0x1')](_0x01bd('0x2'),{'options':{'raw':![],'where':{'role':_0x01bd('0x3')},'attributes':['id',_0x01bd('0x4'),_0x01bd('0x5'),'accountcode',_0x01bd('0x6'),_0x01bd('0x7'),_0x01bd('0x8'),'pauseType',_0x01bd('0x9'),_0x01bd('0xa'),'phone',_0x01bd('0xb'),_0x01bd('0xc')]},'log':_0x01bd('0xd')});};};exports[_0x01bd('0xe')]=function(){return function(){return client[_0x01bd('0x1')](_0x01bd('0x2'),{'options':{'raw':!![],'where':{'role':'telephone'},'attributes':['id',_0x01bd('0x4'),_0x01bd('0xf'),'internal']},'log':'getTelephones'});};};exports['savePause']=function(_0x1c25d2,_0x464104,_0x525695){return client['Request'](_0x01bd('0x10'),{'body':{'type':_0x464104,'uniqueid':_0x525695},'options':{'where':{'id':_0x1c25d2['id']}},'log':'savePause'});};exports[_0x01bd('0x11')]=function(_0x154b63){return client[_0x01bd('0x1')]('UnpauseUser',{'body':{},'options':{'where':{'id':_0x154b63['id']}},'log':_0x01bd('0x12')});};exports[_0x01bd('0x13')]=function(_0x430dc2){return client[_0x01bd('0x1')](_0x01bd('0x14'),{'options':{'raw':![],'where':{'role':_0x01bd('0x3'),'id':_0x430dc2},'attributes':['id',_0x01bd('0x4'),_0x01bd('0x5'),_0x01bd('0xf'),_0x01bd('0x6'),_0x01bd('0x7'),_0x01bd('0x8'),_0x01bd('0x15'),_0x01bd('0x9'),_0x01bd('0xa'),_0x01bd('0xc')]},'log':_0x01bd('0x13')});};
\ No newline at end of file