Built motion from commit (unavailable).|2.4.4
[motion2.git] / server / api / saProduct / 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 _0x335f=['create','/:id/clone','put','update','multer','util','path','connect-timeout','Router','../../components/interaction/service','../../config/environment','./saProduct.controller','get','isAuthenticated','index','describe','/:id','show','post'];(function(_0x50007c,_0x1cbf11){var _0x5c1ec7=function(_0x52d038){while(--_0x52d038){_0x50007c['push'](_0x50007c['shift']());}};_0x5c1ec7(++_0x1cbf11);}(_0x335f,0xfb));var _0xf335=function(_0x32d1b9,_0x260af2){_0x32d1b9=_0x32d1b9-0x0;var _0x306ec8=_0x335f[_0x32d1b9];return _0x306ec8;};'use strict';var multer=require(_0xf335('0x0'));var util=require(_0xf335('0x1'));var path=require(_0xf335('0x2'));var timeout=require(_0xf335('0x3'));var express=require('express');var router=express[_0xf335('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xf335('0x5'));var config=require(_0xf335('0x6'));var controller=require(_0xf335('0x7'));router[_0xf335('0x8')]('/',auth[_0xf335('0x9')](),controller[_0xf335('0xa')]);router[_0xf335('0x8')]('/describe',auth['isAuthenticated'](),controller[_0xf335('0xb')]);router[_0xf335('0x8')](_0xf335('0xc'),auth[_0xf335('0x9')](),controller[_0xf335('0xd')]);router[_0xf335('0xe')]('/',auth[_0xf335('0x9')](),controller[_0xf335('0xf')]);router['post'](_0xf335('0x10'),auth[_0xf335('0x9')](),controller['clone']);router[_0xf335('0x11')](_0xf335('0xc'),auth[_0xf335('0x9')](),controller[_0xf335('0x12')]);module['exports']=router;