8ff1d93fbeb3a290ecf92346c0c2081ce5cad1b1
[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 _0x149d=['path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','isAuthenticated','post','create','/:id','multer','util'];(function(_0x299ec8,_0x5482c7){var _0x1f291e=function(_0x38cccd){while(--_0x38cccd){_0x299ec8['push'](_0x299ec8['shift']());}};_0x1f291e(++_0x5482c7);}(_0x149d,0x85));var _0xd149=function(_0x7435ec,_0x1ae030){_0x7435ec=_0x7435ec-0x0;var _0x260d5e=_0x149d[_0x7435ec];return _0x260d5e;};'use strict';var multer=require(_0xd149('0x0'));var util=require(_0xd149('0x1'));var path=require(_0xd149('0x2'));var timeout=require('connect-timeout');var express=require(_0xd149('0x3'));var router=express[_0xd149('0x4')]();var fs_extra=require(_0xd149('0x5'));var auth=require(_0xd149('0x6'));var interaction=require(_0xd149('0x7'));var config=require(_0xd149('0x8'));var controller=require('./voiceContext.controller');router[_0xd149('0x9')]('/',auth['isAuthenticated'](),controller[_0xd149('0xa')]);router[_0xd149('0x9')]('/:id',auth[_0xd149('0xb')](),controller['show']);router[_0xd149('0xc')]('/',auth['isAuthenticated'](),controller[_0xd149('0xd')]);router['put'](_0xd149('0xe'),auth[_0xd149('0xb')](),controller['update']);router['delete']('/:id',auth['isAuthenticated'](),controller['destroy']);module['exports']=router;