a39bb7fcfeb45325a379c5e9e7b28e46b258bc90
[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 _0xaf38=['get','isAuthenticated','index','/describe','describe','/:id','show','getContacts','post','create','addContacts','put','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0xaa24f8,_0x19e09f){var _0x39c565=function(_0xde1729){while(--_0xde1729){_0xaa24f8['push'](_0xaa24f8['shift']());}};_0x39c565(++_0x19e09f);}(_0xaf38,0x10b));var _0x8af3=function(_0x36a5df,_0x3711be){_0x36a5df=_0x36a5df-0x0;var _0x4e671f=_0xaf38[_0x36a5df];return _0x4e671f;};'use strict';var multer=require(_0x8af3('0x0'));var util=require(_0x8af3('0x1'));var path=require(_0x8af3('0x2'));var timeout=require(_0x8af3('0x3'));var express=require(_0x8af3('0x4'));var router=express[_0x8af3('0x5')]();var fs_extra=require(_0x8af3('0x6'));var auth=require(_0x8af3('0x7'));var interaction=require(_0x8af3('0x8'));var config=require('../../config/environment');var controller=require('./cmCompany.controller');router[_0x8af3('0x9')]('/',auth[_0x8af3('0xa')](),controller[_0x8af3('0xb')]);router[_0x8af3('0x9')](_0x8af3('0xc'),auth[_0x8af3('0xa')](),controller[_0x8af3('0xd')]);router['get'](_0x8af3('0xe'),auth[_0x8af3('0xa')](),controller[_0x8af3('0xf')]);router[_0x8af3('0x9')]('/:id/contacts',auth[_0x8af3('0xa')](),controller[_0x8af3('0x10')]);router[_0x8af3('0x11')]('/',auth[_0x8af3('0xa')](),controller[_0x8af3('0x12')]);router[_0x8af3('0x11')]('/:id/contacts',auth[_0x8af3('0xa')](),controller[_0x8af3('0x13')]);router[_0x8af3('0x14')]('/:id',auth[_0x8af3('0xa')](),controller['update']);router['delete'](_0x8af3('0xe'),auth[_0x8af3('0xa')](),controller[_0x8af3('0x15')]);module[_0x8af3('0x16')]=router;