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