8f4f7dd41186bf4eb4e88a7c5eab1f2b06fd5359
[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 _0xd4be=['update','delete','isAuthenticated','multer','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./action.controller','put','/:id'];(function(_0x5a0252,_0x34e35d){var _0x30887=function(_0x4451b9){while(--_0x4451b9){_0x5a0252['push'](_0x5a0252['shift']());}};_0x30887(++_0x34e35d);}(_0xd4be,0x189));var _0xed4b=function(_0x3e6920,_0x5a1352){_0x3e6920=_0x3e6920-0x0;var _0x3bbd9f=_0xd4be[_0x3e6920];return _0x3bbd9f;};'use strict';var multer=require(_0xed4b('0x0'));var util=require('util');var path=require(_0xed4b('0x1'));var timeout=require(_0xed4b('0x2'));var express=require('express');var router=express[_0xed4b('0x3')]();var auth=require(_0xed4b('0x4'));var interaction=require(_0xed4b('0x5'));var config=require(_0xed4b('0x6'));var controller=require(_0xed4b('0x7'));router[_0xed4b('0x8')](_0xed4b('0x9'),auth['isAuthenticated'](),controller[_0xed4b('0xa')]);router[_0xed4b('0xb')](_0xed4b('0x9'),auth[_0xed4b('0xc')](),controller['destroy']);module['exports']=router;