2eb774074ebf3ec935f1036688c1a46d9877175c
[motion2.git] / server / api / voiceMusicOnHold / 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 _0xe958=['util','path','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceMusicOnHold.controller','get','/:id','isAuthenticated','show','getSounds','create','post','addSound','put','update','destroy','delete','exports'];(function(_0x3947c9,_0x4d6c97){var _0x2e7871=function(_0x1236cc){while(--_0x1236cc){_0x3947c9['push'](_0x3947c9['shift']());}};_0x2e7871(++_0x4d6c97);}(_0xe958,0x13b));var _0x8e95=function(_0x33536c,_0x488578){_0x33536c=_0x33536c-0x0;var _0x5de091=_0xe958[_0x33536c];return _0x5de091;};'use strict';var multer=require('multer');var util=require(_0x8e95('0x0'));var path=require(_0x8e95('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x8e95('0x2')]();var fs_extra=require(_0x8e95('0x3'));var auth=require(_0x8e95('0x4'));var interaction=require(_0x8e95('0x5'));var config=require(_0x8e95('0x6'));var controller=require(_0x8e95('0x7'));router[_0x8e95('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0x8e95('0x8')](_0x8e95('0x9'),auth[_0x8e95('0xa')](),controller[_0x8e95('0xb')]);router[_0x8e95('0x8')]('/:id/sounds',auth[_0x8e95('0xa')](),controller[_0x8e95('0xc')]);router['post']('/',auth[_0x8e95('0xa')](),controller[_0x8e95('0xd')]);router[_0x8e95('0xe')]('/:id/sounds',auth['isAuthenticated'](),controller[_0x8e95('0xf')]);router[_0x8e95('0x10')](_0x8e95('0x9'),auth[_0x8e95('0xa')](),controller[_0x8e95('0x11')]);router['delete'](_0x8e95('0x9'),auth['isAuthenticated'](),controller[_0x8e95('0x12')]);router[_0x8e95('0x13')]('/:id/sounds/:id2',auth[_0x8e95('0xa')](),controller['removeSound']);module[_0x8e95('0x14')]=router;