dec6f4f132c1383658587f433c77612ecb70e6a7
[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 _0x595a=['fs-extra','../../components/interaction/service','./action.controller','put','/:id','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router'];(function(_0x307a0b,_0x314bef){var _0x542573=function(_0x40b761){while(--_0x40b761){_0x307a0b['push'](_0x307a0b['shift']());}};_0x542573(++_0x314bef);}(_0x595a,0xdb));var _0xa595=function(_0x5a60ce,_0x48f080){_0x5a60ce=_0x5a60ce-0x0;var _0x393e5e=_0x595a[_0x5a60ce];return _0x393e5e;};'use strict';var multer=require(_0xa595('0x0'));var util=require(_0xa595('0x1'));var path=require(_0xa595('0x2'));var timeout=require(_0xa595('0x3'));var express=require(_0xa595('0x4'));var router=express[_0xa595('0x5')]();var fs_extra=require(_0xa595('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0xa595('0x7'));var config=require('../../config/environment');var controller=require(_0xa595('0x8'));router[_0xa595('0x9')](_0xa595('0xa'),auth['isAuthenticated'](),controller[_0xa595('0xb')]);router[_0xa595('0xc')]('/:id',auth['isAuthenticated'](),controller[_0xa595('0xd')]);module[_0xa595('0xe')]=router;