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