Built motion from commit (unavailable).|2.5.17
[motion2.git] / server / services / routing / server / applications / message.js
index 2442a61..f73b479 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf012=['then','info','[%s][MESSAGE]\x20%s','next','catch','error','stop','stringify','lodash','../../../../config/logger','../../rpc/chatMessage','../../rpc/mailMessage','consequence','getMustacheRender','contact','channel','chat','ChatWebsiteId','account','upperFirst','InteractionId','interaction','Message','create'];(function(_0x1bf1f7,_0x5f2286){var _0x3e55fd=function(_0x43fae5){while(--_0x43fae5){_0x1bf1f7['push'](_0x1bf1f7['shift']());}};_0x3e55fd(++_0x5f2286);}(_0xf012,0x98));var _0x2f01=function(_0x35ea44,_0x314ac5){_0x35ea44=_0x35ea44-0x0;var _0x432f30=_0xf012[_0x35ea44];return _0x432f30;};'use strict';var _=require(_0x2f01('0x0'));var utils=require('./utils');var logger=require(_0x2f01('0x1'))('routing');var rpc={'chatMessage':require(_0x2f01('0x2')),'openchannelMessage':require('../../rpc/openchannelMessage'),'mailMessage':require(_0x2f01('0x3')),'smsMessage':require('../../rpc/smsMessage'),'faxMessage':require('../../rpc/faxMessage'),'whatsappMessage':require('../../rpc/whatsappMessage')};exports[_0x2f01('0x4')]=function(_0x31be05,_0x21a4a1){return function(_0x52b5c2){try{var _0x29ea36={'body':utils[_0x2f01('0x5')](_0x21a4a1[0x0],this),'ContactId':this[_0x2f01('0x6')]['id']};if(this[_0x2f01('0x7')]===_0x2f01('0x8')){_0x29ea36[_0x2f01('0x9')]=this[_0x2f01('0xa')]['id'];}else{_0x29ea36[_[_0x2f01('0xb')](this[_0x2f01('0x7')])+'AccountId']=this[_0x2f01('0xa')]['id'];}_0x29ea36[_[_0x2f01('0xb')](this[_0x2f01('0x7')])+_0x2f01('0xc')]=this[_0x2f01('0xd')]['id'];if(rpc[this['channel']+_0x2f01('0xe')]){return rpc[this[_0x2f01('0x7')]+_0x2f01('0xe')][_0x2f01('0xf')](_0x29ea36)[_0x2f01('0x10')](function(_0x47edc5){logger[_0x2f01('0x11')](_0x2f01('0x12'),_0x31be05,_0x29ea36['body']);_0x52b5c2[_0x2f01('0x13')]();})[_0x2f01('0x14')](function(_0xde1c95){logger[_0x2f01('0x15')](_0x2f01('0x12'),_0x31be05,JSON['stringify'](_0xde1c95));_0x52b5c2[_0x2f01('0x16')]();});}}catch(_0x215f3d){logger[_0x2f01('0x15')]('[%s][MESSAGE]\x20%s',_0x31be05,JSON[_0x2f01('0x17')](_0x215f3d));_0x52b5c2[_0x2f01('0x16')]();}};};
\ No newline at end of file
+var _0xaa7f=['../../rpc/faxMessage','../../rpc/whatsappMessage','consequence','getMustacheRender','contact','channel','chat','ChatWebsiteId','account','upperFirst','AccountId','InteractionId','Message','then','info','[%s][MESSAGE]\x20%s','next','error','stringify','stop','lodash','../../../../config/logger','routing','../../rpc/chatMessage','../../rpc/openchannelMessage','../../rpc/mailMessage'];(function(_0x28d18d,_0x55896b){var _0x470640=function(_0x57e78b){while(--_0x57e78b){_0x28d18d['push'](_0x28d18d['shift']());}};_0x470640(++_0x55896b);}(_0xaa7f,0x166));var _0xfaa7=function(_0x331dd0,_0x2f07d4){_0x331dd0=_0x331dd0-0x0;var _0x2f0567=_0xaa7f[_0x331dd0];return _0x2f0567;};'use strict';var _=require(_0xfaa7('0x0'));var utils=require('./utils');var logger=require(_0xfaa7('0x1'))(_0xfaa7('0x2'));var rpc={'chatMessage':require(_0xfaa7('0x3')),'openchannelMessage':require(_0xfaa7('0x4')),'mailMessage':require(_0xfaa7('0x5')),'smsMessage':require('../../rpc/smsMessage'),'faxMessage':require(_0xfaa7('0x6')),'whatsappMessage':require(_0xfaa7('0x7'))};exports[_0xfaa7('0x8')]=function(_0x469d50,_0x3ba449){return function(_0x5338a8){try{var _0x2b88e3={'body':utils[_0xfaa7('0x9')](_0x3ba449[0x0],this),'ContactId':this[_0xfaa7('0xa')]['id']};if(this[_0xfaa7('0xb')]===_0xfaa7('0xc')){_0x2b88e3[_0xfaa7('0xd')]=this[_0xfaa7('0xe')]['id'];}else{_0x2b88e3[_[_0xfaa7('0xf')](this[_0xfaa7('0xb')])+_0xfaa7('0x10')]=this['account']['id'];}_0x2b88e3[_[_0xfaa7('0xf')](this[_0xfaa7('0xb')])+_0xfaa7('0x11')]=this['interaction']['id'];if(rpc[this[_0xfaa7('0xb')]+_0xfaa7('0x12')]){return rpc[this[_0xfaa7('0xb')]+_0xfaa7('0x12')]['create'](_0x2b88e3)[_0xfaa7('0x13')](function(_0x242891){logger[_0xfaa7('0x14')](_0xfaa7('0x15'),_0x469d50,_0x2b88e3['body']);_0x5338a8[_0xfaa7('0x16')]();})['catch'](function(_0x417728){logger[_0xfaa7('0x17')](_0xfaa7('0x15'),_0x469d50,JSON[_0xfaa7('0x18')](_0x417728));_0x5338a8[_0xfaa7('0x19')]();});}}catch(_0x1e2028){logger[_0xfaa7('0x17')](_0xfaa7('0x15'),_0x469d50,JSON['stringify'](_0x1e2028));_0x5338a8[_0xfaa7('0x19')]();}};};
\ No newline at end of file