13e1cbf2d636931d6983e77dae7cb610cbc27fea
[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 _0x7791=['multer','util','connect-timeout','express','../../config/environment','./voiceMailMessage.controller','get','isAuthenticated','/:id','show','/:id/download','download','post','create','put','update','delete','destroy'];(function(_0x13ffd9,_0x48d164){var _0x2f50ee=function(_0x1ca389){while(--_0x1ca389){_0x13ffd9['push'](_0x13ffd9['shift']());}};_0x2f50ee(++_0x48d164);}(_0x7791,0x1e6));var _0x1779=function(_0x41227c,_0x5485f2){_0x41227c=_0x41227c-0x0;var _0x47f3a8=_0x7791[_0x41227c];return _0x47f3a8;};'use strict';var multer=require(_0x1779('0x0'));var util=require(_0x1779('0x1'));var path=require('path');var timeout=require(_0x1779('0x2'));var express=require(_0x1779('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x1779('0x4'));var controller=require(_0x1779('0x5'));router[_0x1779('0x6')]('/',auth[_0x1779('0x7')](),controller['index']);router[_0x1779('0x6')](_0x1779('0x8'),auth[_0x1779('0x7')](),controller[_0x1779('0x9')]);router['get'](_0x1779('0xa'),auth[_0x1779('0x7')](),controller[_0x1779('0xb')]);router[_0x1779('0xc')]('/',auth[_0x1779('0x7')](),controller[_0x1779('0xd')]);router[_0x1779('0xe')]('/:id',auth['isAuthenticated'](),controller[_0x1779('0xf')]);router[_0x1779('0x10')](_0x1779('0x8'),auth[_0x1779('0x7')](),controller[_0x1779('0x11')]);module['exports']=router;