Built motion from commit 97153652.|2.6.26
[motion2.git] / server / api / intZendeskField / intZendeskField.rpc.js
index cb41210..260b5fb 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2bfa=['client','request','then','info','ZendeskField,\x20%s,\x20%s','request\x20sent','ZendeskField,\x20%s,\x20%s,\x20%s','stringify','error','code','message','catch','lodash','util','moment','bluebird','ioredis','../../config/utils','../../config/logger','jayson/promise'];(function(_0x1c6b57,_0x1cf4cd){var _0x3fbb5d=function(_0x42b840){while(--_0x42b840){_0x1c6b57['push'](_0x1c6b57['shift']());}};_0x3fbb5d(++_0x1cf4cd);}(_0x2bfa,0x160));var _0xa2bf=function(_0x231a2e,_0x4dd1d6){_0x231a2e=_0x231a2e-0x0;var _0x1db307=_0x2bfa[_0x231a2e];return _0x1db307;};'use strict';var _=require(_0xa2bf('0x0'));var util=require(_0xa2bf('0x1'));var moment=require(_0xa2bf('0x2'));var BPromise=require(_0xa2bf('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xa2bf('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0xa2bf('0x5'));var logger=require(_0xa2bf('0x6'))('rpc');var config=require('../../config/environment');var jayson=require(_0xa2bf('0x7'));var client=jayson[_0xa2bf('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x1f4269,_0x47d6a8,_0x5433c6){return new BPromise(function(_0x38b167,_0xb1733f){return client[_0xa2bf('0x9')](_0x1f4269,_0x5433c6)[_0xa2bf('0xa')](function(_0x1b1886){logger[_0xa2bf('0xb')](_0xa2bf('0xc'),_0x47d6a8,_0xa2bf('0xd'));logger['debug'](_0xa2bf('0xe'),_0x47d6a8,'request\x20sent',JSON[_0xa2bf('0xf')](_0x1b1886));if(_0x1b1886[_0xa2bf('0x10')]){if(_0x1b1886[_0xa2bf('0x10')][_0xa2bf('0x11')]===0x1f4){logger[_0xa2bf('0x10')](_0xa2bf('0xc'),_0x47d6a8,_0x1b1886[_0xa2bf('0x10')][_0xa2bf('0x12')]);return _0xb1733f(_0x1b1886[_0xa2bf('0x10')][_0xa2bf('0x12')]);}logger[_0xa2bf('0x10')](_0xa2bf('0xc'),_0x47d6a8,_0x1b1886[_0xa2bf('0x10')][_0xa2bf('0x12')]);return _0x38b167(_0x1b1886['error'][_0xa2bf('0x12')]);}else{logger[_0xa2bf('0xb')](_0xa2bf('0xc'),_0x47d6a8,_0xa2bf('0xd'));_0x38b167(_0x1b1886['result'][_0xa2bf('0x12')]);}})[_0xa2bf('0x13')](function(_0x2a6e5d){logger['error'](_0xa2bf('0xc'),_0x47d6a8,_0x2a6e5d);_0xb1733f(_0x2a6e5d);});});}
\ No newline at end of file
+var _0xa7b3=['../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','http','request','then','info','ZendeskField,\x20%s,\x20%s','request\x20sent','debug','ZendeskField,\x20%s,\x20%s,\x20%s','error','code','message','catch','util','moment','bluebird','randomstring','ioredis'];(function(_0x5be253,_0x470b74){var _0x3fee0e=function(_0x12e485){while(--_0x12e485){_0x5be253['push'](_0x5be253['shift']());}};_0x3fee0e(++_0x470b74);}(_0xa7b3,0x7f));var _0x3a7b=function(_0x3b2bb4,_0x1c48c8){_0x3b2bb4=_0x3b2bb4-0x0;var _0x497e44=_0xa7b3[_0x3b2bb4];return _0x497e44;};'use strict';var _=require('lodash');var util=require(_0x3a7b('0x0'));var moment=require(_0x3a7b('0x1'));var BPromise=require(_0x3a7b('0x2'));var rs=require(_0x3a7b('0x3'));var fs=require('fs');var Redis=require(_0x3a7b('0x4'));var db=require(_0x3a7b('0x5'))['db'];var utils=require(_0x3a7b('0x6'));var logger=require(_0x3a7b('0x7'))('rpc');var config=require(_0x3a7b('0x8'));var jayson=require(_0x3a7b('0x9'));var client=jayson['client'][_0x3a7b('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x30e06f,_0x382585,_0x5a5548){return new BPromise(function(_0x37c659,_0x2c5027){return client[_0x3a7b('0xb')](_0x30e06f,_0x5a5548)[_0x3a7b('0xc')](function(_0x23152b){logger[_0x3a7b('0xd')](_0x3a7b('0xe'),_0x382585,_0x3a7b('0xf'));logger[_0x3a7b('0x10')](_0x3a7b('0x11'),_0x382585,'request\x20sent',JSON['stringify'](_0x23152b));if(_0x23152b[_0x3a7b('0x12')]){if(_0x23152b[_0x3a7b('0x12')][_0x3a7b('0x13')]===0x1f4){logger['error'](_0x3a7b('0xe'),_0x382585,_0x23152b[_0x3a7b('0x12')]['message']);return _0x2c5027(_0x23152b[_0x3a7b('0x12')][_0x3a7b('0x14')]);}logger['error'](_0x3a7b('0xe'),_0x382585,_0x23152b[_0x3a7b('0x12')][_0x3a7b('0x14')]);return _0x37c659(_0x23152b[_0x3a7b('0x12')][_0x3a7b('0x14')]);}else{logger[_0x3a7b('0xd')](_0x3a7b('0xe'),_0x382585,_0x3a7b('0xf'));_0x37c659(_0x23152b['result'][_0x3a7b('0x14')]);}})[_0x3a7b('0x15')](function(_0x4ef295){logger[_0x3a7b('0x12')](_0x3a7b('0xe'),_0x382585,_0x4ef295);_0x2c5027(_0x4ef295);});});}
\ No newline at end of file