1d3c0439a65d2200b4b6ae1486640893cd2b2fb3
[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 _0xb47e=['../../components/interaction/service','../../config/environment','./voiceExtension.controller','/:id','show','isAuthenticated','post','/:id/applications','addApplications','put','delete','destroy','exports','multer','../../components/auth/service'];(function(_0x36dd9e,_0x713616){var _0x49ccee=function(_0x1d219e){while(--_0x1d219e){_0x36dd9e['push'](_0x36dd9e['shift']());}};_0x49ccee(++_0x713616);}(_0xb47e,0x12a));var _0xeb47=function(_0x2b4844,_0x52be0e){_0x2b4844=_0x2b4844-0x0;var _0x19be1e=_0xb47e[_0x2b4844];return _0x19be1e;};'use strict';var multer=require(_0xeb47('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xeb47('0x1'));var interaction=require(_0xeb47('0x2'));var config=require(_0xeb47('0x3'));var controller=require(_0xeb47('0x4'));router['get']('/',auth['isAuthenticated'](),controller['index']);router['get'](_0xeb47('0x5'),auth['isAuthenticated'](),controller[_0xeb47('0x6')]);router['post']('/',auth[_0xeb47('0x7')](),controller['create']);router[_0xeb47('0x8')](_0xeb47('0x9'),auth[_0xeb47('0x7')](),controller[_0xeb47('0xa')]);router[_0xeb47('0xb')](_0xeb47('0x5'),auth[_0xeb47('0x7')](),controller['update']);router[_0xeb47('0xc')](_0xeb47('0x5'),auth[_0xeb47('0x7')](),controller[_0xeb47('0xd')]);module[_0xeb47('0xe')]=router;