Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / dashboardItem / dashboardItem.rpc.js
index 08216f2..f5aa48b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xff3c=['DashboardItem,\x20%s,\x20%s,\x20%s','request\x20sent','error','code','message','result','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','redis','defaults','socket.io-emitter','register','request','then','info','DashboardItem,\x20%s,\x20%s','debug'];(function(_0x313ed3,_0x4ea2da){var _0x595a64=function(_0x300adf){while(--_0x300adf){_0x313ed3['push'](_0x313ed3['shift']());}};_0x595a64(++_0x4ea2da);}(_0xff3c,0x10b));var _0xcff3=function(_0x39ed20,_0x3b8d39){_0x39ed20=_0x39ed20-0x0;var _0x57bddf=_0xff3c[_0x39ed20];return _0x57bddf;};'use strict';var _=require(_0xcff3('0x0'));var util=require(_0xcff3('0x1'));var moment=require(_0xcff3('0x2'));var BPromise=require(_0xcff3('0x3'));var rs=require(_0xcff3('0x4'));var fs=require('fs');var Redis=require(_0xcff3('0x5'));var db=require(_0xcff3('0x6'))['db'];var utils=require(_0xcff3('0x7'));var logger=require(_0xcff3('0x8'))(_0xcff3('0x9'));var config=require(_0xcff3('0xa'));var jayson=require(_0xcff3('0xb'));var client=jayson[_0xcff3('0xc')][_0xcff3('0xd')]({'port':0x232a});config[_0xcff3('0xe')]=_[_0xcff3('0xf')](config[_0xcff3('0xe')],{'host':'localhost','port':0x18eb});var socket=require(_0xcff3('0x10'))(new Redis(config[_0xcff3('0xe')]));require('./dashboardItem.socket')[_0xcff3('0x11')](socket);function respondWithRpcPromise(_0x39b257,_0x388b27,_0x46a7dc){return new BPromise(function(_0x54c66b,_0x4ff867){return client[_0xcff3('0x12')](_0x39b257,_0x46a7dc)[_0xcff3('0x13')](function(_0x5e64c2){logger[_0xcff3('0x14')](_0xcff3('0x15'),_0x388b27,'request\x20sent');logger[_0xcff3('0x16')](_0xcff3('0x17'),_0x388b27,_0xcff3('0x18'),JSON['stringify'](_0x5e64c2));if(_0x5e64c2[_0xcff3('0x19')]){if(_0x5e64c2['error'][_0xcff3('0x1a')]===0x1f4){logger[_0xcff3('0x19')](_0xcff3('0x15'),_0x388b27,_0x5e64c2['error'][_0xcff3('0x1b')]);return _0x4ff867(_0x5e64c2[_0xcff3('0x19')][_0xcff3('0x1b')]);}logger['error']('DashboardItem,\x20%s,\x20%s',_0x388b27,_0x5e64c2[_0xcff3('0x19')][_0xcff3('0x1b')]);return _0x54c66b(_0x5e64c2['error'][_0xcff3('0x1b')]);}else{logger[_0xcff3('0x14')](_0xcff3('0x15'),_0x388b27,_0xcff3('0x18'));_0x54c66b(_0x5e64c2[_0xcff3('0x1c')][_0xcff3('0x1b')]);}})['catch'](function(_0x2de7ea){logger['error'](_0xcff3('0x15'),_0x388b27,_0x2de7ea);_0x4ff867(_0x2de7ea);});});}
\ No newline at end of file
+var _0xd83f=['message','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../config/utils','rpc','jayson/promise','client','http','defaults','redis','./dashboardItem.socket','register','request','info','DashboardItem,\x20%s,\x20%s','request\x20sent','debug','DashboardItem,\x20%s,\x20%s,\x20%s','stringify','error','code'];(function(_0x238f08,_0x17b2d6){var _0x306697=function(_0x28a705){while(--_0x28a705){_0x238f08['push'](_0x238f08['shift']());}};_0x306697(++_0x17b2d6);}(_0xd83f,0x13a));var _0xfd83=function(_0x4cf98e,_0xba4b79){_0x4cf98e=_0x4cf98e-0x0;var _0x1623ac=_0xd83f[_0x4cf98e];return _0x1623ac;};'use strict';var _=require(_0xfd83('0x0'));var util=require(_0xfd83('0x1'));var moment=require(_0xfd83('0x2'));var BPromise=require(_0xfd83('0x3'));var rs=require(_0xfd83('0x4'));var fs=require('fs');var Redis=require(_0xfd83('0x5'));var db=require('../../mysqldb')['db'];var utils=require(_0xfd83('0x6'));var logger=require('../../config/logger')(_0xfd83('0x7'));var config=require('../../config/environment');var jayson=require(_0xfd83('0x8'));var client=jayson[_0xfd83('0x9')][_0xfd83('0xa')]({'port':0x232a});config['redis']=_[_0xfd83('0xb')](config[_0xfd83('0xc')],{'host':'localhost','port':0x18eb});var socket=require('socket.io-emitter')(new Redis(config['redis']));require(_0xfd83('0xd'))[_0xfd83('0xe')](socket);function respondWithRpcPromise(_0x309449,_0x1846dc,_0x27b628){return new BPromise(function(_0x5342e0,_0xa5729b){return client[_0xfd83('0xf')](_0x309449,_0x27b628)['then'](function(_0x432538){logger[_0xfd83('0x10')](_0xfd83('0x11'),_0x1846dc,_0xfd83('0x12'));logger[_0xfd83('0x13')](_0xfd83('0x14'),_0x1846dc,_0xfd83('0x12'),JSON[_0xfd83('0x15')](_0x432538));if(_0x432538[_0xfd83('0x16')]){if(_0x432538['error'][_0xfd83('0x17')]===0x1f4){logger['error'](_0xfd83('0x11'),_0x1846dc,_0x432538[_0xfd83('0x16')]['message']);return _0xa5729b(_0x432538[_0xfd83('0x16')][_0xfd83('0x18')]);}logger['error'](_0xfd83('0x11'),_0x1846dc,_0x432538['error'][_0xfd83('0x18')]);return _0x5342e0(_0x432538[_0xfd83('0x16')][_0xfd83('0x18')]);}else{logger[_0xfd83('0x10')](_0xfd83('0x11'),_0x1846dc,_0xfd83('0x12'));_0x5342e0(_0x432538['result'][_0xfd83('0x18')]);}})[_0xfd83('0x19')](function(_0x5a1f76){logger[_0xfd83('0x16')](_0xfd83('0x11'),_0x1846dc,_0x5a1f76);_0xa5729b(_0x5a1f76);});});}
\ No newline at end of file