Built motion from commit (unavailable).|2.4.21
[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 _0x9d67=['get','isAuthenticated','index','/:id','show','post','put','update','delete','destroy','exports','multer','util','Router','../../components/interaction/service','../../config/environment','./cannedAnswer.controller'];(function(_0x1a3dbd,_0x542237){var _0x45cb6e=function(_0x49ca85){while(--_0x49ca85){_0x1a3dbd['push'](_0x1a3dbd['shift']());}};_0x45cb6e(++_0x542237);}(_0x9d67,0xe8));var _0x79d6=function(_0x345957,_0x109240){_0x345957=_0x345957-0x0;var _0x3107e5=_0x9d67[_0x345957];return _0x3107e5;};'use strict';var multer=require(_0x79d6('0x0'));var util=require(_0x79d6('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x79d6('0x2')]();var auth=require('../../components/auth/service');var interaction=require(_0x79d6('0x3'));var config=require(_0x79d6('0x4'));var controller=require(_0x79d6('0x5'));router[_0x79d6('0x6')]('/',auth[_0x79d6('0x7')](),controller[_0x79d6('0x8')]);router['get'](_0x79d6('0x9'),auth[_0x79d6('0x7')](),controller[_0x79d6('0xa')]);router[_0x79d6('0xb')]('/',auth['isAuthenticated'](),controller['create']);router[_0x79d6('0xc')](_0x79d6('0x9'),auth['isAuthenticated'](),controller[_0x79d6('0xd')]);router[_0x79d6('0xe')](_0x79d6('0x9'),auth['isAuthenticated'](),controller[_0x79d6('0xf')]);module[_0x79d6('0x10')]=router;