Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / schedule / schedule.rpc.js
index a3f8fe2..55ab157 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfc73=['message','catch','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','jayson/promise','client','http','info','Schedule,\x20%s,\x20%s','request\x20sent','debug','Schedule,\x20%s,\x20%s,\x20%s','error'];(function(_0x3893ad,_0x3b3a57){var _0x411ac2=function(_0x2dcea6){while(--_0x2dcea6){_0x3893ad['push'](_0x3893ad['shift']());}};_0x411ac2(++_0x3b3a57);}(_0xfc73,0x145));var _0x3fc7=function(_0x4b7895,_0x3c4f5d){_0x4b7895=_0x4b7895-0x0;var _0x264180=_0xfc73[_0x4b7895];return _0x264180;};'use strict';var _=require('lodash');var util=require(_0x3fc7('0x0'));var moment=require('moment');var BPromise=require(_0x3fc7('0x1'));var rs=require(_0x3fc7('0x2'));var fs=require('fs');var Redis=require(_0x3fc7('0x3'));var db=require(_0x3fc7('0x4'))['db'];var utils=require(_0x3fc7('0x5'));var logger=require(_0x3fc7('0x6'))(_0x3fc7('0x7'));var config=require('../../config/environment');var jayson=require(_0x3fc7('0x8'));var client=jayson[_0x3fc7('0x9')][_0x3fc7('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x94ddb6,_0x55055f,_0x3a8690){return new BPromise(function(_0x912d96,_0x32f636){return client['request'](_0x94ddb6,_0x3a8690)['then'](function(_0x121a7d){logger[_0x3fc7('0xb')](_0x3fc7('0xc'),_0x55055f,_0x3fc7('0xd'));logger[_0x3fc7('0xe')](_0x3fc7('0xf'),_0x55055f,'request\x20sent',JSON['stringify'](_0x121a7d));if(_0x121a7d[_0x3fc7('0x10')]){if(_0x121a7d['error']['code']===0x1f4){logger[_0x3fc7('0x10')](_0x3fc7('0xc'),_0x55055f,_0x121a7d['error'][_0x3fc7('0x11')]);return _0x32f636(_0x121a7d['error'][_0x3fc7('0x11')]);}logger[_0x3fc7('0x10')](_0x3fc7('0xc'),_0x55055f,_0x121a7d[_0x3fc7('0x10')][_0x3fc7('0x11')]);return _0x912d96(_0x121a7d['error'][_0x3fc7('0x11')]);}else{logger[_0x3fc7('0xb')](_0x3fc7('0xc'),_0x55055f,'request\x20sent');_0x912d96(_0x121a7d['result'][_0x3fc7('0x11')]);}})[_0x3fc7('0x12')](function(_0x3e8d2a){logger[_0x3fc7('0x10')]('Schedule,\x20%s,\x20%s',_0x55055f,_0x3e8d2a);_0x32f636(_0x3e8d2a);});});}
\ No newline at end of file
+var _0xf254=['then','info','Schedule,\x20%s,\x20%s','debug','Schedule,\x20%s,\x20%s,\x20%s','stringify','error','message','result','catch','lodash','moment','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http','request'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xf254,0x1c2));var _0x4f25=function(_0x1ccb95,_0x1b3be8){_0x1ccb95=_0x1ccb95-0x0;var _0x1a9725=_0xf254[_0x1ccb95];return _0x1a9725;};'use strict';var _=require(_0x4f25('0x0'));var util=require('util');var moment=require(_0x4f25('0x1'));var BPromise=require(_0x4f25('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x4f25('0x3'));var db=require(_0x4f25('0x4'))['db'];var utils=require(_0x4f25('0x5'));var logger=require(_0x4f25('0x6'))(_0x4f25('0x7'));var config=require(_0x4f25('0x8'));var jayson=require(_0x4f25('0x9'));var client=jayson['client'][_0x4f25('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x1828ea,_0x534db9,_0x156696){return new BPromise(function(_0x47c797,_0x2ff989){return client[_0x4f25('0xb')](_0x1828ea,_0x156696)[_0x4f25('0xc')](function(_0x5e11c4){logger[_0x4f25('0xd')](_0x4f25('0xe'),_0x534db9,'request\x20sent');logger[_0x4f25('0xf')](_0x4f25('0x10'),_0x534db9,'request\x20sent',JSON[_0x4f25('0x11')](_0x5e11c4));if(_0x5e11c4[_0x4f25('0x12')]){if(_0x5e11c4[_0x4f25('0x12')]['code']===0x1f4){logger[_0x4f25('0x12')]('Schedule,\x20%s,\x20%s',_0x534db9,_0x5e11c4[_0x4f25('0x12')][_0x4f25('0x13')]);return _0x2ff989(_0x5e11c4[_0x4f25('0x12')][_0x4f25('0x13')]);}logger[_0x4f25('0x12')](_0x4f25('0xe'),_0x534db9,_0x5e11c4[_0x4f25('0x12')]['message']);return _0x47c797(_0x5e11c4[_0x4f25('0x12')]['message']);}else{logger[_0x4f25('0xd')](_0x4f25('0xe'),_0x534db9,'request\x20sent');_0x47c797(_0x5e11c4[_0x4f25('0x14')][_0x4f25('0x13')]);}})[_0x4f25('0x15')](function(_0x259384){logger[_0x4f25('0x12')](_0x4f25('0xe'),_0x534db9,_0x259384);_0x2ff989(_0x259384);});});}
\ No newline at end of file