Built motion from commit b5996064.|2.6.21
[motion2.git] / server / api / intZendeskConfiguration / intZendeskConfiguration.rpc.js
index 9a2ea8b..0b911e5 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf875=['util','bluebird','randomstring','../../mysqldb','../../config/logger','jayson/promise','client','http','request','then','info','ZendeskConfiguration,\x20%s,\x20%s','request\x20sent','debug','ZendeskConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash'];(function(_0x5dba1a,_0xb9f9d6){var _0x3a70f7=function(_0x2c9321){while(--_0x2c9321){_0x5dba1a['push'](_0x5dba1a['shift']());}};_0x3a70f7(++_0xb9f9d6);}(_0xf875,0x1a1));var _0x5f87=function(_0x5c049a,_0x2c1263){_0x5c049a=_0x5c049a-0x0;var _0x168e70=_0xf875[_0x5c049a];return _0x168e70;};'use strict';var _=require(_0x5f87('0x0'));var util=require(_0x5f87('0x1'));var moment=require('moment');var BPromise=require(_0x5f87('0x2'));var rs=require(_0x5f87('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x5f87('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0x5f87('0x5'))('rpc');var config=require('../../config/environment');var jayson=require(_0x5f87('0x6'));var client=jayson[_0x5f87('0x7')][_0x5f87('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x5cd623,_0x4f44d1,_0x154929){return new BPromise(function(_0x12f07d,_0x5ed310){return client[_0x5f87('0x9')](_0x5cd623,_0x154929)[_0x5f87('0xa')](function(_0x315416){logger[_0x5f87('0xb')](_0x5f87('0xc'),_0x4f44d1,_0x5f87('0xd'));logger[_0x5f87('0xe')](_0x5f87('0xf'),_0x4f44d1,_0x5f87('0xd'),JSON[_0x5f87('0x10')](_0x315416));if(_0x315416[_0x5f87('0x11')]){if(_0x315416[_0x5f87('0x11')][_0x5f87('0x12')]===0x1f4){logger[_0x5f87('0x11')]('ZendeskConfiguration,\x20%s,\x20%s',_0x4f44d1,_0x315416[_0x5f87('0x11')][_0x5f87('0x13')]);return _0x5ed310(_0x315416[_0x5f87('0x11')][_0x5f87('0x13')]);}logger['error']('ZendeskConfiguration,\x20%s,\x20%s',_0x4f44d1,_0x315416[_0x5f87('0x11')][_0x5f87('0x13')]);return _0x12f07d(_0x315416['error'][_0x5f87('0x13')]);}else{logger[_0x5f87('0xb')]('ZendeskConfiguration,\x20%s,\x20%s',_0x4f44d1,_0x5f87('0xd'));_0x12f07d(_0x315416[_0x5f87('0x14')]['message']);}})[_0x5f87('0x15')](function(_0x57eb95){logger[_0x5f87('0x11')](_0x5f87('0xc'),_0x4f44d1,_0x57eb95);_0x5ed310(_0x57eb95);});});}
\ No newline at end of file
+var _0xb98a=['util','randomstring','ioredis','../../config/logger','../../config/environment','jayson/promise','client','http','request','then','info','ZendeskConfiguration,\x20%s,\x20%s','debug','ZendeskConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','code','message','catch','lodash'];(function(_0x461c2e,_0x4015e2){var _0x524f15=function(_0x37560d){while(--_0x37560d){_0x461c2e['push'](_0x461c2e['shift']());}};_0x524f15(++_0x4015e2);}(_0xb98a,0x77));var _0xab98=function(_0x5c742e,_0x4fb205){_0x5c742e=_0x5c742e-0x0;var _0x21854f=_0xb98a[_0x5c742e];return _0x21854f;};'use strict';var _=require(_0xab98('0x0'));var util=require(_0xab98('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0xab98('0x2'));var fs=require('fs');var Redis=require(_0xab98('0x3'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0xab98('0x4'))('rpc');var config=require(_0xab98('0x5'));var jayson=require(_0xab98('0x6'));var client=jayson[_0xab98('0x7')][_0xab98('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x2fda25,_0x3850f6,_0x497366){return new BPromise(function(_0x4ce4fb,_0x191d5a){return client[_0xab98('0x9')](_0x2fda25,_0x497366)[_0xab98('0xa')](function(_0x197e63){logger[_0xab98('0xb')](_0xab98('0xc'),_0x3850f6,'request\x20sent');logger[_0xab98('0xd')](_0xab98('0xe'),_0x3850f6,'request\x20sent',JSON[_0xab98('0xf')](_0x197e63));if(_0x197e63[_0xab98('0x10')]){if(_0x197e63['error'][_0xab98('0x11')]===0x1f4){logger['error']('ZendeskConfiguration,\x20%s,\x20%s',_0x3850f6,_0x197e63[_0xab98('0x10')][_0xab98('0x12')]);return _0x191d5a(_0x197e63[_0xab98('0x10')][_0xab98('0x12')]);}logger[_0xab98('0x10')](_0xab98('0xc'),_0x3850f6,_0x197e63[_0xab98('0x10')][_0xab98('0x12')]);return _0x4ce4fb(_0x197e63[_0xab98('0x10')][_0xab98('0x12')]);}else{logger[_0xab98('0xb')](_0xab98('0xc'),_0x3850f6,'request\x20sent');_0x4ce4fb(_0x197e63['result'][_0xab98('0x12')]);}})[_0xab98('0x13')](function(_0x53dae9){logger['error'](_0xab98('0xc'),_0x3850f6,_0x53dae9);_0x191d5a(_0x53dae9);});});}
\ No newline at end of file