546b2e546e231ca6325523fa7f06c1e62968b4ed
[motion.git] / server / models / zendesk_account.js
1 var _0xfce1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x5A\x65\x6E\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x53\x54\x52\x49\x4E\x47","\x70\x61\x73\x73\x77\x6F\x72\x64","\x74\x6F\x6B\x65\x6E","\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x5A\x65\x6E\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x69\x64","\x6E\x61\x6D\x65","\x61\x64\x64\x53\x63\x6F\x70\x65","\x64\x65\x66\x69\x6E\x65"];_0xfce1[0];module[_0xfce1[1]]=function(_0x1909x1,_0x1909x2){var _0x1909x3=_0x1909x1[_0xfce1[15]](_0xfce1[2],{name:_0x1909x2[_0xfce1[3]],description:_0x1909x2[_0xfce1[3]],username:{type:_0x1909x2[_0xfce1[3]],unique:true},password:_0x1909x2[_0xfce1[3]],token:_0x1909x2[_0xfce1[3]],remoteUri:{type:_0x1909x2[_0xfce1[3]],unique:true},authType:{type:_0x1909x2.ENUM(_0xfce1[4],_0xfce1[5]),defaultValue:_0xfce1[4]}},{tableName:_0xfce1[6],associate:function(_0x1909x4){_0x1909x3[_0xfce1[9]](_0x1909x4.ZendeskConfiguration,{as:_0xfce1[7],foreignKey:_0xfce1[8]});_0x1909x3[_0xfce1[14]](_0xfce1[10],{include:[{model:_0x1909x4[_0xfce1[11]],as:_0xfce1[7],required:false,attributes:[_0xfce1[12],_0xfce1[13]]}]})}});return _0x1909x3}