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 _0xe40a=['../../components/interaction/service','../../config/environment','./cannedAnswer.controller','get','index','/:id','isAuthenticated','show','post','create','put','delete','destroy','exports','multer','util','path','../../components/auth/service'];(function(_0x1bc762,_0x523eb3){var _0x40f70c=function(_0x3c206e){while(--_0x3c206e){_0x1bc762['push'](_0x1bc762['shift']());}};_0x40f70c(++_0x523eb3);}(_0xe40a,0x140));var _0xae40=function(_0x2e835b,_0x337521){_0x2e835b=_0x2e835b-0x0;var _0x1749cb=_0xe40a[_0x2e835b];return _0x1749cb;};'use strict';var multer=require(_0xae40('0x0'));var util=require(_0xae40('0x1'));var path=require(_0xae40('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xae40('0x3'));var interaction=require(_0xae40('0x4'));var config=require(_0xae40('0x5'));var controller=require(_0xae40('0x6'));router[_0xae40('0x7')]('/',auth['isAuthenticated'](),controller[_0xae40('0x8')]);router[_0xae40('0x7')](_0xae40('0x9'),auth[_0xae40('0xa')](),controller[_0xae40('0xb')]);router[_0xae40('0xc')]('/',auth[_0xae40('0xa')](),controller[_0xae40('0xd')]);router[_0xae40('0xe')](_0xae40('0x9'),auth[_0xae40('0xa')](),controller['update']);router[_0xae40('0xf')](_0xae40('0x9'),auth[_0xae40('0xa')](),controller[_0xae40('0x10')]);module[_0xae40('0x11')]=router;