Built motion from commit 57199c8.|0.0.38
[motion.git] / server / models / trunk.js
index 9b5e842..528c1b8 100644 (file)
@@ -1 +1 @@
-var _0x88e2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x63\x72\x79\x70\x74\x6F","\x6D\x64\x35","\x6C\x6F\x64\x61\x73\x68","\x65\x78\x70\x6F\x72\x74\x73","\x54\x72\x75\x6E\x6B","\x53\x54\x52\x49\x4E\x47","\x64\x79\x6E\x61\x6D\x69\x63","\x66\x72\x69\x65\x6E\x64","\x75\x73\x65\x72","\x70\x65\x65\x72","\x66\x72\x6F\x6D\x2D\x73\x69\x70","\x75\x64\x70","\x72\x66\x63\x32\x38\x33\x33","\x69\x6E\x66\x6F","\x73\x68\x6F\x72\x74\x69\x6E\x66\x6F","\x69\x6E\x62\x61\x6E\x64","\x61\x75\x74\x6F","\x79\x65\x73","\x6E\x6F","\x6E\x6F\x6E\x61\x74","\x75\x70\x64\x61\x74\x65","\x66\x6F\x72\x63\x65\x5F\x72\x70\x6F\x72\x74\x2C\x63\x6F\x6D\x65\x64\x69\x61","\x65\x6E","\x61\x6C\x61\x77\x3B\x75\x6C\x61\x77\x3B\x67\x73\x6D","\x70\x6F\x72\x74\x2C\x69\x6E\x76\x69\x74\x65","\x6E\x65\x76\x65\x72","\x22\x22\x20\x3C\x3E","\x41\x4C\x4C\x4F\x57\x45\x44\x5F\x4E\x4F\x54\x5F\x53\x43\x52\x45\x45\x4E\x45\x44","\x41\x4C\x4C\x4F\x57\x45\x44\x5F\x50\x41\x53\x53\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x41\x4C\x4C\x4F\x57\x45\x44\x5F\x46\x41\x49\x4C\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x41\x4C\x4C\x4F\x57\x45\x44","\x50\x52\x4F\x48\x49\x42\x5F\x4E\x4F\x54\x5F\x53\x43\x52\x45\x45\x4E\x45\x44","\x50\x52\x4F\x48\x49\x42\x5F\x50\x41\x53\x53\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x50\x52\x4F\x48\x49\x42\x5F\x46\x41\x49\x4C\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x50\x52\x4F\x48\x49\x42","\x74\x72\x75\x6E\x6B\x73","\x54\x72\x75\x6E\x6B\x49\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];_0x88e2[0];var crypto=require(_0x88e2[1]);var md5=require(_0x88e2[2]);var _=require(_0x88e2[3]);module[_0x88e2[4]]=function(_0xbd2dx4,_0xbd2dx5){var _0xbd2dx6=_0xbd2dx4[_0x88e2[39]](_0x88e2[5],{name:{type:_0xbd2dx5[_0x88e2[6]],unique:true,validate:{notEmpty:true}},port:{type:_0xbd2dx5.INTEGER(5),allowNull:true},defaultuser:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true},host:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true,defaultValue:_0x88e2[7]},type:{type:_0xbd2dx5.ENUM(_0x88e2[8],_0x88e2[9],_0x88e2[10]),allowNull:true,defaultValue:_0x88e2[8]},context:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true,defaultValue:_0x88e2[11]},permit:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true},deny:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true},secret:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true},transport:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true,defaultValue:_0x88e2[12]},dtmfmode:{type:_0xbd2dx5.ENUM(_0x88e2[13],_0x88e2[14],_0x88e2[15],_0x88e2[16],_0x88e2[17]),allowNull:true,defaultValue:_0x88e2[13]},directmedia:{type:_0xbd2dx5.ENUM(_0x88e2[18],_0x88e2[19],_0x88e2[20],_0x88e2[21]),allowNull:true,defaultValue:_0x88e2[19]},nat:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true,defaultValue:_0x88e2[22]},language:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true,defaultValue:_0x88e2[23]},disallow:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true},allow:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true,defaultValue:_0x88e2[24]},insecure:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true,defaultValue:_0x88e2[25]},trustrpid:{type:_0xbd2dx5.ENUM(_0x88e2[18],_0x88e2[19]),allowNull:true,defaultValue:_0x88e2[19]},progressinband:{type:_0xbd2dx5.ENUM(_0x88e2[18],_0x88e2[19],_0x88e2[26]),allowNull:true},promiscredir:{type:_0xbd2dx5.ENUM(_0x88e2[18],_0x88e2[19]),allowNull:true},useclientcode:{type:_0xbd2dx5.ENUM(_0x88e2[18],_0x88e2[19]),allowNull:true},accountcode:{type:_0xbd2dx5.INTEGER(11),allowNull:true},setvar:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true},otherFields:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true},callerid:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true,defaultValue:_0x88e2[27]},amaflags:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true},callcounter:{type:_0xbd2dx5.ENUM(_0x88e2[18],_0x88e2[19]),allowNull:true,defaultValue:_0x88e2[18]},busylevel:{type:_0xbd2dx5.INTEGER(11),allowNull:true},allowoverlap:{type:_0xbd2dx5.ENUM(_0x88e2[18],_0x88e2[19]),allowNull:true},allowsubscribe:{type:_0xbd2dx5.ENUM(_0x88e2[18],_0x88e2[19]),allowNull:true},maxcallbitrate:{type:_0xbd2dx5.INTEGER(11),allowNull:true},rfc2833compensate:{type:_0xbd2dx5.ENUM(_0x88e2[18],_0x88e2[19]),allowNull:true},t38pt_usertpsource:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true},regexten:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true},fromdomain:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true},fromuser:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true},qualify:{type:_0xbd2dx5.ENUM(_0x88e2[18],_0x88e2[19]),allowNull:true,defaultValue:_0x88e2[18]},defaultip:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true},rtptimeout:{type:_0xbd2dx5.INTEGER(11),allowNull:true},rtpholdtimeout:{type:_0xbd2dx5.INTEGER(11),allowNull:true},sendrpid:{type:_0xbd2dx5.ENUM(_0x88e2[18],_0x88e2[19]),allowNull:true,defaultValue:_0x88e2[19]},outboundproxy:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true},callbackextension:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true},qualifyfreq:{type:_0xbd2dx5.INTEGER(11),allowNull:true},constantssrc:{type:_0xbd2dx5.ENUM(_0x88e2[18],_0x88e2[19]),allowNull:true},contactpermit:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true},contactdeny:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true},usereqphone:{type:_0xbd2dx5.ENUM(_0x88e2[18],_0x88e2[19]),allowNull:true,defaultValue:_0x88e2[19]},textsupport:{type:_0xbd2dx5.ENUM(_0x88e2[18],_0x88e2[19]),allowNull:true},faxdetect:{type:_0xbd2dx5.ENUM(_0x88e2[18],_0x88e2[19]),allowNull:true},buggymwi:{type:_0xbd2dx5.ENUM(_0x88e2[18],_0x88e2[19]),allowNull:true},auth:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true},fullname:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true},trunkname:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true},cid_number:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true},callingpres:{type:_0xbd2dx5.ENUM(_0x88e2[28],_0x88e2[29],_0x88e2[30],_0x88e2[31],_0x88e2[32],_0x88e2[33],_0x88e2[34],_0x88e2[35]),allowNull:true},mohinterpret:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true},mohsuggest:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true},subscribemwi:{type:_0xbd2dx5.ENUM(_0x88e2[18],_0x88e2[19]),allowNull:true},vmexten:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true},description:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true},autoframing:{type:_0xbd2dx5.ENUM(_0x88e2[18],_0x88e2[19]),allowNull:true},limitonpeers:{type:_0xbd2dx5.ENUM(_0x88e2[18],_0x88e2[19]),allowNull:true,defaultValue:_0x88e2[18]},rtpkeepalive:{type:_0xbd2dx5.INTEGER(11),allowNull:true},"\x63\x61\x6C\x6C\x2D\x6C\x69\x6D\x69\x74":{type:_0xbd2dx5.INTEGER(11),allowNull:true,defaultValue:null},g726nonstandard:{type:_0xbd2dx5.ENUM(_0x88e2[18],_0x88e2[19]),allowNull:true},ignoresdpversion:{type:_0xbd2dx5.ENUM(_0x88e2[18],_0x88e2[19]),allowNull:true},allowtransfer:{type:_0xbd2dx5.ENUM(_0x88e2[18],_0x88e2[19]),allowNull:true},dynamic:{type:_0xbd2dx5.ENUM(_0x88e2[18],_0x88e2[19]),allowNull:true},encryption:{type:_0xbd2dx5.ENUM(_0x88e2[18],_0x88e2[19]),allowNull:true,defaultValue:_0x88e2[19]},registry:{type:_0xbd2dx5[_0x88e2[6]],allowNull:true}},{tableName:_0x88e2[36],associate:function(_0xbd2dx7){_0xbd2dx6[_0x88e2[38]](_0xbd2dx7.VoiceExtension,{foreignKey:_0x88e2[37]})}});return _0xbd2dx6;};
\ No newline at end of file
+var _0x9214=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x63\x72\x79\x70\x74\x6F","\x6D\x64\x35","\x6C\x6F\x64\x61\x73\x68","\x65\x78\x70\x6F\x72\x74\x73","\x54\x72\x75\x6E\x6B","\x53\x54\x52\x49\x4E\x47","\x64\x79\x6E\x61\x6D\x69\x63","\x66\x72\x69\x65\x6E\x64","\x75\x73\x65\x72","\x70\x65\x65\x72","\x66\x72\x6F\x6D\x2D\x73\x69\x70","\x75\x64\x70","\x72\x66\x63\x32\x38\x33\x33","\x69\x6E\x66\x6F","\x73\x68\x6F\x72\x74\x69\x6E\x66\x6F","\x69\x6E\x62\x61\x6E\x64","\x61\x75\x74\x6F","\x79\x65\x73","\x6E\x6F","\x6E\x6F\x6E\x61\x74","\x75\x70\x64\x61\x74\x65","\x66\x6F\x72\x63\x65\x5F\x72\x70\x6F\x72\x74\x2C\x63\x6F\x6D\x65\x64\x69\x61","\x65\x6E","\x61\x6C\x61\x77\x3B\x75\x6C\x61\x77\x3B\x67\x73\x6D","\x70\x6F\x72\x74\x2C\x69\x6E\x76\x69\x74\x65","\x6E\x65\x76\x65\x72","\x22\x22\x20\x3C\x3E","\x41\x4C\x4C\x4F\x57\x45\x44\x5F\x4E\x4F\x54\x5F\x53\x43\x52\x45\x45\x4E\x45\x44","\x41\x4C\x4C\x4F\x57\x45\x44\x5F\x50\x41\x53\x53\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x41\x4C\x4C\x4F\x57\x45\x44\x5F\x46\x41\x49\x4C\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x41\x4C\x4C\x4F\x57\x45\x44","\x50\x52\x4F\x48\x49\x42\x5F\x4E\x4F\x54\x5F\x53\x43\x52\x45\x45\x4E\x45\x44","\x50\x52\x4F\x48\x49\x42\x5F\x50\x41\x53\x53\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x50\x52\x4F\x48\x49\x42\x5F\x46\x41\x49\x4C\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x50\x52\x4F\x48\x49\x42","\x74\x72\x75\x6E\x6B\x73","\x54\x72\x75\x6E\x6B\x49\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];_0x9214[0];var crypto=require(_0x9214[1]);var md5=require(_0x9214[2]);var _=require(_0x9214[3]);module[_0x9214[4]]=function(_0xd1d7x4,_0xd1d7x5){var _0xd1d7x6=_0xd1d7x4[_0x9214[39]](_0x9214[5],{name:{type:_0xd1d7x5[_0x9214[6]],unique:true,validate:{notEmpty:true}},port:{type:_0xd1d7x5.INTEGER(5),allowNull:true},defaultuser:{type:_0xd1d7x5[_0x9214[6]],allowNull:true},host:{type:_0xd1d7x5[_0x9214[6]],allowNull:true,defaultValue:_0x9214[7]},type:{type:_0xd1d7x5.ENUM(_0x9214[8],_0x9214[9],_0x9214[10]),allowNull:true,defaultValue:_0x9214[8]},context:{type:_0xd1d7x5[_0x9214[6]],allowNull:true,defaultValue:_0x9214[11]},permit:{type:_0xd1d7x5[_0x9214[6]],allowNull:true},deny:{type:_0xd1d7x5[_0x9214[6]],allowNull:true},secret:{type:_0xd1d7x5[_0x9214[6]],allowNull:true},transport:{type:_0xd1d7x5[_0x9214[6]],allowNull:true,defaultValue:_0x9214[12]},dtmfmode:{type:_0xd1d7x5.ENUM(_0x9214[13],_0x9214[14],_0x9214[15],_0x9214[16],_0x9214[17]),allowNull:true,defaultValue:_0x9214[13]},directmedia:{type:_0xd1d7x5.ENUM(_0x9214[18],_0x9214[19],_0x9214[20],_0x9214[21]),allowNull:true,defaultValue:_0x9214[19]},nat:{type:_0xd1d7x5[_0x9214[6]],allowNull:true,defaultValue:_0x9214[22]},language:{type:_0xd1d7x5[_0x9214[6]],allowNull:true,defaultValue:_0x9214[23]},disallow:{type:_0xd1d7x5[_0x9214[6]],allowNull:true},allow:{type:_0xd1d7x5[_0x9214[6]],allowNull:true,defaultValue:_0x9214[24]},insecure:{type:_0xd1d7x5[_0x9214[6]],allowNull:true,defaultValue:_0x9214[25]},trustrpid:{type:_0xd1d7x5.ENUM(_0x9214[18],_0x9214[19]),allowNull:true,defaultValue:_0x9214[19]},progressinband:{type:_0xd1d7x5.ENUM(_0x9214[18],_0x9214[19],_0x9214[26]),allowNull:true},promiscredir:{type:_0xd1d7x5.ENUM(_0x9214[18],_0x9214[19]),allowNull:true},useclientcode:{type:_0xd1d7x5.ENUM(_0x9214[18],_0x9214[19]),allowNull:true},accountcode:{type:_0xd1d7x5.INTEGER(11),allowNull:true},setvar:{type:_0xd1d7x5[_0x9214[6]],allowNull:true},otherFields:{type:_0xd1d7x5[_0x9214[6]],allowNull:true},callerid:{type:_0xd1d7x5[_0x9214[6]],allowNull:true,defaultValue:_0x9214[27]},amaflags:{type:_0xd1d7x5[_0x9214[6]],allowNull:true},callcounter:{type:_0xd1d7x5.ENUM(_0x9214[18],_0x9214[19]),allowNull:true,defaultValue:_0x9214[18]},busylevel:{type:_0xd1d7x5.INTEGER(11),allowNull:true},allowoverlap:{type:_0xd1d7x5.ENUM(_0x9214[18],_0x9214[19]),allowNull:true},allowsubscribe:{type:_0xd1d7x5.ENUM(_0x9214[18],_0x9214[19]),allowNull:true},maxcallbitrate:{type:_0xd1d7x5.INTEGER(11),allowNull:true},rfc2833compensate:{type:_0xd1d7x5.ENUM(_0x9214[18],_0x9214[19]),allowNull:true},t38pt_usertpsource:{type:_0xd1d7x5[_0x9214[6]],allowNull:true},regexten:{type:_0xd1d7x5[_0x9214[6]],allowNull:true},fromdomain:{type:_0xd1d7x5[_0x9214[6]],allowNull:true},fromuser:{type:_0xd1d7x5[_0x9214[6]],allowNull:true},qualify:{type:_0xd1d7x5.ENUM(_0x9214[18],_0x9214[19]),allowNull:true,defaultValue:_0x9214[18]},defaultip:{type:_0xd1d7x5[_0x9214[6]],allowNull:true},rtptimeout:{type:_0xd1d7x5.INTEGER(11),allowNull:true},rtpholdtimeout:{type:_0xd1d7x5.INTEGER(11),allowNull:true},sendrpid:{type:_0xd1d7x5.ENUM(_0x9214[18],_0x9214[19]),allowNull:true,defaultValue:_0x9214[19]},outboundproxy:{type:_0xd1d7x5[_0x9214[6]],allowNull:true},callbackextension:{type:_0xd1d7x5[_0x9214[6]],allowNull:true},qualifyfreq:{type:_0xd1d7x5.INTEGER(11),allowNull:true},constantssrc:{type:_0xd1d7x5.ENUM(_0x9214[18],_0x9214[19]),allowNull:true},contactpermit:{type:_0xd1d7x5[_0x9214[6]],allowNull:true},contactdeny:{type:_0xd1d7x5[_0x9214[6]],allowNull:true},usereqphone:{type:_0xd1d7x5.ENUM(_0x9214[18],_0x9214[19]),allowNull:true,defaultValue:_0x9214[19]},textsupport:{type:_0xd1d7x5.ENUM(_0x9214[18],_0x9214[19]),allowNull:true},faxdetect:{type:_0xd1d7x5.ENUM(_0x9214[18],_0x9214[19]),allowNull:true},buggymwi:{type:_0xd1d7x5.ENUM(_0x9214[18],_0x9214[19]),allowNull:true},auth:{type:_0xd1d7x5[_0x9214[6]],allowNull:true},fullname:{type:_0xd1d7x5[_0x9214[6]],allowNull:true},trunkname:{type:_0xd1d7x5[_0x9214[6]],allowNull:true},cid_number:{type:_0xd1d7x5[_0x9214[6]],allowNull:true},callingpres:{type:_0xd1d7x5.ENUM(_0x9214[28],_0x9214[29],_0x9214[30],_0x9214[31],_0x9214[32],_0x9214[33],_0x9214[34],_0x9214[35]),allowNull:true},mohinterpret:{type:_0xd1d7x5[_0x9214[6]],allowNull:true},mohsuggest:{type:_0xd1d7x5[_0x9214[6]],allowNull:true},subscribemwi:{type:_0xd1d7x5.ENUM(_0x9214[18],_0x9214[19]),allowNull:true},vmexten:{type:_0xd1d7x5[_0x9214[6]],allowNull:true},description:{type:_0xd1d7x5[_0x9214[6]],allowNull:true},autoframing:{type:_0xd1d7x5.ENUM(_0x9214[18],_0x9214[19]),allowNull:true},limitonpeers:{type:_0xd1d7x5.ENUM(_0x9214[18],_0x9214[19]),allowNull:true,defaultValue:_0x9214[18]},rtpkeepalive:{type:_0xd1d7x5.INTEGER(11),allowNull:true},"\x63\x61\x6C\x6C\x2D\x6C\x69\x6D\x69\x74":{type:_0xd1d7x5.INTEGER(11),allowNull:true,defaultValue:null},g726nonstandard:{type:_0xd1d7x5.ENUM(_0x9214[18],_0x9214[19]),allowNull:true},ignoresdpversion:{type:_0xd1d7x5.ENUM(_0x9214[18],_0x9214[19]),allowNull:true},allowtransfer:{type:_0xd1d7x5.ENUM(_0x9214[18],_0x9214[19]),allowNull:true},dynamic:{type:_0xd1d7x5.ENUM(_0x9214[18],_0x9214[19]),allowNull:true},encryption:{type:_0xd1d7x5.ENUM(_0x9214[18],_0x9214[19]),allowNull:true,defaultValue:_0x9214[19]},registry:{type:_0xd1d7x5[_0x9214[6]],allowNull:true}},{tableName:_0x9214[36],associate:function(_0xd1d7x7){_0xd1d7x6[_0x9214[38]](_0xd1d7x7.VoiceExtension,{foreignKey:_0x9214[37]})}});return _0xd1d7x6;};
\ No newline at end of file