f111401b52ec7a3d06e0c60ce7ee07fac9703cc7
[motion2.git] / server / api / voiceMailMessage / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xa165=['show','/:id/download','download','post','create','/:id','update','delete','exports','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','get','isAuthenticated','index'];(function(_0x6ca661,_0x479e93){var _0x290881=function(_0x167d29){while(--_0x167d29){_0x6ca661['push'](_0x6ca661['shift']());}};_0x290881(++_0x479e93);}(_0xa165,0x1a7));var _0x5a16=function(_0x29d94e,_0xf386d6){_0x29d94e=_0x29d94e-0x0;var _0x106237=_0xa165[_0x29d94e];return _0x106237;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x5a16('0x0'));var timeout=require(_0x5a16('0x1'));var express=require(_0x5a16('0x2'));var router=express[_0x5a16('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x5a16('0x4'));var config=require(_0x5a16('0x5'));var controller=require('./voiceMailMessage.controller');router[_0x5a16('0x6')]('/',auth[_0x5a16('0x7')](),controller[_0x5a16('0x8')]);router[_0x5a16('0x6')]('/:id',auth[_0x5a16('0x7')](),controller[_0x5a16('0x9')]);router[_0x5a16('0x6')](_0x5a16('0xa'),auth[_0x5a16('0x7')](),controller[_0x5a16('0xb')]);router[_0x5a16('0xc')]('/',auth[_0x5a16('0x7')](),controller[_0x5a16('0xd')]);router['put'](_0x5a16('0xe'),auth[_0x5a16('0x7')](),controller[_0x5a16('0xf')]);router[_0x5a16('0x10')](_0x5a16('0xe'),auth[_0x5a16('0x7')](),controller['destroy']);module[_0x5a16('0x11')]=router;