Built motion from commit 822e0ac2e.|1.0.30
[motion.git] / server / config / forked_routing / mail / sendmail.js
1 var _0x59f8=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6D\x75\x73\x74\x61\x63\x68\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x69\x6E\x74\x65\x72\x76\x61\x6C","\x6D\x61\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\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","\x74\x65\x78\x74","\x73\x68\x6F\x77","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x72\x65\x71\x75\x65\x73\x74","\x61\x64\x64\x72\x65\x73\x73","\x70\x75\x73\x68","\x64\x61\x74\x61\x32","\x54\x65\x6D\x70\x6C\x61\x74\x65","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74"];_0x59f8[0];var Mustache=require(_0x59f8[1]);var MyUtil=require(_0x59f8[2]);var logger=require(_0x59f8[4])(_0x59f8[3]);var config=require(_0x59f8[5]);module[_0x59f8[6]]= function(_0xe3aax5,_0xe3aax6,_0xe3aax7,_0xe3aax8,_0xe3aax9,_0xe3aaxa){var _0xe3aaxb={from:[],to:[],auto:true};return _0xe3aax9[_0x59f8[40]](_0x59f8[38],[_0x59f8[45],{where:{id:_0xe3aax5[_0x59f8[11]]}}])[_0x59f8[22]](function(_0xe3aaxe){_0xe3aaxb[_0x59f8[30]][_0x59f8[42]](_0xe3aaxe[_0x59f8[41]]);_0xe3aaxb[_0x59f8[31]][_0x59f8[42]](_0xe3aax5[_0x59f8[43]]);return _0xe3aax9[_0x59f8[40]](_0x59f8[38],[_0x59f8[44],{where:{id:_0xe3aax5[_0x59f8[13]]}}])})[_0x59f8[22]](function(_0xe3aaxd){_0xe3aaxb[_0x59f8[23]]= _0xe3aaxd[_0x59f8[23]];_0xe3aaxb[_0x59f8[24]]= _0xe3aax6[_0x59f8[25]];_0xe3aaxb[_0x59f8[26]]= Mustache[_0x59f8[34]](_0xe3aaxd[_0x59f8[26]],{interactionId:_0xe3aax6[_0x59f8[25]],subject:_0xe3aaxd[_0x59f8[23]],accountName:_0xe3aax6[_0x59f8[27]],from:_0xe3aaxb[_0x59f8[30]][_0x59f8[29]](_0x59f8[28]),to:_0xe3aaxb[_0x59f8[31]][_0x59f8[29]](_0x59f8[28]),cc:_0xe3aax6[_0x59f8[32]][_0x59f8[29]](_0x59f8[28]),createdAt:_0xe3aax5[_0x59f8[33]]});if(_0xe3aax6[_0x59f8[35]]){return _0xe3aax9[_0x59f8[40]](_0x59f8[38],[_0x59f8[39],{where:{id:_0xe3aax6[_0x59f8[35]]}}])[_0x59f8[22]](function(_0xe3aax6){_0xe3aaxb[_0x59f8[36]]= _0xe3aax6[_0x59f8[9]]=== _0x59f8[3]?_0xe3aax6[_0x59f8[37]]:_0xe3aax6[_0x59f8[36]]})}})[_0x59f8[22]](function(){logger[_0x59f8[19]](_0xe3aax6[_0x59f8[9]][_0x59f8[8]](),_0x59f8[10],_0xe3aax5[_0x59f8[11]],_0x59f8[12],_0xe3aax5[_0x59f8[13]],_0x59f8[14],_0xe3aax6[_0x59f8[15]]);process[_0x59f8[21]]({type:_0x59f8[20],msg:_0xe3aaxb})})[_0x59f8[18]](function(_0xe3aaxc){logger[_0x59f8[17]](_0xe3aax6[_0x59f8[9]][_0x59f8[8]](),_0x59f8[10],_0xe3aax5[_0x59f8[11]],_0x59f8[12],_0xe3aax5[_0x59f8[13]],_0x59f8[14],_0xe3aax6[_0x59f8[15]],_0x59f8[16]);logger[_0x59f8[17]](_0xe3aaxc)})[_0x59f8[7]](function(){_0xe3aaxa()})}