Built motion from commit (unavailable).|2.4.4
[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 _0x74c9=['multer','util','path','connect-timeout','express','../../components/interaction/service','../../config/environment','isAuthenticated','index','/:id','post','put','update','delete','destroy','exports'];(function(_0x166d93,_0x301f09){var _0xba708=function(_0x349bf7){while(--_0x349bf7){_0x166d93['push'](_0x166d93['shift']());}};_0xba708(++_0x301f09);}(_0x74c9,0xb0));var _0x974c=function(_0x5f18f2,_0x212d51){_0x5f18f2=_0x5f18f2-0x0;var _0x1097a0=_0x74c9[_0x5f18f2];return _0x1097a0;};'use strict';var multer=require(_0x974c('0x0'));var util=require(_0x974c('0x1'));var path=require(_0x974c('0x2'));var timeout=require(_0x974c('0x3'));var express=require(_0x974c('0x4'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x974c('0x5'));var config=require(_0x974c('0x6'));var controller=require('./cannedAnswer.controller');router['get']('/',auth[_0x974c('0x7')](),controller[_0x974c('0x8')]);router['get'](_0x974c('0x9'),auth[_0x974c('0x7')](),controller['show']);router[_0x974c('0xa')]('/',auth['isAuthenticated'](),controller['create']);router[_0x974c('0xb')](_0x974c('0x9'),auth[_0x974c('0x7')](),controller[_0x974c('0xc')]);router[_0x974c('0xd')](_0x974c('0x9'),auth['isAuthenticated'](),controller[_0x974c('0xe')]);module[_0x974c('0xf')]=router;