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 _0x3002=['fs-extra','../../components/auth/service','../../config/environment','./cannedAnswer.controller','/:id','isAuthenticated','show','post','update','delete','destroy','exports','multer','util','path','connect-timeout','express'];(function(_0x33fdb7,_0x1582b3){var _0xdd55dd=function(_0x48a3e3){while(--_0x48a3e3){_0x33fdb7['push'](_0x33fdb7['shift']());}};_0xdd55dd(++_0x1582b3);}(_0x3002,0x193));var _0x2300=function(_0x14a28d,_0x37e7c3){_0x14a28d=_0x14a28d-0x0;var _0x5e5336=_0x3002[_0x14a28d];return _0x5e5336;};'use strict';var multer=require(_0x2300('0x0'));var util=require(_0x2300('0x1'));var path=require(_0x2300('0x2'));var timeout=require(_0x2300('0x3'));var express=require(_0x2300('0x4'));var router=express['Router']();var fs_extra=require(_0x2300('0x5'));var auth=require(_0x2300('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x2300('0x7'));var controller=require(_0x2300('0x8'));router['get']('/',auth['isAuthenticated'](),controller['index']);router['get'](_0x2300('0x9'),auth[_0x2300('0xa')](),controller[_0x2300('0xb')]);router[_0x2300('0xc')]('/',auth[_0x2300('0xa')](),controller['create']);router['put'](_0x2300('0x9'),auth[_0x2300('0xa')](),controller[_0x2300('0xd')]);router[_0x2300('0xe')](_0x2300('0x9'),auth[_0x2300('0xa')](),controller[_0x2300('0xf')]);module[_0x2300('0x10')]=router;