7fdd3ae1e0fc00f34b14f7d65eb0d136599bd28c
[motion2.git] / server / api / cannedAnswer / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x952a=['exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./cannedAnswer.controller','get','isAuthenticated','index','/:id','post','put','delete'];(function(_0x3f68d6,_0x4a275a){var _0x443ade=function(_0x574ce3){while(--_0x574ce3){_0x3f68d6['push'](_0x3f68d6['shift']());}};_0x443ade(++_0x4a275a);}(_0x952a,0x1b1));var _0xa952=function(_0x889929,_0xd4d248){_0x889929=_0x889929-0x0;var _0x33b915=_0x952a[_0x889929];return _0x33b915;};'use strict';var multer=require(_0xa952('0x0'));var util=require(_0xa952('0x1'));var path=require('path');var timeout=require(_0xa952('0x2'));var express=require(_0xa952('0x3'));var router=express[_0xa952('0x4')]();var auth=require(_0xa952('0x5'));var interaction=require(_0xa952('0x6'));var config=require('../../config/environment');var controller=require(_0xa952('0x7'));router[_0xa952('0x8')]('/',auth[_0xa952('0x9')](),controller[_0xa952('0xa')]);router[_0xa952('0x8')](_0xa952('0xb'),auth['isAuthenticated'](),controller['show']);router[_0xa952('0xc')]('/',auth['isAuthenticated'](),controller['create']);router[_0xa952('0xd')]('/:id',auth['isAuthenticated'](),controller['update']);router[_0xa952('0xe')]('/:id',auth[_0xa952('0x9')](),controller['destroy']);module[_0xa952('0xf')]=router;