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 _0x510b=['get','isAuthenticated','/:id','show','post','create','put','update','delete','destroy','exports','multer','util','path','connect-timeout','../../components/interaction/service','./cannedAnswer.controller'];(function(_0x1ec77c,_0x2454b6){var _0x2cfc61=function(_0x4f8a1f){while(--_0x4f8a1f){_0x1ec77c['push'](_0x1ec77c['shift']());}};_0x2cfc61(++_0x2454b6);}(_0x510b,0x14e));var _0xb510=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x510b[_0x14add3];return _0x4a174f;};'use strict';var multer=require(_0xb510('0x0'));var util=require(_0xb510('0x1'));var path=require(_0xb510('0x2'));var timeout=require(_0xb510('0x3'));var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xb510('0x4'));var config=require('../../config/environment');var controller=require(_0xb510('0x5'));router[_0xb510('0x6')]('/',auth[_0xb510('0x7')](),controller['index']);router[_0xb510('0x6')](_0xb510('0x8'),auth['isAuthenticated'](),controller[_0xb510('0x9')]);router[_0xb510('0xa')]('/',auth['isAuthenticated'](),controller[_0xb510('0xb')]);router[_0xb510('0xc')](_0xb510('0x8'),auth[_0xb510('0x7')](),controller[_0xb510('0xd')]);router[_0xb510('0xe')]('/:id',auth[_0xb510('0x7')](),controller[_0xb510('0xf')]);module[_0xb510('0x10')]=router;