Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / intVtigerField / intVtigerField.rpc.js
index c17c183..73b940c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3c66=['jayson/promise','client','http','request','info','VtigerField,\x20%s,\x20%s','request\x20sent','debug','VtigerField,\x20%s,\x20%s,\x20%s','stringify','error','message','catch','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment'];(function(_0x590cd0,_0x11bfd4){var _0x208eb0=function(_0x19d96f){while(--_0x19d96f){_0x590cd0['push'](_0x590cd0['shift']());}};_0x208eb0(++_0x11bfd4);}(_0x3c66,0x8b));var _0x63c6=function(_0x2d17e1,_0x358cea){_0x2d17e1=_0x2d17e1-0x0;var _0x2d2cfb=_0x3c66[_0x2d17e1];return _0x2d2cfb;};'use strict';var _=require('lodash');var util=require('util');var moment=require('moment');var BPromise=require(_0x63c6('0x0'));var rs=require(_0x63c6('0x1'));var fs=require('fs');var Redis=require(_0x63c6('0x2'));var db=require(_0x63c6('0x3'))['db'];var utils=require(_0x63c6('0x4'));var logger=require(_0x63c6('0x5'))(_0x63c6('0x6'));var config=require(_0x63c6('0x7'));var jayson=require(_0x63c6('0x8'));var client=jayson[_0x63c6('0x9')][_0x63c6('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x2b33e8,_0x47b438,_0x232099){return new BPromise(function(_0x50ff5c,_0x44e826){return client[_0x63c6('0xb')](_0x2b33e8,_0x232099)['then'](function(_0x386110){logger[_0x63c6('0xc')](_0x63c6('0xd'),_0x47b438,_0x63c6('0xe'));logger[_0x63c6('0xf')](_0x63c6('0x10'),_0x47b438,'request\x20sent',JSON[_0x63c6('0x11')](_0x386110));if(_0x386110[_0x63c6('0x12')]){if(_0x386110[_0x63c6('0x12')]['code']===0x1f4){logger['error']('VtigerField,\x20%s,\x20%s',_0x47b438,_0x386110['error']['message']);return _0x44e826(_0x386110['error'][_0x63c6('0x13')]);}logger[_0x63c6('0x12')](_0x63c6('0xd'),_0x47b438,_0x386110[_0x63c6('0x12')][_0x63c6('0x13')]);return _0x50ff5c(_0x386110['error'][_0x63c6('0x13')]);}else{logger[_0x63c6('0xc')]('VtigerField,\x20%s,\x20%s',_0x47b438,_0x63c6('0xe'));_0x50ff5c(_0x386110['result']['message']);}})[_0x63c6('0x14')](function(_0x571022){logger[_0x63c6('0x12')](_0x63c6('0xd'),_0x47b438,_0x571022);_0x44e826(_0x571022);});});}
\ No newline at end of file
+var _0x34a6=['error','code','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','client','http','request','then','info','VtigerField,\x20%s,\x20%s','request\x20sent','debug','VtigerField,\x20%s,\x20%s,\x20%s','stringify'];(function(_0x12ca5f,_0x223d98){var _0xfc3ae9=function(_0x1928fb){while(--_0x1928fb){_0x12ca5f['push'](_0x12ca5f['shift']());}};_0xfc3ae9(++_0x223d98);}(_0x34a6,0x171));var _0x634a=function(_0xc0ff89,_0x710566){_0xc0ff89=_0xc0ff89-0x0;var _0x46a5db=_0x34a6[_0xc0ff89];return _0x46a5db;};'use strict';var _=require(_0x634a('0x0'));var util=require(_0x634a('0x1'));var moment=require(_0x634a('0x2'));var BPromise=require(_0x634a('0x3'));var rs=require(_0x634a('0x4'));var fs=require('fs');var Redis=require(_0x634a('0x5'));var db=require(_0x634a('0x6'))['db'];var utils=require(_0x634a('0x7'));var logger=require(_0x634a('0x8'))(_0x634a('0x9'));var config=require(_0x634a('0xa'));var jayson=require('jayson/promise');var client=jayson[_0x634a('0xb')][_0x634a('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x28795a,_0x308122,_0x56435f){return new BPromise(function(_0x33fb07,_0x521245){return client[_0x634a('0xd')](_0x28795a,_0x56435f)[_0x634a('0xe')](function(_0x1d9992){logger[_0x634a('0xf')](_0x634a('0x10'),_0x308122,_0x634a('0x11'));logger[_0x634a('0x12')](_0x634a('0x13'),_0x308122,'request\x20sent',JSON[_0x634a('0x14')](_0x1d9992));if(_0x1d9992[_0x634a('0x15')]){if(_0x1d9992[_0x634a('0x15')][_0x634a('0x16')]===0x1f4){logger[_0x634a('0x15')]('VtigerField,\x20%s,\x20%s',_0x308122,_0x1d9992[_0x634a('0x15')][_0x634a('0x17')]);return _0x521245(_0x1d9992[_0x634a('0x15')][_0x634a('0x17')]);}logger[_0x634a('0x15')](_0x634a('0x10'),_0x308122,_0x1d9992[_0x634a('0x15')][_0x634a('0x17')]);return _0x33fb07(_0x1d9992[_0x634a('0x15')][_0x634a('0x17')]);}else{logger[_0x634a('0xf')](_0x634a('0x10'),_0x308122,'request\x20sent');_0x33fb07(_0x1d9992[_0x634a('0x18')][_0x634a('0x17')]);}})[_0x634a('0x19')](function(_0x54cccf){logger[_0x634a('0x15')](_0x634a('0x10'),_0x308122,_0x54cccf);_0x521245(_0x54cccf);});});}
\ No newline at end of file