Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / services / ami / rpc / user.js
index f1fb252..3e5dbb2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1132=['PauseUser','saveUnpause','getAgent','ShowUser','email','lastLoginAt','../client','getAgents','agent','name','fullname','pauseType','lastPauseAt','voicePause','phone','mobile','interface','getTelephones','Request','telephone','accountcode','internal','savePause'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x1132,0x15f));var _0x2113=function(_0x501510,_0x61caa9){_0x501510=_0x501510-0x0;var _0x1e6ee5=_0x1132[_0x501510];return _0x1e6ee5;};'use strict';var client=require(_0x2113('0x0'));exports[_0x2113('0x1')]=function(){return function(){return client['Request']('GetUser',{'options':{'raw':![],'where':{'role':_0x2113('0x2')},'attributes':['id',_0x2113('0x3'),'email','accountcode',_0x2113('0x4'),'online','lastLoginAt',_0x2113('0x5'),_0x2113('0x6'),_0x2113('0x7'),_0x2113('0x8'),_0x2113('0x9'),_0x2113('0xa')]},'log':'getAgents'});};};exports[_0x2113('0xb')]=function(){return function(){return client[_0x2113('0xc')]('GetUser',{'options':{'raw':!![],'where':{'role':_0x2113('0xd')},'attributes':['id','name',_0x2113('0xe'),_0x2113('0xf')]},'log':_0x2113('0xb')});};};exports[_0x2113('0x10')]=function(_0x11eabd,_0x3eb0ad,_0x544184){return client[_0x2113('0xc')](_0x2113('0x11'),{'body':{'type':_0x3eb0ad,'uniqueid':_0x544184},'options':{'where':{'id':_0x11eabd['id']}},'log':_0x2113('0x10')});};exports[_0x2113('0x12')]=function(_0x37c519){return client[_0x2113('0xc')]('UnpauseUser',{'body':{},'options':{'where':{'id':_0x37c519['id']}},'log':_0x2113('0x10')});};exports[_0x2113('0x13')]=function(_0xadb99){return client['Request'](_0x2113('0x14'),{'options':{'raw':![],'where':{'role':'agent','id':_0xadb99},'attributes':['id',_0x2113('0x3'),_0x2113('0x15'),_0x2113('0xe'),'fullname','online',_0x2113('0x16'),_0x2113('0x5'),_0x2113('0x6'),_0x2113('0x7'),_0x2113('0xa')]},'log':'getAgent'});};
\ No newline at end of file
+var _0x85d3=['PauseUser','saveUnpause','savePause','ShowUser','fullname','lastPauseAt','../client','getAgents','Request','GetUser','agent','name','email','accountcode','online','lastLoginAt','pauseType','voicePause','mobile','interface','getTelephones','telephone','internal'];(function(_0x4f9bce,_0x3017b0){var _0x14a3f5=function(_0x28d152){while(--_0x28d152){_0x4f9bce['push'](_0x4f9bce['shift']());}};_0x14a3f5(++_0x3017b0);}(_0x85d3,0x1bb));var _0x385d=function(_0x2f5ac5,_0x1ee939){_0x2f5ac5=_0x2f5ac5-0x0;var _0x37c9a8=_0x85d3[_0x2f5ac5];return _0x37c9a8;};'use strict';var client=require(_0x385d('0x0'));exports[_0x385d('0x1')]=function(){return function(){return client[_0x385d('0x2')](_0x385d('0x3'),{'options':{'raw':![],'where':{'role':_0x385d('0x4')},'attributes':['id',_0x385d('0x5'),_0x385d('0x6'),_0x385d('0x7'),'fullname',_0x385d('0x8'),_0x385d('0x9'),_0x385d('0xa'),'lastPauseAt',_0x385d('0xb'),'phone',_0x385d('0xc'),_0x385d('0xd')]},'log':_0x385d('0x1')});};};exports[_0x385d('0xe')]=function(){return function(){return client[_0x385d('0x2')](_0x385d('0x3'),{'options':{'raw':!![],'where':{'role':_0x385d('0xf')},'attributes':['id','name',_0x385d('0x7'),_0x385d('0x10')]},'log':_0x385d('0xe')});};};exports['savePause']=function(_0x5ac131,_0x340968,_0x4c1bfc){return client['Request'](_0x385d('0x11'),{'body':{'type':_0x340968,'uniqueid':_0x4c1bfc},'options':{'where':{'id':_0x5ac131['id']}},'log':'savePause'});};exports[_0x385d('0x12')]=function(_0x499f4a){return client[_0x385d('0x2')]('UnpauseUser',{'body':{},'options':{'where':{'id':_0x499f4a['id']}},'log':_0x385d('0x13')});};exports['getAgent']=function(_0x560154){return client[_0x385d('0x2')](_0x385d('0x14'),{'options':{'raw':![],'where':{'role':_0x385d('0x4'),'id':_0x560154},'attributes':['id','name',_0x385d('0x6'),_0x385d('0x7'),_0x385d('0x15'),'online',_0x385d('0x9'),_0x385d('0xa'),_0x385d('0x16'),'voicePause',_0x385d('0xd')]},'log':'getAgent'});};
\ No newline at end of file