Built motion from commit 47436d59.|2.6.7
[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 _0x62a1=['./action.controller','/:id','isAuthenticated','delete','destroy','multer','util','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x161d41,_0x306119){var _0x21daf6=function(_0x1429fa){while(--_0x1429fa){_0x161d41['push'](_0x161d41['shift']());}};_0x21daf6(++_0x306119);}(_0x62a1,0x1e5));var _0x162a=function(_0x2882bd,_0x315edf){_0x2882bd=_0x2882bd-0x0;var _0x521402=_0x62a1[_0x2882bd];return _0x521402;};'use strict';var multer=require(_0x162a('0x0'));var util=require(_0x162a('0x1'));var path=require('path');var timeout=require(_0x162a('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x162a('0x3'));var auth=require(_0x162a('0x4'));var interaction=require(_0x162a('0x5'));var config=require(_0x162a('0x6'));var controller=require(_0x162a('0x7'));router['put'](_0x162a('0x8'),auth[_0x162a('0x9')](),controller['update']);router[_0x162a('0xa')]('/:id',auth[_0x162a('0x9')](),controller[_0x162a('0xb')]);module['exports']=router;