Built motion from commit cf5ff673.|2.5.41
[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 _0xd6e7=['get','isAuthenticated','index','/:id','show','post','create','put','update','/:id/sounds/:id2','removeSound','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./voiceMusicOnHold.controller'];(function(_0x4f27a9,_0x240e57){var _0x1d4f86=function(_0xf24290){while(--_0xf24290){_0x4f27a9['push'](_0x4f27a9['shift']());}};_0x1d4f86(++_0x240e57);}(_0xd6e7,0x90));var _0x7d6e=function(_0x53fb21,_0xabdf4c){_0x53fb21=_0x53fb21-0x0;var _0x4649f1=_0xd6e7[_0x53fb21];return _0x4649f1;};'use strict';var multer=require(_0x7d6e('0x0'));var util=require(_0x7d6e('0x1'));var path=require(_0x7d6e('0x2'));var timeout=require(_0x7d6e('0x3'));var express=require(_0x7d6e('0x4'));var router=express[_0x7d6e('0x5')]();var fs_extra=require(_0x7d6e('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0x7d6e('0x7'));var config=require(_0x7d6e('0x8'));var controller=require(_0x7d6e('0x9'));router[_0x7d6e('0xa')]('/',auth[_0x7d6e('0xb')](),controller[_0x7d6e('0xc')]);router[_0x7d6e('0xa')](_0x7d6e('0xd'),auth['isAuthenticated'](),controller[_0x7d6e('0xe')]);router[_0x7d6e('0xa')]('/:id/sounds',auth[_0x7d6e('0xb')](),controller['getSounds']);router[_0x7d6e('0xf')]('/',auth[_0x7d6e('0xb')](),controller[_0x7d6e('0x10')]);router[_0x7d6e('0xf')]('/:id/sounds',auth[_0x7d6e('0xb')](),controller['addSound']);router[_0x7d6e('0x11')](_0x7d6e('0xd'),auth[_0x7d6e('0xb')](),controller[_0x7d6e('0x12')]);router['delete'](_0x7d6e('0xd'),auth['isAuthenticated'](),controller['destroy']);router['delete'](_0x7d6e('0x13'),auth[_0x7d6e('0xb')](),controller[_0x7d6e('0x14')]);module[_0x7d6e('0x15')]=router;