Built motion from commit (unavailable).|2.5.29
[motion2.git] / server / api / chatApplication / chatApplication.rpc.js
index 0980aef..9b99a54 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfcfb=['../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','http','request','then','info','request\x20sent','debug','ChatApplication,\x20%s,\x20%s,\x20%s','stringify','error','code','ChatApplication,\x20%s,\x20%s','message','result','lodash','moment','bluebird','randomstring'];(function(_0x5647c8,_0x590008){var _0x1e464f=function(_0x2224a4){while(--_0x2224a4){_0x5647c8['push'](_0x5647c8['shift']());}};_0x1e464f(++_0x590008);}(_0xfcfb,0x9d));var _0xbfcf=function(_0x4ce15c,_0x1bbcbd){_0x4ce15c=_0x4ce15c-0x0;var _0x5ee259=_0xfcfb[_0x4ce15c];return _0x5ee259;};'use strict';var _=require(_0xbfcf('0x0'));var util=require('util');var moment=require(_0xbfcf('0x1'));var BPromise=require(_0xbfcf('0x2'));var rs=require(_0xbfcf('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xbfcf('0x4'))['db'];var utils=require(_0xbfcf('0x5'));var logger=require(_0xbfcf('0x6'))('rpc');var config=require(_0xbfcf('0x7'));var jayson=require(_0xbfcf('0x8'));var client=jayson[_0xbfcf('0x9')][_0xbfcf('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x39011a,_0x531aa6,_0x4681c2){return new BPromise(function(_0x18bd30,_0x5da9fa){return client[_0xbfcf('0xb')](_0x39011a,_0x4681c2)[_0xbfcf('0xc')](function(_0x1ca392){logger[_0xbfcf('0xd')]('ChatApplication,\x20%s,\x20%s',_0x531aa6,_0xbfcf('0xe'));logger[_0xbfcf('0xf')](_0xbfcf('0x10'),_0x531aa6,_0xbfcf('0xe'),JSON[_0xbfcf('0x11')](_0x1ca392));if(_0x1ca392[_0xbfcf('0x12')]){if(_0x1ca392[_0xbfcf('0x12')][_0xbfcf('0x13')]===0x1f4){logger[_0xbfcf('0x12')](_0xbfcf('0x14'),_0x531aa6,_0x1ca392[_0xbfcf('0x12')][_0xbfcf('0x15')]);return _0x5da9fa(_0x1ca392[_0xbfcf('0x12')][_0xbfcf('0x15')]);}logger[_0xbfcf('0x12')]('ChatApplication,\x20%s,\x20%s',_0x531aa6,_0x1ca392[_0xbfcf('0x12')][_0xbfcf('0x15')]);return _0x18bd30(_0x1ca392[_0xbfcf('0x12')][_0xbfcf('0x15')]);}else{logger[_0xbfcf('0xd')](_0xbfcf('0x14'),_0x531aa6,_0xbfcf('0xe'));_0x18bd30(_0x1ca392[_0xbfcf('0x16')][_0xbfcf('0x15')]);}})['catch'](function(_0x2a6a4e){logger[_0xbfcf('0x12')](_0xbfcf('0x14'),_0x531aa6,_0x2a6a4e);_0x5da9fa(_0x2a6a4e);});});}
\ No newline at end of file
+var _0x1e00=['ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','http','request','then','info','ChatApplication,\x20%s,\x20%s','request\x20sent','ChatApplication,\x20%s,\x20%s,\x20%s','error','code','message','result','catch','lodash','bluebird','randomstring'];(function(_0x1e91c1,_0x357087){var _0x1bfeca=function(_0x286663){while(--_0x286663){_0x1e91c1['push'](_0x1e91c1['shift']());}};_0x1bfeca(++_0x357087);}(_0x1e00,0xa5));var _0x01e0=function(_0x11e92e,_0x1b0f3e){_0x11e92e=_0x11e92e-0x0;var _0x4dc0c6=_0x1e00[_0x11e92e];return _0x4dc0c6;};'use strict';var _=require(_0x01e0('0x0'));var util=require('util');var moment=require('moment');var BPromise=require(_0x01e0('0x1'));var rs=require(_0x01e0('0x2'));var fs=require('fs');var Redis=require(_0x01e0('0x3'));var db=require(_0x01e0('0x4'))['db'];var utils=require(_0x01e0('0x5'));var logger=require(_0x01e0('0x6'))(_0x01e0('0x7'));var config=require(_0x01e0('0x8'));var jayson=require('jayson/promise');var client=jayson['client'][_0x01e0('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x4804aa,_0x17094f,_0x12df8d){return new BPromise(function(_0x1e514c,_0x535c0c){return client[_0x01e0('0xa')](_0x4804aa,_0x12df8d)[_0x01e0('0xb')](function(_0x110ded){logger[_0x01e0('0xc')](_0x01e0('0xd'),_0x17094f,_0x01e0('0xe'));logger['debug'](_0x01e0('0xf'),_0x17094f,_0x01e0('0xe'),JSON['stringify'](_0x110ded));if(_0x110ded[_0x01e0('0x10')]){if(_0x110ded[_0x01e0('0x10')][_0x01e0('0x11')]===0x1f4){logger['error'](_0x01e0('0xd'),_0x17094f,_0x110ded['error'][_0x01e0('0x12')]);return _0x535c0c(_0x110ded['error'][_0x01e0('0x12')]);}logger[_0x01e0('0x10')](_0x01e0('0xd'),_0x17094f,_0x110ded[_0x01e0('0x10')][_0x01e0('0x12')]);return _0x1e514c(_0x110ded['error'][_0x01e0('0x12')]);}else{logger[_0x01e0('0xc')](_0x01e0('0xd'),_0x17094f,_0x01e0('0xe'));_0x1e514c(_0x110ded[_0x01e0('0x13')][_0x01e0('0x12')]);}})[_0x01e0('0x14')](function(_0x385fd0){logger[_0x01e0('0x10')](_0x01e0('0xd'),_0x17094f,_0x385fd0);_0x535c0c(_0x385fd0);});});}
\ No newline at end of file