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