Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / dashboardItem / dashboardItem.rpc.js
index d742c66..ccb745d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xcd2a=['ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','client','http','redis','localhost','socket.io-emitter','./dashboardItem.socket','register','then','info','DashboardItem,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','result','catch','lodash','util','moment','randomstring'];(function(_0x1c5cd2,_0x277ceb){var _0x895e35=function(_0x4b4307){while(--_0x4b4307){_0x1c5cd2['push'](_0x1c5cd2['shift']());}};_0x895e35(++_0x277ceb);}(_0xcd2a,0x88));var _0xacd2=function(_0x269e23,_0x14d11c){_0x269e23=_0x269e23-0x0;var _0x69ad53=_0xcd2a[_0x269e23];return _0x69ad53;};'use strict';var _=require(_0xacd2('0x0'));var util=require(_0xacd2('0x1'));var moment=require(_0xacd2('0x2'));var BPromise=require('bluebird');var rs=require(_0xacd2('0x3'));var fs=require('fs');var Redis=require(_0xacd2('0x4'));var db=require(_0xacd2('0x5'))['db'];var utils=require(_0xacd2('0x6'));var logger=require(_0xacd2('0x7'))(_0xacd2('0x8'));var config=require(_0xacd2('0x9'));var jayson=require('jayson/promise');var client=jayson[_0xacd2('0xa')][_0xacd2('0xb')]({'port':0x232a});config[_0xacd2('0xc')]=_['defaults'](config[_0xacd2('0xc')],{'host':_0xacd2('0xd'),'port':0x18eb});var socket=require(_0xacd2('0xe'))(new Redis(config['redis']));require(_0xacd2('0xf'))[_0xacd2('0x10')](socket);function respondWithRpcPromise(_0x285fd3,_0x1cb7c0,_0x1fbd4b){return new BPromise(function(_0x5cd14b,_0x440fa7){return client['request'](_0x285fd3,_0x1fbd4b)[_0xacd2('0x11')](function(_0x502567){logger[_0xacd2('0x12')](_0xacd2('0x13'),_0x1cb7c0,_0xacd2('0x14'));logger[_0xacd2('0x15')]('DashboardItem,\x20%s,\x20%s,\x20%s',_0x1cb7c0,_0xacd2('0x14'),JSON[_0xacd2('0x16')](_0x502567));if(_0x502567['error']){if(_0x502567[_0xacd2('0x17')][_0xacd2('0x18')]===0x1f4){logger[_0xacd2('0x17')](_0xacd2('0x13'),_0x1cb7c0,_0x502567['error'][_0xacd2('0x19')]);return _0x440fa7(_0x502567[_0xacd2('0x17')]['message']);}logger[_0xacd2('0x17')]('DashboardItem,\x20%s,\x20%s',_0x1cb7c0,_0x502567['error']['message']);return _0x5cd14b(_0x502567[_0xacd2('0x17')]['message']);}else{logger['info'](_0xacd2('0x13'),_0x1cb7c0,_0xacd2('0x14'));_0x5cd14b(_0x502567[_0xacd2('0x1a')][_0xacd2('0x19')]);}})[_0xacd2('0x1b')](function(_0xf79043){logger[_0xacd2('0x17')](_0xacd2('0x13'),_0x1cb7c0,_0xf79043);_0x440fa7(_0xf79043);});});}
\ No newline at end of file
+var _0xe3d0=['ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','http','redis','defaults','localhost','socket.io-emitter','./dashboardItem.socket','register','request','then','info','DashboardItem,\x20%s,\x20%s','request\x20sent','debug','code','error','message','result','catch','lodash','util','moment','randomstring'];(function(_0x5e8606,_0x2617ff){var _0x4560d8=function(_0x503f44){while(--_0x503f44){_0x5e8606['push'](_0x5e8606['shift']());}};_0x4560d8(++_0x2617ff);}(_0xe3d0,0x175));var _0x0e3d=function(_0x576f37,_0x5d80b1){_0x576f37=_0x576f37-0x0;var _0x1f41b4=_0xe3d0[_0x576f37];return _0x1f41b4;};'use strict';var _=require(_0x0e3d('0x0'));var util=require(_0x0e3d('0x1'));var moment=require(_0x0e3d('0x2'));var BPromise=require('bluebird');var rs=require(_0x0e3d('0x3'));var fs=require('fs');var Redis=require(_0x0e3d('0x4'));var db=require(_0x0e3d('0x5'))['db'];var utils=require(_0x0e3d('0x6'));var logger=require(_0x0e3d('0x7'))('rpc');var config=require(_0x0e3d('0x8'));var jayson=require(_0x0e3d('0x9'));var client=jayson[_0x0e3d('0xa')][_0x0e3d('0xb')]({'port':0x232a});config[_0x0e3d('0xc')]=_[_0x0e3d('0xd')](config[_0x0e3d('0xc')],{'host':_0x0e3d('0xe'),'port':0x18eb});var socket=require(_0x0e3d('0xf'))(new Redis(config[_0x0e3d('0xc')]));require(_0x0e3d('0x10'))[_0x0e3d('0x11')](socket);function respondWithRpcPromise(_0x1a85cf,_0x220aab,_0x3e650d){return new BPromise(function(_0x5a8f29,_0x54d799){return client[_0x0e3d('0x12')](_0x1a85cf,_0x3e650d)[_0x0e3d('0x13')](function(_0x48224b){logger[_0x0e3d('0x14')](_0x0e3d('0x15'),_0x220aab,_0x0e3d('0x16'));logger[_0x0e3d('0x17')]('DashboardItem,\x20%s,\x20%s,\x20%s',_0x220aab,_0x0e3d('0x16'),JSON['stringify'](_0x48224b));if(_0x48224b['error']){if(_0x48224b['error'][_0x0e3d('0x18')]===0x1f4){logger[_0x0e3d('0x19')](_0x0e3d('0x15'),_0x220aab,_0x48224b[_0x0e3d('0x19')][_0x0e3d('0x1a')]);return _0x54d799(_0x48224b['error'][_0x0e3d('0x1a')]);}logger[_0x0e3d('0x19')]('DashboardItem,\x20%s,\x20%s',_0x220aab,_0x48224b['error'][_0x0e3d('0x1a')]);return _0x5a8f29(_0x48224b[_0x0e3d('0x19')][_0x0e3d('0x1a')]);}else{logger[_0x0e3d('0x14')](_0x0e3d('0x15'),_0x220aab,_0x0e3d('0x16'));_0x5a8f29(_0x48224b[_0x0e3d('0x1b')][_0x0e3d('0x1a')]);}})[_0x0e3d('0x1c')](function(_0x1f1a6d){logger[_0x0e3d('0x19')](_0x0e3d('0x15'),_0x220aab,_0x1f1a6d);_0x54d799(_0x1f1a6d);});});}
\ No newline at end of file