Built motion from commit 9e1399f3.|2.5.37
[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 _0x2557=['index','/:id','show','create','put','delete','destroy','exports','multer','path','connect-timeout','Router','fs-extra','../../components/interaction/service','../../config/environment','./voiceContext.controller','get','isAuthenticated'];(function(_0xd7de76,_0x16addf){var _0xc15526=function(_0x37e0c9){while(--_0x37e0c9){_0xd7de76['push'](_0xd7de76['shift']());}};_0xc15526(++_0x16addf);}(_0x2557,0x98));var _0x7255=function(_0x31bf7f,_0x9c0a6c){_0x31bf7f=_0x31bf7f-0x0;var _0x1fb738=_0x2557[_0x31bf7f];return _0x1fb738;};'use strict';var multer=require(_0x7255('0x0'));var util=require('util');var path=require(_0x7255('0x1'));var timeout=require(_0x7255('0x2'));var express=require('express');var router=express[_0x7255('0x3')]();var fs_extra=require(_0x7255('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x7255('0x5'));var config=require(_0x7255('0x6'));var controller=require(_0x7255('0x7'));router[_0x7255('0x8')]('/',auth[_0x7255('0x9')](),controller[_0x7255('0xa')]);router['get'](_0x7255('0xb'),auth[_0x7255('0x9')](),controller[_0x7255('0xc')]);router['post']('/',auth[_0x7255('0x9')](),controller[_0x7255('0xd')]);router[_0x7255('0xe')](_0x7255('0xb'),auth['isAuthenticated'](),controller['update']);router[_0x7255('0xf')]('/:id',auth[_0x7255('0x9')](),controller[_0x7255('0x10')]);module[_0x7255('0x11')]=router;