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 _0x1dc5=['connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./openchannelApplication.controller','get','isAuthenticated','index','/:id','show','post','create','put','update','delete','exports','multer','util','path'];(function(_0x59b2a1,_0x1f631f){var _0x4908d1=function(_0x14c9b8){while(--_0x14c9b8){_0x59b2a1['push'](_0x59b2a1['shift']());}};_0x4908d1(++_0x1f631f);}(_0x1dc5,0x75));var _0x51dc=function(_0x19d9fa,_0x2d5edd){_0x19d9fa=_0x19d9fa-0x0;var _0x42ea59=_0x1dc5[_0x19d9fa];return _0x42ea59;};'use strict';var multer=require(_0x51dc('0x0'));var util=require(_0x51dc('0x1'));var path=require(_0x51dc('0x2'));var timeout=require(_0x51dc('0x3'));var express=require(_0x51dc('0x4'));var router=express[_0x51dc('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x51dc('0x6'));var interaction=require(_0x51dc('0x7'));var config=require('../../config/environment');var controller=require(_0x51dc('0x8'));router[_0x51dc('0x9')]('/',auth[_0x51dc('0xa')](),controller[_0x51dc('0xb')]);router[_0x51dc('0x9')](_0x51dc('0xc'),auth[_0x51dc('0xa')](),controller[_0x51dc('0xd')]);router[_0x51dc('0xe')]('/',auth['isAuthenticated'](),controller[_0x51dc('0xf')]);router[_0x51dc('0x10')](_0x51dc('0xc'),auth[_0x51dc('0xa')](),controller[_0x51dc('0x11')]);router[_0x51dc('0x12')](_0x51dc('0xc'),auth[_0x51dc('0xa')](),controller['destroy']);module[_0x51dc('0x13')]=router;