Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / schedule / schedule.rpc.js
index bbabd7e..16e84da 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x18b8=['../../config/utils','../../config/logger','rpc','jayson/promise','client','http','request','then','info','Schedule,\x20%s,\x20%s','debug','request\x20sent','stringify','error','code','message','catch','lodash','util','moment','bluebird','randomstring','../../mysqldb'];(function(_0xce698d,_0x829cad){var _0x1701d5=function(_0x2c48b8){while(--_0x2c48b8){_0xce698d['push'](_0xce698d['shift']());}};_0x1701d5(++_0x829cad);}(_0x18b8,0x9b));var _0x818b=function(_0x3bd307,_0x41784e){_0x3bd307=_0x3bd307-0x0;var _0x70449a=_0x18b8[_0x3bd307];return _0x70449a;};'use strict';var _=require(_0x818b('0x0'));var util=require(_0x818b('0x1'));var moment=require(_0x818b('0x2'));var BPromise=require(_0x818b('0x3'));var rs=require(_0x818b('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x818b('0x5'))['db'];var utils=require(_0x818b('0x6'));var logger=require(_0x818b('0x7'))(_0x818b('0x8'));var config=require('../../config/environment');var jayson=require(_0x818b('0x9'));var client=jayson[_0x818b('0xa')][_0x818b('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x31c031,_0x5cf5b8,_0x37fca0){return new BPromise(function(_0x25d01b,_0x56a473){return client[_0x818b('0xc')](_0x31c031,_0x37fca0)[_0x818b('0xd')](function(_0x3854a1){logger[_0x818b('0xe')](_0x818b('0xf'),_0x5cf5b8,'request\x20sent');logger[_0x818b('0x10')]('Schedule,\x20%s,\x20%s,\x20%s',_0x5cf5b8,_0x818b('0x11'),JSON[_0x818b('0x12')](_0x3854a1));if(_0x3854a1[_0x818b('0x13')]){if(_0x3854a1[_0x818b('0x13')][_0x818b('0x14')]===0x1f4){logger[_0x818b('0x13')](_0x818b('0xf'),_0x5cf5b8,_0x3854a1[_0x818b('0x13')]['message']);return _0x56a473(_0x3854a1[_0x818b('0x13')][_0x818b('0x15')]);}logger[_0x818b('0x13')](_0x818b('0xf'),_0x5cf5b8,_0x3854a1['error'][_0x818b('0x15')]);return _0x25d01b(_0x3854a1['error'][_0x818b('0x15')]);}else{logger[_0x818b('0xe')](_0x818b('0xf'),_0x5cf5b8,_0x818b('0x11'));_0x25d01b(_0x3854a1['result'][_0x818b('0x15')]);}})[_0x818b('0x16')](function(_0x3bc4c8){logger[_0x818b('0x13')]('Schedule,\x20%s,\x20%s',_0x5cf5b8,_0x3bc4c8);_0x56a473(_0x3bc4c8);});});}
\ No newline at end of file
+var _0x7803=['result','catch','lodash','util','moment','bluebird','../../mysqldb','rpc','../../config/environment','jayson/promise','http','request','then','Schedule,\x20%s,\x20%s','request\x20sent','debug','Schedule,\x20%s,\x20%s,\x20%s','stringify','error','code','message','info'];(function(_0x5f0a85,_0x517151){var _0x3ccda7=function(_0x37edce){while(--_0x37edce){_0x5f0a85['push'](_0x5f0a85['shift']());}};_0x3ccda7(++_0x517151);}(_0x7803,0x178));var _0x3780=function(_0x4374c7,_0x551652){_0x4374c7=_0x4374c7-0x0;var _0x24f414=_0x7803[_0x4374c7];return _0x24f414;};'use strict';var _=require(_0x3780('0x0'));var util=require(_0x3780('0x1'));var moment=require(_0x3780('0x2'));var BPromise=require(_0x3780('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0x3780('0x4'))['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')(_0x3780('0x5'));var config=require(_0x3780('0x6'));var jayson=require(_0x3780('0x7'));var client=jayson['client'][_0x3780('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x3bd68d,_0x535b10,_0x15e584){return new BPromise(function(_0x202e89,_0x91c277){return client[_0x3780('0x9')](_0x3bd68d,_0x15e584)[_0x3780('0xa')](function(_0x32d6e2){logger['info'](_0x3780('0xb'),_0x535b10,_0x3780('0xc'));logger[_0x3780('0xd')](_0x3780('0xe'),_0x535b10,_0x3780('0xc'),JSON[_0x3780('0xf')](_0x32d6e2));if(_0x32d6e2[_0x3780('0x10')]){if(_0x32d6e2[_0x3780('0x10')][_0x3780('0x11')]===0x1f4){logger[_0x3780('0x10')]('Schedule,\x20%s,\x20%s',_0x535b10,_0x32d6e2['error'][_0x3780('0x12')]);return _0x91c277(_0x32d6e2['error'][_0x3780('0x12')]);}logger[_0x3780('0x10')]('Schedule,\x20%s,\x20%s',_0x535b10,_0x32d6e2[_0x3780('0x10')][_0x3780('0x12')]);return _0x202e89(_0x32d6e2['error']['message']);}else{logger[_0x3780('0x13')](_0x3780('0xb'),_0x535b10,_0x3780('0xc'));_0x202e89(_0x32d6e2[_0x3780('0x14')][_0x3780('0x12')]);}})[_0x3780('0x15')](function(_0x521d5f){logger[_0x3780('0x10')](_0x3780('0xb'),_0x535b10,_0x521d5f);_0x91c277(_0x521d5f);});});}
\ No newline at end of file