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 _0xe885=['fs-extra','../../components/interaction/service','../../config/environment','get','index','/:id','isAuthenticated','show','post','put','update','destroy','path','express'];(function(_0x9a8f1,_0x559257){var _0x4acfc=function(_0x653180){while(--_0x653180){_0x9a8f1['push'](_0x9a8f1['shift']());}};_0x4acfc(++_0x559257);}(_0xe885,0x7c));var _0x5e88=function(_0x5175df,_0x12b843){_0x5175df=_0x5175df-0x0;var _0x1e1c5e=_0xe885[_0x5175df];return _0x1e1c5e;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x5e88('0x0'));var timeout=require('connect-timeout');var express=require(_0x5e88('0x1'));var router=express['Router']();var fs_extra=require(_0x5e88('0x2'));var auth=require('../../components/auth/service');var interaction=require(_0x5e88('0x3'));var config=require(_0x5e88('0x4'));var controller=require('./cannedAnswer.controller');router[_0x5e88('0x5')]('/',auth['isAuthenticated'](),controller[_0x5e88('0x6')]);router[_0x5e88('0x5')](_0x5e88('0x7'),auth[_0x5e88('0x8')](),controller[_0x5e88('0x9')]);router[_0x5e88('0xa')]('/',auth['isAuthenticated'](),controller['create']);router[_0x5e88('0xb')](_0x5e88('0x7'),auth[_0x5e88('0x8')](),controller[_0x5e88('0xc')]);router['delete'](_0x5e88('0x7'),auth['isAuthenticated'](),controller[_0x5e88('0xd')]);module['exports']=router;