Built motion from commit (unavailable).|2.5.1
[motion2.git] / server / api / UserChatInteraction / UserChatInteraction.rpc.js
index ed8a4f6..6e870c2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xaeda=['debug','UserChatInteraction,\x20%s,\x20%s,\x20%s','stringify','error','code','message','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','jayson/promise','client','http','request','then','info','UserChatInteraction,\x20%s,\x20%s','request\x20sent'];(function(_0x240261,_0x4fe66c){var _0x45c332=function(_0x4f367a){while(--_0x4f367a){_0x240261['push'](_0x240261['shift']());}};_0x45c332(++_0x4fe66c);}(_0xaeda,0x13a));var _0xaaed=function(_0x3aa8a2,_0x5bc3a9){_0x3aa8a2=_0x3aa8a2-0x0;var _0x1ce8fe=_0xaeda[_0x3aa8a2];return _0x1ce8fe;};'use strict';var _=require(_0xaaed('0x0'));var util=require(_0xaaed('0x1'));var moment=require('moment');var BPromise=require(_0xaaed('0x2'));var rs=require(_0xaaed('0x3'));var fs=require('fs');var Redis=require(_0xaaed('0x4'));var db=require(_0xaaed('0x5'))['db'];var utils=require(_0xaaed('0x6'));var logger=require(_0xaaed('0x7'))('rpc');var config=require('../../config/environment');var jayson=require(_0xaaed('0x8'));var client=jayson[_0xaaed('0x9')][_0xaaed('0xa')]({'port':0x232a});function respondWithRpcPromise(_0xcfcec3,_0x551bf6,_0x39b33e){return new BPromise(function(_0x5729a6,_0x20d151){return client[_0xaaed('0xb')](_0xcfcec3,_0x39b33e)[_0xaaed('0xc')](function(_0x3f08d1){logger[_0xaaed('0xd')](_0xaaed('0xe'),_0x551bf6,_0xaaed('0xf'));logger[_0xaaed('0x10')](_0xaaed('0x11'),_0x551bf6,'request\x20sent',JSON[_0xaaed('0x12')](_0x3f08d1));if(_0x3f08d1[_0xaaed('0x13')]){if(_0x3f08d1['error'][_0xaaed('0x14')]===0x1f4){logger[_0xaaed('0x13')]('UserChatInteraction,\x20%s,\x20%s',_0x551bf6,_0x3f08d1[_0xaaed('0x13')][_0xaaed('0x15')]);return _0x20d151(_0x3f08d1[_0xaaed('0x13')][_0xaaed('0x15')]);}logger[_0xaaed('0x13')]('UserChatInteraction,\x20%s,\x20%s',_0x551bf6,_0x3f08d1[_0xaaed('0x13')][_0xaaed('0x15')]);return _0x5729a6(_0x3f08d1['error'][_0xaaed('0x15')]);}else{logger[_0xaaed('0xd')](_0xaaed('0xe'),_0x551bf6,_0xaaed('0xf'));_0x5729a6(_0x3f08d1['result'][_0xaaed('0x15')]);}})['catch'](function(_0x5a537d){logger[_0xaaed('0x13')]('UserChatInteraction,\x20%s,\x20%s',_0x551bf6,_0x5a537d);_0x20d151(_0x5a537d);});});}
\ No newline at end of file
+var _0xf034=['../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client','http','then','info','UserChatInteraction,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','result','catch','lodash','util','moment','randomstring'];(function(_0x29b99b,_0x2a80f7){var _0x2d788c=function(_0x539b18){while(--_0x539b18){_0x29b99b['push'](_0x29b99b['shift']());}};_0x2d788c(++_0x2a80f7);}(_0xf034,0x1e0));var _0x4f03=function(_0x5cbdf2,_0x4de8ca){_0x5cbdf2=_0x5cbdf2-0x0;var _0x19d3a2=_0xf034[_0x5cbdf2];return _0x19d3a2;};'use strict';var _=require(_0x4f03('0x0'));var util=require(_0x4f03('0x1'));var moment=require(_0x4f03('0x2'));var BPromise=require('bluebird');var rs=require(_0x4f03('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x4f03('0x4'))['db'];var utils=require(_0x4f03('0x5'));var logger=require('../../config/logger')(_0x4f03('0x6'));var config=require(_0x4f03('0x7'));var jayson=require(_0x4f03('0x8'));var client=jayson[_0x4f03('0x9')][_0x4f03('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x3387eb,_0x14a72f,_0x3960fc){return new BPromise(function(_0x145bee,_0x194006){return client['request'](_0x3387eb,_0x3960fc)[_0x4f03('0xb')](function(_0x19df3a){logger[_0x4f03('0xc')](_0x4f03('0xd'),_0x14a72f,_0x4f03('0xe'));logger[_0x4f03('0xf')]('UserChatInteraction,\x20%s,\x20%s,\x20%s',_0x14a72f,'request\x20sent',JSON[_0x4f03('0x10')](_0x19df3a));if(_0x19df3a['error']){if(_0x19df3a[_0x4f03('0x11')][_0x4f03('0x12')]===0x1f4){logger[_0x4f03('0x11')](_0x4f03('0xd'),_0x14a72f,_0x19df3a[_0x4f03('0x11')][_0x4f03('0x13')]);return _0x194006(_0x19df3a['error']['message']);}logger['error']('UserChatInteraction,\x20%s,\x20%s',_0x14a72f,_0x19df3a[_0x4f03('0x11')][_0x4f03('0x13')]);return _0x145bee(_0x19df3a[_0x4f03('0x11')][_0x4f03('0x13')]);}else{logger['info'](_0x4f03('0xd'),_0x14a72f,_0x4f03('0xe'));_0x145bee(_0x19df3a[_0x4f03('0x14')][_0x4f03('0x13')]);}})[_0x4f03('0x15')](function(_0x3b3259){logger[_0x4f03('0x11')]('UserChatInteraction,\x20%s,\x20%s',_0x14a72f,_0x3b3259);_0x194006(_0x3b3259);});});}
\ No newline at end of file