Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / api / userOpenchannelQueue / userOpenchannelQueue.rpc.js
index 5e7c4b1..fe1b852 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x689f=['../../mysqldb','../../config/logger','rpc','jayson/promise','client','http','request','info','UserOpenchannelQueue,\x20%s,\x20%s','request\x20sent','debug','stringify','error','message','result','catch','moment','bluebird','randomstring','ioredis'];(function(_0x589c2c,_0x229428){var _0xd46bd4=function(_0x303292){while(--_0x303292){_0x589c2c['push'](_0x589c2c['shift']());}};_0xd46bd4(++_0x229428);}(_0x689f,0x150));var _0xf689=function(_0x5ad546,_0x40bcea){_0x5ad546=_0x5ad546-0x0;var _0x2750be=_0x689f[_0x5ad546];return _0x2750be;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0xf689('0x0'));var BPromise=require(_0xf689('0x1'));var rs=require(_0xf689('0x2'));var fs=require('fs');var Redis=require(_0xf689('0x3'));var db=require(_0xf689('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0xf689('0x5'))(_0xf689('0x6'));var config=require('../../config/environment');var jayson=require(_0xf689('0x7'));var client=jayson[_0xf689('0x8')][_0xf689('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x307b94,_0x49bb7f,_0x175805){return new BPromise(function(_0x2ab704,_0x5c3fbc){return client[_0xf689('0xa')](_0x307b94,_0x175805)['then'](function(_0x31a399){logger[_0xf689('0xb')](_0xf689('0xc'),_0x49bb7f,_0xf689('0xd'));logger[_0xf689('0xe')]('UserOpenchannelQueue,\x20%s,\x20%s,\x20%s',_0x49bb7f,'request\x20sent',JSON[_0xf689('0xf')](_0x31a399));if(_0x31a399[_0xf689('0x10')]){if(_0x31a399[_0xf689('0x10')]['code']===0x1f4){logger[_0xf689('0x10')](_0xf689('0xc'),_0x49bb7f,_0x31a399[_0xf689('0x10')][_0xf689('0x11')]);return _0x5c3fbc(_0x31a399[_0xf689('0x10')][_0xf689('0x11')]);}logger[_0xf689('0x10')](_0xf689('0xc'),_0x49bb7f,_0x31a399['error'][_0xf689('0x11')]);return _0x2ab704(_0x31a399[_0xf689('0x10')]['message']);}else{logger[_0xf689('0xb')](_0xf689('0xc'),_0x49bb7f,_0xf689('0xd'));_0x2ab704(_0x31a399[_0xf689('0x12')][_0xf689('0x11')]);}})[_0xf689('0x13')](function(_0x3580f6){logger[_0xf689('0x10')](_0xf689('0xc'),_0x49bb7f,_0x3580f6);_0x5c3fbc(_0x3580f6);});});}
\ No newline at end of file
+var _0x8a78=['rpc','jayson/promise','http','request','then','info','UserOpenchannelQueue,\x20%s,\x20%s','request\x20sent','debug','stringify','error','message','result','catch','lodash','util','moment','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger'];(function(_0x18fb16,_0x45edbc){var _0x147b0d=function(_0x5b1b00){while(--_0x5b1b00){_0x18fb16['push'](_0x18fb16['shift']());}};_0x147b0d(++_0x45edbc);}(_0x8a78,0x158));var _0x88a7=function(_0x13ed69,_0x229161){_0x13ed69=_0x13ed69-0x0;var _0x50c72e=_0x8a78[_0x13ed69];return _0x50c72e;};'use strict';var _=require(_0x88a7('0x0'));var util=require(_0x88a7('0x1'));var moment=require(_0x88a7('0x2'));var BPromise=require(_0x88a7('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x88a7('0x4'));var db=require(_0x88a7('0x5'))['db'];var utils=require(_0x88a7('0x6'));var logger=require(_0x88a7('0x7'))(_0x88a7('0x8'));var config=require('../../config/environment');var jayson=require(_0x88a7('0x9'));var client=jayson['client'][_0x88a7('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x443560,_0x118b71,_0x38201b){return new BPromise(function(_0x585571,_0xd25e66){return client[_0x88a7('0xb')](_0x443560,_0x38201b)[_0x88a7('0xc')](function(_0x2ef7f8){logger[_0x88a7('0xd')](_0x88a7('0xe'),_0x118b71,_0x88a7('0xf'));logger[_0x88a7('0x10')]('UserOpenchannelQueue,\x20%s,\x20%s,\x20%s',_0x118b71,_0x88a7('0xf'),JSON[_0x88a7('0x11')](_0x2ef7f8));if(_0x2ef7f8['error']){if(_0x2ef7f8[_0x88a7('0x12')]['code']===0x1f4){logger[_0x88a7('0x12')](_0x88a7('0xe'),_0x118b71,_0x2ef7f8[_0x88a7('0x12')]['message']);return _0xd25e66(_0x2ef7f8[_0x88a7('0x12')][_0x88a7('0x13')]);}logger[_0x88a7('0x12')]('UserOpenchannelQueue,\x20%s,\x20%s',_0x118b71,_0x2ef7f8[_0x88a7('0x12')][_0x88a7('0x13')]);return _0x585571(_0x2ef7f8['error'][_0x88a7('0x13')]);}else{logger['info'](_0x88a7('0xe'),_0x118b71,_0x88a7('0xf'));_0x585571(_0x2ef7f8[_0x88a7('0x14')][_0x88a7('0x13')]);}})[_0x88a7('0x15')](function(_0x38f265){logger['error']('UserOpenchannelQueue,\x20%s,\x20%s',_0x118b71,_0x38f265);_0xd25e66(_0x38f265);});});}
\ No newline at end of file