Built motion from commit e6806ed6.|2.6.0
[motion2.git] / server / api / intDeskField / intDeskField.rpc.js
index ecfefed..6999d27 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0d70=['../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','then','request\x20sent','debug','DeskField,\x20%s,\x20%s,\x20%s','stringify','error','code','DeskField,\x20%s,\x20%s','message','result','catch','util','randomstring','ioredis'];(function(_0x57c8a8,_0x5c0c02){var _0x5156c5=function(_0x166bc3){while(--_0x166bc3){_0x57c8a8['push'](_0x57c8a8['shift']());}};_0x5156c5(++_0x5c0c02);}(_0x0d70,0xd9));var _0x00d7=function(_0x3de97a,_0x4f9bba){_0x3de97a=_0x3de97a-0x0;var _0x463d5d=_0x0d70[_0x3de97a];return _0x463d5d;};'use strict';var _=require('lodash');var util=require(_0x00d7('0x0'));var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0x00d7('0x1'));var fs=require('fs');var Redis=require(_0x00d7('0x2'));var db=require(_0x00d7('0x3'))['db'];var utils=require(_0x00d7('0x4'));var logger=require(_0x00d7('0x5'))(_0x00d7('0x6'));var config=require(_0x00d7('0x7'));var jayson=require(_0x00d7('0x8'));var client=jayson[_0x00d7('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0xdf2a3a,_0x56f69d,_0x4c3bf2){return new BPromise(function(_0x5a6583,_0x34621e){return client[_0x00d7('0xa')](_0xdf2a3a,_0x4c3bf2)[_0x00d7('0xb')](function(_0x5da1de){logger['info']('DeskField,\x20%s,\x20%s',_0x56f69d,_0x00d7('0xc'));logger[_0x00d7('0xd')](_0x00d7('0xe'),_0x56f69d,'request\x20sent',JSON[_0x00d7('0xf')](_0x5da1de));if(_0x5da1de['error']){if(_0x5da1de[_0x00d7('0x10')][_0x00d7('0x11')]===0x1f4){logger[_0x00d7('0x10')](_0x00d7('0x12'),_0x56f69d,_0x5da1de['error'][_0x00d7('0x13')]);return _0x34621e(_0x5da1de['error'][_0x00d7('0x13')]);}logger[_0x00d7('0x10')](_0x00d7('0x12'),_0x56f69d,_0x5da1de[_0x00d7('0x10')][_0x00d7('0x13')]);return _0x5a6583(_0x5da1de[_0x00d7('0x10')][_0x00d7('0x13')]);}else{logger['info']('DeskField,\x20%s,\x20%s',_0x56f69d,_0x00d7('0xc'));_0x5a6583(_0x5da1de[_0x00d7('0x14')][_0x00d7('0x13')]);}})[_0x00d7('0x15')](function(_0x8b44dd){logger[_0x00d7('0x10')](_0x00d7('0x12'),_0x56f69d,_0x8b44dd);_0x34621e(_0x8b44dd);});});}
\ 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