2f435ec1d76941f03c47bbe7f5bfb61d1670161d
[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 _0x91ec=['get','/:id','create','put','update','delete','destroy','multer','util','path','connect-timeout','../../components/auth/service','../../config/environment','./voiceContext.controller','isAuthenticated','index'];(function(_0x3dc68d,_0x1c1951){var _0xdf7f94=function(_0x339428){while(--_0x339428){_0x3dc68d['push'](_0x3dc68d['shift']());}};_0xdf7f94(++_0x1c1951);}(_0x91ec,0x187));var _0xc91e=function(_0x3d61c9,_0x567914){_0x3d61c9=_0x3d61c9-0x0;var _0x16ccf3=_0x91ec[_0x3d61c9];return _0x16ccf3;};'use strict';var multer=require(_0xc91e('0x0'));var util=require(_0xc91e('0x1'));var path=require(_0xc91e('0x2'));var timeout=require(_0xc91e('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xc91e('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xc91e('0x5'));var controller=require(_0xc91e('0x6'));router['get']('/',auth[_0xc91e('0x7')](),controller[_0xc91e('0x8')]);router[_0xc91e('0x9')](_0xc91e('0xa'),auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0xc91e('0x7')](),controller[_0xc91e('0xb')]);router[_0xc91e('0xc')](_0xc91e('0xa'),auth[_0xc91e('0x7')](),controller[_0xc91e('0xd')]);router[_0xc91e('0xe')](_0xc91e('0xa'),auth[_0xc91e('0x7')](),controller[_0xc91e('0xf')]);module['exports']=router;