f2dae680c84bee89901bb90eb554f85c26bbf3b8
[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 _0xf268=['express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','put','/:id','isAuthenticated','update','delete','util','connect-timeout'];(function(_0xfae23b,_0x2be4ba){var _0x200640=function(_0x4ae258){while(--_0x4ae258){_0xfae23b['push'](_0xfae23b['shift']());}};_0x200640(++_0x2be4ba);}(_0xf268,0x11e));var _0x8f26=function(_0x2f8530,_0x5cbd67){_0x2f8530=_0x2f8530-0x0;var _0x5e814e=_0xf268[_0x2f8530];return _0x5e814e;};'use strict';var multer=require('multer');var util=require(_0x8f26('0x0'));var path=require('path');var timeout=require(_0x8f26('0x1'));var express=require(_0x8f26('0x2'));var router=express[_0x8f26('0x3')]();var fs_extra=require(_0x8f26('0x4'));var auth=require(_0x8f26('0x5'));var interaction=require(_0x8f26('0x6'));var config=require('../../config/environment');var controller=require('./action.controller');router[_0x8f26('0x7')](_0x8f26('0x8'),auth[_0x8f26('0x9')](),controller[_0x8f26('0xa')]);router[_0x8f26('0xb')](_0x8f26('0x8'),auth[_0x8f26('0x9')](),controller['destroy']);module['exports']=router;