Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / intVtigerConfiguration / intVtigerConfiguration.rpc.js
index da50fb4..087ba72 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x88fb=['error','code','message','catch','lodash','util','bluebird','ioredis','../../config/utils','../../config/logger','../../config/environment','jayson/promise','http','request','then','info','VtigerConfiguration,\x20%s,\x20%s','request\x20sent','debug','VtigerConfiguration,\x20%s,\x20%s,\x20%s'];(function(_0x1d40d5,_0x1ee7a0){var _0x28bdcb=function(_0x355f48){while(--_0x355f48){_0x1d40d5['push'](_0x1d40d5['shift']());}};_0x28bdcb(++_0x1ee7a0);}(_0x88fb,0x1e4));var _0xb88f=function(_0x3f8f44,_0x4bedc7){_0x3f8f44=_0x3f8f44-0x0;var _0x3bea7c=_0x88fb[_0x3f8f44];return _0x3bea7c;};'use strict';var _=require(_0xb88f('0x0'));var util=require(_0xb88f('0x1'));var moment=require('moment');var BPromise=require(_0xb88f('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xb88f('0x3'));var db=require('../../mysqldb')['db'];var utils=require(_0xb88f('0x4'));var logger=require(_0xb88f('0x5'))('rpc');var config=require(_0xb88f('0x6'));var jayson=require(_0xb88f('0x7'));var client=jayson['client'][_0xb88f('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x4b2e15,_0x1a1176,_0x57023e){return new BPromise(function(_0x279815,_0x51545b){return client[_0xb88f('0x9')](_0x4b2e15,_0x57023e)[_0xb88f('0xa')](function(_0x5dadd1){logger[_0xb88f('0xb')](_0xb88f('0xc'),_0x1a1176,_0xb88f('0xd'));logger[_0xb88f('0xe')](_0xb88f('0xf'),_0x1a1176,'request\x20sent',JSON['stringify'](_0x5dadd1));if(_0x5dadd1[_0xb88f('0x10')]){if(_0x5dadd1[_0xb88f('0x10')][_0xb88f('0x11')]===0x1f4){logger['error'](_0xb88f('0xc'),_0x1a1176,_0x5dadd1[_0xb88f('0x10')][_0xb88f('0x12')]);return _0x51545b(_0x5dadd1[_0xb88f('0x10')][_0xb88f('0x12')]);}logger['error'](_0xb88f('0xc'),_0x1a1176,_0x5dadd1['error'][_0xb88f('0x12')]);return _0x279815(_0x5dadd1[_0xb88f('0x10')][_0xb88f('0x12')]);}else{logger[_0xb88f('0xb')](_0xb88f('0xc'),_0x1a1176,_0xb88f('0xd'));_0x279815(_0x5dadd1['result']['message']);}})[_0xb88f('0x13')](function(_0xc73112){logger[_0xb88f('0x10')]('VtigerConfiguration,\x20%s,\x20%s',_0x1a1176,_0xc73112);_0x51545b(_0xc73112);});});}
\ No newline at end of file
+var _0xfaf0=['jayson/promise','client','http','request','then','info','VtigerConfiguration,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','result','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','rpc','../../config/environment'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0xfaf0,0x66));var _0x0faf=function(_0x3bf532,_0x2b95ef){_0x3bf532=_0x3bf532-0x0;var _0x532414=_0xfaf0[_0x3bf532];return _0x532414;};'use strict';var _=require(_0x0faf('0x0'));var util=require(_0x0faf('0x1'));var moment=require('moment');var BPromise=require(_0x0faf('0x2'));var rs=require(_0x0faf('0x3'));var fs=require('fs');var Redis=require(_0x0faf('0x4'));var db=require(_0x0faf('0x5'))['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')(_0x0faf('0x6'));var config=require(_0x0faf('0x7'));var jayson=require(_0x0faf('0x8'));var client=jayson[_0x0faf('0x9')][_0x0faf('0xa')]({'port':0x232a});function respondWithRpcPromise(_0xde025e,_0x17b770,_0x139c4c){return new BPromise(function(_0x49e00b,_0x5ae84f){return client[_0x0faf('0xb')](_0xde025e,_0x139c4c)[_0x0faf('0xc')](function(_0x27c685){logger[_0x0faf('0xd')](_0x0faf('0xe'),_0x17b770,_0x0faf('0xf'));logger[_0x0faf('0x10')]('VtigerConfiguration,\x20%s,\x20%s,\x20%s',_0x17b770,'request\x20sent',JSON[_0x0faf('0x11')](_0x27c685));if(_0x27c685[_0x0faf('0x12')]){if(_0x27c685['error'][_0x0faf('0x13')]===0x1f4){logger['error']('VtigerConfiguration,\x20%s,\x20%s',_0x17b770,_0x27c685[_0x0faf('0x12')]['message']);return _0x5ae84f(_0x27c685[_0x0faf('0x12')][_0x0faf('0x14')]);}logger[_0x0faf('0x12')](_0x0faf('0xe'),_0x17b770,_0x27c685[_0x0faf('0x12')]['message']);return _0x49e00b(_0x27c685['error']['message']);}else{logger[_0x0faf('0xd')](_0x0faf('0xe'),_0x17b770,_0x0faf('0xf'));_0x49e00b(_0x27c685[_0x0faf('0x15')][_0x0faf('0x14')]);}})['catch'](function(_0x4d876c){logger['error'](_0x0faf('0xe'),_0x17b770,_0x4d876c);_0x5ae84f(_0x4d876c);});});}
\ No newline at end of file