0562cea5e53c8c391644895fc5fdce6b70ba752f
[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 _0x1ff7=['post','create','addAllCondition','addAnyCondition','addAction','put','update','destroy','exports','multer','util','connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment','./trigger.controller','index','/:id','isAuthenticated','show','/:id/all_conditions','get','/:id/actions'];(function(_0x3caed9,_0x2bb916){var _0x425773=function(_0x482cb0){while(--_0x482cb0){_0x3caed9['push'](_0x3caed9['shift']());}};_0x425773(++_0x2bb916);}(_0x1ff7,0x189));var _0x71ff=function(_0x271b30,_0x1fd76e){_0x271b30=_0x271b30-0x0;var _0xb1923d=_0x1ff7[_0x271b30];return _0xb1923d;};'use strict';var multer=require(_0x71ff('0x0'));var util=require(_0x71ff('0x1'));var path=require('path');var timeout=require(_0x71ff('0x2'));var express=require(_0x71ff('0x3'));var router=express['Router']();var fs_extra=require(_0x71ff('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x71ff('0x5'));var config=require(_0x71ff('0x6'));var controller=require(_0x71ff('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0x71ff('0x8')]);router['get'](_0x71ff('0x9'),auth[_0x71ff('0xa')](),controller[_0x71ff('0xb')]);router['get'](_0x71ff('0xc'),auth[_0x71ff('0xa')](),controller['getAllConditions']);router[_0x71ff('0xd')]('/:id/any_conditions',auth['isAuthenticated'](),controller['getAnyConditions']);router[_0x71ff('0xd')](_0x71ff('0xe'),auth[_0x71ff('0xa')](),controller['getActions']);router[_0x71ff('0xf')]('/',auth[_0x71ff('0xa')](),controller[_0x71ff('0x10')]);router['post'](_0x71ff('0xc'),auth[_0x71ff('0xa')](),controller[_0x71ff('0x11')]);router[_0x71ff('0xf')]('/:id/any_conditions',auth['isAuthenticated'](),controller[_0x71ff('0x12')]);router['post'](_0x71ff('0xe'),auth[_0x71ff('0xa')](),controller[_0x71ff('0x13')]);router[_0x71ff('0x14')](_0x71ff('0x9'),auth[_0x71ff('0xa')](),controller[_0x71ff('0x15')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x71ff('0x16')]);module[_0x71ff('0x17')]=router;