3ff9521fd4ea3d36d1aef880a583827e3a5bc233
[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 _0xf252=['/:id','show','/:id/sounds','post','addSound','update','delete','destroy','/:id/sounds/:id2','removeSound','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./voiceMusicOnHold.controller','isAuthenticated','get'];(function(_0x3cf080,_0x5e475f){var _0x1fac5f=function(_0x430849){while(--_0x430849){_0x3cf080['push'](_0x3cf080['shift']());}};_0x1fac5f(++_0x5e475f);}(_0xf252,0x1c3));var _0x2f25=function(_0x54a524,_0x3efc76){_0x54a524=_0x54a524-0x0;var _0x50abdc=_0xf252[_0x54a524];return _0x50abdc;};'use strict';var multer=require('multer');var util=require(_0x2f25('0x0'));var path=require(_0x2f25('0x1'));var timeout=require(_0x2f25('0x2'));var express=require(_0x2f25('0x3'));var router=express[_0x2f25('0x4')]();var fs_extra=require(_0x2f25('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x2f25('0x6'));var config=require(_0x2f25('0x7'));var controller=require(_0x2f25('0x8'));router['get']('/',auth[_0x2f25('0x9')](),controller['index']);router[_0x2f25('0xa')](_0x2f25('0xb'),auth[_0x2f25('0x9')](),controller[_0x2f25('0xc')]);router['get'](_0x2f25('0xd'),auth[_0x2f25('0x9')](),controller['getSounds']);router[_0x2f25('0xe')]('/',auth[_0x2f25('0x9')](),controller['create']);router['post'](_0x2f25('0xd'),auth[_0x2f25('0x9')](),controller[_0x2f25('0xf')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0x2f25('0x10')]);router[_0x2f25('0x11')](_0x2f25('0xb'),auth[_0x2f25('0x9')](),controller[_0x2f25('0x12')]);router['delete'](_0x2f25('0x13'),auth[_0x2f25('0x9')](),controller[_0x2f25('0x14')]);module[_0x2f25('0x15')]=router;