Built motion from commit (unavailable).|2.5.1
[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(_0x5878be,_0x22fe41){var _0x50d6f0=function(_0x509015){while(--_0x509015){_0x5878be['push'](_0x5878be['shift']());}};_0x50d6f0(++_0x22fe41);}(_0x4f00,0x1b9));var _0x04f0=function(_0x3b380d,_0x4bf247){_0x3b380d=_0x3b380d-0x0;var _0x54502b=_0x4f00[_0x3b380d];return _0x54502b;};'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;