Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / intDeskConfiguration / intDeskConfiguration.rpc.js
index e83bc86..8e7e14a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8ab2=['info','request\x20sent','debug','DeskConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','DeskConfiguration,\x20%s,\x20%s','lodash','util','moment','randomstring','ioredis','../../mysqldb','rpc','../../config/environment','client','request'];(function(_0xcf620d,_0x1ce714){var _0x2712bc=function(_0x59fdc3){while(--_0x59fdc3){_0xcf620d['push'](_0xcf620d['shift']());}};_0x2712bc(++_0x1ce714);}(_0x8ab2,0x89));var _0x28ab=function(_0xd0ce,_0x326c6a){_0xd0ce=_0xd0ce-0x0;var _0x4f4b12=_0x8ab2[_0xd0ce];return _0x4f4b12;};'use strict';var _=require(_0x28ab('0x0'));var util=require(_0x28ab('0x1'));var moment=require(_0x28ab('0x2'));var BPromise=require('bluebird');var rs=require(_0x28ab('0x3'));var fs=require('fs');var Redis=require(_0x28ab('0x4'));var db=require(_0x28ab('0x5'))['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')(_0x28ab('0x6'));var config=require(_0x28ab('0x7'));var jayson=require('jayson/promise');var client=jayson[_0x28ab('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x41e7f2,_0x53d46d,_0x259484){return new BPromise(function(_0x298a42,_0x16b9fe){return client[_0x28ab('0x9')](_0x41e7f2,_0x259484)['then'](function(_0x5f3827){logger[_0x28ab('0xa')]('DeskConfiguration,\x20%s,\x20%s',_0x53d46d,_0x28ab('0xb'));logger[_0x28ab('0xc')](_0x28ab('0xd'),_0x53d46d,_0x28ab('0xb'),JSON[_0x28ab('0xe')](_0x5f3827));if(_0x5f3827[_0x28ab('0xf')]){if(_0x5f3827[_0x28ab('0xf')][_0x28ab('0x10')]===0x1f4){logger['error']('DeskConfiguration,\x20%s,\x20%s',_0x53d46d,_0x5f3827[_0x28ab('0xf')][_0x28ab('0x11')]);return _0x16b9fe(_0x5f3827['error'][_0x28ab('0x11')]);}logger[_0x28ab('0xf')]('DeskConfiguration,\x20%s,\x20%s',_0x53d46d,_0x5f3827[_0x28ab('0xf')]['message']);return _0x298a42(_0x5f3827[_0x28ab('0xf')]['message']);}else{logger[_0x28ab('0xa')]('DeskConfiguration,\x20%s,\x20%s',_0x53d46d,'request\x20sent');_0x298a42(_0x5f3827[_0x28ab('0x12')][_0x28ab('0x11')]);}})[_0x28ab('0x13')](function(_0x3b4a7c){logger['error'](_0x28ab('0x14'),_0x53d46d,_0x3b4a7c);_0x16b9fe(_0x3b4a7c);});});}
\ No newline at end of file
+var _0x5eca=['stringify','error','code','message','result','catch','lodash','util','moment','bluebird','randomstring','../../mysqldb','rpc','../../config/environment','jayson/promise','client','http','then','info','DeskConfiguration,\x20%s,\x20%s','request\x20sent','DeskConfiguration,\x20%s,\x20%s,\x20%s'];(function(_0x2177cf,_0x52cbfa){var _0x1cc7ad=function(_0x1c5721){while(--_0x1c5721){_0x2177cf['push'](_0x2177cf['shift']());}};_0x1cc7ad(++_0x52cbfa);}(_0x5eca,0x10e));var _0xa5ec=function(_0x19950b,_0x53d0d7){_0x19950b=_0x19950b-0x0;var _0x3c6b41=_0x5eca[_0x19950b];return _0x3c6b41;};'use strict';var _=require(_0xa5ec('0x0'));var util=require(_0xa5ec('0x1'));var moment=require(_0xa5ec('0x2'));var BPromise=require(_0xa5ec('0x3'));var rs=require(_0xa5ec('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xa5ec('0x5'))['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')(_0xa5ec('0x6'));var config=require(_0xa5ec('0x7'));var jayson=require(_0xa5ec('0x8'));var client=jayson[_0xa5ec('0x9')][_0xa5ec('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x2cdf5e,_0x127519,_0x5f314e){return new BPromise(function(_0x436828,_0x65aa33){return client['request'](_0x2cdf5e,_0x5f314e)[_0xa5ec('0xb')](function(_0x4e60cc){logger[_0xa5ec('0xc')](_0xa5ec('0xd'),_0x127519,_0xa5ec('0xe'));logger['debug'](_0xa5ec('0xf'),_0x127519,_0xa5ec('0xe'),JSON[_0xa5ec('0x10')](_0x4e60cc));if(_0x4e60cc[_0xa5ec('0x11')]){if(_0x4e60cc[_0xa5ec('0x11')][_0xa5ec('0x12')]===0x1f4){logger[_0xa5ec('0x11')](_0xa5ec('0xd'),_0x127519,_0x4e60cc[_0xa5ec('0x11')][_0xa5ec('0x13')]);return _0x65aa33(_0x4e60cc[_0xa5ec('0x11')][_0xa5ec('0x13')]);}logger[_0xa5ec('0x11')]('DeskConfiguration,\x20%s,\x20%s',_0x127519,_0x4e60cc[_0xa5ec('0x11')][_0xa5ec('0x13')]);return _0x436828(_0x4e60cc[_0xa5ec('0x11')][_0xa5ec('0x13')]);}else{logger[_0xa5ec('0xc')](_0xa5ec('0xd'),_0x127519,'request\x20sent');_0x436828(_0x4e60cc[_0xa5ec('0x14')]['message']);}})[_0xa5ec('0x15')](function(_0x35e4a7){logger[_0xa5ec('0x11')](_0xa5ec('0xd'),_0x127519,_0x35e4a7);_0x65aa33(_0x35e4a7);});});}
\ No newline at end of file