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