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 _0x3e1b=['../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','post','update','delete','destroy','multer','util','path','Router','fs-extra'];(function(_0x31a371,_0x50828e){var _0x2a5bd6=function(_0x2fb481){while(--_0x2fb481){_0x31a371['push'](_0x31a371['shift']());}};_0x2a5bd6(++_0x50828e);}(_0x3e1b,0xe9));var _0xb3e1=function(_0x59b62a,_0xeefd06){_0x59b62a=_0x59b62a-0x0;var _0x3594e0=_0x3e1b[_0x59b62a];return _0x3594e0;};'use strict';var multer=require(_0xb3e1('0x0'));var util=require(_0xb3e1('0x1'));var path=require(_0xb3e1('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xb3e1('0x3')]();var fs_extra=require(_0xb3e1('0x4'));var auth=require(_0xb3e1('0x5'));var interaction=require(_0xb3e1('0x6'));var config=require(_0xb3e1('0x7'));var controller=require('./cannedAnswer.controller');router[_0xb3e1('0x8')]('/',auth[_0xb3e1('0x9')](),controller[_0xb3e1('0xa')]);router['get'](_0xb3e1('0xb'),auth['isAuthenticated'](),controller[_0xb3e1('0xc')]);router[_0xb3e1('0xd')]('/',auth['isAuthenticated'](),controller['create']);router['put'](_0xb3e1('0xb'),auth[_0xb3e1('0x9')](),controller[_0xb3e1('0xe')]);router[_0xb3e1('0xf')]('/:id',auth[_0xb3e1('0x9')](),controller[_0xb3e1('0x10')]);module['exports']=router;