Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / services / ami / rpc / user.js
index c6b16fa..cd4d383 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf8a8=['voicePause','phone','mobile','interface','getTelephones','GetUser','telephone','accountcode','internal','savePause','PauseUser','saveUnpause','Request','UnpauseUser','getAgent','ShowUser','agent','lastLoginAt','lastPauseAt','../client','name','email','fullname','online','pauseType'];(function(_0x35b190,_0x340522){var _0x322e9e=function(_0x8911ab){while(--_0x8911ab){_0x35b190['push'](_0x35b190['shift']());}};_0x322e9e(++_0x340522);}(_0xf8a8,0x126));var _0x8f8a=function(_0x4c7fb5,_0x2548ef){_0x4c7fb5=_0x4c7fb5-0x0;var _0x2e10ac=_0xf8a8[_0x4c7fb5];return _0x2e10ac;};'use strict';var client=require(_0x8f8a('0x0'));exports['getAgents']=function(){return function(){return client['Request']('GetUser',{'options':{'raw':![],'where':{'role':'agent'},'attributes':['id',_0x8f8a('0x1'),_0x8f8a('0x2'),'accountcode',_0x8f8a('0x3'),_0x8f8a('0x4'),'lastLoginAt',_0x8f8a('0x5'),'lastPauseAt',_0x8f8a('0x6'),_0x8f8a('0x7'),_0x8f8a('0x8'),_0x8f8a('0x9')]},'log':'getAgents'});};};exports[_0x8f8a('0xa')]=function(){return function(){return client['Request'](_0x8f8a('0xb'),{'options':{'raw':!![],'where':{'role':_0x8f8a('0xc')},'attributes':['id',_0x8f8a('0x1'),_0x8f8a('0xd'),_0x8f8a('0xe')]},'log':_0x8f8a('0xa')});};};exports[_0x8f8a('0xf')]=function(_0x5c31aa,_0x1a78d5,_0x4bcfd4){return client['Request'](_0x8f8a('0x10'),{'body':{'type':_0x1a78d5,'uniqueid':_0x4bcfd4},'options':{'where':{'id':_0x5c31aa['id']}},'log':_0x8f8a('0xf')});};exports[_0x8f8a('0x11')]=function(_0x29faae){return client[_0x8f8a('0x12')](_0x8f8a('0x13'),{'body':{},'options':{'where':{'id':_0x29faae['id']}},'log':_0x8f8a('0xf')});};exports[_0x8f8a('0x14')]=function(_0x33d6d7){return client[_0x8f8a('0x12')](_0x8f8a('0x15'),{'options':{'raw':![],'where':{'role':_0x8f8a('0x16'),'id':_0x33d6d7},'attributes':['id',_0x8f8a('0x1'),'email',_0x8f8a('0xd'),_0x8f8a('0x3'),'online',_0x8f8a('0x17'),_0x8f8a('0x5'),_0x8f8a('0x18'),_0x8f8a('0x6'),_0x8f8a('0x9')]},'log':_0x8f8a('0x14')});};
\ No newline at end of file
+var _0x2277=['Request','GetUser','agent','name','accountcode','fullname','online','lastLoginAt','pauseType','voicePause','mobile','interface','getTelephones','telephone','internal','savePause','PauseUser','UnpauseUser','getAgent','email','lastPauseAt','../client','getAgents'];(function(_0xce93c,_0x555be5){var _0x230720=function(_0x6d5428){while(--_0x6d5428){_0xce93c['push'](_0xce93c['shift']());}};_0x230720(++_0x555be5);}(_0x2277,0xb6));var _0x7227=function(_0x335564,_0x4a2cd1){_0x335564=_0x335564-0x0;var _0x4aeb30=_0x2277[_0x335564];return _0x4aeb30;};'use strict';var client=require(_0x7227('0x0'));exports[_0x7227('0x1')]=function(){return function(){return client[_0x7227('0x2')](_0x7227('0x3'),{'options':{'raw':![],'where':{'role':_0x7227('0x4')},'attributes':['id',_0x7227('0x5'),'email',_0x7227('0x6'),_0x7227('0x7'),_0x7227('0x8'),_0x7227('0x9'),_0x7227('0xa'),'lastPauseAt',_0x7227('0xb'),'phone',_0x7227('0xc'),_0x7227('0xd')]},'log':_0x7227('0x1')});};};exports[_0x7227('0xe')]=function(){return function(){return client[_0x7227('0x2')]('GetUser',{'options':{'raw':!![],'where':{'role':_0x7227('0xf')},'attributes':['id',_0x7227('0x5'),'accountcode',_0x7227('0x10')]},'log':_0x7227('0xe')});};};exports[_0x7227('0x11')]=function(_0x13b771,_0x55e156,_0xbae23d){return client[_0x7227('0x2')](_0x7227('0x12'),{'body':{'type':_0x55e156,'uniqueid':_0xbae23d},'options':{'where':{'id':_0x13b771['id']}},'log':'savePause'});};exports['saveUnpause']=function(_0x21e605){return client['Request'](_0x7227('0x13'),{'body':{},'options':{'where':{'id':_0x21e605['id']}},'log':_0x7227('0x11')});};exports[_0x7227('0x14')]=function(_0x50067c){return client[_0x7227('0x2')]('ShowUser',{'options':{'raw':![],'where':{'role':_0x7227('0x4'),'id':_0x50067c},'attributes':['id',_0x7227('0x5'),_0x7227('0x15'),'accountcode',_0x7227('0x7'),'online',_0x7227('0x9'),'pauseType',_0x7227('0x16'),'voicePause',_0x7227('0xd')]},'log':'getAgent'});};
\ No newline at end of file