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