Built motion from commit ab870f9e.|2.5.44
[motion2.git] / server / api / intSugarcrmConfiguration / intSugarcrmConfiguration.rpc.js
index fd723b3..3ddf3c9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x87cf=['http','then','SugarcrmConfiguration,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','info','result','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client'];(function(_0x5bd426,_0x4878e5){var _0x23a7eb=function(_0x594b42){while(--_0x594b42){_0x5bd426['push'](_0x5bd426['shift']());}};_0x23a7eb(++_0x4878e5);}(_0x87cf,0x18b));var _0xf87c=function(_0x4a9fb1,_0x273043){_0x4a9fb1=_0x4a9fb1-0x0;var _0x348672=_0x87cf[_0x4a9fb1];return _0x348672;};'use strict';var _=require(_0xf87c('0x0'));var util=require(_0xf87c('0x1'));var moment=require(_0xf87c('0x2'));var BPromise=require(_0xf87c('0x3'));var rs=require(_0xf87c('0x4'));var fs=require('fs');var Redis=require(_0xf87c('0x5'));var db=require(_0xf87c('0x6'))['db'];var utils=require(_0xf87c('0x7'));var logger=require(_0xf87c('0x8'))(_0xf87c('0x9'));var config=require(_0xf87c('0xa'));var jayson=require(_0xf87c('0xb'));var client=jayson[_0xf87c('0xc')][_0xf87c('0xd')]({'port':0x232a});function respondWithRpcPromise(_0x3bc0e9,_0x2dd869,_0x16d5fb){return new BPromise(function(_0x5bdd68,_0xf7ff57){return client['request'](_0x3bc0e9,_0x16d5fb)[_0xf87c('0xe')](function(_0x190ee9){logger['info'](_0xf87c('0xf'),_0x2dd869,_0xf87c('0x10'));logger[_0xf87c('0x11')]('SugarcrmConfiguration,\x20%s,\x20%s,\x20%s',_0x2dd869,'request\x20sent',JSON[_0xf87c('0x12')](_0x190ee9));if(_0x190ee9[_0xf87c('0x13')]){if(_0x190ee9['error'][_0xf87c('0x14')]===0x1f4){logger[_0xf87c('0x13')](_0xf87c('0xf'),_0x2dd869,_0x190ee9[_0xf87c('0x13')][_0xf87c('0x15')]);return _0xf7ff57(_0x190ee9[_0xf87c('0x13')][_0xf87c('0x15')]);}logger[_0xf87c('0x13')](_0xf87c('0xf'),_0x2dd869,_0x190ee9[_0xf87c('0x13')][_0xf87c('0x15')]);return _0x5bdd68(_0x190ee9['error'][_0xf87c('0x15')]);}else{logger[_0xf87c('0x16')]('SugarcrmConfiguration,\x20%s,\x20%s',_0x2dd869,_0xf87c('0x10'));_0x5bdd68(_0x190ee9[_0xf87c('0x17')]['message']);}})['catch'](function(_0x31ff7b){logger[_0xf87c('0x13')](_0xf87c('0xf'),_0x2dd869,_0x31ff7b);_0xf7ff57(_0x31ff7b);});});}
\ No newline at end of file
+var _0x2a50=['message','result','catch','util','bluebird','randomstring','../../mysqldb','../../config/logger','rpc','jayson/promise','client','http','info','SugarcrmConfiguration,\x20%s,\x20%s','request\x20sent','error','code'];(function(_0x49ca18,_0x5e6d05){var _0x145d54=function(_0x30b9be){while(--_0x30b9be){_0x49ca18['push'](_0x49ca18['shift']());}};_0x145d54(++_0x5e6d05);}(_0x2a50,0x1df));var _0x02a5=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x2a50[_0x3dd15e];return _0x231fd0;};'use strict';var _=require('lodash');var util=require(_0x02a5('0x0'));var moment=require('moment');var BPromise=require(_0x02a5('0x1'));var rs=require(_0x02a5('0x2'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x02a5('0x3'))['db'];var utils=require('../../config/utils');var logger=require(_0x02a5('0x4'))(_0x02a5('0x5'));var config=require('../../config/environment');var jayson=require(_0x02a5('0x6'));var client=jayson[_0x02a5('0x7')][_0x02a5('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x447cd0,_0x24cc14,_0x143d5f){return new BPromise(function(_0x460ffd,_0x5e9ccb){return client['request'](_0x447cd0,_0x143d5f)['then'](function(_0x53ea03){logger[_0x02a5('0x9')](_0x02a5('0xa'),_0x24cc14,_0x02a5('0xb'));logger['debug']('SugarcrmConfiguration,\x20%s,\x20%s,\x20%s',_0x24cc14,'request\x20sent',JSON['stringify'](_0x53ea03));if(_0x53ea03[_0x02a5('0xc')]){if(_0x53ea03['error'][_0x02a5('0xd')]===0x1f4){logger[_0x02a5('0xc')](_0x02a5('0xa'),_0x24cc14,_0x53ea03['error'][_0x02a5('0xe')]);return _0x5e9ccb(_0x53ea03[_0x02a5('0xc')][_0x02a5('0xe')]);}logger[_0x02a5('0xc')](_0x02a5('0xa'),_0x24cc14,_0x53ea03['error'][_0x02a5('0xe')]);return _0x460ffd(_0x53ea03[_0x02a5('0xc')][_0x02a5('0xe')]);}else{logger[_0x02a5('0x9')](_0x02a5('0xa'),_0x24cc14,_0x02a5('0xb'));_0x460ffd(_0x53ea03[_0x02a5('0xf')][_0x02a5('0xe')]);}})[_0x02a5('0x10')](function(_0xf367bf){logger[_0x02a5('0xc')](_0x02a5('0xa'),_0x24cc14,_0xf367bf);_0x5e9ccb(_0xf367bf);});});}
\ No newline at end of file