Built motion from commit 85328c08.|2.5.50
[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 _0x16e4=['Router','../../components/auth/service','../../config/environment','./automation.controller','isAuthenticated','index','get','/:id','show','/:id/conditions','getActions','post','create','addConditions','/:id/actions','addActions','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express'];(function(_0x59190d,_0x1fe75c){var _0x3f28c3=function(_0x3069d1){while(--_0x3069d1){_0x59190d['push'](_0x59190d['shift']());}};_0x3f28c3(++_0x1fe75c);}(_0x16e4,0x97));var _0x416e=function(_0x576596,_0x1e85e3){_0x576596=_0x576596-0x0;var _0x5cd85a=_0x16e4[_0x576596];return _0x5cd85a;};'use strict';var multer=require(_0x416e('0x0'));var util=require(_0x416e('0x1'));var path=require(_0x416e('0x2'));var timeout=require(_0x416e('0x3'));var express=require(_0x416e('0x4'));var router=express[_0x416e('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x416e('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x416e('0x7'));var controller=require(_0x416e('0x8'));router['get']('/',auth[_0x416e('0x9')](),controller[_0x416e('0xa')]);router[_0x416e('0xb')](_0x416e('0xc'),auth[_0x416e('0x9')](),controller[_0x416e('0xd')]);router[_0x416e('0xb')](_0x416e('0xe'),auth[_0x416e('0x9')](),controller['getConditions']);router[_0x416e('0xb')]('/:id/actions',auth[_0x416e('0x9')](),controller[_0x416e('0xf')]);router[_0x416e('0x10')]('/',auth['isAuthenticated'](),controller[_0x416e('0x11')]);router[_0x416e('0x10')](_0x416e('0xe'),auth['isAuthenticated'](),controller[_0x416e('0x12')]);router['post'](_0x416e('0x13'),auth[_0x416e('0x9')](),controller[_0x416e('0x14')]);router[_0x416e('0x15')]('/:id',auth[_0x416e('0x9')](),controller[_0x416e('0x16')]);router[_0x416e('0x17')](_0x416e('0xc'),auth[_0x416e('0x9')](),controller[_0x416e('0x18')]);module[_0x416e('0x19')]=router;