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 _0xa79d=['put','update','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/:id','show','post'];(function(_0x1d219c,_0x50820a){var _0x3d9fde=function(_0x2e5b62){while(--_0x2e5b62){_0x1d219c['push'](_0x1d219c['shift']());}};_0x3d9fde(++_0x50820a);}(_0xa79d,0xfb));var _0xda79=function(_0x2c21ce,_0x5e6471){_0x2c21ce=_0x2c21ce-0x0;var _0x32095c=_0xa79d[_0x2c21ce];return _0x32095c;};'use strict';var multer=require(_0xda79('0x0'));var util=require(_0xda79('0x1'));var path=require(_0xda79('0x2'));var timeout=require(_0xda79('0x3'));var express=require(_0xda79('0x4'));var router=express[_0xda79('0x5')]();var fs_extra=require(_0xda79('0x6'));var auth=require(_0xda79('0x7'));var interaction=require(_0xda79('0x8'));var config=require(_0xda79('0x9'));var controller=require('./cannedAnswer.controller');router[_0xda79('0xa')]('/',auth[_0xda79('0xb')](),controller['index']);router[_0xda79('0xa')](_0xda79('0xc'),auth[_0xda79('0xb')](),controller[_0xda79('0xd')]);router[_0xda79('0xe')]('/',auth[_0xda79('0xb')](),controller['create']);router[_0xda79('0xf')](_0xda79('0xc'),auth[_0xda79('0xb')](),controller[_0xda79('0x10')]);router['delete'](_0xda79('0xc'),auth[_0xda79('0xb')](),controller[_0xda79('0x11')]);module[_0xda79('0x12')]=router;