400018013a7c236f59fb45b9b26b7eb508aa65f1
[motion2.git] / server / api / saAsset / 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 _0xac31=['../../components/auth/service','../../config/environment','./saAsset.controller','index','get','/describe','isAuthenticated','describe','/getSubscriptions','getSubscriptions','/:id','show','post','create','/:id/automaticSubscriptionInvoiceAlignment','automaticSubscriptionInvoiceAlignment','/:id/automaticSubscriptionInvoice','put','update','exports','multer','util','path','connect-timeout','express','Router'];(function(_0x365a61,_0x35df76){var _0x32938a=function(_0x5c53b3){while(--_0x5c53b3){_0x365a61['push'](_0x365a61['shift']());}};_0x32938a(++_0x35df76);}(_0xac31,0xca));var _0x1ac3=function(_0x4f17d3,_0x1cb5ea){_0x4f17d3=_0x4f17d3-0x0;var _0x49ddc2=_0xac31[_0x4f17d3];return _0x49ddc2;};'use strict';var multer=require(_0x1ac3('0x0'));var util=require(_0x1ac3('0x1'));var path=require(_0x1ac3('0x2'));var timeout=require(_0x1ac3('0x3'));var express=require(_0x1ac3('0x4'));var router=express[_0x1ac3('0x5')]();var auth=require(_0x1ac3('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x1ac3('0x7'));var controller=require(_0x1ac3('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0x1ac3('0x9')]);router[_0x1ac3('0xa')](_0x1ac3('0xb'),auth[_0x1ac3('0xc')](),controller[_0x1ac3('0xd')]);router['get'](_0x1ac3('0xe'),auth['isAuthenticated'](),controller[_0x1ac3('0xf')]);router[_0x1ac3('0xa')](_0x1ac3('0x10'),auth['isAuthenticated'](),controller[_0x1ac3('0x11')]);router[_0x1ac3('0x12')]('/',auth[_0x1ac3('0xc')](),controller[_0x1ac3('0x13')]);router[_0x1ac3('0x12')](_0x1ac3('0x14'),auth['isAuthenticated'](),controller[_0x1ac3('0x15')]);router[_0x1ac3('0x12')](_0x1ac3('0x16'),auth[_0x1ac3('0xc')](),controller['automaticSubscriptionInvoice']);router[_0x1ac3('0x17')](_0x1ac3('0x10'),auth[_0x1ac3('0xc')](),controller[_0x1ac3('0x18')]);router['delete'](_0x1ac3('0x10'),auth[_0x1ac3('0xc')](),controller['destroy']);module[_0x1ac3('0x19')]=router;