Built motion from commit 3c2ce842.|2.6.31
[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 _0xf066=['connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','index','/:id','isAuthenticated','post','create','put','exports','multer','util'];(function(_0x2dd849,_0x3bd1bf){var _0x38ba4e=function(_0xd89ddc){while(--_0xd89ddc){_0x2dd849['push'](_0x2dd849['shift']());}};_0x38ba4e(++_0x3bd1bf);}(_0xf066,0x175));var _0x6f06=function(_0x1e11c2,_0x1bcbca){_0x1e11c2=_0x1e11c2-0x0;var _0x4faa44=_0xf066[_0x1e11c2];return _0x4faa44;};'use strict';var multer=require(_0x6f06('0x0'));var util=require(_0x6f06('0x1'));var path=require('path');var timeout=require(_0x6f06('0x2'));var express=require(_0x6f06('0x3'));var router=express[_0x6f06('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x6f06('0x5'));var interaction=require(_0x6f06('0x6'));var config=require(_0x6f06('0x7'));var controller=require('./cannedAnswer.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x6f06('0x8')]);router['get'](_0x6f06('0x9'),auth[_0x6f06('0xa')](),controller['show']);router[_0x6f06('0xb')]('/',auth[_0x6f06('0xa')](),controller[_0x6f06('0xc')]);router[_0x6f06('0xd')](_0x6f06('0x9'),auth[_0x6f06('0xa')](),controller['update']);router['delete'](_0x6f06('0x9'),auth[_0x6f06('0xa')](),controller['destroy']);module[_0x6f06('0xe')]=router;