Built motion from commit e1760111.|2.6.18
[motion2.git] / server / api / intSalesforceConfiguration / intSalesforceConfiguration.rpc.js
index f988d87..70a263b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x52ca=['lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','rpc','jayson/promise','http','request','then','info','SalesforceConfiguration,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','catch'];(function(_0x1d2a45,_0x3855b1){var _0x25c9ba=function(_0x26c841){while(--_0x26c841){_0x1d2a45['push'](_0x1d2a45['shift']());}};_0x25c9ba(++_0x3855b1);}(_0x52ca,0xf2));var _0xa52c=function(_0x5d35ab,_0x157272){_0x5d35ab=_0x5d35ab-0x0;var _0x6e47ca=_0x52ca[_0x5d35ab];return _0x6e47ca;};'use strict';var _=require(_0xa52c('0x0'));var util=require(_0xa52c('0x1'));var moment=require(_0xa52c('0x2'));var BPromise=require(_0xa52c('0x3'));var rs=require(_0xa52c('0x4'));var fs=require('fs');var Redis=require(_0xa52c('0x5'));var db=require(_0xa52c('0x6'))['db'];var utils=require('../../config/utils');var logger=require(_0xa52c('0x7'))(_0xa52c('0x8'));var config=require('../../config/environment');var jayson=require(_0xa52c('0x9'));var client=jayson['client'][_0xa52c('0xa')]({'port':0x232a});function respondWithRpcPromise(_0xcbb8e1,_0x487039,_0x214fcf){return new BPromise(function(_0x5683f8,_0x3fd9d9){return client[_0xa52c('0xb')](_0xcbb8e1,_0x214fcf)[_0xa52c('0xc')](function(_0x580c42){logger[_0xa52c('0xd')](_0xa52c('0xe'),_0x487039,_0xa52c('0xf'));logger[_0xa52c('0x10')]('SalesforceConfiguration,\x20%s,\x20%s,\x20%s',_0x487039,_0xa52c('0xf'),JSON[_0xa52c('0x11')](_0x580c42));if(_0x580c42[_0xa52c('0x12')]){if(_0x580c42[_0xa52c('0x12')][_0xa52c('0x13')]===0x1f4){logger[_0xa52c('0x12')](_0xa52c('0xe'),_0x487039,_0x580c42[_0xa52c('0x12')][_0xa52c('0x14')]);return _0x3fd9d9(_0x580c42[_0xa52c('0x12')]['message']);}logger[_0xa52c('0x12')]('SalesforceConfiguration,\x20%s,\x20%s',_0x487039,_0x580c42[_0xa52c('0x12')][_0xa52c('0x14')]);return _0x5683f8(_0x580c42[_0xa52c('0x12')][_0xa52c('0x14')]);}else{logger[_0xa52c('0xd')](_0xa52c('0xe'),_0x487039,_0xa52c('0xf'));_0x5683f8(_0x580c42['result'][_0xa52c('0x14')]);}})[_0xa52c('0x15')](function(_0x2bbe8a){logger[_0xa52c('0x12')](_0xa52c('0xe'),_0x487039,_0x2bbe8a);_0x3fd9d9(_0x2bbe8a);});});}
\ No newline at end of file
+var _0x405d=['util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','client','http','request','then','request\x20sent','debug','SalesforceConfiguration,\x20%s,\x20%s,\x20%s','code','error','SalesforceConfiguration,\x20%s,\x20%s','message','info','result','catch','lodash'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x405d,0x158));var _0xd405=function(_0x5a959c,_0x49b8bd){_0x5a959c=_0x5a959c-0x0;var _0x25aaed=_0x405d[_0x5a959c];return _0x25aaed;};'use strict';var _=require(_0xd405('0x0'));var util=require(_0xd405('0x1'));var moment=require(_0xd405('0x2'));var BPromise=require(_0xd405('0x3'));var rs=require(_0xd405('0x4'));var fs=require('fs');var Redis=require(_0xd405('0x5'));var db=require(_0xd405('0x6'))['db'];var utils=require(_0xd405('0x7'));var logger=require(_0xd405('0x8'))('rpc');var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0xd405('0x9')][_0xd405('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x55cc08,_0x106a9a,_0xcef510){return new BPromise(function(_0x3f9065,_0x19fecc){return client[_0xd405('0xb')](_0x55cc08,_0xcef510)[_0xd405('0xc')](function(_0x407565){logger['info']('SalesforceConfiguration,\x20%s,\x20%s',_0x106a9a,_0xd405('0xd'));logger[_0xd405('0xe')](_0xd405('0xf'),_0x106a9a,_0xd405('0xd'),JSON['stringify'](_0x407565));if(_0x407565['error']){if(_0x407565['error'][_0xd405('0x10')]===0x1f4){logger[_0xd405('0x11')](_0xd405('0x12'),_0x106a9a,_0x407565[_0xd405('0x11')][_0xd405('0x13')]);return _0x19fecc(_0x407565['error'][_0xd405('0x13')]);}logger[_0xd405('0x11')](_0xd405('0x12'),_0x106a9a,_0x407565[_0xd405('0x11')][_0xd405('0x13')]);return _0x3f9065(_0x407565['error']['message']);}else{logger[_0xd405('0x14')](_0xd405('0x12'),_0x106a9a,_0xd405('0xd'));_0x3f9065(_0x407565[_0xd405('0x15')][_0xd405('0x13')]);}})[_0xd405('0x16')](function(_0x5c431a){logger[_0xd405('0x11')](_0xd405('0x12'),_0x106a9a,_0x5c431a);_0x19fecc(_0x5c431a);});});}
\ No newline at end of file