79a651750b485390147457934b1fb639d6bd3914
[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 _0xc47a=['index','get','/:id','isAuthenticated','show','download','create','put','update','exports','multer','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x1fbd6f,_0x5b1046){var _0x5c3e05=function(_0x285a91){while(--_0x285a91){_0x1fbd6f['push'](_0x1fbd6f['shift']());}};_0x5c3e05(++_0x5b1046);}(_0xc47a,0xd0));var _0xac47=function(_0x4e2dee,_0x2a89be){_0x4e2dee=_0x4e2dee-0x0;var _0x1af7f5=_0xc47a[_0x4e2dee];return _0x1af7f5;};'use strict';var multer=require(_0xac47('0x0'));var util=require(_0xac47('0x1'));var path=require(_0xac47('0x2'));var timeout=require(_0xac47('0x3'));var express=require(_0xac47('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xac47('0x5'));var interaction=require(_0xac47('0x6'));var config=require(_0xac47('0x7'));var controller=require('./voiceMailMessage.controller');router['get']('/',auth['isAuthenticated'](),controller[_0xac47('0x8')]);router[_0xac47('0x9')](_0xac47('0xa'),auth[_0xac47('0xb')](),controller[_0xac47('0xc')]);router[_0xac47('0x9')]('/:id/download',auth[_0xac47('0xb')](),controller[_0xac47('0xd')]);router['post']('/',auth[_0xac47('0xb')](),controller[_0xac47('0xe')]);router[_0xac47('0xf')](_0xac47('0xa'),auth[_0xac47('0xb')](),controller[_0xac47('0x10')]);router['delete'](_0xac47('0xa'),auth[_0xac47('0xb')](),controller['destroy']);module[_0xac47('0x11')]=router;