Built motion from commit fe909640.|2.6.8
[motion2.git] / server / api / intSugarcrmConfiguration / intSugarcrmConfiguration.rpc.js
index b8b1e8a..9021f62 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1e79=['../../config/logger','jayson/promise','client','http','then','info','SugarcrmConfiguration,\x20%s,\x20%s','request\x20sent','debug','error','code','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils'];(function(_0x463241,_0x32f81b){var _0x4a7fef=function(_0x324d3c){while(--_0x324d3c){_0x463241['push'](_0x463241['shift']());}};_0x4a7fef(++_0x32f81b);}(_0x1e79,0x184));var _0x91e7=function(_0x16afae,_0x56e1eb){_0x16afae=_0x16afae-0x0;var _0x231601=_0x1e79[_0x16afae];return _0x231601;};'use strict';var _=require(_0x91e7('0x0'));var util=require(_0x91e7('0x1'));var moment=require(_0x91e7('0x2'));var BPromise=require(_0x91e7('0x3'));var rs=require(_0x91e7('0x4'));var fs=require('fs');var Redis=require(_0x91e7('0x5'));var db=require(_0x91e7('0x6'))['db'];var utils=require(_0x91e7('0x7'));var logger=require(_0x91e7('0x8'))('rpc');var config=require('../../config/environment');var jayson=require(_0x91e7('0x9'));var client=jayson[_0x91e7('0xa')][_0x91e7('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x35065e,_0x2dc277,_0x6c3bbd){return new BPromise(function(_0x41a576,_0x2df387){return client['request'](_0x35065e,_0x6c3bbd)[_0x91e7('0xc')](function(_0x3f6f4b){logger[_0x91e7('0xd')](_0x91e7('0xe'),_0x2dc277,_0x91e7('0xf'));logger[_0x91e7('0x10')]('SugarcrmConfiguration,\x20%s,\x20%s,\x20%s',_0x2dc277,'request\x20sent',JSON['stringify'](_0x3f6f4b));if(_0x3f6f4b[_0x91e7('0x11')]){if(_0x3f6f4b[_0x91e7('0x11')][_0x91e7('0x12')]===0x1f4){logger[_0x91e7('0x11')](_0x91e7('0xe'),_0x2dc277,_0x3f6f4b[_0x91e7('0x11')][_0x91e7('0x13')]);return _0x2df387(_0x3f6f4b[_0x91e7('0x11')][_0x91e7('0x13')]);}logger[_0x91e7('0x11')]('SugarcrmConfiguration,\x20%s,\x20%s',_0x2dc277,_0x3f6f4b[_0x91e7('0x11')][_0x91e7('0x13')]);return _0x41a576(_0x3f6f4b[_0x91e7('0x11')][_0x91e7('0x13')]);}else{logger[_0x91e7('0xd')]('SugarcrmConfiguration,\x20%s,\x20%s',_0x2dc277,'request\x20sent');_0x41a576(_0x3f6f4b[_0x91e7('0x14')][_0x91e7('0x13')]);}})[_0x91e7('0x15')](function(_0x14f2fc){logger[_0x91e7('0x11')]('SugarcrmConfiguration,\x20%s,\x20%s',_0x2dc277,_0x14f2fc);_0x2df387(_0x14f2fc);});});}
\ No newline at end of file
+var _0x1a01=['ioredis','../../mysqldb','../../config/logger','client','http','request','info','SugarcrmConfiguration,\x20%s,\x20%s','debug','SugarcrmConfiguration,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','result','catch','lodash','util','randomstring'];(function(_0x3e844c,_0x114926){var _0x349373=function(_0x2387e0){while(--_0x2387e0){_0x3e844c['push'](_0x3e844c['shift']());}};_0x349373(++_0x114926);}(_0x1a01,0x101));var _0x11a0=function(_0x48e921,_0x20cf98){_0x48e921=_0x48e921-0x0;var _0x4986fe=_0x1a01[_0x48e921];return _0x4986fe;};'use strict';var _=require(_0x11a0('0x0'));var util=require(_0x11a0('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0x11a0('0x2'));var fs=require('fs');var Redis=require(_0x11a0('0x3'));var db=require(_0x11a0('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0x11a0('0x5'))('rpc');var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0x11a0('0x6')][_0x11a0('0x7')]({'port':0x232a});function respondWithRpcPromise(_0x59baf9,_0x97b3af,_0x5f34d8){return new BPromise(function(_0x42a3b5,_0x5c45ce){return client[_0x11a0('0x8')](_0x59baf9,_0x5f34d8)['then'](function(_0x5d51ff){logger[_0x11a0('0x9')](_0x11a0('0xa'),_0x97b3af,'request\x20sent');logger[_0x11a0('0xb')](_0x11a0('0xc'),_0x97b3af,_0x11a0('0xd'),JSON[_0x11a0('0xe')](_0x5d51ff));if(_0x5d51ff[_0x11a0('0xf')]){if(_0x5d51ff[_0x11a0('0xf')][_0x11a0('0x10')]===0x1f4){logger[_0x11a0('0xf')](_0x11a0('0xa'),_0x97b3af,_0x5d51ff[_0x11a0('0xf')][_0x11a0('0x11')]);return _0x5c45ce(_0x5d51ff[_0x11a0('0xf')][_0x11a0('0x11')]);}logger[_0x11a0('0xf')](_0x11a0('0xa'),_0x97b3af,_0x5d51ff[_0x11a0('0xf')]['message']);return _0x42a3b5(_0x5d51ff[_0x11a0('0xf')][_0x11a0('0x11')]);}else{logger['info'](_0x11a0('0xa'),_0x97b3af,_0x11a0('0xd'));_0x42a3b5(_0x5d51ff[_0x11a0('0x12')][_0x11a0('0x11')]);}})[_0x11a0('0x13')](function(_0x17a6ac){logger['error'](_0x11a0('0xa'),_0x97b3af,_0x17a6ac);_0x5c45ce(_0x17a6ac);});});}
\ No newline at end of file