574c986c9cc038b1a766b001cd22f859cc0f971c
[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 _0x0bef=['post','create','put','update','delete','destroy','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','index','/:id','isAuthenticated'];(function(_0x1db688,_0x2faa5b){var _0x343bc5=function(_0x29276a){while(--_0x29276a){_0x1db688['push'](_0x1db688['shift']());}};_0x343bc5(++_0x2faa5b);}(_0x0bef,0xc1));var _0xf0be=function(_0xa8899c,_0xd2186d){_0xa8899c=_0xa8899c-0x0;var _0x44aa34=_0x0bef[_0xa8899c];return _0x44aa34;};'use strict';var multer=require('multer');var util=require(_0xf0be('0x0'));var path=require(_0xf0be('0x1'));var timeout=require(_0xf0be('0x2'));var express=require(_0xf0be('0x3'));var router=express[_0xf0be('0x4')]();var auth=require(_0xf0be('0x5'));var interaction=require(_0xf0be('0x6'));var config=require(_0xf0be('0x7'));var controller=require('./voiceContext.controller');router['get']('/',auth['isAuthenticated'](),controller[_0xf0be('0x8')]);router['get'](_0xf0be('0x9'),auth[_0xf0be('0xa')](),controller['show']);router[_0xf0be('0xb')]('/',auth[_0xf0be('0xa')](),controller[_0xf0be('0xc')]);router[_0xf0be('0xd')](_0xf0be('0x9'),auth['isAuthenticated'](),controller[_0xf0be('0xe')]);router[_0xf0be('0xf')](_0xf0be('0x9'),auth[_0xf0be('0xa')](),controller[_0xf0be('0x10')]);module['exports']=router;