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 _0x1b43=['Router','../../components/auth/service','../../components/interaction/service','./cannedAnswer.controller','get','isAuthenticated','index','show','post','create','put','/:id','delete','exports','multer','util','path','connect-timeout'];(function(_0x45241a,_0x2c0bd8){var _0x2f806f=function(_0x4fe938){while(--_0x4fe938){_0x45241a['push'](_0x45241a['shift']());}};_0x2f806f(++_0x2c0bd8);}(_0x1b43,0x19a));var _0x31b4=function(_0x21aec3,_0x5c97e9){_0x21aec3=_0x21aec3-0x0;var _0x288bbc=_0x1b43[_0x21aec3];return _0x288bbc;};'use strict';var multer=require(_0x31b4('0x0'));var util=require(_0x31b4('0x1'));var path=require(_0x31b4('0x2'));var timeout=require(_0x31b4('0x3'));var express=require('express');var router=express[_0x31b4('0x4')]();var auth=require(_0x31b4('0x5'));var interaction=require(_0x31b4('0x6'));var config=require('../../config/environment');var controller=require(_0x31b4('0x7'));router[_0x31b4('0x8')]('/',auth[_0x31b4('0x9')](),controller[_0x31b4('0xa')]);router[_0x31b4('0x8')]('/:id',auth['isAuthenticated'](),controller[_0x31b4('0xb')]);router[_0x31b4('0xc')]('/',auth[_0x31b4('0x9')](),controller[_0x31b4('0xd')]);router[_0x31b4('0xe')](_0x31b4('0xf'),auth[_0x31b4('0x9')](),controller['update']);router[_0x31b4('0x10')]('/:id',auth[_0x31b4('0x9')](),controller['destroy']);module[_0x31b4('0x11')]=router;