Built motion from commit e1760111.|2.6.18
[motion2.git] / server / api / intSalesforceConfiguration / intSalesforceConfiguration.rpc.js
index 495957e..70a263b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x46f7=['request\x20sent','stringify','error','code','message','result','bluebird','randomstring','ioredis','../../config/logger','rpc','http','request','then','info','SalesforceConfiguration,\x20%s,\x20%s'];(function(_0x4fb03e,_0xd39d28){var _0x2578ec=function(_0x2b78fb){while(--_0x2b78fb){_0x4fb03e['push'](_0x4fb03e['shift']());}};_0x2578ec(++_0xd39d28);}(_0x46f7,0x76));var _0x746f=function(_0x2a6809,_0x44edde){_0x2a6809=_0x2a6809-0x0;var _0x11c371=_0x46f7[_0x2a6809];return _0x11c371;};'use strict';var _=require('lodash');var util=require('util');var moment=require('moment');var BPromise=require(_0x746f('0x0'));var rs=require(_0x746f('0x1'));var fs=require('fs');var Redis=require(_0x746f('0x2'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0x746f('0x3'))(_0x746f('0x4'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson['client'][_0x746f('0x5')]({'port':0x232a});function respondWithRpcPromise(_0x24bc3f,_0x2a9f58,_0x42eaa1){return new BPromise(function(_0x357256,_0x5a1aad){return client[_0x746f('0x6')](_0x24bc3f,_0x42eaa1)[_0x746f('0x7')](function(_0x51a67c){logger[_0x746f('0x8')](_0x746f('0x9'),_0x2a9f58,_0x746f('0xa'));logger['debug']('SalesforceConfiguration,\x20%s,\x20%s,\x20%s',_0x2a9f58,_0x746f('0xa'),JSON[_0x746f('0xb')](_0x51a67c));if(_0x51a67c[_0x746f('0xc')]){if(_0x51a67c[_0x746f('0xc')][_0x746f('0xd')]===0x1f4){logger[_0x746f('0xc')](_0x746f('0x9'),_0x2a9f58,_0x51a67c[_0x746f('0xc')][_0x746f('0xe')]);return _0x5a1aad(_0x51a67c[_0x746f('0xc')][_0x746f('0xe')]);}logger[_0x746f('0xc')](_0x746f('0x9'),_0x2a9f58,_0x51a67c['error']['message']);return _0x357256(_0x51a67c[_0x746f('0xc')][_0x746f('0xe')]);}else{logger[_0x746f('0x8')]('SalesforceConfiguration,\x20%s,\x20%s',_0x2a9f58,_0x746f('0xa'));_0x357256(_0x51a67c[_0x746f('0xf')]['message']);}})['catch'](function(_0x45193b){logger[_0x746f('0xc')]('SalesforceConfiguration,\x20%s,\x20%s',_0x2a9f58,_0x45193b);_0x5a1aad(_0x45193b);});});}
\ 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