Built motion from commit 85328c08.|2.5.50
[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 _0xb76e=['../../components/interaction/service','../../config/environment','put','/:id','update','isAuthenticated','destroy','exports','path','connect-timeout','Router','fs-extra','../../components/auth/service'];(function(_0x4504a0,_0x1ea192){var _0x4efe3a=function(_0x336f17){while(--_0x336f17){_0x4504a0['push'](_0x4504a0['shift']());}};_0x4efe3a(++_0x1ea192);}(_0xb76e,0xe5));var _0xeb76=function(_0x29e99f,_0x4b581e){_0x29e99f=_0x29e99f-0x0;var _0x3a1ae1=_0xb76e[_0x29e99f];return _0x3a1ae1;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xeb76('0x0'));var timeout=require(_0xeb76('0x1'));var express=require('express');var router=express[_0xeb76('0x2')]();var fs_extra=require(_0xeb76('0x3'));var auth=require(_0xeb76('0x4'));var interaction=require(_0xeb76('0x5'));var config=require(_0xeb76('0x6'));var controller=require('./action.controller');router[_0xeb76('0x7')](_0xeb76('0x8'),auth['isAuthenticated'](),controller[_0xeb76('0x9')]);router['delete'](_0xeb76('0x8'),auth[_0xeb76('0xa')](),controller[_0xeb76('0xb')]);module[_0xeb76('0xc')]=router;