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 _0x2a35=['../../components/interaction/service','../../config/environment','./network.controller','isAuthenticated','index','get','/:id','show','post','create','update','destroy','multer','util','connect-timeout','Router','fs-extra'];(function(_0x3bf8d1,_0x4e7fdb){var _0x2cd614=function(_0x2a9194){while(--_0x2a9194){_0x3bf8d1['push'](_0x3bf8d1['shift']());}};_0x2cd614(++_0x4e7fdb);}(_0x2a35,0x10b));var _0x52a3=function(_0xd606db,_0x169dec){_0xd606db=_0xd606db-0x0;var _0x447a01=_0x2a35[_0xd606db];return _0x447a01;};'use strict';var multer=require(_0x52a3('0x0'));var util=require(_0x52a3('0x1'));var path=require('path');var timeout=require(_0x52a3('0x2'));var express=require('express');var router=express[_0x52a3('0x3')]();var fs_extra=require(_0x52a3('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x52a3('0x5'));var config=require(_0x52a3('0x6'));var controller=require(_0x52a3('0x7'));router['get']('/',auth[_0x52a3('0x8')](),controller[_0x52a3('0x9')]);router[_0x52a3('0xa')](_0x52a3('0xb'),auth['isAuthenticated'](),controller[_0x52a3('0xc')]);router[_0x52a3('0xd')]('/',auth[_0x52a3('0x8')](),controller[_0x52a3('0xe')]);router['put'](_0x52a3('0xb'),auth[_0x52a3('0x8')](),controller[_0x52a3('0xf')]);router['delete'](_0x52a3('0xb'),auth[_0x52a3('0x8')](),controller[_0x52a3('0x10')]);module['exports']=router;