5a5797affc0684dc85f20d12b21e78c3d9f258c7
[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 _0x3a3b=['exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./trigger.controller','get','isAuthenticated','/:id','show','/:id/all_conditions','getAllConditions','/:id/any_conditions','getAnyConditions','/:id/actions','getActions','post','create','addAllCondition','addAction','put','destroy'];(function(_0x2070da,_0x45e586){var _0x4f9fe1=function(_0x5b6f2a){while(--_0x5b6f2a){_0x2070da['push'](_0x2070da['shift']());}};_0x4f9fe1(++_0x45e586);}(_0x3a3b,0xbe));var _0xb3a3=function(_0x5243f8,_0x5caf0f){_0x5243f8=_0x5243f8-0x0;var _0x3658a=_0x3a3b[_0x5243f8];return _0x3658a;};'use strict';var multer=require(_0xb3a3('0x0'));var util=require(_0xb3a3('0x1'));var path=require(_0xb3a3('0x2'));var timeout=require(_0xb3a3('0x3'));var express=require(_0xb3a3('0x4'));var router=express[_0xb3a3('0x5')]();var auth=require(_0xb3a3('0x6'));var interaction=require(_0xb3a3('0x7'));var config=require(_0xb3a3('0x8'));var controller=require(_0xb3a3('0x9'));router[_0xb3a3('0xa')]('/',auth[_0xb3a3('0xb')](),controller['index']);router[_0xb3a3('0xa')](_0xb3a3('0xc'),auth[_0xb3a3('0xb')](),controller[_0xb3a3('0xd')]);router[_0xb3a3('0xa')](_0xb3a3('0xe'),auth[_0xb3a3('0xb')](),controller[_0xb3a3('0xf')]);router[_0xb3a3('0xa')](_0xb3a3('0x10'),auth[_0xb3a3('0xb')](),controller[_0xb3a3('0x11')]);router[_0xb3a3('0xa')](_0xb3a3('0x12'),auth['isAuthenticated'](),controller[_0xb3a3('0x13')]);router[_0xb3a3('0x14')]('/',auth['isAuthenticated'](),controller[_0xb3a3('0x15')]);router['post']('/:id/all_conditions',auth[_0xb3a3('0xb')](),controller[_0xb3a3('0x16')]);router['post']('/:id/any_conditions',auth[_0xb3a3('0xb')](),controller['addAnyCondition']);router['post']('/:id/actions',auth[_0xb3a3('0xb')](),controller[_0xb3a3('0x17')]);router[_0xb3a3('0x18')](_0xb3a3('0xc'),auth['isAuthenticated'](),controller['update']);router['delete'](_0xb3a3('0xc'),auth[_0xb3a3('0xb')](),controller[_0xb3a3('0x19')]);module[_0xb3a3('0x1a')]=router;