01e522bb728c61b2260923280d5be4a8665ba623
[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 _0x3a12=['multer','util','path','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./action.controller','/:id','isAuthenticated','delete','destroy','exports'];(function(_0x14d08c,_0x5b7091){var _0x5f5bd9=function(_0x496dc7){while(--_0x496dc7){_0x14d08c['push'](_0x14d08c['shift']());}};_0x5f5bd9(++_0x5b7091);}(_0x3a12,0x1ce));var _0x23a1=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x3a12[_0x321bb2];return _0x9c12ed;};'use strict';var multer=require(_0x23a1('0x0'));var util=require(_0x23a1('0x1'));var path=require(_0x23a1('0x2'));var timeout=require('connect-timeout');var express=require(_0x23a1('0x3'));var router=express[_0x23a1('0x4')]();var fs_extra=require(_0x23a1('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x23a1('0x6'));var config=require(_0x23a1('0x7'));var controller=require(_0x23a1('0x8'));router['put'](_0x23a1('0x9'),auth[_0x23a1('0xa')](),controller['update']);router[_0x23a1('0xb')](_0x23a1('0x9'),auth[_0x23a1('0xa')](),controller[_0x23a1('0xc')]);module[_0x23a1('0xd')]=router;