Built motion from commit e1760111.|2.6.18
[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 _0xfb82=['util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./voicePrefix.controller','get','isAuthenticated','index','/describe','/:id','show','/:id/users','getAgents','/:id/teams','post','create','addAgents','put','delete','destroy','multer'];(function(_0x6c993a,_0x5ea3ab){var _0x27f547=function(_0x22df20){while(--_0x22df20){_0x6c993a['push'](_0x6c993a['shift']());}};_0x27f547(++_0x5ea3ab);}(_0xfb82,0x17f));var _0x2fb8=function(_0x3d691e,_0x2b8bcb){_0x3d691e=_0x3d691e-0x0;var _0x1c9f29=_0xfb82[_0x3d691e];return _0x1c9f29;};'use strict';var multer=require(_0x2fb8('0x0'));var util=require(_0x2fb8('0x1'));var path=require(_0x2fb8('0x2'));var timeout=require('connect-timeout');var express=require(_0x2fb8('0x3'));var router=express[_0x2fb8('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x2fb8('0x5'));var interaction=require(_0x2fb8('0x6'));var config=require(_0x2fb8('0x7'));var controller=require(_0x2fb8('0x8'));router[_0x2fb8('0x9')]('/',auth[_0x2fb8('0xa')](),controller[_0x2fb8('0xb')]);router[_0x2fb8('0x9')](_0x2fb8('0xc'),auth[_0x2fb8('0xa')](),controller['describe']);router[_0x2fb8('0x9')](_0x2fb8('0xd'),auth[_0x2fb8('0xa')](),controller[_0x2fb8('0xe')]);router[_0x2fb8('0x9')](_0x2fb8('0xf'),auth[_0x2fb8('0xa')](),controller[_0x2fb8('0x10')]);router[_0x2fb8('0x9')](_0x2fb8('0x11'),auth[_0x2fb8('0xa')](),controller['getTeams']);router[_0x2fb8('0x12')]('/',auth[_0x2fb8('0xa')](),controller[_0x2fb8('0x13')]);router[_0x2fb8('0x12')]('/:id/users',auth['isAuthenticated'](),controller[_0x2fb8('0x14')]);router['post'](_0x2fb8('0x11'),auth[_0x2fb8('0xa')](),controller['addTeams']);router[_0x2fb8('0x15')](_0x2fb8('0xd'),auth['isAuthenticated'](),controller['update']);router[_0x2fb8('0x16')](_0x2fb8('0xd'),auth[_0x2fb8('0xa')](),controller[_0x2fb8('0x17')]);router['delete'](_0x2fb8('0xf'),auth[_0x2fb8('0xa')](),controller['removeAgents']);router[_0x2fb8('0x16')](_0x2fb8('0x11'),auth[_0x2fb8('0xa')](),controller['removeTeams']);module['exports']=router;