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 _0xc100=['../../components/auth/service','../../components/interaction/service','./template.controller','get','isAuthenticated','index','/:id','show','post','create','destroy','exports','multer','util','connect-timeout','Router'];(function(_0x3c30a4,_0x152fd6){var _0x4f3e14=function(_0x28d11e){while(--_0x28d11e){_0x3c30a4['push'](_0x3c30a4['shift']());}};_0x4f3e14(++_0x152fd6);}(_0xc100,0x6c));var _0x0c10=function(_0x291f8b,_0x3b5591){_0x291f8b=_0x291f8b-0x0;var _0x275171=_0xc100[_0x291f8b];return _0x275171;};'use strict';var multer=require(_0x0c10('0x0'));var util=require(_0x0c10('0x1'));var path=require('path');var timeout=require(_0x0c10('0x2'));var express=require('express');var router=express[_0x0c10('0x3')]();var auth=require(_0x0c10('0x4'));var interaction=require(_0x0c10('0x5'));var config=require('../../config/environment');var controller=require(_0x0c10('0x6'));router[_0x0c10('0x7')]('/',auth[_0x0c10('0x8')](),controller[_0x0c10('0x9')]);router[_0x0c10('0x7')](_0x0c10('0xa'),auth['isAuthenticated'](),controller[_0x0c10('0xb')]);router[_0x0c10('0xc')]('/',auth[_0x0c10('0x8')](),controller[_0x0c10('0xd')]);router['put'](_0x0c10('0xa'),auth[_0x0c10('0x8')](),controller['update']);router['delete'](_0x0c10('0xa'),auth[_0x0c10('0x8')](),controller[_0x0c10('0xe')]);module[_0x0c10('0xf')]=router;