f1d3dddb28fc2667b191029cf4143a6aa26f3ab5
[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 _0xb56c=['Router','fs-extra','../../config/environment','./voiceContext.controller','isAuthenticated','index','get','/:id','show','post','create','update','delete','destroy','exports','multer','util','connect-timeout','express'];(function(_0x223461,_0x2bca70){var _0x4dbe0a=function(_0x3c3cb6){while(--_0x3c3cb6){_0x223461['push'](_0x223461['shift']());}};_0x4dbe0a(++_0x2bca70);}(_0xb56c,0x1b1));var _0xcb56=function(_0x3bef2c,_0x5a86fd){_0x3bef2c=_0x3bef2c-0x0;var _0x331503=_0xb56c[_0x3bef2c];return _0x331503;};'use strict';var multer=require(_0xcb56('0x0'));var util=require(_0xcb56('0x1'));var path=require('path');var timeout=require(_0xcb56('0x2'));var express=require(_0xcb56('0x3'));var router=express[_0xcb56('0x4')]();var fs_extra=require(_0xcb56('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xcb56('0x6'));var controller=require(_0xcb56('0x7'));router['get']('/',auth[_0xcb56('0x8')](),controller[_0xcb56('0x9')]);router[_0xcb56('0xa')](_0xcb56('0xb'),auth[_0xcb56('0x8')](),controller[_0xcb56('0xc')]);router[_0xcb56('0xd')]('/',auth[_0xcb56('0x8')](),controller[_0xcb56('0xe')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0xcb56('0xf')]);router[_0xcb56('0x10')](_0xcb56('0xb'),auth['isAuthenticated'](),controller[_0xcb56('0x11')]);module[_0xcb56('0x12')]=router;