Built motion from commit e1760111.|2.6.18
[motion2.git] / server / api / intSalesforceConfiguration / intSalesforceConfiguration.rpc.js
index d23450a..70a263b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x56f8=['request\x20sent','debug','SalesforceConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','code','message','catch','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','client','http','request','then','info','SalesforceConfiguration,\x20%s,\x20%s'];(function(_0x4b8f70,_0x23d6ab){var _0x215d59=function(_0x134672){while(--_0x134672){_0x4b8f70['push'](_0x4b8f70['shift']());}};_0x215d59(++_0x23d6ab);}(_0x56f8,0x1c1));var _0x856f=function(_0x5114c9,_0x496b99){_0x5114c9=_0x5114c9-0x0;var _0x257534=_0x56f8[_0x5114c9];return _0x257534;};'use strict';var _=require(_0x856f('0x0'));var util=require(_0x856f('0x1'));var moment=require('moment');var BPromise=require(_0x856f('0x2'));var rs=require(_0x856f('0x3'));var fs=require('fs');var Redis=require(_0x856f('0x4'));var db=require(_0x856f('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0x856f('0x6'))('rpc');var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0x856f('0x7')][_0x856f('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x513e74,_0x1fd69b,_0x39665a){return new BPromise(function(_0x45c754,_0x10d377){return client[_0x856f('0x9')](_0x513e74,_0x39665a)[_0x856f('0xa')](function(_0x540c68){logger[_0x856f('0xb')](_0x856f('0xc'),_0x1fd69b,_0x856f('0xd'));logger[_0x856f('0xe')](_0x856f('0xf'),_0x1fd69b,_0x856f('0xd'),JSON[_0x856f('0x10')](_0x540c68));if(_0x540c68['error']){if(_0x540c68[_0x856f('0x11')][_0x856f('0x12')]===0x1f4){logger[_0x856f('0x11')](_0x856f('0xc'),_0x1fd69b,_0x540c68[_0x856f('0x11')][_0x856f('0x13')]);return _0x10d377(_0x540c68[_0x856f('0x11')][_0x856f('0x13')]);}logger[_0x856f('0x11')]('SalesforceConfiguration,\x20%s,\x20%s',_0x1fd69b,_0x540c68[_0x856f('0x11')][_0x856f('0x13')]);return _0x45c754(_0x540c68['error']['message']);}else{logger['info'](_0x856f('0xc'),_0x1fd69b,_0x856f('0xd'));_0x45c754(_0x540c68['result'][_0x856f('0x13')]);}})[_0x856f('0x14')](function(_0x381145){logger[_0x856f('0x11')]('SalesforceConfiguration,\x20%s,\x20%s',_0x1fd69b,_0x381145);_0x10d377(_0x381145);});});}
\ 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