Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / intSugarcrmConfiguration / intSugarcrmConfiguration.rpc.js
index 6ac1502..5ba030d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0269=['http','request','SugarcrmConfiguration,\x20%s,\x20%s','request\x20sent','debug','SugarcrmConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','message','info','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../config/logger','../../config/environment'];(function(_0x379aa4,_0x3d8104){var _0x113ece=function(_0x4fefcb){while(--_0x4fefcb){_0x379aa4['push'](_0x379aa4['shift']());}};_0x113ece(++_0x3d8104);}(_0x0269,0x98));var _0x9026=function(_0x2b61d0,_0x949ac2){_0x2b61d0=_0x2b61d0-0x0;var _0x36dea6=_0x0269[_0x2b61d0];return _0x36dea6;};'use strict';var _=require(_0x9026('0x0'));var util=require(_0x9026('0x1'));var moment=require(_0x9026('0x2'));var BPromise=require(_0x9026('0x3'));var rs=require(_0x9026('0x4'));var fs=require('fs');var Redis=require(_0x9026('0x5'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0x9026('0x6'))('rpc');var config=require(_0x9026('0x7'));var jayson=require('jayson/promise');var client=jayson['client'][_0x9026('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x1345d6,_0x4d56d5,_0x1a1ed7){return new BPromise(function(_0x97dae5,_0x1e4437){return client[_0x9026('0x9')](_0x1345d6,_0x1a1ed7)['then'](function(_0x5c9976){logger['info'](_0x9026('0xa'),_0x4d56d5,_0x9026('0xb'));logger[_0x9026('0xc')](_0x9026('0xd'),_0x4d56d5,_0x9026('0xb'),JSON[_0x9026('0xe')](_0x5c9976));if(_0x5c9976[_0x9026('0xf')]){if(_0x5c9976[_0x9026('0xf')]['code']===0x1f4){logger[_0x9026('0xf')](_0x9026('0xa'),_0x4d56d5,_0x5c9976[_0x9026('0xf')][_0x9026('0x10')]);return _0x1e4437(_0x5c9976[_0x9026('0xf')]['message']);}logger[_0x9026('0xf')](_0x9026('0xa'),_0x4d56d5,_0x5c9976[_0x9026('0xf')][_0x9026('0x10')]);return _0x97dae5(_0x5c9976[_0x9026('0xf')][_0x9026('0x10')]);}else{logger[_0x9026('0x11')](_0x9026('0xa'),_0x4d56d5,_0x9026('0xb'));_0x97dae5(_0x5c9976[_0x9026('0x12')][_0x9026('0x10')]);}})[_0x9026('0x13')](function(_0x5de961){logger[_0x9026('0xf')](_0x9026('0xa'),_0x4d56d5,_0x5de961);_0x1e4437(_0x5de961);});});}
\ No newline at end of file
+var _0xbcce=['moment','bluebird','ioredis','../../config/utils','rpc','../../config/environment','client','http','then','info','request\x20sent','debug','stringify','error','code','SugarcrmConfiguration,\x20%s,\x20%s','message','result','catch','lodash','util'];(function(_0x34843e,_0x4c4224){var _0x598f7f=function(_0x12a44c){while(--_0x12a44c){_0x34843e['push'](_0x34843e['shift']());}};_0x598f7f(++_0x4c4224);}(_0xbcce,0x18d));var _0xebcc=function(_0x470971,_0x15a5a2){_0x470971=_0x470971-0x0;var _0x5607b0=_0xbcce[_0x470971];return _0x5607b0;};'use strict';var _=require(_0xebcc('0x0'));var util=require(_0xebcc('0x1'));var moment=require(_0xebcc('0x2'));var BPromise=require(_0xebcc('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xebcc('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0xebcc('0x5'));var logger=require('../../config/logger')(_0xebcc('0x6'));var config=require(_0xebcc('0x7'));var jayson=require('jayson/promise');var client=jayson[_0xebcc('0x8')][_0xebcc('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x4a3bbf,_0x501e47,_0x5ed8e3){return new BPromise(function(_0x78ac4b,_0x30da6a){return client['request'](_0x4a3bbf,_0x5ed8e3)[_0xebcc('0xa')](function(_0x246287){logger[_0xebcc('0xb')]('SugarcrmConfiguration,\x20%s,\x20%s',_0x501e47,_0xebcc('0xc'));logger[_0xebcc('0xd')]('SugarcrmConfiguration,\x20%s,\x20%s,\x20%s',_0x501e47,_0xebcc('0xc'),JSON[_0xebcc('0xe')](_0x246287));if(_0x246287[_0xebcc('0xf')]){if(_0x246287['error'][_0xebcc('0x10')]===0x1f4){logger['error'](_0xebcc('0x11'),_0x501e47,_0x246287[_0xebcc('0xf')][_0xebcc('0x12')]);return _0x30da6a(_0x246287[_0xebcc('0xf')][_0xebcc('0x12')]);}logger[_0xebcc('0xf')]('SugarcrmConfiguration,\x20%s,\x20%s',_0x501e47,_0x246287[_0xebcc('0xf')][_0xebcc('0x12')]);return _0x78ac4b(_0x246287[_0xebcc('0xf')][_0xebcc('0x12')]);}else{logger[_0xebcc('0xb')](_0xebcc('0x11'),_0x501e47,_0xebcc('0xc'));_0x78ac4b(_0x246287[_0xebcc('0x13')]['message']);}})[_0xebcc('0x14')](function(_0x466475){logger[_0xebcc('0xf')](_0xebcc('0x11'),_0x501e47,_0x466475);_0x30da6a(_0x466475);});});}
\ No newline at end of file