6d715a04c28b541c2540ddf197b9bf942c8c47ca
[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 _0x1bc6=['post','create','addSound','update','destroy','delete','/:id/sounds/:id2','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./voiceMusicOnHold.controller','get','isAuthenticated','index','/:id','show','/:id/sounds','getSounds'];(function(_0x19ae88,_0xa7d7bf){var _0x397856=function(_0x55d1b3){while(--_0x55d1b3){_0x19ae88['push'](_0x19ae88['shift']());}};_0x397856(++_0xa7d7bf);}(_0x1bc6,0x1b8));var _0x61bc=function(_0x39d51c,_0x2a7da4){_0x39d51c=_0x39d51c-0x0;var _0x1419ca=_0x1bc6[_0x39d51c];return _0x1419ca;};'use strict';var multer=require(_0x61bc('0x0'));var util=require(_0x61bc('0x1'));var path=require(_0x61bc('0x2'));var timeout=require(_0x61bc('0x3'));var express=require(_0x61bc('0x4'));var router=express[_0x61bc('0x5')]();var auth=require(_0x61bc('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x61bc('0x7'));var controller=require(_0x61bc('0x8'));router[_0x61bc('0x9')]('/',auth[_0x61bc('0xa')](),controller[_0x61bc('0xb')]);router['get'](_0x61bc('0xc'),auth['isAuthenticated'](),controller[_0x61bc('0xd')]);router[_0x61bc('0x9')](_0x61bc('0xe'),auth[_0x61bc('0xa')](),controller[_0x61bc('0xf')]);router[_0x61bc('0x10')]('/',auth[_0x61bc('0xa')](),controller[_0x61bc('0x11')]);router[_0x61bc('0x10')](_0x61bc('0xe'),auth[_0x61bc('0xa')](),controller[_0x61bc('0x12')]);router['put'](_0x61bc('0xc'),auth['isAuthenticated'](),controller[_0x61bc('0x13')]);router['delete'](_0x61bc('0xc'),auth[_0x61bc('0xa')](),controller[_0x61bc('0x14')]);router[_0x61bc('0x15')](_0x61bc('0x16'),auth[_0x61bc('0xa')](),controller['removeSound']);module[_0x61bc('0x17')]=router;