Built motion from commit 06eb8eb0.|2.6.31
[motion2.git] / server / api / voiceMailMessage / voiceMailMessage.rpc.js
index f0ea43e..5ea9ea5 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x392f=['moment','bluebird','randomstring','../../config/utils','rpc','../../config/environment','http','request','then','info','debug','VoiceMailMessage,\x20%s,\x20%s,\x20%s','request\x20sent','error','code','VoiceMailMessage,\x20%s,\x20%s','message','result','catch','lodash','util'];(function(_0x398294,_0x5ceb9d){var _0x2a872d=function(_0x390883){while(--_0x390883){_0x398294['push'](_0x398294['shift']());}};_0x2a872d(++_0x5ceb9d);}(_0x392f,0x163));var _0xf392=function(_0x3f758f,_0x302451){_0x3f758f=_0x3f758f-0x0;var _0x26e4ae=_0x392f[_0x3f758f];return _0x26e4ae;};'use strict';var _=require(_0xf392('0x0'));var util=require(_0xf392('0x1'));var moment=require(_0xf392('0x2'));var BPromise=require(_0xf392('0x3'));var rs=require(_0xf392('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require(_0xf392('0x5'));var logger=require('../../config/logger')(_0xf392('0x6'));var config=require(_0xf392('0x7'));var jayson=require('jayson/promise');var client=jayson['client'][_0xf392('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x21e3dc,_0x599fd8,_0x211737){return new BPromise(function(_0x394ab6,_0x4b2933){return client[_0xf392('0x9')](_0x21e3dc,_0x211737)[_0xf392('0xa')](function(_0x2360a6){logger[_0xf392('0xb')]('VoiceMailMessage,\x20%s,\x20%s',_0x599fd8,'request\x20sent');logger[_0xf392('0xc')](_0xf392('0xd'),_0x599fd8,_0xf392('0xe'),JSON['stringify'](_0x2360a6));if(_0x2360a6[_0xf392('0xf')]){if(_0x2360a6['error'][_0xf392('0x10')]===0x1f4){logger['error'](_0xf392('0x11'),_0x599fd8,_0x2360a6[_0xf392('0xf')]['message']);return _0x4b2933(_0x2360a6[_0xf392('0xf')][_0xf392('0x12')]);}logger[_0xf392('0xf')](_0xf392('0x11'),_0x599fd8,_0x2360a6['error']['message']);return _0x394ab6(_0x2360a6[_0xf392('0xf')][_0xf392('0x12')]);}else{logger[_0xf392('0xb')](_0xf392('0x11'),_0x599fd8,_0xf392('0xe'));_0x394ab6(_0x2360a6[_0xf392('0x13')][_0xf392('0x12')]);}})[_0xf392('0x14')](function(_0x42a61e){logger['error']('VoiceMailMessage,\x20%s,\x20%s',_0x599fd8,_0x42a61e);_0x4b2933(_0x42a61e);});});}
\ No newline at end of file
+var _0x3592=['request\x20sent','debug','VoiceMailMessage,\x20%s,\x20%s,\x20%s','stringify','error','code','message','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','then','info','VoiceMailMessage,\x20%s,\x20%s'];(function(_0x560e4c,_0x29fbf3){var _0x90c330=function(_0x3b08b7){while(--_0x3b08b7){_0x560e4c['push'](_0x560e4c['shift']());}};_0x90c330(++_0x29fbf3);}(_0x3592,0x11c));var _0x2359=function(_0x259abe,_0x15721c){_0x259abe=_0x259abe-0x0;var _0x10d51c=_0x3592[_0x259abe];return _0x10d51c;};'use strict';var _=require(_0x2359('0x0'));var util=require(_0x2359('0x1'));var moment=require(_0x2359('0x2'));var BPromise=require(_0x2359('0x3'));var rs=require(_0x2359('0x4'));var fs=require('fs');var Redis=require(_0x2359('0x5'));var db=require('../../mysqldb')['db'];var utils=require(_0x2359('0x6'));var logger=require(_0x2359('0x7'))(_0x2359('0x8'));var config=require(_0x2359('0x9'));var jayson=require(_0x2359('0xa'));var client=jayson[_0x2359('0xb')]['http']({'port':0x232a});function respondWithRpcPromise(_0x43929e,_0xff13d5,_0x48afb4){return new BPromise(function(_0x24961c,_0x2b5b31){return client['request'](_0x43929e,_0x48afb4)[_0x2359('0xc')](function(_0xf527be){logger[_0x2359('0xd')](_0x2359('0xe'),_0xff13d5,_0x2359('0xf'));logger[_0x2359('0x10')](_0x2359('0x11'),_0xff13d5,_0x2359('0xf'),JSON[_0x2359('0x12')](_0xf527be));if(_0xf527be['error']){if(_0xf527be[_0x2359('0x13')][_0x2359('0x14')]===0x1f4){logger[_0x2359('0x13')](_0x2359('0xe'),_0xff13d5,_0xf527be[_0x2359('0x13')][_0x2359('0x15')]);return _0x2b5b31(_0xf527be[_0x2359('0x13')][_0x2359('0x15')]);}logger['error'](_0x2359('0xe'),_0xff13d5,_0xf527be[_0x2359('0x13')][_0x2359('0x15')]);return _0x24961c(_0xf527be[_0x2359('0x13')]['message']);}else{logger['info'](_0x2359('0xe'),_0xff13d5,_0x2359('0xf'));_0x24961c(_0xf527be['result']['message']);}})[_0x2359('0x16')](function(_0x2a9a36){logger[_0x2359('0x13')]('VoiceMailMessage,\x20%s,\x20%s',_0xff13d5,_0x2a9a36);_0x2b5b31(_0x2a9a36);});});}
\ No newline at end of file