Built motion from commit 753c950e.|2.5.42
[motion2.git] / server / api / intZendeskField / intZendeskField.rpc.js
index 49ebe6d..850954b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5fa8=['../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','ZendeskField,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','result','util','moment','bluebird','randomstring','ioredis'];(function(_0x556e97,_0x550c48){var _0x44f6a4=function(_0x5cbd92){while(--_0x5cbd92){_0x556e97['push'](_0x556e97['shift']());}};_0x44f6a4(++_0x550c48);}(_0x5fa8,0x69));var _0x85fa=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x5fa8[_0x3dd15e];return _0x231fd0;};'use strict';var _=require('lodash');var util=require(_0x85fa('0x0'));var moment=require(_0x85fa('0x1'));var BPromise=require(_0x85fa('0x2'));var rs=require(_0x85fa('0x3'));var fs=require('fs');var Redis=require(_0x85fa('0x4'));var db=require(_0x85fa('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0x85fa('0x6'))(_0x85fa('0x7'));var config=require(_0x85fa('0x8'));var jayson=require(_0x85fa('0x9'));var client=jayson[_0x85fa('0xa')][_0x85fa('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x495c92,_0x544a90,_0x1cc86f){return new BPromise(function(_0x33584e,_0x37d0f6){return client[_0x85fa('0xc')](_0x495c92,_0x1cc86f)[_0x85fa('0xd')](function(_0x5e2fb7){logger['info'](_0x85fa('0xe'),_0x544a90,_0x85fa('0xf'));logger[_0x85fa('0x10')]('ZendeskField,\x20%s,\x20%s,\x20%s',_0x544a90,_0x85fa('0xf'),JSON[_0x85fa('0x11')](_0x5e2fb7));if(_0x5e2fb7[_0x85fa('0x12')]){if(_0x5e2fb7[_0x85fa('0x12')][_0x85fa('0x13')]===0x1f4){logger[_0x85fa('0x12')]('ZendeskField,\x20%s,\x20%s',_0x544a90,_0x5e2fb7[_0x85fa('0x12')]['message']);return _0x37d0f6(_0x5e2fb7['error'][_0x85fa('0x14')]);}logger[_0x85fa('0x12')](_0x85fa('0xe'),_0x544a90,_0x5e2fb7[_0x85fa('0x12')]['message']);return _0x33584e(_0x5e2fb7[_0x85fa('0x12')][_0x85fa('0x14')]);}else{logger['info']('ZendeskField,\x20%s,\x20%s',_0x544a90,_0x85fa('0xf'));_0x33584e(_0x5e2fb7[_0x85fa('0x15')][_0x85fa('0x14')]);}})['catch'](function(_0x88da1){logger['error'](_0x85fa('0xe'),_0x544a90,_0x88da1);_0x37d0f6(_0x88da1);});});}
\ No newline at end of file
+var _0x2a98=['request\x20sent','debug','ZendeskField,\x20%s,\x20%s,\x20%s','stringify','error','code','message','info','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','../../config/environment','jayson/promise','client','http','request','then','ZendeskField,\x20%s,\x20%s'];(function(_0x33154d,_0x854047){var _0x3b2f03=function(_0x35f7a6){while(--_0x35f7a6){_0x33154d['push'](_0x33154d['shift']());}};_0x3b2f03(++_0x854047);}(_0x2a98,0xc9));var _0x82a9=function(_0x867887,_0xd6eeb8){_0x867887=_0x867887-0x0;var _0x1cc048=_0x2a98[_0x867887];return _0x1cc048;};'use strict';var _=require(_0x82a9('0x0'));var util=require(_0x82a9('0x1'));var moment=require(_0x82a9('0x2'));var BPromise=require(_0x82a9('0x3'));var rs=require(_0x82a9('0x4'));var fs=require('fs');var Redis=require(_0x82a9('0x5'));var db=require(_0x82a9('0x6'))['db'];var utils=require('../../config/utils');var logger=require(_0x82a9('0x7'))('rpc');var config=require(_0x82a9('0x8'));var jayson=require(_0x82a9('0x9'));var client=jayson[_0x82a9('0xa')][_0x82a9('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x50f325,_0x2e5d6f,_0x1aa6fc){return new BPromise(function(_0x13bb9a,_0x229f0d){return client[_0x82a9('0xc')](_0x50f325,_0x1aa6fc)[_0x82a9('0xd')](function(_0x1b0f2d){logger['info'](_0x82a9('0xe'),_0x2e5d6f,_0x82a9('0xf'));logger[_0x82a9('0x10')](_0x82a9('0x11'),_0x2e5d6f,_0x82a9('0xf'),JSON[_0x82a9('0x12')](_0x1b0f2d));if(_0x1b0f2d[_0x82a9('0x13')]){if(_0x1b0f2d[_0x82a9('0x13')][_0x82a9('0x14')]===0x1f4){logger[_0x82a9('0x13')](_0x82a9('0xe'),_0x2e5d6f,_0x1b0f2d[_0x82a9('0x13')][_0x82a9('0x15')]);return _0x229f0d(_0x1b0f2d[_0x82a9('0x13')]['message']);}logger[_0x82a9('0x13')](_0x82a9('0xe'),_0x2e5d6f,_0x1b0f2d[_0x82a9('0x13')][_0x82a9('0x15')]);return _0x13bb9a(_0x1b0f2d[_0x82a9('0x13')][_0x82a9('0x15')]);}else{logger[_0x82a9('0x16')](_0x82a9('0xe'),_0x2e5d6f,_0x82a9('0xf'));_0x13bb9a(_0x1b0f2d['result'][_0x82a9('0x15')]);}})[_0x82a9('0x17')](function(_0x13dc7c){logger[_0x82a9('0x13')]('ZendeskField,\x20%s,\x20%s',_0x2e5d6f,_0x13dc7c);_0x229f0d(_0x13dc7c);});});}
\ No newline at end of file