501a67af56923c218f74c6901ab4e670bd4f306d
[motion2.git] / server / api / faxAccount / 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 _0x022a=['express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/describe','isAuthenticated','describe','/:id','show','getDispositions','/:id/canned_answers','getAnswers','getInteractions','/:id/applications','getApplications','/:id/messages','getMessages','/:id/users','getAgents','create','post','/:id/dispositions','addDisposition','/addaccountapplications','addAccountApplications','/updateaccountapplications','updateAccountApplications','/:id/send','send','update','delete','destroy','removeAnswers','removeAgents','exports','util','connect-timeout'];(function(_0x2f2360,_0x151089){var _0x1cc8d3=function(_0x5e356f){while(--_0x5e356f){_0x2f2360['push'](_0x2f2360['shift']());}};_0x1cc8d3(++_0x151089);}(_0x022a,0x1de));var _0xa022=function(_0x2872b0,_0x4b0855){_0x2872b0=_0x2872b0-0x0;var _0x58b379=_0x022a[_0x2872b0];return _0x58b379;};'use strict';var multer=require('multer');var util=require(_0xa022('0x0'));var path=require('path');var timeout=require(_0xa022('0x1'));var express=require(_0xa022('0x2'));var router=express[_0xa022('0x3')]();var auth=require(_0xa022('0x4'));var interaction=require(_0xa022('0x5'));var config=require(_0xa022('0x6'));var controller=require('./faxAccount.controller');router[_0xa022('0x7')]('/',auth['isAuthenticated'](),controller[_0xa022('0x8')]);router[_0xa022('0x7')](_0xa022('0x9'),auth[_0xa022('0xa')](),controller[_0xa022('0xb')]);router[_0xa022('0x7')](_0xa022('0xc'),auth[_0xa022('0xa')](),controller[_0xa022('0xd')]);router[_0xa022('0x7')]('/:id/dispositions',auth[_0xa022('0xa')](),controller[_0xa022('0xe')]);router[_0xa022('0x7')](_0xa022('0xf'),auth[_0xa022('0xa')](),controller[_0xa022('0x10')]);router['get']('/:id/interactions',auth[_0xa022('0xa')](),controller[_0xa022('0x11')]);router[_0xa022('0x7')](_0xa022('0x12'),auth[_0xa022('0xa')](),controller[_0xa022('0x13')]);router[_0xa022('0x7')](_0xa022('0x14'),auth['isAuthenticated'](),controller[_0xa022('0x15')]);router['get'](_0xa022('0x16'),auth[_0xa022('0xa')](),controller[_0xa022('0x17')]);router['post']('/',auth[_0xa022('0xa')](),controller[_0xa022('0x18')]);router[_0xa022('0x19')](_0xa022('0x1a'),auth[_0xa022('0xa')](),controller[_0xa022('0x1b')]);router[_0xa022('0x19')](_0xa022('0xf'),auth[_0xa022('0xa')](),controller['addAnswer']);router[_0xa022('0x19')]('/:id/interactions',auth[_0xa022('0xa')](),controller['addInteraction']);router[_0xa022('0x19')]('/:id/applications',auth[_0xa022('0xa')](),controller['addApplications']);router[_0xa022('0x19')](_0xa022('0x1c'),auth[_0xa022('0xa')](),controller[_0xa022('0x1d')]);router[_0xa022('0x19')](_0xa022('0x1e'),auth[_0xa022('0xa')](),controller[_0xa022('0x1f')]);router[_0xa022('0x19')](_0xa022('0x20'),auth[_0xa022('0xa')](),controller[_0xa022('0x21')]);router['post']('/:id/users',auth['isAuthenticated'](),controller['addAgents']);router['put']('/:id',auth['isAuthenticated'](),controller[_0xa022('0x22')]);router[_0xa022('0x23')](_0xa022('0xc'),auth[_0xa022('0xa')](),controller[_0xa022('0x24')]);router['delete']('/:id/dispositions',auth[_0xa022('0xa')](),controller['removeDispositions']);router[_0xa022('0x23')]('/:id/canned_answers',auth['isAuthenticated'](),controller[_0xa022('0x25')]);router['delete'](_0xa022('0x16'),auth[_0xa022('0xa')](),controller[_0xa022('0x26')]);module[_0xa022('0x27')]=router;