1 var _0x5c58=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\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","\x69\x6E\x74\x65\x72\x76\x61\x6C\x73","\x73\x75\x62\x69\x6E\x74\x65\x72\x76\x61\x6C\x73","\x73\x63\x6F\x70\x65","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x6C\x6F\x67","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x61\x6C\x6C","\x53\x75\x62\x49\x6E\x74\x65\x72\x76\x61\x6C\x73","\x6C\x65\x6E\x67\x74\x68","\x64\x65\x73\x74\x72\x6F\x79","\x63\x6C\x6F\x6E\x65","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x6D\x61\x70","\x66\x69\x6E\x64","\x49\x6E\x74\x65\x72\x76\x61\x6C\x49\x64","\x70\x75\x73\x68","\x72\x65\x6D\x6F\x76\x65","\x66\x6F\x72\x45\x61\x63\x68","\x6D\x65\x73\x73\x61\x67\x65","\x54\x68\x65\x20\x49\x6E\x74\x65\x72\x76\x61\x6C\x20\x69\x73\x20\x61\x73\x73\x6F\x63\x69\x61\x74\x65\x64\x20\x77\x69\x74\x68\x20\x6F\x6E\x65\x20\x6F\x72\x20\x6D\x6F\x72\x65\x20\x72\x6F\x75\x74\x65\x73\x2C\x20\x64\x65\x6C\x65\x74\x65\x20\x74\x68\x65\x6D\x20\x66\x69\x72\x73\x74","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65\x64\x4D\x65\x73\x73\x61\x67\x65","\x4D\x45\x53\x53\x41\x47\x45\x5F\x49\x4E\x54\x45\x52\x56\x41\x4C\x5F\x52\x4F\x55\x54\x45\x5F\x41\x53\x53\x4F\x43\x49\x41\x54\x45\x44","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x69\x64\x73"];_0x5c58[0];var _=require(_0x5c58[1]);var Interval=require(_0x5c58[3])[_0x5c58[2]];var VoiceExtension=require(_0x5c58[3])[_0x5c58[4]];var sequelize=require(_0x5c58[3])[_0x5c58[5]];var Util=require(_0x5c58[6]);exports[_0x5c58[7]]= function(_0x2f6ex6,_0x2f6ex7,_0x2f6ex8){return Interval[_0x5c58[17]](_0x5c58[15],_0x5c58[16])[_0x5c58[14]](Util[_0x5c58[13]](_0x2f6ex6[_0x5c58[12]]))[_0x5c58[11]](function(_0x2f6exa){_0x2f6ex7[_0x5c58[10]](200)[_0x5c58[9]](_0x2f6exa)})[_0x5c58[8]](function(_0x2f6ex9){return handleError(_0x2f6ex7,_0x2f6ex9)})};exports[_0x5c58[18]]= function(_0x2f6ex6,_0x2f6ex7){return Interval[_0x5c58[17]](_0x5c58[16])[_0x5c58[22]](_0x2f6ex6[_0x5c58[21]][_0x5c58[20]])[_0x5c58[11]](function(_0x2f6exb){if(!_0x2f6exb){return _0x2f6ex7[_0x5c58[19]](404)};return _0x2f6ex7[_0x5c58[9]](_0x2f6exb)})[_0x5c58[8]](function(_0x2f6ex9){return handleError(_0x2f6ex7,_0x2f6ex9)})};exports[_0x5c58[23]]= function(_0x2f6ex6,_0x2f6ex7){return Interval[_0x5c58[17]](_0x5c58[16])[_0x5c58[23]](_0x2f6ex6[_0x5c58[25]])[_0x5c58[11]](function(_0x2f6exb){return _0x2f6ex7[_0x5c58[10]](201)[_0x5c58[9]](_0x2f6exb)})[_0x5c58[8]](function(_0x2f6ex9){console[_0x5c58[24]](_0x2f6ex9);return handleError(_0x2f6ex7,_0x2f6ex9)})};exports[_0x5c58[26]]= function(_0x2f6ex6,_0x2f6ex7){var _0x2f6exc;return sequelize[_0x5c58[33]](function(_0x2f6exd){if(_0x2f6ex6[_0x5c58[25]][_0x5c58[20]]){delete _0x2f6ex6[_0x5c58[25]][_0x5c58[20]]};return Interval[_0x5c58[17]](_0x5c58[16])[_0x5c58[22]](_0x2f6ex6[_0x5c58[21]][_0x5c58[20]])[_0x5c58[11]](function(_0x2f6exb){if(!_0x2f6exb){return _0x2f6ex7[_0x5c58[19]](404)};_0x2f6exc= _[_0x5c58[31]](_0x2f6exb);return _0x2f6exb[_0x5c58[32]](_0x2f6ex6[_0x5c58[25]],{transaction:_0x2f6exd})})[_0x5c58[11]](function(){if(_0x2f6ex6[_0x5c58[25]][_0x5c58[28]]&& !_0x2f6ex6[_0x5c58[25]][_0x5c58[28]][_0x5c58[29]]){return Interval[_0x5c58[30]]({where:{IntervalId:_0x2f6ex6[_0x5c58[21]][_0x5c58[20]]},transaction:_0x2f6exd})}else {if(_0x2f6ex6[_0x5c58[25]][_0x5c58[28]]&& _0x2f6ex6[_0x5c58[25]][_0x5c58[28]][_0x5c58[29]]){return bulkCreateSubIntervals(_0x2f6ex6[_0x5c58[25]].SubIntervals,_0x2f6exc,_0x2f6exd)}}})[_0x5c58[27]]()})[_0x5c58[11]](function(){return _0x2f6ex7[_0x5c58[19]](200)})[_0x5c58[8]](function(_0x2f6ex9){console[_0x5c58[24]](_0x2f6ex9);return handleError(_0x2f6ex7,_0x2f6ex9)})};function bulkCreateSubIntervals(_0x2f6exf,_0x2f6exc,_0x2f6exd){var _0x2f6ex10=[];var _0x2f6ex11=_[_0x5c58[35]](_0x2f6exc.SubIntervals,_0x5c58[34]);var _0x2f6ex12;_[_0x5c58[40]](_0x2f6ex11,function(_0x2f6ex13,_0x2f6ex14){_0x2f6ex12= _[_0x5c58[36]](_0x2f6exf,{id:_0x2f6ex13[_0x5c58[20]]});if(_0x2f6ex12){_0x2f6ex12[_0x5c58[37]]= _0x2f6exc[_0x5c58[20]];_0x2f6ex10[_0x5c58[38]](Interval[_0x5c58[26]](_[_0x5c58[31]](_0x2f6ex12),{where:{id:_0x2f6ex13[_0x5c58[20]]},transaction:_0x2f6exd,individualHooks:true}));_[_0x5c58[39]](_0x2f6exf,{id:_0x2f6ex13[_0x5c58[20]]})}else {_0x2f6ex10[_0x5c58[38]](Interval[_0x5c58[30]]({where:{id:_0x2f6ex13[_0x5c58[20]]},transaction:_0x2f6exd}))}});_[_0x5c58[40]](_0x2f6exf,function(_0x2f6ex13){_0x2f6ex13[_0x5c58[37]]= _0x2f6exc[_0x5c58[20]];_0x2f6ex10[_0x5c58[38]](Interval[_0x5c58[23]](_0x2f6ex13,{transaction:_0x2f6exd}))});return _0x2f6ex10}exports[_0x5c58[30]]= function(_0x2f6ex6,_0x2f6ex7){return sequelize[_0x5c58[33]](function(_0x2f6exd){return Interval[_0x5c58[30]]({where:{id:_0x2f6ex6[_0x5c58[21]][_0x5c58[20]]},individualHooks:true,transaction:_0x2f6exd})})[_0x5c58[11]](function(){return _0x2f6ex7[_0x5c58[19]](204)})[_0x5c58[8]](sequelize.ForeignKeyConstraintError,function(_0x2f6ex9){_0x2f6ex9[_0x5c58[41]]= _0x5c58[42];_0x2f6ex9[_0x5c58[43]]= _0x5c58[44];return handleError(_0x2f6ex7,_0x2f6ex9)})[_0x5c58[8]](function(_0x2f6ex9){return handleError(_0x2f6ex7,_0x2f6ex9)})};exports[_0x5c58[45]]= function(_0x2f6ex6,_0x2f6ex7){return sequelize[_0x5c58[33]](function(_0x2f6exd){return Interval[_0x5c58[30]]({where:{id:_0x2f6ex6[_0x5c58[12]][_0x5c58[46]]},individualHooks:true,transaction:_0x2f6exd})})[_0x5c58[11]](function(){return _0x2f6ex7[_0x5c58[19]](204)})[_0x5c58[8]](sequelize.ForeignKeyConstraintError,function(_0x2f6ex9){_0x2f6ex9[_0x5c58[41]]= _0x5c58[42];_0x2f6ex9[_0x5c58[43]]= _0x5c58[44];return handleError(_0x2f6ex7,_0x2f6ex9)})[_0x5c58[8]](function(_0x2f6ex9){return handleError(_0x2f6ex7,_0x2f6ex9)})};function handleError(_0x2f6ex7,_0x2f6ex9){return _0x2f6ex7[_0x5c58[10]](500)[_0x5c58[9]](_0x2f6ex9)}