Built motion from commit (unavailable).|2.5.28
[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 _0xf53d=['../../components/auth/service','../../config/environment','isAuthenticated','get','/:id','show','/:id/messages','getMessages','create','update','delete','destroy','exports','multer','util','connect-timeout','express','Router'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0xf53d,0x199));var _0xdf53=function(_0x273a05,_0x375073){_0x273a05=_0x273a05-0x0;var _0x2d254f=_0xf53d[_0x273a05];return _0x2d254f;};'use strict';var multer=require(_0xdf53('0x0'));var util=require(_0xdf53('0x1'));var path=require('path');var timeout=require(_0xdf53('0x2'));var express=require(_0xdf53('0x3'));var router=express[_0xdf53('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xdf53('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xdf53('0x6'));var controller=require('./voiceMail.controller');router['get']('/',auth[_0xdf53('0x7')](),controller['index']);router[_0xdf53('0x8')](_0xdf53('0x9'),auth[_0xdf53('0x7')](),controller[_0xdf53('0xa')]);router[_0xdf53('0x8')](_0xdf53('0xb'),auth[_0xdf53('0x7')](),controller[_0xdf53('0xc')]);router['post']('/',auth[_0xdf53('0x7')](),controller[_0xdf53('0xd')]);router['put'](_0xdf53('0x9'),auth['isAuthenticated'](),controller[_0xdf53('0xe')]);router[_0xdf53('0xf')](_0xdf53('0x9'),auth[_0xdf53('0x7')](),controller[_0xdf53('0x10')]);module[_0xdf53('0x11')]=router;