461d47effd9494bb44554ba520ae193993f46f4c
[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 _0x0c29=['get','isAuthenticated','index','/:id','show','/:id/conditions','getConditions','/:id/actions','getActions','post','create','addActions','put','delete','destroy','path','express','Router','fs-extra','../../config/environment','./automation.controller'];(function(_0x642554,_0x152591){var _0x494c54=function(_0x314773){while(--_0x314773){_0x642554['push'](_0x642554['shift']());}};_0x494c54(++_0x152591);}(_0x0c29,0xb7));var _0x90c2=function(_0x368bba,_0x1f625b){_0x368bba=_0x368bba-0x0;var _0x409f8f=_0x0c29[_0x368bba];return _0x409f8f;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x90c2('0x0'));var timeout=require('connect-timeout');var express=require(_0x90c2('0x1'));var router=express[_0x90c2('0x2')]();var fs_extra=require(_0x90c2('0x3'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x90c2('0x4'));var controller=require(_0x90c2('0x5'));router[_0x90c2('0x6')]('/',auth[_0x90c2('0x7')](),controller[_0x90c2('0x8')]);router[_0x90c2('0x6')](_0x90c2('0x9'),auth[_0x90c2('0x7')](),controller[_0x90c2('0xa')]);router[_0x90c2('0x6')](_0x90c2('0xb'),auth[_0x90c2('0x7')](),controller[_0x90c2('0xc')]);router[_0x90c2('0x6')](_0x90c2('0xd'),auth[_0x90c2('0x7')](),controller[_0x90c2('0xe')]);router[_0x90c2('0xf')]('/',auth[_0x90c2('0x7')](),controller[_0x90c2('0x10')]);router['post'](_0x90c2('0xb'),auth[_0x90c2('0x7')](),controller['addConditions']);router[_0x90c2('0xf')](_0x90c2('0xd'),auth[_0x90c2('0x7')](),controller[_0x90c2('0x11')]);router[_0x90c2('0x12')](_0x90c2('0x9'),auth[_0x90c2('0x7')](),controller['update']);router[_0x90c2('0x13')](_0x90c2('0x9'),auth[_0x90c2('0x7')](),controller[_0x90c2('0x14')]);module['exports']=router;