Built motion from commit (unavailable).|2.5.8
[motion2.git] / server / api / voiceContext / 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 _0x438e=['./voiceContext.controller','get','isAuthenticated','show','post','put','/:id','destroy','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment'];(function(_0x594449,_0x2cafee){var _0x5a63c2=function(_0x26200a){while(--_0x26200a){_0x594449['push'](_0x594449['shift']());}};_0x5a63c2(++_0x2cafee);}(_0x438e,0x98));var _0xe438=function(_0x2dafbe,_0x5d04de){_0x2dafbe=_0x2dafbe-0x0;var _0x58a45a=_0x438e[_0x2dafbe];return _0x58a45a;};'use strict';var multer=require(_0xe438('0x0'));var util=require(_0xe438('0x1'));var path=require(_0xe438('0x2'));var timeout=require(_0xe438('0x3'));var express=require(_0xe438('0x4'));var router=express[_0xe438('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0xe438('0x6'));var config=require(_0xe438('0x7'));var controller=require(_0xe438('0x8'));router[_0xe438('0x9')]('/',auth[_0xe438('0xa')](),controller['index']);router[_0xe438('0x9')]('/:id',auth[_0xe438('0xa')](),controller[_0xe438('0xb')]);router[_0xe438('0xc')]('/',auth[_0xe438('0xa')](),controller['create']);router[_0xe438('0xd')](_0xe438('0xe'),auth['isAuthenticated'](),controller['update']);router['delete']('/:id',auth[_0xe438('0xa')](),controller[_0xe438('0xf')]);module['exports']=router;