Built motion from commit 497d3d92.|2.5.43
[motion2.git] / server / api / chatApplication / chatApplication.rpc.js
index f59e0c0..bdc00dd 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x24ef=['info','ChatApplication,\x20%s,\x20%s','request\x20sent','ChatApplication,\x20%s,\x20%s,\x20%s','error','code','message','result','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','rpc','client','http','request','then'];(function(_0x17d23a,_0xd4fbc){var _0x23e756=function(_0xfbb322){while(--_0xfbb322){_0x17d23a['push'](_0x17d23a['shift']());}};_0x23e756(++_0xd4fbc);}(_0x24ef,0x1bd));var _0xf24e=function(_0x341d42,_0xabce20){_0x341d42=_0x341d42-0x0;var _0xecf46c=_0x24ef[_0x341d42];return _0xecf46c;};'use strict';var _=require(_0xf24e('0x0'));var util=require(_0xf24e('0x1'));var moment=require('moment');var BPromise=require(_0xf24e('0x2'));var rs=require(_0xf24e('0x3'));var fs=require('fs');var Redis=require(_0xf24e('0x4'));var db=require(_0xf24e('0x5'))['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')(_0xf24e('0x6'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0xf24e('0x7')][_0xf24e('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x45d35c,_0x5ab5da,_0x2cc458){return new BPromise(function(_0x1f569a,_0x1eff07){return client[_0xf24e('0x9')](_0x45d35c,_0x2cc458)[_0xf24e('0xa')](function(_0x274e65){logger[_0xf24e('0xb')](_0xf24e('0xc'),_0x5ab5da,_0xf24e('0xd'));logger['debug'](_0xf24e('0xe'),_0x5ab5da,_0xf24e('0xd'),JSON['stringify'](_0x274e65));if(_0x274e65[_0xf24e('0xf')]){if(_0x274e65[_0xf24e('0xf')][_0xf24e('0x10')]===0x1f4){logger[_0xf24e('0xf')](_0xf24e('0xc'),_0x5ab5da,_0x274e65['error'][_0xf24e('0x11')]);return _0x1eff07(_0x274e65[_0xf24e('0xf')][_0xf24e('0x11')]);}logger[_0xf24e('0xf')](_0xf24e('0xc'),_0x5ab5da,_0x274e65[_0xf24e('0xf')][_0xf24e('0x11')]);return _0x1f569a(_0x274e65[_0xf24e('0xf')][_0xf24e('0x11')]);}else{logger[_0xf24e('0xb')](_0xf24e('0xc'),_0x5ab5da,_0xf24e('0xd'));_0x1f569a(_0x274e65[_0xf24e('0x12')][_0xf24e('0x11')]);}})['catch'](function(_0x1660c7){logger[_0xf24e('0xf')](_0xf24e('0xc'),_0x5ab5da,_0x1660c7);_0x1eff07(_0x1660c7);});});}
\ No newline at end of file
+var _0x48f8=['stringify','error','code','message','info','result','catch','lodash','moment','bluebird','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client','http','request','ChatApplication,\x20%s,\x20%s','request\x20sent','debug','ChatApplication,\x20%s,\x20%s,\x20%s'];(function(_0x22bc1a,_0x4dbf68){var _0x31136f=function(_0xe8d6e2){while(--_0xe8d6e2){_0x22bc1a['push'](_0x22bc1a['shift']());}};_0x31136f(++_0x4dbf68);}(_0x48f8,0x1bc));var _0x848f=function(_0x3423b9,_0x492eea){_0x3423b9=_0x3423b9-0x0;var _0x48f7ac=_0x48f8[_0x3423b9];return _0x48f7ac;};'use strict';var _=require(_0x848f('0x0'));var util=require('util');var moment=require(_0x848f('0x1'));var BPromise=require(_0x848f('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x848f('0x3'));var db=require(_0x848f('0x4'))['db'];var utils=require(_0x848f('0x5'));var logger=require('../../config/logger')(_0x848f('0x6'));var config=require(_0x848f('0x7'));var jayson=require(_0x848f('0x8'));var client=jayson[_0x848f('0x9')][_0x848f('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x570686,_0x2de8f9,_0x39a6ae){return new BPromise(function(_0x207a2d,_0x14891d){return client[_0x848f('0xb')](_0x570686,_0x39a6ae)['then'](function(_0xf6395d){logger['info'](_0x848f('0xc'),_0x2de8f9,_0x848f('0xd'));logger[_0x848f('0xe')](_0x848f('0xf'),_0x2de8f9,_0x848f('0xd'),JSON[_0x848f('0x10')](_0xf6395d));if(_0xf6395d[_0x848f('0x11')]){if(_0xf6395d[_0x848f('0x11')][_0x848f('0x12')]===0x1f4){logger[_0x848f('0x11')](_0x848f('0xc'),_0x2de8f9,_0xf6395d['error'][_0x848f('0x13')]);return _0x14891d(_0xf6395d[_0x848f('0x11')][_0x848f('0x13')]);}logger[_0x848f('0x11')](_0x848f('0xc'),_0x2de8f9,_0xf6395d[_0x848f('0x11')][_0x848f('0x13')]);return _0x207a2d(_0xf6395d[_0x848f('0x11')][_0x848f('0x13')]);}else{logger[_0x848f('0x14')](_0x848f('0xc'),_0x2de8f9,_0x848f('0xd'));_0x207a2d(_0xf6395d[_0x848f('0x15')][_0x848f('0x13')]);}})[_0x848f('0x16')](function(_0x19c620){logger['error'](_0x848f('0xc'),_0x2de8f9,_0x19c620);_0x14891d(_0x19c620);});});}
\ No newline at end of file