Built motion from commit 52c8a02d.|2.6.29
[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 _0xac9e=['getContacts','/:id/contacts/csv','getContactsCsv','/:id/users','getAgents','post','create','/:id/dispositions','addDisposition','addContacts','/:id/fields','addCustomField','addAgents','put','/:id','update','delete','destroy','removeDispositions','removeAgents','exports','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','./cmList.controller','get','isAuthenticated','/describe','/global_fields','show','getDispositions','/:id/contacts'];(function(_0x17c3f5,_0x28cfe7){var _0x4b7da2=function(_0x32e1bc){while(--_0x32e1bc){_0x17c3f5['push'](_0x17c3f5['shift']());}};_0x4b7da2(++_0x28cfe7);}(_0xac9e,0x1b9));var _0xeac9=function(_0x45b96e,_0x478605){_0x45b96e=_0x45b96e-0x0;var _0x5686e1=_0xac9e[_0x45b96e];return _0x5686e1;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xeac9('0x0'));var timeout=require(_0xeac9('0x1'));var express=require(_0xeac9('0x2'));var router=express[_0xeac9('0x3')]();var fs_extra=require(_0xeac9('0x4'));var auth=require(_0xeac9('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xeac9('0x6'));router[_0xeac9('0x7')]('/',auth[_0xeac9('0x8')](),controller['index']);router[_0xeac9('0x7')](_0xeac9('0x9'),auth[_0xeac9('0x8')](),controller['describe']);router[_0xeac9('0x7')](_0xeac9('0xa'),auth[_0xeac9('0x8')](),controller['getGlobalCustomFields']);router[_0xeac9('0x7')]('/:id',auth[_0xeac9('0x8')](),controller[_0xeac9('0xb')]);router[_0xeac9('0x7')]('/:id/dispositions',auth[_0xeac9('0x8')](),controller[_0xeac9('0xc')]);router['get'](_0xeac9('0xd'),auth[_0xeac9('0x8')](),controller[_0xeac9('0xe')]);router[_0xeac9('0x7')](_0xeac9('0xf'),auth['isAuthenticated'](),controller[_0xeac9('0x10')]);router[_0xeac9('0x7')]('/:id/fields',auth[_0xeac9('0x8')](),controller['getCustomFields']);router['get'](_0xeac9('0x11'),auth[_0xeac9('0x8')](),controller[_0xeac9('0x12')]);router[_0xeac9('0x13')]('/',auth[_0xeac9('0x8')](),controller[_0xeac9('0x14')]);router[_0xeac9('0x13')](_0xeac9('0x15'),auth[_0xeac9('0x8')](),controller[_0xeac9('0x16')]);router['post']('/:id/contacts',auth[_0xeac9('0x8')](),controller[_0xeac9('0x17')]);router[_0xeac9('0x13')](_0xeac9('0x18'),auth[_0xeac9('0x8')](),controller[_0xeac9('0x19')]);router[_0xeac9('0x13')](_0xeac9('0x11'),auth[_0xeac9('0x8')](),controller[_0xeac9('0x1a')]);router[_0xeac9('0x1b')](_0xeac9('0x1c'),auth[_0xeac9('0x8')](),controller[_0xeac9('0x1d')]);router[_0xeac9('0x1e')]('/:id',auth['isAuthenticated'](),controller[_0xeac9('0x1f')]);router['delete'](_0xeac9('0x15'),auth[_0xeac9('0x8')](),controller[_0xeac9('0x20')]);router['delete'](_0xeac9('0x11'),auth[_0xeac9('0x8')](),controller[_0xeac9('0x21')]);module[_0xeac9('0x22')]=router;