8355daa714fd7f470df1d014e3cd46de586c9cd3
[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 _0x8d85=['../../config/environment','./voiceMusicOnHold.controller','index','/:id','isAuthenticated','show','get','/:id/sounds','getSounds','post','create','addSound','put','update','delete','destroy','/:id/sounds/:id2','removeSound','exports','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x465a0c,_0x19d4d5){var _0x1e202e=function(_0x27bd8a){while(--_0x27bd8a){_0x465a0c['push'](_0x465a0c['shift']());}};_0x1e202e(++_0x19d4d5);}(_0x8d85,0x171));var _0x58d8=function(_0x183e0b,_0x1aeaf3){_0x183e0b=_0x183e0b-0x0;var _0x1adadc=_0x8d85[_0x183e0b];return _0x1adadc;};'use strict';var multer=require('multer');var util=require(_0x58d8('0x0'));var path=require('path');var timeout=require(_0x58d8('0x1'));var express=require(_0x58d8('0x2'));var router=express[_0x58d8('0x3')]();var auth=require(_0x58d8('0x4'));var interaction=require(_0x58d8('0x5'));var config=require(_0x58d8('0x6'));var controller=require(_0x58d8('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0x58d8('0x8')]);router['get'](_0x58d8('0x9'),auth[_0x58d8('0xa')](),controller[_0x58d8('0xb')]);router[_0x58d8('0xc')](_0x58d8('0xd'),auth[_0x58d8('0xa')](),controller[_0x58d8('0xe')]);router[_0x58d8('0xf')]('/',auth[_0x58d8('0xa')](),controller[_0x58d8('0x10')]);router[_0x58d8('0xf')](_0x58d8('0xd'),auth['isAuthenticated'](),controller[_0x58d8('0x11')]);router[_0x58d8('0x12')](_0x58d8('0x9'),auth[_0x58d8('0xa')](),controller[_0x58d8('0x13')]);router[_0x58d8('0x14')](_0x58d8('0x9'),auth[_0x58d8('0xa')](),controller[_0x58d8('0x15')]);router[_0x58d8('0x14')](_0x58d8('0x16'),auth[_0x58d8('0xa')](),controller[_0x58d8('0x17')]);module[_0x58d8('0x18')]=router;