Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / server / api / schedule / schedule.rpc.js
index c77acac..99bb407 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x64ba=['../../config/utils','rpc','../../config/environment','jayson/promise','client','request','then','info','Schedule,\x20%s,\x20%s','request\x20sent','Schedule,\x20%s,\x20%s,\x20%s','stringify','error','code','message','moment','ioredis','../../mysqldb'];(function(_0x79b8ec,_0x18392d){var _0x28a878=function(_0x5b4dab){while(--_0x5b4dab){_0x79b8ec['push'](_0x79b8ec['shift']());}};_0x28a878(++_0x18392d);}(_0x64ba,0x141));var _0xa64b=function(_0x1203f,_0x554bbc){_0x1203f=_0x1203f-0x0;var _0x365f0a=_0x64ba[_0x1203f];return _0x365f0a;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0xa64b('0x0'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xa64b('0x1'));var db=require(_0xa64b('0x2'))['db'];var utils=require(_0xa64b('0x3'));var logger=require('../../config/logger')(_0xa64b('0x4'));var config=require(_0xa64b('0x5'));var jayson=require(_0xa64b('0x6'));var client=jayson[_0xa64b('0x7')]['http']({'port':0x232a});function respondWithRpcPromise(_0x472653,_0x1cb56a,_0x36aefb){return new BPromise(function(_0x1f40c8,_0x2b2c65){return client[_0xa64b('0x8')](_0x472653,_0x36aefb)[_0xa64b('0x9')](function(_0x202df0){logger[_0xa64b('0xa')](_0xa64b('0xb'),_0x1cb56a,_0xa64b('0xc'));logger['debug'](_0xa64b('0xd'),_0x1cb56a,_0xa64b('0xc'),JSON[_0xa64b('0xe')](_0x202df0));if(_0x202df0['error']){if(_0x202df0[_0xa64b('0xf')][_0xa64b('0x10')]===0x1f4){logger[_0xa64b('0xf')](_0xa64b('0xb'),_0x1cb56a,_0x202df0[_0xa64b('0xf')][_0xa64b('0x11')]);return _0x2b2c65(_0x202df0['error'][_0xa64b('0x11')]);}logger['error'](_0xa64b('0xb'),_0x1cb56a,_0x202df0['error'][_0xa64b('0x11')]);return _0x1f40c8(_0x202df0[_0xa64b('0xf')][_0xa64b('0x11')]);}else{logger[_0xa64b('0xa')](_0xa64b('0xb'),_0x1cb56a,_0xa64b('0xc'));_0x1f40c8(_0x202df0['result'][_0xa64b('0x11')]);}})['catch'](function(_0x3db799){logger[_0xa64b('0xf')]('Schedule,\x20%s,\x20%s',_0x1cb56a,_0x3db799);_0x2b2c65(_0x3db799);});});}
\ No newline at end of file
+var _0x7f4b=['Schedule,\x20%s,\x20%s,\x20%s','error','code','message','catch','lodash','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','Schedule,\x20%s,\x20%s','request\x20sent','debug'];(function(_0x411add,_0x1aed38){var _0x238242=function(_0x4a1cd5){while(--_0x4a1cd5){_0x411add['push'](_0x411add['shift']());}};_0x238242(++_0x1aed38);}(_0x7f4b,0x165));var _0xb7f4=function(_0x281820,_0x47572b){_0x281820=_0x281820-0x0;var _0x2d05f6=_0x7f4b[_0x281820];return _0x2d05f6;};'use strict';var _=require(_0xb7f4('0x0'));var util=require('util');var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0xb7f4('0x1'));var fs=require('fs');var Redis=require(_0xb7f4('0x2'));var db=require(_0xb7f4('0x3'))['db'];var utils=require(_0xb7f4('0x4'));var logger=require(_0xb7f4('0x5'))(_0xb7f4('0x6'));var config=require(_0xb7f4('0x7'));var jayson=require(_0xb7f4('0x8'));var client=jayson[_0xb7f4('0x9')][_0xb7f4('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x1104fb,_0x1c6187,_0x2fe69c){return new BPromise(function(_0x11f000,_0x4961af){return client[_0xb7f4('0xb')](_0x1104fb,_0x2fe69c)[_0xb7f4('0xc')](function(_0x4b43b9){logger[_0xb7f4('0xd')](_0xb7f4('0xe'),_0x1c6187,_0xb7f4('0xf'));logger[_0xb7f4('0x10')](_0xb7f4('0x11'),_0x1c6187,_0xb7f4('0xf'),JSON['stringify'](_0x4b43b9));if(_0x4b43b9[_0xb7f4('0x12')]){if(_0x4b43b9['error'][_0xb7f4('0x13')]===0x1f4){logger[_0xb7f4('0x12')](_0xb7f4('0xe'),_0x1c6187,_0x4b43b9[_0xb7f4('0x12')]['message']);return _0x4961af(_0x4b43b9[_0xb7f4('0x12')][_0xb7f4('0x14')]);}logger[_0xb7f4('0x12')]('Schedule,\x20%s,\x20%s',_0x1c6187,_0x4b43b9[_0xb7f4('0x12')][_0xb7f4('0x14')]);return _0x11f000(_0x4b43b9[_0xb7f4('0x12')]['message']);}else{logger[_0xb7f4('0xd')](_0xb7f4('0xe'),_0x1c6187,'request\x20sent');_0x11f000(_0x4b43b9['result'][_0xb7f4('0x14')]);}})[_0xb7f4('0x15')](function(_0x3d68bc){logger['error'](_0xb7f4('0xe'),_0x1c6187,_0x3d68bc);_0x4961af(_0x3d68bc);});});}
\ No newline at end of file