3c29c161903cf16eebd4471698e1cf779b4f2340
[motion2.git] / server / api / trigger / 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 _0x0e4a=['index','show','/:id/all_conditions','getAllConditions','/:id/any_conditions','getAnyConditions','/:id/actions','getActions','post','create','addAllCondition','addAnyCondition','/:id','update','destroy','exports','multer','util','Router','fs-extra','../../components/interaction/service','../../config/environment','./trigger.controller','get','isAuthenticated'];(function(_0x1b6db3,_0x26930b){var _0x38a71e=function(_0x21dddd){while(--_0x21dddd){_0x1b6db3['push'](_0x1b6db3['shift']());}};_0x38a71e(++_0x26930b);}(_0x0e4a,0xd8));var _0xa0e4=function(_0x3cff37,_0xb48c41){_0x3cff37=_0x3cff37-0x0;var _0x283c6f=_0x0e4a[_0x3cff37];return _0x283c6f;};'use strict';var multer=require(_0xa0e4('0x0'));var util=require(_0xa0e4('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0xa0e4('0x2')]();var fs_extra=require(_0xa0e4('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0xa0e4('0x4'));var config=require(_0xa0e4('0x5'));var controller=require(_0xa0e4('0x6'));router[_0xa0e4('0x7')]('/',auth[_0xa0e4('0x8')](),controller[_0xa0e4('0x9')]);router['get']('/:id',auth[_0xa0e4('0x8')](),controller[_0xa0e4('0xa')]);router[_0xa0e4('0x7')](_0xa0e4('0xb'),auth['isAuthenticated'](),controller[_0xa0e4('0xc')]);router[_0xa0e4('0x7')](_0xa0e4('0xd'),auth[_0xa0e4('0x8')](),controller[_0xa0e4('0xe')]);router[_0xa0e4('0x7')](_0xa0e4('0xf'),auth[_0xa0e4('0x8')](),controller[_0xa0e4('0x10')]);router[_0xa0e4('0x11')]('/',auth[_0xa0e4('0x8')](),controller[_0xa0e4('0x12')]);router[_0xa0e4('0x11')](_0xa0e4('0xb'),auth[_0xa0e4('0x8')](),controller[_0xa0e4('0x13')]);router[_0xa0e4('0x11')](_0xa0e4('0xd'),auth['isAuthenticated'](),controller[_0xa0e4('0x14')]);router[_0xa0e4('0x11')](_0xa0e4('0xf'),auth[_0xa0e4('0x8')](),controller['addAction']);router['put'](_0xa0e4('0x15'),auth[_0xa0e4('0x8')](),controller[_0xa0e4('0x16')]);router['delete'](_0xa0e4('0x15'),auth['isAuthenticated'](),controller[_0xa0e4('0x17')]);module[_0xa0e4('0x18')]=router;