bd2e735d990d7f86d08eba0028689e3920dfb1e0
[motion2.git] / server / api / automation / 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 _0xfd8f=['index','/:id','/:id/conditions','getConditions','/:id/actions','getActions','post','create','addActions','put','delete','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated'];(function(_0x2ba62e,_0x3062b6){var _0x574764=function(_0x8b469){while(--_0x8b469){_0x2ba62e['push'](_0x2ba62e['shift']());}};_0x574764(++_0x3062b6);}(_0xfd8f,0xae));var _0xffd8=function(_0xc2bb54,_0x54ece6){_0xc2bb54=_0xc2bb54-0x0;var _0x546542=_0xfd8f[_0xc2bb54];return _0x546542;};'use strict';var multer=require(_0xffd8('0x0'));var util=require(_0xffd8('0x1'));var path=require('path');var timeout=require(_0xffd8('0x2'));var express=require(_0xffd8('0x3'));var router=express[_0xffd8('0x4')]();var fs_extra=require(_0xffd8('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xffd8('0x6'));var config=require(_0xffd8('0x7'));var controller=require('./automation.controller');router[_0xffd8('0x8')]('/',auth[_0xffd8('0x9')](),controller[_0xffd8('0xa')]);router[_0xffd8('0x8')](_0xffd8('0xb'),auth[_0xffd8('0x9')](),controller['show']);router[_0xffd8('0x8')](_0xffd8('0xc'),auth[_0xffd8('0x9')](),controller[_0xffd8('0xd')]);router['get'](_0xffd8('0xe'),auth[_0xffd8('0x9')](),controller[_0xffd8('0xf')]);router[_0xffd8('0x10')]('/',auth[_0xffd8('0x9')](),controller[_0xffd8('0x11')]);router[_0xffd8('0x10')](_0xffd8('0xc'),auth[_0xffd8('0x9')](),controller['addConditions']);router['post']('/:id/actions',auth[_0xffd8('0x9')](),controller[_0xffd8('0x12')]);router[_0xffd8('0x13')](_0xffd8('0xb'),auth[_0xffd8('0x9')](),controller['update']);router[_0xffd8('0x14')](_0xffd8('0xb'),auth[_0xffd8('0x9')](),controller[_0xffd8('0x15')]);module[_0xffd8('0x16')]=router;