Built motion from commit da24aabd.|2.6.20
[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 _0x1350=['isAuthenticated','show','create','put','/:id','update','delete','destroy','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','index'];(function(_0x40bffc,_0x3a45d7){var _0x3007e9=function(_0x4c8fda){while(--_0x4c8fda){_0x40bffc['push'](_0x40bffc['shift']());}};_0x3007e9(++_0x3a45d7);}(_0x1350,0x126));var _0x0135=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x1350[_0x14add3];return _0x4a174f;};'use strict';var multer=require('multer');var util=require(_0x0135('0x0'));var path=require(_0x0135('0x1'));var timeout=require(_0x0135('0x2'));var express=require(_0x0135('0x3'));var router=express[_0x0135('0x4')]();var fs_extra=require(_0x0135('0x5'));var auth=require(_0x0135('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x0135('0x7'));var controller=require('./voiceContext.controller');router[_0x0135('0x8')]('/',auth['isAuthenticated'](),controller[_0x0135('0x9')]);router['get']('/:id',auth[_0x0135('0xa')](),controller[_0x0135('0xb')]);router['post']('/',auth[_0x0135('0xa')](),controller[_0x0135('0xc')]);router[_0x0135('0xd')](_0x0135('0xe'),auth[_0x0135('0xa')](),controller[_0x0135('0xf')]);router[_0x0135('0x10')](_0x0135('0xe'),auth[_0x0135('0xa')](),controller[_0x0135('0x11')]);module[_0x0135('0x12')]=router;