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 _0x02df=['post','create','addApplications','put','update','delete','destroy','multer','connect-timeout','express','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','/:id','show'];(function(_0xb39a45,_0x257c23){var _0x4d4faf=function(_0xa95f72){while(--_0xa95f72){_0xb39a45['push'](_0xb39a45['shift']());}};_0x4d4faf(++_0x257c23);}(_0x02df,0x177));var _0xf02d=function(_0x593333,_0x3a31b0){_0x593333=_0x593333-0x0;var _0x1213e2=_0x02df[_0x593333];return _0x1213e2;};'use strict';var multer=require(_0xf02d('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xf02d('0x1'));var express=require(_0xf02d('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xf02d('0x3'));var interaction=require(_0xf02d('0x4'));var config=require('../../config/environment');var controller=require('./voiceExtension.controller');router[_0xf02d('0x5')]('/',auth[_0xf02d('0x6')](),controller['index']);router[_0xf02d('0x5')](_0xf02d('0x7'),auth[_0xf02d('0x6')](),controller[_0xf02d('0x8')]);router[_0xf02d('0x9')]('/',auth[_0xf02d('0x6')](),controller[_0xf02d('0xa')]);router[_0xf02d('0x9')]('/:id/applications',auth[_0xf02d('0x6')](),controller[_0xf02d('0xb')]);router[_0xf02d('0xc')](_0xf02d('0x7'),auth[_0xf02d('0x6')](),controller[_0xf02d('0xd')]);router[_0xf02d('0xe')](_0xf02d('0x7'),auth['isAuthenticated'](),controller[_0xf02d('0xf')]);module['exports']=router;