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 _0x6720=['util','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./voiceExtension.controller','isAuthenticated','index','get','/:id','show','post','create','/:id/applications','addApplications','update','destroy'];(function(_0x3ccfcc,_0x3f125d){var _0x2deed9=function(_0xa4b4ec){while(--_0xa4b4ec){_0x3ccfcc['push'](_0x3ccfcc['shift']());}};_0x2deed9(++_0x3f125d);}(_0x6720,0x18c));var _0x0672=function(_0x4a15e1,_0x11046d){_0x4a15e1=_0x4a15e1-0x0;var _0x33f1be=_0x6720[_0x4a15e1];return _0x33f1be;};'use strict';var multer=require('multer');var util=require(_0x0672('0x0'));var path=require('path');var timeout=require(_0x0672('0x1'));var express=require(_0x0672('0x2'));var router=express[_0x0672('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x0672('0x4'));var config=require(_0x0672('0x5'));var controller=require(_0x0672('0x6'));router['get']('/',auth[_0x0672('0x7')](),controller[_0x0672('0x8')]);router[_0x0672('0x9')](_0x0672('0xa'),auth['isAuthenticated'](),controller[_0x0672('0xb')]);router[_0x0672('0xc')]('/',auth[_0x0672('0x7')](),controller[_0x0672('0xd')]);router[_0x0672('0xc')](_0x0672('0xe'),auth[_0x0672('0x7')](),controller[_0x0672('0xf')]);router['put'](_0x0672('0xa'),auth[_0x0672('0x7')](),controller[_0x0672('0x10')]);router['delete'](_0x0672('0xa'),auth[_0x0672('0x7')](),controller[_0x0672('0x11')]);module['exports']=router;