d3652c001d251824d5707330c99ca628180e6640
[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 _0xd80b=['multer','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceContext.controller','get','index','isAuthenticated','show','post','create','put','/:id','delete','destroy','exports'];(function(_0x5d324b,_0x315e3b){var _0x564188=function(_0x5ca3ce){while(--_0x5ca3ce){_0x5d324b['push'](_0x5d324b['shift']());}};_0x564188(++_0x315e3b);}(_0xd80b,0x130));var _0xbd80=function(_0x5839e1,_0x25ee11){_0x5839e1=_0x5839e1-0x0;var _0x85a8b8=_0xd80b[_0x5839e1];return _0x85a8b8;};'use strict';var multer=require(_0xbd80('0x0'));var util=require('util');var path=require(_0xbd80('0x1'));var timeout=require('connect-timeout');var express=require(_0xbd80('0x2'));var router=express[_0xbd80('0x3')]();var auth=require(_0xbd80('0x4'));var interaction=require(_0xbd80('0x5'));var config=require(_0xbd80('0x6'));var controller=require(_0xbd80('0x7'));router[_0xbd80('0x8')]('/',auth['isAuthenticated'](),controller[_0xbd80('0x9')]);router[_0xbd80('0x8')]('/:id',auth[_0xbd80('0xa')](),controller[_0xbd80('0xb')]);router[_0xbd80('0xc')]('/',auth[_0xbd80('0xa')](),controller[_0xbd80('0xd')]);router[_0xbd80('0xe')](_0xbd80('0xf'),auth[_0xbd80('0xa')](),controller['update']);router[_0xbd80('0x10')]('/:id',auth['isAuthenticated'](),controller[_0xbd80('0x11')]);module[_0xbd80('0x12')]=router;