Built motion from commit (unavailable).|2.5.10
[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 _0x782e=['show','/:id/conditions','getConditions','create','post','addConditions','/:id/actions','addActions','put','delete','destroy','exports','multer','util','path','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./automation.controller','get','isAuthenticated','index','/:id'];(function(_0x44d2bb,_0x2dbbd9){var _0xe2d07c=function(_0x53314d){while(--_0x53314d){_0x44d2bb['push'](_0x44d2bb['shift']());}};_0xe2d07c(++_0x2dbbd9);}(_0x782e,0x1d4));var _0xe782=function(_0x4e03e3,_0x5e045a){_0x4e03e3=_0x4e03e3-0x0;var _0x454a76=_0x782e[_0x4e03e3];return _0x454a76;};'use strict';var multer=require(_0xe782('0x0'));var util=require(_0xe782('0x1'));var path=require(_0xe782('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xe782('0x3')]();var auth=require(_0xe782('0x4'));var interaction=require(_0xe782('0x5'));var config=require(_0xe782('0x6'));var controller=require(_0xe782('0x7'));router[_0xe782('0x8')]('/',auth[_0xe782('0x9')](),controller[_0xe782('0xa')]);router[_0xe782('0x8')](_0xe782('0xb'),auth[_0xe782('0x9')](),controller[_0xe782('0xc')]);router[_0xe782('0x8')](_0xe782('0xd'),auth['isAuthenticated'](),controller[_0xe782('0xe')]);router['get']('/:id/actions',auth[_0xe782('0x9')](),controller['getActions']);router['post']('/',auth[_0xe782('0x9')](),controller[_0xe782('0xf')]);router[_0xe782('0x10')](_0xe782('0xd'),auth[_0xe782('0x9')](),controller[_0xe782('0x11')]);router['post'](_0xe782('0x12'),auth['isAuthenticated'](),controller[_0xe782('0x13')]);router[_0xe782('0x14')]('/:id',auth[_0xe782('0x9')](),controller['update']);router[_0xe782('0x15')](_0xe782('0xb'),auth[_0xe782('0x9')](),controller[_0xe782('0x16')]);module[_0xe782('0x17')]=router;