Built motion from commit (unavailable).|2.5.1
[motion2.git] / server / api / intFreshdeskConfiguration / intFreshdeskConfiguration.rpc.js
index 58e3bbe..1bf6f6c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc05b=['../../config/utils','../../config/logger','../../config/environment','request','then','FreshdeskConfiguration,\x20%s,\x20%s','request\x20sent','debug','FreshdeskConfiguration,\x20%s,\x20%s,\x20%s','error','message','info','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb'];(function(_0x1aba0f,_0x242a5d){var _0xf6e33d=function(_0x508922){while(--_0x508922){_0x1aba0f['push'](_0x1aba0f['shift']());}};_0xf6e33d(++_0x242a5d);}(_0xc05b,0x1dc));var _0xbc05=function(_0x381379,_0x3f3b86){_0x381379=_0x381379-0x0;var _0x3e1063=_0xc05b[_0x381379];return _0x3e1063;};'use strict';var _=require(_0xbc05('0x0'));var util=require(_0xbc05('0x1'));var moment=require(_0xbc05('0x2'));var BPromise=require(_0xbc05('0x3'));var rs=require(_0xbc05('0x4'));var fs=require('fs');var Redis=require(_0xbc05('0x5'));var db=require(_0xbc05('0x6'))['db'];var utils=require(_0xbc05('0x7'));var logger=require(_0xbc05('0x8'))('rpc');var config=require(_0xbc05('0x9'));var jayson=require('jayson/promise');var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x971af5,_0x1ab25c,_0x2f2254){return new BPromise(function(_0x2a2cf0,_0x3e91f3){return client[_0xbc05('0xa')](_0x971af5,_0x2f2254)[_0xbc05('0xb')](function(_0x6c7d13){logger['info'](_0xbc05('0xc'),_0x1ab25c,_0xbc05('0xd'));logger[_0xbc05('0xe')](_0xbc05('0xf'),_0x1ab25c,_0xbc05('0xd'),JSON['stringify'](_0x6c7d13));if(_0x6c7d13[_0xbc05('0x10')]){if(_0x6c7d13['error']['code']===0x1f4){logger[_0xbc05('0x10')](_0xbc05('0xc'),_0x1ab25c,_0x6c7d13[_0xbc05('0x10')][_0xbc05('0x11')]);return _0x3e91f3(_0x6c7d13[_0xbc05('0x10')][_0xbc05('0x11')]);}logger['error'](_0xbc05('0xc'),_0x1ab25c,_0x6c7d13[_0xbc05('0x10')]['message']);return _0x2a2cf0(_0x6c7d13[_0xbc05('0x10')][_0xbc05('0x11')]);}else{logger[_0xbc05('0x12')]('FreshdeskConfiguration,\x20%s,\x20%s',_0x1ab25c,_0xbc05('0xd'));_0x2a2cf0(_0x6c7d13[_0xbc05('0x13')]['message']);}})[_0xbc05('0x14')](function(_0x33a163){logger[_0xbc05('0x10')](_0xbc05('0xc'),_0x1ab25c,_0x33a163);_0x3e91f3(_0x33a163);});});}
\ No newline at end of file
+var _0x225e=['code','message','info','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http','request','then','FreshdeskConfiguration,\x20%s,\x20%s','FreshdeskConfiguration,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error'];(function(_0x202fdb,_0x18fcee){var _0x24f72d=function(_0x3667af){while(--_0x3667af){_0x202fdb['push'](_0x202fdb['shift']());}};_0x24f72d(++_0x18fcee);}(_0x225e,0xa5));var _0xe225=function(_0x496e57,_0x3f69db){_0x496e57=_0x496e57-0x0;var _0x5b0ba8=_0x225e[_0x496e57];return _0x5b0ba8;};'use strict';var _=require(_0xe225('0x0'));var util=require(_0xe225('0x1'));var moment=require(_0xe225('0x2'));var BPromise=require(_0xe225('0x3'));var rs=require(_0xe225('0x4'));var fs=require('fs');var Redis=require(_0xe225('0x5'));var db=require('../../mysqldb')['db'];var utils=require(_0xe225('0x6'));var logger=require(_0xe225('0x7'))(_0xe225('0x8'));var config=require(_0xe225('0x9'));var jayson=require(_0xe225('0xa'));var client=jayson['client'][_0xe225('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x354d78,_0x26d7b7,_0x39b38b){return new BPromise(function(_0x2e554b,_0x333b4a){return client[_0xe225('0xc')](_0x354d78,_0x39b38b)[_0xe225('0xd')](function(_0x5d77c4){logger['info'](_0xe225('0xe'),_0x26d7b7,'request\x20sent');logger['debug'](_0xe225('0xf'),_0x26d7b7,_0xe225('0x10'),JSON[_0xe225('0x11')](_0x5d77c4));if(_0x5d77c4['error']){if(_0x5d77c4[_0xe225('0x12')][_0xe225('0x13')]===0x1f4){logger[_0xe225('0x12')]('FreshdeskConfiguration,\x20%s,\x20%s',_0x26d7b7,_0x5d77c4['error'][_0xe225('0x14')]);return _0x333b4a(_0x5d77c4['error'][_0xe225('0x14')]);}logger[_0xe225('0x12')](_0xe225('0xe'),_0x26d7b7,_0x5d77c4['error'][_0xe225('0x14')]);return _0x2e554b(_0x5d77c4[_0xe225('0x12')]['message']);}else{logger[_0xe225('0x15')](_0xe225('0xe'),_0x26d7b7,_0xe225('0x10'));_0x2e554b(_0x5d77c4['result'][_0xe225('0x14')]);}})[_0xe225('0x16')](function(_0x17c4e6){logger[_0xe225('0x12')]('FreshdeskConfiguration,\x20%s,\x20%s',_0x26d7b7,_0x17c4e6);_0x333b4a(_0x17c4e6);});});}
\ No newline at end of file