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 _0x3f48=['../../components/auth/service','../../components/interaction/service','./template.controller','isAuthenticated','index','get','/:id','show','post','put','destroy','exports','path','connect-timeout','express','Router'];(function(_0x1e31ae,_0x33e190){var _0x52a57c=function(_0x34dc0a){while(--_0x34dc0a){_0x1e31ae['push'](_0x1e31ae['shift']());}};_0x52a57c(++_0x33e190);}(_0x3f48,0x17c));var _0x83f4=function(_0x367fd9,_0x3cd02e){_0x367fd9=_0x367fd9-0x0;var _0x92b81=_0x3f48[_0x367fd9];return _0x92b81;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x83f4('0x0'));var timeout=require(_0x83f4('0x1'));var express=require(_0x83f4('0x2'));var router=express[_0x83f4('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x83f4('0x4'));var interaction=require(_0x83f4('0x5'));var config=require('../../config/environment');var controller=require(_0x83f4('0x6'));router['get']('/',auth[_0x83f4('0x7')](),controller[_0x83f4('0x8')]);router[_0x83f4('0x9')](_0x83f4('0xa'),auth[_0x83f4('0x7')](),controller[_0x83f4('0xb')]);router[_0x83f4('0xc')]('/',auth[_0x83f4('0x7')](),controller['create']);router[_0x83f4('0xd')](_0x83f4('0xa'),auth[_0x83f4('0x7')](),controller['update']);router['delete']('/:id',auth[_0x83f4('0x7')](),controller[_0x83f4('0xe')]);module[_0x83f4('0xf')]=router;