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 _0x5aa7=['exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./cannedAnswer.controller','get','isAuthenticated','index','/:id','post','put','destroy'];(function(_0x1a32bb,_0x41f6cb){var _0x59a6b5=function(_0x5ea97e){while(--_0x5ea97e){_0x1a32bb['push'](_0x1a32bb['shift']());}};_0x59a6b5(++_0x41f6cb);}(_0x5aa7,0x131));var _0x75aa=function(_0xc024f0,_0x2c1005){_0xc024f0=_0xc024f0-0x0;var _0x45a2a1=_0x5aa7[_0xc024f0];return _0x45a2a1;};'use strict';var multer=require(_0x75aa('0x0'));var util=require(_0x75aa('0x1'));var path=require('path');var timeout=require(_0x75aa('0x2'));var express=require(_0x75aa('0x3'));var router=express[_0x75aa('0x4')]();var auth=require(_0x75aa('0x5'));var interaction=require(_0x75aa('0x6'));var config=require('../../config/environment');var controller=require(_0x75aa('0x7'));router[_0x75aa('0x8')]('/',auth[_0x75aa('0x9')](),controller[_0x75aa('0xa')]);router[_0x75aa('0x8')](_0x75aa('0xb'),auth[_0x75aa('0x9')](),controller['show']);router[_0x75aa('0xc')]('/',auth[_0x75aa('0x9')](),controller['create']);router[_0x75aa('0xd')](_0x75aa('0xb'),auth[_0x75aa('0x9')](),controller['update']);router['delete'](_0x75aa('0xb'),auth[_0x75aa('0x9')](),controller[_0x75aa('0xe')]);module[_0x75aa('0xf')]=router;