d1d20aed63bd447d4d9cbf0f72802d8ce6b5a28c
[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 _0x638d=['/:id','show','/:id/sounds','getSounds','create','post','put','update','delete','destroy','removeSound','exports','multer','util','path','connect-timeout','fs-extra','../../components/auth/service','../../config/environment','./voiceMusicOnHold.controller','get','isAuthenticated'];(function(_0x3bf44f,_0x3de8cf){var _0x1d3979=function(_0x5c999f){while(--_0x5c999f){_0x3bf44f['push'](_0x3bf44f['shift']());}};_0x1d3979(++_0x3de8cf);}(_0x638d,0xfe));var _0xd638=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x638d[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0xd638('0x0'));var util=require(_0xd638('0x1'));var path=require(_0xd638('0x2'));var timeout=require(_0xd638('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xd638('0x4'));var auth=require(_0xd638('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xd638('0x6'));var controller=require(_0xd638('0x7'));router[_0xd638('0x8')]('/',auth[_0xd638('0x9')](),controller['index']);router[_0xd638('0x8')](_0xd638('0xa'),auth['isAuthenticated'](),controller[_0xd638('0xb')]);router['get'](_0xd638('0xc'),auth['isAuthenticated'](),controller[_0xd638('0xd')]);router['post']('/',auth[_0xd638('0x9')](),controller[_0xd638('0xe')]);router[_0xd638('0xf')](_0xd638('0xc'),auth['isAuthenticated'](),controller['addSound']);router[_0xd638('0x10')](_0xd638('0xa'),auth[_0xd638('0x9')](),controller[_0xd638('0x11')]);router[_0xd638('0x12')](_0xd638('0xa'),auth[_0xd638('0x9')](),controller[_0xd638('0x13')]);router['delete']('/:id/sounds/:id2',auth[_0xd638('0x9')](),controller[_0xd638('0x14')]);module[_0xd638('0x15')]=router;