6cbb559184d8dded4a083791286d4f220250d50c
[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 _0x262c=['create','update','delete','destroy','exports','multer','path','express','Router','../../components/auth/service','../../config/environment','isAuthenticated','index','get','/:id','show','/:id/messages','getMessages','post'];(function(_0x123453,_0x398fa3){var _0x198dc9=function(_0xef4944){while(--_0xef4944){_0x123453['push'](_0x123453['shift']());}};_0x198dc9(++_0x398fa3);}(_0x262c,0x1cd));var _0xc262=function(_0x5d6e30,_0xc21d51){_0x5d6e30=_0x5d6e30-0x0;var _0x3d3f3b=_0x262c[_0x5d6e30];return _0x3d3f3b;};'use strict';var multer=require(_0xc262('0x0'));var util=require('util');var path=require(_0xc262('0x1'));var timeout=require('connect-timeout');var express=require(_0xc262('0x2'));var router=express[_0xc262('0x3')]();var auth=require(_0xc262('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xc262('0x5'));var controller=require('./voiceMail.controller');router['get']('/',auth[_0xc262('0x6')](),controller[_0xc262('0x7')]);router[_0xc262('0x8')](_0xc262('0x9'),auth['isAuthenticated'](),controller[_0xc262('0xa')]);router[_0xc262('0x8')](_0xc262('0xb'),auth[_0xc262('0x6')](),controller[_0xc262('0xc')]);router[_0xc262('0xd')]('/',auth['isAuthenticated'](),controller[_0xc262('0xe')]);router['put'](_0xc262('0x9'),auth['isAuthenticated'](),controller[_0xc262('0xf')]);router[_0xc262('0x10')](_0xc262('0x9'),auth['isAuthenticated'](),controller[_0xc262('0x11')]);module[_0xc262('0x12')]=router;