Built motion from commit (unavailable).|2.5.14
[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 _0xd1e1=['isAuthenticated','index','show','create','post','/:id/applications','addApplications','/:id','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','get'];(function(_0x5aae50,_0x207ca2){var _0x1edc90=function(_0x20f864){while(--_0x20f864){_0x5aae50['push'](_0x5aae50['shift']());}};_0x1edc90(++_0x207ca2);}(_0xd1e1,0x1a8));var _0x1d1e=function(_0x1e33a0,_0x349081){_0x1e33a0=_0x1e33a0-0x0;var _0x3438fa=_0xd1e1[_0x1e33a0];return _0x3438fa;};'use strict';var multer=require(_0x1d1e('0x0'));var util=require(_0x1d1e('0x1'));var path=require(_0x1d1e('0x2'));var timeout=require(_0x1d1e('0x3'));var express=require(_0x1d1e('0x4'));var router=express[_0x1d1e('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0x1d1e('0x6'));var config=require('../../config/environment');var controller=require('./voiceExtension.controller');router[_0x1d1e('0x7')]('/',auth[_0x1d1e('0x8')](),controller[_0x1d1e('0x9')]);router[_0x1d1e('0x7')]('/:id',auth['isAuthenticated'](),controller[_0x1d1e('0xa')]);router['post']('/',auth[_0x1d1e('0x8')](),controller[_0x1d1e('0xb')]);router[_0x1d1e('0xc')](_0x1d1e('0xd'),auth[_0x1d1e('0x8')](),controller[_0x1d1e('0xe')]);router['put'](_0x1d1e('0xf'),auth['isAuthenticated'](),controller['update']);router['delete'](_0x1d1e('0xf'),auth['isAuthenticated'](),controller[_0x1d1e('0x10')]);module[_0x1d1e('0x11')]=router;