X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FintDeskConfiguration%2FintDeskConfiguration.rpc.js;h=fc85861d9d0862774d65aed25adb7fab18d072fb;hb=c593ef5de079879fb7bfbdd8f8d4d8640e684821;hp=d7443efc522b6851113fb522f060e496ae069103;hpb=7b947914a77b8347fb1d6de0275fa1bbfcdf6ff9;p=motion2.git diff --git a/server/api/intDeskConfiguration/intDeskConfiguration.rpc.js b/server/api/intDeskConfiguration/intDeskConfiguration.rpc.js index d7443ef..fc85861 100644 --- a/server/api/intDeskConfiguration/intDeskConfiguration.rpc.js +++ b/server/api/intDeskConfiguration/intDeskConfiguration.rpc.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0xd7c1=['request\x20sent','debug','DeskConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','code','message','info','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','DeskConfiguration,\x20%s,\x20%s'];(function(_0x2cd3d8,_0x5ddfb0){var _0x1ee6e1=function(_0x39b230){while(--_0x39b230){_0x2cd3d8['push'](_0x2cd3d8['shift']());}};_0x1ee6e1(++_0x5ddfb0);}(_0xd7c1,0xa5));var _0x1d7c=function(_0x197e38,_0x1c37b9){_0x197e38=_0x197e38-0x0;var _0x129d53=_0xd7c1[_0x197e38];return _0x129d53;};'use strict';var _=require(_0x1d7c('0x0'));var util=require(_0x1d7c('0x1'));var moment=require(_0x1d7c('0x2'));var BPromise=require(_0x1d7c('0x3'));var rs=require(_0x1d7c('0x4'));var fs=require('fs');var Redis=require(_0x1d7c('0x5'));var db=require(_0x1d7c('0x6'))['db'];var utils=require(_0x1d7c('0x7'));var logger=require(_0x1d7c('0x8'))(_0x1d7c('0x9'));var config=require(_0x1d7c('0xa'));var jayson=require(_0x1d7c('0xb'));var client=jayson[_0x1d7c('0xc')][_0x1d7c('0xd')]({'port':0x232a});function respondWithRpcPromise(_0x13fc7a,_0x5d7e81,_0x42ff6c){return new BPromise(function(_0x568838,_0x44e7ca){return client[_0x1d7c('0xe')](_0x13fc7a,_0x42ff6c)[_0x1d7c('0xf')](function(_0x4a7eef){logger['info'](_0x1d7c('0x10'),_0x5d7e81,_0x1d7c('0x11'));logger[_0x1d7c('0x12')](_0x1d7c('0x13'),_0x5d7e81,'request\x20sent',JSON[_0x1d7c('0x14')](_0x4a7eef));if(_0x4a7eef[_0x1d7c('0x15')]){if(_0x4a7eef['error'][_0x1d7c('0x16')]===0x1f4){logger[_0x1d7c('0x15')](_0x1d7c('0x10'),_0x5d7e81,_0x4a7eef['error'][_0x1d7c('0x17')]);return _0x44e7ca(_0x4a7eef['error'][_0x1d7c('0x17')]);}logger[_0x1d7c('0x15')](_0x1d7c('0x10'),_0x5d7e81,_0x4a7eef[_0x1d7c('0x15')]['message']);return _0x568838(_0x4a7eef[_0x1d7c('0x15')]['message']);}else{logger[_0x1d7c('0x18')]('DeskConfiguration,\x20%s,\x20%s',_0x5d7e81,_0x1d7c('0x11'));_0x568838(_0x4a7eef['result'][_0x1d7c('0x17')]);}})[_0x1d7c('0x19')](function(_0xfafa7a){logger[_0x1d7c('0x15')](_0x1d7c('0x10'),_0x5d7e81,_0xfafa7a);_0x44e7ca(_0xfafa7a);});});} \ No newline at end of file +var _0x6faf=['stringify','error','message','info','request\x20sent','result','catch','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','../../config/environment','client','http','request','then','DeskConfiguration,\x20%s,\x20%s','debug','DeskConfiguration,\x20%s,\x20%s,\x20%s'];(function(_0x19e35c,_0x29cd1e){var _0x3e1fe8=function(_0x17258b){while(--_0x17258b){_0x19e35c['push'](_0x19e35c['shift']());}};_0x3e1fe8(++_0x29cd1e);}(_0x6faf,0xf9));var _0xf6fa=function(_0xa464c9,_0x7c86d8){_0xa464c9=_0xa464c9-0x0;var _0x3d73c4=_0x6faf[_0xa464c9];return _0x3d73c4;};'use strict';var _=require('lodash');var util=require(_0xf6fa('0x0'));var moment=require(_0xf6fa('0x1'));var BPromise=require(_0xf6fa('0x2'));var rs=require(_0xf6fa('0x3'));var fs=require('fs');var Redis=require(_0xf6fa('0x4'));var db=require(_0xf6fa('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0xf6fa('0x6'))('rpc');var config=require(_0xf6fa('0x7'));var jayson=require('jayson/promise');var client=jayson[_0xf6fa('0x8')][_0xf6fa('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x1f93f1,_0x1ac55e,_0x2de713){return new BPromise(function(_0x4e1b3c,_0x3f4d3f){return client[_0xf6fa('0xa')](_0x1f93f1,_0x2de713)[_0xf6fa('0xb')](function(_0x585633){logger['info'](_0xf6fa('0xc'),_0x1ac55e,'request\x20sent');logger[_0xf6fa('0xd')](_0xf6fa('0xe'),_0x1ac55e,'request\x20sent',JSON[_0xf6fa('0xf')](_0x585633));if(_0x585633['error']){if(_0x585633[_0xf6fa('0x10')]['code']===0x1f4){logger['error']('DeskConfiguration,\x20%s,\x20%s',_0x1ac55e,_0x585633[_0xf6fa('0x10')][_0xf6fa('0x11')]);return _0x3f4d3f(_0x585633[_0xf6fa('0x10')][_0xf6fa('0x11')]);}logger[_0xf6fa('0x10')](_0xf6fa('0xc'),_0x1ac55e,_0x585633[_0xf6fa('0x10')][_0xf6fa('0x11')]);return _0x4e1b3c(_0x585633[_0xf6fa('0x10')][_0xf6fa('0x11')]);}else{logger[_0xf6fa('0x12')]('DeskConfiguration,\x20%s,\x20%s',_0x1ac55e,_0xf6fa('0x13'));_0x4e1b3c(_0x585633[_0xf6fa('0x14')]['message']);}})[_0xf6fa('0x15')](function(_0x476eeb){logger[_0xf6fa('0x10')]('DeskConfiguration,\x20%s,\x20%s',_0x1ac55e,_0x476eeb);_0x3f4d3f(_0x476eeb);});});} \ No newline at end of file