4e90186d57682ef097f1be653bfb8a08fd97bc26
[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 _0x2b82=['util','express','fs-extra','./cannedAnswer.controller','get','isAuthenticated','/:id','show','create','put','delete','destroy','exports','multer'];(function(_0x566d9d,_0x1884f9){var _0x479385=function(_0x60f08f){while(--_0x60f08f){_0x566d9d['push'](_0x566d9d['shift']());}};_0x479385(++_0x1884f9);}(_0x2b82,0x1bf));var _0x22b8=function(_0x530525,_0x7e14ec){_0x530525=_0x530525-0x0;var _0x41a015=_0x2b82[_0x530525];return _0x41a015;};'use strict';var multer=require(_0x22b8('0x0'));var util=require(_0x22b8('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x22b8('0x2'));var router=express['Router']();var fs_extra=require(_0x22b8('0x3'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x22b8('0x4'));router[_0x22b8('0x5')]('/',auth[_0x22b8('0x6')](),controller['index']);router['get'](_0x22b8('0x7'),auth[_0x22b8('0x6')](),controller[_0x22b8('0x8')]);router['post']('/',auth[_0x22b8('0x6')](),controller[_0x22b8('0x9')]);router[_0x22b8('0xa')]('/:id',auth[_0x22b8('0x6')](),controller['update']);router[_0x22b8('0xb')]('/:id',auth[_0x22b8('0x6')](),controller[_0x22b8('0xc')]);module[_0x22b8('0xd')]=router;