Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / voiceMailMessage / voiceMailMessage.rpc.js
index c4527a7..a6fb3d7 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x52c8=['bluebird','randomstring','ioredis','../../mysqldb','rpc','../../config/environment','client','http','request','info','request\x20sent','debug','VoiceMailMessage,\x20%s,\x20%s,\x20%s','stringify','error','code','VoiceMailMessage,\x20%s,\x20%s','message','result','catch','util'];(function(_0xfe9f9d,_0x399d13){var _0x4bb558=function(_0x58196b){while(--_0x58196b){_0xfe9f9d['push'](_0xfe9f9d['shift']());}};_0x4bb558(++_0x399d13);}(_0x52c8,0x164));var _0x852c=function(_0x37ffea,_0x25b006){_0x37ffea=_0x37ffea-0x0;var _0x2e2615=_0x52c8[_0x37ffea];return _0x2e2615;};'use strict';var _=require('lodash');var util=require(_0x852c('0x0'));var moment=require('moment');var BPromise=require(_0x852c('0x1'));var rs=require(_0x852c('0x2'));var fs=require('fs');var Redis=require(_0x852c('0x3'));var db=require(_0x852c('0x4'))['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')(_0x852c('0x5'));var config=require(_0x852c('0x6'));var jayson=require('jayson/promise');var client=jayson[_0x852c('0x7')][_0x852c('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x13298b,_0xc6aec,_0x92705c){return new BPromise(function(_0x4f4854,_0x2e1ea1){return client[_0x852c('0x9')](_0x13298b,_0x92705c)['then'](function(_0xc32a30){logger[_0x852c('0xa')]('VoiceMailMessage,\x20%s,\x20%s',_0xc6aec,_0x852c('0xb'));logger[_0x852c('0xc')](_0x852c('0xd'),_0xc6aec,_0x852c('0xb'),JSON[_0x852c('0xe')](_0xc32a30));if(_0xc32a30[_0x852c('0xf')]){if(_0xc32a30[_0x852c('0xf')][_0x852c('0x10')]===0x1f4){logger['error'](_0x852c('0x11'),_0xc6aec,_0xc32a30[_0x852c('0xf')][_0x852c('0x12')]);return _0x2e1ea1(_0xc32a30[_0x852c('0xf')]['message']);}logger[_0x852c('0xf')](_0x852c('0x11'),_0xc6aec,_0xc32a30[_0x852c('0xf')][_0x852c('0x12')]);return _0x4f4854(_0xc32a30[_0x852c('0xf')]['message']);}else{logger[_0x852c('0xa')](_0x852c('0x11'),_0xc6aec,_0x852c('0xb'));_0x4f4854(_0xc32a30[_0x852c('0x13')][_0x852c('0x12')]);}})[_0x852c('0x14')](function(_0x434a9c){logger[_0x852c('0xf')](_0x852c('0x11'),_0xc6aec,_0x434a9c);_0x2e1ea1(_0x434a9c);});});}
\ No newline at end of file
+var _0x1900=['rpc','../../config/environment','client','http','request','then','info','error','code','VoiceMailMessage,\x20%s,\x20%s','message','request\x20sent','catch','util','randomstring','../../config/utils','../../config/logger'];(function(_0x4ba2da,_0x2a4ba1){var _0x19c3da=function(_0x48f968){while(--_0x48f968){_0x4ba2da['push'](_0x4ba2da['shift']());}};_0x19c3da(++_0x2a4ba1);}(_0x1900,0x95));var _0x0190=function(_0x305795,_0x260eb7){_0x305795=_0x305795-0x0;var _0x5ee0b9=_0x1900[_0x305795];return _0x5ee0b9;};'use strict';var _=require('lodash');var util=require(_0x0190('0x0'));var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0x0190('0x1'));var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require(_0x0190('0x2'));var logger=require(_0x0190('0x3'))(_0x0190('0x4'));var config=require(_0x0190('0x5'));var jayson=require('jayson/promise');var client=jayson[_0x0190('0x6')][_0x0190('0x7')]({'port':0x232a});function respondWithRpcPromise(_0x51d867,_0x6d5905,_0x476bdc){return new BPromise(function(_0x12d4f5,_0x2a129a){return client[_0x0190('0x8')](_0x51d867,_0x476bdc)[_0x0190('0x9')](function(_0x1ce15a){logger[_0x0190('0xa')]('VoiceMailMessage,\x20%s,\x20%s',_0x6d5905,'request\x20sent');logger['debug']('VoiceMailMessage,\x20%s,\x20%s,\x20%s',_0x6d5905,'request\x20sent',JSON['stringify'](_0x1ce15a));if(_0x1ce15a[_0x0190('0xb')]){if(_0x1ce15a['error'][_0x0190('0xc')]===0x1f4){logger[_0x0190('0xb')](_0x0190('0xd'),_0x6d5905,_0x1ce15a['error'][_0x0190('0xe')]);return _0x2a129a(_0x1ce15a[_0x0190('0xb')][_0x0190('0xe')]);}logger[_0x0190('0xb')](_0x0190('0xd'),_0x6d5905,_0x1ce15a[_0x0190('0xb')][_0x0190('0xe')]);return _0x12d4f5(_0x1ce15a[_0x0190('0xb')][_0x0190('0xe')]);}else{logger['info'](_0x0190('0xd'),_0x6d5905,_0x0190('0xf'));_0x12d4f5(_0x1ce15a['result'][_0x0190('0xe')]);}})[_0x0190('0x10')](function(_0x3c4b31){logger['error'](_0x0190('0xd'),_0x6d5905,_0x3c4b31);_0x2a129a(_0x3c4b31);});});}
\ No newline at end of file