Built motion from commit (unavailable).|2.4.18
[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 _0xeace=['getAllConditions','getAnyConditions','/:id/actions','getActions','post','addAllCondition','/:id/any_conditions','addAnyCondition','addAction','put','update','/:id','destroy','exports','util','path','connect-timeout','Router','../../components/interaction/service','../../config/environment','./trigger.controller','get','isAuthenticated','index','show','/:id/all_conditions'];(function(_0xd2eaba,_0x3f3231){var _0x337605=function(_0x507112){while(--_0x507112){_0xd2eaba['push'](_0xd2eaba['shift']());}};_0x337605(++_0x3f3231);}(_0xeace,0x112));var _0xeeac=function(_0x3654fa,_0x1844f8){_0x3654fa=_0x3654fa-0x0;var _0x75e013=_0xeace[_0x3654fa];return _0x75e013;};'use strict';var multer=require('multer');var util=require(_0xeeac('0x0'));var path=require(_0xeeac('0x1'));var timeout=require(_0xeeac('0x2'));var express=require('express');var router=express[_0xeeac('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0xeeac('0x4'));var config=require(_0xeeac('0x5'));var controller=require(_0xeeac('0x6'));router[_0xeeac('0x7')]('/',auth[_0xeeac('0x8')](),controller[_0xeeac('0x9')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0xeeac('0xa')]);router['get'](_0xeeac('0xb'),auth['isAuthenticated'](),controller[_0xeeac('0xc')]);router[_0xeeac('0x7')]('/:id/any_conditions',auth['isAuthenticated'](),controller[_0xeeac('0xd')]);router[_0xeeac('0x7')](_0xeeac('0xe'),auth[_0xeeac('0x8')](),controller[_0xeeac('0xf')]);router[_0xeeac('0x10')]('/',auth[_0xeeac('0x8')](),controller['create']);router[_0xeeac('0x10')](_0xeeac('0xb'),auth[_0xeeac('0x8')](),controller[_0xeeac('0x11')]);router[_0xeeac('0x10')](_0xeeac('0x12'),auth[_0xeeac('0x8')](),controller[_0xeeac('0x13')]);router[_0xeeac('0x10')](_0xeeac('0xe'),auth['isAuthenticated'](),controller[_0xeeac('0x14')]);router[_0xeeac('0x15')]('/:id',auth[_0xeeac('0x8')](),controller[_0xeeac('0x16')]);router['delete'](_0xeeac('0x17'),auth[_0xeeac('0x8')](),controller[_0xeeac('0x18')]);module[_0xeeac('0x19')]=router;