Built motion from commit (unavailable).|2.5.1
[motion2.git] / server / api / dashboardItem / dashboardItem.rpc.js
index b0ed87a..be71d44 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf5ff=['./dashboardItem.socket','request','DashboardItem,\x20%s,\x20%s','request\x20sent','DashboardItem,\x20%s,\x20%s,\x20%s','error','code','message','result','catch','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client','http','defaults','localhost','socket.io-emitter'];(function(_0x4a53eb,_0x1a82f8){var _0x24e153=function(_0x3c42a6){while(--_0x3c42a6){_0x4a53eb['push'](_0x4a53eb['shift']());}};_0x24e153(++_0x1a82f8);}(_0xf5ff,0x1d2));var _0xff5f=function(_0x448442,_0x5b125c){_0x448442=_0x448442-0x0;var _0x4adf19=_0xf5ff[_0x448442];return _0x4adf19;};'use strict';var _=require('lodash');var util=require(_0xff5f('0x0'));var moment=require(_0xff5f('0x1'));var BPromise=require('bluebird');var rs=require(_0xff5f('0x2'));var fs=require('fs');var Redis=require(_0xff5f('0x3'));var db=require(_0xff5f('0x4'))['db'];var utils=require(_0xff5f('0x5'));var logger=require('../../config/logger')(_0xff5f('0x6'));var config=require(_0xff5f('0x7'));var jayson=require(_0xff5f('0x8'));var client=jayson[_0xff5f('0x9')][_0xff5f('0xa')]({'port':0x232a});config['redis']=_[_0xff5f('0xb')](config['redis'],{'host':_0xff5f('0xc'),'port':0x18eb});var socket=require(_0xff5f('0xd'))(new Redis(config['redis']));require(_0xff5f('0xe'))['register'](socket);function respondWithRpcPromise(_0x5583df,_0x119058,_0x3977d4){return new BPromise(function(_0x28a638,_0x63741e){return client[_0xff5f('0xf')](_0x5583df,_0x3977d4)['then'](function(_0x929157){logger['info'](_0xff5f('0x10'),_0x119058,_0xff5f('0x11'));logger['debug'](_0xff5f('0x12'),_0x119058,_0xff5f('0x11'),JSON['stringify'](_0x929157));if(_0x929157[_0xff5f('0x13')]){if(_0x929157[_0xff5f('0x13')][_0xff5f('0x14')]===0x1f4){logger['error'](_0xff5f('0x10'),_0x119058,_0x929157[_0xff5f('0x13')]['message']);return _0x63741e(_0x929157[_0xff5f('0x13')][_0xff5f('0x15')]);}logger[_0xff5f('0x13')](_0xff5f('0x10'),_0x119058,_0x929157[_0xff5f('0x13')][_0xff5f('0x15')]);return _0x28a638(_0x929157[_0xff5f('0x13')][_0xff5f('0x15')]);}else{logger['info']('DashboardItem,\x20%s,\x20%s',_0x119058,'request\x20sent');_0x28a638(_0x929157[_0xff5f('0x16')][_0xff5f('0x15')]);}})[_0xff5f('0x17')](function(_0x50cd42){logger[_0xff5f('0x13')](_0xff5f('0x10'),_0x119058,_0x50cd42);_0x63741e(_0x50cd42);});});}
\ No newline at end of file
+var _0x50ca=['moment','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger','client','http','defaults','redis','localhost','socket.io-emitter','./dashboardItem.socket','register','then','info','DashboardItem,\x20%s,\x20%s','request\x20sent','debug','DashboardItem,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','util'];(function(_0x310010,_0x567eb1){var _0x49c5c4=function(_0x226c6f){while(--_0x226c6f){_0x310010['push'](_0x310010['shift']());}};_0x49c5c4(++_0x567eb1);}(_0x50ca,0xf2));var _0xa50c=function(_0x3bf83f,_0x181cac){_0x3bf83f=_0x3bf83f-0x0;var _0x22c4a9=_0x50ca[_0x3bf83f];return _0x22c4a9;};'use strict';var _=require('lodash');var util=require(_0xa50c('0x0'));var moment=require(_0xa50c('0x1'));var BPromise=require(_0xa50c('0x2'));var rs=require(_0xa50c('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xa50c('0x4'))['db'];var utils=require(_0xa50c('0x5'));var logger=require(_0xa50c('0x6'))('rpc');var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0xa50c('0x7')][_0xa50c('0x8')]({'port':0x232a});config['redis']=_[_0xa50c('0x9')](config[_0xa50c('0xa')],{'host':_0xa50c('0xb'),'port':0x18eb});var socket=require(_0xa50c('0xc'))(new Redis(config['redis']));require(_0xa50c('0xd'))[_0xa50c('0xe')](socket);function respondWithRpcPromise(_0x295be0,_0x3a79c9,_0x143d42){return new BPromise(function(_0x53b01b,_0x4b4eab){return client['request'](_0x295be0,_0x143d42)[_0xa50c('0xf')](function(_0x4f20c2){logger[_0xa50c('0x10')](_0xa50c('0x11'),_0x3a79c9,_0xa50c('0x12'));logger[_0xa50c('0x13')](_0xa50c('0x14'),_0x3a79c9,_0xa50c('0x12'),JSON[_0xa50c('0x15')](_0x4f20c2));if(_0x4f20c2['error']){if(_0x4f20c2[_0xa50c('0x16')][_0xa50c('0x17')]===0x1f4){logger[_0xa50c('0x16')](_0xa50c('0x11'),_0x3a79c9,_0x4f20c2[_0xa50c('0x16')][_0xa50c('0x18')]);return _0x4b4eab(_0x4f20c2[_0xa50c('0x16')][_0xa50c('0x18')]);}logger[_0xa50c('0x16')]('DashboardItem,\x20%s,\x20%s',_0x3a79c9,_0x4f20c2[_0xa50c('0x16')][_0xa50c('0x18')]);return _0x53b01b(_0x4f20c2[_0xa50c('0x16')][_0xa50c('0x18')]);}else{logger[_0xa50c('0x10')](_0xa50c('0x11'),_0x3a79c9,_0xa50c('0x12'));_0x53b01b(_0x4f20c2[_0xa50c('0x19')][_0xa50c('0x18')]);}})[_0xa50c('0x1a')](function(_0x2ff63e){logger['error'](_0xa50c('0x11'),_0x3a79c9,_0x2ff63e);_0x4b4eab(_0x2ff63e);});});}
\ No newline at end of file