Built motion from commit (unavailable).|2.2.0
[motion2.git] / server / api / tag / tag.rpc.js
index 9f4a6bd..9726940 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5e85=['util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','client','request','then','Tag,\x20%s,\x20%s','request\x20sent','Tag,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','lodash'];(function(_0x4b9978,_0x58eb71){var _0x42f0e5=function(_0x4ff5dc){while(--_0x4ff5dc){_0x4b9978['push'](_0x4b9978['shift']());}};_0x42f0e5(++_0x58eb71);}(_0x5e85,0x14f));var _0x55e8=function(_0x30c996,_0x538904){_0x30c996=_0x30c996-0x0;var _0x1542fe=_0x5e85[_0x30c996];return _0x1542fe;};'use strict';var _=require(_0x55e8('0x0'));var util=require(_0x55e8('0x1'));var moment=require(_0x55e8('0x2'));var BPromise=require(_0x55e8('0x3'));var rs=require(_0x55e8('0x4'));var fs=require('fs');var Redis=require(_0x55e8('0x5'));var db=require(_0x55e8('0x6'))['db'];var utils=require(_0x55e8('0x7'));var logger=require(_0x55e8('0x8'))(_0x55e8('0x9'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0x55e8('0xa')]['http']({'port':0x232a});function respondWithRpcPromise(_0x7e2e4d,_0x568657,_0x5596fb){return new BPromise(function(_0x1ae9d0,_0x45be29){return client[_0x55e8('0xb')](_0x7e2e4d,_0x5596fb)[_0x55e8('0xc')](function(_0x222856){logger['info'](_0x55e8('0xd'),_0x568657,_0x55e8('0xe'));logger['debug'](_0x55e8('0xf'),_0x568657,'request\x20sent',JSON[_0x55e8('0x10')](_0x222856));if(_0x222856[_0x55e8('0x11')]){if(_0x222856[_0x55e8('0x11')][_0x55e8('0x12')]===0x1f4){logger[_0x55e8('0x11')](_0x55e8('0xd'),_0x568657,_0x222856['error'][_0x55e8('0x13')]);return _0x45be29(_0x222856[_0x55e8('0x11')][_0x55e8('0x13')]);}logger[_0x55e8('0x11')]('Tag,\x20%s,\x20%s',_0x568657,_0x222856['error'][_0x55e8('0x13')]);return _0x1ae9d0(_0x222856['error']['message']);}else{logger['info'](_0x55e8('0xd'),_0x568657,_0x55e8('0xe'));_0x1ae9d0(_0x222856[_0x55e8('0x14')]['message']);}})['catch'](function(_0xec457b){logger[_0x55e8('0x11')](_0x55e8('0xd'),_0x568657,_0xec457b);_0x45be29(_0xec457b);});});}
\ No newline at end of file
+var _0x636f=['../../config/environment','http','request','then','info','Tag,\x20%s,\x20%s','debug','Tag,\x20%s,\x20%s,\x20%s','stringify','error','message','request\x20sent','result','catch','lodash','util','moment','randomstring','../../mysqldb','../../config/utils','../../config/logger','rpc'];(function(_0x5c467c,_0x195ac6){var _0x389787=function(_0x20915c){while(--_0x20915c){_0x5c467c['push'](_0x5c467c['shift']());}};_0x389787(++_0x195ac6);}(_0x636f,0x158));var _0xf636=function(_0x3b380d,_0x4bf247){_0x3b380d=_0x3b380d-0x0;var _0x54502b=_0x636f[_0x3b380d];return _0x54502b;};'use strict';var _=require(_0xf636('0x0'));var util=require(_0xf636('0x1'));var moment=require(_0xf636('0x2'));var BPromise=require('bluebird');var rs=require(_0xf636('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xf636('0x4'))['db'];var utils=require(_0xf636('0x5'));var logger=require(_0xf636('0x6'))(_0xf636('0x7'));var config=require(_0xf636('0x8'));var jayson=require('jayson/promise');var client=jayson['client'][_0xf636('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x41fb69,_0x767768,_0x2c0da2){return new BPromise(function(_0xa664d2,_0x2e4b16){return client[_0xf636('0xa')](_0x41fb69,_0x2c0da2)[_0xf636('0xb')](function(_0x324364){logger[_0xf636('0xc')](_0xf636('0xd'),_0x767768,'request\x20sent');logger[_0xf636('0xe')](_0xf636('0xf'),_0x767768,'request\x20sent',JSON[_0xf636('0x10')](_0x324364));if(_0x324364[_0xf636('0x11')]){if(_0x324364['error']['code']===0x1f4){logger[_0xf636('0x11')](_0xf636('0xd'),_0x767768,_0x324364['error'][_0xf636('0x12')]);return _0x2e4b16(_0x324364[_0xf636('0x11')][_0xf636('0x12')]);}logger[_0xf636('0x11')]('Tag,\x20%s,\x20%s',_0x767768,_0x324364[_0xf636('0x11')]['message']);return _0xa664d2(_0x324364[_0xf636('0x11')]['message']);}else{logger[_0xf636('0xc')](_0xf636('0xd'),_0x767768,_0xf636('0x13'));_0xa664d2(_0x324364[_0xf636('0x14')][_0xf636('0x12')]);}})[_0xf636('0x15')](function(_0x4e4ecd){logger[_0xf636('0x11')](_0xf636('0xd'),_0x767768,_0x4e4ecd);_0x2e4b16(_0x4e4ecd);});});}
\ No newline at end of file