Built motion from commit 8d1370ff4.|1.0.34
[motion.git] / server / api / custom_field / custom_field.controller.js
index d35806f..265540d 100644 (file)
@@ -1 +1 @@
-var _0xa0b0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x43\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x6F\x6E\x74\x61\x63\x74","\x75\x74\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x67\x65\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x4C\x69\x73\x74\x49\x64","\x55\x73\x65\x20\x74\x68\x65\x20\x6C\x69\x73\x74\x20\x41\x50\x49\x20\x74\x6F\x20\x67\x65\x74\x20\x63\x75\x73\x74\x6F\x6D\x20\x66\x69\x65\x6C\x64\x73\x20\x73\x70\x65\x63\x69\x66\x69\x63\x20\x6F\x66\x20\x61\x20\x6C\x69\x73\x74\x21","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x4E\x6F\x20\x4C\x69\x73\x74\x20\x49\x44\x20\x61\x6C\x6C\x6F\x77\x65\x64\x2C\x20\x75\x73\x65\x20\x74\x68\x65\x20\x6C\x69\x73\x74\x20\x41\x50\x49\x20\x74\x6F\x20\x63\x72\x65\x61\x74\x65\x20\x72\x65\x6C\x65\x61\x74\x65\x64\x20\x63\x75\x73\x74\x6F\x6D\x20\x66\x69\x65\x6C\x64\x73\x21","\x41\x4C\x54\x45\x52\x20\x54\x41\x42\x4C\x45\x20\x63\x6D\x5F\x63\x6F\x6E\x74\x61\x63\x74\x73\x20\x41\x44\x44\x20\x43\x4F\x4C\x55\x4D\x4E\x20\x25\x73\x20\x56\x41\x52\x43\x48\x41\x52\x28\x32\x35\x35\x29","\x6E\x61\x6D\x65","\x66\x6F\x72\x6D\x61\x74","\x63\x66\x5F","\x73\x61\x76\x65","\x75\x70\x64\x61\x74\x65","\x55\x73\x65\x20\x74\x68\x65\x20\x6C\x69\x73\x74\x20\x41\x50\x49\x20\x74\x6F\x20\x75\x70\x64\x61\x74\x65\x20\x63\x75\x73\x74\x6F\x6D\x20\x66\x69\x65\x6C\x64\x73\x20\x73\x70\x65\x63\x69\x66\x69\x63\x20\x6F\x66\x20\x61\x20\x6C\x69\x73\x74\x21","\x6D\x65\x72\x67\x65","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x41\x4C\x54\x45\x52\x20\x54\x41\x42\x4C\x45\x20\x63\x6D\x5F\x63\x6F\x6E\x74\x61\x63\x74\x73\x20\x44\x52\x4F\x50\x20\x43\x4F\x4C\x55\x4D\x4E\x20\x25\x73","\x6B\x65\x79\x73","\x64\x65\x73\x63\x72\x69\x62\x65","\x55\x73\x65\x20\x74\x68\x65\x20\x6C\x69\x73\x74\x20\x41\x50\x49\x20\x74\x6F\x20\x64\x65\x6C\x65\x74\x65\x20\x63\x75\x73\x74\x6F\x6D\x20\x66\x69\x65\x6C\x64\x73\x20\x73\x70\x65\x63\x69\x66\x69\x63\x20\x6F\x66\x20\x61\x20\x6C\x69\x73\x74\x21","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x61\x6C\x6C","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x69\x64\x73","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0xa0b0[0];var _=require(_0xa0b0[1]);var CustomField=require(_0xa0b0[3])[_0xa0b0[2]];var Contact=require(_0xa0b0[3])[_0xa0b0[4]];var util=require(_0xa0b0[5]);var Util=require(_0xa0b0[6]);var sequelize=require(_0xa0b0[3])[_0xa0b0[7]];var logger=require(_0xa0b0[9])(_0xa0b0[8]);exports[_0xa0b0[10]]= function(_0x6c60x8,_0x6c60x9,_0x6c60xa){return CustomField[_0xa0b0[17]](Util[_0xa0b0[16]](_0x6c60x8[_0xa0b0[15]],{ListId:null}))[_0xa0b0[14]](function(_0x6c60xc){_0x6c60x9[_0xa0b0[13]](200)[_0xa0b0[12]](_0x6c60xc)})[_0xa0b0[11]](function(_0x6c60xb){return handleError(_0x6c60x9,_0x6c60xb)})};exports[_0xa0b0[18]]= function(_0x6c60x8,_0x6c60x9,_0x6c60xa){return CustomField[_0xa0b0[17]](Util[_0xa0b0[16]](_0x6c60x8[_0xa0b0[15]]))[_0xa0b0[14]](function(_0x6c60xc){_0x6c60x9[_0xa0b0[13]](200)[_0xa0b0[12]](_0x6c60xc)})[_0xa0b0[11]](function(_0x6c60xb){return handleError(_0x6c60x9,_0x6c60xb)})};exports[_0xa0b0[19]]= function(_0x6c60x8,_0x6c60x9){return CustomField[_0xa0b0[25]](_0x6c60x8[_0xa0b0[24]][_0xa0b0[23]])[_0xa0b0[14]](function(_0x6c60xd){if(!_0x6c60xd){return _0x6c60x9[_0xa0b0[20]](404)};if(_0x6c60xd[_0xa0b0[21]]){return handleError(_0x6c60x9,{message:_0xa0b0[22]})};return _0x6c60x9[_0xa0b0[12]](_0x6c60xd)})[_0xa0b0[11]](function(_0x6c60xb){return handleError(_0x6c60x9,_0x6c60xb)})};exports[_0xa0b0[26]]= function(_0x6c60x8,_0x6c60x9){if(_0x6c60x8[_0xa0b0[27]][_0xa0b0[21]]){return handleError(_0x6c60x9,{message:_0xa0b0[28]})};var _0x6c60xe;return CustomField[_0xa0b0[26]](_0x6c60x8[_0xa0b0[27]])[_0xa0b0[14]](function(_0x6c60xd){_0x6c60xe= _0x6c60xd;_0x6c60xd[_0xa0b0[30]]= _0xa0b0[32]+ _0x6c60xd[_0xa0b0[23]];return _0x6c60xd[_0xa0b0[33]]()})[_0xa0b0[14]](function(){return sequelize[_0xa0b0[15]](util[_0xa0b0[31]](_0xa0b0[29],_0x6c60xe[_0xa0b0[30]]))})[_0xa0b0[14]](function(){return _0x6c60x9[_0xa0b0[20]](201)})[_0xa0b0[11]](function(_0x6c60xb){return handleError(_0x6c60x9,_0x6c60xb)})};exports[_0xa0b0[34]]= function(_0x6c60x8,_0x6c60x9){return CustomField[_0xa0b0[25]](_0x6c60x8[_0xa0b0[24]][_0xa0b0[23]])[_0xa0b0[14]](function(_0x6c60xd){if(!_0x6c60xd){return _0x6c60x9[_0xa0b0[20]](404)};if(_0x6c60xd[_0xa0b0[21]]){return handleError(_0x6c60x9,{message:_0xa0b0[35]})};var _0x6c60xf=_[_0xa0b0[36]](_0x6c60xd,_0x6c60x8[_0xa0b0[27]]);return _0x6c60xf[_0xa0b0[33]]()})[_0xa0b0[14]](function(_0x6c60xd){if(_0x6c60xd){return _0x6c60x9[_0xa0b0[13]](200)[_0xa0b0[12]](_0x6c60xd)}})[_0xa0b0[11]](function(_0x6c60xb){return handleError(_0x6c60x9,_0x6c60xb)})};exports[_0xa0b0[37]]= function(_0x6c60x8,_0x6c60x9){var _0x6c60x10;return CustomField[_0xa0b0[25]](_0x6c60x8[_0xa0b0[24]][_0xa0b0[23]])[_0xa0b0[14]](function(_0x6c60x13){if(!_0x6c60x13){return _0x6c60x9[_0xa0b0[20]](404)};if(_0x6c60x13[_0xa0b0[21]]){return handleError(_0x6c60x9,{message:_0xa0b0[42]})};_0x6c60x10= _0x6c60x13;return CustomField[_0xa0b0[37]]({where:{id:_0x6c60x8[_0xa0b0[24]][_0xa0b0[23]]}})})[_0xa0b0[14]](function(){return Contact[_0xa0b0[41]]()})[_0xa0b0[14]](function(_0x6c60x12){return _[_0xa0b0[40]](_0x6c60x12)})[_0xa0b0[14]](function(_0x6c60x11){if(_[_0xa0b0[38]](_0x6c60x11,_0x6c60x10[_0xa0b0[30]])){return sequelize[_0xa0b0[15]](util[_0xa0b0[31]](_0xa0b0[39],_0x6c60x10[_0xa0b0[30]]))}})[_0xa0b0[14]](function(){return _0x6c60x9[_0xa0b0[20]](204)})[_0xa0b0[11]](function(_0x6c60xb){return handleError(_0x6c60x9,_0x6c60xb)})};exports[_0xa0b0[43]]= function(_0x6c60x8,_0x6c60x9){var _0x6c60x14;return CustomField[_0xa0b0[48]]({where:{id:_0x6c60x8[_0xa0b0[15]][_0xa0b0[47]]}})[_0xa0b0[14]](function(_0x6c60x17){if(!_0x6c60x17){return _0x6c60x9[_0xa0b0[20]](404)};var _0x6c60xb=false;_[_0xa0b0[46]](_0x6c60x17,function(_0x6c60x18){if(_0x6c60x18[_0xa0b0[21]]){_0x6c60xb= true}});if(_0x6c60xb){return handleError(_0x6c60x9,{message:_0xa0b0[42]})};_0x6c60x14= _0x6c60x17;return CustomField[_0xa0b0[37]]({where:{id:_0x6c60x8[_0xa0b0[15]][_0xa0b0[47]]}})})[_0xa0b0[14]](function(){return Contact[_0xa0b0[41]]()})[_0xa0b0[14]](function(_0x6c60x12){return _[_0xa0b0[40]](_0x6c60x12)})[_0xa0b0[14]](function(_0x6c60x11){var _0x6c60x15=[];_0x6c60x14[_0xa0b0[46]](function(_0x6c60x16){if(_[_0xa0b0[38]](_0x6c60x11,_0x6c60x16[_0xa0b0[30]])){_0x6c60x15[_0xa0b0[45]](sequelize[_0xa0b0[15]](util[_0xa0b0[31]](_0xa0b0[39],_0x6c60x16[_0xa0b0[30]])))}});return _0x6c60x15})[_0xa0b0[44]]()[_0xa0b0[14]](function(){return _0x6c60x9[_0xa0b0[20]](204)})[_0xa0b0[11]](function(_0x6c60xb){return handleError(_0x6c60x9,_0x6c60xb)})};function handleError(_0x6c60x9,_0x6c60xb){logger[_0xa0b0[50]](_0x6c60xb[_0xa0b0[49]]);return _0x6c60x9[_0xa0b0[13]](500)[_0xa0b0[12]](_0x6c60xb)}
\ No newline at end of file
+var _0xe295=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x43\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x6F\x6E\x74\x61\x63\x74","\x75\x74\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x67\x65\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x4C\x69\x73\x74\x49\x64","\x55\x73\x65\x20\x74\x68\x65\x20\x6C\x69\x73\x74\x20\x41\x50\x49\x20\x74\x6F\x20\x67\x65\x74\x20\x63\x75\x73\x74\x6F\x6D\x20\x66\x69\x65\x6C\x64\x73\x20\x73\x70\x65\x63\x69\x66\x69\x63\x20\x6F\x66\x20\x61\x20\x6C\x69\x73\x74\x21","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x4E\x6F\x20\x4C\x69\x73\x74\x20\x49\x44\x20\x61\x6C\x6C\x6F\x77\x65\x64\x2C\x20\x75\x73\x65\x20\x74\x68\x65\x20\x6C\x69\x73\x74\x20\x41\x50\x49\x20\x74\x6F\x20\x63\x72\x65\x61\x74\x65\x20\x72\x65\x6C\x65\x61\x74\x65\x64\x20\x63\x75\x73\x74\x6F\x6D\x20\x66\x69\x65\x6C\x64\x73\x21","\x41\x4C\x54\x45\x52\x20\x54\x41\x42\x4C\x45\x20\x63\x6D\x5F\x63\x6F\x6E\x74\x61\x63\x74\x73\x20\x41\x44\x44\x20\x43\x4F\x4C\x55\x4D\x4E\x20\x25\x73\x20\x56\x41\x52\x43\x48\x41\x52\x28\x32\x35\x35\x29","\x6E\x61\x6D\x65","\x66\x6F\x72\x6D\x61\x74","\x63\x66\x5F","\x73\x61\x76\x65","\x75\x70\x64\x61\x74\x65","\x55\x73\x65\x20\x74\x68\x65\x20\x6C\x69\x73\x74\x20\x41\x50\x49\x20\x74\x6F\x20\x75\x70\x64\x61\x74\x65\x20\x63\x75\x73\x74\x6F\x6D\x20\x66\x69\x65\x6C\x64\x73\x20\x73\x70\x65\x63\x69\x66\x69\x63\x20\x6F\x66\x20\x61\x20\x6C\x69\x73\x74\x21","\x6D\x65\x72\x67\x65","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x41\x4C\x54\x45\x52\x20\x54\x41\x42\x4C\x45\x20\x63\x6D\x5F\x63\x6F\x6E\x74\x61\x63\x74\x73\x20\x44\x52\x4F\x50\x20\x43\x4F\x4C\x55\x4D\x4E\x20\x25\x73","\x6B\x65\x79\x73","\x64\x65\x73\x63\x72\x69\x62\x65","\x55\x73\x65\x20\x74\x68\x65\x20\x6C\x69\x73\x74\x20\x41\x50\x49\x20\x74\x6F\x20\x64\x65\x6C\x65\x74\x65\x20\x63\x75\x73\x74\x6F\x6D\x20\x66\x69\x65\x6C\x64\x73\x20\x73\x70\x65\x63\x69\x66\x69\x63\x20\x6F\x66\x20\x61\x20\x6C\x69\x73\x74\x21","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x61\x6C\x6C","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x69\x64\x73","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0xe295[0];var _=require(_0xe295[1]);var CustomField=require(_0xe295[3])[_0xe295[2]];var Contact=require(_0xe295[3])[_0xe295[4]];var util=require(_0xe295[5]);var Util=require(_0xe295[6]);var sequelize=require(_0xe295[3])[_0xe295[7]];var logger=require(_0xe295[9])(_0xe295[8]);exports[_0xe295[10]]= function(_0xadaax8,_0xadaax9,_0xadaaxa){return CustomField[_0xe295[17]](Util[_0xe295[16]](_0xadaax8[_0xe295[15]],{ListId:null}))[_0xe295[14]](function(_0xadaaxc){_0xadaax9[_0xe295[13]](200)[_0xe295[12]](_0xadaaxc)})[_0xe295[11]](function(_0xadaaxb){return handleError(_0xadaax9,_0xadaaxb)})};exports[_0xe295[18]]= function(_0xadaax8,_0xadaax9,_0xadaaxa){return CustomField[_0xe295[17]](Util[_0xe295[16]](_0xadaax8[_0xe295[15]]))[_0xe295[14]](function(_0xadaaxc){_0xadaax9[_0xe295[13]](200)[_0xe295[12]](_0xadaaxc)})[_0xe295[11]](function(_0xadaaxb){return handleError(_0xadaax9,_0xadaaxb)})};exports[_0xe295[19]]= function(_0xadaax8,_0xadaax9){return CustomField[_0xe295[25]](_0xadaax8[_0xe295[24]][_0xe295[23]])[_0xe295[14]](function(_0xadaaxd){if(!_0xadaaxd){return _0xadaax9[_0xe295[20]](404)};if(_0xadaaxd[_0xe295[21]]){return handleError(_0xadaax9,{message:_0xe295[22]})};return _0xadaax9[_0xe295[12]](_0xadaaxd)})[_0xe295[11]](function(_0xadaaxb){return handleError(_0xadaax9,_0xadaaxb)})};exports[_0xe295[26]]= function(_0xadaax8,_0xadaax9){if(_0xadaax8[_0xe295[27]][_0xe295[21]]){return handleError(_0xadaax9,{message:_0xe295[28]})};var _0xadaaxe;return CustomField[_0xe295[26]](_0xadaax8[_0xe295[27]])[_0xe295[14]](function(_0xadaaxd){_0xadaaxe= _0xadaaxd;_0xadaaxd[_0xe295[30]]= _0xe295[32]+ _0xadaaxd[_0xe295[23]];return _0xadaaxd[_0xe295[33]]()})[_0xe295[14]](function(){return sequelize[_0xe295[15]](util[_0xe295[31]](_0xe295[29],_0xadaaxe[_0xe295[30]]))})[_0xe295[14]](function(){return _0xadaax9[_0xe295[20]](201)})[_0xe295[11]](function(_0xadaaxb){return handleError(_0xadaax9,_0xadaaxb)})};exports[_0xe295[34]]= function(_0xadaax8,_0xadaax9){return CustomField[_0xe295[25]](_0xadaax8[_0xe295[24]][_0xe295[23]])[_0xe295[14]](function(_0xadaaxd){if(!_0xadaaxd){return _0xadaax9[_0xe295[20]](404)};if(_0xadaaxd[_0xe295[21]]){return handleError(_0xadaax9,{message:_0xe295[35]})};var _0xadaaxf=_[_0xe295[36]](_0xadaaxd,_0xadaax8[_0xe295[27]]);return _0xadaaxf[_0xe295[33]]()})[_0xe295[14]](function(_0xadaaxd){if(_0xadaaxd){return _0xadaax9[_0xe295[13]](200)[_0xe295[12]](_0xadaaxd)}})[_0xe295[11]](function(_0xadaaxb){return handleError(_0xadaax9,_0xadaaxb)})};exports[_0xe295[37]]= function(_0xadaax8,_0xadaax9){var _0xadaax10;return CustomField[_0xe295[25]](_0xadaax8[_0xe295[24]][_0xe295[23]])[_0xe295[14]](function(_0xadaax13){if(!_0xadaax13){return _0xadaax9[_0xe295[20]](404)};if(_0xadaax13[_0xe295[21]]){return handleError(_0xadaax9,{message:_0xe295[42]})};_0xadaax10= _0xadaax13;return CustomField[_0xe295[37]]({where:{id:_0xadaax8[_0xe295[24]][_0xe295[23]]}})})[_0xe295[14]](function(){return Contact[_0xe295[41]]()})[_0xe295[14]](function(_0xadaax12){return _[_0xe295[40]](_0xadaax12)})[_0xe295[14]](function(_0xadaax11){if(_[_0xe295[38]](_0xadaax11,_0xadaax10[_0xe295[30]])){return sequelize[_0xe295[15]](util[_0xe295[31]](_0xe295[39],_0xadaax10[_0xe295[30]]))}})[_0xe295[14]](function(){return _0xadaax9[_0xe295[20]](204)})[_0xe295[11]](function(_0xadaaxb){return handleError(_0xadaax9,_0xadaaxb)})};exports[_0xe295[43]]= function(_0xadaax8,_0xadaax9){var _0xadaax14;return CustomField[_0xe295[48]]({where:{id:_0xadaax8[_0xe295[15]][_0xe295[47]]}})[_0xe295[14]](function(_0xadaax17){if(!_0xadaax17){return _0xadaax9[_0xe295[20]](404)};var _0xadaaxb=false;_[_0xe295[46]](_0xadaax17,function(_0xadaax18){if(_0xadaax18[_0xe295[21]]){_0xadaaxb= true}});if(_0xadaaxb){return handleError(_0xadaax9,{message:_0xe295[42]})};_0xadaax14= _0xadaax17;return CustomField[_0xe295[37]]({where:{id:_0xadaax8[_0xe295[15]][_0xe295[47]]}})})[_0xe295[14]](function(){return Contact[_0xe295[41]]()})[_0xe295[14]](function(_0xadaax12){return _[_0xe295[40]](_0xadaax12)})[_0xe295[14]](function(_0xadaax11){var _0xadaax15=[];_0xadaax14[_0xe295[46]](function(_0xadaax16){if(_[_0xe295[38]](_0xadaax11,_0xadaax16[_0xe295[30]])){_0xadaax15[_0xe295[45]](sequelize[_0xe295[15]](util[_0xe295[31]](_0xe295[39],_0xadaax16[_0xe295[30]])))}});return _0xadaax15})[_0xe295[44]]()[_0xe295[14]](function(){return _0xadaax9[_0xe295[20]](204)})[_0xe295[11]](function(_0xadaaxb){return handleError(_0xadaax9,_0xadaaxb)})};function handleError(_0xadaax9,_0xadaaxb){logger[_0xe295[50]](_0xadaaxb[_0xe295[49]]);return _0xadaax9[_0xe295[13]](500)[_0xe295[12]](_0xadaaxb)}
\ No newline at end of file