Built motion from commit b0a9a629.|2.6.33
[motion2.git] / server / api / voiceMailMessage / voiceMailMessage.rpc.js
index 10c51b1..575a548 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe86b=['info','request\x20sent','debug','stringify','error','code','VoiceMailMessage,\x20%s,\x20%s','message','result','catch','lodash','util','moment','randomstring','ioredis','../../mysqldb','../../config/logger','../../config/environment','jayson/promise','client','http','request','then'];(function(_0x1b2ff7,_0x12a034){var _0x31656a=function(_0x1165a5){while(--_0x1165a5){_0x1b2ff7['push'](_0x1b2ff7['shift']());}};_0x31656a(++_0x12a034);}(_0xe86b,0xf0));var _0xbe86=function(_0x57b54c,_0x54ce0d){_0x57b54c=_0x57b54c-0x0;var _0x59cc19=_0xe86b[_0x57b54c];return _0x59cc19;};'use strict';var _=require(_0xbe86('0x0'));var util=require(_0xbe86('0x1'));var moment=require(_0xbe86('0x2'));var BPromise=require('bluebird');var rs=require(_0xbe86('0x3'));var fs=require('fs');var Redis=require(_0xbe86('0x4'));var db=require(_0xbe86('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0xbe86('0x6'))('rpc');var config=require(_0xbe86('0x7'));var jayson=require(_0xbe86('0x8'));var client=jayson[_0xbe86('0x9')][_0xbe86('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x36c2c1,_0x34ac51,_0x46b72a){return new BPromise(function(_0x311a54,_0x2e77ff){return client[_0xbe86('0xb')](_0x36c2c1,_0x46b72a)[_0xbe86('0xc')](function(_0x334ded){logger[_0xbe86('0xd')]('VoiceMailMessage,\x20%s,\x20%s',_0x34ac51,_0xbe86('0xe'));logger[_0xbe86('0xf')]('VoiceMailMessage,\x20%s,\x20%s,\x20%s',_0x34ac51,_0xbe86('0xe'),JSON[_0xbe86('0x10')](_0x334ded));if(_0x334ded[_0xbe86('0x11')]){if(_0x334ded[_0xbe86('0x11')][_0xbe86('0x12')]===0x1f4){logger['error'](_0xbe86('0x13'),_0x34ac51,_0x334ded[_0xbe86('0x11')][_0xbe86('0x14')]);return _0x2e77ff(_0x334ded[_0xbe86('0x11')]['message']);}logger[_0xbe86('0x11')](_0xbe86('0x13'),_0x34ac51,_0x334ded['error']['message']);return _0x311a54(_0x334ded['error'][_0xbe86('0x14')]);}else{logger[_0xbe86('0xd')](_0xbe86('0x13'),_0x34ac51,_0xbe86('0xe'));_0x311a54(_0x334ded[_0xbe86('0x15')][_0xbe86('0x14')]);}})[_0xbe86('0x16')](function(_0x4ae75d){logger[_0xbe86('0x11')]('VoiceMailMessage,\x20%s,\x20%s',_0x34ac51,_0x4ae75d);_0x2e77ff(_0x4ae75d);});});}
\ No newline at end of file
+var _0x3a48=['http','request','info','VoiceMailMessage,\x20%s,\x20%s','request\x20sent','debug','VoiceMailMessage,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../config/logger','rpc','../../config/environment','jayson/promise','client'];(function(_0x3995a0,_0xdbf0f2){var _0x332a68=function(_0x50e93b){while(--_0x50e93b){_0x3995a0['push'](_0x3995a0['shift']());}};_0x332a68(++_0xdbf0f2);}(_0x3a48,0xfd));var _0x83a4=function(_0x3c38e1,_0x40d2f3){_0x3c38e1=_0x3c38e1-0x0;var _0x2ac2ab=_0x3a48[_0x3c38e1];return _0x2ac2ab;};'use strict';var _=require(_0x83a4('0x0'));var util=require(_0x83a4('0x1'));var moment=require(_0x83a4('0x2'));var BPromise=require(_0x83a4('0x3'));var rs=require(_0x83a4('0x4'));var fs=require('fs');var Redis=require(_0x83a4('0x5'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0x83a4('0x6'))(_0x83a4('0x7'));var config=require(_0x83a4('0x8'));var jayson=require(_0x83a4('0x9'));var client=jayson[_0x83a4('0xa')][_0x83a4('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x41a80e,_0x4bcffc,_0x4d50e2){return new BPromise(function(_0x1a6e14,_0x48a892){return client[_0x83a4('0xc')](_0x41a80e,_0x4d50e2)['then'](function(_0x48060e){logger[_0x83a4('0xd')](_0x83a4('0xe'),_0x4bcffc,_0x83a4('0xf'));logger[_0x83a4('0x10')](_0x83a4('0x11'),_0x4bcffc,_0x83a4('0xf'),JSON[_0x83a4('0x12')](_0x48060e));if(_0x48060e[_0x83a4('0x13')]){if(_0x48060e[_0x83a4('0x13')][_0x83a4('0x14')]===0x1f4){logger[_0x83a4('0x13')](_0x83a4('0xe'),_0x4bcffc,_0x48060e[_0x83a4('0x13')][_0x83a4('0x15')]);return _0x48a892(_0x48060e[_0x83a4('0x13')]['message']);}logger[_0x83a4('0x13')](_0x83a4('0xe'),_0x4bcffc,_0x48060e[_0x83a4('0x13')][_0x83a4('0x15')]);return _0x1a6e14(_0x48060e[_0x83a4('0x13')][_0x83a4('0x15')]);}else{logger[_0x83a4('0xd')]('VoiceMailMessage,\x20%s,\x20%s',_0x4bcffc,_0x83a4('0xf'));_0x1a6e14(_0x48060e[_0x83a4('0x16')][_0x83a4('0x15')]);}})[_0x83a4('0x17')](function(_0x49e26a){logger[_0x83a4('0x13')](_0x83a4('0xe'),_0x4bcffc,_0x49e26a);_0x48a892(_0x49e26a);});});}
\ No newline at end of file