Built motion from commit (unavailable).|2.5.22
[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 _0xe823=['../../config/environment','./automation.controller','get','isAuthenticated','index','/:id','show','/:id/conditions','getConditions','/:id/actions','post','addActions','put','update','delete','exports','multer','util','connect-timeout','express','../../components/auth/service','../../components/interaction/service'];(function(_0x166146,_0x1f34c6){var _0x9c7390=function(_0x1e368c){while(--_0x1e368c){_0x166146['push'](_0x166146['shift']());}};_0x9c7390(++_0x1f34c6);}(_0xe823,0x1de));var _0x3e82=function(_0x397435,_0x10a914){_0x397435=_0x397435-0x0;var _0x776617=_0xe823[_0x397435];return _0x776617;};'use strict';var multer=require(_0x3e82('0x0'));var util=require(_0x3e82('0x1'));var path=require('path');var timeout=require(_0x3e82('0x2'));var express=require(_0x3e82('0x3'));var router=express['Router']();var auth=require(_0x3e82('0x4'));var interaction=require(_0x3e82('0x5'));var config=require(_0x3e82('0x6'));var controller=require(_0x3e82('0x7'));router[_0x3e82('0x8')]('/',auth[_0x3e82('0x9')](),controller[_0x3e82('0xa')]);router['get'](_0x3e82('0xb'),auth['isAuthenticated'](),controller[_0x3e82('0xc')]);router[_0x3e82('0x8')](_0x3e82('0xd'),auth[_0x3e82('0x9')](),controller[_0x3e82('0xe')]);router[_0x3e82('0x8')](_0x3e82('0xf'),auth[_0x3e82('0x9')](),controller['getActions']);router[_0x3e82('0x10')]('/',auth[_0x3e82('0x9')](),controller['create']);router[_0x3e82('0x10')](_0x3e82('0xd'),auth['isAuthenticated'](),controller['addConditions']);router[_0x3e82('0x10')](_0x3e82('0xf'),auth[_0x3e82('0x9')](),controller[_0x3e82('0x11')]);router[_0x3e82('0x12')](_0x3e82('0xb'),auth[_0x3e82('0x9')](),controller[_0x3e82('0x13')]);router[_0x3e82('0x14')](_0x3e82('0xb'),auth[_0x3e82('0x9')](),controller['destroy']);module[_0x3e82('0x15')]=router;