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 _0xfbc2=['../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/:id','create','put','update','delete','exports','multer','util','connect-timeout','express','fs-extra'];(function(_0x3697c8,_0x18478e){var _0x3ef75a=function(_0x46012a){while(--_0x46012a){_0x3697c8['push'](_0x3697c8['shift']());}};_0x3ef75a(++_0x18478e);}(_0xfbc2,0x10b));var _0x2fbc=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xfbc2[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x2fbc('0x0'));var util=require(_0x2fbc('0x1'));var path=require('path');var timeout=require(_0x2fbc('0x2'));var express=require(_0x2fbc('0x3'));var router=express['Router']();var fs_extra=require(_0x2fbc('0x4'));var auth=require(_0x2fbc('0x5'));var interaction=require(_0x2fbc('0x6'));var config=require(_0x2fbc('0x7'));var controller=require('./cannedAnswer.controller');router[_0x2fbc('0x8')]('/',auth[_0x2fbc('0x9')](),controller['index']);router[_0x2fbc('0x8')](_0x2fbc('0xa'),auth[_0x2fbc('0x9')](),controller['show']);router['post']('/',auth[_0x2fbc('0x9')](),controller[_0x2fbc('0xb')]);router[_0x2fbc('0xc')](_0x2fbc('0xa'),auth[_0x2fbc('0x9')](),controller[_0x2fbc('0xd')]);router[_0x2fbc('0xe')](_0x2fbc('0xa'),auth[_0x2fbc('0x9')](),controller['destroy']);module[_0x2fbc('0xf')]=router;