e88bf3dbfe899785667b479f1a029278c6c87c7e
[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 _0x1c2d=['express','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/:id','create','delete','destroy','exports','multer','util','connect-timeout'];(function(_0x3bc565,_0x1c9a3f){var _0x23ced3=function(_0x29dfa0){while(--_0x29dfa0){_0x3bc565['push'](_0x3bc565['shift']());}};_0x23ced3(++_0x1c9a3f);}(_0x1c2d,0x16d));var _0xd1c2=function(_0x3a34f2,_0x16d340){_0x3a34f2=_0x3a34f2-0x0;var _0x42847b=_0x1c2d[_0x3a34f2];return _0x42847b;};'use strict';var multer=require(_0xd1c2('0x0'));var util=require(_0xd1c2('0x1'));var path=require('path');var timeout=require(_0xd1c2('0x2'));var express=require(_0xd1c2('0x3'));var router=express[_0xd1c2('0x4')]();var fs_extra=require(_0xd1c2('0x5'));var auth=require(_0xd1c2('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xd1c2('0x7'));var controller=require('./cannedAnswer.controller');router[_0xd1c2('0x8')]('/',auth[_0xd1c2('0x9')](),controller[_0xd1c2('0xa')]);router['get'](_0xd1c2('0xb'),auth[_0xd1c2('0x9')](),controller['show']);router['post']('/',auth[_0xd1c2('0x9')](),controller[_0xd1c2('0xc')]);router['put'](_0xd1c2('0xb'),auth['isAuthenticated'](),controller['update']);router[_0xd1c2('0xd')](_0xd1c2('0xb'),auth[_0xd1c2('0x9')](),controller[_0xd1c2('0xe')]);module[_0xd1c2('0xf')]=router;