051858f07bf7d8f8592eae8d320ab38cf1219369
[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 _0xf6f7=['../../components/interaction/service','../../config/environment','./action.controller','put','isAuthenticated','update','delete','/:id','destroy','util','path','connect-timeout','express','Router'];(function(_0x3dfe95,_0x1a66b6){var _0x182b28=function(_0x5da582){while(--_0x5da582){_0x3dfe95['push'](_0x3dfe95['shift']());}};_0x182b28(++_0x1a66b6);}(_0xf6f7,0xe9));var _0x7f6f=function(_0x47adb8,_0x591ccc){_0x47adb8=_0x47adb8-0x0;var _0x4689a8=_0xf6f7[_0x47adb8];return _0x4689a8;};'use strict';var multer=require('multer');var util=require(_0x7f6f('0x0'));var path=require(_0x7f6f('0x1'));var timeout=require(_0x7f6f('0x2'));var express=require(_0x7f6f('0x3'));var router=express[_0x7f6f('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x7f6f('0x5'));var config=require(_0x7f6f('0x6'));var controller=require(_0x7f6f('0x7'));router[_0x7f6f('0x8')]('/:id',auth[_0x7f6f('0x9')](),controller[_0x7f6f('0xa')]);router[_0x7f6f('0xb')](_0x7f6f('0xc'),auth[_0x7f6f('0x9')](),controller[_0x7f6f('0xd')]);module['exports']=router;