Built motion from commit 753c950e.|2.5.42
[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 _0xb669=['exports','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./cannedAnswer.controller','get','isAuthenticated','index','create','/:id','update','destroy'];(function(_0x45d879,_0x4e1f98){var _0x4241b9=function(_0x4e823d){while(--_0x4e823d){_0x45d879['push'](_0x45d879['shift']());}};_0x4241b9(++_0x4e1f98);}(_0xb669,0x89));var _0x9b66=function(_0x31bfe0,_0x2fe2bb){_0x31bfe0=_0x31bfe0-0x0;var _0x87bd7d=_0xb669[_0x31bfe0];return _0x87bd7d;};'use strict';var multer=require(_0x9b66('0x0'));var util=require(_0x9b66('0x1'));var path=require(_0x9b66('0x2'));var timeout=require(_0x9b66('0x3'));var express=require(_0x9b66('0x4'));var router=express[_0x9b66('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x9b66('0x6'));var config=require(_0x9b66('0x7'));var controller=require(_0x9b66('0x8'));router[_0x9b66('0x9')]('/',auth[_0x9b66('0xa')](),controller[_0x9b66('0xb')]);router[_0x9b66('0x9')]('/:id',auth[_0x9b66('0xa')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller[_0x9b66('0xc')]);router['put'](_0x9b66('0xd'),auth[_0x9b66('0xa')](),controller[_0x9b66('0xe')]);router['delete'](_0x9b66('0xd'),auth['isAuthenticated'](),controller[_0x9b66('0xf')]);module[_0x9b66('0x10')]=router;