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 _0xa938=['update','exports','multer','util','connect-timeout','../../config/environment','./voiceExtension.controller','get','isAuthenticated','index','/:id','show','post','create','addApplications','put'];(function(_0x122ef9,_0x451d2a){var _0x42fba0=function(_0x17c9d3){while(--_0x17c9d3){_0x122ef9['push'](_0x122ef9['shift']());}};_0x42fba0(++_0x451d2a);}(_0xa938,0x172));var _0x8a93=function(_0x35d376,_0x2dd421){_0x35d376=_0x35d376-0x0;var _0x9ac300=_0xa938[_0x35d376];return _0x9ac300;};'use strict';var multer=require(_0x8a93('0x0'));var util=require(_0x8a93('0x1'));var path=require('path');var timeout=require(_0x8a93('0x2'));var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x8a93('0x3'));var controller=require(_0x8a93('0x4'));router[_0x8a93('0x5')]('/',auth[_0x8a93('0x6')](),controller[_0x8a93('0x7')]);router['get'](_0x8a93('0x8'),auth['isAuthenticated'](),controller[_0x8a93('0x9')]);router[_0x8a93('0xa')]('/',auth['isAuthenticated'](),controller[_0x8a93('0xb')]);router['post']('/:id/applications',auth[_0x8a93('0x6')](),controller[_0x8a93('0xc')]);router[_0x8a93('0xd')]('/:id',auth[_0x8a93('0x6')](),controller[_0x8a93('0xe')]);router['delete'](_0x8a93('0x8'),auth[_0x8a93('0x6')](),controller['destroy']);module[_0x8a93('0xf')]=router;