fe161317cee0c773e3fb65542bb4a6f73be3134e
[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 _0x84aa=['../../components/interaction/service','./voiceMusicOnHold.controller','get','isAuthenticated','index','/:id','show','/:id/sounds','getSounds','post','addSound','put','update','/:id/sounds/:id2','removeSound','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service'];(function(_0x8c43de,_0x90ff31){var _0xa6591b=function(_0x469716){while(--_0x469716){_0x8c43de['push'](_0x8c43de['shift']());}};_0xa6591b(++_0x90ff31);}(_0x84aa,0x1ae));var _0xa84a=function(_0x45c7c9,_0xa2bf94){_0x45c7c9=_0x45c7c9-0x0;var _0x5e4db7=_0x84aa[_0x45c7c9];return _0x5e4db7;};'use strict';var multer=require(_0xa84a('0x0'));var util=require('util');var path=require(_0xa84a('0x1'));var timeout=require(_0xa84a('0x2'));var express=require(_0xa84a('0x3'));var router=express[_0xa84a('0x4')]();var fs_extra=require(_0xa84a('0x5'));var auth=require(_0xa84a('0x6'));var interaction=require(_0xa84a('0x7'));var config=require('../../config/environment');var controller=require(_0xa84a('0x8'));router[_0xa84a('0x9')]('/',auth[_0xa84a('0xa')](),controller[_0xa84a('0xb')]);router[_0xa84a('0x9')](_0xa84a('0xc'),auth['isAuthenticated'](),controller[_0xa84a('0xd')]);router[_0xa84a('0x9')](_0xa84a('0xe'),auth[_0xa84a('0xa')](),controller[_0xa84a('0xf')]);router['post']('/',auth[_0xa84a('0xa')](),controller['create']);router[_0xa84a('0x10')](_0xa84a('0xe'),auth[_0xa84a('0xa')](),controller[_0xa84a('0x11')]);router[_0xa84a('0x12')](_0xa84a('0xc'),auth['isAuthenticated'](),controller[_0xa84a('0x13')]);router['delete'](_0xa84a('0xc'),auth[_0xa84a('0xa')](),controller['destroy']);router['delete'](_0xa84a('0x14'),auth[_0xa84a('0xa')](),controller[_0xa84a('0x15')]);module[_0xa84a('0x16')]=router;