Built motion from commit e6806ed6.|2.6.0
[motion2.git] / server / api / cmCustomField / cmCustomField.rpc.js
index b4bcc85..e57c7d4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9c4f=['error','code','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','jayson/promise','client','http','then','info','CmCustomField,\x20%s,\x20%s','request\x20sent','debug','CmCustomField,\x20%s,\x20%s,\x20%s','stringify'];(function(_0x139a3c,_0x4fc883){var _0x2b375b=function(_0x525dbf){while(--_0x525dbf){_0x139a3c['push'](_0x139a3c['shift']());}};_0x2b375b(++_0x4fc883);}(_0x9c4f,0x82));var _0xf9c4=function(_0x5d47fe,_0x5d6118){_0x5d47fe=_0x5d47fe-0x0;var _0x4fb7d2=_0x9c4f[_0x5d47fe];return _0x4fb7d2;};'use strict';var _=require(_0xf9c4('0x0'));var util=require(_0xf9c4('0x1'));var moment=require(_0xf9c4('0x2'));var BPromise=require(_0xf9c4('0x3'));var rs=require(_0xf9c4('0x4'));var fs=require('fs');var Redis=require(_0xf9c4('0x5'));var db=require(_0xf9c4('0x6'))['db'];var utils=require(_0xf9c4('0x7'));var logger=require(_0xf9c4('0x8'))(_0xf9c4('0x9'));var config=require('../../config/environment');var jayson=require(_0xf9c4('0xa'));var client=jayson[_0xf9c4('0xb')][_0xf9c4('0xc')]({'port':0x232a});function respondWithRpcPromise(_0xc3cb6f,_0x29ae76,_0x8652a6){return new BPromise(function(_0x2cab9b,_0x589a65){return client['request'](_0xc3cb6f,_0x8652a6)[_0xf9c4('0xd')](function(_0x414ec1){logger[_0xf9c4('0xe')](_0xf9c4('0xf'),_0x29ae76,_0xf9c4('0x10'));logger[_0xf9c4('0x11')](_0xf9c4('0x12'),_0x29ae76,_0xf9c4('0x10'),JSON[_0xf9c4('0x13')](_0x414ec1));if(_0x414ec1[_0xf9c4('0x14')]){if(_0x414ec1[_0xf9c4('0x14')][_0xf9c4('0x15')]===0x1f4){logger['error'](_0xf9c4('0xf'),_0x29ae76,_0x414ec1[_0xf9c4('0x14')][_0xf9c4('0x16')]);return _0x589a65(_0x414ec1[_0xf9c4('0x14')][_0xf9c4('0x16')]);}logger[_0xf9c4('0x14')]('CmCustomField,\x20%s,\x20%s',_0x29ae76,_0x414ec1[_0xf9c4('0x14')]['message']);return _0x2cab9b(_0x414ec1['error']['message']);}else{logger[_0xf9c4('0xe')](_0xf9c4('0xf'),_0x29ae76,_0xf9c4('0x10'));_0x2cab9b(_0x414ec1[_0xf9c4('0x17')][_0xf9c4('0x16')]);}})[_0xf9c4('0x18')](function(_0x21b557){logger[_0xf9c4('0x14')](_0xf9c4('0xf'),_0x29ae76,_0x21b557);_0x589a65(_0x21b557);});});}
\ No newline at end of file
+var _0x760b=['../../config/logger','../../config/environment','jayson/promise','client','http','then','info','debug','CmCustomField,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','CmCustomField,\x20%s,\x20%s','message','catch','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils'];(function(_0x1c0f3d,_0x55a9e2){var _0x4d71a8=function(_0xeff131){while(--_0xeff131){_0x1c0f3d['push'](_0x1c0f3d['shift']());}};_0x4d71a8(++_0x55a9e2);}(_0x760b,0x1dc));var _0xb760=function(_0x5871c2,_0x371adb){_0x5871c2=_0x5871c2-0x0;var _0x11d9d4=_0x760b[_0x5871c2];return _0x11d9d4;};'use strict';var _=require(_0xb760('0x0'));var util=require(_0xb760('0x1'));var moment=require('moment');var BPromise=require(_0xb760('0x2'));var rs=require(_0xb760('0x3'));var fs=require('fs');var Redis=require(_0xb760('0x4'));var db=require(_0xb760('0x5'))['db'];var utils=require(_0xb760('0x6'));var logger=require(_0xb760('0x7'))('rpc');var config=require(_0xb760('0x8'));var jayson=require(_0xb760('0x9'));var client=jayson[_0xb760('0xa')][_0xb760('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x451a9c,_0x5e79a9,_0x42557a){return new BPromise(function(_0x39e205,_0x1eacde){return client['request'](_0x451a9c,_0x42557a)[_0xb760('0xc')](function(_0x14d08b){logger[_0xb760('0xd')]('CmCustomField,\x20%s,\x20%s',_0x5e79a9,'request\x20sent');logger[_0xb760('0xe')](_0xb760('0xf'),_0x5e79a9,_0xb760('0x10'),JSON[_0xb760('0x11')](_0x14d08b));if(_0x14d08b['error']){if(_0x14d08b[_0xb760('0x12')][_0xb760('0x13')]===0x1f4){logger['error'](_0xb760('0x14'),_0x5e79a9,_0x14d08b[_0xb760('0x12')][_0xb760('0x15')]);return _0x1eacde(_0x14d08b['error'][_0xb760('0x15')]);}logger[_0xb760('0x12')](_0xb760('0x14'),_0x5e79a9,_0x14d08b[_0xb760('0x12')]['message']);return _0x39e205(_0x14d08b[_0xb760('0x12')][_0xb760('0x15')]);}else{logger[_0xb760('0xd')]('CmCustomField,\x20%s,\x20%s',_0x5e79a9,_0xb760('0x10'));_0x39e205(_0x14d08b['result'][_0xb760('0x15')]);}})[_0xb760('0x16')](function(_0x530b08){logger[_0xb760('0x12')](_0xb760('0x14'),_0x5e79a9,_0x530b08);_0x1eacde(_0x530b08);});});}
\ No newline at end of file