Built motion from commit 25580385.|2.6.2
[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 _0xfa5e=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceContext.controller','isAuthenticated','index','get','/:id','show','create','put','update','delete','destroy','exports','multer','path','connect-timeout','express','Router'];(function(_0x17266e,_0x5d273d){var _0x8eeaf4=function(_0xda6721){while(--_0xda6721){_0x17266e['push'](_0x17266e['shift']());}};_0x8eeaf4(++_0x5d273d);}(_0xfa5e,0x14b));var _0xefa5=function(_0x4c6f68,_0x45e821){_0x4c6f68=_0x4c6f68-0x0;var _0x5461d6=_0xfa5e[_0x4c6f68];return _0x5461d6;};'use strict';var multer=require(_0xefa5('0x0'));var util=require('util');var path=require(_0xefa5('0x1'));var timeout=require(_0xefa5('0x2'));var express=require(_0xefa5('0x3'));var router=express[_0xefa5('0x4')]();var fs_extra=require(_0xefa5('0x5'));var auth=require(_0xefa5('0x6'));var interaction=require(_0xefa5('0x7'));var config=require(_0xefa5('0x8'));var controller=require(_0xefa5('0x9'));router['get']('/',auth[_0xefa5('0xa')](),controller[_0xefa5('0xb')]);router[_0xefa5('0xc')](_0xefa5('0xd'),auth[_0xefa5('0xa')](),controller[_0xefa5('0xe')]);router['post']('/',auth['isAuthenticated'](),controller[_0xefa5('0xf')]);router[_0xefa5('0x10')](_0xefa5('0xd'),auth[_0xefa5('0xa')](),controller[_0xefa5('0x11')]);router[_0xefa5('0x12')](_0xefa5('0xd'),auth[_0xefa5('0xa')](),controller[_0xefa5('0x13')]);module[_0xefa5('0x14')]=router;