Built motion from commit 12b39f1.|0.0.105
[motion.git] / server / api / trunk / trunk.controller.js
index a032ea7..bbca898 100644 (file)
@@ -1 +1 @@
-var _0x12af=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x54\x72\x75\x6E\x6B","\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","\x75\x74\x69\x6C","\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","\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","\x74\x72\x75\x6E\x6B\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x62\x6F\x64\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x6C\x6F\x67","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x6C\x65\x6E\x67\x74\x68","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x66\x6F\x72\x45\x61\x63\x68","\x4D\x45\x53\x53\x41\x47\x45\x5F\x54\x52\x55\x4E\x4B\x5F\x4F\x55\x54\x42\x4F\x55\x4E\x44\x5F\x41\x53\x53\x4F\x43\x49\x41\x54\x45\x44"];_0x12af[0];var _=require(_0x12af[1]);var Trunk=require(_0x12af[3])[_0x12af[2]];var VoiceExtension=require(_0x12af[3])[_0x12af[4]];var sequelize=require(_0x12af[3])[_0x12af[5]];var util=require(_0x12af[6]);var Util=require(_0x12af[7]);exports[_0x12af[8]]=function(_0xdeebx7,_0xdeebx8,_0xdeebx9){return Trunk[_0x12af[15]](Util[_0x12af[14]](_0xdeebx7[_0x12af[13]]))[_0x12af[12]](function(_0xdeebxb){_0xdeebx8[_0x12af[11]](200)[_0x12af[10]](_0xdeebxb)})[_0x12af[9]](function(_0xdeebxa){return handleError(_0xdeebx8,_0xdeebxa)})};exports[_0x12af[16]]=function(_0xdeebx7,_0xdeebx8){return Trunk[_0x12af[20]](_0xdeebx7[_0x12af[19]][_0x12af[18]])[_0x12af[12]](function(_0xdeebxc){if(!_0xdeebxc){return _0xdeebx8[_0x12af[17]](404)};return _0xdeebx8[_0x12af[10]](_0xdeebxc)})[_0x12af[9]](function(_0xdeebxa){return handleError(_0xdeebx8,_0xdeebxa)})};exports[_0x12af[21]]=function(_0xdeebx7,_0xdeebx8){return Trunk[_0x12af[24]]({where:{name:_0xdeebx7[_0x12af[23]][_0x12af[22]]}})[_0x12af[12]](function(_0xdeebxd){if(!_0xdeebxd){return _0xdeebx8[_0x12af[17]](404)};return _0xdeebx8[_0x12af[10]](_0xdeebxd)})[_0x12af[9]](function(_0xdeebxa){return handleError(_0xdeebx8,_0xdeebxa)})};exports[_0x12af[25]]=function(_0xdeebx7,_0xdeebx8){return Trunk[_0x12af[25]](_0xdeebx7[_0x12af[23]])[_0x12af[12]](function(_0xdeebxc){return _0xdeebx8[_0x12af[11]](201)[_0x12af[10]](_0xdeebxc)})[_0x12af[9]](function(_0xdeebxa){return handleError(_0xdeebx8,_0xdeebxa)})};exports[_0x12af[26]]=function(_0xdeebx7,_0xdeebx8){if(_0xdeebx7[_0x12af[23]][_0x12af[18]]){delete _0xdeebx7[_0x12af[23]][_0x12af[18]]};return Trunk[_0x12af[20]](_0xdeebx7[_0x12af[19]][_0x12af[18]])[_0x12af[12]](function(_0xdeebxc){if(!_0xdeebxc){return _0xdeebx8[_0x12af[17]](404)};var _0xdeebxe=_[_0x12af[28]](_0xdeebxc,_0xdeebx7[_0x12af[23]]);return _0xdeebxe[_0x12af[29]]()})[_0x12af[12]](function(_0xdeebxc){return _0xdeebx8[_0x12af[11]](200)[_0x12af[10]](_0xdeebxc)})[_0x12af[9]](function(_0xdeebxa){console[_0x12af[27]](_0xdeebxa);return handleError(_0xdeebx8,_0xdeebxa)})};exports[_0x12af[30]]=function(_0xdeebx7,_0xdeebx8){return Trunk[_0x12af[20]](_0xdeebx7[_0x12af[19]][_0x12af[18]])[_0x12af[12]](function(_0xdeebxc){if(!_0xdeebxc){return _0xdeebx8[_0x12af[17]](404)};return _0xdeebxc[_0x12af[30]]()})[_0x12af[12]](function(){return _0xdeebx8[_0x12af[17]](204)})[_0x12af[9]](function(_0xdeebxa){return handleError(_0xdeebx8,_0xdeebxa)})};exports[_0x12af[31]]=function(_0xdeebx7,_0xdeebx8){var _0xdeebxf=false;Trunk[_0x12af[24]]({where:{id:_0xdeebx7[_0x12af[13]][_0x12af[18]]},include:[{all:true}]})[_0x12af[12]](function(_0xdeebxd){if(!_0xdeebxd){return _0xdeebx8[_0x12af[17]](404)};_0xdeebxd[_0x12af[34]](function(_0xdeebx10){if(_0xdeebx10[_0x12af[33]][_0x12af[32]]>0){_0xdeebxf=true}});if(_0xdeebxf){return _0xdeebx8[_0x12af[11]](500)[_0x12af[10]]({message:_0x12af[35]})};Trunk[_0x12af[30]]({where:{id:_0xdeebx7[_0x12af[13]][_0x12af[18]]},individualHooks:true})[_0x12af[12]](function(){return _0xdeebx8[_0x12af[17]](204)})[_0x12af[9]](function(_0xdeebxa){return handleError(_0xdeebx8,_0xdeebxa)})})[_0x12af[9]](function(_0xdeebxa){return handleError(_0xdeebx8,_0xdeebxa)})};function handleError(_0xdeebx8,_0xdeebxa){return _0xdeebx8[_0x12af[11]](500)[_0x12af[10]](_0xdeebxa)}
\ No newline at end of file
+var _0x35d3=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x54\x72\x75\x6E\x6B","\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","\x75\x74\x69\x6C","\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","\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","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x74\x72\x75\x6E\x6B\x20\x75\x70\x64\x61\x74\x65\x20\x65\x72\x72\x6F\x72","\x6C\x6F\x67","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x69\x64\x73"];_0x35d3[0];var _=require(_0x35d3[1]);var Trunk=require(_0x35d3[3])[_0x35d3[2]];var VoiceExtension=require(_0x35d3[3])[_0x35d3[4]];var sequelize=require(_0x35d3[3])[_0x35d3[5]];var util=require(_0x35d3[6]);var Util=require(_0x35d3[7]);exports[_0x35d3[8]]=function(_0xfedfx7,_0xfedfx8,_0xfedfx9){return Trunk[_0x35d3[15]](Util[_0x35d3[14]](_0xfedfx7[_0x35d3[13]]))[_0x35d3[12]](function(_0xfedfxb){_0xfedfx8[_0x35d3[11]](200)[_0x35d3[10]](_0xfedfxb)})[_0x35d3[9]](function(_0xfedfxa){return handleError(_0xfedfx8,_0xfedfxa)})};exports[_0x35d3[16]]=function(_0xfedfx7,_0xfedfx8){return Trunk[_0x35d3[20]](_0xfedfx7[_0x35d3[19]][_0x35d3[18]])[_0x35d3[12]](function(_0xfedfxc){if(!_0xfedfxc){return _0xfedfx8[_0x35d3[17]](404)};return _0xfedfx8[_0x35d3[10]](_0xfedfxc)})[_0x35d3[9]](function(_0xfedfxa){return handleError(_0xfedfx8,_0xfedfxa)})};exports[_0x35d3[21]]=function(_0xfedfx7,_0xfedfx8){return Trunk[_0x35d3[21]](_0xfedfx7[_0x35d3[22]])[_0x35d3[12]](function(_0xfedfxc){return _0xfedfx8[_0x35d3[11]](201)[_0x35d3[10]](_0xfedfxc)})[_0x35d3[9]](function(_0xfedfxa){return handleError(_0xfedfx8,_0xfedfxa)})};exports[_0x35d3[23]]=function(_0xfedfx7,_0xfedfx8){if(_0xfedfx7[_0x35d3[22]][_0x35d3[18]]){delete _0xfedfx7[_0x35d3[22]][_0x35d3[18]]};return Trunk[_0x35d3[20]](_0xfedfx7[_0x35d3[19]][_0x35d3[18]])[_0x35d3[12]](function(_0xfedfxc){if(!_0xfedfxc){return _0xfedfx8[_0x35d3[17]](404)};var _0xfedfxd=_[_0x35d3[26]](_0xfedfxc,_0xfedfx7[_0x35d3[22]]);return _0xfedfxd[_0x35d3[27]]()})[_0x35d3[12]](function(_0xfedfxc){return _0xfedfx8[_0x35d3[11]](200)[_0x35d3[10]](_0xfedfxc)})[_0x35d3[9]](function(_0xfedfxa){console[_0x35d3[25]](_0x35d3[24],_0xfedfxa);return handleError(_0xfedfx8,_0xfedfxa)})};exports[_0x35d3[28]]=function(_0xfedfx7,_0xfedfx8){return Trunk[_0x35d3[20]](_0xfedfx7[_0x35d3[19]][_0x35d3[18]])[_0x35d3[12]](function(_0xfedfxc){if(!_0xfedfxc){return _0xfedfx8[_0x35d3[17]](404)};return _0xfedfxc[_0x35d3[28]]()})[_0x35d3[12]](function(){return _0xfedfx8[_0x35d3[17]](204)})[_0x35d3[9]](function(_0xfedfxa){return handleError(_0xfedfx8,_0xfedfxa)})};exports[_0x35d3[29]]=function(_0xfedfx7,_0xfedfx8){return Trunk[_0x35d3[28]]({where:{id:_0xfedfx7[_0x35d3[13]][_0x35d3[30]]},individualHooks:true})[_0x35d3[12]](function(){return _0xfedfx8[_0x35d3[17]](204)})[_0x35d3[9]](function(_0xfedfxa){return handleError(_0xfedfx8,_0xfedfxa)})};function handleError(_0xfedfx8,_0xfedfxa){return _0xfedfx8[_0x35d3[11]](500)[_0x35d3[10]](_0xfedfxa)}
\ No newline at end of file