Built motion from commit b4bc0f0.|0.0.52
[motion.git] / server / models / user.js
1 var _0x46ce=["\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","\x55\x73\x65\x72","\x53\x54\x52\x49\x4E\x47","\x6E\x61\x6D\x65","\x73\x65\x74\x44\x61\x74\x61\x56\x61\x6C\x75\x65","\x64\x65\x66\x61\x75\x6C\x74\x75\x73\x65\x72","\x65\x6D\x61\x69\x6C","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x61\x64\x6D\x69\x6E","\x75\x73\x65\x72","\x61\x67\x65\x6E\x74","\x74\x65\x6C\x65\x70\x68\x6F\x6E\x65","\x73\x61\x6C\x74","\x6D\x61\x6B\x65\x53\x61\x6C\x74","\x70\x61\x73\x73\x77\x6F\x72\x64","\x65\x6E\x63\x72\x79\x70\x74\x50\x61\x73\x73\x77\x6F\x72\x64","\x6D\x64\x35\x73\x65\x63\x72\x65\x74","\x3A\x61\x73\x74\x65\x72\x69\x73\x6B\x3A","\x6D\x64\x35\x50\x61\x73\x73\x77\x6F\x72\x64","\x6C\x6F\x63\x61\x6C","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x61\x63\x63\x6F\x75\x6E\x74\x63\x6F\x64\x65","\x49\x4E\x54\x45\x47\x45\x52","\x42\x4F\x4F\x4C\x45\x41\x4E","\x44\x41\x54\x45","\x64\x79\x6E\x61\x6D\x69\x63","\x66\x72\x69\x65\x6E\x64","\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\x6C","\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","\x61\x63\x63\x65\x70\x74","\x72\x65\x66\x75\x73\x65","\x6F\x72\x69\x67\x69\x6E\x61\x74\x65","\x75\x61\x63","\x75\x61\x73","\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","\x44\x65\x66\x61\x75\x6C\x74\x20\x50\x61\x75\x73\x65","\x70\x68\x6F\x6E\x65\x42\x61\x72\x55\x6E\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x61\x6C","\x67\x65\x74\x44\x61\x74\x61\x56\x61\x6C\x75\x65","\x70\x68\x6F\x6E\x65\x42\x61\x72\x55\x6E\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x61\x6C\x4E\x75\x6D\x62\x65\x72","\x70\x68\x6F\x6E\x65\x42\x61\x72\x4E\x6F\x52\x65\x70\x6C\x79","\x70\x68\x6F\x6E\x65\x42\x61\x72\x4E\x6F\x52\x65\x70\x6C\x79\x4E\x75\x6D\x62\x65\x72","\x70\x68\x6F\x6E\x65\x42\x61\x72\x42\x75\x73\x79","\x70\x68\x6F\x6E\x65\x42\x61\x72\x42\x75\x73\x79\x4E\x75\x6D\x62\x65\x72","\x75\x73\x65\x72\x73","\x62\x61\x73\x65\x36\x34","\x72\x61\x6E\x64\x6F\x6D\x42\x79\x74\x65\x73","","\x70\x62\x6B\x64\x66\x32\x53\x79\x6E\x63","\x68\x61\x73\x4D\x61\x6E\x79","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x6D\x6F\x64\x75\x6C\x65\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x6E\x6E\x65\x6C\x73","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x6D\x61\x69\x6C\x5F\x72\x6F\x6F\x6D\x73","\x55\x73\x65\x72\x48\x61\x73\x54\x65\x61\x6D","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x55\x73\x65\x72\x48\x61\x73\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x53\x65\x72\x76\x69\x63\x65","\x55\x73\x65\x72\x49\x64","\x55\x73\x65\x72\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x63\x61\x73\x63\x61\x64\x65","\x61\x64\x64\x53\x63\x6F\x70\x65","\x69\x64","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x74\x72\x61\x6E\x73\x70\x6F\x72\x74","\x68\x6F\x73\x74","\x6E\x61\x74","\x74\x79\x70\x65","\x61\x6C\x6C\x6F\x77","\x63\x68\x61\x74\x43\x61\x70\x61\x63\x69\x74\x79","\x6D\x61\x69\x6C\x43\x61\x70\x61\x63\x69\x74\x79","\x66\x61\x78\x43\x61\x70\x61\x63\x69\x74\x79","\x6F\x6E\x6C\x69\x6E\x65","\x6C\x61\x73\x74\x4C\x6F\x67\x69\x6E\x41\x74","\x70\x68\x6F\x6E\x65\x42\x61\x72\x41\x75\x74\x6F\x41\x6E\x73\x77\x65\x72","\x70\x68\x6F\x6E\x65\x42\x61\x72\x45\x6E\x61\x62\x6C\x65\x53\x65\x74\x74\x69\x6E\x67\x73","\x63\x68\x61\x6E\x73\x70\x79","\x64\x65\x66\x69\x6E\x65"];_0x46ce[0];var crypto=require(_0x46ce[1]);var md5=require(_0x46ce[2]);var _=require(_0x46ce[3]);module[_0x46ce[4]]=function(_0x7d66x4,_0x7d66x5){var _0x7d66x6=_0x7d66x4[_0x46ce[106]](_0x46ce[5],{name:{type:_0x7d66x5[_0x46ce[6]],unique:true,validate:{notEmpty:true},set:function(_0x7d66x7){this[_0x46ce[8]](_0x46ce[7],_0x7d66x7);this[_0x46ce[8]](_0x46ce[9],_0x7d66x7)}},email:{type:_0x7d66x5[_0x46ce[6]],unique:true,set:function(_0x7d66x8){if(_0x7d66x8){this[_0x46ce[8]](_0x46ce[10],_0x7d66x8[_0x46ce[11]]())}},defaultValue:null},role:{type:_0x7d66x5.ENUM(_0x46ce[12],_0x46ce[13],_0x46ce[14],_0x46ce[15])},password:{type:_0x7d66x5[_0x46ce[6]],allowNull:false,validate:{notEmpty:true},set:function(_0x7d66x9){this[_0x46ce[16]]=this[_0x46ce[17]]();this[_0x46ce[8]](_0x46ce[18],this[_0x46ce[19]](_0x7d66x9));this[_0x46ce[8]](_0x46ce[20],this[_0x46ce[22]](this[_0x46ce[7]]+_0x46ce[21]+_0x7d66x9))}},provider:{type:_0x7d66x5[_0x46ce[6]],defaultValue:_0x46ce[23]},internal:{type:_0x7d66x5.INTEGER(11),unique:true,set:function(_0x7d66xa){this[_0x46ce[8]](_0x46ce[24],_0x7d66xa);this[_0x46ce[8]](_0x46ce[25],_0x7d66xa)}},salt:{type:_0x7d66x5[_0x46ce[6]]},phone:{type:_0x7d66x5[_0x46ce[6]]},mobile:{type:_0x7d66x5[_0x46ce[6]]},address:{type:_0x7d66x5[_0x46ce[6]]},zipcode:{type:_0x7d66x5[_0x46ce[6]]},userpic:{type:_0x7d66x5[_0x46ce[6]]},city:{type:_0x7d66x5[_0x46ce[6]]},country:{type:_0x7d66x5[_0x46ce[6]]},facebookUserId:{type:_0x7d66x5[_0x46ce[26]]},twitterUserId:{type:_0x7d66x5[_0x46ce[26]]},twitterKey:{type:_0x7d66x5[_0x46ce[6]]},twitterSecret:{type:_0x7d66x5[_0x46ce[6]]},github:{type:_0x7d66x5[_0x46ce[6]]},openId:{type:_0x7d66x5[_0x46ce[6]]},online:{type:_0x7d66x5[_0x46ce[27]],defaultValue:false},lastLoginAt:{type:_0x7d66x5[_0x46ce[28]]},ipaddr:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},port:{type:_0x7d66x5.INTEGER(5),allowNull:true},regseconds:{type:_0x7d66x5.INTEGER(11),allowNull:true},defaultuser:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},fullcontact:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},regserver:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},useragent:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},lastms:{type:_0x7d66x5.INTEGER(11),allowNull:true},host:{type:_0x7d66x5[_0x46ce[6]],allowNull:true,defaultValue:_0x46ce[29]},type:{type:_0x7d66x5.ENUM(_0x46ce[30],_0x46ce[13],_0x46ce[31]),allowNull:true,defaultValue:_0x46ce[30]},context:{type:_0x7d66x5[_0x46ce[6]],allowNull:true,defaultValue:_0x46ce[32]},permit:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},deny:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},secret:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},md5secret:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},remotesecret:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},transport:{type:_0x7d66x5[_0x46ce[6]],allowNull:true,defaultValue:_0x46ce[33]},dtmfmode:{type:_0x7d66x5.ENUM(_0x46ce[34],_0x46ce[35],_0x46ce[36],_0x46ce[37],_0x46ce[38]),allowNull:true,defaultValue:_0x46ce[34]},directmedia:{type:_0x7d66x5.ENUM(_0x46ce[39],_0x46ce[40],_0x46ce[41],_0x46ce[42]),allowNull:true,defaultValue:_0x46ce[40]},nat:{type:_0x7d66x5[_0x46ce[6]],allowNull:true,defaultValue:_0x46ce[43]},callgroup:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},pickupgroup:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},language:{type:_0x7d66x5[_0x46ce[6]],allowNull:true,defaultValue:_0x46ce[44]},disallow:{type:_0x7d66x5[_0x46ce[6]],allowNull:true,defaultValue:_0x46ce[45]},allow:{type:_0x7d66x5[_0x46ce[6]],allowNull:true,defaultValue:_0x46ce[46]},insecure:{type:_0x7d66x5[_0x46ce[6]],allowNull:true,defaultValue:_0x46ce[47]},trustrpid:{type:_0x7d66x5.ENUM(_0x46ce[39],_0x46ce[40]),allowNull:true,defaultValue:_0x46ce[40]},progressinband:{type:_0x7d66x5.ENUM(_0x46ce[39],_0x46ce[40],_0x46ce[48]),allowNull:true},promiscredir:{type:_0x7d66x5.ENUM(_0x46ce[39],_0x46ce[40]),allowNull:true},useclientcode:{type:_0x7d66x5.ENUM(_0x46ce[39],_0x46ce[40]),allowNull:true},accountcode:{type:_0x7d66x5.INTEGER(11),allowNull:true},setvar:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},callerid:{type:_0x7d66x5[_0x46ce[6]],allowNull:true,defaultValue:_0x46ce[49]},amaflags:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},callcounter:{type:_0x7d66x5.ENUM(_0x46ce[39],_0x46ce[40]),allowNull:true,defaultValue:_0x46ce[39]},busylevel:{type:_0x7d66x5.INTEGER(11),allowNull:true},allowoverlap:{type:_0x7d66x5.ENUM(_0x46ce[39],_0x46ce[40]),allowNull:true},allowsubscribe:{type:_0x7d66x5.ENUM(_0x46ce[39],_0x46ce[40]),allowNull:true},videosupport:{type:_0x7d66x5.ENUM(_0x46ce[39],_0x46ce[40]),allowNull:true},maxcallbitrate:{type:_0x7d66x5.INTEGER(11),allowNull:true},rfc2833compensate:{type:_0x7d66x5.ENUM(_0x46ce[39],_0x46ce[40]),allowNull:true},mailbox:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x74\x69\x6D\x65\x72\x73":{type:_0x7d66x5.ENUM(_0x46ce[50],_0x46ce[51],_0x46ce[52]),allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x65\x78\x70\x69\x72\x65\x73":{type:_0x7d66x5.INTEGER(11),allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x6D\x69\x6E\x73\x65":{type:_0x7d66x5.INTEGER(11),allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x72\x65\x66\x72\x65\x73\x68\x65\x72":{type:_0x7d66x5.ENUM(_0x46ce[53],_0x46ce[54]),allowNull:true},t38pt_usertpsource:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},regexten:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},fromdomain:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},fromuser:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},qualify:{type:_0x7d66x5.ENUM(_0x46ce[39],_0x46ce[40]),allowNull:true,defaultValue:_0x46ce[39]},defaultip:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},rtptimeout:{type:_0x7d66x5.INTEGER(11),allowNull:true},rtpholdtimeout:{type:_0x7d66x5.INTEGER(11),allowNull:true},sendrpid:{type:_0x7d66x5.ENUM(_0x46ce[39],_0x46ce[40]),allowNull:true,defaultValue:_0x46ce[40]},outboundproxy:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},callbackextension:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},timert1:{type:_0x7d66x5.INTEGER(11),allowNull:true},timerb:{type:_0x7d66x5.INTEGER(11),allowNull:true},qualifyfreq:{type:_0x7d66x5.INTEGER(11),allowNull:true},constantssrc:{type:_0x7d66x5.ENUM(_0x46ce[39],_0x46ce[40]),allowNull:true},contactpermit:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},contactdeny:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},usereqphone:{type:_0x7d66x5.ENUM(_0x46ce[39],_0x46ce[40]),allowNull:true,defaultValue:_0x46ce[40]},textsupport:{type:_0x7d66x5.ENUM(_0x46ce[39],_0x46ce[40]),allowNull:true},faxdetect:{type:_0x7d66x5.ENUM(_0x46ce[39],_0x46ce[40]),allowNull:true},buggymwi:{type:_0x7d66x5.ENUM(_0x46ce[39],_0x46ce[40]),allowNull:true},auth:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},fullname:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},trunkname:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},cid_number:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},callingpres:{type:_0x7d66x5.ENUM(_0x46ce[55],_0x46ce[56],_0x46ce[57],_0x46ce[58],_0x46ce[59],_0x46ce[60],_0x46ce[61],_0x46ce[62]),allowNull:true},mohinterpret:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},mohsuggest:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},parkinglot:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},hasvoicemail:{type:_0x7d66x5.ENUM(_0x46ce[39],_0x46ce[40]),allowNull:true},subscribemwi:{type:_0x7d66x5.ENUM(_0x46ce[39],_0x46ce[40]),allowNull:true},vmexten:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},description:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},autoframing:{type:_0x7d66x5.ENUM(_0x46ce[39],_0x46ce[40]),allowNull:true},limitonpeers:{type:_0x7d66x5.ENUM(_0x46ce[39],_0x46ce[40]),allowNull:true,defaultValue:_0x46ce[39]},rtpkeepalive:{type:_0x7d66x5.INTEGER(11),allowNull:true},"\x63\x61\x6C\x6C\x2D\x6C\x69\x6D\x69\x74":{type:_0x7d66x5.INTEGER(11),allowNull:true,defaultValue:null},g726nonstandard:{type:_0x7d66x5.ENUM(_0x46ce[39],_0x46ce[40]),allowNull:true},ignoresdpversion:{type:_0x7d66x5.ENUM(_0x46ce[39],_0x46ce[40]),allowNull:true},allowtransfer:{type:_0x7d66x5.ENUM(_0x46ce[39],_0x46ce[40]),allowNull:true},dynamic:{type:_0x7d66x5.ENUM(_0x46ce[39],_0x46ce[40]),allowNull:true},encryption:{type:_0x7d66x5.ENUM(_0x46ce[39],_0x46ce[40]),allowNull:true,defaultValue:_0x46ce[40]},registry:{type:_0x7d66x5[_0x46ce[6]],allowNull:true},voicePause:{type:_0x7d66x5[_0x46ce[27]],defaultValue:false},chatPause:{type:_0x7d66x5[_0x46ce[27]],defaultValue:false},mailPause:{type:_0x7d66x5[_0x46ce[27]],defaultValue:false},faxPause:{type:_0x7d66x5[_0x46ce[27]],defaultValue:false},pauseType:{type:_0x7d66x5[_0x46ce[6]],defaultValue:_0x46ce[63]},chatCapacity:{type:_0x7d66x5[_0x46ce[26]],defaultValue:0},mailCapacity:{type:_0x7d66x5[_0x46ce[26]],defaultValue:0},faxCapacity:{type:_0x7d66x5[_0x46ce[26]],defaultValue:0},phoneBarAutoAnswer:{type:_0x7d66x5[_0x46ce[27]],defaultValue:false},phoneBarEnableSettings:{type:_0x7d66x5[_0x46ce[27]],defaultValue:false},phoneBarUnconditionalNumber:{type:_0x7d66x5[_0x46ce[6]],get:function(){if(this[_0x46ce[65]](_0x46ce[64])){return this[_0x46ce[65]](_0x46ce[66])};return null}},phoneBarNoReplyNumber:{type:_0x7d66x5[_0x46ce[6]],get:function(){if(this[_0x46ce[65]](_0x46ce[67])){return this[_0x46ce[65]](_0x46ce[68])};return null}},phoneBarBusyNumber:{type:_0x7d66x5[_0x46ce[6]],get:function(){if(this[_0x46ce[65]](_0x46ce[69])){return this[_0x46ce[65]](_0x46ce[70])};return null}},phoneBarUnconditional:{type:_0x7d66x5[_0x46ce[27]],defaultValue:false},phoneBarNoReply:{type:_0x7d66x5[_0x46ce[27]],defaultValue:false},phoneBarBusy:{type:_0x7d66x5[_0x46ce[27]],defaultValue:false},chanspy:{type:_0x7d66x5[_0x46ce[27]],defaultValue:false}},{tableName:_0x46ce[71],instanceMethods:{authenticate:function(_0x7d66xb){return this[_0x46ce[19]](_0x7d66xb)===this[_0x46ce[18]]},makeSalt:function(){return crypto[_0x46ce[73]](16).toString(_0x46ce[72])},encryptPassword:function(_0x7d66x9){if(!_0x7d66x9||!this[_0x46ce[16]]){return _0x46ce[74]};var _0x7d66xc= new Buffer(this[_0x46ce[16]],_0x46ce[72]);return crypto[_0x46ce[75]](_0x7d66x9,_0x7d66xc,10000,64).toString(_0x46ce[72])},md5Password:function(_0x7d66x9){if(!_0x7d66x9){return _0x46ce[74]};return md5(_0x7d66x9)}},associate:function(_0x7d66xd){_0x7d66x6[_0x46ce[76]](_0x7d66xd.ChatMessage);_0x7d66x6[_0x46ce[76]](_0x7d66xd.Contact);_0x7d66x6[_0x46ce[76]](_0x7d66xd.Action);_0x7d66x6[_0x46ce[78]](_0x7d66xd.Module,{through:_0x46ce[77]});_0x7d66x6[_0x46ce[78]](_0x7d66xd.Channel,{through:_0x46ce[79]});_0x7d66x6[_0x46ce[78]](_0x7d66xd.MailRoom,{through:_0x46ce[80]});_0x7d66x6[_0x46ce[78]](_0x7d66xd.Team,{through:_0x7d66xd[_0x46ce[81]]});_0x7d66x6[_0x46ce[78]](_0x7d66xd.ChatRoom,{through:_0x7d66xd[_0x46ce[82]]});_0x7d66x6[_0x46ce[78]](_0x7d66xd.MailQueue,{through:_0x7d66xd[_0x46ce[83]]});_0x7d66x6[_0x46ce[78]](_0x7d66xd.ChatQueue,{through:_0x7d66xd[_0x46ce[84]]});_0x7d66x6[_0x46ce[78]](_0x7d66xd.VoiceQueue,{through:_0x7d66xd[_0x46ce[85]]});_0x7d66x6[_0x46ce[78]](_0x7d66xd.Service,{through:_0x7d66xd[_0x46ce[86]]});_0x7d66x6[_0x46ce[76]](_0x7d66xd.VoiceExtension,{foreignKey:_0x46ce[87],as:_0x46ce[88],onDelete:_0x46ce[89],hooks:true});_0x7d66x6[_0x46ce[90]](_0x46ce[13],{where:{role:{$in:[_0x46ce[12],_0x46ce[13]]}}});_0x7d66x6[_0x46ce[90]](_0x46ce[15],{where:{role:_0x46ce[15]}});_0x7d66x6[_0x46ce[90]](_0x46ce[14],{where:{role:_0x46ce[14]},attributes:[_0x46ce[91],_0x46ce[7],_0x46ce[10],_0x46ce[24],_0x46ce[92],_0x46ce[25],_0x46ce[93],_0x46ce[94],_0x46ce[95],_0x46ce[96],_0x46ce[97],_0x46ce[98],_0x46ce[99],_0x46ce[100],_0x46ce[101],_0x46ce[102],_0x46ce[103],_0x46ce[104],_0x46ce[64],_0x46ce[67],_0x46ce[69],_0x46ce[66],_0x46ce[68],_0x46ce[70],_0x46ce[105]]})}});return _0x7d66x6}