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