ff1ea504c5d2f42f4ce55694573b04dc8184690b
[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 _0x4f00=['multer','util','path','connect-timeout','express','../../components/auth/service','../../config/environment','./voiceExtension.controller','get','isAuthenticated','index','show','create','/:id/applications','addApplications','put','update','delete','/:id','destroy','exports'];(function(_0x45b177,_0x1ddc80){var _0x193b49=function(_0x555beb){while(--_0x555beb){_0x45b177['push'](_0x45b177['shift']());}};_0x193b49(++_0x1ddc80);}(_0x4f00,0x1b9));var _0x04f0=function(_0x46aff0,_0x122890){_0x46aff0=_0x46aff0-0x0;var _0x9d78cf=_0x4f00[_0x46aff0];return _0x9d78cf;};'use strict';var multer=require(_0x04f0('0x0'));var util=require(_0x04f0('0x1'));var path=require(_0x04f0('0x2'));var timeout=require(_0x04f0('0x3'));var express=require(_0x04f0('0x4'));var router=express['Router']();var auth=require(_0x04f0('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x04f0('0x6'));var controller=require(_0x04f0('0x7'));router[_0x04f0('0x8')]('/',auth[_0x04f0('0x9')](),controller[_0x04f0('0xa')]);router['get']('/:id',auth[_0x04f0('0x9')](),controller[_0x04f0('0xb')]);router['post']('/',auth[_0x04f0('0x9')](),controller[_0x04f0('0xc')]);router['post'](_0x04f0('0xd'),auth[_0x04f0('0x9')](),controller[_0x04f0('0xe')]);router[_0x04f0('0xf')]('/:id',auth[_0x04f0('0x9')](),controller[_0x04f0('0x10')]);router[_0x04f0('0x11')](_0x04f0('0x12'),auth[_0x04f0('0x9')](),controller[_0x04f0('0x13')]);module[_0x04f0('0x14')]=router;