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 _0x09e5=['update','destroy','exports','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cannedAnswer.controller','isAuthenticated','index','/:id','show','post','put'];(function(_0x5dd62e,_0x516467){var _0x3b3e80=function(_0x54cc40){while(--_0x54cc40){_0x5dd62e['push'](_0x5dd62e['shift']());}};_0x3b3e80(++_0x516467);}(_0x09e5,0xb7));var _0x509e=function(_0x508305,_0x2be79a){_0x508305=_0x508305-0x0;var _0x240979=_0x09e5[_0x508305];return _0x240979;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0x509e('0x0'));var router=express[_0x509e('0x1')]();var auth=require(_0x509e('0x2'));var interaction=require(_0x509e('0x3'));var config=require(_0x509e('0x4'));var controller=require(_0x509e('0x5'));router['get']('/',auth[_0x509e('0x6')](),controller[_0x509e('0x7')]);router['get'](_0x509e('0x8'),auth['isAuthenticated'](),controller[_0x509e('0x9')]);router[_0x509e('0xa')]('/',auth[_0x509e('0x6')](),controller['create']);router[_0x509e('0xb')](_0x509e('0x8'),auth[_0x509e('0x6')](),controller[_0x509e('0xc')]);router['delete'](_0x509e('0x8'),auth[_0x509e('0x6')](),controller[_0x509e('0xd')]);module[_0x509e('0xe')]=router;