d85a942fc2bf0d6a97cd8653dd31f5a181743652
[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 _0xff69=['util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','put','/:id','isAuthenticated','update','delete','destroy','exports'];(function(_0x261b8a,_0x553ec4){var _0x3455e8=function(_0xdf10d4){while(--_0xdf10d4){_0x261b8a['push'](_0x261b8a['shift']());}};_0x3455e8(++_0x553ec4);}(_0xff69,0x16c));var _0x9ff6=function(_0x19b84f,_0x48765e){_0x19b84f=_0x19b84f-0x0;var _0x18067b=_0xff69[_0x19b84f];return _0x18067b;};'use strict';var multer=require('multer');var util=require(_0x9ff6('0x0'));var path=require(_0x9ff6('0x1'));var timeout=require(_0x9ff6('0x2'));var express=require('express');var router=express[_0x9ff6('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x9ff6('0x4'));var interaction=require(_0x9ff6('0x5'));var config=require(_0x9ff6('0x6'));var controller=require('./action.controller');router[_0x9ff6('0x7')](_0x9ff6('0x8'),auth[_0x9ff6('0x9')](),controller[_0x9ff6('0xa')]);router[_0x9ff6('0xb')]('/:id',auth[_0x9ff6('0x9')](),controller[_0x9ff6('0xc')]);module[_0x9ff6('0xd')]=router;