626452e0628671ac7647a12513436772f44de9f4
[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 _0x7afa=['path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cannedAnswer.controller','get','/:id','isAuthenticated','show','post','put','update','exports','multer','util'];(function(_0x719af9,_0x3dea59){var _0x3029f7=function(_0x180931){while(--_0x180931){_0x719af9['push'](_0x719af9['shift']());}};_0x3029f7(++_0x3dea59);}(_0x7afa,0x1eb));var _0xa7af=function(_0x3c6112,_0x949d82){_0x3c6112=_0x3c6112-0x0;var _0xf99be=_0x7afa[_0x3c6112];return _0xf99be;};'use strict';var multer=require(_0xa7af('0x0'));var util=require(_0xa7af('0x1'));var path=require(_0xa7af('0x2'));var timeout=require('connect-timeout');var express=require(_0xa7af('0x3'));var router=express[_0xa7af('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xa7af('0x5'));var interaction=require(_0xa7af('0x6'));var config=require(_0xa7af('0x7'));var controller=require(_0xa7af('0x8'));router[_0xa7af('0x9')]('/',auth['isAuthenticated'](),controller['index']);router['get'](_0xa7af('0xa'),auth[_0xa7af('0xb')](),controller[_0xa7af('0xc')]);router[_0xa7af('0xd')]('/',auth['isAuthenticated'](),controller['create']);router[_0xa7af('0xe')]('/:id',auth[_0xa7af('0xb')](),controller[_0xa7af('0xf')]);router['delete']('/:id',auth[_0xa7af('0xb')](),controller['destroy']);module[_0xa7af('0x10')]=router;