Built motion from commit 67e5df37.|2.0.60
[motion2.git] / server / api / chatQueue / chatQueue.rpc.js
index 0374bb5..8321232 100644 (file)
@@ -1 +1 @@
-var _0x5fba=["\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\x63\x68\x61\x74\x51\x75\x65\x75\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x43\x68\x61\x74\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","\x43\x68\x61\x74\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\x43\x68\x61\x74\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","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x53\x68\x6F\x77\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x66\x69\x6E\x64"];_0x5fba[0];var _=require(_0x5fba[1]);var util=require(_0x5fba[2]);var moment=require(_0x5fba[3]);var BPromise=require(_0x5fba[4]);var rs=require(_0x5fba[5]);var fs=require(_0x5fba[6]);var db=require(_0x5fba[8])[_0x5fba[7]];var utils=require(_0x5fba[9]);var logger=require(_0x5fba[11])(_0x5fba[10]);var config=require(_0x5fba[12]);var jayson=require(_0x5fba[13]);var client=jayson[_0x5fba[15]][_0x5fba[14]]({port:9002});var socket=require(_0x5fba[17])({host:_0x5fba[16],port:6379});require(_0x5fba[19])[_0x5fba[18]](socket);function respondWithRpcPromise(_0xb9faxf,_0xb9fax10,_0xb9fax11){return  new BPromise(function(_0xb9fax12,_0xb9fax13){return client[_0x5fba[32]](_0xb9faxf,_0xb9fax11)[_0x5fba[31]](function(_0xb9fax15){logger[_0x5fba[24]](_0x5fba[20],_0xb9fax10,_0x5fba[23]);logger[_0x5fba[27]](_0x5fba[25],_0xb9fax10,_0x5fba[23],JSON[_0x5fba[26]](_0xb9fax15));if(_0xb9fax15[_0x5fba[21]]){if(_0xb9fax15[_0x5fba[21]][_0x5fba[28]]=== 500){logger[_0x5fba[21]](_0x5fba[20],_0xb9fax10,_0xb9fax15[_0x5fba[21]][_0x5fba[29]]);return _0xb9fax13(_0xb9fax15[_0x5fba[21]][_0x5fba[29]])};logger[_0x5fba[21]](_0x5fba[20],_0xb9fax10,_0xb9fax15[_0x5fba[21]][_0x5fba[29]]);return _0xb9fax12(_0xb9fax15[_0x5fba[21]][_0x5fba[29]])}else {logger[_0x5fba[24]](_0x5fba[20],_0xb9fax10,_0x5fba[23]);_0xb9fax12(_0xb9fax15[_0x5fba[30]][_0x5fba[29]])}})[_0x5fba[22]](function(_0xb9fax14){logger[_0x5fba[21]](_0x5fba[20],_0xb9fax10,_0xb9fax14);_0xb9fax13(_0xb9fax14)})})}exports[_0x5fba[33]]= function(_0xb9fax11){var _0xb9fax16=this;return  new Promise(function(_0xb9fax12,_0xb9fax13){return db[_0x5fba[44]][_0x5fba[43]]({raw:_0xb9fax11[_0x5fba[34]]?(_0xb9fax11[_0x5fba[34]][_0x5fba[35]]=== undefined)?true:false:true,where:_0xb9fax11[_0x5fba[34]]?_0xb9fax11[_0x5fba[34]][_0x5fba[36]]|| null:null,attributes:_0xb9fax11[_0x5fba[34]]?_0xb9fax11[_0x5fba[34]][_0x5fba[37]]|| null:null,limit:_0xb9fax11[_0x5fba[34]]?_0xb9fax11[_0x5fba[34]][_0x5fba[38]]|| null:null,include:_0xb9fax11[_0x5fba[34]]?(_0xb9fax11[_0x5fba[34]][_0x5fba[39]]?_[_0x5fba[42]](_0xb9fax11[_0x5fba[34]][_0x5fba[39]],function(_0xb9fax17){return {model:db[_0xb9fax17[_0x5fba[40]]],as:_0xb9fax17[_0x5fba[41]],attributes:_0xb9fax17[_0x5fba[37]],include:_0xb9fax17[_0x5fba[39]]?_[_0x5fba[42]](_0xb9fax17[_0x5fba[39]],function(_0xb9fax18){return {model:db[_0xb9fax18[_0x5fba[40]]],as:_0xb9fax18[_0x5fba[41]],attributes:_0xb9fax18[_0x5fba[37]],include:_0xb9fax18[_0x5fba[39]]?_[_0x5fba[42]](_0xb9fax18[_0x5fba[39]],function(_0xb9fax19){return {model:db[_0xb9fax19[_0x5fba[40]]],as:_0xb9fax19[_0x5fba[41]],attributes:_0xb9fax19[_0x5fba[37]]}}):[]}}):[]}}):[]):[]})[_0x5fba[31]](function(_0xb9fax15){logger[_0x5fba[24]](_0x5fba[33],_0xb9fax11);logger[_0x5fba[27]](_0x5fba[33],_0xb9fax11,JSON[_0x5fba[26]](_0xb9fax15));_0xb9fax12(_0xb9fax15)})[_0x5fba[22]](function(_0xb9fax14){logger[_0x5fba[21]](_0x5fba[33],_0xb9fax14[_0x5fba[29]],_0xb9fax11);_0xb9fax13(_0xb9fax16[_0x5fba[21]](500,_0xb9fax14[_0x5fba[29]]))})})};exports[_0x5fba[45]]= function(_0xb9fax11){var _0xb9fax16=this;return  new Promise(function(_0xb9fax12,_0xb9fax13){return db[_0x5fba[44]][_0x5fba[46]]({raw:_0xb9fax11[_0x5fba[34]]?(_0xb9fax11[_0x5fba[34]][_0x5fba[35]]=== undefined)?true:false:true,where:_0xb9fax11[_0x5fba[34]]?_0xb9fax11[_0x5fba[34]][_0x5fba[36]]|| null:null,attributes:_0xb9fax11[_0x5fba[34]]?_0xb9fax11[_0x5fba[34]][_0x5fba[37]]|| null:null,include:_0xb9fax11[_0x5fba[34]]?(_0xb9fax11[_0x5fba[34]][_0x5fba[39]]?_[_0x5fba[42]](_0xb9fax11[_0x5fba[34]][_0x5fba[39]],function(_0xb9fax17){return {model:db[_0xb9fax17[_0x5fba[40]]],as:_0xb9fax17[_0x5fba[41]],attributes:_0xb9fax17[_0x5fba[37]],include:_0xb9fax17[_0x5fba[39]]?_[_0x5fba[42]](_0xb9fax17[_0x5fba[39]],function(_0xb9fax18){return {model:db[_0xb9fax18[_0x5fba[40]]],as:_0xb9fax18[_0x5fba[41]],attributes:_0xb9fax18[_0x5fba[37]],include:_0xb9fax18[_0x5fba[39]]?_[_0x5fba[42]](_0xb9fax18[_0x5fba[39]],function(_0xb9fax19){return {model:db[_0xb9fax19[_0x5fba[40]]],as:_0xb9fax19[_0x5fba[41]],attributes:_0xb9fax19[_0x5fba[37]]}}):[]}}):[]}}):[]):[]})[_0x5fba[31]](function(_0xb9fax15){logger[_0x5fba[24]](_0x5fba[45],_0xb9fax11);logger[_0x5fba[27]](_0x5fba[45],_0xb9fax11,JSON[_0x5fba[26]](_0xb9fax15));_0xb9fax12(_0xb9fax15)})[_0x5fba[22]](function(_0xb9fax14){logger[_0x5fba[21]](_0x5fba[45],_0xb9fax14[_0x5fba[29]],_0xb9fax11);_0xb9fax13(_0xb9fax16[_0x5fba[21]](500,_0xb9fax14[_0x5fba[29]]))})})}
\ No newline at end of file
+var _0xc53c=["\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\x63\x68\x61\x74\x51\x75\x65\x75\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x43\x68\x61\x74\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","\x43\x68\x61\x74\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\x43\x68\x61\x74\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","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x53\x68\x6F\x77\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x66\x69\x6E\x64"];_0xc53c[0];var _=require(_0xc53c[1]);var util=require(_0xc53c[2]);var moment=require(_0xc53c[3]);var BPromise=require(_0xc53c[4]);var rs=require(_0xc53c[5]);var fs=require(_0xc53c[6]);var db=require(_0xc53c[8])[_0xc53c[7]];var utils=require(_0xc53c[9]);var logger=require(_0xc53c[11])(_0xc53c[10]);var config=require(_0xc53c[12]);var jayson=require(_0xc53c[13]);var client=jayson[_0xc53c[15]][_0xc53c[14]]({port:9002});var socket=require(_0xc53c[17])({host:_0xc53c[16],port:6379});require(_0xc53c[19])[_0xc53c[18]](socket);function respondWithRpcPromise(_0x718fxf,_0x718fx10,_0x718fx11){return  new BPromise(function(_0x718fx12,_0x718fx13){return client[_0xc53c[32]](_0x718fxf,_0x718fx11)[_0xc53c[31]](function(_0x718fx15){logger[_0xc53c[24]](_0xc53c[20],_0x718fx10,_0xc53c[23]);logger[_0xc53c[27]](_0xc53c[25],_0x718fx10,_0xc53c[23],JSON[_0xc53c[26]](_0x718fx15));if(_0x718fx15[_0xc53c[21]]){if(_0x718fx15[_0xc53c[21]][_0xc53c[28]]=== 500){logger[_0xc53c[21]](_0xc53c[20],_0x718fx10,_0x718fx15[_0xc53c[21]][_0xc53c[29]]);return _0x718fx13(_0x718fx15[_0xc53c[21]][_0xc53c[29]])};logger[_0xc53c[21]](_0xc53c[20],_0x718fx10,_0x718fx15[_0xc53c[21]][_0xc53c[29]]);return _0x718fx12(_0x718fx15[_0xc53c[21]][_0xc53c[29]])}else {logger[_0xc53c[24]](_0xc53c[20],_0x718fx10,_0xc53c[23]);_0x718fx12(_0x718fx15[_0xc53c[30]][_0xc53c[29]])}})[_0xc53c[22]](function(_0x718fx14){logger[_0xc53c[21]](_0xc53c[20],_0x718fx10,_0x718fx14);_0x718fx13(_0x718fx14)})})}exports[_0xc53c[33]]= function(_0x718fx11){var _0x718fx16=this;return  new Promise(function(_0x718fx12,_0x718fx13){return db[_0xc53c[44]][_0xc53c[43]]({raw:_0x718fx11[_0xc53c[34]]?(_0x718fx11[_0xc53c[34]][_0xc53c[35]]=== undefined)?true:false:true,where:_0x718fx11[_0xc53c[34]]?_0x718fx11[_0xc53c[34]][_0xc53c[36]]|| null:null,attributes:_0x718fx11[_0xc53c[34]]?_0x718fx11[_0xc53c[34]][_0xc53c[37]]|| null:null,limit:_0x718fx11[_0xc53c[34]]?_0x718fx11[_0xc53c[34]][_0xc53c[38]]|| null:null,include:_0x718fx11[_0xc53c[34]]?(_0x718fx11[_0xc53c[34]][_0xc53c[39]]?_[_0xc53c[42]](_0x718fx11[_0xc53c[34]][_0xc53c[39]],function(_0x718fx17){return {model:db[_0x718fx17[_0xc53c[40]]],as:_0x718fx17[_0xc53c[41]],attributes:_0x718fx17[_0xc53c[37]],include:_0x718fx17[_0xc53c[39]]?_[_0xc53c[42]](_0x718fx17[_0xc53c[39]],function(_0x718fx18){return {model:db[_0x718fx18[_0xc53c[40]]],as:_0x718fx18[_0xc53c[41]],attributes:_0x718fx18[_0xc53c[37]],include:_0x718fx18[_0xc53c[39]]?_[_0xc53c[42]](_0x718fx18[_0xc53c[39]],function(_0x718fx19){return {model:db[_0x718fx19[_0xc53c[40]]],as:_0x718fx19[_0xc53c[41]],attributes:_0x718fx19[_0xc53c[37]]}}):[]}}):[]}}):[]):[]})[_0xc53c[31]](function(_0x718fx15){logger[_0xc53c[24]](_0xc53c[33],_0x718fx11);logger[_0xc53c[27]](_0xc53c[33],_0x718fx11,JSON[_0xc53c[26]](_0x718fx15));_0x718fx12(_0x718fx15)})[_0xc53c[22]](function(_0x718fx14){logger[_0xc53c[21]](_0xc53c[33],_0x718fx14[_0xc53c[29]],_0x718fx11);_0x718fx13(_0x718fx16[_0xc53c[21]](500,_0x718fx14[_0xc53c[29]]))})})};exports[_0xc53c[45]]= function(_0x718fx11){var _0x718fx16=this;return  new Promise(function(_0x718fx12,_0x718fx13){return db[_0xc53c[44]][_0xc53c[46]]({raw:_0x718fx11[_0xc53c[34]]?(_0x718fx11[_0xc53c[34]][_0xc53c[35]]=== undefined)?true:false:true,where:_0x718fx11[_0xc53c[34]]?_0x718fx11[_0xc53c[34]][_0xc53c[36]]|| null:null,attributes:_0x718fx11[_0xc53c[34]]?_0x718fx11[_0xc53c[34]][_0xc53c[37]]|| null:null,include:_0x718fx11[_0xc53c[34]]?(_0x718fx11[_0xc53c[34]][_0xc53c[39]]?_[_0xc53c[42]](_0x718fx11[_0xc53c[34]][_0xc53c[39]],function(_0x718fx17){return {model:db[_0x718fx17[_0xc53c[40]]],as:_0x718fx17[_0xc53c[41]],attributes:_0x718fx17[_0xc53c[37]],include:_0x718fx17[_0xc53c[39]]?_[_0xc53c[42]](_0x718fx17[_0xc53c[39]],function(_0x718fx18){return {model:db[_0x718fx18[_0xc53c[40]]],as:_0x718fx18[_0xc53c[41]],attributes:_0x718fx18[_0xc53c[37]],include:_0x718fx18[_0xc53c[39]]?_[_0xc53c[42]](_0x718fx18[_0xc53c[39]],function(_0x718fx19){return {model:db[_0x718fx19[_0xc53c[40]]],as:_0x718fx19[_0xc53c[41]],attributes:_0x718fx19[_0xc53c[37]]}}):[]}}):[]}}):[]):[]})[_0xc53c[31]](function(_0x718fx15){logger[_0xc53c[24]](_0xc53c[45],_0x718fx11);logger[_0xc53c[27]](_0xc53c[45],_0x718fx11,JSON[_0xc53c[26]](_0x718fx15));_0x718fx12(_0x718fx15)})[_0xc53c[22]](function(_0x718fx14){logger[_0xc53c[21]](_0xc53c[45],_0x718fx14[_0xc53c[29]],_0x718fx11);_0x718fx13(_0x718fx16[_0xc53c[21]](500,_0x718fx14[_0xc53c[29]]))})})}
\ No newline at end of file