ab0aa8a1e254ec8ec967d5e6bbe56ec471e66f34
[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 _0x151b=['../../config/environment','./cannedAnswer.controller','get','isAuthenticated','index','/:id','show','post','create','update','delete','destroy','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x32d457,_0x1a39c9){var _0x338386=function(_0x199d7a){while(--_0x199d7a){_0x32d457['push'](_0x32d457['shift']());}};_0x338386(++_0x1a39c9);}(_0x151b,0x19c));var _0xb151=function(_0x1620e1,_0x27b16b){_0x1620e1=_0x1620e1-0x0;var _0x24c546=_0x151b[_0x1620e1];return _0x24c546;};'use strict';var multer=require(_0xb151('0x0'));var util=require(_0xb151('0x1'));var path=require(_0xb151('0x2'));var timeout=require('connect-timeout');var express=require(_0xb151('0x3'));var router=express[_0xb151('0x4')]();var fs_extra=require(_0xb151('0x5'));var auth=require(_0xb151('0x6'));var interaction=require(_0xb151('0x7'));var config=require(_0xb151('0x8'));var controller=require(_0xb151('0x9'));router[_0xb151('0xa')]('/',auth[_0xb151('0xb')](),controller[_0xb151('0xc')]);router['get'](_0xb151('0xd'),auth['isAuthenticated'](),controller[_0xb151('0xe')]);router[_0xb151('0xf')]('/',auth[_0xb151('0xb')](),controller[_0xb151('0x10')]);router['put']('/:id',auth[_0xb151('0xb')](),controller[_0xb151('0x11')]);router[_0xb151('0x12')](_0xb151('0xd'),auth['isAuthenticated'](),controller[_0xb151('0x13')]);module[_0xb151('0x14')]=router;