Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / intFreshdeskConfiguration / intFreshdeskConfiguration.rpc.js
index 968c2ab..108d9d2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf7c5=['result','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','debug','FreshdeskConfiguration,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','FreshdeskConfiguration,\x20%s,\x20%s'];(function(_0x4a83f4,_0x50f589){var _0x1fc810=function(_0xc651f9){while(--_0xc651f9){_0x4a83f4['push'](_0x4a83f4['shift']());}};_0x1fc810(++_0x50f589);}(_0xf7c5,0x109));var _0x5f7c=function(_0x481bf7,_0x437f69){_0x481bf7=_0x481bf7-0x0;var _0x461787=_0xf7c5[_0x481bf7];return _0x461787;};'use strict';var _=require(_0x5f7c('0x0'));var util=require(_0x5f7c('0x1'));var moment=require('moment');var BPromise=require(_0x5f7c('0x2'));var rs=require(_0x5f7c('0x3'));var fs=require('fs');var Redis=require(_0x5f7c('0x4'));var db=require(_0x5f7c('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0x5f7c('0x6'))(_0x5f7c('0x7'));var config=require(_0x5f7c('0x8'));var jayson=require(_0x5f7c('0x9'));var client=jayson[_0x5f7c('0xa')][_0x5f7c('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x59d76e,_0x5db639,_0x5bd55f){return new BPromise(function(_0x4d2c7a,_0x80db12){return client[_0x5f7c('0xc')](_0x59d76e,_0x5bd55f)[_0x5f7c('0xd')](function(_0x2babd1){logger[_0x5f7c('0xe')]('FreshdeskConfiguration,\x20%s,\x20%s',_0x5db639,'request\x20sent');logger[_0x5f7c('0xf')](_0x5f7c('0x10'),_0x5db639,_0x5f7c('0x11'),JSON[_0x5f7c('0x12')](_0x2babd1));if(_0x2babd1[_0x5f7c('0x13')]){if(_0x2babd1['error'][_0x5f7c('0x14')]===0x1f4){logger['error']('FreshdeskConfiguration,\x20%s,\x20%s',_0x5db639,_0x2babd1[_0x5f7c('0x13')][_0x5f7c('0x15')]);return _0x80db12(_0x2babd1[_0x5f7c('0x13')][_0x5f7c('0x15')]);}logger[_0x5f7c('0x13')](_0x5f7c('0x16'),_0x5db639,_0x2babd1['error'][_0x5f7c('0x15')]);return _0x4d2c7a(_0x2babd1['error'][_0x5f7c('0x15')]);}else{logger['info']('FreshdeskConfiguration,\x20%s,\x20%s',_0x5db639,_0x5f7c('0x11'));_0x4d2c7a(_0x2babd1[_0x5f7c('0x17')][_0x5f7c('0x15')]);}})['catch'](function(_0x2c0ab1){logger[_0x5f7c('0x13')](_0x5f7c('0x16'),_0x5db639,_0x2c0ab1);_0x80db12(_0x2c0ab1);});});}
\ No newline at end of file
+var _0x179e=['../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','request','then','FreshdeskConfiguration,\x20%s,\x20%s','request\x20sent','debug','stringify','error','message','info','catch','util','bluebird','randomstring','ioredis'];(function(_0x41ffd2,_0x5de2e3){var _0x218d26=function(_0x444661){while(--_0x444661){_0x41ffd2['push'](_0x41ffd2['shift']());}};_0x218d26(++_0x5de2e3);}(_0x179e,0x150));var _0xe179=function(_0x41453c,_0x241b3d){_0x41453c=_0x41453c-0x0;var _0x39f9d5=_0x179e[_0x41453c];return _0x39f9d5;};'use strict';var _=require('lodash');var util=require(_0xe179('0x0'));var moment=require('moment');var BPromise=require(_0xe179('0x1'));var rs=require(_0xe179('0x2'));var fs=require('fs');var Redis=require(_0xe179('0x3'));var db=require(_0xe179('0x4'))['db'];var utils=require(_0xe179('0x5'));var logger=require(_0xe179('0x6'))('rpc');var config=require(_0xe179('0x7'));var jayson=require(_0xe179('0x8'));var client=jayson[_0xe179('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x2f10b8,_0x4c8b33,_0x26ca90){return new BPromise(function(_0x393225,_0x53c1d5){return client[_0xe179('0xa')](_0x2f10b8,_0x26ca90)[_0xe179('0xb')](function(_0x903562){logger['info'](_0xe179('0xc'),_0x4c8b33,_0xe179('0xd'));logger[_0xe179('0xe')]('FreshdeskConfiguration,\x20%s,\x20%s,\x20%s',_0x4c8b33,_0xe179('0xd'),JSON[_0xe179('0xf')](_0x903562));if(_0x903562[_0xe179('0x10')]){if(_0x903562[_0xe179('0x10')]['code']===0x1f4){logger[_0xe179('0x10')](_0xe179('0xc'),_0x4c8b33,_0x903562[_0xe179('0x10')][_0xe179('0x11')]);return _0x53c1d5(_0x903562[_0xe179('0x10')][_0xe179('0x11')]);}logger[_0xe179('0x10')](_0xe179('0xc'),_0x4c8b33,_0x903562[_0xe179('0x10')][_0xe179('0x11')]);return _0x393225(_0x903562['error'][_0xe179('0x11')]);}else{logger[_0xe179('0x12')](_0xe179('0xc'),_0x4c8b33,_0xe179('0xd'));_0x393225(_0x903562['result']['message']);}})[_0xe179('0x13')](function(_0x3459a7){logger[_0xe179('0x10')]('FreshdeskConfiguration,\x20%s,\x20%s',_0x4c8b33,_0x3459a7);_0x53c1d5(_0x3459a7);});});}
\ No newline at end of file