1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x6343=['isAuthenticated','index','/:id','create','post','/:id/applications','addApplications','update','destroy','exports','path','connect-timeout','../../config/environment','./voiceExtension.controller'];(function(_0x562faf,_0x102bcc){var _0x22c1f6=function(_0x2cd3b8){while(--_0x2cd3b8){_0x562faf['push'](_0x562faf['shift']());}};_0x22c1f6(++_0x102bcc);}(_0x6343,0x168));var _0x3634=function(_0x1dbd8d,_0x17df50){_0x1dbd8d=_0x1dbd8d-0x0;var _0x3eb6ee=_0x6343[_0x1dbd8d];return _0x3eb6ee;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x3634('0x0'));var timeout=require(_0x3634('0x1'));var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x3634('0x2'));var controller=require(_0x3634('0x3'));router['get']('/',auth[_0x3634('0x4')](),controller[_0x3634('0x5')]);router['get'](_0x3634('0x6'),auth[_0x3634('0x4')](),controller['show']);router['post']('/',auth[_0x3634('0x4')](),controller[_0x3634('0x7')]);router[_0x3634('0x8')](_0x3634('0x9'),auth[_0x3634('0x4')](),controller[_0x3634('0xa')]);router['put']('/:id',auth[_0x3634('0x4')](),controller[_0x3634('0xb')]);router['delete'](_0x3634('0x6'),auth[_0x3634('0x4')](),controller[_0x3634('0xc')]);module[_0x3634('0xd')]=router;