Built motion from commit (unavailable).|2.5.31
[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 _0x495e=['fs-extra','../../components/interaction/service','../../config/environment','./voiceContext.controller','get','isAuthenticated','index','post','create','put','/:id','update','destroy','multer','connect-timeout','express','Router'];(function(_0x502c7d,_0x2f1285){var _0x30b7ed=function(_0x2d92f3){while(--_0x2d92f3){_0x502c7d['push'](_0x502c7d['shift']());}};_0x30b7ed(++_0x2f1285);}(_0x495e,0xfb));var _0xe495=function(_0x37e886,_0x17d0ad){_0x37e886=_0x37e886-0x0;var _0x57c5cd=_0x495e[_0x37e886];return _0x57c5cd;};'use strict';var multer=require(_0xe495('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xe495('0x1'));var express=require(_0xe495('0x2'));var router=express[_0xe495('0x3')]();var fs_extra=require(_0xe495('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xe495('0x5'));var config=require(_0xe495('0x6'));var controller=require(_0xe495('0x7'));router[_0xe495('0x8')]('/',auth[_0xe495('0x9')](),controller[_0xe495('0xa')]);router[_0xe495('0x8')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0xe495('0xb')]('/',auth['isAuthenticated'](),controller[_0xe495('0xc')]);router[_0xe495('0xd')](_0xe495('0xe'),auth[_0xe495('0x9')](),controller[_0xe495('0xf')]);router['delete'](_0xe495('0xe'),auth[_0xe495('0x9')](),controller[_0xe495('0x10')]);module['exports']=router;