Built motion from commit ff78e754.|2.6.29
[motion2.git] / server / api / cmCustomField / cmCustomField.rpc.js
index 825c15d..311847f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8fcf=['lodash','util','moment','bluebird','randomstring','ioredis','rpc','../../config/environment','request','then','info','CmCustomField,\x20%s,\x20%s','debug','CmCustomField,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','result','catch'];(function(_0x1a7f88,_0x286a16){var _0x4b91ac=function(_0x1e57d6){while(--_0x1e57d6){_0x1a7f88['push'](_0x1a7f88['shift']());}};_0x4b91ac(++_0x286a16);}(_0x8fcf,0xe7));var _0xf8fc=function(_0x3fd93e,_0x5b1d47){_0x3fd93e=_0x3fd93e-0x0;var _0x2e42eb=_0x8fcf[_0x3fd93e];return _0x2e42eb;};'use strict';var _=require(_0xf8fc('0x0'));var util=require(_0xf8fc('0x1'));var moment=require(_0xf8fc('0x2'));var BPromise=require(_0xf8fc('0x3'));var rs=require(_0xf8fc('0x4'));var fs=require('fs');var Redis=require(_0xf8fc('0x5'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')(_0xf8fc('0x6'));var config=require(_0xf8fc('0x7'));var jayson=require('jayson/promise');var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x388961,_0x1de2f4,_0x37e5bd){return new BPromise(function(_0xcf3396,_0x45183f){return client[_0xf8fc('0x8')](_0x388961,_0x37e5bd)[_0xf8fc('0x9')](function(_0x760ae){logger[_0xf8fc('0xa')](_0xf8fc('0xb'),_0x1de2f4,'request\x20sent');logger[_0xf8fc('0xc')](_0xf8fc('0xd'),_0x1de2f4,_0xf8fc('0xe'),JSON[_0xf8fc('0xf')](_0x760ae));if(_0x760ae['error']){if(_0x760ae[_0xf8fc('0x10')][_0xf8fc('0x11')]===0x1f4){logger['error'](_0xf8fc('0xb'),_0x1de2f4,_0x760ae[_0xf8fc('0x10')]['message']);return _0x45183f(_0x760ae[_0xf8fc('0x10')][_0xf8fc('0x12')]);}logger['error'](_0xf8fc('0xb'),_0x1de2f4,_0x760ae[_0xf8fc('0x10')][_0xf8fc('0x12')]);return _0xcf3396(_0x760ae['error'][_0xf8fc('0x12')]);}else{logger[_0xf8fc('0xa')]('CmCustomField,\x20%s,\x20%s',_0x1de2f4,_0xf8fc('0xe'));_0xcf3396(_0x760ae[_0xf8fc('0x13')][_0xf8fc('0x12')]);}})[_0xf8fc('0x14')](function(_0x4a1b5c){logger['error'](_0xf8fc('0xb'),_0x1de2f4,_0x4a1b5c);_0x45183f(_0x4a1b5c);});});}
\ No newline at end of file
+var _0x3d5e=['bluebird','ioredis','../../mysqldb','../../config/logger','../../config/environment','client','http','request','info','CmCustomField,\x20%s,\x20%s','CmCustomField,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','result','util','moment'];(function(_0x3e3755,_0x5da816){var _0x49a7bc=function(_0x425133){while(--_0x425133){_0x3e3755['push'](_0x3e3755['shift']());}};_0x49a7bc(++_0x5da816);}(_0x3d5e,0x18d));var _0xe3d5=function(_0x4de74b,_0x2c5adc){_0x4de74b=_0x4de74b-0x0;var _0x3ad39b=_0x3d5e[_0x4de74b];return _0x3ad39b;};'use strict';var _=require('lodash');var util=require(_0xe3d5('0x0'));var moment=require(_0xe3d5('0x1'));var BPromise=require(_0xe3d5('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xe3d5('0x3'));var db=require(_0xe3d5('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0xe3d5('0x5'))('rpc');var config=require(_0xe3d5('0x6'));var jayson=require('jayson/promise');var client=jayson[_0xe3d5('0x7')][_0xe3d5('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x181a17,_0x2d31c1,_0x5d2b9e){return new BPromise(function(_0x210581,_0x33b487){return client[_0xe3d5('0x9')](_0x181a17,_0x5d2b9e)['then'](function(_0x14ed46){logger[_0xe3d5('0xa')](_0xe3d5('0xb'),_0x2d31c1,'request\x20sent');logger['debug'](_0xe3d5('0xc'),_0x2d31c1,_0xe3d5('0xd'),JSON[_0xe3d5('0xe')](_0x14ed46));if(_0x14ed46['error']){if(_0x14ed46[_0xe3d5('0xf')][_0xe3d5('0x10')]===0x1f4){logger[_0xe3d5('0xf')]('CmCustomField,\x20%s,\x20%s',_0x2d31c1,_0x14ed46['error'][_0xe3d5('0x11')]);return _0x33b487(_0x14ed46[_0xe3d5('0xf')]['message']);}logger[_0xe3d5('0xf')](_0xe3d5('0xb'),_0x2d31c1,_0x14ed46['error'][_0xe3d5('0x11')]);return _0x210581(_0x14ed46['error'][_0xe3d5('0x11')]);}else{logger[_0xe3d5('0xa')]('CmCustomField,\x20%s,\x20%s',_0x2d31c1,'request\x20sent');_0x210581(_0x14ed46[_0xe3d5('0x12')]['message']);}})['catch'](function(_0x24b581){logger['error'](_0xe3d5('0xb'),_0x2d31c1,_0x24b581);_0x33b487(_0x24b581);});});}
\ No newline at end of file