2d53450f9abb0058e8ad6d0844fa252db462dd10
[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 _0x792c=['update','delete','isAuthenticated','destroy','exports','multer','path','Router','../../components/interaction/service','put','/:id'];(function(_0x5627e1,_0x1b2dbf){var _0x2f013f=function(_0x142015){while(--_0x142015){_0x5627e1['push'](_0x5627e1['shift']());}};_0x2f013f(++_0x1b2dbf);}(_0x792c,0xb5));var _0xc792=function(_0x21e965,_0x3c1c23){_0x21e965=_0x21e965-0x0;var _0xc3a67c=_0x792c[_0x21e965];return _0xc3a67c;};'use strict';var multer=require(_0xc792('0x0'));var util=require('util');var path=require(_0xc792('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xc792('0x2')]();var auth=require('../../components/auth/service');var interaction=require(_0xc792('0x3'));var config=require('../../config/environment');var controller=require('./action.controller');router[_0xc792('0x4')](_0xc792('0x5'),auth['isAuthenticated'](),controller[_0xc792('0x6')]);router[_0xc792('0x7')](_0xc792('0x5'),auth[_0xc792('0x8')](),controller[_0xc792('0x9')]);module[_0xc792('0xa')]=router;