Built motion from commit (unavailable).|2.4.3
[motion2.git] / server / services / ami / rpc / user.js
index 6f746a3..1db6f0f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc9c5=['voicePause','phone','mobile','interface','getTelephones','GetUser','telephone','internal','savePause','PauseUser','saveUnpause','getAgent','ShowUser','agent','email','accountcode','getAgents','Request','name','fullname','online','pauseType','lastPauseAt'];(function(_0x5d33c3,_0x3c5d9c){var _0x4b97cc=function(_0xa08a41){while(--_0xa08a41){_0x5d33c3['push'](_0x5d33c3['shift']());}};_0x4b97cc(++_0x3c5d9c);}(_0xc9c5,0x83));var _0x5c9c=function(_0x566c5a,_0x42e09c){_0x566c5a=_0x566c5a-0x0;var _0x3c4abe=_0xc9c5[_0x566c5a];return _0x3c4abe;};'use strict';var client=require('../client');exports[_0x5c9c('0x0')]=function(){return function(){return client[_0x5c9c('0x1')]('GetUser',{'options':{'raw':![],'where':{'role':'agent'},'attributes':['id',_0x5c9c('0x2'),'email','accountcode',_0x5c9c('0x3'),_0x5c9c('0x4'),'lastLoginAt',_0x5c9c('0x5'),_0x5c9c('0x6'),_0x5c9c('0x7'),_0x5c9c('0x8'),_0x5c9c('0x9'),_0x5c9c('0xa')]},'log':_0x5c9c('0x0')});};};exports[_0x5c9c('0xb')]=function(){return function(){return client['Request'](_0x5c9c('0xc'),{'options':{'raw':!![],'where':{'role':_0x5c9c('0xd')},'attributes':['id',_0x5c9c('0x2'),'accountcode',_0x5c9c('0xe')]},'log':'getTelephones'});};};exports[_0x5c9c('0xf')]=function(_0x219b30,_0x456c45,_0x170418){return client['Request'](_0x5c9c('0x10'),{'body':{'type':_0x456c45,'uniqueid':_0x170418},'options':{'where':{'id':_0x219b30['id']}},'log':_0x5c9c('0xf')});};exports[_0x5c9c('0x11')]=function(_0x3c49f9){return client[_0x5c9c('0x1')]('UnpauseUser',{'body':{},'options':{'where':{'id':_0x3c49f9['id']}},'log':_0x5c9c('0xf')});};exports[_0x5c9c('0x12')]=function(_0x47c93c){return client[_0x5c9c('0x1')](_0x5c9c('0x13'),{'options':{'raw':![],'where':{'role':_0x5c9c('0x14'),'id':_0x47c93c},'attributes':['id',_0x5c9c('0x2'),_0x5c9c('0x15'),_0x5c9c('0x16'),_0x5c9c('0x3'),_0x5c9c('0x4'),'lastLoginAt',_0x5c9c('0x5'),_0x5c9c('0x6'),'voicePause',_0x5c9c('0xa')]},'log':_0x5c9c('0x12')});};
\ No newline at end of file
+var _0x7cfd=['getTelephones','savePause','saveUnpause','UnpauseUser','getAgent','ShowUser','fullname','pauseType','voicePause','../client','getAgents','Request','GetUser','agent','name','email','accountcode','online','lastLoginAt','lastPauseAt','phone','mobile','interface','telephone','internal'];(function(_0x4884a7,_0x18e38a){var _0x56b60e=function(_0x2ba8a3){while(--_0x2ba8a3){_0x4884a7['push'](_0x4884a7['shift']());}};_0x56b60e(++_0x18e38a);}(_0x7cfd,0x1b2));var _0xd7cf=function(_0x4922ac,_0x5eacdf){_0x4922ac=_0x4922ac-0x0;var _0x279ff8=_0x7cfd[_0x4922ac];return _0x279ff8;};'use strict';var client=require(_0xd7cf('0x0'));exports[_0xd7cf('0x1')]=function(){return function(){return client[_0xd7cf('0x2')](_0xd7cf('0x3'),{'options':{'raw':![],'where':{'role':_0xd7cf('0x4')},'attributes':['id',_0xd7cf('0x5'),_0xd7cf('0x6'),_0xd7cf('0x7'),'fullname',_0xd7cf('0x8'),_0xd7cf('0x9'),'pauseType',_0xd7cf('0xa'),'voicePause',_0xd7cf('0xb'),_0xd7cf('0xc'),_0xd7cf('0xd')]},'log':_0xd7cf('0x1')});};};exports['getTelephones']=function(){return function(){return client[_0xd7cf('0x2')]('GetUser',{'options':{'raw':!![],'where':{'role':_0xd7cf('0xe')},'attributes':['id',_0xd7cf('0x5'),'accountcode',_0xd7cf('0xf')]},'log':_0xd7cf('0x10')});};};exports[_0xd7cf('0x11')]=function(_0x5a7b94,_0x2647b0,_0x250031){return client[_0xd7cf('0x2')]('PauseUser',{'body':{'type':_0x2647b0,'uniqueid':_0x250031},'options':{'where':{'id':_0x5a7b94['id']}},'log':'savePause'});};exports[_0xd7cf('0x12')]=function(_0x39202a){return client[_0xd7cf('0x2')](_0xd7cf('0x13'),{'body':{},'options':{'where':{'id':_0x39202a['id']}},'log':_0xd7cf('0x11')});};exports[_0xd7cf('0x14')]=function(_0x2e83b3){return client[_0xd7cf('0x2')](_0xd7cf('0x15'),{'options':{'raw':![],'where':{'role':_0xd7cf('0x4'),'id':_0x2e83b3},'attributes':['id',_0xd7cf('0x5'),_0xd7cf('0x6'),_0xd7cf('0x7'),_0xd7cf('0x16'),'online','lastLoginAt',_0xd7cf('0x17'),_0xd7cf('0xa'),_0xd7cf('0x18'),_0xd7cf('0xd')]},'log':_0xd7cf('0x14')});};
\ No newline at end of file