Built motion from commit (unavailable).|2.5.23
[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 _0x4c60=['index','/describe','describe','/:id','show','post','create','addContacts','put','update','delete','destroy','exports','multer','util','path','connect-timeout','Router','get','isAuthenticated'];(function(_0x5d6456,_0x58ecc7){var _0x4d66c1=function(_0x4335e3){while(--_0x4335e3){_0x5d6456['push'](_0x5d6456['shift']());}};_0x4d66c1(++_0x58ecc7);}(_0x4c60,0xc1));var _0x04c6=function(_0x4c7032,_0x2cb163){_0x4c7032=_0x4c7032-0x0;var _0x982489=_0x4c60[_0x4c7032];return _0x982489;};'use strict';var multer=require(_0x04c6('0x0'));var util=require(_0x04c6('0x1'));var path=require(_0x04c6('0x2'));var timeout=require(_0x04c6('0x3'));var express=require('express');var router=express[_0x04c6('0x4')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./cmCompany.controller');router[_0x04c6('0x5')]('/',auth[_0x04c6('0x6')](),controller[_0x04c6('0x7')]);router[_0x04c6('0x5')](_0x04c6('0x8'),auth[_0x04c6('0x6')](),controller[_0x04c6('0x9')]);router['get'](_0x04c6('0xa'),auth[_0x04c6('0x6')](),controller[_0x04c6('0xb')]);router[_0x04c6('0x5')]('/:id/contacts',auth['isAuthenticated'](),controller['getContacts']);router[_0x04c6('0xc')]('/',auth['isAuthenticated'](),controller[_0x04c6('0xd')]);router[_0x04c6('0xc')]('/:id/contacts',auth[_0x04c6('0x6')](),controller[_0x04c6('0xe')]);router[_0x04c6('0xf')](_0x04c6('0xa'),auth['isAuthenticated'](),controller[_0x04c6('0x10')]);router[_0x04c6('0x11')](_0x04c6('0xa'),auth['isAuthenticated'](),controller[_0x04c6('0x12')]);module[_0x04c6('0x13')]=router;