Built motion from commit 092f8824.|2.5.49
[motion2.git] / server / api / cmCustomField / cmCustomField.rpc.js
index b3d8a8d..73f4152 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x32c0=['CmCustomField,\x20%s,\x20%s','result','catch','util','moment','bluebird','../../mysqldb','../../config/logger','../../config/environment','jayson/promise','request','then','info','request\x20sent','debug','CmCustomField,\x20%s,\x20%s,\x20%s','stringify','error','code','message'];(function(_0x387022,_0x30888c){var _0x414c5c=function(_0xbd6f1d){while(--_0xbd6f1d){_0x387022['push'](_0x387022['shift']());}};_0x414c5c(++_0x30888c);}(_0x32c0,0x1bb));var _0x032c=function(_0xae8224,_0x5add83){_0xae8224=_0xae8224-0x0;var _0x49dc36=_0x32c0[_0xae8224];return _0x49dc36;};'use strict';var _=require('lodash');var util=require(_0x032c('0x0'));var moment=require(_0x032c('0x1'));var BPromise=require(_0x032c('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0x032c('0x3'))['db'];var utils=require('../../config/utils');var logger=require(_0x032c('0x4'))('rpc');var config=require(_0x032c('0x5'));var jayson=require(_0x032c('0x6'));var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x3a7eb6,_0x356705,_0x53507b){return new BPromise(function(_0x3c4cd2,_0x3e2bd7){return client[_0x032c('0x7')](_0x3a7eb6,_0x53507b)[_0x032c('0x8')](function(_0x218310){logger[_0x032c('0x9')]('CmCustomField,\x20%s,\x20%s',_0x356705,_0x032c('0xa'));logger[_0x032c('0xb')](_0x032c('0xc'),_0x356705,'request\x20sent',JSON[_0x032c('0xd')](_0x218310));if(_0x218310['error']){if(_0x218310[_0x032c('0xe')][_0x032c('0xf')]===0x1f4){logger[_0x032c('0xe')]('CmCustomField,\x20%s,\x20%s',_0x356705,_0x218310[_0x032c('0xe')][_0x032c('0x10')]);return _0x3e2bd7(_0x218310[_0x032c('0xe')][_0x032c('0x10')]);}logger['error'](_0x032c('0x11'),_0x356705,_0x218310[_0x032c('0xe')][_0x032c('0x10')]);return _0x3c4cd2(_0x218310[_0x032c('0xe')][_0x032c('0x10')]);}else{logger[_0x032c('0x9')](_0x032c('0x11'),_0x356705,_0x032c('0xa'));_0x3c4cd2(_0x218310[_0x032c('0x12')][_0x032c('0x10')]);}})[_0x032c('0x13')](function(_0x38975f){logger[_0x032c('0xe')](_0x032c('0x11'),_0x356705,_0x38975f);_0x3e2bd7(_0x38975f);});});}
\ No newline at end of file
+var _0x82b6=['CmCustomField,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','util','moment','randomstring','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client','http','request','then','CmCustomField,\x20%s,\x20%s','request\x20sent','debug'];(function(_0x1360a8,_0x126918){var _0x50ed88=function(_0x1f6154){while(--_0x1f6154){_0x1360a8['push'](_0x1360a8['shift']());}};_0x50ed88(++_0x126918);}(_0x82b6,0x17d));var _0x682b=function(_0x389213,_0x14a50d){_0x389213=_0x389213-0x0;var _0x4ad6ca=_0x82b6[_0x389213];return _0x4ad6ca;};'use strict';var _=require('lodash');var util=require(_0x682b('0x0'));var moment=require(_0x682b('0x1'));var BPromise=require('bluebird');var rs=require(_0x682b('0x2'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x682b('0x3'))['db'];var utils=require(_0x682b('0x4'));var logger=require('../../config/logger')(_0x682b('0x5'));var config=require(_0x682b('0x6'));var jayson=require(_0x682b('0x7'));var client=jayson[_0x682b('0x8')][_0x682b('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x23c765,_0x2cfee5,_0x2b0188){return new BPromise(function(_0xefc299,_0x37247b){return client[_0x682b('0xa')](_0x23c765,_0x2b0188)[_0x682b('0xb')](function(_0x3d1329){logger['info'](_0x682b('0xc'),_0x2cfee5,_0x682b('0xd'));logger[_0x682b('0xe')](_0x682b('0xf'),_0x2cfee5,_0x682b('0xd'),JSON[_0x682b('0x10')](_0x3d1329));if(_0x3d1329[_0x682b('0x11')]){if(_0x3d1329[_0x682b('0x11')][_0x682b('0x12')]===0x1f4){logger[_0x682b('0x11')]('CmCustomField,\x20%s,\x20%s',_0x2cfee5,_0x3d1329[_0x682b('0x11')][_0x682b('0x13')]);return _0x37247b(_0x3d1329['error'][_0x682b('0x13')]);}logger[_0x682b('0x11')]('CmCustomField,\x20%s,\x20%s',_0x2cfee5,_0x3d1329[_0x682b('0x11')]['message']);return _0xefc299(_0x3d1329[_0x682b('0x11')][_0x682b('0x13')]);}else{logger['info'](_0x682b('0xc'),_0x2cfee5,_0x682b('0xd'));_0xefc299(_0x3d1329[_0x682b('0x14')]['message']);}})[_0x682b('0x15')](function(_0x1de215){logger['error'](_0x682b('0xc'),_0x2cfee5,_0x1de215);_0x37247b(_0x1de215);});});}
\ No newline at end of file