Built motion from commit 3537c3f88.|1.0.22
[motion.git] / server / api / trunk / trunk.controller.js
index 2c598bd..1239504 100644 (file)
@@ -1 +1 @@
-var _0xfb1f=["\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","\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","\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","\x61\x63\x74\x69\x76\x65","\x74\x72\x75\x6E\x6B\x73\x52\x65\x77\x72\x69\x74\x65","\x61\x6D\x69","\x6C\x6F\x63\x61\x6C\x73","\x61\x70\x70","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\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","\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"];_0xfb1f[0];var _=require(_0xfb1f[1]);var Trunk=require(_0xfb1f[3])[_0xfb1f[2]];var VoiceExtension=require(_0xfb1f[3])[_0xfb1f[4]];var sequelize=require(_0xfb1f[3])[_0xfb1f[5]];var util=require(_0xfb1f[6]);var Util=require(_0xfb1f[7]);var logger=require(_0xfb1f[9])(_0xfb1f[8]);exports[_0xfb1f[10]]= function(_0xc19dx8,_0xc19dx9,_0xc19dxa){return Trunk[_0xfb1f[17]](Util[_0xfb1f[16]](_0xc19dx8[_0xfb1f[15]]))[_0xfb1f[14]](function(_0xc19dxc){_0xc19dx9[_0xfb1f[13]](200)[_0xfb1f[12]](_0xc19dxc)})[_0xfb1f[11]](function(_0xc19dxb){return handleError(_0xc19dx9,_0xc19dxb)})};exports[_0xfb1f[18]]= function(_0xc19dx8,_0xc19dx9){return Trunk[_0xfb1f[22]](_0xc19dx8[_0xfb1f[21]][_0xfb1f[20]])[_0xfb1f[14]](function(_0xc19dxd){if(!_0xc19dxd){return _0xc19dx9[_0xfb1f[19]](404)};return _0xc19dx9[_0xfb1f[12]](_0xc19dxd)})[_0xfb1f[11]](function(_0xc19dxb){return handleError(_0xc19dx9,_0xc19dxb)})};exports[_0xfb1f[23]]= function(_0xc19dx8,_0xc19dx9){return Trunk[_0xfb1f[23]](_0xc19dx8[_0xfb1f[29]])[_0xfb1f[14]](function(_0xc19dxd){_0xc19dxd&& _0xc19dxd[_0xfb1f[24]]&& _0xc19dx8[_0xfb1f[28]][_0xfb1f[27]][_0xfb1f[26]][_0xfb1f[12]]({message:_0xfb1f[25]});return _0xc19dx9[_0xfb1f[13]](201)[_0xfb1f[12]](_0xc19dxd)})[_0xfb1f[11]](function(_0xc19dxb){return handleError(_0xc19dx9,_0xc19dxb)})};exports[_0xfb1f[30]]= function(_0xc19dx8,_0xc19dx9){if(_0xc19dx8[_0xfb1f[29]][_0xfb1f[20]]){delete _0xc19dx8[_0xfb1f[29]][_0xfb1f[20]]};return Trunk[_0xfb1f[22]](_0xc19dx8[_0xfb1f[21]][_0xfb1f[20]])[_0xfb1f[14]](function(_0xc19dxd){if(!_0xc19dxd){return _0xc19dx9[_0xfb1f[19]](404)};var _0xc19dxe=_[_0xfb1f[31]](_0xc19dxd,_0xc19dx8[_0xfb1f[29]]);return _0xc19dxe[_0xfb1f[32]]()})[_0xfb1f[14]](function(_0xc19dxd){_0xc19dxd&& _0xc19dx8[_0xfb1f[28]][_0xfb1f[27]][_0xfb1f[26]][_0xfb1f[12]]({message:_0xfb1f[25]});return _0xc19dx9[_0xfb1f[13]](200)[_0xfb1f[12]](_0xc19dxd)})[_0xfb1f[11]](function(_0xc19dxb){return handleError(_0xc19dx9,_0xc19dxb)})};exports[_0xfb1f[33]]= function(_0xc19dx8,_0xc19dx9){return Trunk[_0xfb1f[22]](_0xc19dx8[_0xfb1f[21]][_0xfb1f[20]])[_0xfb1f[14]](function(_0xc19dxd){if(!_0xc19dxd){return _0xc19dx9[_0xfb1f[19]](404)};return _0xc19dxd[_0xfb1f[33]]()})[_0xfb1f[14]](function(_0xc19dxd){_0xc19dxd&& _0xc19dx8[_0xfb1f[28]][_0xfb1f[27]][_0xfb1f[26]][_0xfb1f[12]]({message:_0xfb1f[25]});return _0xc19dx9[_0xfb1f[19]](204)})[_0xfb1f[11]](function(_0xc19dxb){return handleError(_0xc19dx9,_0xc19dxb)})};exports[_0xfb1f[34]]= function(_0xc19dx8,_0xc19dx9){return Trunk[_0xfb1f[38]]({where:{id:_0xc19dx8[_0xfb1f[15]][_0xfb1f[37]]}})[_0xfb1f[14]](function(_0xc19dxf){if(_0xc19dxf&& _0xc19dxf[_0xfb1f[35]]){_[_0xfb1f[36]](_0xc19dxf,function(_0xc19dxd){_0xc19dxd[_0xfb1f[33]]()[_0xfb1f[14]](function(_0xc19dxd){_0xc19dxd&& _0xc19dx8[_0xfb1f[28]][_0xfb1f[27]][_0xfb1f[26]][_0xfb1f[12]]({message:_0xfb1f[25],doc:_0xc19dxd,delete:true})})})}})[_0xfb1f[14]](function(){return _0xc19dx9[_0xfb1f[19]](204)})[_0xfb1f[11]](function(_0xc19dxb){return handleError(_0xc19dx9,_0xc19dxb)})};function handleError(_0xc19dx9,_0xc19dxb){logger[_0xfb1f[40]](_0xc19dxb[_0xfb1f[39]]);return _0xc19dx9[_0xfb1f[13]](500)[_0xfb1f[12]](_0xc19dxb)}
\ No newline at end of file
+var _0x9511=["\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","\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","\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","\x61\x63\x74\x69\x76\x65","\x74\x72\x75\x6E\x6B\x73\x52\x65\x77\x72\x69\x74\x65","\x61\x6D\x69","\x6C\x6F\x63\x61\x6C\x73","\x61\x70\x70","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\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","\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"];_0x9511[0];var _=require(_0x9511[1]);var Trunk=require(_0x9511[3])[_0x9511[2]];var VoiceExtension=require(_0x9511[3])[_0x9511[4]];var sequelize=require(_0x9511[3])[_0x9511[5]];var util=require(_0x9511[6]);var Util=require(_0x9511[7]);var logger=require(_0x9511[9])(_0x9511[8]);exports[_0x9511[10]]= function(_0xa2f0x8,_0xa2f0x9,_0xa2f0xa){return Trunk[_0x9511[17]](Util[_0x9511[16]](_0xa2f0x8[_0x9511[15]]))[_0x9511[14]](function(_0xa2f0xc){_0xa2f0x9[_0x9511[13]](200)[_0x9511[12]](_0xa2f0xc)})[_0x9511[11]](function(_0xa2f0xb){return handleError(_0xa2f0x9,_0xa2f0xb)})};exports[_0x9511[18]]= function(_0xa2f0x8,_0xa2f0x9){return Trunk[_0x9511[22]](_0xa2f0x8[_0x9511[21]][_0x9511[20]])[_0x9511[14]](function(_0xa2f0xd){if(!_0xa2f0xd){return _0xa2f0x9[_0x9511[19]](404)};return _0xa2f0x9[_0x9511[12]](_0xa2f0xd)})[_0x9511[11]](function(_0xa2f0xb){return handleError(_0xa2f0x9,_0xa2f0xb)})};exports[_0x9511[23]]= function(_0xa2f0x8,_0xa2f0x9){return Trunk[_0x9511[23]](_0xa2f0x8[_0x9511[29]])[_0x9511[14]](function(_0xa2f0xd){_0xa2f0xd&& _0xa2f0xd[_0x9511[24]]&& _0xa2f0x8[_0x9511[28]][_0x9511[27]][_0x9511[26]][_0x9511[12]]({message:_0x9511[25]});return _0xa2f0x9[_0x9511[13]](201)[_0x9511[12]](_0xa2f0xd)})[_0x9511[11]](function(_0xa2f0xb){return handleError(_0xa2f0x9,_0xa2f0xb)})};exports[_0x9511[30]]= function(_0xa2f0x8,_0xa2f0x9){if(_0xa2f0x8[_0x9511[29]][_0x9511[20]]){delete _0xa2f0x8[_0x9511[29]][_0x9511[20]]};return Trunk[_0x9511[22]](_0xa2f0x8[_0x9511[21]][_0x9511[20]])[_0x9511[14]](function(_0xa2f0xd){if(!_0xa2f0xd){return _0xa2f0x9[_0x9511[19]](404)};var _0xa2f0xe=_[_0x9511[31]](_0xa2f0xd,_0xa2f0x8[_0x9511[29]]);return _0xa2f0xe[_0x9511[32]]()})[_0x9511[14]](function(_0xa2f0xd){_0xa2f0xd&& _0xa2f0x8[_0x9511[28]][_0x9511[27]][_0x9511[26]][_0x9511[12]]({message:_0x9511[25]});return _0xa2f0x9[_0x9511[13]](200)[_0x9511[12]](_0xa2f0xd)})[_0x9511[11]](function(_0xa2f0xb){return handleError(_0xa2f0x9,_0xa2f0xb)})};exports[_0x9511[33]]= function(_0xa2f0x8,_0xa2f0x9){return Trunk[_0x9511[22]](_0xa2f0x8[_0x9511[21]][_0x9511[20]])[_0x9511[14]](function(_0xa2f0xd){if(!_0xa2f0xd){return _0xa2f0x9[_0x9511[19]](404)};return _0xa2f0xd[_0x9511[33]]()})[_0x9511[14]](function(_0xa2f0xd){_0xa2f0xd&& _0xa2f0x8[_0x9511[28]][_0x9511[27]][_0x9511[26]][_0x9511[12]]({message:_0x9511[25]});return _0xa2f0x9[_0x9511[19]](204)})[_0x9511[11]](function(_0xa2f0xb){return handleError(_0xa2f0x9,_0xa2f0xb)})};exports[_0x9511[34]]= function(_0xa2f0x8,_0xa2f0x9){return Trunk[_0x9511[38]]({where:{id:_0xa2f0x8[_0x9511[15]][_0x9511[37]]}})[_0x9511[14]](function(_0xa2f0xf){if(_0xa2f0xf&& _0xa2f0xf[_0x9511[35]]){_[_0x9511[36]](_0xa2f0xf,function(_0xa2f0xd){_0xa2f0xd[_0x9511[33]]()[_0x9511[14]](function(_0xa2f0xd){_0xa2f0xd&& _0xa2f0x8[_0x9511[28]][_0x9511[27]][_0x9511[26]][_0x9511[12]]({message:_0x9511[25],doc:_0xa2f0xd,delete:true})})})}})[_0x9511[14]](function(){return _0xa2f0x9[_0x9511[19]](204)})[_0x9511[11]](function(_0xa2f0xb){return handleError(_0xa2f0x9,_0xa2f0xb)})};function handleError(_0xa2f0x9,_0xa2f0xb){logger[_0x9511[40]](_0xa2f0xb[_0x9511[39]]);return _0xa2f0x9[_0x9511[13]](500)[_0x9511[12]](_0xa2f0xb)}
\ No newline at end of file