Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / intDeskConfiguration / intDeskConfiguration.rpc.js
index 5a06521..2e70b94 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x894f=['jayson/promise','request','then','info','DeskConfiguration,\x20%s,\x20%s','request\x20sent','debug','DeskConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','lodash','util','moment','bluebird','../../mysqldb','../../config/utils','../../config/environment'];(function(_0x16be59,_0x2a60e4){var _0x24a92f=function(_0x2f6e37){while(--_0x2f6e37){_0x16be59['push'](_0x16be59['shift']());}};_0x24a92f(++_0x2a60e4);}(_0x894f,0x14d));var _0xf894=function(_0x4be43b,_0x2714c0){_0x4be43b=_0x4be43b-0x0;var _0x12cea9=_0x894f[_0x4be43b];return _0x12cea9;};'use strict';var _=require(_0xf894('0x0'));var util=require(_0xf894('0x1'));var moment=require(_0xf894('0x2'));var BPromise=require(_0xf894('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0xf894('0x4'))['db'];var utils=require(_0xf894('0x5'));var logger=require('../../config/logger')('rpc');var config=require(_0xf894('0x6'));var jayson=require(_0xf894('0x7'));var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x23a9fc,_0x371f86,_0x56d9d6){return new BPromise(function(_0x190cb1,_0x3d8f21){return client[_0xf894('0x8')](_0x23a9fc,_0x56d9d6)[_0xf894('0x9')](function(_0x10bb84){logger[_0xf894('0xa')](_0xf894('0xb'),_0x371f86,_0xf894('0xc'));logger[_0xf894('0xd')](_0xf894('0xe'),_0x371f86,_0xf894('0xc'),JSON[_0xf894('0xf')](_0x10bb84));if(_0x10bb84[_0xf894('0x10')]){if(_0x10bb84[_0xf894('0x10')][_0xf894('0x11')]===0x1f4){logger[_0xf894('0x10')](_0xf894('0xb'),_0x371f86,_0x10bb84[_0xf894('0x10')][_0xf894('0x12')]);return _0x3d8f21(_0x10bb84[_0xf894('0x10')][_0xf894('0x12')]);}logger[_0xf894('0x10')]('DeskConfiguration,\x20%s,\x20%s',_0x371f86,_0x10bb84[_0xf894('0x10')]['message']);return _0x190cb1(_0x10bb84['error'][_0xf894('0x12')]);}else{logger[_0xf894('0xa')](_0xf894('0xb'),_0x371f86,_0xf894('0xc'));_0x190cb1(_0x10bb84[_0xf894('0x13')]['message']);}})['catch'](function(_0x1865be){logger['error']('DeskConfiguration,\x20%s,\x20%s',_0x371f86,_0x1865be);_0x3d8f21(_0x1865be);});});}
\ No newline at end of file
+var _0x041d=['../../config/environment','client','http','request','then','info','DeskConfiguration,\x20%s,\x20%s','debug','DeskConfiguration,\x20%s,\x20%s,\x20%s','request\x20sent','error','code','message','result','catch','lodash','util','moment','bluebird','randomstring','../../config/utils','rpc'];(function(_0x47b58b,_0x41a189){var _0x46bebe=function(_0x22bbfa){while(--_0x22bbfa){_0x47b58b['push'](_0x47b58b['shift']());}};_0x46bebe(++_0x41a189);}(_0x041d,0x185));var _0xd041=function(_0xaa0309,_0x1c8008){_0xaa0309=_0xaa0309-0x0;var _0x5de7ce=_0x041d[_0xaa0309];return _0x5de7ce;};'use strict';var _=require(_0xd041('0x0'));var util=require(_0xd041('0x1'));var moment=require(_0xd041('0x2'));var BPromise=require(_0xd041('0x3'));var rs=require(_0xd041('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require(_0xd041('0x5'));var logger=require('../../config/logger')(_0xd041('0x6'));var config=require(_0xd041('0x7'));var jayson=require('jayson/promise');var client=jayson[_0xd041('0x8')][_0xd041('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x155067,_0x2c5cfd,_0x18c403){return new BPromise(function(_0x2afab7,_0x5f5621){return client[_0xd041('0xa')](_0x155067,_0x18c403)[_0xd041('0xb')](function(_0x4672f6){logger[_0xd041('0xc')](_0xd041('0xd'),_0x2c5cfd,'request\x20sent');logger[_0xd041('0xe')](_0xd041('0xf'),_0x2c5cfd,_0xd041('0x10'),JSON['stringify'](_0x4672f6));if(_0x4672f6[_0xd041('0x11')]){if(_0x4672f6['error'][_0xd041('0x12')]===0x1f4){logger[_0xd041('0x11')](_0xd041('0xd'),_0x2c5cfd,_0x4672f6['error']['message']);return _0x5f5621(_0x4672f6[_0xd041('0x11')]['message']);}logger[_0xd041('0x11')](_0xd041('0xd'),_0x2c5cfd,_0x4672f6[_0xd041('0x11')][_0xd041('0x13')]);return _0x2afab7(_0x4672f6[_0xd041('0x11')][_0xd041('0x13')]);}else{logger['info'](_0xd041('0xd'),_0x2c5cfd,_0xd041('0x10'));_0x2afab7(_0x4672f6[_0xd041('0x14')][_0xd041('0x13')]);}})[_0xd041('0x15')](function(_0x3f775f){logger[_0xd041('0x11')](_0xd041('0xd'),_0x2c5cfd,_0x3f775f);_0x5f5621(_0x3f775f);});});}
\ No newline at end of file