121e78773097fab06218d562f5853ae80da0b50f
[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 _0x8f57=['multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','put','/:id','isAuthenticated','update','destroy'];(function(_0x1b3e87,_0xd3706c){var _0x4a89e3=function(_0x1ded84){while(--_0x1ded84){_0x1b3e87['push'](_0x1b3e87['shift']());}};_0x4a89e3(++_0xd3706c);}(_0x8f57,0x16c));var _0x78f5=function(_0x89ee68,_0x18ca4d){_0x89ee68=_0x89ee68-0x0;var _0x1dfd3b=_0x8f57[_0x89ee68];return _0x1dfd3b;};'use strict';var multer=require(_0x78f5('0x0'));var util=require(_0x78f5('0x1'));var path=require('path');var timeout=require(_0x78f5('0x2'));var express=require(_0x78f5('0x3'));var router=express[_0x78f5('0x4')]();var fs_extra=require(_0x78f5('0x5'));var auth=require(_0x78f5('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x78f5('0x7'));var controller=require('./action.controller');router[_0x78f5('0x8')](_0x78f5('0x9'),auth[_0x78f5('0xa')](),controller[_0x78f5('0xb')]);router['delete'](_0x78f5('0x9'),auth['isAuthenticated'](),controller[_0x78f5('0xc')]);module['exports']=router;