Built motion from commit 14588770.|2.5.38
[motion2.git] / server / api / dashboardItem / dashboardItem.rpc.js
index 93d7f17..c644e2d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3783=['DashboardItem,\x20%s,\x20%s','message','result','catch','lodash','util','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','client','redis','defaults','socket.io-emitter','./dashboardItem.socket','register','request','then','info','request\x20sent','DashboardItem,\x20%s,\x20%s,\x20%s','error'];(function(_0xb5466b,_0x1b0411){var _0x14391a=function(_0x18aaf5){while(--_0x18aaf5){_0xb5466b['push'](_0xb5466b['shift']());}};_0x14391a(++_0x1b0411);}(_0x3783,0x68));var _0x3378=function(_0x26b7a6,_0x4f58d1){_0x26b7a6=_0x26b7a6-0x0;var _0x20c444=_0x3783[_0x26b7a6];return _0x20c444;};'use strict';var _=require(_0x3378('0x0'));var util=require(_0x3378('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0x3378('0x2'));var fs=require('fs');var Redis=require(_0x3378('0x3'));var db=require(_0x3378('0x4'))['db'];var utils=require(_0x3378('0x5'));var logger=require(_0x3378('0x6'))(_0x3378('0x7'));var config=require(_0x3378('0x8'));var jayson=require('jayson/promise');var client=jayson[_0x3378('0x9')]['http']({'port':0x232a});config[_0x3378('0xa')]=_[_0x3378('0xb')](config['redis'],{'host':'localhost','port':0x18eb});var socket=require(_0x3378('0xc'))(new Redis(config[_0x3378('0xa')]));require(_0x3378('0xd'))[_0x3378('0xe')](socket);function respondWithRpcPromise(_0x47edeb,_0x52ca3c,_0x2ab890){return new BPromise(function(_0x58d9cf,_0x32dc06){return client[_0x3378('0xf')](_0x47edeb,_0x2ab890)[_0x3378('0x10')](function(_0x4a7d4d){logger[_0x3378('0x11')]('DashboardItem,\x20%s,\x20%s',_0x52ca3c,_0x3378('0x12'));logger['debug'](_0x3378('0x13'),_0x52ca3c,_0x3378('0x12'),JSON['stringify'](_0x4a7d4d));if(_0x4a7d4d[_0x3378('0x14')]){if(_0x4a7d4d['error']['code']===0x1f4){logger['error'](_0x3378('0x15'),_0x52ca3c,_0x4a7d4d['error'][_0x3378('0x16')]);return _0x32dc06(_0x4a7d4d[_0x3378('0x14')][_0x3378('0x16')]);}logger[_0x3378('0x14')]('DashboardItem,\x20%s,\x20%s',_0x52ca3c,_0x4a7d4d[_0x3378('0x14')][_0x3378('0x16')]);return _0x58d9cf(_0x4a7d4d[_0x3378('0x14')][_0x3378('0x16')]);}else{logger[_0x3378('0x11')](_0x3378('0x15'),_0x52ca3c,_0x3378('0x12'));_0x58d9cf(_0x4a7d4d[_0x3378('0x17')][_0x3378('0x16')]);}})[_0x3378('0x18')](function(_0x2b9410){logger[_0x3378('0x14')]('DashboardItem,\x20%s,\x20%s',_0x52ca3c,_0x2b9410);_0x32dc06(_0x2b9410);});});}
\ No newline at end of file
+var _0xf571=['../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','redis','localhost','request','then','info','request\x20sent','debug','DashboardItem,\x20%s,\x20%s,\x20%s','DashboardItem,\x20%s,\x20%s','error','message','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb'];(function(_0x288b93,_0x3c556c){var _0x8965e9=function(_0xf7f560){while(--_0xf7f560){_0x288b93['push'](_0x288b93['shift']());}};_0x8965e9(++_0x3c556c);}(_0xf571,0x7b));var _0x1f57=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xf571[_0x14add3];return _0x4a174f;};'use strict';var _=require(_0x1f57('0x0'));var util=require(_0x1f57('0x1'));var moment=require(_0x1f57('0x2'));var BPromise=require(_0x1f57('0x3'));var rs=require(_0x1f57('0x4'));var fs=require('fs');var Redis=require(_0x1f57('0x5'));var db=require(_0x1f57('0x6'))['db'];var utils=require(_0x1f57('0x7'));var logger=require(_0x1f57('0x8'))(_0x1f57('0x9'));var config=require(_0x1f57('0xa'));var jayson=require(_0x1f57('0xb'));var client=jayson[_0x1f57('0xc')][_0x1f57('0xd')]({'port':0x232a});config[_0x1f57('0xe')]=_['defaults'](config['redis'],{'host':_0x1f57('0xf'),'port':0x18eb});var socket=require('socket.io-emitter')(new Redis(config['redis']));require('./dashboardItem.socket')['register'](socket);function respondWithRpcPromise(_0x4f2dd2,_0x3e99b4,_0x50c753){return new BPromise(function(_0x517c63,_0x1f6a08){return client[_0x1f57('0x10')](_0x4f2dd2,_0x50c753)[_0x1f57('0x11')](function(_0x56c870){logger[_0x1f57('0x12')]('DashboardItem,\x20%s,\x20%s',_0x3e99b4,_0x1f57('0x13'));logger[_0x1f57('0x14')](_0x1f57('0x15'),_0x3e99b4,'request\x20sent',JSON['stringify'](_0x56c870));if(_0x56c870['error']){if(_0x56c870['error']['code']===0x1f4){logger['error'](_0x1f57('0x16'),_0x3e99b4,_0x56c870[_0x1f57('0x17')][_0x1f57('0x18')]);return _0x1f6a08(_0x56c870[_0x1f57('0x17')][_0x1f57('0x18')]);}logger[_0x1f57('0x17')](_0x1f57('0x16'),_0x3e99b4,_0x56c870[_0x1f57('0x17')][_0x1f57('0x18')]);return _0x517c63(_0x56c870[_0x1f57('0x17')][_0x1f57('0x18')]);}else{logger[_0x1f57('0x12')]('DashboardItem,\x20%s,\x20%s',_0x3e99b4,_0x1f57('0x13'));_0x517c63(_0x56c870['result'][_0x1f57('0x18')]);}})[_0x1f57('0x19')](function(_0x58c1cc){logger[_0x1f57('0x17')](_0x1f57('0x16'),_0x3e99b4,_0x58c1cc);_0x1f6a08(_0x58c1cc);});});}
\ No newline at end of file