Built motion from commit d1eab355.|2.6.28
[motion2.git] / server / api / intDeskField / intDeskField.rpc.js
index 0fcc157..489a05f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xec58=['http','request','then','request\x20sent','debug','DeskField,\x20%s,\x20%s,\x20%s','stringify','error','DeskField,\x20%s,\x20%s','message','result','lodash','util','moment','bluebird','ioredis','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','client'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xec58,0xa5));var _0x8ec5=function(_0x3b1b23,_0x21bccd){_0x3b1b23=_0x3b1b23-0x0;var _0x1efc85=_0xec58[_0x3b1b23];return _0x1efc85;};'use strict';var _=require(_0x8ec5('0x0'));var util=require(_0x8ec5('0x1'));var moment=require(_0x8ec5('0x2'));var BPromise=require(_0x8ec5('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x8ec5('0x4'));var db=require(_0x8ec5('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0x8ec5('0x6'))(_0x8ec5('0x7'));var config=require(_0x8ec5('0x8'));var jayson=require(_0x8ec5('0x9'));var client=jayson[_0x8ec5('0xa')][_0x8ec5('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x4b99ff,_0xc72232,_0xb45606){return new BPromise(function(_0x4fff63,_0x395087){return client[_0x8ec5('0xc')](_0x4b99ff,_0xb45606)[_0x8ec5('0xd')](function(_0x274a6a){logger['info']('DeskField,\x20%s,\x20%s',_0xc72232,_0x8ec5('0xe'));logger[_0x8ec5('0xf')](_0x8ec5('0x10'),_0xc72232,_0x8ec5('0xe'),JSON[_0x8ec5('0x11')](_0x274a6a));if(_0x274a6a[_0x8ec5('0x12')]){if(_0x274a6a[_0x8ec5('0x12')]['code']===0x1f4){logger[_0x8ec5('0x12')](_0x8ec5('0x13'),_0xc72232,_0x274a6a[_0x8ec5('0x12')]['message']);return _0x395087(_0x274a6a['error'][_0x8ec5('0x14')]);}logger[_0x8ec5('0x12')](_0x8ec5('0x13'),_0xc72232,_0x274a6a['error'][_0x8ec5('0x14')]);return _0x4fff63(_0x274a6a[_0x8ec5('0x12')][_0x8ec5('0x14')]);}else{logger['info'](_0x8ec5('0x13'),_0xc72232,'request\x20sent');_0x4fff63(_0x274a6a[_0x8ec5('0x15')][_0x8ec5('0x14')]);}})['catch'](function(_0x3f1c16){logger[_0x8ec5('0x12')](_0x8ec5('0x13'),_0xc72232,_0x3f1c16);_0x395087(_0x3f1c16);});});}
\ No newline at end of file
+var _0x7630=['randomstring','../../config/utils','../../config/logger','../../config/environment','client','http','then','info','DeskField,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','result','catch','lodash','util'];(function(_0x408077,_0x23a77c){var _0x5c5bf4=function(_0x537d2b){while(--_0x537d2b){_0x408077['push'](_0x408077['shift']());}};_0x5c5bf4(++_0x23a77c);}(_0x7630,0x154));var _0x0763=function(_0x3eee7e,_0x4ee836){_0x3eee7e=_0x3eee7e-0x0;var _0x2c0a97=_0x7630[_0x3eee7e];return _0x2c0a97;};'use strict';var _=require(_0x0763('0x0'));var util=require(_0x0763('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0x0763('0x2'));var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require(_0x0763('0x3'));var logger=require(_0x0763('0x4'))('rpc');var config=require(_0x0763('0x5'));var jayson=require('jayson/promise');var client=jayson[_0x0763('0x6')][_0x0763('0x7')]({'port':0x232a});function respondWithRpcPromise(_0x3171f3,_0x2945b6,_0x2651c7){return new BPromise(function(_0x33cf2b,_0x397025){return client['request'](_0x3171f3,_0x2651c7)[_0x0763('0x8')](function(_0x2a816e){logger[_0x0763('0x9')](_0x0763('0xa'),_0x2945b6,_0x0763('0xb'));logger[_0x0763('0xc')]('DeskField,\x20%s,\x20%s,\x20%s',_0x2945b6,_0x0763('0xb'),JSON[_0x0763('0xd')](_0x2a816e));if(_0x2a816e['error']){if(_0x2a816e[_0x0763('0xe')][_0x0763('0xf')]===0x1f4){logger[_0x0763('0xe')](_0x0763('0xa'),_0x2945b6,_0x2a816e[_0x0763('0xe')]['message']);return _0x397025(_0x2a816e[_0x0763('0xe')][_0x0763('0x10')]);}logger[_0x0763('0xe')](_0x0763('0xa'),_0x2945b6,_0x2a816e[_0x0763('0xe')][_0x0763('0x10')]);return _0x33cf2b(_0x2a816e[_0x0763('0xe')]['message']);}else{logger['info']('DeskField,\x20%s,\x20%s',_0x2945b6,_0x0763('0xb'));_0x33cf2b(_0x2a816e[_0x0763('0x11')]['message']);}})[_0x0763('0x12')](function(_0x42c9ef){logger[_0x0763('0xe')]('DeskField,\x20%s,\x20%s',_0x2945b6,_0x42c9ef);_0x397025(_0x42c9ef);});});}
\ No newline at end of file