1ea819e255c7681594a20bc0f72309c5af4254e3
[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 _0xf6f8=['util','path','Router','./action.controller','put','/:id','isAuthenticated','update','delete','destroy','exports','multer'];(function(_0xa15383,_0x134979){var _0xa335bb=function(_0x2fdbbe){while(--_0x2fdbbe){_0xa15383['push'](_0xa15383['shift']());}};_0xa335bb(++_0x134979);}(_0xf6f8,0x173));var _0x8f6f=function(_0xef8146,_0x459c34){_0xef8146=_0xef8146-0x0;var _0x5a6cb0=_0xf6f8[_0xef8146];return _0x5a6cb0;};'use strict';var multer=require(_0x8f6f('0x0'));var util=require(_0x8f6f('0x1'));var path=require(_0x8f6f('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x8f6f('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x8f6f('0x4'));router[_0x8f6f('0x5')](_0x8f6f('0x6'),auth[_0x8f6f('0x7')](),controller[_0x8f6f('0x8')]);router[_0x8f6f('0x9')](_0x8f6f('0x6'),auth[_0x8f6f('0x7')](),controller[_0x8f6f('0xa')]);module[_0x8f6f('0xb')]=router;