47e079e873f64bc946d1ad8e9efe811e71c3f01f
[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 _0x8c4b=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','show','post','create','put','update','delete','/:id','destroy','exports','multer','util','path','connect-timeout','express','Router'];(function(_0x243217,_0x522951){var _0x478029=function(_0x18d053){while(--_0x18d053){_0x243217['push'](_0x243217['shift']());}};_0x478029(++_0x522951);}(_0x8c4b,0xcc));var _0xb8c4=function(_0x261c5a,_0x1c2dfa){_0x261c5a=_0x261c5a-0x0;var _0x4d8c6c=_0x8c4b[_0x261c5a];return _0x4d8c6c;};'use strict';var multer=require(_0xb8c4('0x0'));var util=require(_0xb8c4('0x1'));var path=require(_0xb8c4('0x2'));var timeout=require(_0xb8c4('0x3'));var express=require(_0xb8c4('0x4'));var router=express[_0xb8c4('0x5')]();var fs_extra=require(_0xb8c4('0x6'));var auth=require(_0xb8c4('0x7'));var interaction=require(_0xb8c4('0x8'));var config=require(_0xb8c4('0x9'));var controller=require('./voiceContext.controller');router[_0xb8c4('0xa')]('/',auth['isAuthenticated'](),controller['index']);router[_0xb8c4('0xa')]('/:id',auth[_0xb8c4('0xb')](),controller[_0xb8c4('0xc')]);router[_0xb8c4('0xd')]('/',auth['isAuthenticated'](),controller[_0xb8c4('0xe')]);router[_0xb8c4('0xf')]('/:id',auth['isAuthenticated'](),controller[_0xb8c4('0x10')]);router[_0xb8c4('0x11')](_0xb8c4('0x12'),auth[_0xb8c4('0xb')](),controller[_0xb8c4('0x13')]);module[_0xb8c4('0x14')]=router;