Built motion from commit 7655a97.|0.0.55
[motion.git] / server / models / user.js
1 var _0xc92e=["\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","\x42\x4F\x4F\x4C\x45\x41\x4E","\x44\x41\x54\x45","\x44\x65\x66\x61\x75\x6C\x74\x20\x50\x61\x75\x73\x65","\x49\x4E\x54\x45\x47\x45\x52","\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","\x66\x72\x69\x65\x6E\x64","\x70\x65\x65\x72","\x66\x72\x6F\x6D\x2D\x73\x69\x70","\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","\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","\x61\x6C\x6C","\x70\x6F\x72\x74\x2C\x69\x6E\x76\x69\x74\x65","\x6E\x65\x76\x65\x72","\x22\x22\x20\x3C\x3E","\x61\x6C\x77\x61\x79\x73","\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","\x64\x79\x6E\x61\x6D\x69\x63","\x66\x69\x6E\x67\x65\x72\x70\x72\x69\x6E\x74","\x63\x65\x72\x74\x69\x66\x69\x63\x61\x74\x65","\x61\x63\x74\x69\x76\x65","\x70\x61\x73\x73\x69\x76\x65","\x61\x63\x74\x70\x61\x73\x73","\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"];_0xc92e[0];var crypto=require(_0xc92e[1]);var md5=require(_0xc92e[2]);var _=require(_0xc92e[3]);module[_0xc92e[4]]=function(_0xe4eex4,_0xe4eex5){var _0xe4eex6=_0xe4eex4[_0xc92e[112]](_0xc92e[5],{name:{type:_0xe4eex5[_0xc92e[6]],unique:true,validate:{notEmpty:true,is:/^[A-Za-z0-9\.\_]+$/i},set:function(_0xe4eex7){this[_0xc92e[8]](_0xc92e[7],_0xe4eex7);this[_0xc92e[8]](_0xc92e[9],_0xe4eex7)}},fullname:{type:_0xe4eex5[_0xc92e[6]],allowNull:false},email:{type:_0xe4eex5[_0xc92e[6]],unique:true,set:function(_0xe4eex8){if(_0xe4eex8){this[_0xc92e[8]](_0xc92e[10],_0xe4eex8[_0xc92e[11]]())}},defaultValue:null},role:{type:_0xe4eex5.ENUM(_0xc92e[12],_0xc92e[13],_0xc92e[14],_0xc92e[15])},password:{type:_0xe4eex5[_0xc92e[6]],allowNull:false,validate:{notEmpty:true},set:function(_0xe4eex9){this[_0xc92e[16]]=this[_0xc92e[17]]();this[_0xc92e[8]](_0xc92e[18],this[_0xc92e[19]](_0xe4eex9));this[_0xc92e[8]](_0xc92e[20],this[_0xc92e[22]](this[_0xc92e[7]]+_0xc92e[21]+_0xe4eex9))}},provider:{type:_0xe4eex5[_0xc92e[6]],defaultValue:_0xc92e[23]},internal:{type:_0xe4eex5.INTEGER(11),unique:true,set:function(_0xe4eexa){this[_0xc92e[8]](_0xc92e[24],_0xe4eexa);this[_0xc92e[8]](_0xc92e[25],_0xe4eexa)}},salt:{type:_0xe4eex5[_0xc92e[6]]},phone:{type:_0xe4eex5[_0xc92e[6]]},mobile:{type:_0xe4eex5[_0xc92e[6]]},address:{type:_0xe4eex5[_0xc92e[6]]},zipcode:{type:_0xe4eex5[_0xc92e[6]]},userpic:{type:_0xe4eex5[_0xc92e[6]]},city:{type:_0xe4eex5[_0xc92e[6]]},country:{type:_0xe4eex5[_0xc92e[6]]},online:{type:_0xe4eex5[_0xc92e[26]],defaultValue:false},lastLoginAt:{type:_0xe4eex5[_0xc92e[27]]},voicePause:{type:_0xe4eex5[_0xc92e[26]],defaultValue:false},chatPause:{type:_0xe4eex5[_0xc92e[26]],defaultValue:false},mailPause:{type:_0xe4eex5[_0xc92e[26]],defaultValue:false},faxPause:{type:_0xe4eex5[_0xc92e[26]],defaultValue:false},pauseType:{type:_0xe4eex5[_0xc92e[6]],defaultValue:_0xc92e[28]},chatCapacity:{type:_0xe4eex5[_0xc92e[29]],defaultValue:0},mailCapacity:{type:_0xe4eex5[_0xc92e[29]],defaultValue:0},faxCapacity:{type:_0xe4eex5[_0xc92e[29]],defaultValue:0},phoneBarAutoAnswer:{type:_0xe4eex5[_0xc92e[26]],defaultValue:false},phoneBarEnableSettings:{type:_0xe4eex5[_0xc92e[26]],defaultValue:false},phoneBarUnconditionalNumber:{type:_0xe4eex5[_0xc92e[6]],get:function(){if(this[_0xc92e[31]](_0xc92e[30])){return this[_0xc92e[31]](_0xc92e[32])};return null}},phoneBarNoReplyNumber:{type:_0xe4eex5[_0xc92e[6]],get:function(){if(this[_0xc92e[31]](_0xc92e[33])){return this[_0xc92e[31]](_0xc92e[34])};return null}},phoneBarBusyNumber:{type:_0xe4eex5[_0xc92e[6]],get:function(){if(this[_0xc92e[31]](_0xc92e[35])){return this[_0xc92e[31]](_0xc92e[36])};return null}},phoneBarUnconditional:{type:_0xe4eex5[_0xc92e[26]],defaultValue:false},phoneBarNoReply:{type:_0xe4eex5[_0xc92e[26]],defaultValue:false},phoneBarBusy:{type:_0xe4eex5[_0xc92e[26]],defaultValue:false},phoneBarPort:{type:_0xe4eex5.INTEGER(5),allowNull:true},chanspy:{type:_0xe4eex5[_0xc92e[26]],defaultValue:false},description:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},ipaddr:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},port:{type:_0xe4eex5.INTEGER(5),allowNull:true},regseconds:{type:_0xe4eex5.INTEGER(11),allowNull:true},fullcontact:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},regserver:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},useragent:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},lastms:{type:_0xe4eex5.INTEGER(11),allowNull:true},type:{type:_0xe4eex5.ENUM(_0xc92e[37],_0xc92e[13],_0xc92e[38]),allowNull:true,defaultValue:_0xc92e[37]},context:{type:_0xe4eex5[_0xc92e[6]],allowNull:true,defaultValue:_0xc92e[39]},callingpres:{type:_0xe4eex5.ENUM(_0xc92e[40],_0xc92e[41],_0xc92e[42],_0xc92e[43],_0xc92e[44],_0xc92e[45],_0xc92e[46],_0xc92e[47]),allowNull:true},permit:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},deny:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},secret:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},md5secret:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},remotesecret:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},transport:{type:_0xe4eex5[_0xc92e[6]],allowNull:true,defaultValue:_0xc92e[48]},dtmfmode:{type:_0xe4eex5.ENUM(_0xc92e[49],_0xc92e[50],_0xc92e[51],_0xc92e[52],_0xc92e[53]),allowNull:true,defaultValue:_0xc92e[49]},directmedia:{type:_0xe4eex5.ENUM(_0xc92e[54],_0xc92e[55],_0xc92e[56],_0xc92e[57]),allowNull:true,defaultValue:_0xc92e[55]},nat:{type:_0xe4eex5[_0xc92e[6]],allowNull:true,defaultValue:_0xc92e[58]},callgroup:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},namedcallgroup:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},pickupgroup:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},namedpickupgroup:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},language:{type:_0xe4eex5[_0xc92e[6]],allowNull:true,defaultValue:_0xc92e[59]},tonezone:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},allow:{type:_0xe4eex5[_0xc92e[6]],allowNull:true,defaultValue:_0xc92e[60]},disallow:{type:_0xe4eex5[_0xc92e[6]],allowNull:true,defaultValue:_0xc92e[61]},autoframing:{type:_0xe4eex5.ENUM(_0xc92e[54],_0xc92e[55]),allowNull:true},insecure:{type:_0xe4eex5[_0xc92e[6]],allowNull:true,defaultValue:_0xc92e[62]},trustrpid:{type:_0xe4eex5.ENUM(_0xc92e[54],_0xc92e[55]),allowNull:true,defaultValue:_0xc92e[55]},trust_id_outbound:{type:_0xe4eex5.ENUM(_0xc92e[54],_0xc92e[55]),allowNull:true,defaultValue:_0xc92e[55]},progressinband:{type:_0xe4eex5.ENUM(_0xc92e[54],_0xc92e[55],_0xc92e[63]),allowNull:true},promiscredir:{type:_0xe4eex5.ENUM(_0xc92e[54],_0xc92e[55]),allowNull:true},useclientcode:{type:_0xe4eex5.ENUM(_0xc92e[54],_0xc92e[55]),allowNull:true},accountcode:{type:_0xe4eex5.INTEGER(11),allowNull:true},setvar:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},callerid:{type:_0xe4eex5[_0xc92e[6]],allowNull:true,defaultValue:_0xc92e[64]},amaflags:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},callcounter:{type:_0xe4eex5.ENUM(_0xc92e[54],_0xc92e[55]),allowNull:true,defaultValue:_0xc92e[54]},busylevel:{type:_0xe4eex5.INTEGER(11),allowNull:true},allowoverlap:{type:_0xe4eex5.ENUM(_0xc92e[54],_0xc92e[55]),allowNull:true},allowsubscribe:{type:_0xe4eex5.ENUM(_0xc92e[54],_0xc92e[55]),allowNull:true},allowtransfer:{type:_0xe4eex5.ENUM(_0xc92e[54],_0xc92e[55]),allowNull:true},ignoresdpversion:{type:_0xe4eex5.ENUM(_0xc92e[54],_0xc92e[55]),allowNull:true},subscribecontext:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},template:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},videosupport:{type:_0xe4eex5.ENUM(_0xc92e[54],_0xc92e[55],_0xc92e[65]),allowNull:true,defaultValue:_0xc92e[55]},maxcallbitrate:{type:_0xe4eex5.INTEGER(11),allowNull:true},rfc2833compensate:{type:_0xe4eex5.ENUM(_0xc92e[54],_0xc92e[55]),allowNull:true},mailbox:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},session_timers:{type:_0xe4eex5.ENUM(_0xc92e[66],_0xc92e[67],_0xc92e[68]),allowNull:true},session_expires:{type:_0xe4eex5.INTEGER(11),allowNull:true},session_minse:{type:_0xe4eex5.INTEGER(11),allowNull:true},session_refresher:{type:_0xe4eex5.ENUM(_0xc92e[69],_0xc92e[70]),allowNull:true,defaultValue:_0xc92e[70]},t38pt_usertpsource:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},regexten:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},fromdomain:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},fromuser:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},host:{type:_0xe4eex5[_0xc92e[6]],allowNull:true,defaultValue:_0xc92e[71]},qualify:{type:_0xe4eex5.ENUM(_0xc92e[54],_0xc92e[55]),allowNull:true,defaultValue:_0xc92e[54]},keepalive:{type:_0xe4eex5.INTEGER(11),allowNull:true},defaultip:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},defaultuser:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},rtptimeout:{type:_0xe4eex5.INTEGER(11),allowNull:true},rtpholdtimeout:{type:_0xe4eex5.INTEGER(11),allowNull:true},rtpkeepalive:{type:_0xe4eex5.INTEGER(11),allowNull:true},sendrpid:{type:_0xe4eex5.ENUM(_0xc92e[54],_0xc92e[55]),allowNull:true,defaultValue:_0xc92e[55]},outboundproxy:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},callbackextension:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},timert1:{type:_0xe4eex5.INTEGER(11),allowNull:true},timerb:{type:_0xe4eex5.INTEGER(11),allowNull:true},qualifyfreq:{type:_0xe4eex5.INTEGER(11),allowNull:true},contactpermit:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},contactdeny:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},contactacl:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},directmediapermit:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},directmediadeny:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},unsolicited_mailbox:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},use_q850_reason:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},maxforwards:{type:_0xe4eex5.INTEGER(11),allowNull:true},encryption:{type:_0xe4eex5.ENUM(_0xc92e[54],_0xc92e[55]),allowNull:true,defaultValue:_0xc92e[55]},avpf:{type:_0xe4eex5.ENUM(_0xc92e[54],_0xc92e[55]),allowNull:true},force_avp:{type:_0xe4eex5.ENUM(_0xc92e[54],_0xc92e[55]),allowNull:true},icesupport:{type:_0xe4eex5.ENUM(_0xc92e[54],_0xc92e[55]),allowNull:true},dtlsenable:{type:_0xe4eex5.ENUM(_0xc92e[54],_0xc92e[55]),allowNull:true},dtlsverify:{type:_0xe4eex5.ENUM(_0xc92e[54],_0xc92e[55],_0xc92e[72],_0xc92e[73]),allowNull:true},dtlsrekey:{type:_0xe4eex5.INTEGER(11),allowNull:true},dtlscertfile:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},dtlsprivatekey:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},dtlscipher:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},dtlscafile:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},dtlscapath:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},dtlssetup:{type:_0xe4eex5.ENUM(_0xc92e[74],_0xc92e[75],_0xc92e[76]),allowNull:true},dtlsfingerprint:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},usereqphone:{type:_0xe4eex5.ENUM(_0xc92e[54],_0xc92e[55]),allowNull:true,defaultValue:_0xc92e[55]},recordonfeature:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},recordofffeature:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},call_limit:{type:_0xe4eex5.INTEGER(11),allowNull:true,defaultValue:null},registertrying:{type:_0xe4eex5.ENUM(_0xc92e[54],_0xc92e[55]),allowNull:true},subscribemwi:{type:_0xe4eex5.ENUM(_0xc92e[54],_0xc92e[55]),allowNull:true},vmexten:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},mohinterpret:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},mohsuggest:{type:_0xe4eex5[_0xc92e[6]],allowNull:true},parkinglot:{type:_0xe4eex5[_0xc92e[6]],allowNull:true}},{tableName:_0xc92e[77],instanceMethods:{authenticate:function(_0xe4eexb){return this[_0xc92e[19]](_0xe4eexb)===this[_0xc92e[18]]},makeSalt:function(){return crypto[_0xc92e[79]](16).toString(_0xc92e[78])},encryptPassword:function(_0xe4eex9){if(!_0xe4eex9||!this[_0xc92e[16]]){return _0xc92e[80]};var _0xe4eexc= new Buffer(this[_0xc92e[16]],_0xc92e[78]);return crypto[_0xc92e[81]](_0xe4eex9,_0xe4eexc,10000,64).toString(_0xc92e[78])},md5Password:function(_0xe4eex9){if(!_0xe4eex9){return _0xc92e[80]};return md5(_0xe4eex9)}},associate:function(_0xe4eexd){_0xe4eex6[_0xc92e[82]](_0xe4eexd.ChatMessage);_0xe4eex6[_0xc92e[82]](_0xe4eexd.Contact);_0xe4eex6[_0xc92e[82]](_0xe4eexd.Action);_0xe4eex6[_0xc92e[84]](_0xe4eexd.Module,{through:_0xc92e[83]});_0xe4eex6[_0xc92e[84]](_0xe4eexd.Channel,{through:_0xc92e[85]});_0xe4eex6[_0xc92e[84]](_0xe4eexd.MailRoom,{through:_0xc92e[86]});_0xe4eex6[_0xc92e[84]](_0xe4eexd.Team,{through:_0xe4eexd[_0xc92e[87]]});_0xe4eex6[_0xc92e[84]](_0xe4eexd.ChatRoom,{through:_0xe4eexd[_0xc92e[88]]});_0xe4eex6[_0xc92e[84]](_0xe4eexd.MailQueue,{through:_0xe4eexd[_0xc92e[89]]});_0xe4eex6[_0xc92e[84]](_0xe4eexd.ChatQueue,{through:_0xe4eexd[_0xc92e[90]]});_0xe4eex6[_0xc92e[84]](_0xe4eexd.VoiceQueue,{through:_0xe4eexd[_0xc92e[91]]});_0xe4eex6[_0xc92e[84]](_0xe4eexd.Service,{through:_0xe4eexd[_0xc92e[92]]});_0xe4eex6[_0xc92e[82]](_0xe4eexd.VoiceExtension,{foreignKey:_0xc92e[93],as:_0xc92e[94],onDelete:_0xc92e[95],hooks:true});_0xe4eex6[_0xc92e[96]](_0xc92e[13],{where:{role:{$in:[_0xc92e[12],_0xc92e[13]]}}});_0xe4eex6[_0xc92e[96]](_0xc92e[15],{where:{role:_0xc92e[15]}});_0xe4eex6[_0xc92e[96]](_0xc92e[14],{where:{role:_0xc92e[14]},attributes:[_0xc92e[97],_0xc92e[7],_0xc92e[10],_0xc92e[24],_0xc92e[98],_0xc92e[25],_0xc92e[99],_0xc92e[100],_0xc92e[101],_0xc92e[102],_0xc92e[103],_0xc92e[104],_0xc92e[105],_0xc92e[106],_0xc92e[107],_0xc92e[108],_0xc92e[109],_0xc92e[110],_0xc92e[30],_0xc92e[33],_0xc92e[35],_0xc92e[32],_0xc92e[34],_0xc92e[36],_0xc92e[111]]})}});return _0xe4eex6}