Built motion from commit 43538d75.|2.5.35
[motion2.git] / server / api / cmCompany / 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 _0x5fab=['path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','index','/describe','isAuthenticated','get','getContacts','post','create','/:id/contacts','addContacts','put','/:id','exports','multer','util'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x5fab,0x148));var _0xb5fa=function(_0x2f1ac4,_0x236a72){_0x2f1ac4=_0x2f1ac4-0x0;var _0x18e1a5=_0x5fab[_0x2f1ac4];return _0x18e1a5;};'use strict';var multer=require(_0xb5fa('0x0'));var util=require(_0xb5fa('0x1'));var path=require(_0xb5fa('0x2'));var timeout=require(_0xb5fa('0x3'));var express=require(_0xb5fa('0x4'));var router=express[_0xb5fa('0x5')]();var fs_extra=require(_0xb5fa('0x6'));var auth=require(_0xb5fa('0x7'));var interaction=require(_0xb5fa('0x8'));var config=require(_0xb5fa('0x9'));var controller=require('./cmCompany.controller');router['get']('/',auth['isAuthenticated'](),controller[_0xb5fa('0xa')]);router['get'](_0xb5fa('0xb'),auth[_0xb5fa('0xc')](),controller['describe']);router[_0xb5fa('0xd')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0xb5fa('0xd')]('/:id/contacts',auth[_0xb5fa('0xc')](),controller[_0xb5fa('0xe')]);router[_0xb5fa('0xf')]('/',auth[_0xb5fa('0xc')](),controller[_0xb5fa('0x10')]);router[_0xb5fa('0xf')](_0xb5fa('0x11'),auth[_0xb5fa('0xc')](),controller[_0xb5fa('0x12')]);router[_0xb5fa('0x13')]('/:id',auth[_0xb5fa('0xc')](),controller['update']);router['delete'](_0xb5fa('0x14'),auth[_0xb5fa('0xc')](),controller['destroy']);module[_0xb5fa('0x15')]=router;