Built motion from commit bab6f49e.|2.6.17
[motion2.git] / server / api / intSalesforceConfiguration / intSalesforceConfiguration.rpc.js
index 5602716..751417b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xadd4=['then','info','SalesforceConfiguration,\x20%s,\x20%s','request\x20sent','SalesforceConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','message','result','util','moment','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http'];(function(_0x2dafbe,_0x5d04de){var _0x58a45a=function(_0x50ac96){while(--_0x50ac96){_0x2dafbe['push'](_0x2dafbe['shift']());}};_0x58a45a(++_0x5d04de);}(_0xadd4,0x1ec));var _0x4add=function(_0x456be1,_0x248c6e){_0x456be1=_0x456be1-0x0;var _0x43fa66=_0xadd4[_0x456be1];return _0x43fa66;};'use strict';var _=require('lodash');var util=require(_0x4add('0x0'));var moment=require(_0x4add('0x1'));var BPromise=require(_0x4add('0x2'));var rs=require(_0x4add('0x3'));var fs=require('fs');var Redis=require(_0x4add('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0x4add('0x5'));var logger=require(_0x4add('0x6'))(_0x4add('0x7'));var config=require(_0x4add('0x8'));var jayson=require(_0x4add('0x9'));var client=jayson[_0x4add('0xa')][_0x4add('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x59be28,_0x1dc4d6,_0x5d4373){return new BPromise(function(_0x1e0ef2,_0x5e80f2){return client['request'](_0x59be28,_0x5d4373)[_0x4add('0xc')](function(_0x549744){logger[_0x4add('0xd')](_0x4add('0xe'),_0x1dc4d6,_0x4add('0xf'));logger['debug'](_0x4add('0x10'),_0x1dc4d6,_0x4add('0xf'),JSON[_0x4add('0x11')](_0x549744));if(_0x549744['error']){if(_0x549744[_0x4add('0x12')]['code']===0x1f4){logger[_0x4add('0x12')](_0x4add('0xe'),_0x1dc4d6,_0x549744[_0x4add('0x12')][_0x4add('0x13')]);return _0x5e80f2(_0x549744[_0x4add('0x12')][_0x4add('0x13')]);}logger['error'](_0x4add('0xe'),_0x1dc4d6,_0x549744[_0x4add('0x12')]['message']);return _0x1e0ef2(_0x549744[_0x4add('0x12')][_0x4add('0x13')]);}else{logger['info']('SalesforceConfiguration,\x20%s,\x20%s',_0x1dc4d6,_0x4add('0xf'));_0x1e0ef2(_0x549744[_0x4add('0x14')][_0x4add('0x13')]);}})['catch'](function(_0xb4be63){logger[_0x4add('0x12')](_0x4add('0xe'),_0x1dc4d6,_0xb4be63);_0x5e80f2(_0xb4be63);});});}
\ No newline at end of file
+var _0xf4e6=['randomstring','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client','http','request','then','info','SalesforceConfiguration,\x20%s,\x20%s','debug','SalesforceConfiguration,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','code','error','message','result','catch','lodash','util','moment','bluebird'];(function(_0x525b7f,_0x660272){var _0x1f310d=function(_0x42ed96){while(--_0x42ed96){_0x525b7f['push'](_0x525b7f['shift']());}};_0x1f310d(++_0x660272);}(_0xf4e6,0x11a));var _0x6f4e=function(_0x4d8dc3,_0x585fd1){_0x4d8dc3=_0x4d8dc3-0x0;var _0x9b03d9=_0xf4e6[_0x4d8dc3];return _0x9b03d9;};'use strict';var _=require(_0x6f4e('0x0'));var util=require(_0x6f4e('0x1'));var moment=require(_0x6f4e('0x2'));var BPromise=require(_0x6f4e('0x3'));var rs=require(_0x6f4e('0x4'));var fs=require('fs');var Redis=require(_0x6f4e('0x5'));var db=require(_0x6f4e('0x6'))['db'];var utils=require(_0x6f4e('0x7'));var logger=require('../../config/logger')(_0x6f4e('0x8'));var config=require(_0x6f4e('0x9'));var jayson=require(_0x6f4e('0xa'));var client=jayson[_0x6f4e('0xb')][_0x6f4e('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x56b5d2,_0x30f115,_0x1e5161){return new BPromise(function(_0x168db6,_0x3f55e4){return client[_0x6f4e('0xd')](_0x56b5d2,_0x1e5161)[_0x6f4e('0xe')](function(_0x375f18){logger[_0x6f4e('0xf')](_0x6f4e('0x10'),_0x30f115,'request\x20sent');logger[_0x6f4e('0x11')](_0x6f4e('0x12'),_0x30f115,_0x6f4e('0x13'),JSON[_0x6f4e('0x14')](_0x375f18));if(_0x375f18['error']){if(_0x375f18['error'][_0x6f4e('0x15')]===0x1f4){logger['error']('SalesforceConfiguration,\x20%s,\x20%s',_0x30f115,_0x375f18[_0x6f4e('0x16')][_0x6f4e('0x17')]);return _0x3f55e4(_0x375f18[_0x6f4e('0x16')][_0x6f4e('0x17')]);}logger[_0x6f4e('0x16')](_0x6f4e('0x10'),_0x30f115,_0x375f18[_0x6f4e('0x16')][_0x6f4e('0x17')]);return _0x168db6(_0x375f18[_0x6f4e('0x16')][_0x6f4e('0x17')]);}else{logger[_0x6f4e('0xf')]('SalesforceConfiguration,\x20%s,\x20%s',_0x30f115,_0x6f4e('0x13'));_0x168db6(_0x375f18[_0x6f4e('0x18')][_0x6f4e('0x17')]);}})[_0x6f4e('0x19')](function(_0x140267){logger['error']('SalesforceConfiguration,\x20%s,\x20%s',_0x30f115,_0x140267);_0x3f55e4(_0x140267);});});}
\ No newline at end of file