be697bb09a0b059d1f7d099b7cc617ca3b09f6e5
[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 _0xc092=['exports','path','connect-timeout','express','../../components/interaction/service','../../config/environment','./action.controller','put','/:id','delete','destroy'];(function(_0x2cc67d,_0x2daf1b){var _0x3713e2=function(_0xba6da2){while(--_0xba6da2){_0x2cc67d['push'](_0x2cc67d['shift']());}};_0x3713e2(++_0x2daf1b);}(_0xc092,0x182));var _0x2c09=function(_0x3fcd0e,_0x2f6436){_0x3fcd0e=_0x3fcd0e-0x0;var _0x37ca35=_0xc092[_0x3fcd0e];return _0x37ca35;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x2c09('0x0'));var timeout=require(_0x2c09('0x1'));var express=require(_0x2c09('0x2'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x2c09('0x3'));var config=require(_0x2c09('0x4'));var controller=require(_0x2c09('0x5'));router[_0x2c09('0x6')](_0x2c09('0x7'),auth['isAuthenticated'](),controller['update']);router[_0x2c09('0x8')](_0x2c09('0x7'),auth['isAuthenticated'](),controller[_0x2c09('0x9')]);module[_0x2c09('0xa')]=router;