184576112e4d5ed2392b7b5296f15175fa2f461d
[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 _0x8e97=['../../components/auth/service','../../components/interaction/service','./action.controller','put','isAuthenticated','delete','/:id','exports','util','connect-timeout','express','Router','fs-extra'];(function(_0x405380,_0x4854a6){var _0xa01329=function(_0x2e75bd){while(--_0x2e75bd){_0x405380['push'](_0x405380['shift']());}};_0xa01329(++_0x4854a6);}(_0x8e97,0x167));var _0x78e9=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x8e97[_0x321bb2];return _0x9c12ed;};'use strict';var multer=require('multer');var util=require(_0x78e9('0x0'));var path=require('path');var timeout=require(_0x78e9('0x1'));var express=require(_0x78e9('0x2'));var router=express[_0x78e9('0x3')]();var fs_extra=require(_0x78e9('0x4'));var auth=require(_0x78e9('0x5'));var interaction=require(_0x78e9('0x6'));var config=require('../../config/environment');var controller=require(_0x78e9('0x7'));router[_0x78e9('0x8')]('/:id',auth[_0x78e9('0x9')](),controller['update']);router[_0x78e9('0xa')](_0x78e9('0xb'),auth[_0x78e9('0x9')](),controller['destroy']);module[_0x78e9('0xc')]=router;