Built motion from commit 88aa8522.|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 _0x355e=['addActions','put','update','delete','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../config/environment','./automation.controller','get','isAuthenticated','index','/:id','/:id/conditions','/:id/actions','post','create','addConditions'];(function(_0x31ce3d,_0x581047){var _0x203d95=function(_0x9b9243){while(--_0x9b9243){_0x31ce3d['push'](_0x31ce3d['shift']());}};_0x203d95(++_0x581047);}(_0x355e,0xa7));var _0xe355=function(_0x2c2e40,_0x24bd3c){_0x2c2e40=_0x2c2e40-0x0;var _0x102b6c=_0x355e[_0x2c2e40];return _0x102b6c;};'use strict';var multer=require(_0xe355('0x0'));var util=require(_0xe355('0x1'));var path=require('path');var timeout=require(_0xe355('0x2'));var express=require(_0xe355('0x3'));var router=express[_0xe355('0x4')]();var fs_extra=require(_0xe355('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xe355('0x6'));var controller=require(_0xe355('0x7'));router[_0xe355('0x8')]('/',auth[_0xe355('0x9')](),controller[_0xe355('0xa')]);router[_0xe355('0x8')](_0xe355('0xb'),auth[_0xe355('0x9')](),controller['show']);router[_0xe355('0x8')](_0xe355('0xc'),auth[_0xe355('0x9')](),controller['getConditions']);router['get'](_0xe355('0xd'),auth[_0xe355('0x9')](),controller['getActions']);router[_0xe355('0xe')]('/',auth[_0xe355('0x9')](),controller[_0xe355('0xf')]);router['post'](_0xe355('0xc'),auth[_0xe355('0x9')](),controller[_0xe355('0x10')]);router[_0xe355('0xe')](_0xe355('0xd'),auth[_0xe355('0x9')](),controller[_0xe355('0x11')]);router[_0xe355('0x12')](_0xe355('0xb'),auth['isAuthenticated'](),controller[_0xe355('0x13')]);router[_0xe355('0x14')]('/:id',auth[_0xe355('0x9')](),controller[_0xe355('0x15')]);module[_0xe355('0x16')]=router;