5737ee169eb19c4370a514b7561245c70db6b8e3
[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 _0xb91a=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceContext.controller','get','isAuthenticated','index','show','put','/:id','update','delete','destroy','exports','multer','util','path'];(function(_0x485bd8,_0x30530d){var _0x9540=function(_0x3e071e){while(--_0x3e071e){_0x485bd8['push'](_0x485bd8['shift']());}};_0x9540(++_0x30530d);}(_0xb91a,0xf4));var _0xab91=function(_0x3ba343,_0x4480c3){_0x3ba343=_0x3ba343-0x0;var _0x4bfa17=_0xb91a[_0x3ba343];return _0x4bfa17;};'use strict';var multer=require(_0xab91('0x0'));var util=require(_0xab91('0x1'));var path=require(_0xab91('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xab91('0x3')]();var fs_extra=require(_0xab91('0x4'));var auth=require(_0xab91('0x5'));var interaction=require(_0xab91('0x6'));var config=require(_0xab91('0x7'));var controller=require(_0xab91('0x8'));router[_0xab91('0x9')]('/',auth[_0xab91('0xa')](),controller[_0xab91('0xb')]);router[_0xab91('0x9')]('/:id',auth[_0xab91('0xa')](),controller[_0xab91('0xc')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0xab91('0xd')](_0xab91('0xe'),auth[_0xab91('0xa')](),controller[_0xab91('0xf')]);router[_0xab91('0x10')](_0xab91('0xe'),auth[_0xab91('0xa')](),controller[_0xab91('0x11')]);module[_0xab91('0x12')]=router;