Built motion from commit e6806ed6.|2.6.0
[motion2.git] / server / api / intDeskField / intDeskField.rpc.js
index 993c463..6999d27 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xed1e=['info','DeskField,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','result','catch','lodash','bluebird','../../mysqldb','../../config/utils','../../config/environment','jayson/promise','http','then'];(function(_0x211b5d,_0xe4e830){var _0xd2fe7c=function(_0x594539){while(--_0x594539){_0x211b5d['push'](_0x211b5d['shift']());}};_0xd2fe7c(++_0xe4e830);}(_0xed1e,0x16e));var _0xeed1=function(_0x2726ad,_0x5073b1){_0x2726ad=_0x2726ad-0x0;var _0xd87993=_0xed1e[_0x2726ad];return _0xd87993;};'use strict';var _=require(_0xeed1('0x0'));var util=require('util');var moment=require('moment');var BPromise=require(_0xeed1('0x1'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0xeed1('0x2'))['db'];var utils=require(_0xeed1('0x3'));var logger=require('../../config/logger')('rpc');var config=require(_0xeed1('0x4'));var jayson=require(_0xeed1('0x5'));var client=jayson['client'][_0xeed1('0x6')]({'port':0x232a});function respondWithRpcPromise(_0xbccadd,_0x2d091d,_0x5088de){return new BPromise(function(_0x3b6338,_0x22f9bd){return client['request'](_0xbccadd,_0x5088de)[_0xeed1('0x7')](function(_0x53293d){logger[_0xeed1('0x8')](_0xeed1('0x9'),_0x2d091d,'request\x20sent');logger['debug']('DeskField,\x20%s,\x20%s,\x20%s',_0x2d091d,_0xeed1('0xa'),JSON[_0xeed1('0xb')](_0x53293d));if(_0x53293d[_0xeed1('0xc')]){if(_0x53293d[_0xeed1('0xc')][_0xeed1('0xd')]===0x1f4){logger[_0xeed1('0xc')](_0xeed1('0x9'),_0x2d091d,_0x53293d['error'][_0xeed1('0xe')]);return _0x22f9bd(_0x53293d[_0xeed1('0xc')]['message']);}logger[_0xeed1('0xc')](_0xeed1('0x9'),_0x2d091d,_0x53293d[_0xeed1('0xc')][_0xeed1('0xe')]);return _0x3b6338(_0x53293d[_0xeed1('0xc')][_0xeed1('0xe')]);}else{logger[_0xeed1('0x8')](_0xeed1('0x9'),_0x2d091d,'request\x20sent');_0x3b6338(_0x53293d[_0xeed1('0xf')][_0xeed1('0xe')]);}})[_0xeed1('0x10')](function(_0x2f76fb){logger['error'](_0xeed1('0x9'),_0x2d091d,_0x2f76fb);_0x22f9bd(_0x2f76fb);});});}
\ No newline at end of file
+var _0x8ca2=['then','info','DeskField,\x20%s,\x20%s','request\x20sent','debug','DeskField,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/environment','jayson/promise','http','request'];(function(_0x4e55a9,_0x241b22){var _0x4a9b67=function(_0x2a3bd1){while(--_0x2a3bd1){_0x4e55a9['push'](_0x4e55a9['shift']());}};_0x4a9b67(++_0x241b22);}(_0x8ca2,0x68));var _0x28ca=function(_0x4b2863,_0x494899){_0x4b2863=_0x4b2863-0x0;var _0x567d67=_0x8ca2[_0x4b2863];return _0x567d67;};'use strict';var _=require(_0x28ca('0x0'));var util=require('util');var moment=require(_0x28ca('0x1'));var BPromise=require(_0x28ca('0x2'));var rs=require(_0x28ca('0x3'));var fs=require('fs');var Redis=require(_0x28ca('0x4'));var db=require(_0x28ca('0x5'))['db'];var utils=require(_0x28ca('0x6'));var logger=require('../../config/logger')('rpc');var config=require(_0x28ca('0x7'));var jayson=require(_0x28ca('0x8'));var client=jayson['client'][_0x28ca('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x343a94,_0x4f59d2,_0x46c438){return new BPromise(function(_0xd10e0e,_0x854a52){return client[_0x28ca('0xa')](_0x343a94,_0x46c438)[_0x28ca('0xb')](function(_0x3a2a91){logger[_0x28ca('0xc')](_0x28ca('0xd'),_0x4f59d2,_0x28ca('0xe'));logger[_0x28ca('0xf')](_0x28ca('0x10'),_0x4f59d2,_0x28ca('0xe'),JSON[_0x28ca('0x11')](_0x3a2a91));if(_0x3a2a91[_0x28ca('0x12')]){if(_0x3a2a91[_0x28ca('0x12')][_0x28ca('0x13')]===0x1f4){logger[_0x28ca('0x12')]('DeskField,\x20%s,\x20%s',_0x4f59d2,_0x3a2a91[_0x28ca('0x12')][_0x28ca('0x14')]);return _0x854a52(_0x3a2a91[_0x28ca('0x12')][_0x28ca('0x14')]);}logger[_0x28ca('0x12')](_0x28ca('0xd'),_0x4f59d2,_0x3a2a91[_0x28ca('0x12')]['message']);return _0xd10e0e(_0x3a2a91[_0x28ca('0x12')][_0x28ca('0x14')]);}else{logger[_0x28ca('0xc')](_0x28ca('0xd'),_0x4f59d2,_0x28ca('0xe'));_0xd10e0e(_0x3a2a91[_0x28ca('0x15')][_0x28ca('0x14')]);}})[_0x28ca('0x16')](function(_0x45a5cb){logger[_0x28ca('0x12')](_0x28ca('0xd'),_0x4f59d2,_0x45a5cb);_0x854a52(_0x45a5cb);});});}
\ No newline at end of file