Built motion from commit 344422e17.|1.0.22
[motion.git] / server / config / forked_routing / fax / index.js
index 9aac1c3..a792f66 100644 (file)
@@ -1 +1 @@
-var _0x1659=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x72\x65\x64\x69\x73","\x61\x73\x79\x6E\x63","\x2E\x2E\x2F\x2E\x2E\x2F\x75\x74\x69\x6C","\x66\x61\x78","\x2E\x2E\x2F\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x72\x65\x64\x69\x73\x50\x77\x64","\x69\x70","\x63\x72\x65\x61\x74\x65\x43\x6C\x69\x65\x6E\x74","\x73\x6F\x63\x6B\x65\x74\x2E\x69\x6F\x2D\x65\x6D\x69\x74\x74\x65\x72","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x45\x4E\x44\x20\x53\x43\x48\x45\x44\x55\x4C\x45\x52\x20\x49\x4E\x53\x54\x41\x4E\x43\x45\x20\x46\x4F\x52\x20\x46\x41\x58\x20\x4D\x45\x53\x53\x41\x47\x45\x20\x25\x64\x20\x28\x45\x52\x52\x4F\x52\x29","\x6D\x65\x73\x73\x61\x67\x65\x69\x64","\x66\x6F\x72\x6D\x61\x74","\x65\x78\x69\x74","\x45\x4E\x44\x20\x53\x43\x48\x45\x44\x55\x4C\x45\x52\x20\x49\x4E\x53\x54\x41\x4E\x43\x45\x20\x46\x4F\x52\x20\x46\x41\x58\x20\x4D\x45\x53\x53\x41\x47\x45\x20\x25\x64\x20\x28\x4E\x4F\x20\x41\x4E\x53\x57\x45\x52\x29","\x69\x6E\x66\x6F","\x73\x65\x72\x69\x65\x73","\x74\x68\x65\x6E","\x6C\x65\x6E\x67\x74\x68","\x67\x65\x74","\x69\x6E\x74\x65\x72\x76\x61\x6C","\x73\x70\x6C\x69\x74\x49\x6E\x74\x65\x72\x76\x61\x6C","\x69\x73\x56\x61\x6C\x69\x64\x49\x6E\x74\x65\x72\x76\x61\x6C","\x73\x6F\x6D\x65","\x2E\x2F\x25\x73","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x61\x70\x70","\x70\x75\x73\x68","\x43\x52\x45\x41\x54\x45\x20\x53\x43\x48\x45\x44\x55\x4C\x45\x52\x20\x49\x4E\x53\x54\x41\x4E\x43\x45\x20\x46\x4F\x52\x20\x41\x43\x43\x4F\x55\x4E\x54\x20\x25\x73\x20\x4D\x45\x53\x53\x41\x47\x45\x20\x49\x44\x20\x25\x64","\x6E\x61\x6D\x65","\x46\x61\x78\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2E\x70\x72\x69\x6F\x72\x69\x74\x79\x20\x41\x53\x43","\x53\x75\x62\x49\x6E\x74\x65\x72\x76\x61\x6C\x73","\x67\x65\x74\x46\x61\x78\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x61\x63\x63\x6F\x75\x6E\x74\x69\x64","\x69\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x75\x6E\x63\x61\x75\x67\x68\x74\x45\x78\x63\x65\x70\x74\x69\x6F\x6E","\x6F\x6E","\x6D\x65\x73\x73\x61\x67\x65","\x53\x54\x41\x52\x54\x20\x52\x4F\x55\x54\x49\x4E\x47\x20\x46\x4F\x52\x20\x46\x41\x58\x20\x4D\x45\x53\x53\x41\x47\x45\x20\x25\x64","\x70\x61\x72\x61\x6D\x31","\x70\x61\x72\x61\x6D\x32","\x73\x74\x61\x72\x74","\x53\x54\x4F\x50\x20\x52\x4F\x55\x54\x49\x4E\x47\x20\x46\x4F\x52\x20\x46\x41\x58\x20\x4D\x45\x53\x53\x41\x47\x45\x20\x25\x64\x20\x28\x41\x43\x43\x45\x50\x54\x45\x44\x20\x42\x59\x20\x41\x47\x45\x4E\x54\x20\x25\x73\x29","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x73\x74\x6F\x70","\x74\x79\x70\x65"];_0x1659[0];var _data;var _message;var _callback;var _series=[];var _=require(_0x1659[1]);var util=require(_0x1659[2]);var redis=require(_0x1659[3]);var async=require(_0x1659[4]);var MyUtil=require(_0x1659[5]);var logger=require(_0x1659[7])(_0x1659[6]);var Account=require(_0x1659[9])[_0x1659[8]];var Interval=require(_0x1659[9])[_0x1659[10]];var config=require(_0x1659[11]);var redisConf;if(config[_0x1659[12]]){redisConf= {password:config[_0x1659[12]]}};var redisClient=redis[_0x1659[14]](6379,config[_0x1659[13]],redisConf);var io=require(_0x1659[15])(redisClient);function start(){return Account[_0x1659[44]](_data[_0x1659[42]],{attributes:[_0x1659[43],_0x1659[38]]})[_0x1659[26]](function(_0xf687x19){logger[_0x1659[24]](util[_0x1659[21]](_0x1659[37],_0xf687x19[_0x1659[38]],_data[_0x1659[20]]));return _0xf687x19[_0x1659[41]]({order:_0x1659[39],include:[{model:Interval,attributes:[_0x1659[29]],include:[{model:Interval,as:_0x1659[40],attributes:[_0x1659[29]]}]}]})})[_0x1659[26]](function(_0xf687x13){for(var _0xf687x14=0;_0xf687x14< _0xf687x13[_0x1659[27]];_0xf687x14++){var _0xf687x15=false;var _0xf687x16=_0xf687x13[_0xf687x14][_0x1659[28]]({plain:true});if(_0xf687x16[_0x1659[10]]){if(_[_0x1659[32]](_0xf687x16[_0x1659[10]].SubIntervals,function(_0xf687x17){return MyUtil[_0x1659[31]](MyUtil[_0x1659[30]](_0xf687x17[_0x1659[29]]))})){_0xf687x15= true}}else {if(_0xf687x16[_0x1659[29]]){if(MyUtil[_0x1659[31]](MyUtil[_0x1659[30]](_0xf687x16[_0x1659[29]]))){_0xf687x15= true}}};if(_0xf687x15){_series[_0x1659[36]]((function(_0xf687x16,_data,_message,io){return function(_0xf687x18){require(util[_0x1659[21]](_0x1659[33],_0xf687x16[_0x1659[35]][_0x1659[34]]()))(_0xf687x16,_data,_message,io,_0xf687x18)}})(_0xf687x16,_data,_message,io))}}})[_0x1659[26]](function(){async[_0x1659[25]](_series,function(_0xf687x12){if(_0xf687x12){logger[_0x1659[17]](util[_0x1659[21]](_0x1659[19],_data[_0x1659[20]]));logger[_0x1659[17]](_0xf687x12);process[_0x1659[22]](0)}else {logger[_0x1659[24]](util[_0x1659[21]](_0x1659[23],_data[_0x1659[20]]));process[_0x1659[22]](1)}})})[_0x1659[18]](function(_0xf687x12){logger[_0x1659[17]](_0xf687x12[_0x1659[16]])})}process[_0x1659[46]](_0x1659[45],function(_0xf687x12){if(_0xf687x12){logger[_0x1659[17]](_0xf687x12)}});process[_0x1659[46]](_0x1659[47],function(_0xf687x1a){switch(_0xf687x1a[_0x1659[55]]){case _0x1659[51]:logger[_0x1659[24]](util[_0x1659[21]](_0x1659[48],_0xf687x1a[_0x1659[49]][_0x1659[20]]));_data= _0xf687x1a[_0x1659[49]];_message= _0xf687x1a[_0x1659[50]];start();break;case _0x1659[54]:logger[_0x1659[24]](util[_0x1659[21]](_0x1659[52],_data[_0x1659[20]],_0xf687x1a[_0x1659[53]]));process[_0x1659[22]](0);break;default:}})
\ No newline at end of file
+var _0x1c82=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x72\x65\x64\x69\x73","\x61\x73\x79\x6E\x63","\x2E\x2E\x2F\x2E\x2E\x2F\x75\x74\x69\x6C","\x66\x61\x78","\x2E\x2E\x2F\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x72\x65\x64\x69\x73\x50\x77\x64","\x69\x70","\x63\x72\x65\x61\x74\x65\x43\x6C\x69\x65\x6E\x74","\x73\x6F\x63\x6B\x65\x74\x2E\x69\x6F\x2D\x65\x6D\x69\x74\x74\x65\x72","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x45\x4E\x44\x20\x53\x43\x48\x45\x44\x55\x4C\x45\x52\x20\x49\x4E\x53\x54\x41\x4E\x43\x45\x20\x46\x4F\x52\x20\x46\x41\x58\x20\x4D\x45\x53\x53\x41\x47\x45\x20\x25\x64\x20\x28\x45\x52\x52\x4F\x52\x29","\x6D\x65\x73\x73\x61\x67\x65\x69\x64","\x66\x6F\x72\x6D\x61\x74","\x65\x78\x69\x74","\x45\x4E\x44\x20\x53\x43\x48\x45\x44\x55\x4C\x45\x52\x20\x49\x4E\x53\x54\x41\x4E\x43\x45\x20\x46\x4F\x52\x20\x46\x41\x58\x20\x4D\x45\x53\x53\x41\x47\x45\x20\x25\x64\x20\x28\x4E\x4F\x20\x41\x4E\x53\x57\x45\x52\x29","\x69\x6E\x66\x6F","\x73\x65\x72\x69\x65\x73","\x74\x68\x65\x6E","\x6C\x65\x6E\x67\x74\x68","\x67\x65\x74","\x69\x6E\x74\x65\x72\x76\x61\x6C","\x73\x70\x6C\x69\x74\x49\x6E\x74\x65\x72\x76\x61\x6C","\x69\x73\x56\x61\x6C\x69\x64\x49\x6E\x74\x65\x72\x76\x61\x6C","\x73\x6F\x6D\x65","\x2E\x2F\x25\x73","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x61\x70\x70","\x70\x75\x73\x68","\x43\x52\x45\x41\x54\x45\x20\x53\x43\x48\x45\x44\x55\x4C\x45\x52\x20\x49\x4E\x53\x54\x41\x4E\x43\x45\x20\x46\x4F\x52\x20\x41\x43\x43\x4F\x55\x4E\x54\x20\x25\x73\x20\x4D\x45\x53\x53\x41\x47\x45\x20\x49\x44\x20\x25\x64","\x6E\x61\x6D\x65","\x46\x61\x78\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2E\x70\x72\x69\x6F\x72\x69\x74\x79\x20\x41\x53\x43","\x53\x75\x62\x49\x6E\x74\x65\x72\x76\x61\x6C\x73","\x67\x65\x74\x46\x61\x78\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x61\x63\x63\x6F\x75\x6E\x74\x69\x64","\x69\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x75\x6E\x63\x61\x75\x67\x68\x74\x45\x78\x63\x65\x70\x74\x69\x6F\x6E","\x6F\x6E","\x6D\x65\x73\x73\x61\x67\x65","\x53\x54\x41\x52\x54\x20\x52\x4F\x55\x54\x49\x4E\x47\x20\x46\x4F\x52\x20\x46\x41\x58\x20\x4D\x45\x53\x53\x41\x47\x45\x20\x25\x64","\x70\x61\x72\x61\x6D\x31","\x70\x61\x72\x61\x6D\x32","\x73\x74\x61\x72\x74","\x53\x54\x4F\x50\x20\x52\x4F\x55\x54\x49\x4E\x47\x20\x46\x4F\x52\x20\x46\x41\x58\x20\x4D\x45\x53\x53\x41\x47\x45\x20\x25\x64\x20\x28\x41\x43\x43\x45\x50\x54\x45\x44\x20\x42\x59\x20\x41\x47\x45\x4E\x54\x20\x25\x73\x29","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x73\x74\x6F\x70","\x74\x79\x70\x65"];_0x1c82[0];var _data;var _message;var _callback;var _series=[];var _=require(_0x1c82[1]);var util=require(_0x1c82[2]);var redis=require(_0x1c82[3]);var async=require(_0x1c82[4]);var MyUtil=require(_0x1c82[5]);var logger=require(_0x1c82[7])(_0x1c82[6]);var Account=require(_0x1c82[9])[_0x1c82[8]];var Interval=require(_0x1c82[9])[_0x1c82[10]];var config=require(_0x1c82[11]);var redisConf;if(config[_0x1c82[12]]){redisConf= {password:config[_0x1c82[12]]}};var redisClient=redis[_0x1c82[14]](6379,config[_0x1c82[13]],redisConf);var io=require(_0x1c82[15])(redisClient);function start(){return Account[_0x1c82[44]](_data[_0x1c82[42]],{attributes:[_0x1c82[43],_0x1c82[38]]})[_0x1c82[26]](function(_0x9704x19){logger[_0x1c82[24]](util[_0x1c82[21]](_0x1c82[37],_0x9704x19[_0x1c82[38]],_data[_0x1c82[20]]));return _0x9704x19[_0x1c82[41]]({order:_0x1c82[39],include:[{model:Interval,attributes:[_0x1c82[29]],include:[{model:Interval,as:_0x1c82[40],attributes:[_0x1c82[29]]}]}]})})[_0x1c82[26]](function(_0x9704x13){for(var _0x9704x14=0;_0x9704x14< _0x9704x13[_0x1c82[27]];_0x9704x14++){var _0x9704x15=false;var _0x9704x16=_0x9704x13[_0x9704x14][_0x1c82[28]]({plain:true});if(_0x9704x16[_0x1c82[10]]){if(_[_0x1c82[32]](_0x9704x16[_0x1c82[10]].SubIntervals,function(_0x9704x17){return MyUtil[_0x1c82[31]](MyUtil[_0x1c82[30]](_0x9704x17[_0x1c82[29]]))})){_0x9704x15= true}}else {if(_0x9704x16[_0x1c82[29]]){if(MyUtil[_0x1c82[31]](MyUtil[_0x1c82[30]](_0x9704x16[_0x1c82[29]]))){_0x9704x15= true}}};if(_0x9704x15){_series[_0x1c82[36]]((function(_0x9704x16,_data,_message,io){return function(_0x9704x18){require(util[_0x1c82[21]](_0x1c82[33],_0x9704x16[_0x1c82[35]][_0x1c82[34]]()))(_0x9704x16,_data,_message,io,_0x9704x18)}})(_0x9704x16,_data,_message,io))}}})[_0x1c82[26]](function(){async[_0x1c82[25]](_series,function(_0x9704x12){if(_0x9704x12){logger[_0x1c82[17]](util[_0x1c82[21]](_0x1c82[19],_data[_0x1c82[20]]));logger[_0x1c82[17]](_0x9704x12);process[_0x1c82[22]](0)}else {logger[_0x1c82[24]](util[_0x1c82[21]](_0x1c82[23],_data[_0x1c82[20]]));process[_0x1c82[22]](1)}})})[_0x1c82[18]](function(_0x9704x12){logger[_0x1c82[17]](_0x9704x12[_0x1c82[16]])})}process[_0x1c82[46]](_0x1c82[45],function(_0x9704x12){if(_0x9704x12){logger[_0x1c82[17]](_0x9704x12)}});process[_0x1c82[46]](_0x1c82[47],function(_0x9704x1a){switch(_0x9704x1a[_0x1c82[55]]){case _0x1c82[51]:logger[_0x1c82[24]](util[_0x1c82[21]](_0x1c82[48],_0x9704x1a[_0x1c82[49]][_0x1c82[20]]));_data= _0x9704x1a[_0x1c82[49]];_message= _0x9704x1a[_0x1c82[50]];start();break;case _0x1c82[54]:logger[_0x1c82[24]](util[_0x1c82[21]](_0x1c82[52],_data[_0x1c82[20]],_0x9704x1a[_0x1c82[53]]));process[_0x1c82[22]](0);break;default:}})
\ No newline at end of file