Built motion from commit 9d1906d1.|2.5.40
[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 _0x084f=['fs-extra','../../components/auth/service','../../config/environment','get','/:id','show','isAuthenticated','create','put','update','delete','exports','multer','path','express'];(function(_0xdadfe,_0x114819){var _0x3c09e1=function(_0x1395a3){while(--_0x1395a3){_0xdadfe['push'](_0xdadfe['shift']());}};_0x3c09e1(++_0x114819);}(_0x084f,0x1bf));var _0xf084=function(_0x47b58b,_0x41a189){_0x47b58b=_0x47b58b-0x0;var _0x46bebe=_0x084f[_0x47b58b];return _0x46bebe;};'use strict';var multer=require(_0xf084('0x0'));var util=require('util');var path=require(_0xf084('0x1'));var timeout=require('connect-timeout');var express=require(_0xf084('0x2'));var router=express['Router']();var fs_extra=require(_0xf084('0x3'));var auth=require(_0xf084('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xf084('0x5'));var controller=require('./voiceContext.controller');router[_0xf084('0x6')]('/',auth['isAuthenticated'](),controller['index']);router[_0xf084('0x6')](_0xf084('0x7'),auth['isAuthenticated'](),controller[_0xf084('0x8')]);router['post']('/',auth[_0xf084('0x9')](),controller[_0xf084('0xa')]);router[_0xf084('0xb')](_0xf084('0x7'),auth[_0xf084('0x9')](),controller[_0xf084('0xc')]);router[_0xf084('0xd')](_0xf084('0x7'),auth['isAuthenticated'](),controller['destroy']);module[_0xf084('0xe')]=router;