Built motion from commit 092f8824.|2.5.49
[motion2.git] / server / api / intZendeskConfiguration / intZendeskConfiguration.rpc.js
index d7e5262..101ad60 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8bef=['message','ZendeskConfiguration,\x20%s,\x20%s','result','catch','lodash','util','randomstring','../../mysqldb','../../config/utils','../../config/environment','jayson/promise','client','then','info','request\x20sent','ZendeskConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','code'];(function(_0x5d1acd,_0x1a6401){var _0x1b68dd=function(_0xa8b274){while(--_0xa8b274){_0x5d1acd['push'](_0x5d1acd['shift']());}};_0x1b68dd(++_0x1a6401);}(_0x8bef,0x76));var _0xf8be=function(_0x2a9153,_0x44fd73){_0x2a9153=_0x2a9153-0x0;var _0x2f6615=_0x8bef[_0x2a9153];return _0x2f6615;};'use strict';var _=require(_0xf8be('0x0'));var util=require(_0xf8be('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0xf8be('0x2'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xf8be('0x3'))['db'];var utils=require(_0xf8be('0x4'));var logger=require('../../config/logger')('rpc');var config=require(_0xf8be('0x5'));var jayson=require(_0xf8be('0x6'));var client=jayson[_0xf8be('0x7')]['http']({'port':0x232a});function respondWithRpcPromise(_0x47b48a,_0x3b3a46,_0x5d0c0e){return new BPromise(function(_0x11f54e,_0x496c6f){return client['request'](_0x47b48a,_0x5d0c0e)[_0xf8be('0x8')](function(_0x4f5d14){logger[_0xf8be('0x9')]('ZendeskConfiguration,\x20%s,\x20%s',_0x3b3a46,_0xf8be('0xa'));logger['debug'](_0xf8be('0xb'),_0x3b3a46,_0xf8be('0xa'),JSON[_0xf8be('0xc')](_0x4f5d14));if(_0x4f5d14[_0xf8be('0xd')]){if(_0x4f5d14['error'][_0xf8be('0xe')]===0x1f4){logger[_0xf8be('0xd')]('ZendeskConfiguration,\x20%s,\x20%s',_0x3b3a46,_0x4f5d14[_0xf8be('0xd')][_0xf8be('0xf')]);return _0x496c6f(_0x4f5d14[_0xf8be('0xd')][_0xf8be('0xf')]);}logger['error'](_0xf8be('0x10'),_0x3b3a46,_0x4f5d14['error'][_0xf8be('0xf')]);return _0x11f54e(_0x4f5d14['error'][_0xf8be('0xf')]);}else{logger['info']('ZendeskConfiguration,\x20%s,\x20%s',_0x3b3a46,_0xf8be('0xa'));_0x11f54e(_0x4f5d14[_0xf8be('0x11')][_0xf8be('0xf')]);}})[_0xf8be('0x12')](function(_0xc213df){logger['error']('ZendeskConfiguration,\x20%s,\x20%s',_0x3b3a46,_0xc213df);_0x496c6f(_0xc213df);});});}
\ No newline at end of file
+var _0x2f69=['rpc','jayson/promise','client','request','info','debug','stringify','error','ZendeskConfiguration,\x20%s,\x20%s','message','request\x20sent','result','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils'];(function(_0x4cde67,_0x368979){var _0x49f321=function(_0xa7b647){while(--_0xa7b647){_0x4cde67['push'](_0x4cde67['shift']());}};_0x49f321(++_0x368979);}(_0x2f69,0x1e7));var _0x92f6=function(_0x397e5f,_0x454c8f){_0x397e5f=_0x397e5f-0x0;var _0x5302b8=_0x2f69[_0x397e5f];return _0x5302b8;};'use strict';var _=require('lodash');var util=require(_0x92f6('0x0'));var moment=require(_0x92f6('0x1'));var BPromise=require(_0x92f6('0x2'));var rs=require(_0x92f6('0x3'));var fs=require('fs');var Redis=require(_0x92f6('0x4'));var db=require(_0x92f6('0x5'))['db'];var utils=require(_0x92f6('0x6'));var logger=require('../../config/logger')(_0x92f6('0x7'));var config=require('../../config/environment');var jayson=require(_0x92f6('0x8'));var client=jayson[_0x92f6('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x24fce2,_0xb2c966,_0x45a9a6){return new BPromise(function(_0x2c740,_0x34cb71){return client[_0x92f6('0xa')](_0x24fce2,_0x45a9a6)['then'](function(_0x4130f7){logger[_0x92f6('0xb')]('ZendeskConfiguration,\x20%s,\x20%s',_0xb2c966,'request\x20sent');logger[_0x92f6('0xc')]('ZendeskConfiguration,\x20%s,\x20%s,\x20%s',_0xb2c966,'request\x20sent',JSON[_0x92f6('0xd')](_0x4130f7));if(_0x4130f7[_0x92f6('0xe')]){if(_0x4130f7[_0x92f6('0xe')]['code']===0x1f4){logger['error'](_0x92f6('0xf'),_0xb2c966,_0x4130f7[_0x92f6('0xe')][_0x92f6('0x10')]);return _0x34cb71(_0x4130f7[_0x92f6('0xe')][_0x92f6('0x10')]);}logger[_0x92f6('0xe')](_0x92f6('0xf'),_0xb2c966,_0x4130f7['error'][_0x92f6('0x10')]);return _0x2c740(_0x4130f7['error'][_0x92f6('0x10')]);}else{logger[_0x92f6('0xb')](_0x92f6('0xf'),_0xb2c966,_0x92f6('0x11'));_0x2c740(_0x4130f7[_0x92f6('0x12')][_0x92f6('0x10')]);}})['catch'](function(_0x208bf6){logger[_0x92f6('0xe')](_0x92f6('0xf'),_0xb2c966,_0x208bf6);_0x34cb71(_0x208bf6);});});}
\ No newline at end of file