796c1b4fe51c4d1ce0babbf8e8f47de273b82091
[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 _0x2eb2=['create','put','update','delete','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./voiceContext.controller','isAuthenticated','index','get','/:id'];(function(_0x3b380d,_0x4bf247){var _0x54502b=function(_0x35d207){while(--_0x35d207){_0x3b380d['push'](_0x3b380d['shift']());}};_0x54502b(++_0x4bf247);}(_0x2eb2,0x15b));var _0x22eb=function(_0x5b561d,_0x422b7c){_0x5b561d=_0x5b561d-0x0;var _0x431060=_0x2eb2[_0x5b561d];return _0x431060;};'use strict';var multer=require(_0x22eb('0x0'));var util=require(_0x22eb('0x1'));var path=require(_0x22eb('0x2'));var timeout=require(_0x22eb('0x3'));var express=require(_0x22eb('0x4'));var router=express[_0x22eb('0x5')]();var fs_extra=require(_0x22eb('0x6'));var auth=require(_0x22eb('0x7'));var interaction=require(_0x22eb('0x8'));var config=require('../../config/environment');var controller=require(_0x22eb('0x9'));router['get']('/',auth[_0x22eb('0xa')](),controller[_0x22eb('0xb')]);router[_0x22eb('0xc')](_0x22eb('0xd'),auth[_0x22eb('0xa')](),controller['show']);router['post']('/',auth[_0x22eb('0xa')](),controller[_0x22eb('0xe')]);router[_0x22eb('0xf')](_0x22eb('0xd'),auth[_0x22eb('0xa')](),controller[_0x22eb('0x10')]);router[_0x22eb('0x11')](_0x22eb('0xd'),auth['isAuthenticated'](),controller['destroy']);module[_0x22eb('0x12')]=router;