Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / schedule / schedule.rpc.js
index 4f726c8..16e84da 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x839f=['then','info','Schedule,\x20%s,\x20%s','Schedule,\x20%s,\x20%s,\x20%s','request\x20sent','error','code','message','result','catch','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','request'];(function(_0x3afe18,_0x26922c){var _0x19ed1f=function(_0x1c0660){while(--_0x1c0660){_0x3afe18['push'](_0x3afe18['shift']());}};_0x19ed1f(++_0x26922c);}(_0x839f,0x94));var _0xf839=function(_0x5e0319,_0x1c21d5){_0x5e0319=_0x5e0319-0x0;var _0x550327=_0x839f[_0x5e0319];return _0x550327;};'use strict';var _=require('lodash');var util=require(_0xf839('0x0'));var moment=require(_0xf839('0x1'));var BPromise=require(_0xf839('0x2'));var rs=require(_0xf839('0x3'));var fs=require('fs');var Redis=require(_0xf839('0x4'));var db=require(_0xf839('0x5'))['db'];var utils=require(_0xf839('0x6'));var logger=require(_0xf839('0x7'))(_0xf839('0x8'));var config=require(_0xf839('0x9'));var jayson=require(_0xf839('0xa'));var client=jayson[_0xf839('0xb')]['http']({'port':0x232a});function respondWithRpcPromise(_0x8aa952,_0x4b260a,_0x148d89){return new BPromise(function(_0x34519b,_0x4add21){return client[_0xf839('0xc')](_0x8aa952,_0x148d89)[_0xf839('0xd')](function(_0x47b855){logger[_0xf839('0xe')](_0xf839('0xf'),_0x4b260a,'request\x20sent');logger['debug'](_0xf839('0x10'),_0x4b260a,_0xf839('0x11'),JSON['stringify'](_0x47b855));if(_0x47b855[_0xf839('0x12')]){if(_0x47b855[_0xf839('0x12')][_0xf839('0x13')]===0x1f4){logger[_0xf839('0x12')]('Schedule,\x20%s,\x20%s',_0x4b260a,_0x47b855[_0xf839('0x12')][_0xf839('0x14')]);return _0x4add21(_0x47b855[_0xf839('0x12')][_0xf839('0x14')]);}logger['error']('Schedule,\x20%s,\x20%s',_0x4b260a,_0x47b855[_0xf839('0x12')][_0xf839('0x14')]);return _0x34519b(_0x47b855[_0xf839('0x12')][_0xf839('0x14')]);}else{logger[_0xf839('0xe')]('Schedule,\x20%s,\x20%s',_0x4b260a,_0xf839('0x11'));_0x34519b(_0x47b855[_0xf839('0x15')][_0xf839('0x14')]);}})[_0xf839('0x16')](function(_0x46e600){logger[_0xf839('0x12')](_0xf839('0xf'),_0x4b260a,_0x46e600);_0x4add21(_0x46e600);});});}
\ 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