Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / api / intSalesforceConfiguration / intSalesforceConfiguration.rpc.js
index 863c947..a9ab5f6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe3ca=['info','SalesforceConfiguration,\x20%s,\x20%s','debug','SalesforceConfiguration,\x20%s,\x20%s,\x20%s','request\x20sent','error','code','message','result','util','moment','bluebird','randomstring','ioredis','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then'];(function(_0x307d86,_0x9264f2){var _0x361745=function(_0x1b64e1){while(--_0x1b64e1){_0x307d86['push'](_0x307d86['shift']());}};_0x361745(++_0x9264f2);}(_0xe3ca,0x13d));var _0xae3c=function(_0x49ca18,_0x5e6d05){_0x49ca18=_0x49ca18-0x0;var _0x145d54=_0xe3ca[_0x49ca18];return _0x145d54;};'use strict';var _=require('lodash');var util=require(_0xae3c('0x0'));var moment=require(_0xae3c('0x1'));var BPromise=require(_0xae3c('0x2'));var rs=require(_0xae3c('0x3'));var fs=require('fs');var Redis=require(_0xae3c('0x4'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0xae3c('0x5'))(_0xae3c('0x6'));var config=require(_0xae3c('0x7'));var jayson=require(_0xae3c('0x8'));var client=jayson[_0xae3c('0x9')][_0xae3c('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x13ce60,_0x2ef535,_0x492dad){return new BPromise(function(_0xa8d0b1,_0x2eca9a){return client[_0xae3c('0xb')](_0x13ce60,_0x492dad)[_0xae3c('0xc')](function(_0x2a316e){logger[_0xae3c('0xd')](_0xae3c('0xe'),_0x2ef535,'request\x20sent');logger[_0xae3c('0xf')](_0xae3c('0x10'),_0x2ef535,_0xae3c('0x11'),JSON['stringify'](_0x2a316e));if(_0x2a316e['error']){if(_0x2a316e[_0xae3c('0x12')][_0xae3c('0x13')]===0x1f4){logger[_0xae3c('0x12')](_0xae3c('0xe'),_0x2ef535,_0x2a316e[_0xae3c('0x12')][_0xae3c('0x14')]);return _0x2eca9a(_0x2a316e[_0xae3c('0x12')]['message']);}logger[_0xae3c('0x12')](_0xae3c('0xe'),_0x2ef535,_0x2a316e[_0xae3c('0x12')][_0xae3c('0x14')]);return _0xa8d0b1(_0x2a316e['error']['message']);}else{logger[_0xae3c('0xd')](_0xae3c('0xe'),_0x2ef535,_0xae3c('0x11'));_0xa8d0b1(_0x2a316e[_0xae3c('0x15')][_0xae3c('0x14')]);}})['catch'](function(_0x5c922e){logger['error'](_0xae3c('0xe'),_0x2ef535,_0x5c922e);_0x2eca9a(_0x5c922e);});});}
\ No newline at end of file
+var _0x5607=['code','SalesforceConfiguration,\x20%s,\x20%s','message','result','catch','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','request','then','info','debug','request\x20sent','stringify','error'];(function(_0x397e5f,_0x454c8f){var _0x5302b8=function(_0x1a29ef){while(--_0x1a29ef){_0x397e5f['push'](_0x397e5f['shift']());}};_0x5302b8(++_0x454c8f);}(_0x5607,0x1bd));var _0x7560=function(_0x149d11,_0x36e244){_0x149d11=_0x149d11-0x0;var _0x5ebb5c=_0x5607[_0x149d11];return _0x5ebb5c;};'use strict';var _=require('lodash');var util=require(_0x7560('0x0'));var moment=require('moment');var BPromise=require(_0x7560('0x1'));var rs=require(_0x7560('0x2'));var fs=require('fs');var Redis=require(_0x7560('0x3'));var db=require(_0x7560('0x4'))['db'];var utils=require(_0x7560('0x5'));var logger=require(_0x7560('0x6'))('rpc');var config=require(_0x7560('0x7'));var jayson=require(_0x7560('0x8'));var client=jayson[_0x7560('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x217d86,_0x359173,_0x2161f2){return new BPromise(function(_0x742420,_0x104fb2){return client[_0x7560('0xa')](_0x217d86,_0x2161f2)[_0x7560('0xb')](function(_0x146830){logger[_0x7560('0xc')]('SalesforceConfiguration,\x20%s,\x20%s',_0x359173,'request\x20sent');logger[_0x7560('0xd')]('SalesforceConfiguration,\x20%s,\x20%s,\x20%s',_0x359173,_0x7560('0xe'),JSON[_0x7560('0xf')](_0x146830));if(_0x146830['error']){if(_0x146830[_0x7560('0x10')][_0x7560('0x11')]===0x1f4){logger[_0x7560('0x10')](_0x7560('0x12'),_0x359173,_0x146830[_0x7560('0x10')][_0x7560('0x13')]);return _0x104fb2(_0x146830[_0x7560('0x10')][_0x7560('0x13')]);}logger['error'](_0x7560('0x12'),_0x359173,_0x146830[_0x7560('0x10')]['message']);return _0x742420(_0x146830[_0x7560('0x10')]['message']);}else{logger[_0x7560('0xc')](_0x7560('0x12'),_0x359173,_0x7560('0xe'));_0x742420(_0x146830[_0x7560('0x14')][_0x7560('0x13')]);}})[_0x7560('0x15')](function(_0x2d6af8){logger['error'](_0x7560('0x12'),_0x359173,_0x2d6af8);_0x104fb2(_0x2d6af8);});});}
\ No newline at end of file