Built motion from commit (unavailable).|2.5.6
[motion2.git] / server / api / chatApplication / chatApplication.rpc.js
index 7ea1d15..1cbf6b2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xffa4=['ChatApplication,\x20%s,\x20%s','message','result','lodash','util','moment','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','debug','ChatApplication,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code'];(function(_0x476bf4,_0x2a3755){var _0x788ffe=function(_0x13fa11){while(--_0x13fa11){_0x476bf4['push'](_0x476bf4['shift']());}};_0x788ffe(++_0x2a3755);}(_0xffa4,0x116));var _0x4ffa=function(_0x9d639c,_0x524dbe){_0x9d639c=_0x9d639c-0x0;var _0x1671de=_0xffa4[_0x9d639c];return _0x1671de;};'use strict';var _=require(_0x4ffa('0x0'));var util=require(_0x4ffa('0x1'));var moment=require(_0x4ffa('0x2'));var BPromise=require(_0x4ffa('0x3'));var rs=require(_0x4ffa('0x4'));var fs=require('fs');var Redis=require(_0x4ffa('0x5'));var db=require('../../mysqldb')['db'];var utils=require(_0x4ffa('0x6'));var logger=require(_0x4ffa('0x7'))(_0x4ffa('0x8'));var config=require(_0x4ffa('0x9'));var jayson=require(_0x4ffa('0xa'));var client=jayson[_0x4ffa('0xb')][_0x4ffa('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x1384b8,_0x2eb423,_0x5039e5){return new BPromise(function(_0x4fccc1,_0x939384){return client[_0x4ffa('0xd')](_0x1384b8,_0x5039e5)[_0x4ffa('0xe')](function(_0x1a6316){logger[_0x4ffa('0xf')]('ChatApplication,\x20%s,\x20%s',_0x2eb423,'request\x20sent');logger[_0x4ffa('0x10')](_0x4ffa('0x11'),_0x2eb423,_0x4ffa('0x12'),JSON[_0x4ffa('0x13')](_0x1a6316));if(_0x1a6316[_0x4ffa('0x14')]){if(_0x1a6316[_0x4ffa('0x14')][_0x4ffa('0x15')]===0x1f4){logger[_0x4ffa('0x14')](_0x4ffa('0x16'),_0x2eb423,_0x1a6316[_0x4ffa('0x14')][_0x4ffa('0x17')]);return _0x939384(_0x1a6316['error'][_0x4ffa('0x17')]);}logger[_0x4ffa('0x14')](_0x4ffa('0x16'),_0x2eb423,_0x1a6316[_0x4ffa('0x14')][_0x4ffa('0x17')]);return _0x4fccc1(_0x1a6316[_0x4ffa('0x14')]['message']);}else{logger[_0x4ffa('0xf')](_0x4ffa('0x16'),_0x2eb423,'request\x20sent');_0x4fccc1(_0x1a6316[_0x4ffa('0x18')][_0x4ffa('0x17')]);}})['catch'](function(_0xd0678d){logger['error']('ChatApplication,\x20%s,\x20%s',_0x2eb423,_0xd0678d);_0x939384(_0xd0678d);});});}
\ No newline at end of file
+var _0x5f23=['../../config/logger','rpc','../../config/environment','http','request','then','request\x20sent','debug','ChatApplication,\x20%s,\x20%s,\x20%s','stringify','error','message','ChatApplication,\x20%s,\x20%s','result','catch','util','moment','bluebird','randomstring','ioredis','../../config/utils'];(function(_0x122d2b,_0x70044d){var _0x55ac23=function(_0x1a954b){while(--_0x1a954b){_0x122d2b['push'](_0x122d2b['shift']());}};_0x55ac23(++_0x70044d);}(_0x5f23,0xb7));var _0x35f2=function(_0x418a0e,_0x45a42e){_0x418a0e=_0x418a0e-0x0;var _0x1c76e9=_0x5f23[_0x418a0e];return _0x1c76e9;};'use strict';var _=require('lodash');var util=require(_0x35f2('0x0'));var moment=require(_0x35f2('0x1'));var BPromise=require(_0x35f2('0x2'));var rs=require(_0x35f2('0x3'));var fs=require('fs');var Redis=require(_0x35f2('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0x35f2('0x5'));var logger=require(_0x35f2('0x6'))(_0x35f2('0x7'));var config=require(_0x35f2('0x8'));var jayson=require('jayson/promise');var client=jayson['client'][_0x35f2('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x1839dc,_0x125995,_0x418063){return new BPromise(function(_0x636fd7,_0x5282ec){return client[_0x35f2('0xa')](_0x1839dc,_0x418063)[_0x35f2('0xb')](function(_0x4e7723){logger['info']('ChatApplication,\x20%s,\x20%s',_0x125995,_0x35f2('0xc'));logger[_0x35f2('0xd')](_0x35f2('0xe'),_0x125995,_0x35f2('0xc'),JSON[_0x35f2('0xf')](_0x4e7723));if(_0x4e7723[_0x35f2('0x10')]){if(_0x4e7723[_0x35f2('0x10')]['code']===0x1f4){logger[_0x35f2('0x10')]('ChatApplication,\x20%s,\x20%s',_0x125995,_0x4e7723[_0x35f2('0x10')][_0x35f2('0x11')]);return _0x5282ec(_0x4e7723['error']['message']);}logger[_0x35f2('0x10')]('ChatApplication,\x20%s,\x20%s',_0x125995,_0x4e7723['error'][_0x35f2('0x11')]);return _0x636fd7(_0x4e7723['error'][_0x35f2('0x11')]);}else{logger['info'](_0x35f2('0x12'),_0x125995,_0x35f2('0xc'));_0x636fd7(_0x4e7723[_0x35f2('0x13')][_0x35f2('0x11')]);}})[_0x35f2('0x14')](function(_0x3bfdd5){logger[_0x35f2('0x10')](_0x35f2('0x12'),_0x125995,_0x3bfdd5);_0x5282ec(_0x3bfdd5);});});}
\ No newline at end of file