Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / services / ami / rpc / user.js
index d291372..f9e66b2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7660=['telephone','internal','savePause','PauseUser','UnpauseUser','getAgent','ShowUser','name','fullname','interface','../client','Request','agent','email','accountcode','online','lastLoginAt','pauseType','lastPauseAt','voicePause','phone','mobile','getAgents','getTelephones','GetUser'];(function(_0x5277cc,_0x39d5a9){var _0x1bba2b=function(_0x620d20){while(--_0x620d20){_0x5277cc['push'](_0x5277cc['shift']());}};_0x1bba2b(++_0x39d5a9);}(_0x7660,0xd2));var _0x0766=function(_0x209e12,_0x2ce907){_0x209e12=_0x209e12-0x0;var _0x3f5b89=_0x7660[_0x209e12];return _0x3f5b89;};'use strict';var client=require(_0x0766('0x0'));exports['getAgents']=function(){return function(){return client[_0x0766('0x1')]('GetUser',{'options':{'raw':![],'where':{'role':_0x0766('0x2')},'attributes':['id','name',_0x0766('0x3'),_0x0766('0x4'),'fullname',_0x0766('0x5'),_0x0766('0x6'),_0x0766('0x7'),_0x0766('0x8'),_0x0766('0x9'),_0x0766('0xa'),_0x0766('0xb'),'interface']},'log':_0x0766('0xc')});};};exports[_0x0766('0xd')]=function(){return function(){return client[_0x0766('0x1')](_0x0766('0xe'),{'options':{'raw':!![],'where':{'role':_0x0766('0xf')},'attributes':['id','name',_0x0766('0x4'),_0x0766('0x10')]},'log':_0x0766('0xd')});};};exports[_0x0766('0x11')]=function(_0x1cab4e,_0x31d909,_0x843341){return client['Request'](_0x0766('0x12'),{'body':{'type':_0x31d909,'uniqueid':_0x843341},'options':{'where':{'id':_0x1cab4e['id']}},'log':_0x0766('0x11')});};exports['saveUnpause']=function(_0x391d26){return client['Request'](_0x0766('0x13'),{'body':{},'options':{'where':{'id':_0x391d26['id']}},'log':_0x0766('0x11')});};exports[_0x0766('0x14')]=function(_0x456898){return client[_0x0766('0x1')](_0x0766('0x15'),{'options':{'raw':![],'where':{'role':_0x0766('0x2'),'id':_0x456898},'attributes':['id',_0x0766('0x16'),_0x0766('0x3'),_0x0766('0x4'),_0x0766('0x17'),_0x0766('0x5'),_0x0766('0x6'),_0x0766('0x7'),_0x0766('0x8'),_0x0766('0x9'),_0x0766('0x18')]},'log':_0x0766('0x14')});};
\ No newline at end of file
+var _0x9c44=['online','pauseType','Request','GetUser','agent','name','email','accountcode','lastLoginAt','lastPauseAt','voicePause','phone','mobile','interface','getTelephones','telephone','internal','PauseUser','savePause','getAgent','ShowUser','fullname'];(function(_0x19270b,_0x4969d0){var _0x3c3156=function(_0x520d44){while(--_0x520d44){_0x19270b['push'](_0x19270b['shift']());}};_0x3c3156(++_0x4969d0);}(_0x9c44,0x178));var _0x49c4=function(_0x8c43de,_0x90ff31){_0x8c43de=_0x8c43de-0x0;var _0xa6591b=_0x9c44[_0x8c43de];return _0xa6591b;};'use strict';var client=require('../client');exports['getAgents']=function(){return function(){return client[_0x49c4('0x0')](_0x49c4('0x1'),{'options':{'raw':![],'where':{'role':_0x49c4('0x2')},'attributes':['id',_0x49c4('0x3'),_0x49c4('0x4'),_0x49c4('0x5'),'fullname','online',_0x49c4('0x6'),'pauseType',_0x49c4('0x7'),_0x49c4('0x8'),_0x49c4('0x9'),_0x49c4('0xa'),_0x49c4('0xb')]},'log':'getAgents'});};};exports[_0x49c4('0xc')]=function(){return function(){return client[_0x49c4('0x0')](_0x49c4('0x1'),{'options':{'raw':!![],'where':{'role':_0x49c4('0xd')},'attributes':['id','name','accountcode',_0x49c4('0xe')]},'log':_0x49c4('0xc')});};};exports['savePause']=function(_0xb611a1,_0x459d09,_0x4adb3c){return client['Request'](_0x49c4('0xf'),{'body':{'type':_0x459d09,'uniqueid':_0x4adb3c},'options':{'where':{'id':_0xb611a1['id']}},'log':_0x49c4('0x10')});};exports['saveUnpause']=function(_0x7df3a9){return client[_0x49c4('0x0')]('UnpauseUser',{'body':{},'options':{'where':{'id':_0x7df3a9['id']}},'log':_0x49c4('0x10')});};exports[_0x49c4('0x11')]=function(_0x21f15a){return client[_0x49c4('0x0')](_0x49c4('0x12'),{'options':{'raw':![],'where':{'role':_0x49c4('0x2'),'id':_0x21f15a},'attributes':['id',_0x49c4('0x3'),_0x49c4('0x4'),'accountcode',_0x49c4('0x13'),_0x49c4('0x14'),_0x49c4('0x6'),_0x49c4('0x15'),_0x49c4('0x7'),'voicePause',_0x49c4('0xb')]},'log':_0x49c4('0x11')});};
\ No newline at end of file