Built motion from commit (unavailable).|2.5.15
[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 _0xeb3b=['express','../../components/interaction/service','./cmCompany.controller','isAuthenticated','index','get','/describe','describe','/:id','show','/:id/contacts','getContacts','create','addContacts','put','multer','util','path','connect-timeout'];(function(_0x23abe8,_0x2a1839){var _0x2f01c0=function(_0x5c816f){while(--_0x5c816f){_0x23abe8['push'](_0x23abe8['shift']());}};_0x2f01c0(++_0x2a1839);}(_0xeb3b,0x19e));var _0xbeb3=function(_0x53056c,_0x1d56a9){_0x53056c=_0x53056c-0x0;var _0x5cec88=_0xeb3b[_0x53056c];return _0x5cec88;};'use strict';var multer=require(_0xbeb3('0x0'));var util=require(_0xbeb3('0x1'));var path=require(_0xbeb3('0x2'));var timeout=require(_0xbeb3('0x3'));var express=require(_0xbeb3('0x4'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xbeb3('0x5'));var config=require('../../config/environment');var controller=require(_0xbeb3('0x6'));router['get']('/',auth[_0xbeb3('0x7')](),controller[_0xbeb3('0x8')]);router[_0xbeb3('0x9')](_0xbeb3('0xa'),auth[_0xbeb3('0x7')](),controller[_0xbeb3('0xb')]);router['get'](_0xbeb3('0xc'),auth[_0xbeb3('0x7')](),controller[_0xbeb3('0xd')]);router[_0xbeb3('0x9')](_0xbeb3('0xe'),auth[_0xbeb3('0x7')](),controller[_0xbeb3('0xf')]);router['post']('/',auth[_0xbeb3('0x7')](),controller[_0xbeb3('0x10')]);router['post'](_0xbeb3('0xe'),auth[_0xbeb3('0x7')](),controller[_0xbeb3('0x11')]);router[_0xbeb3('0x12')](_0xbeb3('0xc'),auth[_0xbeb3('0x7')](),controller['update']);router['delete'](_0xbeb3('0xc'),auth[_0xbeb3('0x7')](),controller['destroy']);module['exports']=router;