Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / contactItemType / contactItemType.rpc.js
index fdb34a6..0d36fb2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xab06=['message','result','catch','util','bluebird','randomstring','ioredis','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','then','info','ContactItemType,\x20%s,\x20%s','request\x20sent','debug','ContactItemType,\x20%s,\x20%s,\x20%s','stringify','error','code'];(function(_0x4f2b44,_0xb210ed){var _0x3d64fe=function(_0x382d61){while(--_0x382d61){_0x4f2b44['push'](_0x4f2b44['shift']());}};_0x3d64fe(++_0xb210ed);}(_0xab06,0x1e7));var _0x6ab0=function(_0x4ff09b,_0x53f67d){_0x4ff09b=_0x4ff09b-0x0;var _0x3f5c2e=_0xab06[_0x4ff09b];return _0x3f5c2e;};'use strict';var _=require('lodash');var util=require(_0x6ab0('0x0'));var moment=require('moment');var BPromise=require(_0x6ab0('0x1'));var rs=require(_0x6ab0('0x2'));var fs=require('fs');var Redis=require(_0x6ab0('0x3'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0x6ab0('0x4'))(_0x6ab0('0x5'));var config=require(_0x6ab0('0x6'));var jayson=require(_0x6ab0('0x7'));var client=jayson[_0x6ab0('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0xddfd86,_0x2cd8a2,_0x966c46){return new BPromise(function(_0x1f9514,_0x1fc9d8){return client[_0x6ab0('0x9')](_0xddfd86,_0x966c46)[_0x6ab0('0xa')](function(_0x4ec2db){logger[_0x6ab0('0xb')](_0x6ab0('0xc'),_0x2cd8a2,_0x6ab0('0xd'));logger[_0x6ab0('0xe')](_0x6ab0('0xf'),_0x2cd8a2,'request\x20sent',JSON[_0x6ab0('0x10')](_0x4ec2db));if(_0x4ec2db['error']){if(_0x4ec2db[_0x6ab0('0x11')][_0x6ab0('0x12')]===0x1f4){logger[_0x6ab0('0x11')](_0x6ab0('0xc'),_0x2cd8a2,_0x4ec2db['error'][_0x6ab0('0x13')]);return _0x1fc9d8(_0x4ec2db[_0x6ab0('0x11')][_0x6ab0('0x13')]);}logger[_0x6ab0('0x11')](_0x6ab0('0xc'),_0x2cd8a2,_0x4ec2db['error'][_0x6ab0('0x13')]);return _0x1f9514(_0x4ec2db[_0x6ab0('0x11')][_0x6ab0('0x13')]);}else{logger[_0x6ab0('0xb')](_0x6ab0('0xc'),_0x2cd8a2,'request\x20sent');_0x1f9514(_0x4ec2db[_0x6ab0('0x14')][_0x6ab0('0x13')]);}})[_0x6ab0('0x15')](function(_0x43edb5){logger[_0x6ab0('0x11')](_0x6ab0('0xc'),_0x2cd8a2,_0x43edb5);_0x1fc9d8(_0x43edb5);});});}
\ No newline at end of file
+var _0x620f=['../../mysqldb','rpc','jayson/promise','client','http','request','then','info','ContactItemType,\x20%s,\x20%s','request\x20sent','ContactItemType,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','lodash','util','moment','randomstring','ioredis'];(function(_0x2be3a1,_0x133950){var _0x149877=function(_0x4c92cc){while(--_0x4c92cc){_0x2be3a1['push'](_0x2be3a1['shift']());}};_0x149877(++_0x133950);}(_0x620f,0x160));var _0xf620=function(_0x167cc1,_0x56ef5a){_0x167cc1=_0x167cc1-0x0;var _0x10bc4b=_0x620f[_0x167cc1];return _0x10bc4b;};'use strict';var _=require(_0xf620('0x0'));var util=require(_0xf620('0x1'));var moment=require(_0xf620('0x2'));var BPromise=require('bluebird');var rs=require(_0xf620('0x3'));var fs=require('fs');var Redis=require(_0xf620('0x4'));var db=require(_0xf620('0x5'))['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')(_0xf620('0x6'));var config=require('../../config/environment');var jayson=require(_0xf620('0x7'));var client=jayson[_0xf620('0x8')][_0xf620('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x288521,_0x1c308b,_0x17c0c1){return new BPromise(function(_0x98379c,_0x54231d){return client[_0xf620('0xa')](_0x288521,_0x17c0c1)[_0xf620('0xb')](function(_0x5924d7){logger[_0xf620('0xc')](_0xf620('0xd'),_0x1c308b,_0xf620('0xe'));logger['debug'](_0xf620('0xf'),_0x1c308b,_0xf620('0xe'),JSON[_0xf620('0x10')](_0x5924d7));if(_0x5924d7[_0xf620('0x11')]){if(_0x5924d7[_0xf620('0x11')][_0xf620('0x12')]===0x1f4){logger[_0xf620('0x11')](_0xf620('0xd'),_0x1c308b,_0x5924d7[_0xf620('0x11')][_0xf620('0x13')]);return _0x54231d(_0x5924d7[_0xf620('0x11')][_0xf620('0x13')]);}logger[_0xf620('0x11')](_0xf620('0xd'),_0x1c308b,_0x5924d7[_0xf620('0x11')]['message']);return _0x98379c(_0x5924d7[_0xf620('0x11')][_0xf620('0x13')]);}else{logger[_0xf620('0xc')](_0xf620('0xd'),_0x1c308b,'request\x20sent');_0x98379c(_0x5924d7[_0xf620('0x14')]['message']);}})['catch'](function(_0x18f05f){logger[_0xf620('0x11')](_0xf620('0xd'),_0x1c308b,_0x18f05f);_0x54231d(_0x18f05f);});});}
\ No newline at end of file