Built motion from commit (unavailable).|2.4.20
[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 _0xe5af=['getContacts','create','post','/:id/contacts','put','update','delete','destroy','exports','util','path','express','Router','../../components/auth/service','../../config/environment','isAuthenticated','index','describe','get','/:id','show'];(function(_0x2aecb2,_0x343312){var _0x3ebb80=function(_0x19fab3){while(--_0x19fab3){_0x2aecb2['push'](_0x2aecb2['shift']());}};_0x3ebb80(++_0x343312);}(_0xe5af,0x9c));var _0xfe5a=function(_0x381493,_0x12f975){_0x381493=_0x381493-0x0;var _0x245aba=_0xe5af[_0x381493];return _0x245aba;};'use strict';var multer=require('multer');var util=require(_0xfe5a('0x0'));var path=require(_0xfe5a('0x1'));var timeout=require('connect-timeout');var express=require(_0xfe5a('0x2'));var router=express[_0xfe5a('0x3')]();var auth=require(_0xfe5a('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xfe5a('0x5'));var controller=require('./cmCompany.controller');router['get']('/',auth[_0xfe5a('0x6')](),controller[_0xfe5a('0x7')]);router['get']('/describe',auth[_0xfe5a('0x6')](),controller[_0xfe5a('0x8')]);router[_0xfe5a('0x9')](_0xfe5a('0xa'),auth['isAuthenticated'](),controller[_0xfe5a('0xb')]);router['get']('/:id/contacts',auth[_0xfe5a('0x6')](),controller[_0xfe5a('0xc')]);router['post']('/',auth[_0xfe5a('0x6')](),controller[_0xfe5a('0xd')]);router[_0xfe5a('0xe')](_0xfe5a('0xf'),auth[_0xfe5a('0x6')](),controller['addContacts']);router[_0xfe5a('0x10')](_0xfe5a('0xa'),auth[_0xfe5a('0x6')](),controller[_0xfe5a('0x11')]);router[_0xfe5a('0x12')]('/:id',auth[_0xfe5a('0x6')](),controller[_0xfe5a('0x13')]);module[_0xfe5a('0x14')]=router;