Built motion from commit 775e2a94.|2.6.3
[motion2.git] / server / api / intDeskConfiguration / intDeskConfiguration.rpc.js
index 38ce824..e83bc86 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x160f=['http','then','info','DeskConfiguration,\x20%s,\x20%s','DeskConfiguration,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','catch','lodash','util','moment','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','client'];(function(_0x1d6a82,_0x37c315){var _0x5834ac=function(_0x2402ba){while(--_0x2402ba){_0x1d6a82['push'](_0x1d6a82['shift']());}};_0x5834ac(++_0x37c315);}(_0x160f,0x1ef));var _0xf160=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x160f[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0xf160('0x0'));var util=require(_0xf160('0x1'));var moment=require(_0xf160('0x2'));var BPromise=require(_0xf160('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xf160('0x4'));var db=require(_0xf160('0x5'))['db'];var utils=require(_0xf160('0x6'));var logger=require(_0xf160('0x7'))(_0xf160('0x8'));var config=require(_0xf160('0x9'));var jayson=require('jayson/promise');var client=jayson[_0xf160('0xa')][_0xf160('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x49fe49,_0x59440e,_0x41e909){return new BPromise(function(_0x5b76c8,_0x4bf890){return client['request'](_0x49fe49,_0x41e909)[_0xf160('0xc')](function(_0x90608){logger[_0xf160('0xd')](_0xf160('0xe'),_0x59440e,'request\x20sent');logger['debug'](_0xf160('0xf'),_0x59440e,_0xf160('0x10'),JSON[_0xf160('0x11')](_0x90608));if(_0x90608['error']){if(_0x90608[_0xf160('0x12')][_0xf160('0x13')]===0x1f4){logger[_0xf160('0x12')](_0xf160('0xe'),_0x59440e,_0x90608[_0xf160('0x12')]['message']);return _0x4bf890(_0x90608[_0xf160('0x12')]['message']);}logger[_0xf160('0x12')](_0xf160('0xe'),_0x59440e,_0x90608[_0xf160('0x12')][_0xf160('0x14')]);return _0x5b76c8(_0x90608[_0xf160('0x12')][_0xf160('0x14')]);}else{logger[_0xf160('0xd')](_0xf160('0xe'),_0x59440e,_0xf160('0x10'));_0x5b76c8(_0x90608['result'][_0xf160('0x14')]);}})[_0xf160('0x15')](function(_0x8699a0){logger[_0xf160('0x12')]('DeskConfiguration,\x20%s,\x20%s',_0x59440e,_0x8699a0);_0x4bf890(_0x8699a0);});});}
\ No newline at end of file
+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