4b2df1cf855fb25f8596e31b48ffe830c9deb239
[motion2.git] / server / api / saCompanyRelationship / 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 _0x4fc9=['/describe','isAuthenticated','describe','show','create','/:id','destroy','exports','multer','util','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./saCompanyRelationship.controller','get','index'];(function(_0x13ceed,_0xecda6a){var _0x545d11=function(_0x3f40a0){while(--_0x3f40a0){_0x13ceed['push'](_0x13ceed['shift']());}};_0x545d11(++_0xecda6a);}(_0x4fc9,0x1c2));var _0x94fc=function(_0x186557,_0x47e458){_0x186557=_0x186557-0x0;var _0x3db94c=_0x4fc9[_0x186557];return _0x3db94c;};'use strict';var multer=require(_0x94fc('0x0'));var util=require(_0x94fc('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x94fc('0x2'));var router=express['Router']();var auth=require(_0x94fc('0x3'));var interaction=require(_0x94fc('0x4'));var config=require(_0x94fc('0x5'));var controller=require(_0x94fc('0x6'));router[_0x94fc('0x7')]('/',auth['isAuthenticated'](),controller[_0x94fc('0x8')]);router[_0x94fc('0x7')](_0x94fc('0x9'),auth[_0x94fc('0xa')](),controller[_0x94fc('0xb')]);router[_0x94fc('0x7')]('/:id',auth[_0x94fc('0xa')](),controller[_0x94fc('0xc')]);router['post']('/',auth[_0x94fc('0xa')](),controller[_0x94fc('0xd')]);router['put'](_0x94fc('0xe'),auth[_0x94fc('0xa')](),controller['update']);router['delete'](_0x94fc('0xe'),auth[_0x94fc('0xa')](),controller[_0x94fc('0xf')]);module[_0x94fc('0x10')]=router;