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 _0xfab2=['index','/:id','isAuthenticated','show','post','destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./template.controller','get'];(function(_0x502c7d,_0x2f1285){var _0x30b7ed=function(_0x2d92f3){while(--_0x2d92f3){_0x502c7d['push'](_0x502c7d['shift']());}};_0x30b7ed(++_0x2f1285);}(_0xfab2,0x14a));var _0x2fab=function(_0x2c11d4,_0x5ad08a){_0x2c11d4=_0x2c11d4-0x0;var _0x360cda=_0xfab2[_0x2c11d4];return _0x360cda;};'use strict';var multer=require('multer');var util=require(_0x2fab('0x0'));var path=require(_0x2fab('0x1'));var timeout=require(_0x2fab('0x2'));var express=require(_0x2fab('0x3'));var router=express[_0x2fab('0x4')]();var auth=require(_0x2fab('0x5'));var interaction=require(_0x2fab('0x6'));var config=require(_0x2fab('0x7'));var controller=require(_0x2fab('0x8'));router[_0x2fab('0x9')]('/',auth['isAuthenticated'](),controller[_0x2fab('0xa')]);router['get'](_0x2fab('0xb'),auth[_0x2fab('0xc')](),controller[_0x2fab('0xd')]);router[_0x2fab('0xe')]('/',auth['isAuthenticated'](),controller['create']);router['put'](_0x2fab('0xb'),auth[_0x2fab('0xc')](),controller['update']);router['delete']('/:id',auth[_0x2fab('0xc')](),controller[_0x2fab('0xf')]);module[_0x2fab('0x10')]=router;