04e23216732d8be8273547eabfffb27fc6342d0f
[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 _0xe637=['show','create','put','update','delete','destroy','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','index','get','/:id','isAuthenticated'];(function(_0x3eeb0f,_0x5a73ee){var _0x581025=function(_0x27ee74){while(--_0x27ee74){_0x3eeb0f['push'](_0x3eeb0f['shift']());}};_0x581025(++_0x5a73ee);}(_0xe637,0xde));var _0x7e63=function(_0x4ea830,_0x332488){_0x4ea830=_0x4ea830-0x0;var _0x4ecf49=_0xe637[_0x4ea830];return _0x4ecf49;};'use strict';var multer=require(_0x7e63('0x0'));var util=require(_0x7e63('0x1'));var path=require('path');var timeout=require(_0x7e63('0x2'));var express=require(_0x7e63('0x3'));var router=express[_0x7e63('0x4')]();var fs_extra=require(_0x7e63('0x5'));var auth=require(_0x7e63('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x7e63('0x7'));var controller=require('./voiceContext.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x7e63('0x8')]);router[_0x7e63('0x9')](_0x7e63('0xa'),auth[_0x7e63('0xb')](),controller[_0x7e63('0xc')]);router['post']('/',auth['isAuthenticated'](),controller[_0x7e63('0xd')]);router[_0x7e63('0xe')](_0x7e63('0xa'),auth[_0x7e63('0xb')](),controller[_0x7e63('0xf')]);router[_0x7e63('0x10')](_0x7e63('0xa'),auth[_0x7e63('0xb')](),controller[_0x7e63('0x11')]);module['exports']=router;