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