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 _0xc390=['get','index','/:id','show','create','put','isAuthenticated','update','delete','destroy','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../config/environment','./template.controller'];(function(_0x7f6b5f,_0x474e10){var _0x4b8497=function(_0x4d6a03){while(--_0x4d6a03){_0x7f6b5f['push'](_0x7f6b5f['shift']());}};_0x4b8497(++_0x474e10);}(_0xc390,0xa3));var _0x0c39=function(_0x4a1525,_0x5d7d05){_0x4a1525=_0x4a1525-0x0;var _0x22d276=_0xc390[_0x4a1525];return _0x22d276;};'use strict';var multer=require(_0x0c39('0x0'));var util=require(_0x0c39('0x1'));var path=require(_0x0c39('0x2'));var timeout=require(_0x0c39('0x3'));var express=require('express');var router=express[_0x0c39('0x4')]();var auth=require(_0x0c39('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x0c39('0x6'));var controller=require(_0x0c39('0x7'));router[_0x0c39('0x8')]('/',auth['isAuthenticated'](),controller[_0x0c39('0x9')]);router[_0x0c39('0x8')](_0x0c39('0xa'),auth['isAuthenticated'](),controller[_0x0c39('0xb')]);router['post']('/',auth['isAuthenticated'](),controller[_0x0c39('0xc')]);router[_0x0c39('0xd')](_0x0c39('0xa'),auth[_0x0c39('0xe')](),controller[_0x0c39('0xf')]);router[_0x0c39('0x10')](_0x0c39('0xa'),auth[_0x0c39('0xe')](),controller[_0x0c39('0x11')]);module[_0x0c39('0x12')]=router;