Built motion from commit 355702c8.|2.5.41
[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 _0x6212=['connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./trigger.controller','get','isAuthenticated','index','/:id','show','/:id/all_conditions','getAllConditions','/:id/any_conditions','/:id/actions','getActions','post','create','addAllCondition','addAction','put','update','destroy','util','path'];(function(_0xe51596,_0x314d5b){var _0x22c705=function(_0x4c6f94){while(--_0x4c6f94){_0xe51596['push'](_0xe51596['shift']());}};_0x22c705(++_0x314d5b);}(_0x6212,0x1d2));var _0x2621=function(_0x59358f,_0x1d8057){_0x59358f=_0x59358f-0x0;var _0xead699=_0x6212[_0x59358f];return _0xead699;};'use strict';var multer=require('multer');var util=require(_0x2621('0x0'));var path=require(_0x2621('0x1'));var timeout=require(_0x2621('0x2'));var express=require('express');var router=express[_0x2621('0x3')]();var fs_extra=require(_0x2621('0x4'));var auth=require(_0x2621('0x5'));var interaction=require(_0x2621('0x6'));var config=require(_0x2621('0x7'));var controller=require(_0x2621('0x8'));router[_0x2621('0x9')]('/',auth[_0x2621('0xa')](),controller[_0x2621('0xb')]);router['get'](_0x2621('0xc'),auth[_0x2621('0xa')](),controller[_0x2621('0xd')]);router[_0x2621('0x9')](_0x2621('0xe'),auth[_0x2621('0xa')](),controller[_0x2621('0xf')]);router[_0x2621('0x9')](_0x2621('0x10'),auth[_0x2621('0xa')](),controller['getAnyConditions']);router[_0x2621('0x9')](_0x2621('0x11'),auth[_0x2621('0xa')](),controller[_0x2621('0x12')]);router[_0x2621('0x13')]('/',auth[_0x2621('0xa')](),controller[_0x2621('0x14')]);router['post']('/:id/all_conditions',auth[_0x2621('0xa')](),controller[_0x2621('0x15')]);router[_0x2621('0x13')]('/:id/any_conditions',auth[_0x2621('0xa')](),controller['addAnyCondition']);router['post'](_0x2621('0x11'),auth[_0x2621('0xa')](),controller[_0x2621('0x16')]);router[_0x2621('0x17')]('/:id',auth['isAuthenticated'](),controller[_0x2621('0x18')]);router['delete']('/:id',auth[_0x2621('0xa')](),controller[_0x2621('0x19')]);module['exports']=router;