Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / api / voiceMail / 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 _0x657b=['destroy','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../config/environment','./voiceMail.controller','get','isAuthenticated','index','/:id','show','/:id/messages','getMessages','put','delete'];(function(_0x500c0,_0xdb6a03){var _0xdd146f=function(_0x2e8090){while(--_0x2e8090){_0x500c0['push'](_0x500c0['shift']());}};_0xdd146f(++_0xdb6a03);}(_0x657b,0x131));var _0xb657=function(_0x19e2aa,_0x5bd441){_0x19e2aa=_0x19e2aa-0x0;var _0x1b5df5=_0x657b[_0x19e2aa];return _0x1b5df5;};'use strict';var multer=require(_0xb657('0x0'));var util=require(_0xb657('0x1'));var path=require(_0xb657('0x2'));var timeout=require(_0xb657('0x3'));var express=require(_0xb657('0x4'));var router=express['Router']();var fs_extra=require(_0xb657('0x5'));var auth=require(_0xb657('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xb657('0x7'));var controller=require(_0xb657('0x8'));router[_0xb657('0x9')]('/',auth[_0xb657('0xa')](),controller[_0xb657('0xb')]);router['get'](_0xb657('0xc'),auth['isAuthenticated'](),controller[_0xb657('0xd')]);router[_0xb657('0x9')](_0xb657('0xe'),auth['isAuthenticated'](),controller[_0xb657('0xf')]);router['post']('/',auth[_0xb657('0xa')](),controller['create']);router[_0xb657('0x10')](_0xb657('0xc'),auth[_0xb657('0xa')](),controller['update']);router[_0xb657('0x11')](_0xb657('0xc'),auth[_0xb657('0xa')](),controller[_0xb657('0x12')]);module['exports']=router;