Built motion from commit 639a1a7f.|2.6.19
[motion2.git] / server / api / intVtigerField / intVtigerField.rpc.js
index a378e9a..9a2f9ce 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2bef=['moment','bluebird','randomstring','ioredis','../../config/utils','../../config/environment','jayson/promise','request','then','info','request\x20sent','debug','stringify','error','code','VtigerField,\x20%s,\x20%s','message','lodash','util'];(function(_0xa0032b,_0x5bd969){var _0x22457b=function(_0x4efb95){while(--_0x4efb95){_0xa0032b['push'](_0xa0032b['shift']());}};_0x22457b(++_0x5bd969);}(_0x2bef,0x11b));var _0xf2be=function(_0xb82940,_0x530318){_0xb82940=_0xb82940-0x0;var _0x2e152a=_0x2bef[_0xb82940];return _0x2e152a;};'use strict';var _=require(_0xf2be('0x0'));var util=require(_0xf2be('0x1'));var moment=require(_0xf2be('0x2'));var BPromise=require(_0xf2be('0x3'));var rs=require(_0xf2be('0x4'));var fs=require('fs');var Redis=require(_0xf2be('0x5'));var db=require('../../mysqldb')['db'];var utils=require(_0xf2be('0x6'));var logger=require('../../config/logger')('rpc');var config=require(_0xf2be('0x7'));var jayson=require(_0xf2be('0x8'));var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0xd96d5c,_0x4335ac,_0x12670e){return new BPromise(function(_0x4eeb00,_0x56bfec){return client[_0xf2be('0x9')](_0xd96d5c,_0x12670e)[_0xf2be('0xa')](function(_0x1f2d37){logger[_0xf2be('0xb')]('VtigerField,\x20%s,\x20%s',_0x4335ac,_0xf2be('0xc'));logger[_0xf2be('0xd')]('VtigerField,\x20%s,\x20%s,\x20%s',_0x4335ac,_0xf2be('0xc'),JSON[_0xf2be('0xe')](_0x1f2d37));if(_0x1f2d37[_0xf2be('0xf')]){if(_0x1f2d37[_0xf2be('0xf')][_0xf2be('0x10')]===0x1f4){logger[_0xf2be('0xf')](_0xf2be('0x11'),_0x4335ac,_0x1f2d37[_0xf2be('0xf')][_0xf2be('0x12')]);return _0x56bfec(_0x1f2d37[_0xf2be('0xf')][_0xf2be('0x12')]);}logger['error']('VtigerField,\x20%s,\x20%s',_0x4335ac,_0x1f2d37['error'][_0xf2be('0x12')]);return _0x4eeb00(_0x1f2d37['error']['message']);}else{logger[_0xf2be('0xb')](_0xf2be('0x11'),_0x4335ac,_0xf2be('0xc'));_0x4eeb00(_0x1f2d37['result'][_0xf2be('0x12')]);}})['catch'](function(_0x5eded8){logger[_0xf2be('0xf')]('VtigerField,\x20%s,\x20%s',_0x4335ac,_0x5eded8);_0x56bfec(_0x5eded8);});});}
\ No newline at end of file
+var _0x9a3f=['rpc','../../config/environment','jayson/promise','client','http','request','then','info','VtigerField,\x20%s,\x20%s','request\x20sent','debug','VtigerField,\x20%s,\x20%s,\x20%s','error','code','message','result','lodash','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger'];(function(_0x57b54c,_0x54ce0d){var _0x59cc19=function(_0xa33bc6){while(--_0xa33bc6){_0x57b54c['push'](_0x57b54c['shift']());}};_0x59cc19(++_0x54ce0d);}(_0x9a3f,0x88));var _0xf9a3=function(_0x16d834,_0x36b0fc){_0x16d834=_0x16d834-0x0;var _0x3b691d=_0x9a3f[_0x16d834];return _0x3b691d;};'use strict';var _=require(_0xf9a3('0x0'));var util=require('util');var moment=require(_0xf9a3('0x1'));var BPromise=require(_0xf9a3('0x2'));var rs=require(_0xf9a3('0x3'));var fs=require('fs');var Redis=require(_0xf9a3('0x4'));var db=require(_0xf9a3('0x5'))['db'];var utils=require(_0xf9a3('0x6'));var logger=require(_0xf9a3('0x7'))(_0xf9a3('0x8'));var config=require(_0xf9a3('0x9'));var jayson=require(_0xf9a3('0xa'));var client=jayson[_0xf9a3('0xb')][_0xf9a3('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x62faa6,_0x59c5c4,_0x542352){return new BPromise(function(_0x3c2fc9,_0x4da49e){return client[_0xf9a3('0xd')](_0x62faa6,_0x542352)[_0xf9a3('0xe')](function(_0x38dc54){logger[_0xf9a3('0xf')](_0xf9a3('0x10'),_0x59c5c4,_0xf9a3('0x11'));logger[_0xf9a3('0x12')](_0xf9a3('0x13'),_0x59c5c4,_0xf9a3('0x11'),JSON['stringify'](_0x38dc54));if(_0x38dc54[_0xf9a3('0x14')]){if(_0x38dc54[_0xf9a3('0x14')][_0xf9a3('0x15')]===0x1f4){logger[_0xf9a3('0x14')](_0xf9a3('0x10'),_0x59c5c4,_0x38dc54['error']['message']);return _0x4da49e(_0x38dc54[_0xf9a3('0x14')][_0xf9a3('0x16')]);}logger[_0xf9a3('0x14')](_0xf9a3('0x10'),_0x59c5c4,_0x38dc54[_0xf9a3('0x14')][_0xf9a3('0x16')]);return _0x3c2fc9(_0x38dc54[_0xf9a3('0x14')][_0xf9a3('0x16')]);}else{logger[_0xf9a3('0xf')]('VtigerField,\x20%s,\x20%s',_0x59c5c4,_0xf9a3('0x11'));_0x3c2fc9(_0x38dc54[_0xf9a3('0x17')]['message']);}})['catch'](function(_0x4cebf4){logger[_0xf9a3('0x14')](_0xf9a3('0x10'),_0x59c5c4,_0x4cebf4);_0x4da49e(_0x4cebf4);});});}
\ No newline at end of file