a2c6e754120ab5482b2f5f8776f0282b65afe140
[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 _0x5343=['getTeams','post','create','/:id/users','addAgents','/:id/teams','put','delete','destroy','removeAgents','removeTeams','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voicePrefix.controller','get','isAuthenticated','index','/describe','describe','/:id','show'];(function(_0x228b22,_0xe9493b){var _0x5168a6=function(_0x106ef0){while(--_0x106ef0){_0x228b22['push'](_0x228b22['shift']());}};_0x5168a6(++_0xe9493b);}(_0x5343,0x123));var _0x3534=function(_0x320f87,_0x33931b){_0x320f87=_0x320f87-0x0;var _0x3c4470=_0x5343[_0x320f87];return _0x3c4470;};'use strict';var multer=require(_0x3534('0x0'));var util=require(_0x3534('0x1'));var path=require(_0x3534('0x2'));var timeout=require(_0x3534('0x3'));var express=require('express');var router=express[_0x3534('0x4')]();var fs_extra=require(_0x3534('0x5'));var auth=require(_0x3534('0x6'));var interaction=require(_0x3534('0x7'));var config=require(_0x3534('0x8'));var controller=require(_0x3534('0x9'));router[_0x3534('0xa')]('/',auth[_0x3534('0xb')](),controller[_0x3534('0xc')]);router[_0x3534('0xa')](_0x3534('0xd'),auth[_0x3534('0xb')](),controller[_0x3534('0xe')]);router[_0x3534('0xa')](_0x3534('0xf'),auth[_0x3534('0xb')](),controller[_0x3534('0x10')]);router[_0x3534('0xa')]('/:id/users',auth[_0x3534('0xb')](),controller['getAgents']);router[_0x3534('0xa')]('/:id/teams',auth[_0x3534('0xb')](),controller[_0x3534('0x11')]);router[_0x3534('0x12')]('/',auth[_0x3534('0xb')](),controller[_0x3534('0x13')]);router[_0x3534('0x12')](_0x3534('0x14'),auth[_0x3534('0xb')](),controller[_0x3534('0x15')]);router['post'](_0x3534('0x16'),auth[_0x3534('0xb')](),controller['addTeams']);router[_0x3534('0x17')](_0x3534('0xf'),auth[_0x3534('0xb')](),controller['update']);router[_0x3534('0x18')](_0x3534('0xf'),auth[_0x3534('0xb')](),controller[_0x3534('0x19')]);router[_0x3534('0x18')](_0x3534('0x14'),auth[_0x3534('0xb')](),controller[_0x3534('0x1a')]);router['delete'](_0x3534('0x16'),auth['isAuthenticated'](),controller[_0x3534('0x1b')]);module['exports']=router;