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 _0x4a74=['isAuthenticated','index','post','create','put','/:id','update','exports','multer','path','connect-timeout','express','Router','../../config/environment','./cannedAnswer.controller','get'];(function(_0x2513f0,_0x3298f5){var _0x235adf=function(_0x56667f){while(--_0x56667f){_0x2513f0['push'](_0x2513f0['shift']());}};_0x235adf(++_0x3298f5);}(_0x4a74,0x158));var _0x44a7=function(_0x1f69a0,_0x561598){_0x1f69a0=_0x1f69a0-0x0;var _0x14ce9e=_0x4a74[_0x1f69a0];return _0x14ce9e;};'use strict';var multer=require(_0x44a7('0x0'));var util=require('util');var path=require(_0x44a7('0x1'));var timeout=require(_0x44a7('0x2'));var express=require(_0x44a7('0x3'));var router=express[_0x44a7('0x4')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x44a7('0x5'));var controller=require(_0x44a7('0x6'));router[_0x44a7('0x7')]('/',auth[_0x44a7('0x8')](),controller[_0x44a7('0x9')]);router[_0x44a7('0x7')]('/:id',auth[_0x44a7('0x8')](),controller['show']);router[_0x44a7('0xa')]('/',auth[_0x44a7('0x8')](),controller[_0x44a7('0xb')]);router[_0x44a7('0xc')](_0x44a7('0xd'),auth[_0x44a7('0x8')](),controller[_0x44a7('0xe')]);router['delete']('/:id',auth[_0x44a7('0x8')](),controller['destroy']);module[_0x44a7('0xf')]=router;