Built motion from commit b5413ace.|2.6.9
[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 _0xf733=['multer','util','path','connect-timeout','express','Router','fs-extra','../../config/environment','./action.controller','put','isAuthenticated','destroy','exports'];(function(_0x16fa02,_0x3eaff5){var _0x58fa70=function(_0x18bfc5){while(--_0x18bfc5){_0x16fa02['push'](_0x16fa02['shift']());}};_0x58fa70(++_0x3eaff5);}(_0xf733,0x193));var _0x3f73=function(_0x3d70da,_0x40b755){_0x3d70da=_0x3d70da-0x0;var _0x59bdc4=_0xf733[_0x3d70da];return _0x59bdc4;};'use strict';var multer=require(_0x3f73('0x0'));var util=require(_0x3f73('0x1'));var path=require(_0x3f73('0x2'));var timeout=require(_0x3f73('0x3'));var express=require(_0x3f73('0x4'));var router=express[_0x3f73('0x5')]();var fs_extra=require(_0x3f73('0x6'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x3f73('0x7'));var controller=require(_0x3f73('0x8'));router[_0x3f73('0x9')]('/:id',auth[_0x3f73('0xa')](),controller['update']);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x3f73('0xb')]);module[_0x3f73('0xc')]=router;