Built motion from commit (unavailable).|2.5.17
[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 _0x3b2e=['post','create','put','delete','destroy','exports','multer','util','path','express','Router','../../components/interaction/service','../../config/environment','get','/:id','isAuthenticated'];(function(_0x479722,_0x231cef){var _0x2310fe=function(_0xd96529){while(--_0xd96529){_0x479722['push'](_0x479722['shift']());}};_0x2310fe(++_0x231cef);}(_0x3b2e,0xf6));var _0xe3b2=function(_0x178668,_0x1ec300){_0x178668=_0x178668-0x0;var _0x26107d=_0x3b2e[_0x178668];return _0x26107d;};'use strict';var multer=require(_0xe3b2('0x0'));var util=require(_0xe3b2('0x1'));var path=require(_0xe3b2('0x2'));var timeout=require('connect-timeout');var express=require(_0xe3b2('0x3'));var router=express[_0xe3b2('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xe3b2('0x5'));var config=require(_0xe3b2('0x6'));var controller=require('./cannedAnswer.controller');router[_0xe3b2('0x7')]('/',auth['isAuthenticated'](),controller['index']);router[_0xe3b2('0x7')](_0xe3b2('0x8'),auth[_0xe3b2('0x9')](),controller['show']);router[_0xe3b2('0xa')]('/',auth['isAuthenticated'](),controller[_0xe3b2('0xb')]);router[_0xe3b2('0xc')](_0xe3b2('0x8'),auth[_0xe3b2('0x9')](),controller['update']);router[_0xe3b2('0xd')](_0xe3b2('0x8'),auth[_0xe3b2('0x9')](),controller[_0xe3b2('0xe')]);module[_0xe3b2('0xf')]=router;