Built motion from commit 52def3a.|0.0.67
[motion.git] / server / models / voice_queue.js
index 6a70051..2d8b1a8 100644 (file)
@@ -1 +1 @@
-var _0x52e4=["\x65\x78\x70\x6F\x72\x74\x73","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x53\x54\x52\x49\x4E\x47","\x64\x65\x66\x61\x75\x6C\x74","","\x72\x69\x6E\x67\x61\x6C\x6C","\x6C\x65\x61\x73\x74\x72\x65\x63\x65\x6E\x74","\x66\x65\x77\x65\x73\x74\x63\x61\x6C\x6C\x73","\x72\x61\x6E\x64\x6F\x6D","\x72\x72\x6D\x65\x6D\x6F\x72\x79","\x6C\x69\x6E\x65\x61\x72","\x77\x72\x61\x6E\x64\x6F\x6D","\x72\x72\x6F\x72\x64\x65\x72\x65\x64","\x79\x65\x73","\x6E\x6F","\x61\x6C\x6C","\x6F\x6E\x63\x65","\x30","\x35","\x31\x30","\x31\x35","\x32\x30","\x33\x30","\x42\x4F\x4F\x4C\x45\x41\x4E","\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x73","\x55\x73\x65\x72\x48\x61\x73\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x71\x75\x65\x75\x65","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65","\x6E\x61\x6D\x65","\x63\x68\x61\x6E\x67\x65\x64","\x59\x6F\x75\x20\x63\x61\x6E\x27\x74\x20\x6D\x6F\x64\x69\x66\x79\x20\x61\x20\x71\x75\x65\x75\x65\x20\x6E\x61\x6D\x65","\x62\x65\x66\x6F\x72\x65\x55\x70\x64\x61\x74\x65"];module[_0x52e4[0]]=function(_0x5c51x1,_0x5c51x2){var _0x5c51x3=_0x5c51x1[_0x52e4[28]](_0x52e4[1],{name:{type:_0x5c51x2[_0x52e4[2]],primaryKey:true,unique:true,validate:{notEmpty:true,is:/^[A-Za-z0-9\.\_]+$/i}},musiconhold:{type:_0x5c51x2[_0x52e4[2]],allowNull:true,defaultValue:_0x52e4[3]},announce:{type:_0x5c51x2[_0x52e4[2]],allowNull:true,defaultValue:_0x52e4[4]},strategy:{type:_0x5c51x2.ENUM(_0x52e4[5],_0x52e4[6],_0x52e4[7],_0x52e4[8],_0x52e4[9],_0x52e4[10],_0x52e4[11],_0x52e4[12]),allowNull:false,defaultValue:_0x52e4[5]},servicelevel:{type:_0x5c51x2.INTEGER(11),allowNull:true,defaultValue:0},context:{type:_0x5c51x2[_0x52e4[2]],allowNull:true,defaultValue:null},penaltymemberslimit:{type:_0x5c51x2.INTEGER(11),allowNull:true},timeout:{type:_0x5c51x2.INTEGER(11),allowNull:true,defaultValue:0},retry:{type:_0x5c51x2.INTEGER(11),allowNull:true,defaultValue:0},timeoutpriority:{type:_0x5c51x2[_0x52e4[2]],allowNull:true},weight:{type:_0x5c51x2.INTEGER(11),allowNull:true,defaultValue:0},wrapuptime:{type:_0x5c51x2.INTEGER(11),allowNull:true,defaultValue:0},autofill:{type:_0x5c51x2.ENUM(_0x52e4[13],_0x52e4[14]),allowNull:true,defaultValue:_0x52e4[13]},autopause:{type:_0x5c51x2.ENUM(_0x52e4[13],_0x52e4[14],_0x52e4[15]),allowNull:true,defaultValue:_0x52e4[14]},autopausedelay:{type:_0x5c51x2.INTEGER(11),allowNull:true},autopausebusy:{type:_0x5c51x2.ENUM(_0x52e4[13],_0x52e4[14]),allowNull:true,defaultValue:_0x52e4[14]},autopauseunavail:{type:_0x5c51x2.ENUM(_0x52e4[13],_0x52e4[14]),allowNull:true,defaultValue:_0x52e4[14]},maxlen:{type:_0x5c51x2.INTEGER(11),allowNull:true,defaultValue:0},setinterfacevar:{type:_0x5c51x2.ENUM(_0x52e4[13],_0x52e4[14]),allowNull:true,defaultValue:_0x52e4[14]},setqueueentryvar:{type:_0x5c51x2.ENUM(_0x52e4[13],_0x52e4[14]),allowNull:true,defautValue:_0x52e4[14]},setqueuevar:{type:_0x5c51x2.ENUM(_0x52e4[13],_0x52e4[14]),allowNull:true,defaultValue:_0x52e4[14]},membermacro:{type:_0x5c51x2[_0x52e4[2]],allowNull:true},membergosub:{type:_0x5c51x2[_0x52e4[2]],allowNull:true},announce_frequency:{type:_0x5c51x2.INTEGER(11),allowNull:true,defaultValue:0},min_announce_frequency:{type:_0x5c51x2.INTEGER(11),allowNull:true,defaultValue:0},periodic_announce_frequency:{type:_0x5c51x2.INTEGER(11),allowNull:true,defaultValue:0},random_periodic_announce:{type:_0x5c51x2.ENUM(_0x52e4[13],_0x52e4[14]),allowNull:true,defaultValue:_0x52e4[14]},relative_periodic_announce:{type:_0x5c51x2.ENUM(_0x52e4[13],_0x52e4[14]),allowNull:true,defaultValue:_0x52e4[13]},announce_holdtime:{type:_0x5c51x2.ENUM(_0x52e4[13],_0x52e4[14],_0x52e4[16]),allowNull:true,defaultValue:_0x52e4[14]},announce_position:{type:_0x5c51x2[_0x52e4[2]],allowNull:true,defaultValue:_0x52e4[14]},announce_to_first_user:{type:_0x5c51x2.ENUM(_0x52e4[13],_0x52e4[14]),allowNull:true},announce_position_limit:{type:_0x5c51x2.INTEGER(11),allowNull:true},announce_round_seconds:{type:_0x5c51x2.ENUM(_0x52e4[17],_0x52e4[18],_0x52e4[19],_0x52e4[20],_0x52e4[21],_0x52e4[22]),allowNull:true,defaultValue:_0x52e4[17]},monitor_format:{type:_0x5c51x2[_0x52e4[2]],allowNull:true,defaultValue:_0x52e4[4]},monitor_type:{type:_0x5c51x2[_0x52e4[2]],allowNull:true},queue_youarenext:{type:_0x5c51x2[_0x52e4[2]],allowNull:true,defaultValue:null},queue_thereare:{type:_0x5c51x2[_0x52e4[2]],allowNull:true,defaultValue:null},queue_callswaiting:{type:_0x5c51x2[_0x52e4[2]],allowNull:true,defaultValue:null},queue_holdtime:{type:_0x5c51x2[_0x52e4[2]],allowNull:true,defaultValue:null},queue_minute:{type:_0x5c51x2[_0x52e4[2]],allowNull:true,defaultValue:null},queue_minutes:{type:_0x5c51x2[_0x52e4[2]],allowNull:true,defaultValue:null},queue_seconds:{type:_0x5c51x2[_0x52e4[2]],allowNull:true,defaultValue:null},queue_thankyou:{type:_0x5c51x2[_0x52e4[2]],allowNull:true,defaultValue:null},queue_reporthold:{type:_0x5c51x2[_0x52e4[2]],allowNull:true},queue_quantity1:{type:_0x5c51x2[_0x52e4[2]],allowNull:true},queue_quantity2:{type:_0x5c51x2[_0x52e4[2]],allowNull:true},queue_periodic_announce:{type:_0x5c51x2[_0x52e4[2]],allowNull:true},queue_less_than:{type:_0x5c51x2[_0x52e4[2]],allowNull:true},periodic_announce:{type:_0x5c51x2[_0x52e4[2]],allowNull:true,defaultValue:_0x52e4[4]},joinempty:{type:_0x5c51x2[_0x52e4[2]],allowNull:true,defaultValue:_0x52e4[13]},leavewhenempty:{type:_0x5c51x2[_0x52e4[2]],allowNull:true,defaultValue:_0x52e4[14]},reportholdtime:{type:_0x5c51x2.ENUM(_0x52e4[13],_0x52e4[14]),allowNull:true,defaultValue:_0x52e4[14]},ringinuse:{type:_0x5c51x2.ENUM(_0x52e4[13],_0x52e4[14]),allowNull:true,defaultValue:_0x52e4[14]},memberdelay:{type:_0x5c51x2.INTEGER(11),allowNull:true,defaultValue:0},timeoutrestart:{type:_0x5c51x2.ENUM(_0x52e4[13],_0x52e4[14]),allowNull:true,defaultValue:_0x52e4[14]},defaultrule:{type:_0x5c51x2[_0x52e4[2]],allowNull:true},description:{type:_0x5c51x2[_0x52e4[2]],allowNull:true},acw:{type:_0x5c51x2[_0x52e4[23]],defaultValue:0},acwTimeout:{type:_0x5c51x2.INTEGER(11),defaultValue:10}},{tableName:_0x52e4[24],associate:function(_0x5c51x4){_0x5c51x3[_0x52e4[27]](_0x5c51x4.User,{through:_0x5c51x4[_0x52e4[25]],foreignKey:_0x52e4[26],required:false})}});_0x5c51x3[_0x52e4[32]](function(_0x5c51x5){if(_0x5c51x5[_0x52e4[30]](_0x52e4[29])){throw  new Error(_0x52e4[31])}});return _0x5c51x3}
\ No newline at end of file
+var _0xb072=["\x65\x78\x70\x6F\x72\x74\x73","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x53\x54\x52\x49\x4E\x47","\x64\x65\x66\x61\x75\x6C\x74","","\x72\x69\x6E\x67\x61\x6C\x6C","\x6C\x65\x61\x73\x74\x72\x65\x63\x65\x6E\x74","\x66\x65\x77\x65\x73\x74\x63\x61\x6C\x6C\x73","\x72\x61\x6E\x64\x6F\x6D","\x72\x72\x6D\x65\x6D\x6F\x72\x79","\x6C\x69\x6E\x65\x61\x72","\x77\x72\x61\x6E\x64\x6F\x6D","\x72\x72\x6F\x72\x64\x65\x72\x65\x64","\x79\x65\x73","\x6E\x6F","\x61\x6C\x6C","\x6F\x6E\x63\x65","\x30","\x35","\x31\x30","\x31\x35","\x32\x30","\x33\x30","\x42\x4F\x4F\x4C\x45\x41\x4E","\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x73","\x55\x73\x65\x72\x48\x61\x73\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x71\x75\x65\x75\x65","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65","\x6E\x61\x6D\x65","\x63\x68\x61\x6E\x67\x65\x64","\x59\x6F\x75\x20\x63\x61\x6E\x27\x74\x20\x6D\x6F\x64\x69\x66\x79\x20\x61\x20\x71\x75\x65\x75\x65\x20\x6E\x61\x6D\x65","\x62\x65\x66\x6F\x72\x65\x55\x70\x64\x61\x74\x65"];module[_0xb072[0]]=function(_0x9577x1,_0x9577x2){var _0x9577x3=_0x9577x1[_0xb072[28]](_0xb072[1],{name:{type:_0x9577x2[_0xb072[2]],primaryKey:true,unique:true,validate:{notEmpty:true,is:/^[A-Za-z0-9\.\_]+$/i}},musiconhold:{type:_0x9577x2[_0xb072[2]],allowNull:true,defaultValue:_0xb072[3]},announce:{type:_0x9577x2[_0xb072[2]],allowNull:true,defaultValue:_0xb072[4]},strategy:{type:_0x9577x2.ENUM(_0xb072[5],_0xb072[6],_0xb072[7],_0xb072[8],_0xb072[9],_0xb072[10],_0xb072[11],_0xb072[12]),allowNull:false,defaultValue:_0xb072[5]},servicelevel:{type:_0x9577x2.INTEGER(11),allowNull:true,defaultValue:0},context:{type:_0x9577x2[_0xb072[2]],allowNull:true,defaultValue:null},penaltymemberslimit:{type:_0x9577x2.INTEGER(11),allowNull:true},timeout:{type:_0x9577x2.INTEGER(11),allowNull:true,defaultValue:0},retry:{type:_0x9577x2.INTEGER(11),allowNull:true,defaultValue:0},timeoutpriority:{type:_0x9577x2[_0xb072[2]],allowNull:true},weight:{type:_0x9577x2.INTEGER(11),allowNull:true,defaultValue:0},wrapuptime:{type:_0x9577x2.INTEGER(11),allowNull:true,defaultValue:0},autofill:{type:_0x9577x2.ENUM(_0xb072[13],_0xb072[14]),allowNull:true,defaultValue:_0xb072[13]},autopause:{type:_0x9577x2.ENUM(_0xb072[13],_0xb072[14],_0xb072[15]),allowNull:true,defaultValue:_0xb072[14]},autopausedelay:{type:_0x9577x2.INTEGER(11),allowNull:true},autopausebusy:{type:_0x9577x2.ENUM(_0xb072[13],_0xb072[14]),allowNull:true,defaultValue:_0xb072[14]},autopauseunavail:{type:_0x9577x2.ENUM(_0xb072[13],_0xb072[14]),allowNull:true,defaultValue:_0xb072[14]},maxlen:{type:_0x9577x2.INTEGER(11),allowNull:true,defaultValue:0},setinterfacevar:{type:_0x9577x2.ENUM(_0xb072[13],_0xb072[14]),allowNull:true,defaultValue:_0xb072[14]},setqueueentryvar:{type:_0x9577x2.ENUM(_0xb072[13],_0xb072[14]),allowNull:true,defautValue:_0xb072[14]},setqueuevar:{type:_0x9577x2.ENUM(_0xb072[13],_0xb072[14]),allowNull:true,defaultValue:_0xb072[14]},membermacro:{type:_0x9577x2[_0xb072[2]],allowNull:true},membergosub:{type:_0x9577x2[_0xb072[2]],allowNull:true},announce_frequency:{type:_0x9577x2.INTEGER(11),allowNull:true,defaultValue:0},min_announce_frequency:{type:_0x9577x2.INTEGER(11),allowNull:true,defaultValue:0},periodic_announce_frequency:{type:_0x9577x2.INTEGER(11),allowNull:true,defaultValue:0},random_periodic_announce:{type:_0x9577x2.ENUM(_0xb072[13],_0xb072[14]),allowNull:true,defaultValue:_0xb072[14]},relative_periodic_announce:{type:_0x9577x2.ENUM(_0xb072[13],_0xb072[14]),allowNull:true,defaultValue:_0xb072[13]},announce_holdtime:{type:_0x9577x2.ENUM(_0xb072[13],_0xb072[14],_0xb072[16]),allowNull:true,defaultValue:_0xb072[14]},announce_position:{type:_0x9577x2[_0xb072[2]],allowNull:true,defaultValue:_0xb072[14]},announce_to_first_user:{type:_0x9577x2.ENUM(_0xb072[13],_0xb072[14]),allowNull:true},announce_position_limit:{type:_0x9577x2.INTEGER(11),allowNull:true},announce_round_seconds:{type:_0x9577x2.ENUM(_0xb072[17],_0xb072[18],_0xb072[19],_0xb072[20],_0xb072[21],_0xb072[22]),allowNull:true,defaultValue:_0xb072[17]},monitor_format:{type:_0x9577x2[_0xb072[2]],allowNull:true,defaultValue:_0xb072[4]},monitor_type:{type:_0x9577x2[_0xb072[2]],allowNull:true},queue_youarenext:{type:_0x9577x2[_0xb072[2]],allowNull:true,defaultValue:null},queue_thereare:{type:_0x9577x2[_0xb072[2]],allowNull:true,defaultValue:null},queue_callswaiting:{type:_0x9577x2[_0xb072[2]],allowNull:true,defaultValue:null},queue_holdtime:{type:_0x9577x2[_0xb072[2]],allowNull:true,defaultValue:null},queue_minute:{type:_0x9577x2[_0xb072[2]],allowNull:true,defaultValue:null},queue_minutes:{type:_0x9577x2[_0xb072[2]],allowNull:true,defaultValue:null},queue_seconds:{type:_0x9577x2[_0xb072[2]],allowNull:true,defaultValue:null},queue_thankyou:{type:_0x9577x2[_0xb072[2]],allowNull:true,defaultValue:null},queue_reporthold:{type:_0x9577x2[_0xb072[2]],allowNull:true},queue_quantity1:{type:_0x9577x2[_0xb072[2]],allowNull:true},queue_quantity2:{type:_0x9577x2[_0xb072[2]],allowNull:true},queue_periodic_announce:{type:_0x9577x2[_0xb072[2]],allowNull:true},queue_less_than:{type:_0x9577x2[_0xb072[2]],allowNull:true},periodic_announce:{type:_0x9577x2[_0xb072[2]],allowNull:true,defaultValue:_0xb072[4]},joinempty:{type:_0x9577x2[_0xb072[2]],allowNull:true,defaultValue:_0xb072[13]},leavewhenempty:{type:_0x9577x2[_0xb072[2]],allowNull:true,defaultValue:_0xb072[14]},reportholdtime:{type:_0x9577x2.ENUM(_0xb072[13],_0xb072[14]),allowNull:true,defaultValue:_0xb072[14]},ringinuse:{type:_0x9577x2.ENUM(_0xb072[13],_0xb072[14]),allowNull:true,defaultValue:_0xb072[14]},memberdelay:{type:_0x9577x2.INTEGER(11),allowNull:true,defaultValue:0},timeoutrestart:{type:_0x9577x2.ENUM(_0xb072[13],_0xb072[14]),allowNull:true,defaultValue:_0xb072[14]},defaultrule:{type:_0x9577x2[_0xb072[2]],allowNull:true},description:{type:_0x9577x2[_0xb072[2]],allowNull:true},acw:{type:_0x9577x2[_0xb072[23]],defaultValue:0},acwTimeout:{type:_0x9577x2.INTEGER(11),defaultValue:10}},{tableName:_0xb072[24],associate:function(_0x9577x4){_0x9577x3[_0xb072[27]](_0x9577x4.User,{through:_0x9577x4[_0xb072[25]],foreignKey:_0xb072[26],required:false})}});_0x9577x3[_0xb072[32]](function(_0x9577x5){if(_0x9577x5[_0xb072[30]](_0xb072[29])){throw  new Error(_0xb072[31])}});return _0x9577x3}
\ No newline at end of file