076d93891ed31b509855e58aa1dcb5ea4add7b66
[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 _0x9e47=['multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmCompany.controller','isAuthenticated','get','/:id','show','/:id/contacts','post','addContacts','put','update','delete','destroy','exports'];(function(_0x43d635,_0x3405be){var _0x3e739d=function(_0x15a7b0){while(--_0x15a7b0){_0x43d635['push'](_0x43d635['shift']());}};_0x3e739d(++_0x3405be);}(_0x9e47,0x17a));var _0x79e4=function(_0x101960,_0x21ae89){_0x101960=_0x101960-0x0;var _0x46aadd=_0x9e47[_0x101960];return _0x46aadd;};'use strict';var multer=require(_0x79e4('0x0'));var util=require(_0x79e4('0x1'));var path=require(_0x79e4('0x2'));var timeout=require('connect-timeout');var express=require(_0x79e4('0x3'));var router=express[_0x79e4('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x79e4('0x5'));var interaction=require(_0x79e4('0x6'));var config=require(_0x79e4('0x7'));var controller=require(_0x79e4('0x8'));router['get']('/',auth[_0x79e4('0x9')](),controller['index']);router[_0x79e4('0xa')]('/describe',auth[_0x79e4('0x9')](),controller['describe']);router[_0x79e4('0xa')](_0x79e4('0xb'),auth[_0x79e4('0x9')](),controller[_0x79e4('0xc')]);router[_0x79e4('0xa')](_0x79e4('0xd'),auth[_0x79e4('0x9')](),controller['getContacts']);router[_0x79e4('0xe')]('/',auth[_0x79e4('0x9')](),controller['create']);router[_0x79e4('0xe')](_0x79e4('0xd'),auth['isAuthenticated'](),controller[_0x79e4('0xf')]);router[_0x79e4('0x10')](_0x79e4('0xb'),auth[_0x79e4('0x9')](),controller[_0x79e4('0x11')]);router[_0x79e4('0x12')]('/:id',auth[_0x79e4('0x9')](),controller[_0x79e4('0x13')]);module[_0x79e4('0x14')]=router;