Built motion from commit (unavailable).|2.4.19
[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 _0x8f51=['get','isAuthenticated','index','/:id','show','/:id/sounds','getSounds','post','addSound','put','update','delete','removeSound','exports','util','express','Router','../../components/auth/service','../../config/environment','./voiceMusicOnHold.controller'];(function(_0x5ab659,_0x1dcce8){var _0x2424d0=function(_0x1b86f){while(--_0x1b86f){_0x5ab659['push'](_0x5ab659['shift']());}};_0x2424d0(++_0x1dcce8);}(_0x8f51,0x1ee));var _0x18f5=function(_0x174ef5,_0x256e8e){_0x174ef5=_0x174ef5-0x0;var _0x1cc379=_0x8f51[_0x174ef5];return _0x1cc379;};'use strict';var multer=require('multer');var util=require(_0x18f5('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x18f5('0x1'));var router=express[_0x18f5('0x2')]();var auth=require(_0x18f5('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x18f5('0x4'));var controller=require(_0x18f5('0x5'));router[_0x18f5('0x6')]('/',auth[_0x18f5('0x7')](),controller[_0x18f5('0x8')]);router['get'](_0x18f5('0x9'),auth[_0x18f5('0x7')](),controller[_0x18f5('0xa')]);router['get'](_0x18f5('0xb'),auth[_0x18f5('0x7')](),controller[_0x18f5('0xc')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0x18f5('0xd')](_0x18f5('0xb'),auth[_0x18f5('0x7')](),controller[_0x18f5('0xe')]);router[_0x18f5('0xf')](_0x18f5('0x9'),auth[_0x18f5('0x7')](),controller[_0x18f5('0x10')]);router[_0x18f5('0x11')]('/:id',auth[_0x18f5('0x7')](),controller['destroy']);router[_0x18f5('0x11')]('/:id/sounds/:id2',auth[_0x18f5('0x7')](),controller[_0x18f5('0x12')]);module[_0x18f5('0x13')]=router;