Built motion from commit ab065936.|2.0.53
[motion2.git] / server / api / mailQueue / mailQueue.rpc.js
index c9901c3..4b18154 100644 (file)
@@ -1 +1 @@
-var _0xa01c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x62\x6C\x75\x65\x62\x69\x72\x64","\x72\x61\x6E\x64\x6F\x6D\x73\x74\x72\x69\x6E\x67","\x66\x73","\x64\x62","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x79\x73\x71\x6C\x64\x62","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C\x73","\x72\x70\x63","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x6A\x61\x79\x73\x6F\x6E\x2F\x70\x72\x6F\x6D\x69\x73\x65","\x68\x74\x74\x70","\x63\x6C\x69\x65\x6E\x74","\x6C\x6F\x63\x61\x6C\x68\x6F\x73\x74","\x73\x6F\x63\x6B\x65\x74\x2E\x69\x6F\x2D\x65\x6D\x69\x74\x74\x65\x72","\x72\x65\x67\x69\x73\x74\x65\x72","\x2E\x2F\x6D\x61\x69\x6C\x51\x75\x65\x75\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x2C\x20\x25\x73\x2C\x20\x25\x73","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x72\x65\x71\x75\x65\x73\x74\x20\x73\x65\x6E\x74","\x69\x6E\x66\x6F","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x2C\x20\x25\x73\x2C\x20\x25\x73\x2C\x20\x25\x73","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x64\x65\x62\x75\x67","\x63\x6F\x64\x65","\x6D\x65\x73\x73\x61\x67\x65","\x72\x65\x73\x75\x6C\x74","\x74\x68\x65\x6E","\x72\x65\x71\x75\x65\x73\x74","\x47\x65\x74\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x6F\x70\x74\x69\x6F\x6E\x73","\x72\x61\x77","\x77\x68\x65\x72\x65","\x61\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x6C\x69\x6D\x69\x74","\x69\x6E\x63\x6C\x75\x64\x65","\x6D\x6F\x64\x65\x6C","\x61\x73","\x6D\x61\x70","\x66\x69\x6E\x64\x41\x6C\x6C","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x53\x68\x6F\x77\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x66\x69\x6E\x64"];_0xa01c[0];var _=require(_0xa01c[1]);var util=require(_0xa01c[2]);var moment=require(_0xa01c[3]);var BPromise=require(_0xa01c[4]);var rs=require(_0xa01c[5]);var fs=require(_0xa01c[6]);var db=require(_0xa01c[8])[_0xa01c[7]];var utils=require(_0xa01c[9]);var logger=require(_0xa01c[11])(_0xa01c[10]);var config=require(_0xa01c[12]);var jayson=require(_0xa01c[13]);var client=jayson[_0xa01c[15]][_0xa01c[14]]({port:9002});var socket=require(_0xa01c[17])({host:_0xa01c[16],port:6379});require(_0xa01c[19])[_0xa01c[18]](socket);function respondWithRpcPromise(_0x520fxf,_0x520fx10,_0x520fx11){return  new BPromise(function(_0x520fx12,_0x520fx13){return client[_0xa01c[32]](_0x520fxf,_0x520fx11)[_0xa01c[31]](function(_0x520fx15){logger[_0xa01c[24]](_0xa01c[20],_0x520fx10,_0xa01c[23]);logger[_0xa01c[27]](_0xa01c[25],_0x520fx10,_0xa01c[23],JSON[_0xa01c[26]](_0x520fx15));if(_0x520fx15[_0xa01c[21]]){if(_0x520fx15[_0xa01c[21]][_0xa01c[28]]=== 500){logger[_0xa01c[21]](_0xa01c[20],_0x520fx10,_0x520fx15[_0xa01c[21]][_0xa01c[29]]);return _0x520fx13(_0x520fx15[_0xa01c[21]][_0xa01c[29]])};logger[_0xa01c[21]](_0xa01c[20],_0x520fx10,_0x520fx15[_0xa01c[21]][_0xa01c[29]]);return _0x520fx12(_0x520fx15[_0xa01c[21]][_0xa01c[29]])}else {logger[_0xa01c[24]](_0xa01c[20],_0x520fx10,_0xa01c[23]);_0x520fx12(_0x520fx15[_0xa01c[30]][_0xa01c[29]])}})[_0xa01c[22]](function(_0x520fx14){logger[_0xa01c[21]](_0xa01c[20],_0x520fx10,_0x520fx14);_0x520fx13(_0x520fx14)})})}exports[_0xa01c[33]]= function(_0x520fx11){var _0x520fx16=this;return  new Promise(function(_0x520fx12,_0x520fx13){return db[_0xa01c[44]][_0xa01c[43]]({raw:_0x520fx11[_0xa01c[34]]?(_0x520fx11[_0xa01c[34]][_0xa01c[35]]=== undefined)?true:false:true,where:_0x520fx11[_0xa01c[34]]?_0x520fx11[_0xa01c[34]][_0xa01c[36]]|| null:null,attributes:_0x520fx11[_0xa01c[34]]?_0x520fx11[_0xa01c[34]][_0xa01c[37]]|| null:null,limit:_0x520fx11[_0xa01c[34]]?_0x520fx11[_0xa01c[34]][_0xa01c[38]]|| null:null,include:_0x520fx11[_0xa01c[34]]?(_0x520fx11[_0xa01c[34]][_0xa01c[39]]?_[_0xa01c[42]](_0x520fx11[_0xa01c[34]][_0xa01c[39]],function(_0x520fx17){return {model:db[_0x520fx17[_0xa01c[40]]],as:_0x520fx17[_0xa01c[41]],attributes:_0x520fx17[_0xa01c[37]],include:_0x520fx17[_0xa01c[39]]?_[_0xa01c[42]](_0x520fx17[_0xa01c[39]],function(_0x520fx18){return {model:db[_0x520fx18[_0xa01c[40]]],as:_0x520fx18[_0xa01c[41]],attributes:_0x520fx18[_0xa01c[37]],include:_0x520fx18[_0xa01c[39]]?_[_0xa01c[42]](_0x520fx18[_0xa01c[39]],function(_0x520fx19){return {model:db[_0x520fx19[_0xa01c[40]]],as:_0x520fx19[_0xa01c[41]],attributes:_0x520fx19[_0xa01c[37]]}}):[]}}):[]}}):[]):[]})[_0xa01c[31]](function(_0x520fx15){logger[_0xa01c[24]](_0xa01c[33],_0x520fx11);logger[_0xa01c[27]](_0xa01c[33],_0x520fx11,JSON[_0xa01c[26]](_0x520fx15));_0x520fx12(_0x520fx15)})[_0xa01c[22]](function(_0x520fx14){logger[_0xa01c[21]](_0xa01c[33],_0x520fx14[_0xa01c[29]],_0x520fx11);_0x520fx13(_0x520fx16[_0xa01c[21]](500,_0x520fx14[_0xa01c[29]]))})})};exports[_0xa01c[45]]= function(_0x520fx11){var _0x520fx16=this;return  new Promise(function(_0x520fx12,_0x520fx13){return db[_0xa01c[44]][_0xa01c[46]]({raw:_0x520fx11[_0xa01c[34]]?(_0x520fx11[_0xa01c[34]][_0xa01c[35]]=== undefined)?true:false:true,where:_0x520fx11[_0xa01c[34]]?_0x520fx11[_0xa01c[34]][_0xa01c[36]]|| null:null,attributes:_0x520fx11[_0xa01c[34]]?_0x520fx11[_0xa01c[34]][_0xa01c[37]]|| null:null,include:_0x520fx11[_0xa01c[34]]?(_0x520fx11[_0xa01c[34]][_0xa01c[39]]?_[_0xa01c[42]](_0x520fx11[_0xa01c[34]][_0xa01c[39]],function(_0x520fx17){return {model:db[_0x520fx17[_0xa01c[40]]],as:_0x520fx17[_0xa01c[41]],attributes:_0x520fx17[_0xa01c[37]],include:_0x520fx17[_0xa01c[39]]?_[_0xa01c[42]](_0x520fx17[_0xa01c[39]],function(_0x520fx18){return {model:db[_0x520fx18[_0xa01c[40]]],as:_0x520fx18[_0xa01c[41]],attributes:_0x520fx18[_0xa01c[37]],include:_0x520fx18[_0xa01c[39]]?_[_0xa01c[42]](_0x520fx18[_0xa01c[39]],function(_0x520fx19){return {model:db[_0x520fx19[_0xa01c[40]]],as:_0x520fx19[_0xa01c[41]],attributes:_0x520fx19[_0xa01c[37]]}}):[]}}):[]}}):[]):[]})[_0xa01c[31]](function(_0x520fx15){logger[_0xa01c[24]](_0xa01c[45],_0x520fx11);logger[_0xa01c[27]](_0xa01c[45],_0x520fx11,JSON[_0xa01c[26]](_0x520fx15));_0x520fx12(_0x520fx15)})[_0xa01c[22]](function(_0x520fx14){logger[_0xa01c[21]](_0xa01c[45],_0x520fx14[_0xa01c[29]],_0x520fx11);_0x520fx13(_0x520fx16[_0xa01c[21]](500,_0x520fx14[_0xa01c[29]]))})})}
\ No newline at end of file
+var _0x36fa=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x62\x6C\x75\x65\x62\x69\x72\x64","\x72\x61\x6E\x64\x6F\x6D\x73\x74\x72\x69\x6E\x67","\x66\x73","\x64\x62","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x79\x73\x71\x6C\x64\x62","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C\x73","\x72\x70\x63","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x6A\x61\x79\x73\x6F\x6E\x2F\x70\x72\x6F\x6D\x69\x73\x65","\x68\x74\x74\x70","\x63\x6C\x69\x65\x6E\x74","\x6C\x6F\x63\x61\x6C\x68\x6F\x73\x74","\x73\x6F\x63\x6B\x65\x74\x2E\x69\x6F\x2D\x65\x6D\x69\x74\x74\x65\x72","\x72\x65\x67\x69\x73\x74\x65\x72","\x2E\x2F\x6D\x61\x69\x6C\x51\x75\x65\x75\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x2C\x20\x25\x73\x2C\x20\x25\x73","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x72\x65\x71\x75\x65\x73\x74\x20\x73\x65\x6E\x74","\x69\x6E\x66\x6F","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x2C\x20\x25\x73\x2C\x20\x25\x73\x2C\x20\x25\x73","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x64\x65\x62\x75\x67","\x63\x6F\x64\x65","\x6D\x65\x73\x73\x61\x67\x65","\x72\x65\x73\x75\x6C\x74","\x74\x68\x65\x6E","\x72\x65\x71\x75\x65\x73\x74","\x47\x65\x74\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x6F\x70\x74\x69\x6F\x6E\x73","\x72\x61\x77","\x77\x68\x65\x72\x65","\x61\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x6C\x69\x6D\x69\x74","\x69\x6E\x63\x6C\x75\x64\x65","\x6D\x6F\x64\x65\x6C","\x61\x73","\x6D\x61\x70","\x66\x69\x6E\x64\x41\x6C\x6C","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x53\x68\x6F\x77\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x66\x69\x6E\x64"];_0x36fa[0];var _=require(_0x36fa[1]);var util=require(_0x36fa[2]);var moment=require(_0x36fa[3]);var BPromise=require(_0x36fa[4]);var rs=require(_0x36fa[5]);var fs=require(_0x36fa[6]);var db=require(_0x36fa[8])[_0x36fa[7]];var utils=require(_0x36fa[9]);var logger=require(_0x36fa[11])(_0x36fa[10]);var config=require(_0x36fa[12]);var jayson=require(_0x36fa[13]);var client=jayson[_0x36fa[15]][_0x36fa[14]]({port:9002});var socket=require(_0x36fa[17])({host:_0x36fa[16],port:6379});require(_0x36fa[19])[_0x36fa[18]](socket);function respondWithRpcPromise(_0x9665xf,_0x9665x10,_0x9665x11){return  new BPromise(function(_0x9665x12,_0x9665x13){return client[_0x36fa[32]](_0x9665xf,_0x9665x11)[_0x36fa[31]](function(_0x9665x15){logger[_0x36fa[24]](_0x36fa[20],_0x9665x10,_0x36fa[23]);logger[_0x36fa[27]](_0x36fa[25],_0x9665x10,_0x36fa[23],JSON[_0x36fa[26]](_0x9665x15));if(_0x9665x15[_0x36fa[21]]){if(_0x9665x15[_0x36fa[21]][_0x36fa[28]]=== 500){logger[_0x36fa[21]](_0x36fa[20],_0x9665x10,_0x9665x15[_0x36fa[21]][_0x36fa[29]]);return _0x9665x13(_0x9665x15[_0x36fa[21]][_0x36fa[29]])};logger[_0x36fa[21]](_0x36fa[20],_0x9665x10,_0x9665x15[_0x36fa[21]][_0x36fa[29]]);return _0x9665x12(_0x9665x15[_0x36fa[21]][_0x36fa[29]])}else {logger[_0x36fa[24]](_0x36fa[20],_0x9665x10,_0x36fa[23]);_0x9665x12(_0x9665x15[_0x36fa[30]][_0x36fa[29]])}})[_0x36fa[22]](function(_0x9665x14){logger[_0x36fa[21]](_0x36fa[20],_0x9665x10,_0x9665x14);_0x9665x13(_0x9665x14)})})}exports[_0x36fa[33]]= function(_0x9665x11){var _0x9665x16=this;return  new Promise(function(_0x9665x12,_0x9665x13){return db[_0x36fa[44]][_0x36fa[43]]({raw:_0x9665x11[_0x36fa[34]]?(_0x9665x11[_0x36fa[34]][_0x36fa[35]]=== undefined)?true:false:true,where:_0x9665x11[_0x36fa[34]]?_0x9665x11[_0x36fa[34]][_0x36fa[36]]|| null:null,attributes:_0x9665x11[_0x36fa[34]]?_0x9665x11[_0x36fa[34]][_0x36fa[37]]|| null:null,limit:_0x9665x11[_0x36fa[34]]?_0x9665x11[_0x36fa[34]][_0x36fa[38]]|| null:null,include:_0x9665x11[_0x36fa[34]]?(_0x9665x11[_0x36fa[34]][_0x36fa[39]]?_[_0x36fa[42]](_0x9665x11[_0x36fa[34]][_0x36fa[39]],function(_0x9665x17){return {model:db[_0x9665x17[_0x36fa[40]]],as:_0x9665x17[_0x36fa[41]],attributes:_0x9665x17[_0x36fa[37]],include:_0x9665x17[_0x36fa[39]]?_[_0x36fa[42]](_0x9665x17[_0x36fa[39]],function(_0x9665x18){return {model:db[_0x9665x18[_0x36fa[40]]],as:_0x9665x18[_0x36fa[41]],attributes:_0x9665x18[_0x36fa[37]],include:_0x9665x18[_0x36fa[39]]?_[_0x36fa[42]](_0x9665x18[_0x36fa[39]],function(_0x9665x19){return {model:db[_0x9665x19[_0x36fa[40]]],as:_0x9665x19[_0x36fa[41]],attributes:_0x9665x19[_0x36fa[37]]}}):[]}}):[]}}):[]):[]})[_0x36fa[31]](function(_0x9665x15){logger[_0x36fa[24]](_0x36fa[33],_0x9665x11);logger[_0x36fa[27]](_0x36fa[33],_0x9665x11,JSON[_0x36fa[26]](_0x9665x15));_0x9665x12(_0x9665x15)})[_0x36fa[22]](function(_0x9665x14){logger[_0x36fa[21]](_0x36fa[33],_0x9665x14[_0x36fa[29]],_0x9665x11);_0x9665x13(_0x9665x16[_0x36fa[21]](500,_0x9665x14[_0x36fa[29]]))})})};exports[_0x36fa[45]]= function(_0x9665x11){var _0x9665x16=this;return  new Promise(function(_0x9665x12,_0x9665x13){return db[_0x36fa[44]][_0x36fa[46]]({raw:_0x9665x11[_0x36fa[34]]?(_0x9665x11[_0x36fa[34]][_0x36fa[35]]=== undefined)?true:false:true,where:_0x9665x11[_0x36fa[34]]?_0x9665x11[_0x36fa[34]][_0x36fa[36]]|| null:null,attributes:_0x9665x11[_0x36fa[34]]?_0x9665x11[_0x36fa[34]][_0x36fa[37]]|| null:null,include:_0x9665x11[_0x36fa[34]]?(_0x9665x11[_0x36fa[34]][_0x36fa[39]]?_[_0x36fa[42]](_0x9665x11[_0x36fa[34]][_0x36fa[39]],function(_0x9665x17){return {model:db[_0x9665x17[_0x36fa[40]]],as:_0x9665x17[_0x36fa[41]],attributes:_0x9665x17[_0x36fa[37]],include:_0x9665x17[_0x36fa[39]]?_[_0x36fa[42]](_0x9665x17[_0x36fa[39]],function(_0x9665x18){return {model:db[_0x9665x18[_0x36fa[40]]],as:_0x9665x18[_0x36fa[41]],attributes:_0x9665x18[_0x36fa[37]],include:_0x9665x18[_0x36fa[39]]?_[_0x36fa[42]](_0x9665x18[_0x36fa[39]],function(_0x9665x19){return {model:db[_0x9665x19[_0x36fa[40]]],as:_0x9665x19[_0x36fa[41]],attributes:_0x9665x19[_0x36fa[37]]}}):[]}}):[]}}):[]):[]})[_0x36fa[31]](function(_0x9665x15){logger[_0x36fa[24]](_0x36fa[45],_0x9665x11);logger[_0x36fa[27]](_0x36fa[45],_0x9665x11,JSON[_0x36fa[26]](_0x9665x15));_0x9665x12(_0x9665x15)})[_0x36fa[22]](function(_0x9665x14){logger[_0x36fa[21]](_0x36fa[45],_0x9665x14[_0x36fa[29]],_0x9665x11);_0x9665x13(_0x9665x16[_0x36fa[21]](500,_0x9665x14[_0x36fa[29]]))})})}
\ No newline at end of file