e299d8747f6178bf867075e9e421cf4d7db4f51d
[motion2.git] / server / api / cmList / 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 _0xf0d8=['addAgents','/:id','delete','destroy','removeDispositions','removeAgents','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmList.controller','get','index','/describe','isAuthenticated','describe','show','/:id/dispositions','getDispositions','/:id/contacts','getContacts','/:id/contacts/csv','getContactsCsv','getCustomFields','/:id/users','getAgents','post','create','addDisposition','addContacts','/:id/fields','addCustomField'];(function(_0x27a227,_0x939e34){var _0x3418ce=function(_0x56f932){while(--_0x56f932){_0x27a227['push'](_0x27a227['shift']());}};_0x3418ce(++_0x939e34);}(_0xf0d8,0x111));var _0x8f0d=function(_0x1878c2,_0x4d409d){_0x1878c2=_0x1878c2-0x0;var _0x1871f3=_0xf0d8[_0x1878c2];return _0x1871f3;};'use strict';var multer=require(_0x8f0d('0x0'));var util=require(_0x8f0d('0x1'));var path=require(_0x8f0d('0x2'));var timeout=require('connect-timeout');var express=require(_0x8f0d('0x3'));var router=express[_0x8f0d('0x4')]();var fs_extra=require(_0x8f0d('0x5'));var auth=require(_0x8f0d('0x6'));var interaction=require(_0x8f0d('0x7'));var config=require(_0x8f0d('0x8'));var controller=require(_0x8f0d('0x9'));router[_0x8f0d('0xa')]('/',auth['isAuthenticated'](),controller[_0x8f0d('0xb')]);router[_0x8f0d('0xa')](_0x8f0d('0xc'),auth[_0x8f0d('0xd')](),controller[_0x8f0d('0xe')]);router['get']('/:id',auth[_0x8f0d('0xd')](),controller[_0x8f0d('0xf')]);router[_0x8f0d('0xa')](_0x8f0d('0x10'),auth[_0x8f0d('0xd')](),controller[_0x8f0d('0x11')]);router[_0x8f0d('0xa')](_0x8f0d('0x12'),auth[_0x8f0d('0xd')](),controller[_0x8f0d('0x13')]);router[_0x8f0d('0xa')](_0x8f0d('0x14'),auth[_0x8f0d('0xd')](),controller[_0x8f0d('0x15')]);router[_0x8f0d('0xa')]('/:id/fields',auth[_0x8f0d('0xd')](),controller[_0x8f0d('0x16')]);router[_0x8f0d('0xa')](_0x8f0d('0x17'),auth['isAuthenticated'](),controller[_0x8f0d('0x18')]);router[_0x8f0d('0x19')]('/',auth[_0x8f0d('0xd')](),controller[_0x8f0d('0x1a')]);router[_0x8f0d('0x19')]('/:id/dispositions',auth[_0x8f0d('0xd')](),controller[_0x8f0d('0x1b')]);router[_0x8f0d('0x19')](_0x8f0d('0x12'),auth[_0x8f0d('0xd')](),controller[_0x8f0d('0x1c')]);router[_0x8f0d('0x19')](_0x8f0d('0x1d'),auth['isAuthenticated'](),controller[_0x8f0d('0x1e')]);router[_0x8f0d('0x19')](_0x8f0d('0x17'),auth[_0x8f0d('0xd')](),controller[_0x8f0d('0x1f')]);router['put'](_0x8f0d('0x20'),auth['isAuthenticated'](),controller['update']);router[_0x8f0d('0x21')](_0x8f0d('0x20'),auth[_0x8f0d('0xd')](),controller[_0x8f0d('0x22')]);router[_0x8f0d('0x21')](_0x8f0d('0x10'),auth[_0x8f0d('0xd')](),controller[_0x8f0d('0x23')]);router[_0x8f0d('0x21')](_0x8f0d('0x17'),auth[_0x8f0d('0xd')](),controller[_0x8f0d('0x24')]);module[_0x8f0d('0x25')]=router;