Built motion from commit 9e1399f3.|2.5.37
[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 _0xb19f=['/:id/actions','getActions','post','create','addConditions','addActions','put','delete','destroy','exports','multer','util','express','Router','fs-extra','../../components/interaction/service','./automation.controller','isAuthenticated','index','/:id','show','/:id/conditions','getConditions'];(function(_0x2e9482,_0x5c4256){var _0x2eef28=function(_0x3e2410){while(--_0x3e2410){_0x2e9482['push'](_0x2e9482['shift']());}};_0x2eef28(++_0x5c4256);}(_0xb19f,0x7d));var _0xfb19=function(_0x24ddf6,_0x114e56){_0x24ddf6=_0x24ddf6-0x0;var _0x393d70=_0xb19f[_0x24ddf6];return _0x393d70;};'use strict';var multer=require(_0xfb19('0x0'));var util=require(_0xfb19('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xfb19('0x2'));var router=express[_0xfb19('0x3')]();var fs_extra=require(_0xfb19('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xfb19('0x5'));var config=require('../../config/environment');var controller=require(_0xfb19('0x6'));router['get']('/',auth[_0xfb19('0x7')](),controller[_0xfb19('0x8')]);router['get'](_0xfb19('0x9'),auth['isAuthenticated'](),controller[_0xfb19('0xa')]);router['get'](_0xfb19('0xb'),auth['isAuthenticated'](),controller[_0xfb19('0xc')]);router['get'](_0xfb19('0xd'),auth[_0xfb19('0x7')](),controller[_0xfb19('0xe')]);router[_0xfb19('0xf')]('/',auth[_0xfb19('0x7')](),controller[_0xfb19('0x10')]);router[_0xfb19('0xf')](_0xfb19('0xb'),auth[_0xfb19('0x7')](),controller[_0xfb19('0x11')]);router[_0xfb19('0xf')](_0xfb19('0xd'),auth[_0xfb19('0x7')](),controller[_0xfb19('0x12')]);router[_0xfb19('0x13')](_0xfb19('0x9'),auth[_0xfb19('0x7')](),controller['update']);router[_0xfb19('0x14')]('/:id',auth[_0xfb19('0x7')](),controller[_0xfb19('0x15')]);module[_0xfb19('0x16')]=router;