Built motion from commit 9e1399f3.|2.5.37
[motion2.git] / server / api / condition / condition.rpc.js
index b8a88c1..b0b71b5 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf927=['then','info','request\x20sent','debug','stringify','error','code','message','Condition,\x20%s,\x20%s','result','lodash','util','moment','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http'];(function(_0x494eab,_0x513478){var _0x2e9e71=function(_0x213159){while(--_0x213159){_0x494eab['push'](_0x494eab['shift']());}};_0x2e9e71(++_0x513478);}(_0xf927,0x191));var _0x7f92=function(_0x400aa0,_0x3be5cd){_0x400aa0=_0x400aa0-0x0;var _0x38ff10=_0xf927[_0x400aa0];return _0x38ff10;};'use strict';var _=require(_0x7f92('0x0'));var util=require(_0x7f92('0x1'));var moment=require(_0x7f92('0x2'));var BPromise=require(_0x7f92('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x7f92('0x4'));var db=require(_0x7f92('0x5'))['db'];var utils=require(_0x7f92('0x6'));var logger=require(_0x7f92('0x7'))(_0x7f92('0x8'));var config=require(_0x7f92('0x9'));var jayson=require(_0x7f92('0xa'));var client=jayson[_0x7f92('0xb')][_0x7f92('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x498193,_0x5d631b,_0x1fa4ca){return new BPromise(function(_0x2de0d6,_0x47da51){return client['request'](_0x498193,_0x1fa4ca)[_0x7f92('0xd')](function(_0x204624){logger[_0x7f92('0xe')]('Condition,\x20%s,\x20%s',_0x5d631b,_0x7f92('0xf'));logger[_0x7f92('0x10')]('Condition,\x20%s,\x20%s,\x20%s',_0x5d631b,_0x7f92('0xf'),JSON[_0x7f92('0x11')](_0x204624));if(_0x204624[_0x7f92('0x12')]){if(_0x204624[_0x7f92('0x12')][_0x7f92('0x13')]===0x1f4){logger[_0x7f92('0x12')]('Condition,\x20%s,\x20%s',_0x5d631b,_0x204624[_0x7f92('0x12')][_0x7f92('0x14')]);return _0x47da51(_0x204624['error'][_0x7f92('0x14')]);}logger[_0x7f92('0x12')](_0x7f92('0x15'),_0x5d631b,_0x204624['error']['message']);return _0x2de0d6(_0x204624[_0x7f92('0x12')][_0x7f92('0x14')]);}else{logger[_0x7f92('0xe')](_0x7f92('0x15'),_0x5d631b,'request\x20sent');_0x2de0d6(_0x204624[_0x7f92('0x16')][_0x7f92('0x14')]);}})['catch'](function(_0x542d54){logger['error'](_0x7f92('0x15'),_0x5d631b,_0x542d54);_0x47da51(_0x542d54);});});}
\ No newline at end of file
+var _0x73a8=['ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','request','then','info','Condition,\x20%s,\x20%s','request\x20sent','Condition,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','util','moment','bluebird','randomstring'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x73a8,0x103));var _0x873a=function(_0x9474d9,_0x29c7e3){_0x9474d9=_0x9474d9-0x0;var _0x2ebcd7=_0x73a8[_0x9474d9];return _0x2ebcd7;};'use strict';var _=require(_0x873a('0x0'));var util=require(_0x873a('0x1'));var moment=require(_0x873a('0x2'));var BPromise=require(_0x873a('0x3'));var rs=require(_0x873a('0x4'));var fs=require('fs');var Redis=require(_0x873a('0x5'));var db=require(_0x873a('0x6'))['db'];var utils=require(_0x873a('0x7'));var logger=require(_0x873a('0x8'))(_0x873a('0x9'));var config=require(_0x873a('0xa'));var jayson=require(_0x873a('0xb'));var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x87b60a,_0x33359d,_0x4cbf80){return new BPromise(function(_0x3c19f9,_0x7f7f7d){return client[_0x873a('0xc')](_0x87b60a,_0x4cbf80)[_0x873a('0xd')](function(_0x4e15cd){logger[_0x873a('0xe')](_0x873a('0xf'),_0x33359d,_0x873a('0x10'));logger['debug'](_0x873a('0x11'),_0x33359d,_0x873a('0x10'),JSON[_0x873a('0x12')](_0x4e15cd));if(_0x4e15cd[_0x873a('0x13')]){if(_0x4e15cd[_0x873a('0x13')][_0x873a('0x14')]===0x1f4){logger[_0x873a('0x13')](_0x873a('0xf'),_0x33359d,_0x4e15cd[_0x873a('0x13')][_0x873a('0x15')]);return _0x7f7f7d(_0x4e15cd[_0x873a('0x13')][_0x873a('0x15')]);}logger[_0x873a('0x13')](_0x873a('0xf'),_0x33359d,_0x4e15cd[_0x873a('0x13')][_0x873a('0x15')]);return _0x3c19f9(_0x4e15cd[_0x873a('0x13')]['message']);}else{logger[_0x873a('0xe')](_0x873a('0xf'),_0x33359d,'request\x20sent');_0x3c19f9(_0x4e15cd[_0x873a('0x16')]['message']);}})[_0x873a('0x17')](function(_0x49d89a){logger[_0x873a('0x13')](_0x873a('0xf'),_0x33359d,_0x49d89a);_0x7f7f7d(_0x49d89a);});});}
\ No newline at end of file