f6f15cf3a87d0490dd6bb7d8cbb0e078e6eee36f
[motion2.git] / server / api / voicePrefix / 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 _0xa378=['exports','multer','util','express','Router','../../components/auth/service','../../config/environment','./voicePrefix.controller','get','isAuthenticated','describe','show','/:id/users','/:id/teams','getTeams','create','post','addAgents','put','/:id','update','delete','destroy'];(function(_0x48e913,_0x5e63f4){var _0x512e3e=function(_0x2e6f35){while(--_0x2e6f35){_0x48e913['push'](_0x48e913['shift']());}};_0x512e3e(++_0x5e63f4);}(_0xa378,0xb9));var _0x8a37=function(_0x35b8b2,_0x18c929){_0x35b8b2=_0x35b8b2-0x0;var _0x54292a=_0xa378[_0x35b8b2];return _0x54292a;};'use strict';var multer=require(_0x8a37('0x0'));var util=require(_0x8a37('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x8a37('0x2'));var router=express[_0x8a37('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x8a37('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x8a37('0x5'));var controller=require(_0x8a37('0x6'));router[_0x8a37('0x7')]('/',auth[_0x8a37('0x8')](),controller['index']);router[_0x8a37('0x7')]('/describe',auth['isAuthenticated'](),controller[_0x8a37('0x9')]);router[_0x8a37('0x7')]('/:id',auth[_0x8a37('0x8')](),controller[_0x8a37('0xa')]);router['get'](_0x8a37('0xb'),auth[_0x8a37('0x8')](),controller['getAgents']);router[_0x8a37('0x7')](_0x8a37('0xc'),auth['isAuthenticated'](),controller[_0x8a37('0xd')]);router['post']('/',auth[_0x8a37('0x8')](),controller[_0x8a37('0xe')]);router[_0x8a37('0xf')]('/:id/users',auth[_0x8a37('0x8')](),controller[_0x8a37('0x10')]);router[_0x8a37('0xf')](_0x8a37('0xc'),auth[_0x8a37('0x8')](),controller['addTeams']);router[_0x8a37('0x11')](_0x8a37('0x12'),auth[_0x8a37('0x8')](),controller[_0x8a37('0x13')]);router[_0x8a37('0x14')]('/:id',auth['isAuthenticated'](),controller[_0x8a37('0x15')]);router[_0x8a37('0x14')](_0x8a37('0xb'),auth[_0x8a37('0x8')](),controller['removeAgents']);router['delete'](_0x8a37('0xc'),auth[_0x8a37('0x8')](),controller['removeTeams']);module[_0x8a37('0x16')]=router;