a8967dc4b62aacedccd1a466946f399d8ea6add2
[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 _0x44a4=['index','/describe','describe','/:id','show','getContacts','post','/:id/contacts','addContacts','put','update','delete','destroy','multer','util','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmCompany.controller','get','isAuthenticated'];(function(_0x258fb0,_0x5362dc){var _0x4d1afe=function(_0x1c8f24){while(--_0x1c8f24){_0x258fb0['push'](_0x258fb0['shift']());}};_0x4d1afe(++_0x5362dc);}(_0x44a4,0x65));var _0x444a=function(_0x2dbbc2,_0x25ef8c){_0x2dbbc2=_0x2dbbc2-0x0;var _0x1c0212=_0x44a4[_0x2dbbc2];return _0x1c0212;};'use strict';var multer=require(_0x444a('0x0'));var util=require(_0x444a('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require(_0x444a('0x2'));var auth=require(_0x444a('0x3'));var interaction=require(_0x444a('0x4'));var config=require(_0x444a('0x5'));var controller=require(_0x444a('0x6'));router[_0x444a('0x7')]('/',auth[_0x444a('0x8')](),controller[_0x444a('0x9')]);router[_0x444a('0x7')](_0x444a('0xa'),auth[_0x444a('0x8')](),controller[_0x444a('0xb')]);router[_0x444a('0x7')](_0x444a('0xc'),auth[_0x444a('0x8')](),controller[_0x444a('0xd')]);router[_0x444a('0x7')]('/:id/contacts',auth[_0x444a('0x8')](),controller[_0x444a('0xe')]);router[_0x444a('0xf')]('/',auth[_0x444a('0x8')](),controller['create']);router[_0x444a('0xf')](_0x444a('0x10'),auth[_0x444a('0x8')](),controller[_0x444a('0x11')]);router[_0x444a('0x12')](_0x444a('0xc'),auth[_0x444a('0x8')](),controller[_0x444a('0x13')]);router[_0x444a('0x14')]('/:id',auth[_0x444a('0x8')](),controller[_0x444a('0x15')]);module['exports']=router;