Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / intDeskConfiguration / intDeskConfiguration.rpc.js
index d1ea310..8e7e14a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc29b=['catch','lodash','util','moment','randomstring','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','DeskConfiguration,\x20%s,\x20%s','request\x20sent','debug','DeskConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result'];(function(_0x1effdf,_0x356292){var _0x4b27c2=function(_0x5e2b17){while(--_0x5e2b17){_0x1effdf['push'](_0x1effdf['shift']());}};_0x4b27c2(++_0x356292);}(_0xc29b,0x12d));var _0xbc29=function(_0x3a37ba,_0x2e9d78){_0x3a37ba=_0x3a37ba-0x0;var _0x3bfe62=_0xc29b[_0x3a37ba];return _0x3bfe62;};'use strict';var _=require(_0xbc29('0x0'));var util=require(_0xbc29('0x1'));var moment=require(_0xbc29('0x2'));var BPromise=require('bluebird');var rs=require(_0xbc29('0x3'));var fs=require('fs');var Redis=require(_0xbc29('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0xbc29('0x5'));var logger=require(_0xbc29('0x6'))(_0xbc29('0x7'));var config=require(_0xbc29('0x8'));var jayson=require(_0xbc29('0x9'));var client=jayson[_0xbc29('0xa')][_0xbc29('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x40f0c9,_0x463e2b,_0x37d9dd){return new BPromise(function(_0x2e5fb7,_0x29b188){return client[_0xbc29('0xc')](_0x40f0c9,_0x37d9dd)[_0xbc29('0xd')](function(_0x320cb4){logger[_0xbc29('0xe')](_0xbc29('0xf'),_0x463e2b,_0xbc29('0x10'));logger[_0xbc29('0x11')](_0xbc29('0x12'),_0x463e2b,'request\x20sent',JSON[_0xbc29('0x13')](_0x320cb4));if(_0x320cb4[_0xbc29('0x14')]){if(_0x320cb4[_0xbc29('0x14')][_0xbc29('0x15')]===0x1f4){logger[_0xbc29('0x14')](_0xbc29('0xf'),_0x463e2b,_0x320cb4[_0xbc29('0x14')]['message']);return _0x29b188(_0x320cb4[_0xbc29('0x14')][_0xbc29('0x16')]);}logger[_0xbc29('0x14')]('DeskConfiguration,\x20%s,\x20%s',_0x463e2b,_0x320cb4['error'][_0xbc29('0x16')]);return _0x2e5fb7(_0x320cb4['error'][_0xbc29('0x16')]);}else{logger[_0xbc29('0xe')](_0xbc29('0xf'),_0x463e2b,'request\x20sent');_0x2e5fb7(_0x320cb4[_0xbc29('0x17')]['message']);}})[_0xbc29('0x18')](function(_0x3b5bae){logger[_0xbc29('0x14')](_0xbc29('0xf'),_0x463e2b,_0x3b5bae);_0x29b188(_0x3b5bae);});});}
\ 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