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 _0xf78b=['isAuthenticated','index','get','/:id','show','post','put','update','delete','exports','util','path','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./cannedAnswer.controller'];(function(_0x2d2c63,_0x5a661d){var _0x16e3e7=function(_0x36d501){while(--_0x36d501){_0x2d2c63['push'](_0x2d2c63['shift']());}};_0x16e3e7(++_0x5a661d);}(_0xf78b,0xe2));var _0xbf78=function(_0xd196ba,_0x3bebf4){_0xd196ba=_0xd196ba-0x0;var _0x39419e=_0xf78b[_0xd196ba];return _0x39419e;};'use strict';var multer=require('multer');var util=require(_0xbf78('0x0'));var path=require(_0xbf78('0x1'));var timeout=require('connect-timeout');var express=require(_0xbf78('0x2'));var router=express[_0xbf78('0x3')]();var fs_extra=require(_0xbf78('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xbf78('0x5'));var config=require(_0xbf78('0x6'));var controller=require(_0xbf78('0x7'));router['get']('/',auth[_0xbf78('0x8')](),controller[_0xbf78('0x9')]);router[_0xbf78('0xa')](_0xbf78('0xb'),auth[_0xbf78('0x8')](),controller[_0xbf78('0xc')]);router[_0xbf78('0xd')]('/',auth[_0xbf78('0x8')](),controller['create']);router[_0xbf78('0xe')](_0xbf78('0xb'),auth[_0xbf78('0x8')](),controller[_0xbf78('0xf')]);router[_0xbf78('0x10')]('/:id',auth[_0xbf78('0x8')](),controller['destroy']);module[_0xbf78('0x11')]=router;