Built motion from commit (unavailable).|2.5.23
[motion2.git] / server / api / intSalesforceConfiguration / intSalesforceConfiguration.rpc.js
index 917ef0b..61aa834 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 _0xe3a0=['moment','bluebird','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','SalesforceConfiguration,\x20%s,\x20%s','request\x20sent','debug','SalesforceConfiguration,\x20%s,\x20%s,\x20%s','error','code','message','result','util'];(function(_0x1e0a4a,_0x55752e){var _0x352afd=function(_0x579bae){while(--_0x579bae){_0x1e0a4a['push'](_0x1e0a4a['shift']());}};_0x352afd(++_0x55752e);}(_0xe3a0,0x1e2));var _0x0e3a=function(_0x2b5d30,_0x127512){_0x2b5d30=_0x2b5d30-0x0;var _0x4bb534=_0xe3a0[_0x2b5d30];return _0x4bb534;};'use strict';var _=require('lodash');var util=require(_0x0e3a('0x0'));var moment=require(_0x0e3a('0x1'));var BPromise=require(_0x0e3a('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require(_0x0e3a('0x3'));var logger=require(_0x0e3a('0x4'))(_0x0e3a('0x5'));var config=require(_0x0e3a('0x6'));var jayson=require(_0x0e3a('0x7'));var client=jayson[_0x0e3a('0x8')][_0x0e3a('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x497795,_0x2176ca,_0x274d62){return new BPromise(function(_0x4f01b7,_0x49e618){return client[_0x0e3a('0xa')](_0x497795,_0x274d62)[_0x0e3a('0xb')](function(_0x37d337){logger[_0x0e3a('0xc')](_0x0e3a('0xd'),_0x2176ca,_0x0e3a('0xe'));logger[_0x0e3a('0xf')](_0x0e3a('0x10'),_0x2176ca,_0x0e3a('0xe'),JSON['stringify'](_0x37d337));if(_0x37d337['error']){if(_0x37d337[_0x0e3a('0x11')][_0x0e3a('0x12')]===0x1f4){logger[_0x0e3a('0x11')](_0x0e3a('0xd'),_0x2176ca,_0x37d337[_0x0e3a('0x11')][_0x0e3a('0x13')]);return _0x49e618(_0x37d337[_0x0e3a('0x11')][_0x0e3a('0x13')]);}logger[_0x0e3a('0x11')](_0x0e3a('0xd'),_0x2176ca,_0x37d337[_0x0e3a('0x11')]['message']);return _0x4f01b7(_0x37d337['error'][_0x0e3a('0x13')]);}else{logger[_0x0e3a('0xc')](_0x0e3a('0xd'),_0x2176ca,_0x0e3a('0xe'));_0x4f01b7(_0x37d337[_0x0e3a('0x14')][_0x0e3a('0x13')]);}})['catch'](function(_0x3f9146){logger[_0x0e3a('0x11')](_0x0e3a('0xd'),_0x2176ca,_0x3f9146);_0x49e618(_0x3f9146);});});}
\ No newline at end of file