X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FintFreshdeskConfiguration%2FintFreshdeskConfiguration.rpc.js;h=6dfc93a00437f560f862e4e544e3310e7daec0b5;hb=54a0ef4a12af741872007ade528c24acc1138e49;hp=968c2ab70b3b1e55dd6d5110f9f3ecc5f65accbe;hpb=d95c7680dfcaf10be192f8d0dd361fe585df15b7;p=motion2.git diff --git a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.rpc.js b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.rpc.js index 968c2ab..6dfc93a 100644 --- a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.rpc.js +++ b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.rpc.js @@ -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 _0x300a=['FreshdeskConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','code','FreshdeskConfiguration,\x20%s,\x20%s','message','result','lodash','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','then','info','request\x20sent'];(function(_0x336082,_0x5c364b){var _0x2ea2eb=function(_0x4c6c53){while(--_0x4c6c53){_0x336082['push'](_0x336082['shift']());}};_0x2ea2eb(++_0x5c364b);}(_0x300a,0x1bc));var _0xa300=function(_0x58c851,_0x1f3d96){_0x58c851=_0x58c851-0x0;var _0x534d8a=_0x300a[_0x58c851];return _0x534d8a;};'use strict';var _=require(_0xa300('0x0'));var util=require('util');var moment=require('moment');var BPromise=require(_0xa300('0x1'));var rs=require(_0xa300('0x2'));var fs=require('fs');var Redis=require(_0xa300('0x3'));var db=require('../../mysqldb')['db'];var utils=require(_0xa300('0x4'));var logger=require(_0xa300('0x5'))('rpc');var config=require(_0xa300('0x6'));var jayson=require(_0xa300('0x7'));var client=jayson[_0xa300('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x2011bc,_0xbfcbc9,_0x54e2c1){return new BPromise(function(_0x58a7a7,_0x48e56e){return client['request'](_0x2011bc,_0x54e2c1)[_0xa300('0x9')](function(_0x70cd9a){logger[_0xa300('0xa')]('FreshdeskConfiguration,\x20%s,\x20%s',_0xbfcbc9,_0xa300('0xb'));logger['debug'](_0xa300('0xc'),_0xbfcbc9,'request\x20sent',JSON[_0xa300('0xd')](_0x70cd9a));if(_0x70cd9a['error']){if(_0x70cd9a[_0xa300('0xe')][_0xa300('0xf')]===0x1f4){logger[_0xa300('0xe')](_0xa300('0x10'),_0xbfcbc9,_0x70cd9a['error'][_0xa300('0x11')]);return _0x48e56e(_0x70cd9a['error'][_0xa300('0x11')]);}logger[_0xa300('0xe')](_0xa300('0x10'),_0xbfcbc9,_0x70cd9a['error'][_0xa300('0x11')]);return _0x58a7a7(_0x70cd9a[_0xa300('0xe')]['message']);}else{logger['info']('FreshdeskConfiguration,\x20%s,\x20%s',_0xbfcbc9,_0xa300('0xb'));_0x58a7a7(_0x70cd9a[_0xa300('0x12')][_0xa300('0x11')]);}})['catch'](function(_0x5b4d69){logger[_0xa300('0xe')]('FreshdeskConfiguration,\x20%s,\x20%s',_0xbfcbc9,_0x5b4d69);_0x48e56e(_0x5b4d69);});});} \ No newline at end of file