052e7503c424ca553aea152a98715495d77dacab
[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 _0xa8b1=['getAgents','post','create','/:id/dispositions','addDisposition','addContacts','put','update','delete','destroy','removeAgents','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','./cmList.controller','get','index','/describe','describe','/:id','isAuthenticated','show','getDispositions','/:id/contacts','getContacts','/:id/contacts/csv','/:id/fields','getCustomFields','/:id/users'];(function(_0x14cf51,_0x475f5c){var _0x439dc8=function(_0x10cc39){while(--_0x10cc39){_0x14cf51['push'](_0x14cf51['shift']());}};_0x439dc8(++_0x475f5c);}(_0xa8b1,0x182));var _0x1a8b=function(_0x3b98b4,_0x467687){_0x3b98b4=_0x3b98b4-0x0;var _0x4863ff=_0xa8b1[_0x3b98b4];return _0x4863ff;};'use strict';var multer=require(_0x1a8b('0x0'));var util=require(_0x1a8b('0x1'));var path=require(_0x1a8b('0x2'));var timeout=require(_0x1a8b('0x3'));var express=require(_0x1a8b('0x4'));var router=express[_0x1a8b('0x5')]();var auth=require(_0x1a8b('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x1a8b('0x7'));router[_0x1a8b('0x8')]('/',auth['isAuthenticated'](),controller[_0x1a8b('0x9')]);router[_0x1a8b('0x8')](_0x1a8b('0xa'),auth['isAuthenticated'](),controller[_0x1a8b('0xb')]);router[_0x1a8b('0x8')](_0x1a8b('0xc'),auth[_0x1a8b('0xd')](),controller[_0x1a8b('0xe')]);router[_0x1a8b('0x8')]('/:id/dispositions',auth[_0x1a8b('0xd')](),controller[_0x1a8b('0xf')]);router[_0x1a8b('0x8')](_0x1a8b('0x10'),auth['isAuthenticated'](),controller[_0x1a8b('0x11')]);router[_0x1a8b('0x8')](_0x1a8b('0x12'),auth['isAuthenticated'](),controller['getContactsCsv']);router[_0x1a8b('0x8')](_0x1a8b('0x13'),auth['isAuthenticated'](),controller[_0x1a8b('0x14')]);router[_0x1a8b('0x8')](_0x1a8b('0x15'),auth[_0x1a8b('0xd')](),controller[_0x1a8b('0x16')]);router[_0x1a8b('0x17')]('/',auth['isAuthenticated'](),controller[_0x1a8b('0x18')]);router['post'](_0x1a8b('0x19'),auth['isAuthenticated'](),controller[_0x1a8b('0x1a')]);router[_0x1a8b('0x17')](_0x1a8b('0x10'),auth[_0x1a8b('0xd')](),controller[_0x1a8b('0x1b')]);router['post'](_0x1a8b('0x13'),auth[_0x1a8b('0xd')](),controller['addCustomField']);router['post'](_0x1a8b('0x15'),auth[_0x1a8b('0xd')](),controller['addAgents']);router[_0x1a8b('0x1c')](_0x1a8b('0xc'),auth[_0x1a8b('0xd')](),controller[_0x1a8b('0x1d')]);router[_0x1a8b('0x1e')](_0x1a8b('0xc'),auth['isAuthenticated'](),controller[_0x1a8b('0x1f')]);router['delete'](_0x1a8b('0x19'),auth[_0x1a8b('0xd')](),controller['removeDispositions']);router[_0x1a8b('0x1e')](_0x1a8b('0x15'),auth[_0x1a8b('0xd')](),controller[_0x1a8b('0x20')]);module[_0x1a8b('0x21')]=router;