Built motion from commit 1fa89557.|2.6.10
[motion2.git] / server / api / intSalesforceConfiguration / intSalesforceConfiguration.rpc.js
index 917ef0b..e268ea7 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5505=['info','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','jayson/promise','client','request','then','SalesforceConfiguration,\x20%s,\x20%s','request\x20sent','debug','SalesforceConfiguration,\x20%s,\x20%s,\x20%s','error','code','message'];(function(_0x4520d8,_0x1979c2){var _0x58de9a=function(_0x45f2d0){while(--_0x45f2d0){_0x4520d8['push'](_0x4520d8['shift']());}};_0x58de9a(++_0x1979c2);}(_0x5505,0x145));var _0x5550=function(_0x2b4411,_0x2625ed){_0x2b4411=_0x2b4411-0x0;var _0x8e41ef=_0x5505[_0x2b4411];return _0x8e41ef;};'use strict';var _=require(_0x5550('0x0'));var util=require(_0x5550('0x1'));var moment=require(_0x5550('0x2'));var BPromise=require(_0x5550('0x3'));var rs=require(_0x5550('0x4'));var fs=require('fs');var Redis=require(_0x5550('0x5'));var db=require(_0x5550('0x6'))['db'];var utils=require(_0x5550('0x7'));var logger=require(_0x5550('0x8'))('rpc');var config=require('../../config/environment');var jayson=require(_0x5550('0x9'));var client=jayson[_0x5550('0xa')]['http']({'port':0x232a});function respondWithRpcPromise(_0x45a6eb,_0x1e53ce,_0x298281){return new BPromise(function(_0x16e5c3,_0x39b93e){return client[_0x5550('0xb')](_0x45a6eb,_0x298281)[_0x5550('0xc')](function(_0x2c9379){logger['info'](_0x5550('0xd'),_0x1e53ce,_0x5550('0xe'));logger[_0x5550('0xf')](_0x5550('0x10'),_0x1e53ce,_0x5550('0xe'),JSON['stringify'](_0x2c9379));if(_0x2c9379[_0x5550('0x11')]){if(_0x2c9379[_0x5550('0x11')][_0x5550('0x12')]===0x1f4){logger[_0x5550('0x11')](_0x5550('0xd'),_0x1e53ce,_0x2c9379[_0x5550('0x11')][_0x5550('0x13')]);return _0x39b93e(_0x2c9379['error'][_0x5550('0x13')]);}logger[_0x5550('0x11')]('SalesforceConfiguration,\x20%s,\x20%s',_0x1e53ce,_0x2c9379[_0x5550('0x11')]['message']);return _0x16e5c3(_0x2c9379[_0x5550('0x11')][_0x5550('0x13')]);}else{logger[_0x5550('0x14')](_0x5550('0xd'),_0x1e53ce,_0x5550('0xe'));_0x16e5c3(_0x2c9379[_0x5550('0x15')]['message']);}})[_0x5550('0x16')](function(_0x149677){logger['error']('SalesforceConfiguration,\x20%s,\x20%s',_0x1e53ce,_0x149677);_0x39b93e(_0x149677);});});}
\ No newline at end of file
+var _0x6ec6=['request\x20sent','debug','stringify','error','code','SalesforceConfiguration,\x20%s,\x20%s','message','result','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http','request','then','info'];(function(_0x205cd9,_0x5107e2){var _0x5d371c=function(_0x572da5){while(--_0x572da5){_0x205cd9['push'](_0x205cd9['shift']());}};_0x5d371c(++_0x5107e2);}(_0x6ec6,0x1ac));var _0x66ec=function(_0x2b1551,_0x1776fe){_0x2b1551=_0x2b1551-0x0;var _0x2fc2a1=_0x6ec6[_0x2b1551];return _0x2fc2a1;};'use strict';var _=require('lodash');var util=require('util');var moment=require('moment');var BPromise=require(_0x66ec('0x0'));var rs=require(_0x66ec('0x1'));var fs=require('fs');var Redis=require(_0x66ec('0x2'));var db=require(_0x66ec('0x3'))['db'];var utils=require(_0x66ec('0x4'));var logger=require(_0x66ec('0x5'))(_0x66ec('0x6'));var config=require(_0x66ec('0x7'));var jayson=require(_0x66ec('0x8'));var client=jayson['client'][_0x66ec('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x5bfac5,_0x2f91af,_0x211464){return new BPromise(function(_0x41d63e,_0x135d09){return client[_0x66ec('0xa')](_0x5bfac5,_0x211464)[_0x66ec('0xb')](function(_0x100397){logger[_0x66ec('0xc')]('SalesforceConfiguration,\x20%s,\x20%s',_0x2f91af,_0x66ec('0xd'));logger[_0x66ec('0xe')]('SalesforceConfiguration,\x20%s,\x20%s,\x20%s',_0x2f91af,_0x66ec('0xd'),JSON[_0x66ec('0xf')](_0x100397));if(_0x100397['error']){if(_0x100397[_0x66ec('0x10')][_0x66ec('0x11')]===0x1f4){logger[_0x66ec('0x10')](_0x66ec('0x12'),_0x2f91af,_0x100397[_0x66ec('0x10')][_0x66ec('0x13')]);return _0x135d09(_0x100397['error'][_0x66ec('0x13')]);}logger[_0x66ec('0x10')]('SalesforceConfiguration,\x20%s,\x20%s',_0x2f91af,_0x100397['error'][_0x66ec('0x13')]);return _0x41d63e(_0x100397[_0x66ec('0x10')][_0x66ec('0x13')]);}else{logger['info']('SalesforceConfiguration,\x20%s,\x20%s',_0x2f91af,'request\x20sent');_0x41d63e(_0x100397[_0x66ec('0x14')][_0x66ec('0x13')]);}})['catch'](function(_0x5dd51a){logger['error'](_0x66ec('0x12'),_0x2f91af,_0x5dd51a);_0x135d09(_0x5dd51a);});});}
\ No newline at end of file