Built motion from commit 1fd437e9.|2.6.19
[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 _0x891f=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','put','isAuthenticated','update','delete','/:id','exports','multer','util','path','connect-timeout','express'];(function(_0x31ed0a,_0x248431){var _0x30a689=function(_0x426283){while(--_0x426283){_0x31ed0a['push'](_0x31ed0a['shift']());}};_0x30a689(++_0x248431);}(_0x891f,0x6b));var _0xf891=function(_0x41da2a,_0x252b01){_0x41da2a=_0x41da2a-0x0;var _0x15e039=_0x891f[_0x41da2a];return _0x15e039;};'use strict';var multer=require(_0xf891('0x0'));var util=require(_0xf891('0x1'));var path=require(_0xf891('0x2'));var timeout=require(_0xf891('0x3'));var express=require(_0xf891('0x4'));var router=express[_0xf891('0x5')]();var fs_extra=require(_0xf891('0x6'));var auth=require(_0xf891('0x7'));var interaction=require(_0xf891('0x8'));var config=require(_0xf891('0x9'));var controller=require('./action.controller');router[_0xf891('0xa')]('/:id',auth[_0xf891('0xb')](),controller[_0xf891('0xc')]);router[_0xf891('0xd')](_0xf891('0xe'),auth[_0xf891('0xb')](),controller['destroy']);module[_0xf891('0xf')]=router;