Built motion from commit (unavailable).|2.5.9
[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 _0x172b=['exports','multer','util','path','express','Router','../../components/interaction/service','./trigger.controller','isAuthenticated','get','/:id','show','/:id/all_conditions','getAllConditions','/:id/any_conditions','/:id/actions','getActions','post','create','addAction','put','update','destroy'];(function(_0x5266e7,_0x97b16b){var _0x5470f1=function(_0x10258e){while(--_0x10258e){_0x5266e7['push'](_0x5266e7['shift']());}};_0x5470f1(++_0x97b16b);}(_0x172b,0xa2));var _0xb172=function(_0x40a166,_0x892cc7){_0x40a166=_0x40a166-0x0;var _0x32e2a2=_0x172b[_0x40a166];return _0x32e2a2;};'use strict';var multer=require(_0xb172('0x0'));var util=require(_0xb172('0x1'));var path=require(_0xb172('0x2'));var timeout=require('connect-timeout');var express=require(_0xb172('0x3'));var router=express[_0xb172('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xb172('0x5'));var config=require('../../config/environment');var controller=require(_0xb172('0x6'));router['get']('/',auth[_0xb172('0x7')](),controller['index']);router[_0xb172('0x8')](_0xb172('0x9'),auth[_0xb172('0x7')](),controller[_0xb172('0xa')]);router[_0xb172('0x8')](_0xb172('0xb'),auth[_0xb172('0x7')](),controller[_0xb172('0xc')]);router['get'](_0xb172('0xd'),auth['isAuthenticated'](),controller['getAnyConditions']);router[_0xb172('0x8')](_0xb172('0xe'),auth['isAuthenticated'](),controller[_0xb172('0xf')]);router[_0xb172('0x10')]('/',auth[_0xb172('0x7')](),controller[_0xb172('0x11')]);router[_0xb172('0x10')](_0xb172('0xb'),auth['isAuthenticated'](),controller['addAllCondition']);router['post']('/:id/any_conditions',auth[_0xb172('0x7')](),controller['addAnyCondition']);router[_0xb172('0x10')](_0xb172('0xe'),auth[_0xb172('0x7')](),controller[_0xb172('0x12')]);router[_0xb172('0x13')]('/:id',auth['isAuthenticated'](),controller[_0xb172('0x14')]);router['delete'](_0xb172('0x9'),auth['isAuthenticated'](),controller[_0xb172('0x15')]);module[_0xb172('0x16')]=router;