Built motion from commit (unavailable).|2.6.0
[motion2.git] / server / api / intSugarcrmConfiguration / intSugarcrmConfiguration.rpc.js
index bd28c7f..5f93cef 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1242=['../../config/logger','../../config/environment','client','request','then','info','request\x20sent','debug','SugarcrmConfiguration,\x20%s,\x20%s,\x20%s','error','SugarcrmConfiguration,\x20%s,\x20%s','message','result','catch','lodash','util','bluebird','randomstring','ioredis','../../config/utils'];(function(_0x3fcac1,_0x1a079e){var _0x5290b1=function(_0x4f80be){while(--_0x4f80be){_0x3fcac1['push'](_0x3fcac1['shift']());}};_0x5290b1(++_0x1a079e);}(_0x1242,0x9a));var _0x2124=function(_0x36ea12,_0x175710){_0x36ea12=_0x36ea12-0x0;var _0x5bf298=_0x1242[_0x36ea12];return _0x5bf298;};'use strict';var _=require(_0x2124('0x0'));var util=require(_0x2124('0x1'));var moment=require('moment');var BPromise=require(_0x2124('0x2'));var rs=require(_0x2124('0x3'));var fs=require('fs');var Redis=require(_0x2124('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0x2124('0x5'));var logger=require(_0x2124('0x6'))('rpc');var config=require(_0x2124('0x7'));var jayson=require('jayson/promise');var client=jayson[_0x2124('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x1b18be,_0x34aba4,_0xaf52a2){return new BPromise(function(_0x53eb0e,_0x49e14d){return client[_0x2124('0x9')](_0x1b18be,_0xaf52a2)[_0x2124('0xa')](function(_0x4ff2cb){logger[_0x2124('0xb')]('SugarcrmConfiguration,\x20%s,\x20%s',_0x34aba4,_0x2124('0xc'));logger[_0x2124('0xd')](_0x2124('0xe'),_0x34aba4,_0x2124('0xc'),JSON['stringify'](_0x4ff2cb));if(_0x4ff2cb[_0x2124('0xf')]){if(_0x4ff2cb[_0x2124('0xf')]['code']===0x1f4){logger['error'](_0x2124('0x10'),_0x34aba4,_0x4ff2cb[_0x2124('0xf')][_0x2124('0x11')]);return _0x49e14d(_0x4ff2cb[_0x2124('0xf')]['message']);}logger[_0x2124('0xf')](_0x2124('0x10'),_0x34aba4,_0x4ff2cb[_0x2124('0xf')]['message']);return _0x53eb0e(_0x4ff2cb[_0x2124('0xf')][_0x2124('0x11')]);}else{logger[_0x2124('0xb')]('SugarcrmConfiguration,\x20%s,\x20%s',_0x34aba4,_0x2124('0xc'));_0x53eb0e(_0x4ff2cb[_0x2124('0x12')]['message']);}})[_0x2124('0x13')](function(_0x37ba3d){logger[_0x2124('0xf')](_0x2124('0x10'),_0x34aba4,_0x37ba3d);_0x49e14d(_0x37ba3d);});});}
\ No newline at end of file
+var _0x6bf2=['request\x20sent','debug','SugarcrmConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','moment','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http','request','then','info','SugarcrmConfiguration,\x20%s,\x20%s'];(function(_0x4f6d08,_0x1b3dd0){var _0x53a9c6=function(_0x2e0e0f){while(--_0x2e0e0f){_0x4f6d08['push'](_0x4f6d08['shift']());}};_0x53a9c6(++_0x1b3dd0);}(_0x6bf2,0xc9));var _0x26bf=function(_0x492188,_0x15d40b){_0x492188=_0x492188-0x0;var _0x527921=_0x6bf2[_0x492188];return _0x527921;};'use strict';var _=require(_0x26bf('0x0'));var util=require('util');var moment=require(_0x26bf('0x1'));var BPromise=require(_0x26bf('0x2'));var rs=require(_0x26bf('0x3'));var fs=require('fs');var Redis=require(_0x26bf('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0x26bf('0x5'));var logger=require(_0x26bf('0x6'))(_0x26bf('0x7'));var config=require(_0x26bf('0x8'));var jayson=require(_0x26bf('0x9'));var client=jayson['client'][_0x26bf('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x51bc77,_0x1f3904,_0x542a8b){return new BPromise(function(_0x1174bc,_0x196364){return client[_0x26bf('0xb')](_0x51bc77,_0x542a8b)[_0x26bf('0xc')](function(_0x585596){logger[_0x26bf('0xd')](_0x26bf('0xe'),_0x1f3904,_0x26bf('0xf'));logger[_0x26bf('0x10')](_0x26bf('0x11'),_0x1f3904,_0x26bf('0xf'),JSON[_0x26bf('0x12')](_0x585596));if(_0x585596[_0x26bf('0x13')]){if(_0x585596[_0x26bf('0x13')][_0x26bf('0x14')]===0x1f4){logger[_0x26bf('0x13')](_0x26bf('0xe'),_0x1f3904,_0x585596[_0x26bf('0x13')][_0x26bf('0x15')]);return _0x196364(_0x585596[_0x26bf('0x13')]['message']);}logger[_0x26bf('0x13')]('SugarcrmConfiguration,\x20%s,\x20%s',_0x1f3904,_0x585596[_0x26bf('0x13')]['message']);return _0x1174bc(_0x585596[_0x26bf('0x13')][_0x26bf('0x15')]);}else{logger['info'](_0x26bf('0xe'),_0x1f3904,_0x26bf('0xf'));_0x1174bc(_0x585596[_0x26bf('0x16')][_0x26bf('0x15')]);}})[_0x26bf('0x17')](function(_0x1df257){logger[_0x26bf('0x13')]('SugarcrmConfiguration,\x20%s,\x20%s',_0x1f3904,_0x1df257);_0x196364(_0x1df257);});});}
\ No newline at end of file