e21c7eec98bdcd82279129484ada9578ab422bcf
[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 _0xfad1=['exports','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/:id','show','/:id/conditions','/:id/actions','post','create','addConditions','addActions','put','update','destroy'];(function(_0x5bd426,_0x4878e5){var _0x23a7eb=function(_0x594b42){while(--_0x594b42){_0x5bd426['push'](_0x5bd426['shift']());}};_0x23a7eb(++_0x4878e5);}(_0xfad1,0xd3));var _0x1fad=function(_0x22ca98,_0x41dcc2){_0x22ca98=_0x22ca98-0x0;var _0x4e7adf=_0xfad1[_0x22ca98];return _0x4e7adf;};'use strict';var multer=require('multer');var util=require(_0x1fad('0x0'));var path=require(_0x1fad('0x1'));var timeout=require('connect-timeout');var express=require(_0x1fad('0x2'));var router=express[_0x1fad('0x3')]();var auth=require(_0x1fad('0x4'));var interaction=require(_0x1fad('0x5'));var config=require(_0x1fad('0x6'));var controller=require('./automation.controller');router[_0x1fad('0x7')]('/',auth[_0x1fad('0x8')](),controller['index']);router['get'](_0x1fad('0x9'),auth[_0x1fad('0x8')](),controller[_0x1fad('0xa')]);router[_0x1fad('0x7')](_0x1fad('0xb'),auth[_0x1fad('0x8')](),controller['getConditions']);router[_0x1fad('0x7')](_0x1fad('0xc'),auth[_0x1fad('0x8')](),controller['getActions']);router[_0x1fad('0xd')]('/',auth['isAuthenticated'](),controller[_0x1fad('0xe')]);router[_0x1fad('0xd')](_0x1fad('0xb'),auth['isAuthenticated'](),controller[_0x1fad('0xf')]);router[_0x1fad('0xd')](_0x1fad('0xc'),auth[_0x1fad('0x8')](),controller[_0x1fad('0x10')]);router[_0x1fad('0x11')](_0x1fad('0x9'),auth[_0x1fad('0x8')](),controller[_0x1fad('0x12')]);router['delete']('/:id',auth[_0x1fad('0x8')](),controller[_0x1fad('0x13')]);module[_0x1fad('0x14')]=router;