Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / intDeskConfiguration / intDeskConfiguration.rpc.js
index 19d4127..08f7ef6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0424=['request\x20sent','debug','DeskConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','message','info','result','catch','moment','bluebird','randomstring','ioredis','../../config/utils','../../config/environment','jayson/promise','client','http','request','then','DeskConfiguration,\x20%s,\x20%s'];(function(_0x2c91e9,_0x2fb965){var _0x13f0ff=function(_0xb39edf){while(--_0xb39edf){_0x2c91e9['push'](_0x2c91e9['shift']());}};_0x13f0ff(++_0x2fb965);}(_0x0424,0x159));var _0x4042=function(_0x2e4e19,_0x493b50){_0x2e4e19=_0x2e4e19-0x0;var _0x9ba20b=_0x0424[_0x2e4e19];return _0x9ba20b;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0x4042('0x0'));var BPromise=require(_0x4042('0x1'));var rs=require(_0x4042('0x2'));var fs=require('fs');var Redis=require(_0x4042('0x3'));var db=require('../../mysqldb')['db'];var utils=require(_0x4042('0x4'));var logger=require('../../config/logger')('rpc');var config=require(_0x4042('0x5'));var jayson=require(_0x4042('0x6'));var client=jayson[_0x4042('0x7')][_0x4042('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x3abaf1,_0xa5310f,_0x10ec07){return new BPromise(function(_0x5d11bf,_0x509772){return client[_0x4042('0x9')](_0x3abaf1,_0x10ec07)[_0x4042('0xa')](function(_0x103e4a){logger['info'](_0x4042('0xb'),_0xa5310f,_0x4042('0xc'));logger[_0x4042('0xd')](_0x4042('0xe'),_0xa5310f,_0x4042('0xc'),JSON[_0x4042('0xf')](_0x103e4a));if(_0x103e4a[_0x4042('0x10')]){if(_0x103e4a[_0x4042('0x10')]['code']===0x1f4){logger[_0x4042('0x10')](_0x4042('0xb'),_0xa5310f,_0x103e4a['error'][_0x4042('0x11')]);return _0x509772(_0x103e4a[_0x4042('0x10')][_0x4042('0x11')]);}logger[_0x4042('0x10')](_0x4042('0xb'),_0xa5310f,_0x103e4a[_0x4042('0x10')][_0x4042('0x11')]);return _0x5d11bf(_0x103e4a['error'][_0x4042('0x11')]);}else{logger[_0x4042('0x12')]('DeskConfiguration,\x20%s,\x20%s',_0xa5310f,_0x4042('0xc'));_0x5d11bf(_0x103e4a[_0x4042('0x13')][_0x4042('0x11')]);}})[_0x4042('0x14')](function(_0x31e765){logger[_0x4042('0x10')](_0x4042('0xb'),_0xa5310f,_0x31e765);_0x509772(_0x31e765);});});}
\ No newline at end of file
+var _0x299a=['../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','DeskConfiguration,\x20%s,\x20%s','request\x20sent','DeskConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','message','result','catch','util','moment','bluebird','randomstring','../../mysqldb'];(function(_0x2379b9,_0x8b96c2){var _0x5b097d=function(_0xbeec91){while(--_0xbeec91){_0x2379b9['push'](_0x2379b9['shift']());}};_0x5b097d(++_0x8b96c2);}(_0x299a,0x182));var _0xa299=function(_0x2fac91,_0xf1f33a){_0x2fac91=_0x2fac91-0x0;var _0x2a6dd4=_0x299a[_0x2fac91];return _0x2a6dd4;};'use strict';var _=require('lodash');var util=require(_0xa299('0x0'));var moment=require(_0xa299('0x1'));var BPromise=require(_0xa299('0x2'));var rs=require(_0xa299('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xa299('0x4'))['db'];var utils=require(_0xa299('0x5'));var logger=require(_0xa299('0x6'))(_0xa299('0x7'));var config=require(_0xa299('0x8'));var jayson=require(_0xa299('0x9'));var client=jayson[_0xa299('0xa')][_0xa299('0xb')]({'port':0x232a});function respondWithRpcPromise(_0xeaea69,_0x1f2ec,_0xac0dca){return new BPromise(function(_0x5d6097,_0x171fa1){return client[_0xa299('0xc')](_0xeaea69,_0xac0dca)[_0xa299('0xd')](function(_0x302b54){logger[_0xa299('0xe')](_0xa299('0xf'),_0x1f2ec,_0xa299('0x10'));logger['debug'](_0xa299('0x11'),_0x1f2ec,_0xa299('0x10'),JSON[_0xa299('0x12')](_0x302b54));if(_0x302b54[_0xa299('0x13')]){if(_0x302b54[_0xa299('0x13')]['code']===0x1f4){logger[_0xa299('0x13')]('DeskConfiguration,\x20%s,\x20%s',_0x1f2ec,_0x302b54[_0xa299('0x13')][_0xa299('0x14')]);return _0x171fa1(_0x302b54[_0xa299('0x13')][_0xa299('0x14')]);}logger['error'](_0xa299('0xf'),_0x1f2ec,_0x302b54[_0xa299('0x13')][_0xa299('0x14')]);return _0x5d6097(_0x302b54['error'][_0xa299('0x14')]);}else{logger['info'](_0xa299('0xf'),_0x1f2ec,'request\x20sent');_0x5d6097(_0x302b54[_0xa299('0x15')]['message']);}})[_0xa299('0x16')](function(_0x30a2fb){logger[_0xa299('0x13')]('DeskConfiguration,\x20%s,\x20%s',_0x1f2ec,_0x30a2fb);_0x171fa1(_0x30a2fb);});});}
\ No newline at end of file