Built motion from commit 775e2a94.|2.6.3
[motion2.git] / server / api / intDeskConfiguration / intDeskConfiguration.rpc.js
index fd69a79..e83bc86 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xcb1a=['DeskConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','code','message','catch','lodash','util','moment','bluebird','../../mysqldb','../../config/logger','rpc','jayson/promise','client','http','request','then','info','DeskConfiguration,\x20%s,\x20%s','request\x20sent','debug'];(function(_0x2efe27,_0x3c0879){var _0x7321eb=function(_0x531737){while(--_0x531737){_0x2efe27['push'](_0x2efe27['shift']());}};_0x7321eb(++_0x3c0879);}(_0xcb1a,0xb6));var _0xacb1=function(_0x5675aa,_0x2bd3b9){_0x5675aa=_0x5675aa-0x0;var _0x74b228=_0xcb1a[_0x5675aa];return _0x74b228;};'use strict';var _=require(_0xacb1('0x0'));var util=require(_0xacb1('0x1'));var moment=require(_0xacb1('0x2'));var BPromise=require(_0xacb1('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0xacb1('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0xacb1('0x5'))(_0xacb1('0x6'));var config=require('../../config/environment');var jayson=require(_0xacb1('0x7'));var client=jayson[_0xacb1('0x8')][_0xacb1('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x317779,_0x270f0d,_0xb6ec05){return new BPromise(function(_0x54888c,_0x39a417){return client[_0xacb1('0xa')](_0x317779,_0xb6ec05)[_0xacb1('0xb')](function(_0x1492f3){logger[_0xacb1('0xc')](_0xacb1('0xd'),_0x270f0d,_0xacb1('0xe'));logger[_0xacb1('0xf')](_0xacb1('0x10'),_0x270f0d,_0xacb1('0xe'),JSON[_0xacb1('0x11')](_0x1492f3));if(_0x1492f3['error']){if(_0x1492f3[_0xacb1('0x12')][_0xacb1('0x13')]===0x1f4){logger['error']('DeskConfiguration,\x20%s,\x20%s',_0x270f0d,_0x1492f3[_0xacb1('0x12')][_0xacb1('0x14')]);return _0x39a417(_0x1492f3[_0xacb1('0x12')][_0xacb1('0x14')]);}logger[_0xacb1('0x12')](_0xacb1('0xd'),_0x270f0d,_0x1492f3['error'][_0xacb1('0x14')]);return _0x54888c(_0x1492f3['error'][_0xacb1('0x14')]);}else{logger[_0xacb1('0xc')](_0xacb1('0xd'),_0x270f0d,_0xacb1('0xe'));_0x54888c(_0x1492f3['result']['message']);}})[_0xacb1('0x15')](function(_0x2bed0d){logger[_0xacb1('0x12')](_0xacb1('0xd'),_0x270f0d,_0x2bed0d);_0x39a417(_0x2bed0d);});});}
\ 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