7b406f3da6f457f96236fc9796cde87612afe4bd
[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 _0x0fc1=['fs-extra','../../config/environment','./cmCompany.controller','get','/describe','isAuthenticated','describe','/:id','show','/:id/contacts','post','create','put','update','delete','destroy','multer','util','path','connect-timeout','Router'];(function(_0x1f4712,_0x15487f){var _0xe15202=function(_0x2881d5){while(--_0x2881d5){_0x1f4712['push'](_0x1f4712['shift']());}};_0xe15202(++_0x15487f);}(_0x0fc1,0x14b));var _0x10fc=function(_0x9b8f80,_0x266a93){_0x9b8f80=_0x9b8f80-0x0;var _0x518d42=_0x0fc1[_0x9b8f80];return _0x518d42;};'use strict';var multer=require(_0x10fc('0x0'));var util=require(_0x10fc('0x1'));var path=require(_0x10fc('0x2'));var timeout=require(_0x10fc('0x3'));var express=require('express');var router=express[_0x10fc('0x4')]();var fs_extra=require(_0x10fc('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x10fc('0x6'));var controller=require(_0x10fc('0x7'));router[_0x10fc('0x8')]('/',auth['isAuthenticated'](),controller['index']);router['get'](_0x10fc('0x9'),auth[_0x10fc('0xa')](),controller[_0x10fc('0xb')]);router['get'](_0x10fc('0xc'),auth[_0x10fc('0xa')](),controller[_0x10fc('0xd')]);router[_0x10fc('0x8')](_0x10fc('0xe'),auth['isAuthenticated'](),controller['getContacts']);router[_0x10fc('0xf')]('/',auth['isAuthenticated'](),controller[_0x10fc('0x10')]);router[_0x10fc('0xf')](_0x10fc('0xe'),auth[_0x10fc('0xa')](),controller['addContacts']);router[_0x10fc('0x11')]('/:id',auth[_0x10fc('0xa')](),controller[_0x10fc('0x12')]);router[_0x10fc('0x13')]('/:id',auth[_0x10fc('0xa')](),controller[_0x10fc('0x14')]);module['exports']=router;