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