Built motion from commit (unavailable).|2.4.3
[motion2.git] / server / api / saPriceList / 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 _0xb786=['/:id/products','post','/:id/clone','addProduct','put','update','util','express','Router','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','describe','/:id','show'];(function(_0x1adfba,_0x1c5398){var _0x400175=function(_0x5d1030){while(--_0x5d1030){_0x1adfba['push'](_0x1adfba['shift']());}};_0x400175(++_0x1c5398);}(_0xb786,0xc1));var _0x6b78=function(_0x521a1c,_0x1510b2){_0x521a1c=_0x521a1c-0x0;var _0x5dbe62=_0xb786[_0x521a1c];return _0x5dbe62;};'use strict';var multer=require('multer');var util=require(_0x6b78('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x6b78('0x1'));var router=express[_0x6b78('0x2')]();var auth=require('../../components/auth/service');var interaction=require(_0x6b78('0x3'));var config=require(_0x6b78('0x4'));var controller=require('./saPriceList.controller');router[_0x6b78('0x5')]('/',auth[_0x6b78('0x6')](),controller[_0x6b78('0x7')]);router[_0x6b78('0x5')]('/describe',auth[_0x6b78('0x6')](),controller[_0x6b78('0x8')]);router[_0x6b78('0x5')](_0x6b78('0x9'),auth['isAuthenticated'](),controller[_0x6b78('0xa')]);router[_0x6b78('0x5')](_0x6b78('0xb'),auth[_0x6b78('0x6')](),controller['getProducts']);router[_0x6b78('0xc')]('/',auth[_0x6b78('0x6')](),controller['create']);router[_0x6b78('0xc')](_0x6b78('0xd'),auth[_0x6b78('0x6')](),controller['clone']);router['post']('/:id/products',auth[_0x6b78('0x6')](),controller[_0x6b78('0xe')]);router[_0x6b78('0xf')](_0x6b78('0x9'),auth[_0x6b78('0x6')](),controller[_0x6b78('0x10')]);router['delete'](_0x6b78('0x9'),auth['isAuthenticated'](),controller['destroy']);router['delete']('/:id/products',auth[_0x6b78('0x6')](),controller['removeProducts']);module['exports']=router;