62b3d49be314429f413eb43f375ee32895b54b6d
[motion2.git] / server / api / automation / 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 _0x18b3=['create','addConditions','/:id/actions','addActions','delete','/:id','destroy','exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./automation.controller','isAuthenticated','index','get','/:id/conditions','getConditions','getActions','post'];(function(_0x209941,_0x5c9988){var _0x1e8729=function(_0x51a9b8){while(--_0x51a9b8){_0x209941['push'](_0x209941['shift']());}};_0x1e8729(++_0x5c9988);}(_0x18b3,0x140));var _0x318b=function(_0xe0bee7,_0x5b996e){_0xe0bee7=_0xe0bee7-0x0;var _0x5cf59d=_0x18b3[_0xe0bee7];return _0x5cf59d;};'use strict';var multer=require(_0x318b('0x0'));var util=require(_0x318b('0x1'));var path=require('path');var timeout=require(_0x318b('0x2'));var express=require(_0x318b('0x3'));var router=express[_0x318b('0x4')]();var auth=require(_0x318b('0x5'));var interaction=require(_0x318b('0x6'));var config=require(_0x318b('0x7'));var controller=require(_0x318b('0x8'));router['get']('/',auth[_0x318b('0x9')](),controller[_0x318b('0xa')]);router['get']('/:id',auth['isAuthenticated'](),controller['show']);router[_0x318b('0xb')](_0x318b('0xc'),auth['isAuthenticated'](),controller[_0x318b('0xd')]);router[_0x318b('0xb')]('/:id/actions',auth[_0x318b('0x9')](),controller[_0x318b('0xe')]);router[_0x318b('0xf')]('/',auth[_0x318b('0x9')](),controller[_0x318b('0x10')]);router[_0x318b('0xf')](_0x318b('0xc'),auth[_0x318b('0x9')](),controller[_0x318b('0x11')]);router[_0x318b('0xf')](_0x318b('0x12'),auth[_0x318b('0x9')](),controller[_0x318b('0x13')]);router['put']('/:id',auth[_0x318b('0x9')](),controller['update']);router[_0x318b('0x14')](_0x318b('0x15'),auth[_0x318b('0x9')](),controller[_0x318b('0x16')]);module[_0x318b('0x17')]=router;