Built motion from commit 42801a18.|2.6.28
[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 _0x4001=['connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./action.controller','/:id','isAuthenticated','update','destroy','exports','multer'];(function(_0x5a2d3f,_0x27b04e){var _0x5c65d8=function(_0x2d1965){while(--_0x2d1965){_0x5a2d3f['push'](_0x5a2d3f['shift']());}};_0x5c65d8(++_0x27b04e);}(_0x4001,0x16b));var _0x1400=function(_0x34f4e3,_0x5ea27d){_0x34f4e3=_0x34f4e3-0x0;var _0x4abd77=_0x4001[_0x34f4e3];return _0x4abd77;};'use strict';var multer=require(_0x1400('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x1400('0x1'));var express=require(_0x1400('0x2'));var router=express[_0x1400('0x3')]();var fs_extra=require(_0x1400('0x4'));var auth=require(_0x1400('0x5'));var interaction=require(_0x1400('0x6'));var config=require('../../config/environment');var controller=require(_0x1400('0x7'));router['put'](_0x1400('0x8'),auth[_0x1400('0x9')](),controller[_0x1400('0xa')]);router['delete']('/:id',auth[_0x1400('0x9')](),controller[_0x1400('0xb')]);module[_0x1400('0xc')]=router;