9c3a55cdae85900390411f7936be5f498640e3f9
[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 _0x6333=['express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./trigger.controller','get','isAuthenticated','/:id','show','/:id/all_conditions','getAllConditions','getAnyConditions','post','addAllCondition','/:id/any_conditions','addAnyCondition','/:id/actions','addAction','put','update','delete','destroy','exports','multer','util','path'];(function(_0x301efe,_0x338d14){var _0x5d44c3=function(_0x10a315){while(--_0x10a315){_0x301efe['push'](_0x301efe['shift']());}};_0x5d44c3(++_0x338d14);}(_0x6333,0x185));var _0x3633=function(_0x266273,_0x14fb90){_0x266273=_0x266273-0x0;var _0x41821a=_0x6333[_0x266273];return _0x41821a;};'use strict';var multer=require(_0x3633('0x0'));var util=require(_0x3633('0x1'));var path=require(_0x3633('0x2'));var timeout=require('connect-timeout');var express=require(_0x3633('0x3'));var router=express[_0x3633('0x4')]();var fs_extra=require(_0x3633('0x5'));var auth=require(_0x3633('0x6'));var interaction=require(_0x3633('0x7'));var config=require(_0x3633('0x8'));var controller=require(_0x3633('0x9'));router[_0x3633('0xa')]('/',auth[_0x3633('0xb')](),controller['index']);router[_0x3633('0xa')](_0x3633('0xc'),auth['isAuthenticated'](),controller[_0x3633('0xd')]);router['get'](_0x3633('0xe'),auth[_0x3633('0xb')](),controller[_0x3633('0xf')]);router[_0x3633('0xa')]('/:id/any_conditions',auth[_0x3633('0xb')](),controller[_0x3633('0x10')]);router[_0x3633('0xa')]('/:id/actions',auth[_0x3633('0xb')](),controller['getActions']);router[_0x3633('0x11')]('/',auth[_0x3633('0xb')](),controller['create']);router[_0x3633('0x11')](_0x3633('0xe'),auth[_0x3633('0xb')](),controller[_0x3633('0x12')]);router[_0x3633('0x11')](_0x3633('0x13'),auth[_0x3633('0xb')](),controller[_0x3633('0x14')]);router[_0x3633('0x11')](_0x3633('0x15'),auth[_0x3633('0xb')](),controller[_0x3633('0x16')]);router[_0x3633('0x17')](_0x3633('0xc'),auth[_0x3633('0xb')](),controller[_0x3633('0x18')]);router[_0x3633('0x19')](_0x3633('0xc'),auth['isAuthenticated'](),controller[_0x3633('0x1a')]);module[_0x3633('0x1b')]=router;