Built motion from commit efa66e19.|2.6.22
[motion2.git] / server / api / intFreshdeskField / intFreshdeskField.rpc.js
index e96092c..c6049bd 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xcfcc=['client','http','request','then','info','FreshdeskField,\x20%s,\x20%s','request\x20sent','debug','FreshdeskField,\x20%s,\x20%s,\x20%s','stringify','error','code','message','catch','lodash','util','moment','bluebird','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise'];(function(_0x52694f,_0x2f0553){var _0x273eaa=function(_0xb41199){while(--_0xb41199){_0x52694f['push'](_0x52694f['shift']());}};_0x273eaa(++_0x2f0553);}(_0xcfcc,0x1a6));var _0xccfc=function(_0x4e55ef,_0x5cdc44){_0x4e55ef=_0x4e55ef-0x0;var _0x11c207=_0xcfcc[_0x4e55ef];return _0x11c207;};'use strict';var _=require(_0xccfc('0x0'));var util=require(_0xccfc('0x1'));var moment=require(_0xccfc('0x2'));var BPromise=require(_0xccfc('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0xccfc('0x4'))['db'];var utils=require(_0xccfc('0x5'));var logger=require(_0xccfc('0x6'))(_0xccfc('0x7'));var config=require(_0xccfc('0x8'));var jayson=require(_0xccfc('0x9'));var client=jayson[_0xccfc('0xa')][_0xccfc('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x53bcfc,_0x1dcbce,_0x518842){return new BPromise(function(_0x3c21aa,_0x305283){return client[_0xccfc('0xc')](_0x53bcfc,_0x518842)[_0xccfc('0xd')](function(_0x389d61){logger[_0xccfc('0xe')](_0xccfc('0xf'),_0x1dcbce,_0xccfc('0x10'));logger[_0xccfc('0x11')](_0xccfc('0x12'),_0x1dcbce,_0xccfc('0x10'),JSON[_0xccfc('0x13')](_0x389d61));if(_0x389d61[_0xccfc('0x14')]){if(_0x389d61[_0xccfc('0x14')][_0xccfc('0x15')]===0x1f4){logger[_0xccfc('0x14')](_0xccfc('0xf'),_0x1dcbce,_0x389d61[_0xccfc('0x14')][_0xccfc('0x16')]);return _0x305283(_0x389d61[_0xccfc('0x14')]['message']);}logger[_0xccfc('0x14')](_0xccfc('0xf'),_0x1dcbce,_0x389d61[_0xccfc('0x14')][_0xccfc('0x16')]);return _0x3c21aa(_0x389d61[_0xccfc('0x14')][_0xccfc('0x16')]);}else{logger[_0xccfc('0xe')](_0xccfc('0xf'),_0x1dcbce,_0xccfc('0x10'));_0x3c21aa(_0x389d61['result'][_0xccfc('0x16')]);}})[_0xccfc('0x17')](function(_0x97b476){logger['error'](_0xccfc('0xf'),_0x1dcbce,_0x97b476);_0x305283(_0x97b476);});});}
\ No newline at end of file
+var _0x4bc6=['randomstring','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','request\x20sent','FreshdeskField,\x20%s,\x20%s,\x20%s','stringify','error','FreshdeskField,\x20%s,\x20%s','message','result','catch','lodash','moment','bluebird'];(function(_0x48fa41,_0x511025){var _0x1eaa99=function(_0x549e85){while(--_0x549e85){_0x48fa41['push'](_0x48fa41['shift']());}};_0x1eaa99(++_0x511025);}(_0x4bc6,0xe3));var _0x64bc=function(_0x1deb03,_0xd05ad8){_0x1deb03=_0x1deb03-0x0;var _0x189fe7=_0x4bc6[_0x1deb03];return _0x189fe7;};'use strict';var _=require(_0x64bc('0x0'));var util=require('util');var moment=require(_0x64bc('0x1'));var BPromise=require(_0x64bc('0x2'));var rs=require(_0x64bc('0x3'));var fs=require('fs');var Redis=require(_0x64bc('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0x64bc('0x5'));var logger=require(_0x64bc('0x6'))(_0x64bc('0x7'));var config=require(_0x64bc('0x8'));var jayson=require(_0x64bc('0x9'));var client=jayson[_0x64bc('0xa')][_0x64bc('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x5115f7,_0x2621d9,_0xbe1233){return new BPromise(function(_0x55ad22,_0x4687a6){return client[_0x64bc('0xc')](_0x5115f7,_0xbe1233)[_0x64bc('0xd')](function(_0x314d84){logger[_0x64bc('0xe')]('FreshdeskField,\x20%s,\x20%s',_0x2621d9,_0x64bc('0xf'));logger['debug'](_0x64bc('0x10'),_0x2621d9,_0x64bc('0xf'),JSON[_0x64bc('0x11')](_0x314d84));if(_0x314d84[_0x64bc('0x12')]){if(_0x314d84[_0x64bc('0x12')]['code']===0x1f4){logger[_0x64bc('0x12')](_0x64bc('0x13'),_0x2621d9,_0x314d84[_0x64bc('0x12')][_0x64bc('0x14')]);return _0x4687a6(_0x314d84[_0x64bc('0x12')][_0x64bc('0x14')]);}logger['error'](_0x64bc('0x13'),_0x2621d9,_0x314d84[_0x64bc('0x12')][_0x64bc('0x14')]);return _0x55ad22(_0x314d84['error'][_0x64bc('0x14')]);}else{logger[_0x64bc('0xe')](_0x64bc('0x13'),_0x2621d9,'request\x20sent');_0x55ad22(_0x314d84[_0x64bc('0x15')][_0x64bc('0x14')]);}})[_0x64bc('0x16')](function(_0x424851){logger[_0x64bc('0x12')](_0x64bc('0x13'),_0x2621d9,_0x424851);_0x4687a6(_0x424851);});});}
\ No newline at end of file