Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / intVtigerField / intVtigerField.rpc.js
index 00cba65..10e4ae2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd883=['../../config/logger','../../config/environment','jayson/promise','client','http','request','info','VtigerField,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','catch','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils'];(function(_0x39979b,_0x2111f9){var _0x560b41=function(_0x859cc0){while(--_0x859cc0){_0x39979b['push'](_0x39979b['shift']());}};_0x560b41(++_0x2111f9);}(_0xd883,0x117));var _0x3d88=function(_0x5d2803,_0xf375bd){_0x5d2803=_0x5d2803-0x0;var _0xdcad2c=_0xd883[_0x5d2803];return _0xdcad2c;};'use strict';var _=require('lodash');var util=require(_0x3d88('0x0'));var moment=require(_0x3d88('0x1'));var BPromise=require(_0x3d88('0x2'));var rs=require(_0x3d88('0x3'));var fs=require('fs');var Redis=require(_0x3d88('0x4'));var db=require(_0x3d88('0x5'))['db'];var utils=require(_0x3d88('0x6'));var logger=require(_0x3d88('0x7'))('rpc');var config=require(_0x3d88('0x8'));var jayson=require(_0x3d88('0x9'));var client=jayson[_0x3d88('0xa')][_0x3d88('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x25c3f2,_0xe06db6,_0x72042b){return new BPromise(function(_0x4f8b92,_0x797649){return client[_0x3d88('0xc')](_0x25c3f2,_0x72042b)['then'](function(_0xf8e5e9){logger[_0x3d88('0xd')](_0x3d88('0xe'),_0xe06db6,_0x3d88('0xf'));logger[_0x3d88('0x10')]('VtigerField,\x20%s,\x20%s,\x20%s',_0xe06db6,_0x3d88('0xf'),JSON[_0x3d88('0x11')](_0xf8e5e9));if(_0xf8e5e9[_0x3d88('0x12')]){if(_0xf8e5e9[_0x3d88('0x12')][_0x3d88('0x13')]===0x1f4){logger[_0x3d88('0x12')](_0x3d88('0xe'),_0xe06db6,_0xf8e5e9[_0x3d88('0x12')][_0x3d88('0x14')]);return _0x797649(_0xf8e5e9[_0x3d88('0x12')][_0x3d88('0x14')]);}logger['error'](_0x3d88('0xe'),_0xe06db6,_0xf8e5e9['error'][_0x3d88('0x14')]);return _0x4f8b92(_0xf8e5e9[_0x3d88('0x12')][_0x3d88('0x14')]);}else{logger['info'](_0x3d88('0xe'),_0xe06db6,_0x3d88('0xf'));_0x4f8b92(_0xf8e5e9['result']['message']);}})[_0x3d88('0x15')](function(_0x200b2f){logger['error'](_0x3d88('0xe'),_0xe06db6,_0x200b2f);_0x797649(_0x200b2f);});});}
\ No newline at end of file
+var _0xe200=['error','code','message','result','moment','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','http','then','info','VtigerField,\x20%s,\x20%s','request\x20sent','VtigerField,\x20%s,\x20%s,\x20%s','stringify'];(function(_0x4b280d,_0x4097f8){var _0x2e51f7=function(_0x4f87a2){while(--_0x4f87a2){_0x4b280d['push'](_0x4b280d['shift']());}};_0x2e51f7(++_0x4097f8);}(_0xe200,0x18b));var _0x0e20=function(_0x598ac0,_0x43cb83){_0x598ac0=_0x598ac0-0x0;var _0x557323=_0xe200[_0x598ac0];return _0x557323;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0x0e20('0x0'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x0e20('0x1'));var db=require(_0x0e20('0x2'))['db'];var utils=require(_0x0e20('0x3'));var logger=require('../../config/logger')(_0x0e20('0x4'));var config=require(_0x0e20('0x5'));var jayson=require('jayson/promise');var client=jayson['client'][_0x0e20('0x6')]({'port':0x232a});function respondWithRpcPromise(_0x9fb423,_0x5a6d1c,_0x194a65){return new BPromise(function(_0x2bd8d1,_0x59a18c){return client['request'](_0x9fb423,_0x194a65)[_0x0e20('0x7')](function(_0x188b46){logger[_0x0e20('0x8')](_0x0e20('0x9'),_0x5a6d1c,_0x0e20('0xa'));logger['debug'](_0x0e20('0xb'),_0x5a6d1c,_0x0e20('0xa'),JSON[_0x0e20('0xc')](_0x188b46));if(_0x188b46['error']){if(_0x188b46[_0x0e20('0xd')][_0x0e20('0xe')]===0x1f4){logger[_0x0e20('0xd')](_0x0e20('0x9'),_0x5a6d1c,_0x188b46[_0x0e20('0xd')][_0x0e20('0xf')]);return _0x59a18c(_0x188b46[_0x0e20('0xd')][_0x0e20('0xf')]);}logger['error']('VtigerField,\x20%s,\x20%s',_0x5a6d1c,_0x188b46[_0x0e20('0xd')][_0x0e20('0xf')]);return _0x2bd8d1(_0x188b46[_0x0e20('0xd')][_0x0e20('0xf')]);}else{logger[_0x0e20('0x8')](_0x0e20('0x9'),_0x5a6d1c,'request\x20sent');_0x2bd8d1(_0x188b46[_0x0e20('0x10')][_0x0e20('0xf')]);}})['catch'](function(_0x4a83d4){logger[_0x0e20('0xd')](_0x0e20('0x9'),_0x5a6d1c,_0x4a83d4);_0x59a18c(_0x4a83d4);});});}
\ No newline at end of file