Built motion from commit 05106a3.|0.0.33
[motion.git] / server / models / voice_extension.js
index 34c4802..e6bbda8 100644 (file)
@@ -1 +1 @@
-var _0x1651=["\x75\x74\x69\x6C","\x65\x78\x70\x6F\x72\x74\x73","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x63\x6F\x6D\x70\x6F\x73\x69\x74\x65\x49\x6E\x64\x65\x78","\x4E\x6F\x4F\x70","\x69\x6E\x62\x6F\x75\x6E\x64","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x69\x6E\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78","\x6F\x75\x74\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78","\x42\x4F\x4F\x4C\x45\x41\x4E","","\x76\x6F\x69\x63\x65\x5F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x63\x61\x73\x63\x61\x64\x65","\x68\x61\x73\x4D\x61\x6E\x79","\x74\x72\x75\x6E\x6B","\x61\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x61\x70\x70\x64\x61\x74\x61","\x53\x49\x50\x2F\x24\x7B\x45\x58\x54\x45\x4E\x3A\x25\x64\x7D\x40\x25\x73","\x63\x75\x74\x64\x69\x67\x69\x74\x73","\x66\x6F\x72\x6D\x61\x74","\x73\x61\x76\x65","\x66\x6F\x72\x45\x61\x63\x68","\x74\x68\x65\x6E","\x54\x72\x75\x6E\x6B\x49\x64","\x77\x68\x65\x72\x65","\x66\x69\x6E\x64\x41\x6C\x6C","\x61\x66\x74\x65\x72\x42\x75\x6C\x6B\x55\x70\x64\x61\x74\x65","\x62\x65\x66\x6F\x72\x65\x42\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x64\x65\x66\x69\x6E\x65"];var util=require(_0x1651[0]);module[_0x1651[1]]=function(_0xfc9bx2,_0xfc9bx3){var _0xfc9bx4=_0xfc9bx2[_0x1651[33]](_0x1651[2],{context:{type:_0xfc9bx3[_0x1651[3]],allowNull:false,unique:_0x1651[4]},exten:{type:_0xfc9bx3[_0x1651[3]],allowNull:false,unique:_0x1651[4]},priority:{type:_0xfc9bx3.INTEGER(11),allowNull:false,defaultValue:1,unique:_0x1651[4]},app:{type:_0xfc9bx3[_0x1651[3]],allowNull:false,defaultValue:_0x1651[5]},appdata:{type:_0xfc9bx3[_0x1651[3]],allowNull:true},type:{type:_0xfc9bx3.ENUM(_0x1651[6],_0x1651[7],_0x1651[8],_0x1651[9],_0x1651[10]),allowNull:false},description:{type:_0xfc9bx3[_0x1651[3]]},interval:{type:_0xfc9bx3[_0x1651[3]]},isApp:{type:_0xfc9bx3[_0x1651[11]],defaultValue:false},appGroup:{type:_0xfc9bx3[_0x1651[3]]},interface:{type:_0xfc9bx3[_0x1651[3]]},app_options:{type:_0xfc9bx3[_0x1651[3]],defaultValue:_0x1651[12],allowNull:true},url:{type:_0xfc9bx3[_0x1651[3]],defaultValue:_0x1651[12],allowNull:true},timeout:{type:_0xfc9bx3[_0x1651[3]],defaultValue:_0x1651[12],allowNull:true},queue:{type:_0xfc9bx3[_0x1651[3]],allowNull:true},audiofile:{type:_0xfc9bx3[_0x1651[3]],allowNull:true},project:{type:_0xfc9bx3[_0x1651[3]],allowNull:true},alt_extension:{type:_0xfc9bx3[_0x1651[3]],allowNull:true},alt_priority:{type:_0xfc9bx3.INTEGER(11),allowNull:true},alt_context:{type:_0xfc9bx3[_0x1651[3]],allowNull:true},causecode:{type:_0xfc9bx3[_0x1651[3]],allowNull:true},variable:{type:_0xfc9bx3[_0x1651[3]],allowNull:true},value:{type:_0xfc9bx3[_0x1651[3]],allowNull:true},customApp:{type:_0xfc9bx3[_0x1651[3]],allowNull:true},mailbox:{type:_0xfc9bx3[_0x1651[3]],allowNull:true},trunk:{type:_0xfc9bx3[_0x1651[3]],allowNull:true},cutdigits:{type:_0xfc9bx3.INTEGER(11),allowNull:true},isInterval:{type:_0xfc9bx3[_0x1651[11]],defaultValue:false},callerID:{type:_0xfc9bx3[_0x1651[3]],allowNull:true}},{tableName:_0x1651[13],associate:function(_0xfc9bx5){_0xfc9bx4[_0x1651[16]](_0xfc9bx5.VoiceExtension,{as:_0x1651[14],onDelete:_0x1651[15]});_0xfc9bx4[_0x1651[31]](function(_0xfc9bx6){if(_0xfc9bx6[_0x1651[18]][_0x1651[17]]){_0xfc9bx4[_0x1651[30]]({where:{TrunkId:_0xfc9bx6[_0x1651[29]][_0x1651[28]]}})[_0x1651[27]](function(_0xfc9bx8){_0xfc9bx8[_0x1651[26]](function(_0xfc9bx9){_0xfc9bx9[_0x1651[21]]=util[_0x1651[24]](_0x1651[22],_0xfc9bx9[_0x1651[23]],_0xfc9bx9[_0x1651[17]]);_0xfc9bx9[_0x1651[25]]();})})[_0x1651[20]](function(_0xfc9bx7){console[_0x1651[19]](_0xfc9bx7)})}});_0xfc9bx4[_0x1651[32]](function(_0xfc9bx8){_0xfc9bx8[_0x1651[26]](function(_0xfc9bx9){if(_0xfc9bx9[_0x1651[17]]){_0xfc9bx9[_0x1651[21]]=util[_0x1651[24]](_0x1651[22],_0xfc9bx9[_0x1651[23]],_0xfc9bx9[_0x1651[17]])}})});}});return _0xfc9bx4;};
\ No newline at end of file
+var _0x7f5e=["\x75\x74\x69\x6C","\x65\x78\x70\x6F\x72\x74\x73","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x63\x6F\x6D\x70\x6F\x73\x69\x74\x65\x49\x6E\x64\x65\x78","\x4E\x6F\x4F\x70","\x69\x6E\x62\x6F\x75\x6E\x64","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x69\x6E\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78","\x6F\x75\x74\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78","\x42\x4F\x4F\x4C\x45\x41\x4E","","\x76\x6F\x69\x63\x65\x5F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x63\x61\x73\x63\x61\x64\x65","\x68\x61\x73\x4D\x61\x6E\x79","\x74\x72\x75\x6E\x6B","\x61\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x61\x70\x70\x64\x61\x74\x61","\x53\x49\x50\x2F\x24\x7B\x45\x58\x54\x45\x4E\x3A\x25\x64\x7D\x40\x25\x73","\x63\x75\x74\x64\x69\x67\x69\x74\x73","\x66\x6F\x72\x6D\x61\x74","\x73\x61\x76\x65","\x66\x6F\x72\x45\x61\x63\x68","\x74\x68\x65\x6E","\x54\x72\x75\x6E\x6B\x49\x64","\x77\x68\x65\x72\x65","\x66\x69\x6E\x64\x41\x6C\x6C","\x61\x66\x74\x65\x72\x42\x75\x6C\x6B\x55\x70\x64\x61\x74\x65","\x62\x65\x66\x6F\x72\x65\x42\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x64\x65\x66\x69\x6E\x65"];var util=require(_0x7f5e[0]);module[_0x7f5e[1]]=function(_0xa385x2,_0xa385x3){var _0xa385x4=_0xa385x2[_0x7f5e[33]](_0x7f5e[2],{context:{type:_0xa385x3[_0x7f5e[3]],allowNull:false,unique:_0x7f5e[4]},exten:{type:_0xa385x3[_0x7f5e[3]],allowNull:false,unique:_0x7f5e[4]},priority:{type:_0xa385x3.INTEGER(11),allowNull:false,defaultValue:1,unique:_0x7f5e[4]},app:{type:_0xa385x3[_0x7f5e[3]],allowNull:false,defaultValue:_0x7f5e[5]},appdata:{type:_0xa385x3[_0x7f5e[3]],allowNull:true},type:{type:_0xa385x3.ENUM(_0x7f5e[6],_0x7f5e[7],_0x7f5e[8],_0x7f5e[9],_0x7f5e[10]),allowNull:false},description:{type:_0xa385x3[_0x7f5e[3]]},interval:{type:_0xa385x3[_0x7f5e[3]]},isApp:{type:_0xa385x3[_0x7f5e[11]],defaultValue:false},appGroup:{type:_0xa385x3[_0x7f5e[3]]},interface:{type:_0xa385x3[_0x7f5e[3]]},app_options:{type:_0xa385x3[_0x7f5e[3]],defaultValue:_0x7f5e[12],allowNull:true},url:{type:_0xa385x3[_0x7f5e[3]],defaultValue:_0x7f5e[12],allowNull:true},timeout:{type:_0xa385x3[_0x7f5e[3]],defaultValue:_0x7f5e[12],allowNull:true},queue:{type:_0xa385x3[_0x7f5e[3]],allowNull:true},audiofile:{type:_0xa385x3[_0x7f5e[3]],allowNull:true},project:{type:_0xa385x3[_0x7f5e[3]],allowNull:true},alt_extension:{type:_0xa385x3[_0x7f5e[3]],allowNull:true},alt_priority:{type:_0xa385x3.INTEGER(11),allowNull:true},alt_context:{type:_0xa385x3[_0x7f5e[3]],allowNull:true},causecode:{type:_0xa385x3[_0x7f5e[3]],allowNull:true},variable:{type:_0xa385x3[_0x7f5e[3]],allowNull:true},value:{type:_0xa385x3[_0x7f5e[3]],allowNull:true},customApp:{type:_0xa385x3[_0x7f5e[3]],allowNull:true},mailbox:{type:_0xa385x3[_0x7f5e[3]],allowNull:true},trunk:{type:_0xa385x3[_0x7f5e[3]],allowNull:true},cutdigits:{type:_0xa385x3.INTEGER(11),allowNull:true},isInterval:{type:_0xa385x3[_0x7f5e[11]],defaultValue:false},callerID:{type:_0xa385x3[_0x7f5e[3]],allowNull:true}},{tableName:_0x7f5e[13],associate:function(_0xa385x5){_0xa385x4[_0x7f5e[16]](_0xa385x5.VoiceExtension,{as:_0x7f5e[14],onDelete:_0x7f5e[15]});_0xa385x4[_0x7f5e[31]](function(_0xa385x6){if(_0xa385x6[_0x7f5e[18]][_0x7f5e[17]]){_0xa385x4[_0x7f5e[30]]({where:{TrunkId:_0xa385x6[_0x7f5e[29]][_0x7f5e[28]]}})[_0x7f5e[27]](function(_0xa385x8){_0xa385x8[_0x7f5e[26]](function(_0xa385x9){_0xa385x9[_0x7f5e[21]]=util[_0x7f5e[24]](_0x7f5e[22],_0xa385x9[_0x7f5e[23]],_0xa385x9[_0x7f5e[17]]);_0xa385x9[_0x7f5e[25]]();})})[_0x7f5e[20]](function(_0xa385x7){console[_0x7f5e[19]](_0xa385x7)})}});_0xa385x4[_0x7f5e[32]](function(_0xa385x8){_0xa385x8[_0x7f5e[26]](function(_0xa385x9){if(_0xa385x9[_0x7f5e[17]]){_0xa385x9[_0x7f5e[21]]=util[_0x7f5e[24]](_0x7f5e[22],_0xa385x9[_0x7f5e[23]],_0xa385x9[_0x7f5e[17]])}})});}});return _0xa385x4;};
\ No newline at end of file