Built motion from commit (unavailable).|2.5.29
[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 _0xa277=['multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmCompany.controller','get','isAuthenticated','index','/describe','/:id','/:id/contacts','getContacts','create','post','addContacts','put','update','delete','destroy','exports'];(function(_0x8a345c,_0x40a99c){var _0x4e95d8=function(_0xe38eec){while(--_0xe38eec){_0x8a345c['push'](_0x8a345c['shift']());}};_0x4e95d8(++_0x40a99c);}(_0xa277,0xc8));var _0x7a27=function(_0x33b144,_0x26157d){_0x33b144=_0x33b144-0x0;var _0x27433a=_0xa277[_0x33b144];return _0x27433a;};'use strict';var multer=require(_0x7a27('0x0'));var util=require(_0x7a27('0x1'));var path=require(_0x7a27('0x2'));var timeout=require(_0x7a27('0x3'));var express=require('express');var router=express[_0x7a27('0x4')]();var fs_extra=require(_0x7a27('0x5'));var auth=require(_0x7a27('0x6'));var interaction=require(_0x7a27('0x7'));var config=require(_0x7a27('0x8'));var controller=require(_0x7a27('0x9'));router[_0x7a27('0xa')]('/',auth[_0x7a27('0xb')](),controller[_0x7a27('0xc')]);router[_0x7a27('0xa')](_0x7a27('0xd'),auth[_0x7a27('0xb')](),controller['describe']);router[_0x7a27('0xa')](_0x7a27('0xe'),auth['isAuthenticated'](),controller['show']);router['get'](_0x7a27('0xf'),auth[_0x7a27('0xb')](),controller[_0x7a27('0x10')]);router['post']('/',auth[_0x7a27('0xb')](),controller[_0x7a27('0x11')]);router[_0x7a27('0x12')](_0x7a27('0xf'),auth[_0x7a27('0xb')](),controller[_0x7a27('0x13')]);router[_0x7a27('0x14')]('/:id',auth['isAuthenticated'](),controller[_0x7a27('0x15')]);router[_0x7a27('0x16')](_0x7a27('0xe'),auth[_0x7a27('0xb')](),controller[_0x7a27('0x17')]);module[_0x7a27('0x18')]=router;