Built motion from commit (unavailable).|2.2.4
[motion2.git] / server / services / ami / rpc / user.js
index f2ffb23..304fc9e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xec19=['savePause','saveUnpause','ShowUser','email','online','getAgent','../client','getAgents','Request','GetUser','agent','name','accountcode','fullname','lastLoginAt','pauseType','lastPauseAt','voicePause','phone','mobile','interface','getTelephones','internal','PauseUser'];(function(_0x1caf6a,_0x26a5bf){var _0x1bf493=function(_0x3982f5){while(--_0x3982f5){_0x1caf6a['push'](_0x1caf6a['shift']());}};_0x1bf493(++_0x26a5bf);}(_0xec19,0x66));var _0x9ec1=function(_0x57e679,_0x477f70){_0x57e679=_0x57e679-0x0;var _0x4ba184=_0xec19[_0x57e679];return _0x4ba184;};'use strict';var client=require(_0x9ec1('0x0'));exports[_0x9ec1('0x1')]=function(){return function(){return client[_0x9ec1('0x2')](_0x9ec1('0x3'),{'options':{'raw':![],'where':{'role':_0x9ec1('0x4')},'attributes':['id',_0x9ec1('0x5'),'email',_0x9ec1('0x6'),_0x9ec1('0x7'),'online',_0x9ec1('0x8'),_0x9ec1('0x9'),_0x9ec1('0xa'),_0x9ec1('0xb'),_0x9ec1('0xc'),_0x9ec1('0xd'),_0x9ec1('0xe')]},'log':'getAgents'});};};exports[_0x9ec1('0xf')]=function(){return function(){return client['Request'](_0x9ec1('0x3'),{'options':{'raw':!![],'where':{'role':'telephone'},'attributes':['id',_0x9ec1('0x5'),_0x9ec1('0x6'),_0x9ec1('0x10')]},'log':_0x9ec1('0xf')});};};exports['savePause']=function(_0x568964,_0x26437e,_0x3b6e27){return client[_0x9ec1('0x2')](_0x9ec1('0x11'),{'body':{'type':_0x26437e,'uniqueid':_0x3b6e27},'options':{'where':{'id':_0x568964['id']}},'log':_0x9ec1('0x12')});};exports[_0x9ec1('0x13')]=function(_0x1e61c7){return client[_0x9ec1('0x2')]('UnpauseUser',{'body':{},'options':{'where':{'id':_0x1e61c7['id']}},'log':_0x9ec1('0x12')});};exports['getAgent']=function(_0x136eb6){return client[_0x9ec1('0x2')](_0x9ec1('0x14'),{'options':{'raw':![],'where':{'role':_0x9ec1('0x4'),'id':_0x136eb6},'attributes':['id',_0x9ec1('0x5'),_0x9ec1('0x15'),_0x9ec1('0x6'),_0x9ec1('0x7'),_0x9ec1('0x16'),_0x9ec1('0x8'),_0x9ec1('0x9'),_0x9ec1('0xa'),_0x9ec1('0xb'),_0x9ec1('0xe')]},'log':_0x9ec1('0x17')});};
\ No newline at end of file
+var _0xc59c=['lastLoginAt','getAgent','Request','GetUser','agent','accountcode','pauseType','lastPauseAt','voicePause','phone','mobile','interface','getAgents','getTelephones','internal','savePause','saveUnpause','name','email','fullname','online'];(function(_0x1ac595,_0x5d2081){var _0x455fff=function(_0x3043ee){while(--_0x3043ee){_0x1ac595['push'](_0x1ac595['shift']());}};_0x455fff(++_0x5d2081);}(_0xc59c,0x1a6));var _0xcc59=function(_0x143565,_0x54d887){_0x143565=_0x143565-0x0;var _0x4dc1d9=_0xc59c[_0x143565];return _0x4dc1d9;};'use strict';var client=require('../client');exports['getAgents']=function(){return function(){return client[_0xcc59('0x0')](_0xcc59('0x1'),{'options':{'raw':![],'where':{'role':_0xcc59('0x2')},'attributes':['id','name','email',_0xcc59('0x3'),'fullname','online','lastLoginAt',_0xcc59('0x4'),_0xcc59('0x5'),_0xcc59('0x6'),_0xcc59('0x7'),_0xcc59('0x8'),_0xcc59('0x9')]},'log':_0xcc59('0xa')});};};exports[_0xcc59('0xb')]=function(){return function(){return client[_0xcc59('0x0')](_0xcc59('0x1'),{'options':{'raw':!![],'where':{'role':'telephone'},'attributes':['id','name',_0xcc59('0x3'),_0xcc59('0xc')]},'log':_0xcc59('0xb')});};};exports[_0xcc59('0xd')]=function(_0x25bd2b,_0x429c93,_0x28cdb9){return client[_0xcc59('0x0')]('PauseUser',{'body':{'type':_0x429c93,'uniqueid':_0x28cdb9},'options':{'where':{'id':_0x25bd2b['id']}},'log':_0xcc59('0xd')});};exports[_0xcc59('0xe')]=function(_0xb24e3){return client[_0xcc59('0x0')]('UnpauseUser',{'body':{},'options':{'where':{'id':_0xb24e3['id']}},'log':_0xcc59('0xd')});};exports['getAgent']=function(_0x4451f7){return client['Request']('ShowUser',{'options':{'raw':![],'where':{'role':_0xcc59('0x2'),'id':_0x4451f7},'attributes':['id',_0xcc59('0xf'),_0xcc59('0x10'),_0xcc59('0x3'),_0xcc59('0x11'),_0xcc59('0x12'),_0xcc59('0x13'),'pauseType',_0xcc59('0x5'),'voicePause',_0xcc59('0x9')]},'log':_0xcc59('0x14')});};
\ No newline at end of file