Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / server / api / dashboardItem / dashboardItem.rpc.js
index 25b0e10..41f4b2f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf8ab=['message','catch','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client','http','redis','defaults','localhost','./dashboardItem.socket','register','request','then','info','DashboardItem,\x20%s,\x20%s','request\x20sent','debug','DashboardItem,\x20%s,\x20%s,\x20%s','stringify','error','code'];(function(_0x16ec8b,_0x3c1964){var _0x2255fd=function(_0x3aa548){while(--_0x3aa548){_0x16ec8b['push'](_0x16ec8b['shift']());}};_0x2255fd(++_0x3c1964);}(_0xf8ab,0xc6));var _0xbf8a=function(_0x928573,_0x2616e6){_0x928573=_0x928573-0x0;var _0x154f56=_0xf8ab[_0x928573];return _0x154f56;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0xbf8a('0x0'));var BPromise=require(_0xbf8a('0x1'));var rs=require(_0xbf8a('0x2'));var fs=require('fs');var Redis=require(_0xbf8a('0x3'));var db=require(_0xbf8a('0x4'))['db'];var utils=require(_0xbf8a('0x5'));var logger=require('../../config/logger')(_0xbf8a('0x6'));var config=require(_0xbf8a('0x7'));var jayson=require(_0xbf8a('0x8'));var client=jayson[_0xbf8a('0x9')][_0xbf8a('0xa')]({'port':0x232a});config[_0xbf8a('0xb')]=_[_0xbf8a('0xc')](config['redis'],{'host':_0xbf8a('0xd'),'port':0x18eb});var socket=require('socket.io-emitter')(new Redis(config[_0xbf8a('0xb')]));require(_0xbf8a('0xe'))[_0xbf8a('0xf')](socket);function respondWithRpcPromise(_0x9aef84,_0x16c807,_0x302a2b){return new BPromise(function(_0x1a26b0,_0x376dc1){return client[_0xbf8a('0x10')](_0x9aef84,_0x302a2b)[_0xbf8a('0x11')](function(_0x4a3474){logger[_0xbf8a('0x12')](_0xbf8a('0x13'),_0x16c807,_0xbf8a('0x14'));logger[_0xbf8a('0x15')](_0xbf8a('0x16'),_0x16c807,_0xbf8a('0x14'),JSON[_0xbf8a('0x17')](_0x4a3474));if(_0x4a3474[_0xbf8a('0x18')]){if(_0x4a3474[_0xbf8a('0x18')][_0xbf8a('0x19')]===0x1f4){logger[_0xbf8a('0x18')](_0xbf8a('0x13'),_0x16c807,_0x4a3474[_0xbf8a('0x18')]['message']);return _0x376dc1(_0x4a3474[_0xbf8a('0x18')]['message']);}logger[_0xbf8a('0x18')](_0xbf8a('0x13'),_0x16c807,_0x4a3474[_0xbf8a('0x18')][_0xbf8a('0x1a')]);return _0x1a26b0(_0x4a3474[_0xbf8a('0x18')]['message']);}else{logger[_0xbf8a('0x12')](_0xbf8a('0x13'),_0x16c807,_0xbf8a('0x14'));_0x1a26b0(_0x4a3474['result'][_0xbf8a('0x1a')]);}})[_0xbf8a('0x1b')](function(_0x493320){logger[_0xbf8a('0x18')](_0xbf8a('0x13'),_0x16c807,_0x493320);_0x376dc1(_0x493320);});});}
\ No newline at end of file
+var _0xf4c3=['../../config/environment','jayson/promise','client','http','redis','defaults','localhost','socket.io-emitter','./dashboardItem.socket','register','then','info','DashboardItem,\x20%s,\x20%s','debug','DashboardItem,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','message','result','lodash','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc'];(function(_0x39c78f,_0x413f03){var _0xd13125=function(_0x16949c){while(--_0x16949c){_0x39c78f['push'](_0x39c78f['shift']());}};_0xd13125(++_0x413f03);}(_0xf4c3,0x1df));var _0x3f4c=function(_0x47a204,_0x24b906){_0x47a204=_0x47a204-0x0;var _0x5623fc=_0xf4c3[_0x47a204];return _0x5623fc;};'use strict';var _=require(_0x3f4c('0x0'));var util=require('util');var moment=require('moment');var BPromise=require(_0x3f4c('0x1'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x3f4c('0x2'));var db=require(_0x3f4c('0x3'))['db'];var utils=require(_0x3f4c('0x4'));var logger=require(_0x3f4c('0x5'))(_0x3f4c('0x6'));var config=require(_0x3f4c('0x7'));var jayson=require(_0x3f4c('0x8'));var client=jayson[_0x3f4c('0x9')][_0x3f4c('0xa')]({'port':0x232a});config[_0x3f4c('0xb')]=_[_0x3f4c('0xc')](config['redis'],{'host':_0x3f4c('0xd'),'port':0x18eb});var socket=require(_0x3f4c('0xe'))(new Redis(config[_0x3f4c('0xb')]));require(_0x3f4c('0xf'))[_0x3f4c('0x10')](socket);function respondWithRpcPromise(_0x10e002,_0x249c7c,_0x48d6c3){return new BPromise(function(_0x4d68c4,_0x45738b){return client['request'](_0x10e002,_0x48d6c3)[_0x3f4c('0x11')](function(_0xd81e9f){logger[_0x3f4c('0x12')](_0x3f4c('0x13'),_0x249c7c,'request\x20sent');logger[_0x3f4c('0x14')](_0x3f4c('0x15'),_0x249c7c,_0x3f4c('0x16'),JSON[_0x3f4c('0x17')](_0xd81e9f));if(_0xd81e9f[_0x3f4c('0x18')]){if(_0xd81e9f['error']['code']===0x1f4){logger['error'](_0x3f4c('0x13'),_0x249c7c,_0xd81e9f['error'][_0x3f4c('0x19')]);return _0x45738b(_0xd81e9f[_0x3f4c('0x18')]['message']);}logger['error'](_0x3f4c('0x13'),_0x249c7c,_0xd81e9f[_0x3f4c('0x18')][_0x3f4c('0x19')]);return _0x4d68c4(_0xd81e9f['error'][_0x3f4c('0x19')]);}else{logger[_0x3f4c('0x12')]('DashboardItem,\x20%s,\x20%s',_0x249c7c,'request\x20sent');_0x4d68c4(_0xd81e9f[_0x3f4c('0x1a')][_0x3f4c('0x19')]);}})['catch'](function(_0x37f975){logger[_0x3f4c('0x18')]('DashboardItem,\x20%s,\x20%s',_0x249c7c,_0x37f975);_0x45738b(_0x37f975);});});}
\ No newline at end of file