e9be4e532826bf989cecece42176a9e461e0a431
[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 _0x4d5c=['Router','fs-extra','../../components/auth/service','../../config/environment','put','/:id','isAuthenticated','delete','exports','multer','util','path','connect-timeout'];(function(_0x87eee5,_0x581852){var _0x17e2dc=function(_0x1122d2){while(--_0x1122d2){_0x87eee5['push'](_0x87eee5['shift']());}};_0x17e2dc(++_0x581852);}(_0x4d5c,0xbf));var _0xc4d5=function(_0xaa0309,_0x1c8008){_0xaa0309=_0xaa0309-0x0;var _0x5de7ce=_0x4d5c[_0xaa0309];return _0x5de7ce;};'use strict';var multer=require(_0xc4d5('0x0'));var util=require(_0xc4d5('0x1'));var path=require(_0xc4d5('0x2'));var timeout=require(_0xc4d5('0x3'));var express=require('express');var router=express[_0xc4d5('0x4')]();var fs_extra=require(_0xc4d5('0x5'));var auth=require(_0xc4d5('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xc4d5('0x7'));var controller=require('./action.controller');router[_0xc4d5('0x8')](_0xc4d5('0x9'),auth[_0xc4d5('0xa')](),controller['update']);router[_0xc4d5('0xb')](_0xc4d5('0x9'),auth[_0xc4d5('0xa')](),controller['destroy']);module[_0xc4d5('0xc')]=router;