Built motion from commit e1760111.|2.6.18
[motion2.git] / server / api / intSalesforceConfiguration / intSalesforceConfiguration.rpc.js
index 64e34e4..70a263b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7e2b=['result','catch','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','client','http','request','then','info','SalesforceConfiguration,\x20%s,\x20%s','request\x20sent','SalesforceConfiguration,\x20%s,\x20%s,\x20%s','error','code','message'];(function(_0x10fbbb,_0x1d3085){var _0x25303d=function(_0x28d010){while(--_0x28d010){_0x10fbbb['push'](_0x10fbbb['shift']());}};_0x25303d(++_0x1d3085);}(_0x7e2b,0x1b7));var _0xb7e2=function(_0x3c23ed,_0x3de49c){_0x3c23ed=_0x3c23ed-0x0;var _0x112ed9=_0x7e2b[_0x3c23ed];return _0x112ed9;};'use strict';var _=require('lodash');var util=require(_0xb7e2('0x0'));var moment=require('moment');var BPromise=require(_0xb7e2('0x1'));var rs=require(_0xb7e2('0x2'));var fs=require('fs');var Redis=require(_0xb7e2('0x3'));var db=require(_0xb7e2('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0xb7e2('0x5'))('rpc');var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0xb7e2('0x6')][_0xb7e2('0x7')]({'port':0x232a});function respondWithRpcPromise(_0xa17e6f,_0x4bf1a8,_0x4be4d9){return new BPromise(function(_0xd5aa67,_0x3147c0){return client[_0xb7e2('0x8')](_0xa17e6f,_0x4be4d9)[_0xb7e2('0x9')](function(_0x395fb5){logger[_0xb7e2('0xa')](_0xb7e2('0xb'),_0x4bf1a8,_0xb7e2('0xc'));logger['debug'](_0xb7e2('0xd'),_0x4bf1a8,_0xb7e2('0xc'),JSON['stringify'](_0x395fb5));if(_0x395fb5[_0xb7e2('0xe')]){if(_0x395fb5[_0xb7e2('0xe')][_0xb7e2('0xf')]===0x1f4){logger[_0xb7e2('0xe')](_0xb7e2('0xb'),_0x4bf1a8,_0x395fb5['error']['message']);return _0x3147c0(_0x395fb5['error'][_0xb7e2('0x10')]);}logger[_0xb7e2('0xe')](_0xb7e2('0xb'),_0x4bf1a8,_0x395fb5['error'][_0xb7e2('0x10')]);return _0xd5aa67(_0x395fb5[_0xb7e2('0xe')]['message']);}else{logger['info']('SalesforceConfiguration,\x20%s,\x20%s',_0x4bf1a8,_0xb7e2('0xc'));_0xd5aa67(_0x395fb5[_0xb7e2('0x11')][_0xb7e2('0x10')]);}})[_0xb7e2('0x12')](function(_0x594311){logger[_0xb7e2('0xe')](_0xb7e2('0xb'),_0x4bf1a8,_0x594311);_0x3147c0(_0x594311);});});}
\ 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