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