Built motion from commit a61a4a20.|2.5.46
[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 _0x412a=['/:id/actions','post','create','addAnyCondition','put','update','destroy','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./trigger.controller','/:id','isAuthenticated','show','/:id/all_conditions','getAllConditions','get','/:id/any_conditions','getAnyConditions'];(function(_0x221b8c,_0x2c7afc){var _0x3fab9f=function(_0x28bab0){while(--_0x28bab0){_0x221b8c['push'](_0x221b8c['shift']());}};_0x3fab9f(++_0x2c7afc);}(_0x412a,0x17f));var _0xa412=function(_0x478a61,_0x45cf75){_0x478a61=_0x478a61-0x0;var _0x4f191d=_0x412a[_0x478a61];return _0x4f191d;};'use strict';var multer=require(_0xa412('0x0'));var util=require(_0xa412('0x1'));var path=require(_0xa412('0x2'));var timeout=require(_0xa412('0x3'));var express=require('express');var router=express[_0xa412('0x4')]();var fs_extra=require(_0xa412('0x5'));var auth=require(_0xa412('0x6'));var interaction=require(_0xa412('0x7'));var config=require('../../config/environment');var controller=require(_0xa412('0x8'));router['get']('/',auth['isAuthenticated'](),controller['index']);router['get'](_0xa412('0x9'),auth[_0xa412('0xa')](),controller[_0xa412('0xb')]);router['get'](_0xa412('0xc'),auth['isAuthenticated'](),controller[_0xa412('0xd')]);router[_0xa412('0xe')](_0xa412('0xf'),auth[_0xa412('0xa')](),controller[_0xa412('0x10')]);router['get'](_0xa412('0x11'),auth[_0xa412('0xa')](),controller['getActions']);router[_0xa412('0x12')]('/',auth[_0xa412('0xa')](),controller[_0xa412('0x13')]);router['post'](_0xa412('0xc'),auth['isAuthenticated'](),controller['addAllCondition']);router['post'](_0xa412('0xf'),auth[_0xa412('0xa')](),controller[_0xa412('0x14')]);router[_0xa412('0x12')](_0xa412('0x11'),auth[_0xa412('0xa')](),controller['addAction']);router[_0xa412('0x15')](_0xa412('0x9'),auth['isAuthenticated'](),controller[_0xa412('0x16')]);router['delete'](_0xa412('0x9'),auth[_0xa412('0xa')](),controller[_0xa412('0x17')]);module[_0xa412('0x18')]=router;