ea59008c56b4d77f62c0e2f907b1f293caf26466
[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 _0x2651=['removeSound','exports','multer','util','connect-timeout','express','Router','fs-extra','./voiceMusicOnHold.controller','isAuthenticated','index','get','/:id','show','/:id/sounds','getSounds','post','create','addSound','put','update','delete','destroy','/:id/sounds/:id2'];(function(_0x3e66b3,_0x27b8f0){var _0x26ffac=function(_0x5d8d3f){while(--_0x5d8d3f){_0x3e66b3['push'](_0x3e66b3['shift']());}};_0x26ffac(++_0x27b8f0);}(_0x2651,0x10a));var _0x1265=function(_0x38ced4,_0x24263f){_0x38ced4=_0x38ced4-0x0;var _0x547c07=_0x2651[_0x38ced4];return _0x547c07;};'use strict';var multer=require(_0x1265('0x0'));var util=require(_0x1265('0x1'));var path=require('path');var timeout=require(_0x1265('0x2'));var express=require(_0x1265('0x3'));var router=express[_0x1265('0x4')]();var fs_extra=require(_0x1265('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x1265('0x6'));router['get']('/',auth[_0x1265('0x7')](),controller[_0x1265('0x8')]);router[_0x1265('0x9')](_0x1265('0xa'),auth[_0x1265('0x7')](),controller[_0x1265('0xb')]);router['get'](_0x1265('0xc'),auth[_0x1265('0x7')](),controller[_0x1265('0xd')]);router[_0x1265('0xe')]('/',auth[_0x1265('0x7')](),controller[_0x1265('0xf')]);router[_0x1265('0xe')](_0x1265('0xc'),auth['isAuthenticated'](),controller[_0x1265('0x10')]);router[_0x1265('0x11')]('/:id',auth[_0x1265('0x7')](),controller[_0x1265('0x12')]);router[_0x1265('0x13')](_0x1265('0xa'),auth[_0x1265('0x7')](),controller[_0x1265('0x14')]);router['delete'](_0x1265('0x15'),auth['isAuthenticated'](),controller[_0x1265('0x16')]);module[_0x1265('0x17')]=router;