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