Built motion from commit 953226e6.|2.6.32
[motion2.git] / server / api / cmCustomField / cmCustomField.rpc.js
index 87fae73..e09f4ca 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb49a=['info','debug','CmCustomField,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','CmCustomField,\x20%s,\x20%s','message','result','catch','lodash','util','moment','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/environment','jayson/promise','client','http','request','then'];(function(_0x488056,_0x727c33){var _0x66f226=function(_0x539cff){while(--_0x539cff){_0x488056['push'](_0x488056['shift']());}};_0x66f226(++_0x727c33);}(_0xb49a,0xfb));var _0xab49=function(_0x5608a3,_0x5b33c5){_0x5608a3=_0x5608a3-0x0;var _0x1ed50a=_0xb49a[_0x5608a3];return _0x1ed50a;};'use strict';var _=require(_0xab49('0x0'));var util=require(_0xab49('0x1'));var moment=require(_0xab49('0x2'));var BPromise=require(_0xab49('0x3'));var rs=require(_0xab49('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xab49('0x5'))['db'];var utils=require(_0xab49('0x6'));var logger=require('../../config/logger')('rpc');var config=require(_0xab49('0x7'));var jayson=require(_0xab49('0x8'));var client=jayson[_0xab49('0x9')][_0xab49('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x57ea72,_0x26a98a,_0xd86a5){return new BPromise(function(_0x4d4d00,_0x15f259){return client[_0xab49('0xb')](_0x57ea72,_0xd86a5)[_0xab49('0xc')](function(_0x79f764){logger[_0xab49('0xd')]('CmCustomField,\x20%s,\x20%s',_0x26a98a,'request\x20sent');logger[_0xab49('0xe')](_0xab49('0xf'),_0x26a98a,_0xab49('0x10'),JSON[_0xab49('0x11')](_0x79f764));if(_0x79f764[_0xab49('0x12')]){if(_0x79f764['error'][_0xab49('0x13')]===0x1f4){logger[_0xab49('0x12')](_0xab49('0x14'),_0x26a98a,_0x79f764[_0xab49('0x12')][_0xab49('0x15')]);return _0x15f259(_0x79f764[_0xab49('0x12')][_0xab49('0x15')]);}logger[_0xab49('0x12')](_0xab49('0x14'),_0x26a98a,_0x79f764[_0xab49('0x12')][_0xab49('0x15')]);return _0x4d4d00(_0x79f764['error'][_0xab49('0x15')]);}else{logger[_0xab49('0xd')](_0xab49('0x14'),_0x26a98a,_0xab49('0x10'));_0x4d4d00(_0x79f764[_0xab49('0x16')]['message']);}})[_0xab49('0x17')](function(_0x2cbcff){logger[_0xab49('0x12')](_0xab49('0x14'),_0x26a98a,_0x2cbcff);_0x15f259(_0x2cbcff);});});}
\ No newline at end of file
+var _0xcebc=['request\x20sent','debug','CmCustomField,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','client','http','request','then','info','CmCustomField,\x20%s,\x20%s'];(function(_0x12a62c,_0xc9c41a){var _0x268a58=function(_0x100ca9){while(--_0x100ca9){_0x12a62c['push'](_0x12a62c['shift']());}};_0x268a58(++_0xc9c41a);}(_0xcebc,0x1d1));var _0xcceb=function(_0x5f2c1b,_0xe31495){_0x5f2c1b=_0x5f2c1b-0x0;var _0x583324=_0xcebc[_0x5f2c1b];return _0x583324;};'use strict';var _=require(_0xcceb('0x0'));var util=require('util');var moment=require(_0xcceb('0x1'));var BPromise=require(_0xcceb('0x2'));var rs=require(_0xcceb('0x3'));var fs=require('fs');var Redis=require(_0xcceb('0x4'));var db=require(_0xcceb('0x5'))['db'];var utils=require(_0xcceb('0x6'));var logger=require(_0xcceb('0x7'))(_0xcceb('0x8'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0xcceb('0x9')][_0xcceb('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x12537a,_0x294267,_0x4994cb){return new BPromise(function(_0x47403b,_0x22dc31){return client[_0xcceb('0xb')](_0x12537a,_0x4994cb)[_0xcceb('0xc')](function(_0x11ef17){logger[_0xcceb('0xd')](_0xcceb('0xe'),_0x294267,_0xcceb('0xf'));logger[_0xcceb('0x10')](_0xcceb('0x11'),_0x294267,_0xcceb('0xf'),JSON[_0xcceb('0x12')](_0x11ef17));if(_0x11ef17[_0xcceb('0x13')]){if(_0x11ef17[_0xcceb('0x13')][_0xcceb('0x14')]===0x1f4){logger[_0xcceb('0x13')](_0xcceb('0xe'),_0x294267,_0x11ef17[_0xcceb('0x13')][_0xcceb('0x15')]);return _0x22dc31(_0x11ef17[_0xcceb('0x13')][_0xcceb('0x15')]);}logger[_0xcceb('0x13')](_0xcceb('0xe'),_0x294267,_0x11ef17[_0xcceb('0x13')][_0xcceb('0x15')]);return _0x47403b(_0x11ef17['error'][_0xcceb('0x15')]);}else{logger['info'](_0xcceb('0xe'),_0x294267,_0xcceb('0xf'));_0x47403b(_0x11ef17[_0xcceb('0x16')][_0xcceb('0x15')]);}})[_0xcceb('0x17')](function(_0x24bb2b){logger['error']('CmCustomField,\x20%s,\x20%s',_0x294267,_0x24bb2b);_0x22dc31(_0x24bb2b);});});}
\ No newline at end of file