Built motion from commit a0baffd.|1.0.1
[motion.git] / server / api / trunk / trunk.controller.js
index 4458a8b..9a2a144 100644 (file)
@@ -1 +1 @@
-var _0x7862=["\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"];_0x7862[0];var _=require(_0x7862[1]);var Trunk=require(_0x7862[3])[_0x7862[2]];var VoiceExtension=require(_0x7862[3])[_0x7862[4]];var sequelize=require(_0x7862[3])[_0x7862[5]];var util=require(_0x7862[6]);var Util=require(_0x7862[7]);exports[_0x7862[8]]= function(_0x4226x7,_0x4226x8,_0x4226x9){return Trunk[_0x7862[15]](Util[_0x7862[14]](_0x4226x7[_0x7862[13]]))[_0x7862[12]](function(_0x4226xb){_0x4226x8[_0x7862[11]](200)[_0x7862[10]](_0x4226xb)})[_0x7862[9]](function(_0x4226xa){return handleError(_0x4226x8,_0x4226xa)})};exports[_0x7862[16]]= function(_0x4226x7,_0x4226x8){return Trunk[_0x7862[20]](_0x4226x7[_0x7862[19]][_0x7862[18]])[_0x7862[12]](function(_0x4226xc){if(!_0x4226xc){return _0x4226x8[_0x7862[17]](404)};return _0x4226x8[_0x7862[10]](_0x4226xc)})[_0x7862[9]](function(_0x4226xa){return handleError(_0x4226x8,_0x4226xa)})};exports[_0x7862[21]]= function(_0x4226x7,_0x4226x8){return Trunk[_0x7862[21]](_0x4226x7[_0x7862[22]])[_0x7862[12]](function(_0x4226xc){return _0x4226x8[_0x7862[11]](201)[_0x7862[10]](_0x4226xc)})[_0x7862[9]](function(_0x4226xa){return handleError(_0x4226x8,_0x4226xa)})};exports[_0x7862[23]]= function(_0x4226x7,_0x4226x8){if(_0x4226x7[_0x7862[22]][_0x7862[18]]){delete _0x4226x7[_0x7862[22]][_0x7862[18]]};return Trunk[_0x7862[20]](_0x4226x7[_0x7862[19]][_0x7862[18]])[_0x7862[12]](function(_0x4226xc){if(!_0x4226xc){return _0x4226x8[_0x7862[17]](404)};var _0x4226xd=_[_0x7862[26]](_0x4226xc,_0x4226x7[_0x7862[22]]);return _0x4226xd[_0x7862[27]]()})[_0x7862[12]](function(_0x4226xc){return _0x4226x8[_0x7862[11]](200)[_0x7862[10]](_0x4226xc)})[_0x7862[9]](function(_0x4226xa){console[_0x7862[25]](_0x7862[24],_0x4226xa);return handleError(_0x4226x8,_0x4226xa)})};exports[_0x7862[28]]= function(_0x4226x7,_0x4226x8){return Trunk[_0x7862[20]](_0x4226x7[_0x7862[19]][_0x7862[18]])[_0x7862[12]](function(_0x4226xc){if(!_0x4226xc){return _0x4226x8[_0x7862[17]](404)};return _0x4226xc[_0x7862[28]]()})[_0x7862[12]](function(){return _0x4226x8[_0x7862[17]](204)})[_0x7862[9]](function(_0x4226xa){return handleError(_0x4226x8,_0x4226xa)})};exports[_0x7862[29]]= function(_0x4226x7,_0x4226x8){return Trunk[_0x7862[28]]({where:{id:_0x4226x7[_0x7862[13]][_0x7862[30]]},individualHooks:true})[_0x7862[12]](function(){return _0x4226x8[_0x7862[17]](204)})[_0x7862[9]](function(_0x4226xa){return handleError(_0x4226x8,_0x4226xa)})};function handleError(_0x4226x8,_0x4226xa){return _0x4226x8[_0x7862[11]](500)[_0x7862[10]](_0x4226xa)}
\ No newline at end of file
+var _0x7853=["\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","\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","\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","\x6C\x65\x6E\x67\x74\x68","\x66\x6F\x72\x45\x61\x63\x68","\x69\x64\x73","\x66\x69\x6E\x64\x41\x6C\x6C"];_0x7853[0];var _=require(_0x7853[1]);var Trunk=require(_0x7853[3])[_0x7853[2]];var VoiceExtension=require(_0x7853[3])[_0x7853[4]];var sequelize=require(_0x7853[3])[_0x7853[5]];var util=require(_0x7853[6]);var Util=require(_0x7853[7]);exports[_0x7853[8]]= function(_0x1e75x7,_0x1e75x8,_0x1e75x9){return Trunk[_0x7853[15]](Util[_0x7853[14]](_0x1e75x7[_0x7853[13]]))[_0x7853[12]](function(_0x1e75xb){_0x1e75x8[_0x7853[11]](200)[_0x7853[10]](_0x1e75xb)})[_0x7853[9]](function(_0x1e75xa){return handleError(_0x1e75x8,_0x1e75xa)})};exports[_0x7853[16]]= function(_0x1e75x7,_0x1e75x8){return Trunk[_0x7853[20]](_0x1e75x7[_0x7853[19]][_0x7853[18]])[_0x7853[12]](function(_0x1e75xc){if(!_0x1e75xc){return _0x1e75x8[_0x7853[17]](404)};return _0x1e75x8[_0x7853[10]](_0x1e75xc)})[_0x7853[9]](function(_0x1e75xa){return handleError(_0x1e75x8,_0x1e75xa)})};exports[_0x7853[21]]= function(_0x1e75x7,_0x1e75x8){return Trunk[_0x7853[21]](_0x1e75x7[_0x7853[27]])[_0x7853[12]](function(_0x1e75xc){_0x1e75xc&& _0x1e75xc[_0x7853[22]]&& _0x1e75x7[_0x7853[26]][_0x7853[25]][_0x7853[24]][_0x7853[10]]({message:_0x7853[23],doc:_0x1e75xc});return _0x1e75x8[_0x7853[11]](201)[_0x7853[10]](_0x1e75xc)})[_0x7853[9]](function(_0x1e75xa){return handleError(_0x1e75x8,_0x1e75xa)})};exports[_0x7853[28]]= function(_0x1e75x7,_0x1e75x8){if(_0x1e75x7[_0x7853[27]][_0x7853[18]]){delete _0x1e75x7[_0x7853[27]][_0x7853[18]]};return Trunk[_0x7853[20]](_0x1e75x7[_0x7853[19]][_0x7853[18]])[_0x7853[12]](function(_0x1e75xc){if(!_0x1e75xc){return _0x1e75x8[_0x7853[17]](404)};var _0x1e75xd=_[_0x7853[31]](_0x1e75xc,_0x1e75x7[_0x7853[27]]);return _0x1e75xd[_0x7853[32]]()})[_0x7853[12]](function(_0x1e75xc){_0x1e75xc&& _0x1e75x7[_0x7853[26]][_0x7853[25]][_0x7853[24]][_0x7853[10]]({message:_0x7853[23],doc:_0x1e75xc});return _0x1e75x8[_0x7853[11]](200)[_0x7853[10]](_0x1e75xc)})[_0x7853[9]](function(_0x1e75xa){console[_0x7853[30]](_0x7853[29],_0x1e75xa);return handleError(_0x1e75x8,_0x1e75xa)})};exports[_0x7853[33]]= function(_0x1e75x7,_0x1e75x8){return Trunk[_0x7853[20]](_0x1e75x7[_0x7853[19]][_0x7853[18]])[_0x7853[12]](function(_0x1e75xc){if(!_0x1e75xc){return _0x1e75x8[_0x7853[17]](404)};return _0x1e75xc[_0x7853[33]]()})[_0x7853[12]](function(_0x1e75xc){_0x1e75xc&& _0x1e75x7[_0x7853[26]][_0x7853[25]][_0x7853[24]][_0x7853[10]]({message:_0x7853[23],doc:_0x1e75xc,delete:true});return _0x1e75x8[_0x7853[17]](204)})[_0x7853[9]](function(_0x1e75xa){return handleError(_0x1e75x8,_0x1e75xa)})};exports[_0x7853[34]]= function(_0x1e75x7,_0x1e75x8){return Trunk[_0x7853[38]]({where:{id:_0x1e75x7[_0x7853[13]][_0x7853[37]]}})[_0x7853[12]](function(_0x1e75xe){if(_0x1e75xe&& _0x1e75xe[_0x7853[35]]){_[_0x7853[36]](_0x1e75xe,function(_0x1e75xc){_0x1e75xc[_0x7853[33]]()[_0x7853[12]](function(_0x1e75xc){_0x1e75xc&& _0x1e75x7[_0x7853[26]][_0x7853[25]][_0x7853[24]][_0x7853[10]]({message:_0x7853[23],doc:_0x1e75xc,delete:true})})})}})[_0x7853[12]](function(){return _0x1e75x8[_0x7853[17]](204)})[_0x7853[9]](function(_0x1e75xa){return handleError(_0x1e75x8,_0x1e75xa)})};function handleError(_0x1e75x8,_0x1e75xa){console[_0x7853[30]](_0x1e75xa);return _0x1e75x8[_0x7853[11]](500)[_0x7853[10]](_0x1e75xa)}
\ No newline at end of file