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