Built motion from commit c116dc8b.|2.6.30
[motion2.git] / server / api / contactItemType / contactItemType.rpc.js
index 0d36fb2..5ff4179 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-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
+var _0xe04b=['../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','request\x20sent','debug','ContactItemType,\x20%s,\x20%s,\x20%s','stringify','error','code','ContactItemType,\x20%s,\x20%s','message','result','catch','lodash','util','bluebird','../../mysqldb'];(function(_0x576117,_0x4cd18d){var _0x2f00e6=function(_0x529332){while(--_0x529332){_0x576117['push'](_0x576117['shift']());}};_0x2f00e6(++_0x4cd18d);}(_0xe04b,0x1c8));var _0xbe04=function(_0x1a1154,_0x336ce0){_0x1a1154=_0x1a1154-0x0;var _0x38b938=_0xe04b[_0x1a1154];return _0x38b938;};'use strict';var _=require(_0xbe04('0x0'));var util=require(_0xbe04('0x1'));var moment=require('moment');var BPromise=require(_0xbe04('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0xbe04('0x3'))['db'];var utils=require('../../config/utils');var logger=require(_0xbe04('0x4'))(_0xbe04('0x5'));var config=require(_0xbe04('0x6'));var jayson=require(_0xbe04('0x7'));var client=jayson[_0xbe04('0x8')][_0xbe04('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x33a46b,_0xfdc16a,_0x58e05c){return new BPromise(function(_0x390588,_0x1b97ae){return client[_0xbe04('0xa')](_0x33a46b,_0x58e05c)[_0xbe04('0xb')](function(_0x2c7a06){logger[_0xbe04('0xc')]('ContactItemType,\x20%s,\x20%s',_0xfdc16a,_0xbe04('0xd'));logger[_0xbe04('0xe')](_0xbe04('0xf'),_0xfdc16a,_0xbe04('0xd'),JSON[_0xbe04('0x10')](_0x2c7a06));if(_0x2c7a06[_0xbe04('0x11')]){if(_0x2c7a06[_0xbe04('0x11')][_0xbe04('0x12')]===0x1f4){logger[_0xbe04('0x11')](_0xbe04('0x13'),_0xfdc16a,_0x2c7a06[_0xbe04('0x11')]['message']);return _0x1b97ae(_0x2c7a06[_0xbe04('0x11')][_0xbe04('0x14')]);}logger['error']('ContactItemType,\x20%s,\x20%s',_0xfdc16a,_0x2c7a06[_0xbe04('0x11')][_0xbe04('0x14')]);return _0x390588(_0x2c7a06['error'][_0xbe04('0x14')]);}else{logger[_0xbe04('0xc')](_0xbe04('0x13'),_0xfdc16a,_0xbe04('0xd'));_0x390588(_0x2c7a06[_0xbe04('0x15')][_0xbe04('0x14')]);}})[_0xbe04('0x16')](function(_0x5e2a29){logger['error'](_0xbe04('0x13'),_0xfdc16a,_0x5e2a29);_0x1b97ae(_0x5e2a29);});});}
\ No newline at end of file