Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / intZendeskConfiguration / intZendeskConfiguration.rpc.js
index 183a6bf..de5eac1 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xaa7c=['request\x20sent','debug','ZendeskConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','message','info','result','catch','lodash','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http','request','then','ZendeskConfiguration,\x20%s,\x20%s'];(function(_0xcd2491,_0x8e975e){var _0x423f06=function(_0x4b2bf0){while(--_0x4b2bf0){_0xcd2491['push'](_0xcd2491['shift']());}};_0x423f06(++_0x8e975e);}(_0xaa7c,0x129));var _0xcaa7=function(_0x249c9b,_0xed0853){_0x249c9b=_0x249c9b-0x0;var _0x373b39=_0xaa7c[_0x249c9b];return _0x373b39;};'use strict';var _=require(_0xcaa7('0x0'));var util=require(_0xcaa7('0x1'));var moment=require(_0xcaa7('0x2'));var BPromise=require('bluebird');var rs=require(_0xcaa7('0x3'));var fs=require('fs');var Redis=require(_0xcaa7('0x4'));var db=require(_0xcaa7('0x5'))['db'];var utils=require(_0xcaa7('0x6'));var logger=require(_0xcaa7('0x7'))(_0xcaa7('0x8'));var config=require(_0xcaa7('0x9'));var jayson=require(_0xcaa7('0xa'));var client=jayson['client'][_0xcaa7('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x4e36a0,_0x3f7e18,_0x496c5f){return new BPromise(function(_0x72df93,_0x14e2de){return client[_0xcaa7('0xc')](_0x4e36a0,_0x496c5f)[_0xcaa7('0xd')](function(_0x78e602){logger['info'](_0xcaa7('0xe'),_0x3f7e18,_0xcaa7('0xf'));logger[_0xcaa7('0x10')](_0xcaa7('0x11'),_0x3f7e18,'request\x20sent',JSON[_0xcaa7('0x12')](_0x78e602));if(_0x78e602[_0xcaa7('0x13')]){if(_0x78e602[_0xcaa7('0x13')]['code']===0x1f4){logger[_0xcaa7('0x13')](_0xcaa7('0xe'),_0x3f7e18,_0x78e602[_0xcaa7('0x13')]['message']);return _0x14e2de(_0x78e602['error'][_0xcaa7('0x14')]);}logger[_0xcaa7('0x13')](_0xcaa7('0xe'),_0x3f7e18,_0x78e602['error']['message']);return _0x72df93(_0x78e602[_0xcaa7('0x13')][_0xcaa7('0x14')]);}else{logger[_0xcaa7('0x15')](_0xcaa7('0xe'),_0x3f7e18,_0xcaa7('0xf'));_0x72df93(_0x78e602[_0xcaa7('0x16')][_0xcaa7('0x14')]);}})[_0xcaa7('0x17')](function(_0x1ee976){logger['error'](_0xcaa7('0xe'),_0x3f7e18,_0x1ee976);_0x14e2de(_0x1ee976);});});}
\ No newline at end of file
+var _0x8003=['jayson/promise','client','http','request','info','ZendeskConfiguration,\x20%s,\x20%s','request\x20sent','debug','ZendeskConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','moment','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment'];(function(_0x297fd3,_0x115406){var _0x2af381=function(_0x1dd31b){while(--_0x1dd31b){_0x297fd3['push'](_0x297fd3['shift']());}};_0x2af381(++_0x115406);}(_0x8003,0x1ad));var _0x3800=function(_0x247fa1,_0x4ec37c){_0x247fa1=_0x247fa1-0x0;var _0x244f35=_0x8003[_0x247fa1];return _0x244f35;};'use strict';var _=require(_0x3800('0x0'));var util=require('util');var moment=require(_0x3800('0x1'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x3800('0x2'));var db=require(_0x3800('0x3'))['db'];var utils=require(_0x3800('0x4'));var logger=require(_0x3800('0x5'))(_0x3800('0x6'));var config=require(_0x3800('0x7'));var jayson=require(_0x3800('0x8'));var client=jayson[_0x3800('0x9')][_0x3800('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x2ae83f,_0x12d9d4,_0x5a909e){return new BPromise(function(_0x27754d,_0x25922a){return client[_0x3800('0xb')](_0x2ae83f,_0x5a909e)['then'](function(_0x595f6f){logger[_0x3800('0xc')](_0x3800('0xd'),_0x12d9d4,_0x3800('0xe'));logger[_0x3800('0xf')](_0x3800('0x10'),_0x12d9d4,_0x3800('0xe'),JSON[_0x3800('0x11')](_0x595f6f));if(_0x595f6f[_0x3800('0x12')]){if(_0x595f6f[_0x3800('0x12')][_0x3800('0x13')]===0x1f4){logger['error'](_0x3800('0xd'),_0x12d9d4,_0x595f6f[_0x3800('0x12')]['message']);return _0x25922a(_0x595f6f[_0x3800('0x12')][_0x3800('0x14')]);}logger[_0x3800('0x12')](_0x3800('0xd'),_0x12d9d4,_0x595f6f[_0x3800('0x12')]['message']);return _0x27754d(_0x595f6f[_0x3800('0x12')][_0x3800('0x14')]);}else{logger['info']('ZendeskConfiguration,\x20%s,\x20%s',_0x12d9d4,_0x3800('0xe'));_0x27754d(_0x595f6f[_0x3800('0x15')][_0x3800('0x14')]);}})[_0x3800('0x16')](function(_0x7e117a){logger[_0x3800('0x12')](_0x3800('0xd'),_0x12d9d4,_0x7e117a);_0x25922a(_0x7e117a);});});}
\ No newline at end of file