Built motion from commit a61a4a20.|2.5.46
[motion2.git] / server / api / intFreshdeskConfiguration / intFreshdeskConfiguration.rpc.js
index c4e83de..c4f5b27 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1433=['info','FreshdeskConfiguration,\x20%s,\x20%s','request\x20sent','debug','FreshdeskConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http','request','then'];(function(_0xcce045,_0x1ec46c){var _0x2e40ce=function(_0x212145){while(--_0x212145){_0xcce045['push'](_0xcce045['shift']());}};_0x2e40ce(++_0x1ec46c);}(_0x1433,0xd2));var _0x3143=function(_0x3ab51d,_0x2fa01d){_0x3ab51d=_0x3ab51d-0x0;var _0x29a04e=_0x1433[_0x3ab51d];return _0x29a04e;};'use strict';var _=require(_0x3143('0x0'));var util=require(_0x3143('0x1'));var moment=require(_0x3143('0x2'));var BPromise=require(_0x3143('0x3'));var rs=require(_0x3143('0x4'));var fs=require('fs');var Redis=require(_0x3143('0x5'));var db=require(_0x3143('0x6'))['db'];var utils=require(_0x3143('0x7'));var logger=require(_0x3143('0x8'))(_0x3143('0x9'));var config=require(_0x3143('0xa'));var jayson=require(_0x3143('0xb'));var client=jayson['client'][_0x3143('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x4c643e,_0x40ce9a,_0x4ba161){return new BPromise(function(_0xe73135,_0x4c136c){return client[_0x3143('0xd')](_0x4c643e,_0x4ba161)[_0x3143('0xe')](function(_0x386e79){logger[_0x3143('0xf')](_0x3143('0x10'),_0x40ce9a,_0x3143('0x11'));logger[_0x3143('0x12')](_0x3143('0x13'),_0x40ce9a,_0x3143('0x11'),JSON[_0x3143('0x14')](_0x386e79));if(_0x386e79[_0x3143('0x15')]){if(_0x386e79[_0x3143('0x15')]['code']===0x1f4){logger[_0x3143('0x15')]('FreshdeskConfiguration,\x20%s,\x20%s',_0x40ce9a,_0x386e79['error'][_0x3143('0x16')]);return _0x4c136c(_0x386e79['error'][_0x3143('0x16')]);}logger['error']('FreshdeskConfiguration,\x20%s,\x20%s',_0x40ce9a,_0x386e79[_0x3143('0x15')][_0x3143('0x16')]);return _0xe73135(_0x386e79[_0x3143('0x15')][_0x3143('0x16')]);}else{logger[_0x3143('0xf')]('FreshdeskConfiguration,\x20%s,\x20%s',_0x40ce9a,_0x3143('0x11'));_0xe73135(_0x386e79[_0x3143('0x17')][_0x3143('0x16')]);}})[_0x3143('0x18')](function(_0x16c579){logger['error'](_0x3143('0x10'),_0x40ce9a,_0x16c579);_0x4c136c(_0x16c579);});});}
\ No newline at end of file
+var _0x7293=['../../config/environment','jayson/promise','client','http','request','then','FreshdeskConfiguration,\x20%s,\x20%s','FreshdeskConfiguration,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','info','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','rpc'];(function(_0x3d2aab,_0x515f95){var _0x5b6748=function(_0x16f4bc){while(--_0x16f4bc){_0x3d2aab['push'](_0x3d2aab['shift']());}};_0x5b6748(++_0x515f95);}(_0x7293,0x1d2));var _0x3729=function(_0x2c91e9,_0x2fb965){_0x2c91e9=_0x2c91e9-0x0;var _0x13f0ff=_0x7293[_0x2c91e9];return _0x13f0ff;};'use strict';var _=require(_0x3729('0x0'));var util=require(_0x3729('0x1'));var moment=require(_0x3729('0x2'));var BPromise=require(_0x3729('0x3'));var rs=require(_0x3729('0x4'));var fs=require('fs');var Redis=require(_0x3729('0x5'));var db=require(_0x3729('0x6'))['db'];var utils=require(_0x3729('0x7'));var logger=require('../../config/logger')(_0x3729('0x8'));var config=require(_0x3729('0x9'));var jayson=require(_0x3729('0xa'));var client=jayson[_0x3729('0xb')][_0x3729('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x4a4fc5,_0x2c23a6,_0x5573ea){return new BPromise(function(_0x361b72,_0x373d22){return client[_0x3729('0xd')](_0x4a4fc5,_0x5573ea)[_0x3729('0xe')](function(_0x5585dc){logger['info'](_0x3729('0xf'),_0x2c23a6,'request\x20sent');logger['debug'](_0x3729('0x10'),_0x2c23a6,_0x3729('0x11'),JSON[_0x3729('0x12')](_0x5585dc));if(_0x5585dc[_0x3729('0x13')]){if(_0x5585dc['error'][_0x3729('0x14')]===0x1f4){logger[_0x3729('0x13')](_0x3729('0xf'),_0x2c23a6,_0x5585dc[_0x3729('0x13')]['message']);return _0x373d22(_0x5585dc[_0x3729('0x13')][_0x3729('0x15')]);}logger[_0x3729('0x13')](_0x3729('0xf'),_0x2c23a6,_0x5585dc[_0x3729('0x13')][_0x3729('0x15')]);return _0x361b72(_0x5585dc['error']['message']);}else{logger[_0x3729('0x16')](_0x3729('0xf'),_0x2c23a6,_0x3729('0x11'));_0x361b72(_0x5585dc[_0x3729('0x17')][_0x3729('0x15')]);}})[_0x3729('0x18')](function(_0x44671f){logger[_0x3729('0x13')]('FreshdeskConfiguration,\x20%s,\x20%s',_0x2c23a6,_0x44671f);_0x373d22(_0x44671f);});});}
\ No newline at end of file