Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / intSugarcrmConfiguration / intSugarcrmConfiguration.rpc.js
index 834c9ec..5ba030d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc2bb=['../../config/environment','jayson/promise','client','http','then','request\x20sent','debug','stringify','error','code','SugarcrmConfiguration,\x20%s,\x20%s','message','info','result','lodash','util','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','rpc'];(function(_0x28b83a,_0x401d6f){var _0x5985d9=function(_0x37d489){while(--_0x37d489){_0x28b83a['push'](_0x28b83a['shift']());}};_0x5985d9(++_0x401d6f);}(_0xc2bb,0x100));var _0xbc2b=function(_0x5cb0b7,_0x393d63){_0x5cb0b7=_0x5cb0b7-0x0;var _0x54bbb2=_0xc2bb[_0x5cb0b7];return _0x54bbb2;};'use strict';var _=require(_0xbc2b('0x0'));var util=require(_0xbc2b('0x1'));var moment=require('moment');var BPromise=require(_0xbc2b('0x2'));var rs=require(_0xbc2b('0x3'));var fs=require('fs');var Redis=require(_0xbc2b('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0xbc2b('0x5'));var logger=require(_0xbc2b('0x6'))(_0xbc2b('0x7'));var config=require(_0xbc2b('0x8'));var jayson=require(_0xbc2b('0x9'));var client=jayson[_0xbc2b('0xa')][_0xbc2b('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x57313e,_0x3d0284,_0x19fad4){return new BPromise(function(_0xec1ab0,_0x16ce05){return client['request'](_0x57313e,_0x19fad4)[_0xbc2b('0xc')](function(_0x1dcc5c){logger['info']('SugarcrmConfiguration,\x20%s,\x20%s',_0x3d0284,_0xbc2b('0xd'));logger[_0xbc2b('0xe')]('SugarcrmConfiguration,\x20%s,\x20%s,\x20%s',_0x3d0284,_0xbc2b('0xd'),JSON[_0xbc2b('0xf')](_0x1dcc5c));if(_0x1dcc5c[_0xbc2b('0x10')]){if(_0x1dcc5c[_0xbc2b('0x10')][_0xbc2b('0x11')]===0x1f4){logger[_0xbc2b('0x10')](_0xbc2b('0x12'),_0x3d0284,_0x1dcc5c[_0xbc2b('0x10')]['message']);return _0x16ce05(_0x1dcc5c['error'][_0xbc2b('0x13')]);}logger[_0xbc2b('0x10')](_0xbc2b('0x12'),_0x3d0284,_0x1dcc5c[_0xbc2b('0x10')]['message']);return _0xec1ab0(_0x1dcc5c[_0xbc2b('0x10')]['message']);}else{logger[_0xbc2b('0x14')](_0xbc2b('0x12'),_0x3d0284,_0xbc2b('0xd'));_0xec1ab0(_0x1dcc5c[_0xbc2b('0x15')][_0xbc2b('0x13')]);}})['catch'](function(_0x23e419){logger[_0xbc2b('0x10')]('SugarcrmConfiguration,\x20%s,\x20%s',_0x3d0284,_0x23e419);_0x16ce05(_0x23e419);});});}
\ No newline at end of file
+var _0xbcce=['moment','bluebird','ioredis','../../config/utils','rpc','../../config/environment','client','http','then','info','request\x20sent','debug','stringify','error','code','SugarcrmConfiguration,\x20%s,\x20%s','message','result','catch','lodash','util'];(function(_0x34843e,_0x4c4224){var _0x598f7f=function(_0x12a44c){while(--_0x12a44c){_0x34843e['push'](_0x34843e['shift']());}};_0x598f7f(++_0x4c4224);}(_0xbcce,0x18d));var _0xebcc=function(_0x470971,_0x15a5a2){_0x470971=_0x470971-0x0;var _0x5607b0=_0xbcce[_0x470971];return _0x5607b0;};'use strict';var _=require(_0xebcc('0x0'));var util=require(_0xebcc('0x1'));var moment=require(_0xebcc('0x2'));var BPromise=require(_0xebcc('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xebcc('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0xebcc('0x5'));var logger=require('../../config/logger')(_0xebcc('0x6'));var config=require(_0xebcc('0x7'));var jayson=require('jayson/promise');var client=jayson[_0xebcc('0x8')][_0xebcc('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x4a3bbf,_0x501e47,_0x5ed8e3){return new BPromise(function(_0x78ac4b,_0x30da6a){return client['request'](_0x4a3bbf,_0x5ed8e3)[_0xebcc('0xa')](function(_0x246287){logger[_0xebcc('0xb')]('SugarcrmConfiguration,\x20%s,\x20%s',_0x501e47,_0xebcc('0xc'));logger[_0xebcc('0xd')]('SugarcrmConfiguration,\x20%s,\x20%s,\x20%s',_0x501e47,_0xebcc('0xc'),JSON[_0xebcc('0xe')](_0x246287));if(_0x246287[_0xebcc('0xf')]){if(_0x246287['error'][_0xebcc('0x10')]===0x1f4){logger['error'](_0xebcc('0x11'),_0x501e47,_0x246287[_0xebcc('0xf')][_0xebcc('0x12')]);return _0x30da6a(_0x246287[_0xebcc('0xf')][_0xebcc('0x12')]);}logger[_0xebcc('0xf')]('SugarcrmConfiguration,\x20%s,\x20%s',_0x501e47,_0x246287[_0xebcc('0xf')][_0xebcc('0x12')]);return _0x78ac4b(_0x246287[_0xebcc('0xf')][_0xebcc('0x12')]);}else{logger[_0xebcc('0xb')](_0xebcc('0x11'),_0x501e47,_0xebcc('0xc'));_0x78ac4b(_0x246287[_0xebcc('0x13')]['message']);}})[_0xebcc('0x14')](function(_0x466475){logger[_0xebcc('0xf')](_0xebcc('0x11'),_0x501e47,_0x466475);_0x30da6a(_0x466475);});});}
\ No newline at end of file