Built motion from commit (unavailable).|2.3.3
[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 _0xea5b=['../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/:id','isAuthenticated','show','post','create','put','update','destroy','exports','multer','util','path','Router'];(function(_0xcfc88f,_0x239d01){var _0x20cfc0=function(_0x329197){while(--_0x329197){_0xcfc88f['push'](_0xcfc88f['shift']());}};_0x20cfc0(++_0x239d01);}(_0xea5b,0x152));var _0xbea5=function(_0x4a53d,_0x58a95e){_0x4a53d=_0x4a53d-0x0;var _0x27410e=_0xea5b[_0x4a53d];return _0x27410e;};'use strict';var multer=require(_0xbea5('0x0'));var util=require(_0xbea5('0x1'));var path=require(_0xbea5('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xbea5('0x3')]();var auth=require(_0xbea5('0x4'));var interaction=require(_0xbea5('0x5'));var config=require(_0xbea5('0x6'));var controller=require('./voiceContext.controller');router[_0xbea5('0x7')]('/',auth['isAuthenticated'](),controller[_0xbea5('0x8')]);router[_0xbea5('0x7')](_0xbea5('0x9'),auth[_0xbea5('0xa')](),controller[_0xbea5('0xb')]);router[_0xbea5('0xc')]('/',auth[_0xbea5('0xa')](),controller[_0xbea5('0xd')]);router[_0xbea5('0xe')](_0xbea5('0x9'),auth[_0xbea5('0xa')](),controller[_0xbea5('0xf')]);router['delete']('/:id',auth[_0xbea5('0xa')](),controller[_0xbea5('0x10')]);module[_0xbea5('0x11')]=router;