3faa9b7407f6ed64195e7af6fe75e1ed73ae289a
[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 _0x8f49=['../../components/interaction/service','../../config/environment','./voiceMailMessage.controller','get','index','/:id','isAuthenticated','show','download','post','create','put','update','delete','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service'];(function(_0x35e3fa,_0x3824b1){var _0x253cd4=function(_0x13a70d){while(--_0x13a70d){_0x35e3fa['push'](_0x35e3fa['shift']());}};_0x253cd4(++_0x3824b1);}(_0x8f49,0xb0));var _0x98f4=function(_0x4416b6,_0x375aa6){_0x4416b6=_0x4416b6-0x0;var _0x2bf091=_0x8f49[_0x4416b6];return _0x2bf091;};'use strict';var multer=require(_0x98f4('0x0'));var util=require(_0x98f4('0x1'));var path=require(_0x98f4('0x2'));var timeout=require(_0x98f4('0x3'));var express=require(_0x98f4('0x4'));var router=express[_0x98f4('0x5')]();var fs_extra=require(_0x98f4('0x6'));var auth=require(_0x98f4('0x7'));var interaction=require(_0x98f4('0x8'));var config=require(_0x98f4('0x9'));var controller=require(_0x98f4('0xa'));router[_0x98f4('0xb')]('/',auth['isAuthenticated'](),controller[_0x98f4('0xc')]);router[_0x98f4('0xb')](_0x98f4('0xd'),auth[_0x98f4('0xe')](),controller[_0x98f4('0xf')]);router[_0x98f4('0xb')]('/:id/download',auth[_0x98f4('0xe')](),controller[_0x98f4('0x10')]);router[_0x98f4('0x11')]('/',auth[_0x98f4('0xe')](),controller[_0x98f4('0x12')]);router[_0x98f4('0x13')](_0x98f4('0xd'),auth[_0x98f4('0xe')](),controller[_0x98f4('0x14')]);router[_0x98f4('0x15')]('/:id',auth[_0x98f4('0xe')](),controller['destroy']);module[_0x98f4('0x16')]=router;