X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FuserProfileSection%2FuserProfileSection.rpc.js;h=535dd5d5553a4d15d7d504bbb39d42e4309175eb;hb=7e2a86485d5b091066011cf58fcba785923a5ac5;hp=7b848d924c552f1745ef9ca6d6a67e167fff2251;hpb=de6f27d8824ffb29cbf937050a12378469af9a53;p=motion2.git diff --git a/server/api/userProfileSection/userProfileSection.rpc.js b/server/api/userProfileSection/userProfileSection.rpc.js index 7b848d9..535dd5d 100644 --- a/server/api/userProfileSection/userProfileSection.rpc.js +++ b/server/api/userProfileSection/userProfileSection.rpc.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0x4e13=['then','info','UserProfileSection,\x20%s,\x20%s','request\x20sent','UserProfileSection,\x20%s,\x20%s,\x20%s','stringify','error','code','message','catch','lodash','moment','bluebird','ioredis','../../mysqldb','rpc','../../config/environment','jayson/promise','client','request'];(function(_0x296980,_0x5b9544){var _0x5a64ef=function(_0x1d0b2c){while(--_0x1d0b2c){_0x296980['push'](_0x296980['shift']());}};_0x5a64ef(++_0x5b9544);}(_0x4e13,0xe6));var _0x34e1=function(_0x3a607e,_0x54d530){_0x3a607e=_0x3a607e-0x0;var _0x37b106=_0x4e13[_0x3a607e];return _0x37b106;};'use strict';var _=require(_0x34e1('0x0'));var util=require('util');var moment=require(_0x34e1('0x1'));var BPromise=require(_0x34e1('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x34e1('0x3'));var db=require(_0x34e1('0x4'))['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')(_0x34e1('0x5'));var config=require(_0x34e1('0x6'));var jayson=require(_0x34e1('0x7'));var client=jayson[_0x34e1('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x3695bf,_0x497910,_0x16d61e){return new BPromise(function(_0x3d7f28,_0x5b5f66){return client[_0x34e1('0x9')](_0x3695bf,_0x16d61e)[_0x34e1('0xa')](function(_0x502723){logger[_0x34e1('0xb')](_0x34e1('0xc'),_0x497910,_0x34e1('0xd'));logger['debug'](_0x34e1('0xe'),_0x497910,_0x34e1('0xd'),JSON[_0x34e1('0xf')](_0x502723));if(_0x502723[_0x34e1('0x10')]){if(_0x502723[_0x34e1('0x10')][_0x34e1('0x11')]===0x1f4){logger[_0x34e1('0x10')](_0x34e1('0xc'),_0x497910,_0x502723[_0x34e1('0x10')][_0x34e1('0x12')]);return _0x5b5f66(_0x502723[_0x34e1('0x10')][_0x34e1('0x12')]);}logger[_0x34e1('0x10')]('UserProfileSection,\x20%s,\x20%s',_0x497910,_0x502723[_0x34e1('0x10')]['message']);return _0x3d7f28(_0x502723[_0x34e1('0x10')]['message']);}else{logger['info'](_0x34e1('0xc'),_0x497910,'request\x20sent');_0x3d7f28(_0x502723['result'][_0x34e1('0x12')]);}})[_0x34e1('0x13')](function(_0x52406c){logger[_0x34e1('0x10')](_0x34e1('0xc'),_0x497910,_0x52406c);_0x5b5f66(_0x52406c);});});} \ No newline at end of file +var _0xb3bc=['request\x20sent','error','code','UserProfileSection,\x20%s,\x20%s','message','catch','lodash','moment','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','client','request','then','info'];(function(_0x5f3de3,_0x40f0f5){var _0x287e0d=function(_0x3189dc){while(--_0x3189dc){_0x5f3de3['push'](_0x5f3de3['shift']());}};_0x287e0d(++_0x40f0f5);}(_0xb3bc,0xd7));var _0xcb3b=function(_0x340c24,_0x4ff751){_0x340c24=_0x340c24-0x0;var _0xd1f1e9=_0xb3bc[_0x340c24];return _0xd1f1e9;};'use strict';var _=require(_0xcb3b('0x0'));var util=require('util');var moment=require(_0xcb3b('0x1'));var BPromise=require(_0xcb3b('0x2'));var rs=require(_0xcb3b('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xcb3b('0x4'))['db'];var utils=require(_0xcb3b('0x5'));var logger=require(_0xcb3b('0x6'))(_0xcb3b('0x7'));var config=require(_0xcb3b('0x8'));var jayson=require('jayson/promise');var client=jayson[_0xcb3b('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x3835df,_0x58f9a7,_0x2634ac){return new BPromise(function(_0x1fb156,_0x27a41b){return client[_0xcb3b('0xa')](_0x3835df,_0x2634ac)[_0xcb3b('0xb')](function(_0x85bc9f){logger[_0xcb3b('0xc')]('UserProfileSection,\x20%s,\x20%s',_0x58f9a7,_0xcb3b('0xd'));logger['debug']('UserProfileSection,\x20%s,\x20%s,\x20%s',_0x58f9a7,_0xcb3b('0xd'),JSON['stringify'](_0x85bc9f));if(_0x85bc9f[_0xcb3b('0xe')]){if(_0x85bc9f[_0xcb3b('0xe')][_0xcb3b('0xf')]===0x1f4){logger[_0xcb3b('0xe')](_0xcb3b('0x10'),_0x58f9a7,_0x85bc9f[_0xcb3b('0xe')]['message']);return _0x27a41b(_0x85bc9f[_0xcb3b('0xe')][_0xcb3b('0x11')]);}logger[_0xcb3b('0xe')](_0xcb3b('0x10'),_0x58f9a7,_0x85bc9f['error'][_0xcb3b('0x11')]);return _0x1fb156(_0x85bc9f['error'][_0xcb3b('0x11')]);}else{logger[_0xcb3b('0xc')]('UserProfileSection,\x20%s,\x20%s',_0x58f9a7,'request\x20sent');_0x1fb156(_0x85bc9f['result'][_0xcb3b('0x11')]);}})[_0xcb3b('0x12')](function(_0x1b1171){logger['error']('UserProfileSection,\x20%s,\x20%s',_0x58f9a7,_0x1b1171);_0x27a41b(_0x1b1171);});});} \ No newline at end of file