Built motion from commit (unavailable).|2.5.3
[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 _0x2b5e=['create','put','delete','/:id','multer','util','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cannedAnswer.controller','get','index','show','isAuthenticated'];(function(_0x36085f,_0x1edd9d){var _0x354e2b=function(_0x279f6a){while(--_0x279f6a){_0x36085f['push'](_0x36085f['shift']());}};_0x354e2b(++_0x1edd9d);}(_0x2b5e,0xf4));var _0xe2b5=function(_0x4086f7,_0x5f35be){_0x4086f7=_0x4086f7-0x0;var _0x537053=_0x2b5e[_0x4086f7];return _0x537053;};'use strict';var multer=require(_0xe2b5('0x0'));var util=require(_0xe2b5('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xe2b5('0x2'));var router=express[_0xe2b5('0x3')]();var auth=require(_0xe2b5('0x4'));var interaction=require(_0xe2b5('0x5'));var config=require(_0xe2b5('0x6'));var controller=require(_0xe2b5('0x7'));router[_0xe2b5('0x8')]('/',auth['isAuthenticated'](),controller[_0xe2b5('0x9')]);router[_0xe2b5('0x8')]('/:id',auth['isAuthenticated'](),controller[_0xe2b5('0xa')]);router['post']('/',auth[_0xe2b5('0xb')](),controller[_0xe2b5('0xc')]);router[_0xe2b5('0xd')]('/:id',auth['isAuthenticated'](),controller['update']);router[_0xe2b5('0xe')](_0xe2b5('0xf'),auth[_0xe2b5('0xb')](),controller['destroy']);module['exports']=router;