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