Built motion from commit 5b761a7b.|2.5.36
[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 _0x7e57=['exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/:id','show','post','addApplications','put','update','delete'];(function(_0x12010d,_0x43e72c){var _0xcc8c1c=function(_0x4c845a){while(--_0x4c845a){_0x12010d['push'](_0x12010d['shift']());}};_0xcc8c1c(++_0x43e72c);}(_0x7e57,0x73));var _0x77e5=function(_0x473688,_0x4fce45){_0x473688=_0x473688-0x0;var _0x29b369=_0x7e57[_0x473688];return _0x29b369;};'use strict';var multer=require(_0x77e5('0x0'));var util=require(_0x77e5('0x1'));var path=require(_0x77e5('0x2'));var timeout=require(_0x77e5('0x3'));var express=require(_0x77e5('0x4'));var router=express[_0x77e5('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x77e5('0x6'));var interaction=require(_0x77e5('0x7'));var config=require('../../config/environment');var controller=require('./voiceExtension.controller');router[_0x77e5('0x8')]('/',auth[_0x77e5('0x9')](),controller[_0x77e5('0xa')]);router[_0x77e5('0x8')](_0x77e5('0xb'),auth['isAuthenticated'](),controller[_0x77e5('0xc')]);router[_0x77e5('0xd')]('/',auth[_0x77e5('0x9')](),controller['create']);router[_0x77e5('0xd')]('/:id/applications',auth[_0x77e5('0x9')](),controller[_0x77e5('0xe')]);router[_0x77e5('0xf')](_0x77e5('0xb'),auth[_0x77e5('0x9')](),controller[_0x77e5('0x10')]);router[_0x77e5('0x11')](_0x77e5('0xb'),auth[_0x77e5('0x9')](),controller['destroy']);module[_0x77e5('0x12')]=router;