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