Built motion from commit (unavailable).|2.5.12
[motion2.git] / server / api / intFreshdeskConfiguration / intFreshdeskConfiguration.rpc.js
index e65de21..4f25da0 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe1e8=['message','result','catch','lodash','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','FreshdeskConfiguration,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code'];(function(_0x3b1fe3,_0x43d8b1){var _0x424e07=function(_0x3d2d58){while(--_0x3d2d58){_0x3b1fe3['push'](_0x3b1fe3['shift']());}};_0x424e07(++_0x43d8b1);}(_0xe1e8,0x17a));var _0x8e1e=function(_0x2c92ec,_0x1c22c1){_0x2c92ec=_0x2c92ec-0x0;var _0x266eb0=_0xe1e8[_0x2c92ec];return _0x266eb0;};'use strict';var _=require(_0x8e1e('0x0'));var util=require(_0x8e1e('0x1'));var moment=require(_0x8e1e('0x2'));var BPromise=require('bluebird');var rs=require(_0x8e1e('0x3'));var fs=require('fs');var Redis=require(_0x8e1e('0x4'));var db=require(_0x8e1e('0x5'))['db'];var utils=require(_0x8e1e('0x6'));var logger=require(_0x8e1e('0x7'))(_0x8e1e('0x8'));var config=require(_0x8e1e('0x9'));var jayson=require(_0x8e1e('0xa'));var client=jayson[_0x8e1e('0xb')][_0x8e1e('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x471cd5,_0x15f937,_0x530570){return new BPromise(function(_0x280250,_0x5792df){return client[_0x8e1e('0xd')](_0x471cd5,_0x530570)[_0x8e1e('0xe')](function(_0xc0ecf){logger[_0x8e1e('0xf')](_0x8e1e('0x10'),_0x15f937,_0x8e1e('0x11'));logger[_0x8e1e('0x12')]('FreshdeskConfiguration,\x20%s,\x20%s,\x20%s',_0x15f937,_0x8e1e('0x11'),JSON[_0x8e1e('0x13')](_0xc0ecf));if(_0xc0ecf[_0x8e1e('0x14')]){if(_0xc0ecf[_0x8e1e('0x14')][_0x8e1e('0x15')]===0x1f4){logger[_0x8e1e('0x14')]('FreshdeskConfiguration,\x20%s,\x20%s',_0x15f937,_0xc0ecf[_0x8e1e('0x14')][_0x8e1e('0x16')]);return _0x5792df(_0xc0ecf['error']['message']);}logger['error'](_0x8e1e('0x10'),_0x15f937,_0xc0ecf[_0x8e1e('0x14')][_0x8e1e('0x16')]);return _0x280250(_0xc0ecf['error']['message']);}else{logger[_0x8e1e('0xf')](_0x8e1e('0x10'),_0x15f937,_0x8e1e('0x11'));_0x280250(_0xc0ecf[_0x8e1e('0x17')][_0x8e1e('0x16')]);}})[_0x8e1e('0x18')](function(_0x1b7d96){logger[_0x8e1e('0x14')](_0x8e1e('0x10'),_0x15f937,_0x1b7d96);_0x5792df(_0x1b7d96);});});}
\ No newline at end of file
+var _0xea6c=['then','info','request\x20sent','debug','FreshdeskConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','code','message','FreshdeskConfiguration,\x20%s,\x20%s','result','catch','lodash','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','jayson/promise','client'];(function(_0x34f499,_0xd8ff6e){var _0x2be65b=function(_0x238916){while(--_0x238916){_0x34f499['push'](_0x34f499['shift']());}};_0x2be65b(++_0xd8ff6e);}(_0xea6c,0x68));var _0xcea6=function(_0x14d770,_0x41b389){_0x14d770=_0x14d770-0x0;var _0x4283a5=_0xea6c[_0x14d770];return _0x4283a5;};'use strict';var _=require(_0xcea6('0x0'));var util=require('util');var moment=require(_0xcea6('0x1'));var BPromise=require(_0xcea6('0x2'));var rs=require(_0xcea6('0x3'));var fs=require('fs');var Redis=require(_0xcea6('0x4'));var db=require(_0xcea6('0x5'))['db'];var utils=require(_0xcea6('0x6'));var logger=require(_0xcea6('0x7'))(_0xcea6('0x8'));var config=require('../../config/environment');var jayson=require(_0xcea6('0x9'));var client=jayson[_0xcea6('0xa')]['http']({'port':0x232a});function respondWithRpcPromise(_0x1f20b9,_0x3069d1,_0x28054a){return new BPromise(function(_0x49f63a,_0x3d050f){return client['request'](_0x1f20b9,_0x28054a)[_0xcea6('0xb')](function(_0x5ce01b){logger[_0xcea6('0xc')]('FreshdeskConfiguration,\x20%s,\x20%s',_0x3069d1,_0xcea6('0xd'));logger[_0xcea6('0xe')](_0xcea6('0xf'),_0x3069d1,_0xcea6('0xd'),JSON[_0xcea6('0x10')](_0x5ce01b));if(_0x5ce01b[_0xcea6('0x11')]){if(_0x5ce01b['error'][_0xcea6('0x12')]===0x1f4){logger[_0xcea6('0x11')]('FreshdeskConfiguration,\x20%s,\x20%s',_0x3069d1,_0x5ce01b[_0xcea6('0x11')][_0xcea6('0x13')]);return _0x3d050f(_0x5ce01b[_0xcea6('0x11')]['message']);}logger[_0xcea6('0x11')](_0xcea6('0x14'),_0x3069d1,_0x5ce01b[_0xcea6('0x11')]['message']);return _0x49f63a(_0x5ce01b[_0xcea6('0x11')]['message']);}else{logger['info'](_0xcea6('0x14'),_0x3069d1,'request\x20sent');_0x49f63a(_0x5ce01b[_0xcea6('0x15')][_0xcea6('0x13')]);}})[_0xcea6('0x16')](function(_0x11002e){logger['error'](_0xcea6('0x14'),_0x3069d1,_0x11002e);_0x3d050f(_0x11002e);});});}
\ No newline at end of file