Built motion from commit c738b9ac.|2.6.25
[motion2.git] / server / api / contactItemType / contactItemType.rpc.js
index 4484286..8672820 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9af1=['moment','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','then','info','ContactItemType,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','result','lodash'];(function(_0x4f9b18,_0x2cb5ca){var _0x29f20c=function(_0x268b3d){while(--_0x268b3d){_0x4f9b18['push'](_0x4f9b18['shift']());}};_0x29f20c(++_0x2cb5ca);}(_0x9af1,0x149));var _0x19af=function(_0x38e177,_0x59ec9f){_0x38e177=_0x38e177-0x0;var _0x1faf15=_0x9af1[_0x38e177];return _0x1faf15;};'use strict';var _=require(_0x19af('0x0'));var util=require('util');var moment=require(_0x19af('0x1'));var BPromise=require(_0x19af('0x2'));var rs=require(_0x19af('0x3'));var fs=require('fs');var Redis=require(_0x19af('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0x19af('0x5'));var logger=require(_0x19af('0x6'))(_0x19af('0x7'));var config=require(_0x19af('0x8'));var jayson=require(_0x19af('0x9'));var client=jayson[_0x19af('0xa')]['http']({'port':0x232a});function respondWithRpcPromise(_0x5bd9ae,_0x2ae9f2,_0x386b1b){return new BPromise(function(_0x13bb7c,_0x19624f){return client[_0x19af('0xb')](_0x5bd9ae,_0x386b1b)[_0x19af('0xc')](function(_0x3234ac){logger[_0x19af('0xd')](_0x19af('0xe'),_0x2ae9f2,_0x19af('0xf'));logger[_0x19af('0x10')]('ContactItemType,\x20%s,\x20%s,\x20%s',_0x2ae9f2,'request\x20sent',JSON[_0x19af('0x11')](_0x3234ac));if(_0x3234ac['error']){if(_0x3234ac[_0x19af('0x12')][_0x19af('0x13')]===0x1f4){logger[_0x19af('0x12')](_0x19af('0xe'),_0x2ae9f2,_0x3234ac['error'][_0x19af('0x14')]);return _0x19624f(_0x3234ac[_0x19af('0x12')]['message']);}logger['error']('ContactItemType,\x20%s,\x20%s',_0x2ae9f2,_0x3234ac[_0x19af('0x12')][_0x19af('0x14')]);return _0x13bb7c(_0x3234ac['error'][_0x19af('0x14')]);}else{logger[_0x19af('0xd')]('ContactItemType,\x20%s,\x20%s',_0x2ae9f2,_0x19af('0xf'));_0x13bb7c(_0x3234ac[_0x19af('0x15')]['message']);}})['catch'](function(_0x3ce3ac){logger['error'](_0x19af('0xe'),_0x2ae9f2,_0x3ce3ac);_0x19624f(_0x3ce3ac);});});}
\ No newline at end of file
+var _0x0dac=['result','lodash','util','moment','bluebird','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','ContactItemType,\x20%s,\x20%s','debug','ContactItemType,\x20%s,\x20%s,\x20%s','stringify','error','code','message','request\x20sent'];(function(_0x536d2b,_0x574095){var _0x21235f=function(_0x15b38f){while(--_0x15b38f){_0x536d2b['push'](_0x536d2b['shift']());}};_0x21235f(++_0x574095);}(_0x0dac,0x151));var _0xc0da=function(_0x1e3296,_0x595b52){_0x1e3296=_0x1e3296-0x0;var _0x2b8261=_0x0dac[_0x1e3296];return _0x2b8261;};'use strict';var _=require(_0xc0da('0x0'));var util=require(_0xc0da('0x1'));var moment=require(_0xc0da('0x2'));var BPromise=require(_0xc0da('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0xc0da('0x4'))['db'];var utils=require(_0xc0da('0x5'));var logger=require(_0xc0da('0x6'))(_0xc0da('0x7'));var config=require(_0xc0da('0x8'));var jayson=require(_0xc0da('0x9'));var client=jayson[_0xc0da('0xa')][_0xc0da('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x4b1845,_0x3cb192,_0x1ee5e9){return new BPromise(function(_0x281b19,_0x46511c){return client[_0xc0da('0xc')](_0x4b1845,_0x1ee5e9)[_0xc0da('0xd')](function(_0x47eb76){logger[_0xc0da('0xe')](_0xc0da('0xf'),_0x3cb192,'request\x20sent');logger[_0xc0da('0x10')](_0xc0da('0x11'),_0x3cb192,'request\x20sent',JSON[_0xc0da('0x12')](_0x47eb76));if(_0x47eb76[_0xc0da('0x13')]){if(_0x47eb76[_0xc0da('0x13')][_0xc0da('0x14')]===0x1f4){logger[_0xc0da('0x13')](_0xc0da('0xf'),_0x3cb192,_0x47eb76[_0xc0da('0x13')][_0xc0da('0x15')]);return _0x46511c(_0x47eb76['error'][_0xc0da('0x15')]);}logger['error']('ContactItemType,\x20%s,\x20%s',_0x3cb192,_0x47eb76[_0xc0da('0x13')]['message']);return _0x281b19(_0x47eb76[_0xc0da('0x13')]['message']);}else{logger[_0xc0da('0xe')]('ContactItemType,\x20%s,\x20%s',_0x3cb192,_0xc0da('0x16'));_0x281b19(_0x47eb76[_0xc0da('0x17')]['message']);}})['catch'](function(_0x4db6a7){logger[_0xc0da('0x13')](_0xc0da('0xf'),_0x3cb192,_0x4db6a7);_0x46511c(_0x4db6a7);});});}
\ No newline at end of file