8d29f88d98a910d16276165808ef485ee208f558
[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 _0x44f6=['isAuthenticated','post','/:id/applications','addApplications','put','delete','destroy','exports','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceExtension.controller','get','index','/:id'];(function(_0x432682,_0x253044){var _0x463d05=function(_0xa73403){while(--_0xa73403){_0x432682['push'](_0x432682['shift']());}};_0x463d05(++_0x253044);}(_0x44f6,0x116));var _0x644f=function(_0x31c19c,_0xbe4b70){_0x31c19c=_0x31c19c-0x0;var _0x1a87f7=_0x44f6[_0x31c19c];return _0x1a87f7;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x644f('0x0'));var express=require(_0x644f('0x1'));var router=express[_0x644f('0x2')]();var auth=require(_0x644f('0x3'));var interaction=require(_0x644f('0x4'));var config=require(_0x644f('0x5'));var controller=require(_0x644f('0x6'));router[_0x644f('0x7')]('/',auth['isAuthenticated'](),controller[_0x644f('0x8')]);router[_0x644f('0x7')](_0x644f('0x9'),auth[_0x644f('0xa')](),controller['show']);router[_0x644f('0xb')]('/',auth[_0x644f('0xa')](),controller['create']);router[_0x644f('0xb')](_0x644f('0xc'),auth[_0x644f('0xa')](),controller[_0x644f('0xd')]);router[_0x644f('0xe')](_0x644f('0x9'),auth['isAuthenticated'](),controller['update']);router[_0x644f('0xf')](_0x644f('0x9'),auth['isAuthenticated'](),controller[_0x644f('0x10')]);module[_0x644f('0x11')]=router;