Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / cmCustomField / cmCustomField.rpc.js
index 4bc9627..54ee38d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5b90=['lodash','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','rpc','../../config/environment','request','info','debug','CmCustomField,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','CmCustomField,\x20%s,\x20%s','message','result','catch'];(function(_0x32e61d,_0x5733b7){var _0x4db536=function(_0x23cdfb){while(--_0x23cdfb){_0x32e61d['push'](_0x32e61d['shift']());}};_0x4db536(++_0x5733b7);}(_0x5b90,0x13b));var _0x05b9=function(_0x5bc440,_0x2b6060){_0x5bc440=_0x5bc440-0x0;var _0x422868=_0x5b90[_0x5bc440];return _0x422868;};'use strict';var _=require(_0x05b9('0x0'));var util=require('util');var moment=require(_0x05b9('0x1'));var BPromise=require(_0x05b9('0x2'));var rs=require(_0x05b9('0x3'));var fs=require('fs');var Redis=require(_0x05b9('0x4'));var db=require(_0x05b9('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0x05b9('0x6'))(_0x05b9('0x7'));var config=require(_0x05b9('0x8'));var jayson=require('jayson/promise');var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x42a093,_0x3acf35,_0x1dbe7a){return new BPromise(function(_0x4a9661,_0x1e37c5){return client[_0x05b9('0x9')](_0x42a093,_0x1dbe7a)['then'](function(_0x4fd998){logger[_0x05b9('0xa')]('CmCustomField,\x20%s,\x20%s',_0x3acf35,'request\x20sent');logger[_0x05b9('0xb')](_0x05b9('0xc'),_0x3acf35,_0x05b9('0xd'),JSON[_0x05b9('0xe')](_0x4fd998));if(_0x4fd998[_0x05b9('0xf')]){if(_0x4fd998['error'][_0x05b9('0x10')]===0x1f4){logger[_0x05b9('0xf')](_0x05b9('0x11'),_0x3acf35,_0x4fd998['error'][_0x05b9('0x12')]);return _0x1e37c5(_0x4fd998[_0x05b9('0xf')][_0x05b9('0x12')]);}logger[_0x05b9('0xf')](_0x05b9('0x11'),_0x3acf35,_0x4fd998[_0x05b9('0xf')]['message']);return _0x4a9661(_0x4fd998[_0x05b9('0xf')]['message']);}else{logger[_0x05b9('0xa')]('CmCustomField,\x20%s,\x20%s',_0x3acf35,_0x05b9('0xd'));_0x4a9661(_0x4fd998[_0x05b9('0x13')][_0x05b9('0x12')]);}})[_0x05b9('0x14')](function(_0x309f9d){logger[_0x05b9('0xf')](_0x05b9('0x11'),_0x3acf35,_0x309f9d);_0x1e37c5(_0x309f9d);});});}
\ No newline at end of file
+var _0xa66f=['request','then','info','CmCustomField,\x20%s,\x20%s','request\x20sent','debug','CmCustomField,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','jayson/promise','http'];(function(_0x9664b9,_0x51d10e){var _0x420c36=function(_0x131a18){while(--_0x131a18){_0x9664b9['push'](_0x9664b9['shift']());}};_0x420c36(++_0x51d10e);}(_0xa66f,0xde));var _0xfa66=function(_0x5eab85,_0xb5fed3){_0x5eab85=_0x5eab85-0x0;var _0x3f9bdd=_0xa66f[_0x5eab85];return _0x3f9bdd;};'use strict';var _=require('lodash');var util=require(_0xfa66('0x0'));var moment=require(_0xfa66('0x1'));var BPromise=require('bluebird');var rs=require(_0xfa66('0x2'));var fs=require('fs');var Redis=require(_0xfa66('0x3'));var db=require(_0xfa66('0x4'))['db'];var utils=require(_0xfa66('0x5'));var logger=require('../../config/logger')(_0xfa66('0x6'));var config=require('../../config/environment');var jayson=require(_0xfa66('0x7'));var client=jayson['client'][_0xfa66('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x3ba9b3,_0x4ae66a,_0x53a514){return new BPromise(function(_0x339a52,_0x558ae7){return client[_0xfa66('0x9')](_0x3ba9b3,_0x53a514)[_0xfa66('0xa')](function(_0x280126){logger[_0xfa66('0xb')](_0xfa66('0xc'),_0x4ae66a,_0xfa66('0xd'));logger[_0xfa66('0xe')](_0xfa66('0xf'),_0x4ae66a,_0xfa66('0xd'),JSON[_0xfa66('0x10')](_0x280126));if(_0x280126['error']){if(_0x280126[_0xfa66('0x11')][_0xfa66('0x12')]===0x1f4){logger[_0xfa66('0x11')](_0xfa66('0xc'),_0x4ae66a,_0x280126['error'][_0xfa66('0x13')]);return _0x558ae7(_0x280126['error'][_0xfa66('0x13')]);}logger[_0xfa66('0x11')](_0xfa66('0xc'),_0x4ae66a,_0x280126[_0xfa66('0x11')][_0xfa66('0x13')]);return _0x339a52(_0x280126[_0xfa66('0x11')][_0xfa66('0x13')]);}else{logger[_0xfa66('0xb')]('CmCustomField,\x20%s,\x20%s',_0x4ae66a,_0xfa66('0xd'));_0x339a52(_0x280126[_0xfa66('0x14')][_0xfa66('0x13')]);}})['catch'](function(_0x406c50){logger[_0xfa66('0x11')](_0xfa66('0xc'),_0x4ae66a,_0x406c50);_0x558ae7(_0x406c50);});});}
\ No newline at end of file