Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / contactItemType / contactItemType.rpc.js
index 147333d..8f13da7 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x49f5=['request','then','info','ContactItemType,\x20%s,\x20%s','request\x20sent','debug','ContactItemType,\x20%s,\x20%s,\x20%s','stringify','error','message','result','catch','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client','http'];(function(_0x616290,_0x280b7f){var _0x453879=function(_0x27bda7){while(--_0x27bda7){_0x616290['push'](_0x616290['shift']());}};_0x453879(++_0x280b7f);}(_0x49f5,0x18c));var _0x549f=function(_0x3d3345,_0x16e522){_0x3d3345=_0x3d3345-0x0;var _0x2684b2=_0x49f5[_0x3d3345];return _0x2684b2;};'use strict';var _=require(_0x549f('0x0'));var util=require(_0x549f('0x1'));var moment=require('moment');var BPromise=require(_0x549f('0x2'));var rs=require(_0x549f('0x3'));var fs=require('fs');var Redis=require(_0x549f('0x4'));var db=require(_0x549f('0x5'))['db'];var utils=require(_0x549f('0x6'));var logger=require('../../config/logger')(_0x549f('0x7'));var config=require(_0x549f('0x8'));var jayson=require(_0x549f('0x9'));var client=jayson[_0x549f('0xa')][_0x549f('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x2480a3,_0x586cd7,_0x4e5c3e){return new BPromise(function(_0x5b6f0e,_0x6e16e1){return client[_0x549f('0xc')](_0x2480a3,_0x4e5c3e)[_0x549f('0xd')](function(_0x341726){logger[_0x549f('0xe')](_0x549f('0xf'),_0x586cd7,_0x549f('0x10'));logger[_0x549f('0x11')](_0x549f('0x12'),_0x586cd7,_0x549f('0x10'),JSON[_0x549f('0x13')](_0x341726));if(_0x341726[_0x549f('0x14')]){if(_0x341726[_0x549f('0x14')]['code']===0x1f4){logger['error']('ContactItemType,\x20%s,\x20%s',_0x586cd7,_0x341726[_0x549f('0x14')][_0x549f('0x15')]);return _0x6e16e1(_0x341726['error'][_0x549f('0x15')]);}logger[_0x549f('0x14')](_0x549f('0xf'),_0x586cd7,_0x341726[_0x549f('0x14')]['message']);return _0x5b6f0e(_0x341726[_0x549f('0x14')][_0x549f('0x15')]);}else{logger[_0x549f('0xe')](_0x549f('0xf'),_0x586cd7,_0x549f('0x10'));_0x5b6f0e(_0x341726[_0x549f('0x16')][_0x549f('0x15')]);}})[_0x549f('0x17')](function(_0x48ece9){logger[_0x549f('0x14')](_0x549f('0xf'),_0x586cd7,_0x48ece9);_0x6e16e1(_0x48ece9);});});}
\ No newline at end of file
+var _0xa63f=['lodash','util','moment','bluebird','randomstring','../../mysqldb','../../config/logger','rpc','../../config/environment','client','http','request','info','request\x20sent','debug','stringify','error','code','message','ContactItemType,\x20%s,\x20%s','result','catch'];(function(_0x182306,_0x1c38d5){var _0x4a0759=function(_0x385008){while(--_0x385008){_0x182306['push'](_0x182306['shift']());}};_0x4a0759(++_0x1c38d5);}(_0xa63f,0x1b8));var _0xfa63=function(_0x6465b0,_0x45653a){_0x6465b0=_0x6465b0-0x0;var _0x4884fe=_0xa63f[_0x6465b0];return _0x4884fe;};'use strict';var _=require(_0xfa63('0x0'));var util=require(_0xfa63('0x1'));var moment=require(_0xfa63('0x2'));var BPromise=require(_0xfa63('0x3'));var rs=require(_0xfa63('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xfa63('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0xfa63('0x6'))(_0xfa63('0x7'));var config=require(_0xfa63('0x8'));var jayson=require('jayson/promise');var client=jayson[_0xfa63('0x9')][_0xfa63('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x2ee1b4,_0xd4f74c,_0x456b6a){return new BPromise(function(_0x3e9501,_0x1bd543){return client[_0xfa63('0xb')](_0x2ee1b4,_0x456b6a)['then'](function(_0x1754cf){logger[_0xfa63('0xc')]('ContactItemType,\x20%s,\x20%s',_0xd4f74c,_0xfa63('0xd'));logger[_0xfa63('0xe')]('ContactItemType,\x20%s,\x20%s,\x20%s',_0xd4f74c,_0xfa63('0xd'),JSON[_0xfa63('0xf')](_0x1754cf));if(_0x1754cf[_0xfa63('0x10')]){if(_0x1754cf[_0xfa63('0x10')][_0xfa63('0x11')]===0x1f4){logger[_0xfa63('0x10')]('ContactItemType,\x20%s,\x20%s',_0xd4f74c,_0x1754cf[_0xfa63('0x10')][_0xfa63('0x12')]);return _0x1bd543(_0x1754cf[_0xfa63('0x10')][_0xfa63('0x12')]);}logger['error']('ContactItemType,\x20%s,\x20%s',_0xd4f74c,_0x1754cf[_0xfa63('0x10')][_0xfa63('0x12')]);return _0x3e9501(_0x1754cf[_0xfa63('0x10')]['message']);}else{logger['info'](_0xfa63('0x13'),_0xd4f74c,_0xfa63('0xd'));_0x3e9501(_0x1754cf[_0xfa63('0x14')]['message']);}})[_0xfa63('0x15')](function(_0x2241c0){logger[_0xfa63('0x10')]('ContactItemType,\x20%s,\x20%s',_0xd4f74c,_0x2241c0);_0x1bd543(_0x2241c0);});});}
\ No newline at end of file