27e051cf41845974ff56b22e3483c3488303d27f
[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 _0xde80=['destroy','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cannedAnswer.controller','isAuthenticated','index','/:id','show','create','update','delete'];(function(_0x5ba5e3,_0x5dd00d){var _0x293e9a=function(_0x44b40b){while(--_0x44b40b){_0x5ba5e3['push'](_0x5ba5e3['shift']());}};_0x293e9a(++_0x5dd00d);}(_0xde80,0x1ca));var _0x0de8=function(_0x8f6fa5,_0x320980){_0x8f6fa5=_0x8f6fa5-0x0;var _0x2e1201=_0xde80[_0x8f6fa5];return _0x2e1201;};'use strict';var multer=require(_0x0de8('0x0'));var util=require(_0x0de8('0x1'));var path=require(_0x0de8('0x2'));var timeout=require(_0x0de8('0x3'));var express=require('express');var router=express[_0x0de8('0x4')]();var fs_extra=require(_0x0de8('0x5'));var auth=require(_0x0de8('0x6'));var interaction=require(_0x0de8('0x7'));var config=require(_0x0de8('0x8'));var controller=require(_0x0de8('0x9'));router['get']('/',auth[_0x0de8('0xa')](),controller[_0x0de8('0xb')]);router['get'](_0x0de8('0xc'),auth['isAuthenticated'](),controller[_0x0de8('0xd')]);router['post']('/',auth[_0x0de8('0xa')](),controller[_0x0de8('0xe')]);router['put'](_0x0de8('0xc'),auth[_0x0de8('0xa')](),controller[_0x0de8('0xf')]);router[_0x0de8('0x10')]('/:id',auth[_0x0de8('0xa')](),controller[_0x0de8('0x11')]);module[_0x0de8('0x12')]=router;