7f037fa52dee316aba29fffea5538df017af9544
[motion.git] / server / config / forked_routing / mail / sendmail.js
1 var _0x506a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x66\x73","\x75\x74\x69\x6C","\x70\x61\x74\x68","\x6D\x75\x73\x74\x61\x63\x68\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x75\x74\x69\x6C","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x54\x65\x6D\x70\x6C\x61\x74\x65","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x4D\x61\x69\x6C\x41\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x65\x78\x70\x6F\x72\x74\x73","\x66\x69\x6E\x61\x6C\x6C\x79","\x74\x6F\x55\x70\x70\x65\x72\x43\x61\x73\x65","\x63\x68\x61\x6E\x6E\x65\x6C","\x41\x50\x50\x20\x53\x45\x4E\x44\x4D\x41\x49\x4C\x2C\x20\x41\x43\x43\x4F\x55\x4E\x54\x3A","\x64\x61\x74\x61\x38","\x54\x45\x4D\x50\x4C\x41\x54\x45\x3A","\x64\x61\x74\x61\x39","\x49\x4E\x54\x45\x52\x41\x43\x54\x49\x4F\x4E\x3A","\x75\x6E\x69\x71\x75\x65\x69\x64","\x45\x52\x52\x4F\x52","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x69\x6E\x66\x6F","\x63\x72\x65\x61\x74\x65\x4D\x61\x69\x6C","\x73\x65\x6E\x64","\x74\x68\x65\x6E","\x73\x75\x62\x6A\x65\x63\x74","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D\x49\x64","\x72\x6F\x6F\x6D\x69\x64","\x68\x74\x6D\x6C","\x61\x63\x63\x6F\x75\x6E\x74\x6E\x61\x6D\x65","\x2C\x20","\x6A\x6F\x69\x6E","\x66\x72\x6F\x6D","\x74\x6F","\x63\x63","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x72\x65\x6E\x64\x65\x72","\x6D\x65\x73\x73\x61\x67\x65\x69\x64","\x62\x6F\x64\x79","\x6D\x61\x69\x6C","\x74\x65\x78\x74","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x64\x64\x72\x65\x73\x73","\x70\x75\x73\x68","\x64\x61\x74\x61\x32"];_0x506a[0];var fs=require(_0x506a[1]);var util=require(_0x506a[2]);var path=require(_0x506a[3]);var Mustache=require(_0x506a[4]);var MyUtil=require(_0x506a[5]);var Account=require(_0x506a[7])[_0x506a[6]];var Template=require(_0x506a[7])[_0x506a[8]];var Message=require(_0x506a[7])[_0x506a[9]];var Attachment=require(_0x506a[7])[_0x506a[10]];var config=require(_0x506a[11]);module[_0x506a[12]]= function(_0x808cxb,_0x808cxc,_0x808cxd,_0x808cxe,_0x808cxf){var _0x808cx10={from:[],to:[],auto:true};return Account[_0x506a[45]](_0x808cxb[_0x506a[17]])[_0x506a[28]](function(_0x808cx13){_0x808cx10[_0x506a[36]][_0x506a[47]](_0x808cx13[_0x506a[46]]);_0x808cx10[_0x506a[37]][_0x506a[47]](_0x808cxb[_0x506a[48]]);return Template[_0x506a[45]](_0x808cxb[_0x506a[19]])})[_0x506a[28]](function(_0x808cx12){_0x808cx10[_0x506a[29]]= _0x808cx12[_0x506a[29]];_0x808cx10[_0x506a[30]]= _0x808cxc[_0x506a[31]];_0x808cx10[_0x506a[32]]= Mustache[_0x506a[40]](_0x808cx12[_0x506a[32]],{interactionId:_0x808cxc[_0x506a[31]],subject:_0x808cx12[_0x506a[29]],accountName:_0x808cxc[_0x506a[33]],from:_0x808cx10[_0x506a[36]][_0x506a[35]](_0x506a[34]),to:_0x808cx10[_0x506a[37]][_0x506a[35]](_0x506a[34]),cc:_0x808cxc[_0x506a[38]][_0x506a[35]](_0x506a[34]),createdAt:_0x808cxb[_0x506a[39]]});if(_0x808cxc[_0x506a[41]]){return Message[_0x506a[45]](_0x808cxc[_0x506a[41]])[_0x506a[28]](function(_0x808cxc){_0x808cx10[_0x506a[42]]= _0x808cxc[_0x506a[15]]=== _0x506a[43]?_0x808cxc[_0x506a[44]]:_0x808cxc[_0x506a[42]]})}})[_0x506a[28]](function(){console[_0x506a[25]](_0x808cxc[_0x506a[15]][_0x506a[14]](),_0x506a[16],_0x808cxb[_0x506a[17]],_0x506a[18],_0x808cxb[_0x506a[19]],_0x506a[20],_0x808cxc[_0x506a[21]]);process[_0x506a[27]]({type:_0x506a[26],msg:_0x808cx10})})[_0x506a[24]](function(_0x808cx11){console[_0x506a[23]](_0x808cxc[_0x506a[15]][_0x506a[14]](),_0x506a[16],_0x808cxb[_0x506a[17]],_0x506a[18],_0x808cxb[_0x506a[19]],_0x506a[20],_0x808cxc[_0x506a[21]],_0x506a[22]);console[_0x506a[23]](_0x808cx11)})[_0x506a[13]](function(){_0x808cxf()})}