3d8ebdfb723adfe52cf2760052231acf1a5458ce
[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 _0x8b9c=['path','connect-timeout','Router','../../config/environment','./voiceExtension.controller','get','isAuthenticated','index','/:id','create','/:id/applications','addApplications','put','update','delete','destroy','exports'];(function(_0x4a53d,_0x58a95e){var _0x27410e=function(_0x38fc90){while(--_0x38fc90){_0x4a53d['push'](_0x4a53d['shift']());}};_0x27410e(++_0x58a95e);}(_0x8b9c,0x198));var _0xc8b9=function(_0x5b644e,_0x2e5e07){_0x5b644e=_0x5b644e-0x0;var _0x49c6bf=_0x8b9c[_0x5b644e];return _0x49c6bf;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xc8b9('0x0'));var timeout=require(_0xc8b9('0x1'));var express=require('express');var router=express[_0xc8b9('0x2')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xc8b9('0x3'));var controller=require(_0xc8b9('0x4'));router[_0xc8b9('0x5')]('/',auth[_0xc8b9('0x6')](),controller[_0xc8b9('0x7')]);router[_0xc8b9('0x5')](_0xc8b9('0x8'),auth[_0xc8b9('0x6')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller[_0xc8b9('0x9')]);router['post'](_0xc8b9('0xa'),auth[_0xc8b9('0x6')](),controller[_0xc8b9('0xb')]);router[_0xc8b9('0xc')]('/:id',auth['isAuthenticated'](),controller[_0xc8b9('0xd')]);router[_0xc8b9('0xe')]('/:id',auth[_0xc8b9('0x6')](),controller[_0xc8b9('0xf')]);module[_0xc8b9('0x10')]=router;