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