Built motion from commit 511216ff.|2.6.34
[motion2.git] / server / api / chatApplication / chatApplication.rpc.js
index b011bab..57e561e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb599=['util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','then','info','ChatApplication,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','result','catch'];(function(_0x249935,_0x2c405d){var _0x305bb0=function(_0x4fe26f){while(--_0x4fe26f){_0x249935['push'](_0x249935['shift']());}};_0x305bb0(++_0x2c405d);}(_0xb599,0x6e));var _0x9b59=function(_0x2d1817,_0x10589e){_0x2d1817=_0x2d1817-0x0;var _0x130746=_0xb599[_0x2d1817];return _0x130746;};'use strict';var _=require('lodash');var util=require(_0x9b59('0x0'));var moment=require(_0x9b59('0x1'));var BPromise=require(_0x9b59('0x2'));var rs=require(_0x9b59('0x3'));var fs=require('fs');var Redis=require(_0x9b59('0x4'));var db=require(_0x9b59('0x5'))['db'];var utils=require(_0x9b59('0x6'));var logger=require(_0x9b59('0x7'))(_0x9b59('0x8'));var config=require(_0x9b59('0x9'));var jayson=require(_0x9b59('0xa'));var client=jayson[_0x9b59('0xb')]['http']({'port':0x232a});function respondWithRpcPromise(_0xef7f55,_0x170f99,_0x2b5c11){return new BPromise(function(_0x140b37,_0x499f73){return client['request'](_0xef7f55,_0x2b5c11)[_0x9b59('0xc')](function(_0xf5cd5f){logger[_0x9b59('0xd')](_0x9b59('0xe'),_0x170f99,_0x9b59('0xf'));logger['debug']('ChatApplication,\x20%s,\x20%s,\x20%s',_0x170f99,'request\x20sent',JSON[_0x9b59('0x10')](_0xf5cd5f));if(_0xf5cd5f[_0x9b59('0x11')]){if(_0xf5cd5f[_0x9b59('0x11')][_0x9b59('0x12')]===0x1f4){logger[_0x9b59('0x11')](_0x9b59('0xe'),_0x170f99,_0xf5cd5f[_0x9b59('0x11')][_0x9b59('0x13')]);return _0x499f73(_0xf5cd5f['error'][_0x9b59('0x13')]);}logger[_0x9b59('0x11')](_0x9b59('0xe'),_0x170f99,_0xf5cd5f[_0x9b59('0x11')]['message']);return _0x140b37(_0xf5cd5f['error']['message']);}else{logger[_0x9b59('0xd')](_0x9b59('0xe'),_0x170f99,_0x9b59('0xf'));_0x140b37(_0xf5cd5f[_0x9b59('0x14')][_0x9b59('0x13')]);}})[_0x9b59('0x15')](function(_0x31700a){logger['error'](_0x9b59('0xe'),_0x170f99,_0x31700a);_0x499f73(_0x31700a);});});}
\ No newline at end of file
+var _0x3a4a=['error','ChatApplication,\x20%s,\x20%s','message','result','catch','lodash','util','moment','bluebird','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','request\x20sent','debug','ChatApplication,\x20%s,\x20%s,\x20%s'];(function(_0x27eda0,_0x42a3cf){var _0x2b63a5=function(_0x431084){while(--_0x431084){_0x27eda0['push'](_0x27eda0['shift']());}};_0x2b63a5(++_0x42a3cf);}(_0x3a4a,0x15e));var _0xa3a4=function(_0x1a7550,_0x1edace){_0x1a7550=_0x1a7550-0x0;var _0x426e22=_0x3a4a[_0x1a7550];return _0x426e22;};'use strict';var _=require(_0xa3a4('0x0'));var util=require(_0xa3a4('0x1'));var moment=require(_0xa3a4('0x2'));var BPromise=require(_0xa3a4('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xa3a4('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0xa3a4('0x5'));var logger=require(_0xa3a4('0x6'))(_0xa3a4('0x7'));var config=require(_0xa3a4('0x8'));var jayson=require(_0xa3a4('0x9'));var client=jayson[_0xa3a4('0xa')][_0xa3a4('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x3d4546,_0x1b145d,_0x6c0f54){return new BPromise(function(_0x22cc83,_0x5d79dc){return client[_0xa3a4('0xc')](_0x3d4546,_0x6c0f54)[_0xa3a4('0xd')](function(_0x1e57dd){logger[_0xa3a4('0xe')]('ChatApplication,\x20%s,\x20%s',_0x1b145d,_0xa3a4('0xf'));logger[_0xa3a4('0x10')](_0xa3a4('0x11'),_0x1b145d,_0xa3a4('0xf'),JSON['stringify'](_0x1e57dd));if(_0x1e57dd[_0xa3a4('0x12')]){if(_0x1e57dd[_0xa3a4('0x12')]['code']===0x1f4){logger[_0xa3a4('0x12')](_0xa3a4('0x13'),_0x1b145d,_0x1e57dd['error']['message']);return _0x5d79dc(_0x1e57dd[_0xa3a4('0x12')][_0xa3a4('0x14')]);}logger[_0xa3a4('0x12')](_0xa3a4('0x13'),_0x1b145d,_0x1e57dd[_0xa3a4('0x12')]['message']);return _0x22cc83(_0x1e57dd['error'][_0xa3a4('0x14')]);}else{logger[_0xa3a4('0xe')]('ChatApplication,\x20%s,\x20%s',_0x1b145d,_0xa3a4('0xf'));_0x22cc83(_0x1e57dd[_0xa3a4('0x15')][_0xa3a4('0x14')]);}})[_0xa3a4('0x16')](function(_0x49be11){logger[_0xa3a4('0x12')](_0xa3a4('0x13'),_0x1b145d,_0x49be11);_0x5d79dc(_0x49be11);});});}
\ No newline at end of file