Built motion from commit (unavailable).|2.4.2
[motion2.git] / server / api / userChatQueue / userChatQueue.rpc.js
index de693c7..1b13c28 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4aa3=['jayson/promise','http','request','info','UserChatQueue,\x20%s,\x20%s','request\x20sent','debug','UserChatQueue,\x20%s,\x20%s,\x20%s','error','message','result','catch','lodash','util','bluebird','randomstring','../../mysqldb','../../config/utils','rpc','../../config/environment'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x4aa3,0x174));var _0x34aa=function(_0x102731,_0x3b15e8){_0x102731=_0x102731-0x0;var _0x3f4c4a=_0x4aa3[_0x102731];return _0x3f4c4a;};'use strict';var _=require(_0x34aa('0x0'));var util=require(_0x34aa('0x1'));var moment=require('moment');var BPromise=require(_0x34aa('0x2'));var rs=require(_0x34aa('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x34aa('0x4'))['db'];var utils=require(_0x34aa('0x5'));var logger=require('../../config/logger')(_0x34aa('0x6'));var config=require(_0x34aa('0x7'));var jayson=require(_0x34aa('0x8'));var client=jayson['client'][_0x34aa('0x9')]({'port':0x232a});function respondWithRpcPromise(_0xdcaa74,_0x55c471,_0x333bbe){return new BPromise(function(_0x420d9e,_0x4e7785){return client[_0x34aa('0xa')](_0xdcaa74,_0x333bbe)['then'](function(_0x4a332b){logger[_0x34aa('0xb')](_0x34aa('0xc'),_0x55c471,_0x34aa('0xd'));logger[_0x34aa('0xe')](_0x34aa('0xf'),_0x55c471,_0x34aa('0xd'),JSON['stringify'](_0x4a332b));if(_0x4a332b[_0x34aa('0x10')]){if(_0x4a332b['error']['code']===0x1f4){logger[_0x34aa('0x10')](_0x34aa('0xc'),_0x55c471,_0x4a332b[_0x34aa('0x10')]['message']);return _0x4e7785(_0x4a332b[_0x34aa('0x10')]['message']);}logger[_0x34aa('0x10')](_0x34aa('0xc'),_0x55c471,_0x4a332b[_0x34aa('0x10')][_0x34aa('0x11')]);return _0x420d9e(_0x4a332b[_0x34aa('0x10')]['message']);}else{logger[_0x34aa('0xb')](_0x34aa('0xc'),_0x55c471,_0x34aa('0xd'));_0x420d9e(_0x4a332b[_0x34aa('0x12')][_0x34aa('0x11')]);}})[_0x34aa('0x13')](function(_0x33cd7e){logger[_0x34aa('0x10')](_0x34aa('0xc'),_0x55c471,_0x33cd7e);_0x4e7785(_0x33cd7e);});});}
\ No newline at end of file
+var _0x8a25=['../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','then','info','UserChatQueue,\x20%s,\x20%s','request\x20sent','UserChatQueue,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','util','moment','bluebird','ioredis','../../mysqldb'];(function(_0x13f752,_0x29f156){var _0x45d4fb=function(_0x3d266b){while(--_0x3d266b){_0x13f752['push'](_0x13f752['shift']());}};_0x45d4fb(++_0x29f156);}(_0x8a25,0x1aa));var _0x58a2=function(_0x4b3dd4,_0x5e366e){_0x4b3dd4=_0x4b3dd4-0x0;var _0x5d6053=_0x8a25[_0x4b3dd4];return _0x5d6053;};'use strict';var _=require(_0x58a2('0x0'));var util=require(_0x58a2('0x1'));var moment=require(_0x58a2('0x2'));var BPromise=require(_0x58a2('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x58a2('0x4'));var db=require(_0x58a2('0x5'))['db'];var utils=require(_0x58a2('0x6'));var logger=require(_0x58a2('0x7'))(_0x58a2('0x8'));var config=require(_0x58a2('0x9'));var jayson=require(_0x58a2('0xa'));var client=jayson[_0x58a2('0xb')][_0x58a2('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x1ac0c5,_0x151bc8,_0x2d9e1a){return new BPromise(function(_0x4796b4,_0x46e81d){return client['request'](_0x1ac0c5,_0x2d9e1a)[_0x58a2('0xd')](function(_0x43b581){logger[_0x58a2('0xe')](_0x58a2('0xf'),_0x151bc8,_0x58a2('0x10'));logger['debug'](_0x58a2('0x11'),_0x151bc8,_0x58a2('0x10'),JSON[_0x58a2('0x12')](_0x43b581));if(_0x43b581[_0x58a2('0x13')]){if(_0x43b581[_0x58a2('0x13')][_0x58a2('0x14')]===0x1f4){logger[_0x58a2('0x13')](_0x58a2('0xf'),_0x151bc8,_0x43b581[_0x58a2('0x13')][_0x58a2('0x15')]);return _0x46e81d(_0x43b581[_0x58a2('0x13')][_0x58a2('0x15')]);}logger[_0x58a2('0x13')]('UserChatQueue,\x20%s,\x20%s',_0x151bc8,_0x43b581['error'][_0x58a2('0x15')]);return _0x4796b4(_0x43b581[_0x58a2('0x13')][_0x58a2('0x15')]);}else{logger[_0x58a2('0xe')](_0x58a2('0xf'),_0x151bc8,_0x58a2('0x10'));_0x4796b4(_0x43b581[_0x58a2('0x16')][_0x58a2('0x15')]);}})[_0x58a2('0x17')](function(_0x1f915e){logger['error'](_0x58a2('0xf'),_0x151bc8,_0x1f915e);_0x46e81d(_0x1f915e);});});}
\ No newline at end of file