Built motion from commit ff78e754.|2.6.29
[motion2.git] / server / api / chatInternalMessage / chatInternalMessage.rpc.js
index ff4046d..e9b4160 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9c5b=['ChatInternalMessage,\x20%s,\x20%s','request\x20sent','debug','ChatInternalMessage,\x20%s,\x20%s,\x20%s','error','message','catch','lodash','util','moment','bluebird','randomstring','../../mysqldb','rpc','../../config/environment','client','http','redis','defaults','localhost','socket.io-emitter','./chatInternalMessage.socket','request','info'];(function(_0x138836,_0x229129){var _0x322688=function(_0x54b101){while(--_0x54b101){_0x138836['push'](_0x138836['shift']());}};_0x322688(++_0x229129);}(_0x9c5b,0x127));var _0xb9c5=function(_0x4effc6,_0x5b1f14){_0x4effc6=_0x4effc6-0x0;var _0x510120=_0x9c5b[_0x4effc6];return _0x510120;};'use strict';var _=require(_0xb9c5('0x0'));var util=require(_0xb9c5('0x1'));var moment=require(_0xb9c5('0x2'));var BPromise=require(_0xb9c5('0x3'));var rs=require(_0xb9c5('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xb9c5('0x5'))['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')(_0xb9c5('0x6'));var config=require(_0xb9c5('0x7'));var jayson=require('jayson/promise');var client=jayson[_0xb9c5('0x8')][_0xb9c5('0x9')]({'port':0x232a});config[_0xb9c5('0xa')]=_[_0xb9c5('0xb')](config[_0xb9c5('0xa')],{'host':_0xb9c5('0xc'),'port':0x18eb});var socket=require(_0xb9c5('0xd'))(new Redis(config[_0xb9c5('0xa')]));require(_0xb9c5('0xe'))['register'](socket);function respondWithRpcPromise(_0x38b78f,_0x3441ff,_0x4c30fd){return new BPromise(function(_0x2788fe,_0x44f7b7){return client[_0xb9c5('0xf')](_0x38b78f,_0x4c30fd)['then'](function(_0x3e2149){logger[_0xb9c5('0x10')](_0xb9c5('0x11'),_0x3441ff,_0xb9c5('0x12'));logger[_0xb9c5('0x13')](_0xb9c5('0x14'),_0x3441ff,'request\x20sent',JSON['stringify'](_0x3e2149));if(_0x3e2149[_0xb9c5('0x15')]){if(_0x3e2149['error']['code']===0x1f4){logger[_0xb9c5('0x15')](_0xb9c5('0x11'),_0x3441ff,_0x3e2149['error'][_0xb9c5('0x16')]);return _0x44f7b7(_0x3e2149[_0xb9c5('0x15')][_0xb9c5('0x16')]);}logger[_0xb9c5('0x15')](_0xb9c5('0x11'),_0x3441ff,_0x3e2149['error'][_0xb9c5('0x16')]);return _0x2788fe(_0x3e2149[_0xb9c5('0x15')][_0xb9c5('0x16')]);}else{logger[_0xb9c5('0x10')](_0xb9c5('0x11'),_0x3441ff,_0xb9c5('0x12'));_0x2788fe(_0x3e2149['result'][_0xb9c5('0x16')]);}})[_0xb9c5('0x17')](function(_0xb6f078){logger['error']('ChatInternalMessage,\x20%s,\x20%s',_0x3441ff,_0xb6f078);_0x44f7b7(_0xb6f078);});});}
\ No newline at end of file
+var _0xac8d=['randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','http','redis','defaults','localhost','socket.io-emitter','./chatInternalMessage.socket','then','info','ChatInternalMessage,\x20%s,\x20%s','request\x20sent','ChatInternalMessage,\x20%s,\x20%s,\x20%s','error','code','message','result','catch','lodash','util','moment','bluebird'];(function(_0x1b2dca,_0x3c328e){var _0x20cb56=function(_0x2119de){while(--_0x2119de){_0x1b2dca['push'](_0x1b2dca['shift']());}};_0x20cb56(++_0x3c328e);}(_0xac8d,0x1d8));var _0xdac8=function(_0x401666,_0xa78a61){_0x401666=_0x401666-0x0;var _0x2792ea=_0xac8d[_0x401666];return _0x2792ea;};'use strict';var _=require(_0xdac8('0x0'));var util=require(_0xdac8('0x1'));var moment=require(_0xdac8('0x2'));var BPromise=require(_0xdac8('0x3'));var rs=require(_0xdac8('0x4'));var fs=require('fs');var Redis=require(_0xdac8('0x5'));var db=require(_0xdac8('0x6'))['db'];var utils=require(_0xdac8('0x7'));var logger=require(_0xdac8('0x8'))('rpc');var config=require(_0xdac8('0x9'));var jayson=require(_0xdac8('0xa'));var client=jayson[_0xdac8('0xb')][_0xdac8('0xc')]({'port':0x232a});config[_0xdac8('0xd')]=_[_0xdac8('0xe')](config[_0xdac8('0xd')],{'host':_0xdac8('0xf'),'port':0x18eb});var socket=require(_0xdac8('0x10'))(new Redis(config['redis']));require(_0xdac8('0x11'))['register'](socket);function respondWithRpcPromise(_0xe2d455,_0x3c6884,_0x1c1c20){return new BPromise(function(_0x2f9c0d,_0x2d68be){return client['request'](_0xe2d455,_0x1c1c20)[_0xdac8('0x12')](function(_0x4e977c){logger[_0xdac8('0x13')](_0xdac8('0x14'),_0x3c6884,_0xdac8('0x15'));logger['debug'](_0xdac8('0x16'),_0x3c6884,'request\x20sent',JSON['stringify'](_0x4e977c));if(_0x4e977c[_0xdac8('0x17')]){if(_0x4e977c['error'][_0xdac8('0x18')]===0x1f4){logger[_0xdac8('0x17')](_0xdac8('0x14'),_0x3c6884,_0x4e977c[_0xdac8('0x17')][_0xdac8('0x19')]);return _0x2d68be(_0x4e977c['error'][_0xdac8('0x19')]);}logger[_0xdac8('0x17')](_0xdac8('0x14'),_0x3c6884,_0x4e977c[_0xdac8('0x17')]['message']);return _0x2f9c0d(_0x4e977c[_0xdac8('0x17')][_0xdac8('0x19')]);}else{logger[_0xdac8('0x13')](_0xdac8('0x14'),_0x3c6884,_0xdac8('0x15'));_0x2f9c0d(_0x4e977c[_0xdac8('0x1a')][_0xdac8('0x19')]);}})[_0xdac8('0x1b')](function(_0x11ef2d){logger[_0xdac8('0x17')](_0xdac8('0x14'),_0x3c6884,_0x11ef2d);_0x2d68be(_0x11ef2d);});});}
\ No newline at end of file