649b4ce677671aeafca72fd2f69967c1b2ebb458
[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 _0xad9b=['addActions','put','update','delete','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','./automation.controller','isAuthenticated','/:id','show','/:id/conditions','get','/:id/actions','getActions','post','create','addConditions'];(function(_0x4ab342,_0x225d67){var _0x186df2=function(_0x57bfec){while(--_0x57bfec){_0x4ab342['push'](_0x4ab342['shift']());}};_0x186df2(++_0x225d67);}(_0xad9b,0x10e));var _0xbad9=function(_0x2be86b,_0x77701){_0x2be86b=_0x2be86b-0x0;var _0x31b70b=_0xad9b[_0x2be86b];return _0x31b70b;};'use strict';var multer=require(_0xbad9('0x0'));var util=require('util');var path=require(_0xbad9('0x1'));var timeout=require(_0xbad9('0x2'));var express=require(_0xbad9('0x3'));var router=express[_0xbad9('0x4')]();var fs_extra=require(_0xbad9('0x5'));var auth=require(_0xbad9('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xbad9('0x7'));router['get']('/',auth[_0xbad9('0x8')](),controller['index']);router['get'](_0xbad9('0x9'),auth[_0xbad9('0x8')](),controller[_0xbad9('0xa')]);router['get'](_0xbad9('0xb'),auth[_0xbad9('0x8')](),controller['getConditions']);router[_0xbad9('0xc')](_0xbad9('0xd'),auth[_0xbad9('0x8')](),controller[_0xbad9('0xe')]);router[_0xbad9('0xf')]('/',auth[_0xbad9('0x8')](),controller[_0xbad9('0x10')]);router['post'](_0xbad9('0xb'),auth[_0xbad9('0x8')](),controller[_0xbad9('0x11')]);router[_0xbad9('0xf')](_0xbad9('0xd'),auth[_0xbad9('0x8')](),controller[_0xbad9('0x12')]);router[_0xbad9('0x13')](_0xbad9('0x9'),auth['isAuthenticated'](),controller[_0xbad9('0x14')]);router[_0xbad9('0x15')](_0xbad9('0x9'),auth[_0xbad9('0x8')](),controller[_0xbad9('0x16')]);module[_0xbad9('0x17')]=router;