Built motion from commit 19a84241.|2.5.34
[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 _0xbbf4=['post','put','update','destroy','exports','multer','util','path','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cannedAnswer.controller','isAuthenticated','index','/:id','show'];(function(_0x4154a5,_0x551b95){var _0x42ce0d=function(_0x3f5b26){while(--_0x3f5b26){_0x4154a5['push'](_0x4154a5['shift']());}};_0x42ce0d(++_0x551b95);}(_0xbbf4,0x16d));var _0x4bbf=function(_0x49870b,_0x375471){_0x49870b=_0x49870b-0x0;var _0x1e767e=_0xbbf4[_0x49870b];return _0x1e767e;};'use strict';var multer=require(_0x4bbf('0x0'));var util=require(_0x4bbf('0x1'));var path=require(_0x4bbf('0x2'));var timeout=require(_0x4bbf('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x4bbf('0x4'));var auth=require(_0x4bbf('0x5'));var interaction=require(_0x4bbf('0x6'));var config=require(_0x4bbf('0x7'));var controller=require(_0x4bbf('0x8'));router['get']('/',auth[_0x4bbf('0x9')](),controller[_0x4bbf('0xa')]);router['get'](_0x4bbf('0xb'),auth['isAuthenticated'](),controller[_0x4bbf('0xc')]);router[_0x4bbf('0xd')]('/',auth['isAuthenticated'](),controller['create']);router[_0x4bbf('0xe')]('/:id',auth[_0x4bbf('0x9')](),controller[_0x4bbf('0xf')]);router['delete'](_0x4bbf('0xb'),auth['isAuthenticated'](),controller[_0x4bbf('0x10')]);module[_0x4bbf('0x11')]=router;