Built motion from commit 1ea47bf4.|2.6.34
[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 _0x076e=['../../components/interaction/service','../../config/environment','./action.controller','put','/:id','isAuthenticated','update','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x076e,0x1ad));var _0xe076=function(_0x1a6e48,_0x2f14de){_0x1a6e48=_0x1a6e48-0x0;var _0x4b1025=_0x076e[_0x1a6e48];return _0x4b1025;};'use strict';var multer=require(_0xe076('0x0'));var util=require('util');var path=require(_0xe076('0x1'));var timeout=require(_0xe076('0x2'));var express=require(_0xe076('0x3'));var router=express[_0xe076('0x4')]();var fs_extra=require(_0xe076('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xe076('0x6'));var config=require(_0xe076('0x7'));var controller=require(_0xe076('0x8'));router[_0xe076('0x9')](_0xe076('0xa'),auth[_0xe076('0xb')](),controller[_0xe076('0xc')]);router['delete']('/:id',auth[_0xe076('0xb')](),controller[_0xe076('0xd')]);module[_0xe076('0xe')]=router;