Built motion from commit 753c950e.|2.5.42
[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 _0xb9da=['fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/users','getAgents','/:id/teams','create','post','addAgents','addTeams','put','delete','removeAgents','multer','util','path','connect-timeout','Router'];(function(_0x2ec275,_0x939500){var _0x26d4f4=function(_0x259bdb){while(--_0x259bdb){_0x2ec275['push'](_0x2ec275['shift']());}};_0x26d4f4(++_0x939500);}(_0xb9da,0x1d6));var _0xab9d=function(_0x5e5c4c,_0x21abba){_0x5e5c4c=_0x5e5c4c-0x0;var _0x176148=_0xb9da[_0x5e5c4c];return _0x176148;};'use strict';var multer=require(_0xab9d('0x0'));var util=require(_0xab9d('0x1'));var path=require(_0xab9d('0x2'));var timeout=require(_0xab9d('0x3'));var express=require('express');var router=express[_0xab9d('0x4')]();var fs_extra=require(_0xab9d('0x5'));var auth=require(_0xab9d('0x6'));var interaction=require(_0xab9d('0x7'));var config=require('../../config/environment');var controller=require('./voicePrefix.controller');router[_0xab9d('0x8')]('/',auth[_0xab9d('0x9')](),controller[_0xab9d('0xa')]);router[_0xab9d('0x8')](_0xab9d('0xb'),auth[_0xab9d('0x9')](),controller[_0xab9d('0xc')]);router['get'](_0xab9d('0xd'),auth['isAuthenticated'](),controller[_0xab9d('0xe')]);router[_0xab9d('0x8')](_0xab9d('0xf'),auth['isAuthenticated'](),controller[_0xab9d('0x10')]);router[_0xab9d('0x8')](_0xab9d('0x11'),auth[_0xab9d('0x9')](),controller['getTeams']);router['post']('/',auth[_0xab9d('0x9')](),controller[_0xab9d('0x12')]);router[_0xab9d('0x13')](_0xab9d('0xf'),auth[_0xab9d('0x9')](),controller[_0xab9d('0x14')]);router[_0xab9d('0x13')](_0xab9d('0x11'),auth['isAuthenticated'](),controller[_0xab9d('0x15')]);router[_0xab9d('0x16')]('/:id',auth[_0xab9d('0x9')](),controller['update']);router[_0xab9d('0x17')](_0xab9d('0xd'),auth[_0xab9d('0x9')](),controller['destroy']);router[_0xab9d('0x17')](_0xab9d('0xf'),auth[_0xab9d('0x9')](),controller[_0xab9d('0x18')]);router[_0xab9d('0x17')](_0xab9d('0x11'),auth['isAuthenticated'](),controller['removeTeams']);module['exports']=router;