Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / dashboardItem / dashboardItem.rpc.js
index eee5693..44a2b48 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe5b6=['code','DashboardItem,\x20%s,\x20%s','message','info','result','catch','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http','redis','defaults','localhost','socket.io-emitter','register','request','then','request\x20sent','debug','stringify','error'];(function(_0x5e4dcd,_0x3e8c0f){var _0x196dbb=function(_0x42b7ab){while(--_0x42b7ab){_0x5e4dcd['push'](_0x5e4dcd['shift']());}};_0x196dbb(++_0x3e8c0f);}(_0xe5b6,0xd1));var _0x6e5b=function(_0x33b1ce,_0x18f967){_0x33b1ce=_0x33b1ce-0x0;var _0x27cc81=_0xe5b6[_0x33b1ce];return _0x27cc81;};'use strict';var _=require(_0x6e5b('0x0'));var util=require(_0x6e5b('0x1'));var moment=require('moment');var BPromise=require(_0x6e5b('0x2'));var rs=require(_0x6e5b('0x3'));var fs=require('fs');var Redis=require(_0x6e5b('0x4'));var db=require(_0x6e5b('0x5'))['db'];var utils=require(_0x6e5b('0x6'));var logger=require(_0x6e5b('0x7'))(_0x6e5b('0x8'));var config=require(_0x6e5b('0x9'));var jayson=require(_0x6e5b('0xa'));var client=jayson['client'][_0x6e5b('0xb')]({'port':0x232a});config[_0x6e5b('0xc')]=_[_0x6e5b('0xd')](config[_0x6e5b('0xc')],{'host':_0x6e5b('0xe'),'port':0x18eb});var socket=require(_0x6e5b('0xf'))(new Redis(config[_0x6e5b('0xc')]));require('./dashboardItem.socket')[_0x6e5b('0x10')](socket);function respondWithRpcPromise(_0x50205f,_0xbabc5f,_0x21279a){return new BPromise(function(_0x4ce52e,_0x418c43){return client[_0x6e5b('0x11')](_0x50205f,_0x21279a)[_0x6e5b('0x12')](function(_0x4d7377){logger['info']('DashboardItem,\x20%s,\x20%s',_0xbabc5f,_0x6e5b('0x13'));logger[_0x6e5b('0x14')]('DashboardItem,\x20%s,\x20%s,\x20%s',_0xbabc5f,_0x6e5b('0x13'),JSON[_0x6e5b('0x15')](_0x4d7377));if(_0x4d7377[_0x6e5b('0x16')]){if(_0x4d7377[_0x6e5b('0x16')][_0x6e5b('0x17')]===0x1f4){logger[_0x6e5b('0x16')](_0x6e5b('0x18'),_0xbabc5f,_0x4d7377[_0x6e5b('0x16')][_0x6e5b('0x19')]);return _0x418c43(_0x4d7377[_0x6e5b('0x16')]['message']);}logger[_0x6e5b('0x16')]('DashboardItem,\x20%s,\x20%s',_0xbabc5f,_0x4d7377[_0x6e5b('0x16')]['message']);return _0x4ce52e(_0x4d7377[_0x6e5b('0x16')]['message']);}else{logger[_0x6e5b('0x1a')](_0x6e5b('0x18'),_0xbabc5f,'request\x20sent');_0x4ce52e(_0x4d7377[_0x6e5b('0x1b')][_0x6e5b('0x19')]);}})[_0x6e5b('0x1c')](function(_0x40e18e){logger[_0x6e5b('0x16')](_0x6e5b('0x18'),_0xbabc5f,_0x40e18e);_0x418c43(_0x40e18e);});});}
\ No newline at end of file
+var _0xf1a2=['../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','redis','defaults','./dashboardItem.socket','register','request','then','info','DashboardItem,\x20%s,\x20%s','request\x20sent','debug','stringify','error','message','result','lodash','util','moment','bluebird','randomstring','ioredis'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xf1a2,0x1f2));var _0x2f1a=function(_0x59b0c9,_0x4a08cf){_0x59b0c9=_0x59b0c9-0x0;var _0x5139d6=_0xf1a2[_0x59b0c9];return _0x5139d6;};'use strict';var _=require(_0x2f1a('0x0'));var util=require(_0x2f1a('0x1'));var moment=require(_0x2f1a('0x2'));var BPromise=require(_0x2f1a('0x3'));var rs=require(_0x2f1a('0x4'));var fs=require('fs');var Redis=require(_0x2f1a('0x5'));var db=require(_0x2f1a('0x6'))['db'];var utils=require(_0x2f1a('0x7'));var logger=require(_0x2f1a('0x8'))(_0x2f1a('0x9'));var config=require(_0x2f1a('0xa'));var jayson=require(_0x2f1a('0xb'));var client=jayson[_0x2f1a('0xc')][_0x2f1a('0xd')]({'port':0x232a});config[_0x2f1a('0xe')]=_[_0x2f1a('0xf')](config[_0x2f1a('0xe')],{'host':'localhost','port':0x18eb});var socket=require('socket.io-emitter')(new Redis(config['redis']));require(_0x2f1a('0x10'))[_0x2f1a('0x11')](socket);function respondWithRpcPromise(_0x1f65a1,_0x7d638b,_0x9047c6){return new BPromise(function(_0x34780c,_0x395f9d){return client[_0x2f1a('0x12')](_0x1f65a1,_0x9047c6)[_0x2f1a('0x13')](function(_0x6ad614){logger[_0x2f1a('0x14')](_0x2f1a('0x15'),_0x7d638b,_0x2f1a('0x16'));logger[_0x2f1a('0x17')]('DashboardItem,\x20%s,\x20%s,\x20%s',_0x7d638b,_0x2f1a('0x16'),JSON[_0x2f1a('0x18')](_0x6ad614));if(_0x6ad614['error']){if(_0x6ad614['error']['code']===0x1f4){logger[_0x2f1a('0x19')](_0x2f1a('0x15'),_0x7d638b,_0x6ad614[_0x2f1a('0x19')][_0x2f1a('0x1a')]);return _0x395f9d(_0x6ad614[_0x2f1a('0x19')][_0x2f1a('0x1a')]);}logger[_0x2f1a('0x19')](_0x2f1a('0x15'),_0x7d638b,_0x6ad614[_0x2f1a('0x19')][_0x2f1a('0x1a')]);return _0x34780c(_0x6ad614[_0x2f1a('0x19')][_0x2f1a('0x1a')]);}else{logger[_0x2f1a('0x14')](_0x2f1a('0x15'),_0x7d638b,_0x2f1a('0x16'));_0x34780c(_0x6ad614[_0x2f1a('0x1b')][_0x2f1a('0x1a')]);}})['catch'](function(_0x4db3ec){logger[_0x2f1a('0x19')](_0x2f1a('0x15'),_0x7d638b,_0x4db3ec);_0x395f9d(_0x4db3ec);});});}
\ No newline at end of file