Built motion from commit 97153652.|2.6.26
[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 _0xce74=['create','update','delete','multer','path','connect-timeout','express','Router','fs-extra','../../config/environment','./voiceContext.controller','get','/:id','post','isAuthenticated'];(function(_0x2f2bb0,_0x1b1672){var _0x53c263=function(_0x316829){while(--_0x316829){_0x2f2bb0['push'](_0x2f2bb0['shift']());}};_0x53c263(++_0x1b1672);}(_0xce74,0xa8));var _0x4ce7=function(_0x6131cd,_0x4c26a1){_0x6131cd=_0x6131cd-0x0;var _0x47e916=_0xce74[_0x6131cd];return _0x47e916;};'use strict';var multer=require(_0x4ce7('0x0'));var util=require('util');var path=require(_0x4ce7('0x1'));var timeout=require(_0x4ce7('0x2'));var express=require(_0x4ce7('0x3'));var router=express[_0x4ce7('0x4')]();var fs_extra=require(_0x4ce7('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x4ce7('0x6'));var controller=require(_0x4ce7('0x7'));router[_0x4ce7('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0x4ce7('0x8')](_0x4ce7('0x9'),auth['isAuthenticated'](),controller['show']);router[_0x4ce7('0xa')]('/',auth[_0x4ce7('0xb')](),controller[_0x4ce7('0xc')]);router['put'](_0x4ce7('0x9'),auth[_0x4ce7('0xb')](),controller[_0x4ce7('0xd')]);router[_0x4ce7('0xe')]('/:id',auth[_0x4ce7('0xb')](),controller['destroy']);module['exports']=router;