Built motion from commit 5e31ea4.|0.0.32
[motion.git] / server / models / voice_queue.js
index d28c970..b50b5a8 100644 (file)
@@ -1 +1 @@
-var _0xca7d=["\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","","\x79\x65\x73","\x6E\x6F","\x76\x61\x72\x73","\x61\x6C\x6C","\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","\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[_0xca7d[0]]=function(_0x16aax1,_0x16aax2){var _0x16aax3=_0x16aax1[_0xca7d[21]](_0xca7d[1],{name:{type:_0x16aax2[_0xca7d[2]],primaryKey:true,unique:true},musiconhold:{type:_0x16aax2[_0xca7d[2]],allowNull:true,defaultValue:_0xca7d[3]},announce:{type:_0x16aax2[_0xca7d[2]],allowNull:true,defaultValue:_0xca7d[4]},context:{type:_0x16aax2[_0xca7d[2]],allowNull:true,defaultValue:null},timeout:{type:_0x16aax2.INTEGER(11),allowNull:true,defaultValue:0},ringinuse:{type:_0x16aax2.ENUM(_0xca7d[5],_0xca7d[6]),allowNull:true,defaultValue:_0xca7d[6]},setinterfacevar:{type:_0x16aax2.ENUM(_0xca7d[5],_0xca7d[6]),allowNull:true,defaultValue:_0xca7d[5]},setqueuevar:{type:_0x16aax2.ENUM(_0xca7d[5],_0xca7d[6]),allowNull:true,defaultValue:_0xca7d[5]},setqueueentryvar:{type:_0x16aax2.ENUM(_0xca7d[5],_0xca7d[6]),allowNull:true,defautValue:_0xca7d[5]},eventwhencalled:{type:_0x16aax2.ENUM(_0xca7d[5],_0xca7d[6],_0xca7d[7]),allowNull:true,defautValue:_0xca7d[5]},eventmemberstatus:{type:_0x16aax2.ENUM(_0xca7d[5],_0xca7d[6]),allowNull:true,defautValue:_0xca7d[5]},monitor_format:{type:_0x16aax2[_0xca7d[2]],allowNull:true,defaultValue:_0xca7d[4]},membermacro:{type:_0x16aax2[_0xca7d[2]],allowNull:true},description:{type:_0x16aax2[_0xca7d[2]],allowNull:true},membergosub:{type:_0x16aax2[_0xca7d[2]],allowNull:true},queue_youarenext:{type:_0x16aax2[_0xca7d[2]],allowNull:true,defaultValue:null},queue_thereare:{type:_0x16aax2[_0xca7d[2]],allowNull:true,defaultValue:null},queue_callswaiting:{type:_0x16aax2[_0xca7d[2]],allowNull:true,defaultValue:null},queue_quantity1:{type:_0x16aax2[_0xca7d[2]],allowNull:true},queue_quantity2:{type:_0x16aax2[_0xca7d[2]],allowNull:true},queue_holdtime:{type:_0x16aax2[_0xca7d[2]],allowNull:true,defaultValue:null},queue_minutes:{type:_0x16aax2[_0xca7d[2]],allowNull:true,defaultValue:null},queue_seconds:{type:_0x16aax2[_0xca7d[2]],allowNull:true,defaultValue:null},queue_minute:{type:_0x16aax2[_0xca7d[2]],allowNull:true,defaultValue:null},queue_thankyou:{type:_0x16aax2[_0xca7d[2]],allowNull:true,defaultValue:null},queue_callerannounce:{type:_0x16aax2[_0xca7d[2]],allowNull:true},queue_reporthold:{type:_0x16aax2[_0xca7d[2]],allowNull:true},announce_frequency:{type:_0x16aax2.INTEGER(11),allowNull:true,defaultValue:0},announce_to_first_user:{type:_0x16aax2.ENUM(_0xca7d[5],_0xca7d[6]),allowNull:true},min_announce_frequency:{type:_0x16aax2.INTEGER(11),allowNull:true,defaultValue:0},announce_round_seconds:{type:_0x16aax2.INTEGER(11),allowNull:true,defaultValue:0},announce_holdtime:{type:_0x16aax2[_0xca7d[2]],allowNull:true,defaultValue:_0xca7d[6]},announce_position:{type:_0x16aax2[_0xca7d[2]],allowNull:true,defaultValue:_0xca7d[6]},announce_position_limit:{type:_0x16aax2.INTEGER(11),allowNull:true},periodic_announce:{type:_0x16aax2[_0xca7d[2]],allowNull:true,defaultValue:_0xca7d[4]},periodic_announce_frequency:{type:_0x16aax2.INTEGER(11),allowNull:true,defaultValue:0},relative_periodic_announce:{type:_0x16aax2.ENUM(_0xca7d[5],_0xca7d[6]),allowNull:true,defaultValue:_0xca7d[5]},random_periodic_announce:{type:_0x16aax2.ENUM(_0xca7d[5],_0xca7d[6]),allowNull:true,defaultValue:_0xca7d[6]},retry:{type:_0x16aax2.INTEGER(11),allowNull:true,defaultValue:0},wrapuptime:{type:_0x16aax2.INTEGER(11),allowNull:true,defaultValue:0},penaltymemberslimit:{type:_0x16aax2.INTEGER(11),allowNull:true},autofill:{type:_0x16aax2.ENUM(_0xca7d[5],_0xca7d[6]),allowNull:true},monitor_type:{type:_0x16aax2[_0xca7d[2]],allowNull:true},autopause:{type:_0x16aax2.ENUM(_0xca7d[5],_0xca7d[6],_0xca7d[8]),allowNull:true,defaultValue:_0xca7d[6]},autopausedelay:{type:_0x16aax2.INTEGER(11),allowNull:true},autopausebusy:{type:_0x16aax2.ENUM(_0xca7d[5],_0xca7d[6]),allowNull:true},autopauseunavail:{type:_0x16aax2.ENUM(_0xca7d[5],_0xca7d[6]),allowNull:true},maxlen:{type:_0x16aax2.INTEGER(11),allowNull:true,defaultValue:0},servicelevel:{type:_0x16aax2.INTEGER(11),allowNull:true,defaultValue:0},strategy:{type:_0x16aax2.ENUM(_0xca7d[9],_0xca7d[10],_0xca7d[11],_0xca7d[12],_0xca7d[13],_0xca7d[14],_0xca7d[15],_0xca7d[16]),allowNull:true},joinempty:{type:_0x16aax2[_0xca7d[2]],allowNull:true,defaultValue:_0xca7d[5]},leavewhenempty:{type:_0x16aax2[_0xca7d[2]],allowNull:true,defaultValue:_0xca7d[6]},reportholdtime:{type:_0x16aax2.ENUM(_0xca7d[5],_0xca7d[6]),allowNull:true,defaultValue:_0xca7d[6]},memberdelay:{type:_0x16aax2.INTEGER(11),allowNull:true,defaultValue:0},weight:{type:_0x16aax2.INTEGER(11),allowNull:true,defaultValue:0},timeoutrestart:{type:_0x16aax2.ENUM(_0xca7d[5],_0xca7d[6]),allowNull:true,defaultValue:_0xca7d[6]},defaultrule:{type:_0x16aax2[_0xca7d[2]],allowNull:true},timeoutpriority:{type:_0x16aax2[_0xca7d[2]],allowNull:true}},{tableName:_0xca7d[17],associate:function(_0x16aax4){_0x16aax3[_0xca7d[20]](_0x16aax4.User,{through:_0x16aax4[_0xca7d[18]],foreignKey:_0xca7d[19]})}});_0x16aax3[_0xca7d[25]](function(_0x16aax5){if(_0x16aax5[_0xca7d[23]](_0xca7d[22])){throw  new Error(_0xca7d[24])}});return _0x16aax3;};
\ No newline at end of file
+var _0xa222=["\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","","\x79\x65\x73","\x6E\x6F","\x76\x61\x72\x73","\x61\x6C\x6C","\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","\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[_0xa222[0]]=function(_0x62d4x1,_0x62d4x2){var _0x62d4x3=_0x62d4x1[_0xa222[21]](_0xa222[1],{name:{type:_0x62d4x2[_0xa222[2]],primaryKey:true,unique:true},musiconhold:{type:_0x62d4x2[_0xa222[2]],allowNull:true,defaultValue:_0xa222[3]},announce:{type:_0x62d4x2[_0xa222[2]],allowNull:true,defaultValue:_0xa222[4]},context:{type:_0x62d4x2[_0xa222[2]],allowNull:true,defaultValue:null},timeout:{type:_0x62d4x2.INTEGER(11),allowNull:true,defaultValue:0},ringinuse:{type:_0x62d4x2.ENUM(_0xa222[5],_0xa222[6]),allowNull:true,defaultValue:_0xa222[6]},setinterfacevar:{type:_0x62d4x2.ENUM(_0xa222[5],_0xa222[6]),allowNull:true,defaultValue:_0xa222[5]},setqueuevar:{type:_0x62d4x2.ENUM(_0xa222[5],_0xa222[6]),allowNull:true,defaultValue:_0xa222[5]},setqueueentryvar:{type:_0x62d4x2.ENUM(_0xa222[5],_0xa222[6]),allowNull:true,defautValue:_0xa222[5]},eventwhencalled:{type:_0x62d4x2.ENUM(_0xa222[5],_0xa222[6],_0xa222[7]),allowNull:true,defautValue:_0xa222[5]},eventmemberstatus:{type:_0x62d4x2.ENUM(_0xa222[5],_0xa222[6]),allowNull:true,defautValue:_0xa222[5]},monitor_format:{type:_0x62d4x2[_0xa222[2]],allowNull:true,defaultValue:_0xa222[4]},membermacro:{type:_0x62d4x2[_0xa222[2]],allowNull:true},description:{type:_0x62d4x2[_0xa222[2]],allowNull:true},membergosub:{type:_0x62d4x2[_0xa222[2]],allowNull:true},queue_youarenext:{type:_0x62d4x2[_0xa222[2]],allowNull:true,defaultValue:null},queue_thereare:{type:_0x62d4x2[_0xa222[2]],allowNull:true,defaultValue:null},queue_callswaiting:{type:_0x62d4x2[_0xa222[2]],allowNull:true,defaultValue:null},queue_quantity1:{type:_0x62d4x2[_0xa222[2]],allowNull:true},queue_quantity2:{type:_0x62d4x2[_0xa222[2]],allowNull:true},queue_holdtime:{type:_0x62d4x2[_0xa222[2]],allowNull:true,defaultValue:null},queue_minutes:{type:_0x62d4x2[_0xa222[2]],allowNull:true,defaultValue:null},queue_seconds:{type:_0x62d4x2[_0xa222[2]],allowNull:true,defaultValue:null},queue_minute:{type:_0x62d4x2[_0xa222[2]],allowNull:true,defaultValue:null},queue_thankyou:{type:_0x62d4x2[_0xa222[2]],allowNull:true,defaultValue:null},queue_callerannounce:{type:_0x62d4x2[_0xa222[2]],allowNull:true},queue_reporthold:{type:_0x62d4x2[_0xa222[2]],allowNull:true},announce_frequency:{type:_0x62d4x2.INTEGER(11),allowNull:true,defaultValue:0},announce_to_first_user:{type:_0x62d4x2.ENUM(_0xa222[5],_0xa222[6]),allowNull:true},min_announce_frequency:{type:_0x62d4x2.INTEGER(11),allowNull:true,defaultValue:0},announce_round_seconds:{type:_0x62d4x2.INTEGER(11),allowNull:true,defaultValue:0},announce_holdtime:{type:_0x62d4x2[_0xa222[2]],allowNull:true,defaultValue:_0xa222[6]},announce_position:{type:_0x62d4x2[_0xa222[2]],allowNull:true,defaultValue:_0xa222[6]},announce_position_limit:{type:_0x62d4x2.INTEGER(11),allowNull:true},periodic_announce:{type:_0x62d4x2[_0xa222[2]],allowNull:true,defaultValue:_0xa222[4]},periodic_announce_frequency:{type:_0x62d4x2.INTEGER(11),allowNull:true,defaultValue:0},relative_periodic_announce:{type:_0x62d4x2.ENUM(_0xa222[5],_0xa222[6]),allowNull:true,defaultValue:_0xa222[5]},random_periodic_announce:{type:_0x62d4x2.ENUM(_0xa222[5],_0xa222[6]),allowNull:true,defaultValue:_0xa222[6]},retry:{type:_0x62d4x2.INTEGER(11),allowNull:true,defaultValue:0},wrapuptime:{type:_0x62d4x2.INTEGER(11),allowNull:true,defaultValue:0},penaltymemberslimit:{type:_0x62d4x2.INTEGER(11),allowNull:true},autofill:{type:_0x62d4x2.ENUM(_0xa222[5],_0xa222[6]),allowNull:true},monitor_type:{type:_0x62d4x2[_0xa222[2]],allowNull:true},autopause:{type:_0x62d4x2.ENUM(_0xa222[5],_0xa222[6],_0xa222[8]),allowNull:true,defaultValue:_0xa222[6]},autopausedelay:{type:_0x62d4x2.INTEGER(11),allowNull:true},autopausebusy:{type:_0x62d4x2.ENUM(_0xa222[5],_0xa222[6]),allowNull:true},autopauseunavail:{type:_0x62d4x2.ENUM(_0xa222[5],_0xa222[6]),allowNull:true},maxlen:{type:_0x62d4x2.INTEGER(11),allowNull:true,defaultValue:0},servicelevel:{type:_0x62d4x2.INTEGER(11),allowNull:true,defaultValue:0},strategy:{type:_0x62d4x2.ENUM(_0xa222[9],_0xa222[10],_0xa222[11],_0xa222[12],_0xa222[13],_0xa222[14],_0xa222[15],_0xa222[16]),allowNull:true},joinempty:{type:_0x62d4x2[_0xa222[2]],allowNull:true,defaultValue:_0xa222[5]},leavewhenempty:{type:_0x62d4x2[_0xa222[2]],allowNull:true,defaultValue:_0xa222[6]},reportholdtime:{type:_0x62d4x2.ENUM(_0xa222[5],_0xa222[6]),allowNull:true,defaultValue:_0xa222[6]},memberdelay:{type:_0x62d4x2.INTEGER(11),allowNull:true,defaultValue:0},weight:{type:_0x62d4x2.INTEGER(11),allowNull:true,defaultValue:0},timeoutrestart:{type:_0x62d4x2.ENUM(_0xa222[5],_0xa222[6]),allowNull:true,defaultValue:_0xa222[6]},defaultrule:{type:_0x62d4x2[_0xa222[2]],allowNull:true},timeoutpriority:{type:_0x62d4x2[_0xa222[2]],allowNull:true}},{tableName:_0xa222[17],associate:function(_0x62d4x4){_0x62d4x3[_0xa222[20]](_0x62d4x4.User,{through:_0x62d4x4[_0xa222[18]],foreignKey:_0xa222[19]})}});_0x62d4x3[_0xa222[25]](function(_0x62d4x5){if(_0x62d4x5[_0xa222[23]](_0xa222[22])){throw  new Error(_0xa222[24])}});return _0x62d4x3;};
\ No newline at end of file