Built motion from commit ab2cbc7.|0.0.98
[motion.git] / server / api / contact_manager / contact_manager.controller.js
1 var _0xab6d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x43\x6F\x6E\x74\x61\x63\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\x43\x6F\x6E\x74\x61\x63\x74\x50\x68\x6F\x6E\x65","\x43\x6F\x6E\x74\x61\x63\x74\x45\x6D\x61\x69\x6C","\x43\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64","\x52\x65\x70\x6F\x72\x74\x43\x61\x6C\x6C","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x48\x69\x73\x74\x6F\x72\x79","\x68\x69\x73\x74\x6F\x72\x79","\x52\x65\x70\x6F\x72\x74\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x4C\x69\x73\x74","\x52\x65\x70\x6F\x72\x74\x43\x61\x6C\x6C\x48\x69\x73\x74\x6F\x72\x79","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x52\x6F\x6F\x6D\x48\x69\x73\x74\x6F\x72\x79","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E\x48\x69\x73\x74\x6F\x72\x79","\x54\x61\x67","\x73\x74\x72\x65\x61\x6D","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x75\x74\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x61\x73\x79\x6E\x63","\x69\x6E\x64\x65\x78","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x69\x64","\x6D\x61\x70","\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","\x6C\x69\x73\x74","\x73\x63\x6F\x70\x65","\x67\x65\x74\x4C\x69\x73\x74\x73","\x75\x73\x65\x72","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x67\x65\x6E\x74","\x72\x6F\x6C\x65","\x64\x65\x73\x63\x72\x69\x62\x65","\x67\x65\x74\x4C\x6F\x67","\x64\x65\x74\x61\x69\x6C","\x67\x65\x6E\x65\x72\x61\x6C","\x73\x68\x6F\x77","\x70\x68\x6F\x6E\x65","\x6C\x6F\x67\x54\x79\x70\x65","\x6A\x6F\x75\x72\x6E\x61\x6C","\x74\x79\x70\x65","\x69\x6E\x62\x6F\x75\x6E\x64","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x64\x65\x73\x74\x69\x6E\x61\x74\x69\x6F\x6E","\x6D\x6F\x62\x69\x6C\x65","\x73\x6F\x75\x72\x63\x65","\x66\x72\x6F\x6D","\x65\x6D\x61\x69\x6C","\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x75\x6D","\x71\x75\x65\x75\x65","\x6D\x65\x72\x67\x65","\x70\x61\x72\x61\x6D\x73","\x6C\x65\x6E\x67\x74\x68","\x2C","\x6A\x6F\x69\x6E","\x6E\x61\x6D\x65","\x53\x45\x4C\x45\x43\x54\x20\x25\x73\x20\x46\x52\x4F\x4D\x20\x63\x6D\x5F\x63\x6F\x6E\x74\x61\x63\x74\x73\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3D\x25\x73","\x66\x6F\x72\x6D\x61\x74","\x53\x45\x4C\x45\x43\x54","\x51\x75\x65\x72\x79\x54\x79\x70\x65\x73","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x4C\x69\x73\x74\x49\x64","\x66\x69\x6E\x64\x41\x6C\x6C","\x67\x65\x74\x45\x76\x65\x6E\x74\x43\x6F\x6E\x74\x61\x63\x74\x73","\x76\x6F\x69\x63\x65","\x6D\x61\x69\x6C","\x65\x76\x65\x6E\x74\x43\x68\x61\x6E\x6E\x65\x6C","\x63\x72\x65\x61\x74\x65","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x62\x6F\x64\x79","\x25\x73\x3D\x27\x25\x73\x27","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x55\x50\x44\x41\x54\x45\x20\x63\x6D\x5F\x63\x6F\x6E\x74\x61\x63\x74\x73\x20\x53\x45\x54\x20\x25\x73\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3D\x25\x73","\x55\x73\x65\x72\x49\x64","\x61\x6C\x6C","\x74\x61\x67\x73","\x73\x70\x6C\x69\x74","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x63\x6F\x6E\x74\x61\x63\x74\x73","\x6B\x6F","\x6F\x6B","\x66\x6F\x72\x45\x61\x63\x68\x4F\x66","\x75\x6E\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x69\x64\x73"];_0xab6d[0];var _=require(_0xab6d[1]);var Contact=require(_0xab6d[3])[_0xab6d[2]];var User=require(_0xab6d[3])[_0xab6d[4]];var ContactPhone=require(_0xab6d[3])[_0xab6d[5]];var ContactEmail=require(_0xab6d[3])[_0xab6d[6]];var CustomField=require(_0xab6d[3])[_0xab6d[7]];var ReportCall=require(_0xab6d[3])[_0xab6d[8]];var ReportQueue=require(_0xab6d[3])[_0xab6d[9]];var ReportQueueHistory=require(_0xab6d[3])[_0xab6d[11]][_0xab6d[10]];var ReportIntegration=require(_0xab6d[3])[_0xab6d[12]];var List=require(_0xab6d[3])[_0xab6d[13]];var ReportCallHistory=require(_0xab6d[3])[_0xab6d[11]][_0xab6d[14]];var ReportMailSession=require(_0xab6d[3])[_0xab6d[15]];var ReportMailRoom=require(_0xab6d[3])[_0xab6d[16]];var ReportMailRoomHistory=require(_0xab6d[3])[_0xab6d[11]][_0xab6d[17]];var ReportMailSessionHistory=require(_0xab6d[3])[_0xab6d[11]][_0xab6d[18]];var Tag=require(_0xab6d[3])[_0xab6d[19]];var stream=require(_0xab6d[20]);var sequelize=require(_0xab6d[3])[_0xab6d[21]];var util=require(_0xab6d[22]);var Util=require(_0xab6d[23]);var Async=require(_0xab6d[24]);exports[_0xab6d[25]]=function(_0xf269x17,_0xf269x18,_0xf269x19){switch(_0xf269x17[_0xab6d[39]][_0xab6d[42]]){case _0xab6d[41]:return User[_0xab6d[40]](_0xf269x17[_0xab6d[39]][_0xab6d[31]])[_0xab6d[30]](function(_0xf269x1e){return _0xf269x1e[_0xab6d[38]]()})[_0xab6d[30]](function(_0xf269x1c){var _0xf269x1d=_[_0xab6d[32]](_0xf269x1c,_0xab6d[31]);return Contact[_0xab6d[37]](_0xab6d[36])[_0xab6d[35]](Util[_0xab6d[34]](_0xf269x17[_0xab6d[33]],{ListId:{$in:_0xf269x1d}}))})[_0xab6d[30]](function(_0xf269x1b){_0xf269x18[_0xab6d[29]](200)[_0xab6d[28]](_0xf269x1b)})[_0xab6d[27]](function(_0xf269x1a){console[_0xab6d[26]](_0xf269x1a);return handleError(_0xf269x18,_0xf269x1a)});default:return Contact[_0xab6d[37]](_0xab6d[36])[_0xab6d[35]](Util[_0xab6d[34]](_0xf269x17[_0xab6d[33]]))[_0xab6d[30]](function(_0xf269x1b){_0xf269x18[_0xab6d[29]](200)[_0xab6d[28]](_0xf269x1b)})[_0xab6d[27]](function(_0xf269x1a){console[_0xab6d[26]](_0xf269x1a);return handleError(_0xf269x18,_0xf269x1a)})}};exports[_0xab6d[43]]=function(_0xf269x17,_0xf269x18){return Contact[_0xab6d[43]]()[_0xab6d[30]](function(_0xf269x1f){return _0xf269x18[_0xab6d[29]](200)[_0xab6d[28]](_0xf269x1f)})[_0xab6d[27]](function(_0xf269x1a){return handleError(_0xf269x18,_0xf269x1a)})};exports[_0xab6d[44]]=function(_0xf269x17,_0xf269x18,_0xf269x19){_0xf269x17[_0xab6d[33]][_0xab6d[45]]=_0xf269x17[_0xab6d[33]][_0xab6d[45]]||_0xab6d[46];_0xf269x17[_0xab6d[33]][_0xab6d[47]]=_0xf269x17[_0xab6d[33]][_0xab6d[47]]||_0xab6d[48];_0xf269x17[_0xab6d[33]][_0xab6d[49]]=_0xf269x17[_0xab6d[33]][_0xab6d[49]]||_0xab6d[50];_0xf269x17[_0xab6d[33]][_0xab6d[51]]=_0xf269x17[_0xab6d[33]][_0xab6d[51]]||_0xab6d[52];var _0xf269x20,_0xf269x21={};return Contact[_0xab6d[40]](_0xf269x17[_0xab6d[63]][_0xab6d[31]])[_0xab6d[30]](function(_0xf269x22){if(!_0xf269x22){return _0xf269x18[_0xab6d[53]](404)};switch(_0xf269x17[_0xab6d[33]][_0xab6d[45]]){case _0xab6d[46]:switch(_0xf269x17[_0xab6d[33]][_0xab6d[47]]){case _0xab6d[48]:_0xf269x20=(_0xf269x17[_0xab6d[33]][_0xab6d[49]]===_0xab6d[11])?ReportCallHistory:ReportCall;if(_0xf269x17[_0xab6d[33]][_0xab6d[51]]===_0xab6d[54]){_0xf269x21[_0xab6d[55]]=[_0xf269x22[_0xab6d[48]],_0xf269x22[_0xab6d[56]]]}else {_0xf269x21[_0xab6d[57]]=[_0xf269x22[_0xab6d[48]],_0xf269x22[_0xab6d[56]]]};break;case _0xab6d[59]:_0xf269x20=(_0xf269x17[_0xab6d[33]][_0xab6d[49]]===_0xab6d[11])?ReportMailRoomHistory:ReportMailRoom;_0xf269x21[_0xab6d[58]]=_0xf269x22[_0xab6d[59]];break;default:_0xf269x20=(_0xf269x17[_0xab6d[33]][_0xab6d[49]]===_0xab6d[11])?ReportCallHistory:ReportCall};break;case _0xab6d[61]:switch(_0xf269x17[_0xab6d[33]][_0xab6d[47]]){case _0xab6d[48]:_0xf269x20=(_0xf269x17[_0xab6d[33]][_0xab6d[49]]===_0xab6d[11])?ReportQueueHistory:ReportQueue;_0xf269x21[_0xab6d[60]]=[_0xf269x22[_0xab6d[48]],_0xf269x22[_0xab6d[56]]];break;case _0xab6d[59]:return _0xf269x18[_0xab6d[53]](404);default:_0xf269x20=(_0xf269x17[_0xab6d[33]][_0xab6d[49]]===_0xab6d[11])?ReportQueueHistory:ReportQueue};break;default:_0xf269x20=ReportCall;_0xf269x17[_0xab6d[33]][_0xab6d[47]]=_0xab6d[48]};delete _0xf269x17[_0xab6d[33]][_0xab6d[45]];delete _0xf269x17[_0xab6d[33]][_0xab6d[47]];delete _0xf269x17[_0xab6d[33]][_0xab6d[49]];delete _0xf269x17[_0xab6d[33]][_0xab6d[51]];return _0xf269x20[_0xab6d[35]](_[_0xab6d[62]](Util[_0xab6d[34]](_0xf269x17[_0xab6d[33]]),{where:_0xf269x21}))})[_0xab6d[30]](function(_0xf269x1b){_0xf269x18[_0xab6d[29]](200)[_0xab6d[28]](_0xf269x1b)})[_0xab6d[27]](function(_0xf269x1a){console[_0xab6d[26]](_0xf269x1a);return handleError(_0xf269x18,_0xf269x1a)})};exports[_0xab6d[47]]=function(_0xf269x17,_0xf269x18){var _0xf269x23;return Contact[_0xab6d[37]](_0xab6d[36],_0xab6d[39])[_0xab6d[40]](_0xf269x17[_0xab6d[63]][_0xab6d[31]])[_0xab6d[30]](function(_0xf269x27){if(!_0xf269x27){return _0xf269x18[_0xab6d[53]](404)};_0xf269x23=_0xf269x27[_0xab6d[72]];return CustomField[_0xab6d[74]]({where:{ListId:_0xf269x23[_0xab6d[73]]}})})[_0xab6d[30]](function(_0xf269x25){if(_0xf269x25[_0xab6d[64]]){var _0xf269x26=_[_0xab6d[32]](_0xf269x25,_0xab6d[67])[_0xab6d[66]](_0xab6d[65]);return sequelize[_0xab6d[33]](util[_0xab6d[69]](_0xab6d[68],_0xf269x26,_0xf269x17[_0xab6d[63]][_0xab6d[31]]),{type:sequelize[_0xab6d[71]][_0xab6d[70]]})}})[_0xab6d[30]](function(_0xf269x24){if(_0xf269x24){_[_0xab6d[62]](_0xf269x23,_0xf269x24[0])}})[_0xab6d[30]](function(){return _0xf269x18[_0xab6d[29]](200)[_0xab6d[28]](_0xf269x23)})[_0xab6d[27]](function(_0xf269x1a){console[_0xab6d[26]](_0xf269x1a);return handleError(_0xf269x18,_0xf269x1a)})};exports[_0xab6d[75]]=function(_0xf269x17,_0xf269x18){return ReportIntegration[_0xab6d[40]](_0xf269x17[_0xab6d[63]][_0xab6d[31]])[_0xab6d[30]](function(_0xf269x29){var _0xf269x21={};switch(_0xf269x29[_0xab6d[78]]){case _0xab6d[76]:_0xf269x21={$or:{phone:_0xf269x29[_0xab6d[60]],mobile:_0xf269x29[_0xab6d[60]]}};break;case _0xab6d[77]:_0xf269x21={email:_0xf269x29[_0xab6d[58]]};break;default:_0xf269x21={}};return Contact[_0xab6d[74]]({where:_0xf269x21,include:[{model:List,where:{id:_[_0xab6d[32]](_[_0xab6d[32]](_0xf269x17[_0xab6d[39]].Lists,_0xab6d[72]),_0xab6d[31])}}]})})[_0xab6d[30]](function(_0xf269x28){return _0xf269x18[_0xab6d[29]](200)[_0xab6d[28]](_0xf269x28)})[_0xab6d[27]](function(_0xf269x1a){console[_0xab6d[26]](_0xf269x1a);return handleError(_0xf269x18,_0xf269x1a)})};exports[_0xab6d[79]]=function(_0xf269x17,_0xf269x18,_0xf269x19){var _0xf269x23;return Tag[_0xab6d[74]]()[_0xab6d[30]](function(_0xf269x2b){var _0xf269x2c=[];var _0xf269x2d=_[_0xab6d[32]](_[_0xab6d[32]](_0xf269x2b,_0xab6d[72]),_0xab6d[67]);if(_0xf269x17[_0xab6d[81]][_0xab6d[88]]){var _0xf269x2e=_0xf269x17[_0xab6d[81]][_0xab6d[88]][_0xab6d[89]](_0xab6d[65]);_0xf269x2e[_0xab6d[84]](function(_0xf269x2a){if(!_[_0xab6d[90]](_0xf269x2d,_0xf269x2a)){_0xf269x2c[_0xab6d[83]](Tag[_0xab6d[79]]({name:_0xf269x2a}))}})};return _0xf269x2c})[_0xab6d[87]]()[_0xab6d[30]](function(){_0xf269x17[_0xab6d[81]][_0xab6d[86]]=_0xf269x17[_0xab6d[39]][_0xab6d[31]];return Contact[_0xab6d[79]](_0xf269x17[_0xab6d[81]])})[_0xab6d[30]](function(_0xf269x22){_0xf269x23=_0xf269x22;return CustomField[_0xab6d[74]]({where:{ListId:_0xf269x23[_0xab6d[73]]}})})[_0xab6d[30]](function(_0xf269x25){if(_0xf269x25[_0xab6d[64]]){var _0xf269x26=[];_0xf269x25[_0xab6d[84]](function(_0xf269x2a){if(_0xf269x17[_0xab6d[81]][_0xab6d[80]](_0xf269x2a[_0xab6d[67]])){_0xf269x26[_0xab6d[83]](util[_0xab6d[69]](_0xab6d[82],_0xf269x2a[_0xab6d[67]],_0xf269x17[_0xab6d[81]][_0xf269x2a[_0xab6d[67]]]))}});if(_0xf269x26[_0xab6d[64]]){_0xf269x26=_0xf269x26[_0xab6d[66]](_0xab6d[65]);return sequelize[_0xab6d[33]](util[_0xab6d[69]](_0xab6d[85],_0xf269x26,_0xf269x23[_0xab6d[31]]))}}})[_0xab6d[30]](function(){return _0xf269x18[_0xab6d[29]](201)[_0xab6d[28]](_0xf269x23)})[_0xab6d[27]](function(_0xf269x1a){console[_0xab6d[26]](_0xf269x1a);return _0xf269x19(_0xf269x1a)})};exports[_0xab6d[91]]=function(_0xf269x17,_0xf269x18,_0xf269x19){var _0xf269x2f=[];var _0xf269x30={ok:0,ko:0};return Tag[_0xab6d[74]]()[_0xab6d[30]](function(_0xf269x2b){var _0xf269x2c=[],_0xf269x2e=[];var _0xf269x2d=_[_0xab6d[32]](_[_0xab6d[32]](_0xf269x2b,_0xab6d[72]),_0xab6d[67]);_0xf269x17[_0xab6d[81]][_0xab6d[92]][_0xab6d[84]](function(_0xf269x22){if(_0xf269x22[_0xab6d[88]]){_0xf269x2e=_[_0xab6d[96]](_0xf269x2e,_0xf269x22[_0xab6d[88]][_0xab6d[89]](_0xab6d[65]))}});_0xf269x2e[_0xab6d[84]](function(_0xf269x2a){if(!_[_0xab6d[90]](_0xf269x2d,_0xf269x2a)){_0xf269x2c[_0xab6d[83]](Tag[_0xab6d[79]]({name:_0xf269x2a}))}});return _0xf269x2c})[_0xab6d[87]]()[_0xab6d[30]](function(){var _0xf269x32=[];Async[_0xab6d[95]](_0xf269x17[_0xab6d[81]][_0xab6d[92]],function(_0xf269x22){_0xf269x22[_0xab6d[86]]=_0xf269x17[_0xab6d[39]][_0xab6d[31]];_0xf269x32[_0xab6d[83]](Contact[_0xab6d[79]](_0xf269x22)[_0xab6d[30]](function(_0xf269x22){_0xf269x2f[_0xab6d[83]](_0xf269x22);_0xf269x30[_0xab6d[94]]++})[_0xab6d[27]](function(_0xf269x1a){_0xf269x30[_0xab6d[93]]++}))});return _0xf269x32})[_0xab6d[87]]()[_0xab6d[30]](function(){return CustomField[_0xab6d[74]]({where:{ListId:{$in:_[_0xab6d[32]](_0xf269x17[_0xab6d[81]][_0xab6d[92]],_0xab6d[73])}}})})[_0xab6d[30]](function(_0xf269x25){var _0xf269x31=[];if(_0xf269x25[_0xab6d[64]]){var _0xf269x26=[];_0xf269x2f[_0xab6d[84]](function(_0xf269x22){_0xf269x26=[];_0xf269x25[_0xab6d[84]](function(_0xf269x2a){if(_0xf269x22[_0xab6d[80]](_0xf269x2a[_0xab6d[67]])){_0xf269x26[_0xab6d[83]](util[_0xab6d[69]](_0xab6d[82],_0xf269x2a[_0xab6d[67]],_0xf269x17[_0xab6d[81]][_0xf269x2a[_0xab6d[67]]]))}});if(_0xf269x26[_0xab6d[64]]){_0xf269x26=_0xf269x26[_0xab6d[66]](_0xab6d[65]);_0xf269x31[_0xab6d[83]](sequelize[_0xab6d[33]](util[_0xab6d[69]](_0xab6d[85],_0xf269x26,_0xf269x22[_0xab6d[31]])))}})};return _0xf269x31})[_0xab6d[87]]()[_0xab6d[30]](function(){return _0xf269x18[_0xab6d[29]](201)[_0xab6d[28]](_0xf269x30)})[_0xab6d[27]](function(_0xf269x1a){console[_0xab6d[26]](_0xf269x1a);return _0xf269x19(_0xf269x1a)})};exports[_0xab6d[97]]=function(_0xf269x17,_0xf269x18,_0xf269x19){var _0xf269x23;return Tag[_0xab6d[74]]()[_0xab6d[30]](function(_0xf269x2b){var _0xf269x2c=[];var _0xf269x2d=_[_0xab6d[32]](_[_0xab6d[32]](_0xf269x2b,_0xab6d[72]),_0xab6d[67]);if(_0xf269x17[_0xab6d[81]][_0xab6d[88]]){var _0xf269x2e=_0xf269x17[_0xab6d[81]][_0xab6d[88]][_0xab6d[89]](_0xab6d[65]);_0xf269x2e[_0xab6d[84]](function(_0xf269x2a){if(!_[_0xab6d[90]](_0xf269x2d,_0xf269x2a)){_0xf269x2c[_0xab6d[83]](Tag[_0xab6d[79]]({name:_0xf269x2a}))}})};return _0xf269x2c})[_0xab6d[30]](function(){return Contact[_0xab6d[40]](_0xf269x17[_0xab6d[63]][_0xab6d[31]])})[_0xab6d[30]](function(_0xf269x22){delete _0xf269x17[_0xab6d[81]][_0xab6d[31]];return _0xf269x22[_0xab6d[98]](_0xf269x17[_0xab6d[81]])})[_0xab6d[30]](function(_0xf269x22){_0xf269x23=_0xf269x22;return CustomField[_0xab6d[74]]({where:{ListId:_0xf269x23[_0xab6d[73]]}})})[_0xab6d[30]](function(_0xf269x25){if(_0xf269x25[_0xab6d[64]]){var _0xf269x26=[];_0xf269x25[_0xab6d[84]](function(_0xf269x2a){if(_0xf269x17[_0xab6d[81]][_0xab6d[80]](_0xf269x2a[_0xab6d[67]])){_0xf269x26[_0xab6d[83]](util[_0xab6d[69]](_0xab6d[82],_0xf269x2a[_0xab6d[67]],_0xf269x17[_0xab6d[81]][_0xf269x2a[_0xab6d[67]]]))}});if(_0xf269x26[_0xab6d[64]]){_0xf269x26=_0xf269x26[_0xab6d[66]](_0xab6d[65]);return sequelize[_0xab6d[33]](util[_0xab6d[69]](_0xab6d[85],_0xf269x26,_0xf269x23[_0xab6d[31]]))}}})[_0xab6d[30]](function(){return _0xf269x18[_0xab6d[29]](200)[_0xab6d[28]](_0xf269x23)})[_0xab6d[27]](function(_0xf269x1a){console[_0xab6d[26]](_0xf269x1a);return handleError(_0xf269x18,_0xf269x1a)})};exports[_0xab6d[99]]=function(_0xf269x17,_0xf269x18){return Contact[_0xab6d[40]](_0xf269x17[_0xab6d[63]][_0xab6d[31]])[_0xab6d[30]](function(_0xf269x27){if(!_0xf269x27){return _0xf269x18[_0xab6d[53]](404)};return _0xf269x27[_0xab6d[99]]()})[_0xab6d[30]](function(){return _0xf269x18[_0xab6d[53]](204)})[_0xab6d[27]](function(_0xf269x1a){return handleError(_0xf269x18,_0xf269x1a)})};exports[_0xab6d[100]]=function(_0xf269x17,_0xf269x18){return Contact[_0xab6d[99]]({where:{id:_0xf269x17[_0xab6d[33]][_0xab6d[101]]},individualHooks:true})[_0xab6d[30]](function(){return _0xf269x18[_0xab6d[53]](204)})[_0xab6d[27]](function(_0xf269x1a){return handleError(_0xf269x18,_0xf269x1a)})};function handleError(_0xf269x18,_0xf269x1a){return _0xf269x18[_0xab6d[29]](500)[_0xab6d[28]](_0xf269x1a)}