Built motion from commit 092f8824.|2.5.49
[motion2.git] / server / api / intZendeskConfiguration / intZendeskConfiguration.rpc.js
index e78c3ae..101ad60 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x43df=['ZendeskConfiguration,\x20%s,\x20%s','debug','ZendeskConfiguration,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','result','catch','lodash','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','jayson/promise','client','http','request','then','info'];(function(_0x593e70,_0x7a66e2){var _0x48d454=function(_0x552d45){while(--_0x552d45){_0x593e70['push'](_0x593e70['shift']());}};_0x48d454(++_0x7a66e2);}(_0x43df,0x1ba));var _0xf43d=function(_0x382760,_0x59c55f){_0x382760=_0x382760-0x0;var _0x3ca405=_0x43df[_0x382760];return _0x3ca405;};'use strict';var _=require(_0xf43d('0x0'));var util=require(_0xf43d('0x1'));var moment=require(_0xf43d('0x2'));var BPromise=require('bluebird');var rs=require(_0xf43d('0x3'));var fs=require('fs');var Redis=require(_0xf43d('0x4'));var db=require(_0xf43d('0x5'))['db'];var utils=require(_0xf43d('0x6'));var logger=require(_0xf43d('0x7'))('rpc');var config=require('../../config/environment');var jayson=require(_0xf43d('0x8'));var client=jayson[_0xf43d('0x9')][_0xf43d('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x48ac14,_0x171641,_0x4fcc3b){return new BPromise(function(_0x1c9e79,_0x13c687){return client[_0xf43d('0xb')](_0x48ac14,_0x4fcc3b)[_0xf43d('0xc')](function(_0x2881bc){logger[_0xf43d('0xd')](_0xf43d('0xe'),_0x171641,'request\x20sent');logger[_0xf43d('0xf')](_0xf43d('0x10'),_0x171641,_0xf43d('0x11'),JSON[_0xf43d('0x12')](_0x2881bc));if(_0x2881bc[_0xf43d('0x13')]){if(_0x2881bc['error'][_0xf43d('0x14')]===0x1f4){logger['error'](_0xf43d('0xe'),_0x171641,_0x2881bc[_0xf43d('0x13')][_0xf43d('0x15')]);return _0x13c687(_0x2881bc['error'][_0xf43d('0x15')]);}logger['error'](_0xf43d('0xe'),_0x171641,_0x2881bc[_0xf43d('0x13')][_0xf43d('0x15')]);return _0x1c9e79(_0x2881bc[_0xf43d('0x13')][_0xf43d('0x15')]);}else{logger[_0xf43d('0xd')](_0xf43d('0xe'),_0x171641,_0xf43d('0x11'));_0x1c9e79(_0x2881bc[_0xf43d('0x16')][_0xf43d('0x15')]);}})[_0xf43d('0x17')](function(_0xae5977){logger['error'](_0xf43d('0xe'),_0x171641,_0xae5977);_0x13c687(_0xae5977);});});}
\ 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