7d349be1afa377bff09a41ec9677402b3e0a7489
[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 _0x32fd=['isAuthenticated','index','/:id','post','create','/:id/applications','update','delete','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./voiceExtension.controller','get'];(function(_0x4a09ba,_0x36730b){var _0x2f4638=function(_0x402167){while(--_0x402167){_0x4a09ba['push'](_0x4a09ba['shift']());}};_0x2f4638(++_0x36730b);}(_0x32fd,0x122));var _0xd32f=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x32fd[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0xd32f('0x0'));var util=require(_0xd32f('0x1'));var path=require('path');var timeout=require(_0xd32f('0x2'));var express=require(_0xd32f('0x3'));var router=express[_0xd32f('0x4')]();var fs_extra=require(_0xd32f('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xd32f('0x6'));var config=require(_0xd32f('0x7'));var controller=require(_0xd32f('0x8'));router[_0xd32f('0x9')]('/',auth[_0xd32f('0xa')](),controller[_0xd32f('0xb')]);router[_0xd32f('0x9')](_0xd32f('0xc'),auth['isAuthenticated'](),controller['show']);router[_0xd32f('0xd')]('/',auth['isAuthenticated'](),controller[_0xd32f('0xe')]);router[_0xd32f('0xd')](_0xd32f('0xf'),auth['isAuthenticated'](),controller['addApplications']);router['put'](_0xd32f('0xc'),auth[_0xd32f('0xa')](),controller[_0xd32f('0x10')]);router[_0xd32f('0x11')](_0xd32f('0xc'),auth[_0xd32f('0xa')](),controller[_0xd32f('0x12')]);module[_0xd32f('0x13')]=router;