Built motion from commit (unavailable).|2.5.29
[motion2.git] / server / api / intSugarcrmConfiguration / intSugarcrmConfiguration.rpc.js
index 2bf9cfc..fe24925 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7e43=['moment','randomstring','ioredis','rpc','jayson/promise','client','http','request','info','request\x20sent','SugarcrmConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','SugarcrmConfiguration,\x20%s,\x20%s','util'];(function(_0x4b055c,_0x4b870b){var _0x4b62bb=function(_0x4884c2){while(--_0x4884c2){_0x4b055c['push'](_0x4b055c['shift']());}};_0x4b62bb(++_0x4b870b);}(_0x7e43,0x168));var _0x37e4=function(_0xcfb97,_0x3b6229){_0xcfb97=_0xcfb97-0x0;var _0x134359=_0x7e43[_0xcfb97];return _0x134359;};'use strict';var _=require('lodash');var util=require(_0x37e4('0x0'));var moment=require(_0x37e4('0x1'));var BPromise=require('bluebird');var rs=require(_0x37e4('0x2'));var fs=require('fs');var Redis=require(_0x37e4('0x3'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')(_0x37e4('0x4'));var config=require('../../config/environment');var jayson=require(_0x37e4('0x5'));var client=jayson[_0x37e4('0x6')][_0x37e4('0x7')]({'port':0x232a});function respondWithRpcPromise(_0x2cde5b,_0x348a72,_0x8dc458){return new BPromise(function(_0x242b09,_0x1e64b5){return client[_0x37e4('0x8')](_0x2cde5b,_0x8dc458)['then'](function(_0x4af237){logger[_0x37e4('0x9')]('SugarcrmConfiguration,\x20%s,\x20%s',_0x348a72,_0x37e4('0xa'));logger['debug'](_0x37e4('0xb'),_0x348a72,_0x37e4('0xa'),JSON[_0x37e4('0xc')](_0x4af237));if(_0x4af237[_0x37e4('0xd')]){if(_0x4af237[_0x37e4('0xd')][_0x37e4('0xe')]===0x1f4){logger[_0x37e4('0xd')]('SugarcrmConfiguration,\x20%s,\x20%s',_0x348a72,_0x4af237[_0x37e4('0xd')]['message']);return _0x1e64b5(_0x4af237[_0x37e4('0xd')][_0x37e4('0xf')]);}logger[_0x37e4('0xd')]('SugarcrmConfiguration,\x20%s,\x20%s',_0x348a72,_0x4af237[_0x37e4('0xd')]['message']);return _0x242b09(_0x4af237[_0x37e4('0xd')][_0x37e4('0xf')]);}else{logger[_0x37e4('0x9')]('SugarcrmConfiguration,\x20%s,\x20%s',_0x348a72,_0x37e4('0xa'));_0x242b09(_0x4af237[_0x37e4('0x10')][_0x37e4('0xf')]);}})[_0x37e4('0x11')](function(_0x5e0a9b){logger[_0x37e4('0xd')](_0x37e4('0x12'),_0x348a72,_0x5e0a9b);_0x1e64b5(_0x5e0a9b);});});}
\ No newline at end of file
+var _0x26af=['then','info','SugarcrmConfiguration,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','result','catch','util','moment','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client','request'];(function(_0x1e7b16,_0x4607a1){var _0x37fadc=function(_0x1fc9ce){while(--_0x1fc9ce){_0x1e7b16['push'](_0x1e7b16['shift']());}};_0x37fadc(++_0x4607a1);}(_0x26af,0x1d9));var _0xf26a=function(_0x3e25c1,_0x1d15f9){_0x3e25c1=_0x3e25c1-0x0;var _0x52e7f2=_0x26af[_0x3e25c1];return _0x52e7f2;};'use strict';var _=require('lodash');var util=require(_0xf26a('0x0'));var moment=require(_0xf26a('0x1'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xf26a('0x2'));var db=require(_0xf26a('0x3'))['db'];var utils=require(_0xf26a('0x4'));var logger=require('../../config/logger')(_0xf26a('0x5'));var config=require(_0xf26a('0x6'));var jayson=require(_0xf26a('0x7'));var client=jayson[_0xf26a('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x1c1010,_0x2f5cb8,_0x7a4477){return new BPromise(function(_0x4ee8af,_0x53c5f7){return client[_0xf26a('0x9')](_0x1c1010,_0x7a4477)[_0xf26a('0xa')](function(_0x57e2e8){logger[_0xf26a('0xb')](_0xf26a('0xc'),_0x2f5cb8,_0xf26a('0xd'));logger[_0xf26a('0xe')]('SugarcrmConfiguration,\x20%s,\x20%s,\x20%s',_0x2f5cb8,_0xf26a('0xd'),JSON[_0xf26a('0xf')](_0x57e2e8));if(_0x57e2e8[_0xf26a('0x10')]){if(_0x57e2e8['error'][_0xf26a('0x11')]===0x1f4){logger[_0xf26a('0x10')]('SugarcrmConfiguration,\x20%s,\x20%s',_0x2f5cb8,_0x57e2e8[_0xf26a('0x10')][_0xf26a('0x12')]);return _0x53c5f7(_0x57e2e8[_0xf26a('0x10')]['message']);}logger[_0xf26a('0x10')](_0xf26a('0xc'),_0x2f5cb8,_0x57e2e8[_0xf26a('0x10')]['message']);return _0x4ee8af(_0x57e2e8[_0xf26a('0x10')][_0xf26a('0x12')]);}else{logger[_0xf26a('0xb')](_0xf26a('0xc'),_0x2f5cb8,_0xf26a('0xd'));_0x4ee8af(_0x57e2e8[_0xf26a('0x13')]['message']);}})[_0xf26a('0x14')](function(_0x3f5939){logger[_0xf26a('0x10')](_0xf26a('0xc'),_0x2f5cb8,_0x3f5939);_0x53c5f7(_0x3f5939);});});}
\ No newline at end of file