Built motion from commit 0900f080.|2.5.45
[motion2.git] / server / api / intZendeskField / intZendeskField.rpc.js
index 4a5124e..ed42dbe 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe191=['error','code','message','result','catch','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','jayson/promise','http','request','then','info','ZendeskField,\x20%s,\x20%s','debug','ZendeskField,\x20%s,\x20%s,\x20%s','request\x20sent','stringify'];(function(_0x7f0006,_0x2abc77){var _0xe61ff4=function(_0xaaf2af){while(--_0xaaf2af){_0x7f0006['push'](_0x7f0006['shift']());}};_0xe61ff4(++_0x2abc77);}(_0xe191,0x1d3));var _0x1e19=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xe191[_0x3dd15e];return _0x231fd0;};'use strict';var _=require('lodash');var util=require(_0x1e19('0x0'));var moment=require('moment');var BPromise=require(_0x1e19('0x1'));var rs=require(_0x1e19('0x2'));var fs=require('fs');var Redis=require(_0x1e19('0x3'));var db=require(_0x1e19('0x4'))['db'];var utils=require(_0x1e19('0x5'));var logger=require(_0x1e19('0x6'))('rpc');var config=require('../../config/environment');var jayson=require(_0x1e19('0x7'));var client=jayson['client'][_0x1e19('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x17fbd9,_0x31ec74,_0x22bf16){return new BPromise(function(_0x57bde9,_0xaeb834){return client[_0x1e19('0x9')](_0x17fbd9,_0x22bf16)[_0x1e19('0xa')](function(_0x3fea9c){logger[_0x1e19('0xb')](_0x1e19('0xc'),_0x31ec74,'request\x20sent');logger[_0x1e19('0xd')](_0x1e19('0xe'),_0x31ec74,_0x1e19('0xf'),JSON[_0x1e19('0x10')](_0x3fea9c));if(_0x3fea9c[_0x1e19('0x11')]){if(_0x3fea9c['error'][_0x1e19('0x12')]===0x1f4){logger['error']('ZendeskField,\x20%s,\x20%s',_0x31ec74,_0x3fea9c[_0x1e19('0x11')][_0x1e19('0x13')]);return _0xaeb834(_0x3fea9c['error'][_0x1e19('0x13')]);}logger[_0x1e19('0x11')](_0x1e19('0xc'),_0x31ec74,_0x3fea9c[_0x1e19('0x11')][_0x1e19('0x13')]);return _0x57bde9(_0x3fea9c['error'][_0x1e19('0x13')]);}else{logger[_0x1e19('0xb')](_0x1e19('0xc'),_0x31ec74,_0x1e19('0xf'));_0x57bde9(_0x3fea9c[_0x1e19('0x14')]['message']);}})[_0x1e19('0x15')](function(_0x30e950){logger[_0x1e19('0x11')]('ZendeskField,\x20%s,\x20%s',_0x31ec74,_0x30e950);_0xaeb834(_0x30e950);});});}
\ No newline at end of file
+var _0x37e0=['util','moment','bluebird','randomstring','ioredis','../../config/utils','../../config/environment','jayson/promise','client','http','request','then','info','ZendeskField,\x20%s,\x20%s','request\x20sent','debug','ZendeskField,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result'];(function(_0x4f21c4,_0x960024){var _0x2f9fa6=function(_0x26f914){while(--_0x26f914){_0x4f21c4['push'](_0x4f21c4['shift']());}};_0x2f9fa6(++_0x960024);}(_0x37e0,0x1e4));var _0x037e=function(_0x803664,_0x1824d6){_0x803664=_0x803664-0x0;var _0x264362=_0x37e0[_0x803664];return _0x264362;};'use strict';var _=require('lodash');var util=require(_0x037e('0x0'));var moment=require(_0x037e('0x1'));var BPromise=require(_0x037e('0x2'));var rs=require(_0x037e('0x3'));var fs=require('fs');var Redis=require(_0x037e('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0x037e('0x5'));var logger=require('../../config/logger')('rpc');var config=require(_0x037e('0x6'));var jayson=require(_0x037e('0x7'));var client=jayson[_0x037e('0x8')][_0x037e('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x307836,_0x5b7459,_0x1a149e){return new BPromise(function(_0x4ba86b,_0x13f075){return client[_0x037e('0xa')](_0x307836,_0x1a149e)[_0x037e('0xb')](function(_0x199c68){logger[_0x037e('0xc')](_0x037e('0xd'),_0x5b7459,_0x037e('0xe'));logger[_0x037e('0xf')](_0x037e('0x10'),_0x5b7459,_0x037e('0xe'),JSON[_0x037e('0x11')](_0x199c68));if(_0x199c68['error']){if(_0x199c68[_0x037e('0x12')][_0x037e('0x13')]===0x1f4){logger['error'](_0x037e('0xd'),_0x5b7459,_0x199c68[_0x037e('0x12')][_0x037e('0x14')]);return _0x13f075(_0x199c68[_0x037e('0x12')][_0x037e('0x14')]);}logger[_0x037e('0x12')](_0x037e('0xd'),_0x5b7459,_0x199c68[_0x037e('0x12')]['message']);return _0x4ba86b(_0x199c68[_0x037e('0x12')][_0x037e('0x14')]);}else{logger[_0x037e('0xc')](_0x037e('0xd'),_0x5b7459,_0x037e('0xe'));_0x4ba86b(_0x199c68[_0x037e('0x15')]['message']);}})['catch'](function(_0x2e6752){logger[_0x037e('0x12')]('ZendeskField,\x20%s,\x20%s',_0x5b7459,_0x2e6752);_0x13f075(_0x2e6752);});});}
\ No newline at end of file