4c75612ba1628e30b00574707befd79f23a3bbdd
[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 _0x95ca=['fs-extra','../../components/interaction/service','./action.controller','isAuthenticated','update','delete','destroy','exports','multer','util','path','Router'];(function(_0x32ebec,_0x284523){var _0x57b450=function(_0x49db9f){while(--_0x49db9f){_0x32ebec['push'](_0x32ebec['shift']());}};_0x57b450(++_0x284523);}(_0x95ca,0x1ac));var _0xa95c=function(_0x133061,_0xefc36c){_0x133061=_0x133061-0x0;var _0x53dca4=_0x95ca[_0x133061];return _0x53dca4;};'use strict';var multer=require(_0xa95c('0x0'));var util=require(_0xa95c('0x1'));var path=require(_0xa95c('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xa95c('0x3')]();var fs_extra=require(_0xa95c('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xa95c('0x5'));var config=require('../../config/environment');var controller=require(_0xa95c('0x6'));router['put']('/:id',auth[_0xa95c('0x7')](),controller[_0xa95c('0x8')]);router[_0xa95c('0x9')]('/:id',auth[_0xa95c('0x7')](),controller[_0xa95c('0xa')]);module[_0xa95c('0xb')]=router;