Built motion from commit f7863d46.|2.5.41
[motion2.git] / server / api / voiceExtension / 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 _0x576c=['util','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/:id','create','/:id/applications','addApplications','put','update','destroy','exports'];(function(_0x40a825,_0x3bac79){var _0x273a54=function(_0x5628d8){while(--_0x5628d8){_0x40a825['push'](_0x40a825['shift']());}};_0x273a54(++_0x3bac79);}(_0x576c,0x110));var _0xc576=function(_0x441f45,_0x16130c){_0x441f45=_0x441f45-0x0;var _0x2bc267=_0x576c[_0x441f45];return _0x2bc267;};'use strict';var multer=require('multer');var util=require(_0xc576('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0xc576('0x1')]();var fs_extra=require(_0xc576('0x2'));var auth=require(_0xc576('0x3'));var interaction=require(_0xc576('0x4'));var config=require('../../config/environment');var controller=require('./voiceExtension.controller');router[_0xc576('0x5')]('/',auth[_0xc576('0x6')](),controller[_0xc576('0x7')]);router[_0xc576('0x5')](_0xc576('0x8'),auth[_0xc576('0x6')](),controller['show']);router['post']('/',auth[_0xc576('0x6')](),controller[_0xc576('0x9')]);router['post'](_0xc576('0xa'),auth['isAuthenticated'](),controller[_0xc576('0xb')]);router[_0xc576('0xc')]('/:id',auth['isAuthenticated'](),controller[_0xc576('0xd')]);router['delete']('/:id',auth[_0xc576('0x6')](),controller[_0xc576('0xe')]);module[_0xc576('0xf')]=router;