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 _0xd0ed=['show','post','create','addApplications','update','delete','destroy','exports','multer','util','path','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceExtension.controller','get','/:id','isAuthenticated'];(function(_0x257067,_0x441c69){var _0x1a509e=function(_0x4600c3){while(--_0x4600c3){_0x257067['push'](_0x257067['shift']());}};_0x1a509e(++_0x441c69);}(_0xd0ed,0xa0));var _0xdd0e=function(_0x5b8c2d,_0x2f5946){_0x5b8c2d=_0x5b8c2d-0x0;var _0x518181=_0xd0ed[_0x5b8c2d];return _0x518181;};'use strict';var multer=require(_0xdd0e('0x0'));var util=require(_0xdd0e('0x1'));var path=require(_0xdd0e('0x2'));var timeout=require(_0xdd0e('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xdd0e('0x4'));var interaction=require(_0xdd0e('0x5'));var config=require(_0xdd0e('0x6'));var controller=require(_0xdd0e('0x7'));router[_0xdd0e('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0xdd0e('0x8')](_0xdd0e('0x9'),auth[_0xdd0e('0xa')](),controller[_0xdd0e('0xb')]);router[_0xdd0e('0xc')]('/',auth[_0xdd0e('0xa')](),controller[_0xdd0e('0xd')]);router['post']('/:id/applications',auth[_0xdd0e('0xa')](),controller[_0xdd0e('0xe')]);router['put'](_0xdd0e('0x9'),auth[_0xdd0e('0xa')](),controller[_0xdd0e('0xf')]);router[_0xdd0e('0x10')]('/:id',auth['isAuthenticated'](),controller[_0xdd0e('0x11')]);module[_0xdd0e('0x12')]=router;