Built motion from commit 9d0783e6.|2.6.13
[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 _0x72a2=['update','delete','removeTeams','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','index','get','/describe','isAuthenticated','/:id','show','/:id/users','getAgents','getTeams','post','create','addAgents','/:id/teams','addTeams','put'];(function(_0x48999d,_0x1e02cb){var _0x1ad0d1=function(_0x3f974e){while(--_0x3f974e){_0x48999d['push'](_0x48999d['shift']());}};_0x1ad0d1(++_0x1e02cb);}(_0x72a2,0x161));var _0x272a=function(_0x35bb68,_0x511028){_0x35bb68=_0x35bb68-0x0;var _0x20fc42=_0x72a2[_0x35bb68];return _0x20fc42;};'use strict';var multer=require('multer');var util=require(_0x272a('0x0'));var path=require(_0x272a('0x1'));var timeout=require(_0x272a('0x2'));var express=require(_0x272a('0x3'));var router=express[_0x272a('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x272a('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x272a('0x6'));var controller=require('./voicePrefix.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x272a('0x7')]);router[_0x272a('0x8')](_0x272a('0x9'),auth[_0x272a('0xa')](),controller['describe']);router['get'](_0x272a('0xb'),auth['isAuthenticated'](),controller[_0x272a('0xc')]);router['get'](_0x272a('0xd'),auth[_0x272a('0xa')](),controller[_0x272a('0xe')]);router[_0x272a('0x8')]('/:id/teams',auth['isAuthenticated'](),controller[_0x272a('0xf')]);router[_0x272a('0x10')]('/',auth['isAuthenticated'](),controller[_0x272a('0x11')]);router[_0x272a('0x10')](_0x272a('0xd'),auth[_0x272a('0xa')](),controller[_0x272a('0x12')]);router['post'](_0x272a('0x13'),auth[_0x272a('0xa')](),controller[_0x272a('0x14')]);router[_0x272a('0x15')]('/:id',auth[_0x272a('0xa')](),controller[_0x272a('0x16')]);router['delete']('/:id',auth['isAuthenticated'](),controller['destroy']);router['delete']('/:id/users',auth[_0x272a('0xa')](),controller['removeAgents']);router[_0x272a('0x17')](_0x272a('0x13'),auth[_0x272a('0xa')](),controller[_0x272a('0x18')]);module['exports']=router;