b33c250590d10d0a42d57eb00a92b8ade3fcb8fd
[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 _0x57ee=['exports','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./automation.controller','isAuthenticated','index','get','/:id','/:id/conditions','getConditions','post','create','addConditions','/:id/actions','put','update','delete','destroy'];(function(_0x17d9e3,_0x1f969c){var _0x14192d=function(_0x159745){while(--_0x159745){_0x17d9e3['push'](_0x17d9e3['shift']());}};_0x14192d(++_0x1f969c);}(_0x57ee,0x199));var _0xe57e=function(_0xf3d472,_0x223cc3){_0xf3d472=_0xf3d472-0x0;var _0x453746=_0x57ee[_0xf3d472];return _0x453746;};'use strict';var multer=require(_0xe57e('0x0'));var util=require(_0xe57e('0x1'));var path=require(_0xe57e('0x2'));var timeout=require('connect-timeout');var express=require(_0xe57e('0x3'));var router=express[_0xe57e('0x4')]();var auth=require(_0xe57e('0x5'));var interaction=require(_0xe57e('0x6'));var config=require(_0xe57e('0x7'));var controller=require(_0xe57e('0x8'));router['get']('/',auth[_0xe57e('0x9')](),controller[_0xe57e('0xa')]);router[_0xe57e('0xb')](_0xe57e('0xc'),auth[_0xe57e('0x9')](),controller['show']);router[_0xe57e('0xb')](_0xe57e('0xd'),auth[_0xe57e('0x9')](),controller[_0xe57e('0xe')]);router['get']('/:id/actions',auth[_0xe57e('0x9')](),controller['getActions']);router[_0xe57e('0xf')]('/',auth[_0xe57e('0x9')](),controller[_0xe57e('0x10')]);router[_0xe57e('0xf')](_0xe57e('0xd'),auth[_0xe57e('0x9')](),controller[_0xe57e('0x11')]);router[_0xe57e('0xf')](_0xe57e('0x12'),auth[_0xe57e('0x9')](),controller['addActions']);router[_0xe57e('0x13')]('/:id',auth['isAuthenticated'](),controller[_0xe57e('0x14')]);router[_0xe57e('0x15')](_0xe57e('0xc'),auth[_0xe57e('0x9')](),controller[_0xe57e('0x16')]);module[_0xe57e('0x17')]=router;