Built motion from commit a679711e.|2.6.15
[motion2.git] / server / api / intZendeskField / intZendeskField.rpc.js
index 5d31940..0c94969 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xedac=['../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','ZendeskField,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','result','util','moment','randomstring'];(function(_0x2fecc6,_0x12b416){var _0x467463=function(_0x13fd14){while(--_0x13fd14){_0x2fecc6['push'](_0x2fecc6['shift']());}};_0x467463(++_0x12b416);}(_0xedac,0x177));var _0xceda=function(_0x22b936,_0x52ba3c){_0x22b936=_0x22b936-0x0;var _0x2c6324=_0xedac[_0x22b936];return _0x2c6324;};'use strict';var _=require('lodash');var util=require(_0xceda('0x0'));var moment=require(_0xceda('0x1'));var BPromise=require('bluebird');var rs=require(_0xceda('0x2'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xceda('0x3'))['db'];var utils=require('../../config/utils');var logger=require(_0xceda('0x4'))(_0xceda('0x5'));var config=require(_0xceda('0x6'));var jayson=require(_0xceda('0x7'));var client=jayson[_0xceda('0x8')][_0xceda('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x515ddf,_0x195143,_0x2b5130){return new BPromise(function(_0x53cc71,_0x3d4184){return client[_0xceda('0xa')](_0x515ddf,_0x2b5130)[_0xceda('0xb')](function(_0x8ad618){logger[_0xceda('0xc')](_0xceda('0xd'),_0x195143,_0xceda('0xe'));logger[_0xceda('0xf')]('ZendeskField,\x20%s,\x20%s,\x20%s',_0x195143,_0xceda('0xe'),JSON[_0xceda('0x10')](_0x8ad618));if(_0x8ad618[_0xceda('0x11')]){if(_0x8ad618[_0xceda('0x11')][_0xceda('0x12')]===0x1f4){logger[_0xceda('0x11')]('ZendeskField,\x20%s,\x20%s',_0x195143,_0x8ad618['error'][_0xceda('0x13')]);return _0x3d4184(_0x8ad618[_0xceda('0x11')]['message']);}logger[_0xceda('0x11')](_0xceda('0xd'),_0x195143,_0x8ad618[_0xceda('0x11')][_0xceda('0x13')]);return _0x53cc71(_0x8ad618[_0xceda('0x11')][_0xceda('0x13')]);}else{logger[_0xceda('0xc')](_0xceda('0xd'),_0x195143,_0xceda('0xe'));_0x53cc71(_0x8ad618[_0xceda('0x14')][_0xceda('0x13')]);}})['catch'](function(_0x1a9614){logger['error']('ZendeskField,\x20%s,\x20%s',_0x195143,_0x1a9614);_0x3d4184(_0x1a9614);});});}
\ No newline at end of file
+var _0x9375=['ZendeskField,\x20%s,\x20%s','request\x20sent','debug','ZendeskField,\x20%s,\x20%s,\x20%s','error','code','message','catch','lodash','util','moment','bluebird','ioredis','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0x9375,0x110));var _0x5937=function(_0x3569f5,_0x39ea83){_0x3569f5=_0x3569f5-0x0;var _0x188282=_0x9375[_0x3569f5];return _0x188282;};'use strict';var _=require(_0x5937('0x0'));var util=require(_0x5937('0x1'));var moment=require(_0x5937('0x2'));var BPromise=require(_0x5937('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x5937('0x4'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0x5937('0x5'))(_0x5937('0x6'));var config=require(_0x5937('0x7'));var jayson=require(_0x5937('0x8'));var client=jayson[_0x5937('0x9')][_0x5937('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x3a7aa2,_0x2c6ecb,_0x585e51){return new BPromise(function(_0x275d0c,_0x3740fa){return client[_0x5937('0xb')](_0x3a7aa2,_0x585e51)[_0x5937('0xc')](function(_0x575cae){logger[_0x5937('0xd')](_0x5937('0xe'),_0x2c6ecb,_0x5937('0xf'));logger[_0x5937('0x10')](_0x5937('0x11'),_0x2c6ecb,'request\x20sent',JSON['stringify'](_0x575cae));if(_0x575cae[_0x5937('0x12')]){if(_0x575cae[_0x5937('0x12')][_0x5937('0x13')]===0x1f4){logger['error'](_0x5937('0xe'),_0x2c6ecb,_0x575cae[_0x5937('0x12')][_0x5937('0x14')]);return _0x3740fa(_0x575cae[_0x5937('0x12')][_0x5937('0x14')]);}logger[_0x5937('0x12')](_0x5937('0xe'),_0x2c6ecb,_0x575cae[_0x5937('0x12')]['message']);return _0x275d0c(_0x575cae['error'][_0x5937('0x14')]);}else{logger['info']('ZendeskField,\x20%s,\x20%s',_0x2c6ecb,_0x5937('0xf'));_0x275d0c(_0x575cae['result'][_0x5937('0x14')]);}})[_0x5937('0x15')](function(_0x3158a8){logger['error'](_0x5937('0xe'),_0x2c6ecb,_0x3158a8);_0x3740fa(_0x3158a8);});});}
\ No newline at end of file