b79e94f8e9b8dbac9a76954a02fd75b8d4fe3258
[motion2.git] / server / api / action / 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 _0xf0d0=['delete','exports','multer','path','connect-timeout','Router','../../components/interaction/service','../../config/environment','./action.controller','/:id','isAuthenticated','update'];(function(_0x19950b,_0x53d0d7){var _0x3c6b41=function(_0x3924ad){while(--_0x3924ad){_0x19950b['push'](_0x19950b['shift']());}};_0x3c6b41(++_0x53d0d7);}(_0xf0d0,0x1e2));var _0x0f0d=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0xf0d0[_0x321bb2];return _0x9c12ed;};'use strict';var multer=require(_0x0f0d('0x0'));var util=require('util');var path=require(_0x0f0d('0x1'));var timeout=require(_0x0f0d('0x2'));var express=require('express');var router=express[_0x0f0d('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x0f0d('0x4'));var config=require(_0x0f0d('0x5'));var controller=require(_0x0f0d('0x6'));router['put'](_0x0f0d('0x7'),auth[_0x0f0d('0x8')](),controller[_0x0f0d('0x9')]);router[_0x0f0d('0xa')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0x0f0d('0xb')]=router;