Built motion from commit 092f8824.|2.5.49
[motion2.git] / server / api / voiceMailMessage / voiceMailMessage.rpc.js
index 5327355..f8e7d3c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6177=['../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','VoiceMailMessage,\x20%s,\x20%s','debug','VoiceMailMessage,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','message','info','lodash','util','bluebird'];(function(_0x58142e,_0x13aaf6){var _0x39ff75=function(_0x2cb579){while(--_0x2cb579){_0x58142e['push'](_0x58142e['shift']());}};_0x39ff75(++_0x13aaf6);}(_0x6177,0x7b));var _0x7617=function(_0x126558,_0x143c9a){_0x126558=_0x126558-0x0;var _0x1f6d14=_0x6177[_0x126558];return _0x1f6d14;};'use strict';var _=require(_0x7617('0x0'));var util=require(_0x7617('0x1'));var moment=require('moment');var BPromise=require(_0x7617('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0x7617('0x3'))['db'];var utils=require(_0x7617('0x4'));var logger=require(_0x7617('0x5'))(_0x7617('0x6'));var config=require(_0x7617('0x7'));var jayson=require(_0x7617('0x8'));var client=jayson[_0x7617('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x39cb3c,_0x58d9c4,_0x338dfe){return new BPromise(function(_0x14039a,_0x432326){return client['request'](_0x39cb3c,_0x338dfe)['then'](function(_0x41f630){logger['info'](_0x7617('0xa'),_0x58d9c4,'request\x20sent');logger[_0x7617('0xb')](_0x7617('0xc'),_0x58d9c4,_0x7617('0xd'),JSON[_0x7617('0xe')](_0x41f630));if(_0x41f630[_0x7617('0xf')]){if(_0x41f630['error']['code']===0x1f4){logger[_0x7617('0xf')](_0x7617('0xa'),_0x58d9c4,_0x41f630['error'][_0x7617('0x10')]);return _0x432326(_0x41f630[_0x7617('0xf')][_0x7617('0x10')]);}logger[_0x7617('0xf')](_0x7617('0xa'),_0x58d9c4,_0x41f630[_0x7617('0xf')][_0x7617('0x10')]);return _0x14039a(_0x41f630[_0x7617('0xf')][_0x7617('0x10')]);}else{logger[_0x7617('0x11')]('VoiceMailMessage,\x20%s,\x20%s',_0x58d9c4,_0x7617('0xd'));_0x14039a(_0x41f630['result']['message']);}})['catch'](function(_0x584d5d){logger[_0x7617('0xf')](_0x7617('0xa'),_0x58d9c4,_0x584d5d);_0x432326(_0x584d5d);});});}
\ No newline at end of file
+var _0x235e=['util','moment','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','http','request','then','info','VoiceMailMessage,\x20%s,\x20%s','debug','VoiceMailMessage,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','lodash'];(function(_0x1dfcbc,_0x597f0e){var _0x5d00ca=function(_0x3c84ee){while(--_0x3c84ee){_0x1dfcbc['push'](_0x1dfcbc['shift']());}};_0x5d00ca(++_0x597f0e);}(_0x235e,0x12a));var _0xe235=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x235e[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0xe235('0x0'));var util=require(_0xe235('0x1'));var moment=require(_0xe235('0x2'));var BPromise=require(_0xe235('0x3'));var rs=require(_0xe235('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xe235('0x5'))['db'];var utils=require(_0xe235('0x6'));var logger=require(_0xe235('0x7'))('rpc');var config=require(_0xe235('0x8'));var jayson=require(_0xe235('0x9'));var client=jayson[_0xe235('0xa')][_0xe235('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x301416,_0x588439,_0x3de0e3){return new BPromise(function(_0x5e1c09,_0x355c5e){return client[_0xe235('0xc')](_0x301416,_0x3de0e3)[_0xe235('0xd')](function(_0x3e65ef){logger[_0xe235('0xe')](_0xe235('0xf'),_0x588439,'request\x20sent');logger[_0xe235('0x10')](_0xe235('0x11'),_0x588439,_0xe235('0x12'),JSON[_0xe235('0x13')](_0x3e65ef));if(_0x3e65ef[_0xe235('0x14')]){if(_0x3e65ef['error'][_0xe235('0x15')]===0x1f4){logger[_0xe235('0x14')](_0xe235('0xf'),_0x588439,_0x3e65ef[_0xe235('0x14')][_0xe235('0x16')]);return _0x355c5e(_0x3e65ef['error'][_0xe235('0x16')]);}logger['error'](_0xe235('0xf'),_0x588439,_0x3e65ef[_0xe235('0x14')][_0xe235('0x16')]);return _0x5e1c09(_0x3e65ef[_0xe235('0x14')]['message']);}else{logger['info']('VoiceMailMessage,\x20%s,\x20%s',_0x588439,_0xe235('0x12'));_0x5e1c09(_0x3e65ef['result'][_0xe235('0x16')]);}})['catch'](function(_0x4c435e){logger[_0xe235('0x14')](_0xe235('0xf'),_0x588439,_0x4c435e);_0x355c5e(_0x4c435e);});});}
\ No newline at end of file