Built motion from commit 53172ac8.|2.6.30
[motion2.git] / server / api / voiceMailMessage / voiceMailMessage.rpc.js
index 0c44bd5..2f73f2d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x79db=['error','code','message','result','catch','lodash','bluebird','randomstring','../../mysqldb','rpc','../../config/environment','jayson/promise','client','http','request','then','info','VoiceMailMessage,\x20%s,\x20%s','request\x20sent','debug','VoiceMailMessage,\x20%s,\x20%s,\x20%s','stringify'];(function(_0x15f4bc,_0x5900a2){var _0x4fa96d=function(_0x3adece){while(--_0x3adece){_0x15f4bc['push'](_0x15f4bc['shift']());}};_0x4fa96d(++_0x5900a2);}(_0x79db,0x1a7));var _0xb79d=function(_0x59ae8f,_0x148344){_0x59ae8f=_0x59ae8f-0x0;var _0x3900b5=_0x79db[_0x59ae8f];return _0x3900b5;};'use strict';var _=require(_0xb79d('0x0'));var util=require('util');var moment=require('moment');var BPromise=require(_0xb79d('0x1'));var rs=require(_0xb79d('0x2'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xb79d('0x3'))['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')(_0xb79d('0x4'));var config=require(_0xb79d('0x5'));var jayson=require(_0xb79d('0x6'));var client=jayson[_0xb79d('0x7')][_0xb79d('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x12599c,_0x5b2dd5,_0x4baa62){return new BPromise(function(_0x333f6f,_0x5e8a1a){return client[_0xb79d('0x9')](_0x12599c,_0x4baa62)[_0xb79d('0xa')](function(_0x41f8c2){logger[_0xb79d('0xb')](_0xb79d('0xc'),_0x5b2dd5,_0xb79d('0xd'));logger[_0xb79d('0xe')](_0xb79d('0xf'),_0x5b2dd5,'request\x20sent',JSON[_0xb79d('0x10')](_0x41f8c2));if(_0x41f8c2[_0xb79d('0x11')]){if(_0x41f8c2[_0xb79d('0x11')][_0xb79d('0x12')]===0x1f4){logger[_0xb79d('0x11')]('VoiceMailMessage,\x20%s,\x20%s',_0x5b2dd5,_0x41f8c2[_0xb79d('0x11')][_0xb79d('0x13')]);return _0x5e8a1a(_0x41f8c2[_0xb79d('0x11')][_0xb79d('0x13')]);}logger['error'](_0xb79d('0xc'),_0x5b2dd5,_0x41f8c2[_0xb79d('0x11')]['message']);return _0x333f6f(_0x41f8c2[_0xb79d('0x11')][_0xb79d('0x13')]);}else{logger[_0xb79d('0xb')](_0xb79d('0xc'),_0x5b2dd5,_0xb79d('0xd'));_0x333f6f(_0x41f8c2[_0xb79d('0x14')][_0xb79d('0x13')]);}})[_0xb79d('0x15')](function(_0xba6a5e){logger[_0xb79d('0x11')](_0xb79d('0xc'),_0x5b2dd5,_0xba6a5e);_0x5e8a1a(_0xba6a5e);});});}
\ No newline at end of file
+var _0xf545=['bluebird','randomstring','../../mysqldb','../../config/utils','rpc','jayson/promise','http','request','then','info','request\x20sent','debug','stringify','error','VoiceMailMessage,\x20%s,\x20%s','message','catch','lodash','moment'];(function(_0x3a89dc,_0x54bb1e){var _0x11c5c9=function(_0x21bd68){while(--_0x21bd68){_0x3a89dc['push'](_0x3a89dc['shift']());}};_0x11c5c9(++_0x54bb1e);}(_0xf545,0x17a));var _0x5f54=function(_0x16eb19,_0x58cea4){_0x16eb19=_0x16eb19-0x0;var _0x312a25=_0xf545[_0x16eb19];return _0x312a25;};'use strict';var _=require(_0x5f54('0x0'));var util=require('util');var moment=require(_0x5f54('0x1'));var BPromise=require(_0x5f54('0x2'));var rs=require(_0x5f54('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x5f54('0x4'))['db'];var utils=require(_0x5f54('0x5'));var logger=require('../../config/logger')(_0x5f54('0x6'));var config=require('../../config/environment');var jayson=require(_0x5f54('0x7'));var client=jayson['client'][_0x5f54('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x16cc51,_0x518e2d,_0x1d1ac0){return new BPromise(function(_0x13a7c3,_0x169a01){return client[_0x5f54('0x9')](_0x16cc51,_0x1d1ac0)[_0x5f54('0xa')](function(_0x22a2e3){logger[_0x5f54('0xb')]('VoiceMailMessage,\x20%s,\x20%s',_0x518e2d,_0x5f54('0xc'));logger[_0x5f54('0xd')]('VoiceMailMessage,\x20%s,\x20%s,\x20%s',_0x518e2d,_0x5f54('0xc'),JSON[_0x5f54('0xe')](_0x22a2e3));if(_0x22a2e3[_0x5f54('0xf')]){if(_0x22a2e3['error']['code']===0x1f4){logger[_0x5f54('0xf')](_0x5f54('0x10'),_0x518e2d,_0x22a2e3[_0x5f54('0xf')][_0x5f54('0x11')]);return _0x169a01(_0x22a2e3[_0x5f54('0xf')][_0x5f54('0x11')]);}logger[_0x5f54('0xf')](_0x5f54('0x10'),_0x518e2d,_0x22a2e3[_0x5f54('0xf')][_0x5f54('0x11')]);return _0x13a7c3(_0x22a2e3[_0x5f54('0xf')][_0x5f54('0x11')]);}else{logger[_0x5f54('0xb')](_0x5f54('0x10'),_0x518e2d,'request\x20sent');_0x13a7c3(_0x22a2e3['result'][_0x5f54('0x11')]);}})[_0x5f54('0x12')](function(_0x5d95ca){logger[_0x5f54('0xf')](_0x5f54('0x10'),_0x518e2d,_0x5d95ca);_0x169a01(_0x5d95ca);});});}
\ No newline at end of file