Built motion from commit (unavailable).|2.5.23
[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 _0x2602=['delete','removeAgents','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./voicePrefix.controller','get','isAuthenticated','/describe','/:id','/:id/users','create','post','addAgents','put','update'];(function(_0x35e0d4,_0x4cc3b2){var _0x481513=function(_0x1b9d9d){while(--_0x1b9d9d){_0x35e0d4['push'](_0x35e0d4['shift']());}};_0x481513(++_0x4cc3b2);}(_0x2602,0x1d0));var _0x2260=function(_0x586845,_0x33a823){_0x586845=_0x586845-0x0;var _0x467930=_0x2602[_0x586845];return _0x467930;};'use strict';var multer=require(_0x2260('0x0'));var util=require(_0x2260('0x1'));var path=require(_0x2260('0x2'));var timeout=require(_0x2260('0x3'));var express=require(_0x2260('0x4'));var router=express[_0x2260('0x5')]();var auth=require(_0x2260('0x6'));var interaction=require(_0x2260('0x7'));var config=require('../../config/environment');var controller=require(_0x2260('0x8'));router[_0x2260('0x9')]('/',auth[_0x2260('0xa')](),controller['index']);router[_0x2260('0x9')](_0x2260('0xb'),auth[_0x2260('0xa')](),controller['describe']);router[_0x2260('0x9')](_0x2260('0xc'),auth[_0x2260('0xa')](),controller['show']);router[_0x2260('0x9')](_0x2260('0xd'),auth[_0x2260('0xa')](),controller['getAgents']);router['post']('/',auth[_0x2260('0xa')](),controller[_0x2260('0xe')]);router[_0x2260('0xf')](_0x2260('0xd'),auth[_0x2260('0xa')](),controller[_0x2260('0x10')]);router[_0x2260('0x11')](_0x2260('0xc'),auth[_0x2260('0xa')](),controller[_0x2260('0x12')]);router[_0x2260('0x13')](_0x2260('0xc'),auth[_0x2260('0xa')](),controller['destroy']);router[_0x2260('0x13')](_0x2260('0xd'),auth['isAuthenticated'](),controller[_0x2260('0x14')]);module['exports']=router;