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 _0x5f65=['isAuthenticated','index','get','/:id','show','create','delete','destroy','multer','connect-timeout','../../config/environment','./cannedAnswer.controller'];(function(_0x1b7ce6,_0x70973f){var _0x1c3b89=function(_0x1e9a4e){while(--_0x1e9a4e){_0x1b7ce6['push'](_0x1b7ce6['shift']());}};_0x1c3b89(++_0x70973f);}(_0x5f65,0xbc));var _0x55f6=function(_0x1fd675,_0x165dfe){_0x1fd675=_0x1fd675-0x0;var _0x16b554=_0x5f65[_0x1fd675];return _0x16b554;};'use strict';var multer=require(_0x55f6('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x55f6('0x1'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x55f6('0x2'));var controller=require(_0x55f6('0x3'));router['get']('/',auth[_0x55f6('0x4')](),controller[_0x55f6('0x5')]);router[_0x55f6('0x6')](_0x55f6('0x7'),auth['isAuthenticated'](),controller[_0x55f6('0x8')]);router['post']('/',auth[_0x55f6('0x4')](),controller[_0x55f6('0x9')]);router['put']('/:id',auth[_0x55f6('0x4')](),controller['update']);router[_0x55f6('0xa')](_0x55f6('0x7'),auth[_0x55f6('0x4')](),controller[_0x55f6('0xb')]);module['exports']=router;