Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / api / intDeskConfiguration / intDeskConfiguration.rpc.js
index fc85861..cc2ec0a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6faf=['stringify','error','message','info','request\x20sent','result','catch','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','../../config/environment','client','http','request','then','DeskConfiguration,\x20%s,\x20%s','debug','DeskConfiguration,\x20%s,\x20%s,\x20%s'];(function(_0x19e35c,_0x29cd1e){var _0x3e1fe8=function(_0x17258b){while(--_0x17258b){_0x19e35c['push'](_0x19e35c['shift']());}};_0x3e1fe8(++_0x29cd1e);}(_0x6faf,0xf9));var _0xf6fa=function(_0xa464c9,_0x7c86d8){_0xa464c9=_0xa464c9-0x0;var _0x3d73c4=_0x6faf[_0xa464c9];return _0x3d73c4;};'use strict';var _=require('lodash');var util=require(_0xf6fa('0x0'));var moment=require(_0xf6fa('0x1'));var BPromise=require(_0xf6fa('0x2'));var rs=require(_0xf6fa('0x3'));var fs=require('fs');var Redis=require(_0xf6fa('0x4'));var db=require(_0xf6fa('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0xf6fa('0x6'))('rpc');var config=require(_0xf6fa('0x7'));var jayson=require('jayson/promise');var client=jayson[_0xf6fa('0x8')][_0xf6fa('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x1f93f1,_0x1ac55e,_0x2de713){return new BPromise(function(_0x4e1b3c,_0x3f4d3f){return client[_0xf6fa('0xa')](_0x1f93f1,_0x2de713)[_0xf6fa('0xb')](function(_0x585633){logger['info'](_0xf6fa('0xc'),_0x1ac55e,'request\x20sent');logger[_0xf6fa('0xd')](_0xf6fa('0xe'),_0x1ac55e,'request\x20sent',JSON[_0xf6fa('0xf')](_0x585633));if(_0x585633['error']){if(_0x585633[_0xf6fa('0x10')]['code']===0x1f4){logger['error']('DeskConfiguration,\x20%s,\x20%s',_0x1ac55e,_0x585633[_0xf6fa('0x10')][_0xf6fa('0x11')]);return _0x3f4d3f(_0x585633[_0xf6fa('0x10')][_0xf6fa('0x11')]);}logger[_0xf6fa('0x10')](_0xf6fa('0xc'),_0x1ac55e,_0x585633[_0xf6fa('0x10')][_0xf6fa('0x11')]);return _0x4e1b3c(_0x585633[_0xf6fa('0x10')][_0xf6fa('0x11')]);}else{logger[_0xf6fa('0x12')]('DeskConfiguration,\x20%s,\x20%s',_0x1ac55e,_0xf6fa('0x13'));_0x4e1b3c(_0x585633[_0xf6fa('0x14')]['message']);}})[_0xf6fa('0x15')](function(_0x476eeb){logger[_0xf6fa('0x10')]('DeskConfiguration,\x20%s,\x20%s',_0x1ac55e,_0x476eeb);_0x3f4d3f(_0x476eeb);});});}
\ No newline at end of file
+var _0xad9f=['http','request','then','info','DeskConfiguration,\x20%s,\x20%s','request\x20sent','debug','DeskConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','jayson/promise','client'];(function(_0x132986,_0xc679dd){var _0x49dbf9=function(_0x29368e){while(--_0x29368e){_0x132986['push'](_0x132986['shift']());}};_0x49dbf9(++_0xc679dd);}(_0xad9f,0x1be));var _0xfad9=function(_0x41814e,_0x281f70){_0x41814e=_0x41814e-0x0;var _0x5732c1=_0xad9f[_0x41814e];return _0x5732c1;};'use strict';var _=require(_0xfad9('0x0'));var util=require(_0xfad9('0x1'));var moment=require(_0xfad9('0x2'));var BPromise=require('bluebird');var rs=require(_0xfad9('0x3'));var fs=require('fs');var Redis=require(_0xfad9('0x4'));var db=require(_0xfad9('0x5'))['db'];var utils=require(_0xfad9('0x6'));var logger=require('../../config/logger')(_0xfad9('0x7'));var config=require('../../config/environment');var jayson=require(_0xfad9('0x8'));var client=jayson[_0xfad9('0x9')][_0xfad9('0xa')]({'port':0x232a});function respondWithRpcPromise(_0xaea9ba,_0xbbc4a6,_0x19b6cc){return new BPromise(function(_0x4d46a7,_0x5580be){return client[_0xfad9('0xb')](_0xaea9ba,_0x19b6cc)[_0xfad9('0xc')](function(_0x362047){logger[_0xfad9('0xd')](_0xfad9('0xe'),_0xbbc4a6,_0xfad9('0xf'));logger[_0xfad9('0x10')](_0xfad9('0x11'),_0xbbc4a6,'request\x20sent',JSON[_0xfad9('0x12')](_0x362047));if(_0x362047[_0xfad9('0x13')]){if(_0x362047[_0xfad9('0x13')][_0xfad9('0x14')]===0x1f4){logger[_0xfad9('0x13')](_0xfad9('0xe'),_0xbbc4a6,_0x362047[_0xfad9('0x13')][_0xfad9('0x15')]);return _0x5580be(_0x362047[_0xfad9('0x13')][_0xfad9('0x15')]);}logger[_0xfad9('0x13')]('DeskConfiguration,\x20%s,\x20%s',_0xbbc4a6,_0x362047[_0xfad9('0x13')][_0xfad9('0x15')]);return _0x4d46a7(_0x362047[_0xfad9('0x13')][_0xfad9('0x15')]);}else{logger[_0xfad9('0xd')](_0xfad9('0xe'),_0xbbc4a6,'request\x20sent');_0x4d46a7(_0x362047[_0xfad9('0x16')]['message']);}})[_0xfad9('0x17')](function(_0x43d2ef){logger['error']('DeskConfiguration,\x20%s,\x20%s',_0xbbc4a6,_0x43d2ef);_0x5580be(_0x43d2ef);});});}
\ No newline at end of file