Built motion from commit da617fac.|2.6.6
[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 _0xe1a9=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceContext.controller','get','isAuthenticated','index','/:id','show','put','update','destroy','exports','multer','util','connect-timeout','express'];(function(_0x18ea02,_0x45c7fe){var _0x306716=function(_0x336694){while(--_0x336694){_0x18ea02['push'](_0x18ea02['shift']());}};_0x306716(++_0x45c7fe);}(_0xe1a9,0x1ea));var _0x9e1a=function(_0x12baf0,_0x47c818){_0x12baf0=_0x12baf0-0x0;var _0x3a4e71=_0xe1a9[_0x12baf0];return _0x3a4e71;};'use strict';var multer=require(_0x9e1a('0x0'));var util=require(_0x9e1a('0x1'));var path=require('path');var timeout=require(_0x9e1a('0x2'));var express=require(_0x9e1a('0x3'));var router=express[_0x9e1a('0x4')]();var fs_extra=require(_0x9e1a('0x5'));var auth=require(_0x9e1a('0x6'));var interaction=require(_0x9e1a('0x7'));var config=require(_0x9e1a('0x8'));var controller=require(_0x9e1a('0x9'));router[_0x9e1a('0xa')]('/',auth[_0x9e1a('0xb')](),controller[_0x9e1a('0xc')]);router['get'](_0x9e1a('0xd'),auth['isAuthenticated'](),controller[_0x9e1a('0xe')]);router['post']('/',auth[_0x9e1a('0xb')](),controller['create']);router[_0x9e1a('0xf')](_0x9e1a('0xd'),auth[_0x9e1a('0xb')](),controller[_0x9e1a('0x10')]);router['delete'](_0x9e1a('0xd'),auth[_0x9e1a('0xb')](),controller[_0x9e1a('0x11')]);module[_0x9e1a('0x12')]=router;