Built motion from commit (unavailable).|2.5.1
[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 _0x57b5=['../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','post','put','update','destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service'];(function(_0x44216d,_0x4938a7){var _0xeca523=function(_0x11faf1){while(--_0x11faf1){_0x44216d['push'](_0x44216d['shift']());}};_0xeca523(++_0x4938a7);}(_0x57b5,0x1bc));var _0x557b=function(_0x505df9,_0x14138e){_0x505df9=_0x505df9-0x0;var _0x1cc025=_0x57b5[_0x505df9];return _0x1cc025;};'use strict';var multer=require('multer');var util=require(_0x557b('0x0'));var path=require(_0x557b('0x1'));var timeout=require(_0x557b('0x2'));var express=require(_0x557b('0x3'));var router=express[_0x557b('0x4')]();var auth=require(_0x557b('0x5'));var interaction=require(_0x557b('0x6'));var config=require(_0x557b('0x7'));var controller=require('./cannedAnswer.controller');router[_0x557b('0x8')]('/',auth[_0x557b('0x9')](),controller[_0x557b('0xa')]);router[_0x557b('0x8')](_0x557b('0xb'),auth[_0x557b('0x9')](),controller[_0x557b('0xc')]);router[_0x557b('0xd')]('/',auth[_0x557b('0x9')](),controller['create']);router[_0x557b('0xe')](_0x557b('0xb'),auth['isAuthenticated'](),controller[_0x557b('0xf')]);router['delete'](_0x557b('0xb'),auth['isAuthenticated'](),controller[_0x557b('0x10')]);module[_0x557b('0x11')]=router;