Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / api / intSugarcrmConfiguration / intSugarcrmConfiguration.rpc.js
index 30d6aef..38fe68f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x17f5=['error','SugarcrmConfiguration,\x20%s,\x20%s','message','catch','lodash','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','jayson/promise','http','request','info','request\x20sent','debug','stringify'];(function(_0x22d589,_0xd25c43){var _0xb89b3=function(_0x148a02){while(--_0x148a02){_0x22d589['push'](_0x22d589['shift']());}};_0xb89b3(++_0xd25c43);}(_0x17f5,0xe0));var _0x517f=function(_0x572663,_0x11715e){_0x572663=_0x572663-0x0;var _0x58ec34=_0x17f5[_0x572663];return _0x58ec34;};'use strict';var _=require(_0x517f('0x0'));var util=require(_0x517f('0x1'));var moment=require(_0x517f('0x2'));var BPromise=require('bluebird');var rs=require(_0x517f('0x3'));var fs=require('fs');var Redis=require(_0x517f('0x4'));var db=require(_0x517f('0x5'))['db'];var utils=require(_0x517f('0x6'));var logger=require(_0x517f('0x7'))(_0x517f('0x8'));var config=require('../../config/environment');var jayson=require(_0x517f('0x9'));var client=jayson['client'][_0x517f('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x20f69b,_0x502513,_0x1ace02){return new BPromise(function(_0x34b51b,_0x486476){return client[_0x517f('0xb')](_0x20f69b,_0x1ace02)['then'](function(_0x49e260){logger[_0x517f('0xc')]('SugarcrmConfiguration,\x20%s,\x20%s',_0x502513,_0x517f('0xd'));logger[_0x517f('0xe')]('SugarcrmConfiguration,\x20%s,\x20%s,\x20%s',_0x502513,_0x517f('0xd'),JSON[_0x517f('0xf')](_0x49e260));if(_0x49e260[_0x517f('0x10')]){if(_0x49e260[_0x517f('0x10')]['code']===0x1f4){logger[_0x517f('0x10')](_0x517f('0x11'),_0x502513,_0x49e260[_0x517f('0x10')][_0x517f('0x12')]);return _0x486476(_0x49e260[_0x517f('0x10')][_0x517f('0x12')]);}logger[_0x517f('0x10')](_0x517f('0x11'),_0x502513,_0x49e260[_0x517f('0x10')][_0x517f('0x12')]);return _0x34b51b(_0x49e260[_0x517f('0x10')][_0x517f('0x12')]);}else{logger[_0x517f('0xc')](_0x517f('0x11'),_0x502513,_0x517f('0xd'));_0x34b51b(_0x49e260['result']['message']);}})[_0x517f('0x13')](function(_0x3f761c){logger['error'](_0x517f('0x11'),_0x502513,_0x3f761c);_0x486476(_0x3f761c);});});}
\ No newline at end of file
+var _0xb12a=['code','message','info','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','then','SugarcrmConfiguration,\x20%s,\x20%s','request\x20sent','debug','SugarcrmConfiguration,\x20%s,\x20%s,\x20%s','error'];(function(_0x4805c2,_0x14cfaa){var _0x5269d4=function(_0x355677){while(--_0x355677){_0x4805c2['push'](_0x4805c2['shift']());}};_0x5269d4(++_0x14cfaa);}(_0xb12a,0x1a3));var _0xab12=function(_0x45a162,_0x258477){_0x45a162=_0x45a162-0x0;var _0x54ccd5=_0xb12a[_0x45a162];return _0x54ccd5;};'use strict';var _=require(_0xab12('0x0'));var util=require(_0xab12('0x1'));var moment=require(_0xab12('0x2'));var BPromise=require(_0xab12('0x3'));var rs=require(_0xab12('0x4'));var fs=require('fs');var Redis=require(_0xab12('0x5'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0xab12('0x6'))(_0xab12('0x7'));var config=require(_0xab12('0x8'));var jayson=require(_0xab12('0x9'));var client=jayson[_0xab12('0xa')][_0xab12('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x45ef86,_0x10675e,_0x571a89){return new BPromise(function(_0x3cf576,_0x714488){return client['request'](_0x45ef86,_0x571a89)[_0xab12('0xc')](function(_0x18ed12){logger['info'](_0xab12('0xd'),_0x10675e,_0xab12('0xe'));logger[_0xab12('0xf')](_0xab12('0x10'),_0x10675e,'request\x20sent',JSON['stringify'](_0x18ed12));if(_0x18ed12[_0xab12('0x11')]){if(_0x18ed12[_0xab12('0x11')][_0xab12('0x12')]===0x1f4){logger[_0xab12('0x11')](_0xab12('0xd'),_0x10675e,_0x18ed12[_0xab12('0x11')][_0xab12('0x13')]);return _0x714488(_0x18ed12[_0xab12('0x11')][_0xab12('0x13')]);}logger[_0xab12('0x11')](_0xab12('0xd'),_0x10675e,_0x18ed12[_0xab12('0x11')][_0xab12('0x13')]);return _0x3cf576(_0x18ed12[_0xab12('0x11')]['message']);}else{logger[_0xab12('0x14')](_0xab12('0xd'),_0x10675e,_0xab12('0xe'));_0x3cf576(_0x18ed12[_0xab12('0x15')][_0xab12('0x13')]);}})[_0xab12('0x16')](function(_0x5bfc3f){logger[_0xab12('0x11')](_0xab12('0xd'),_0x10675e,_0x5bfc3f);_0x714488(_0x5bfc3f);});});}
\ No newline at end of file