8edcda2e0601f2020c8224ef1c8252b732cbf2a6
[motion2.git] / server / api / openchannelAccount / 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 _0x5bd4=['../../config/environment','./openchannelAccount.controller','get','isAuthenticated','index','describe','/:id','show','/:id/dispositions','getDispositions','/:id/canned_answers','getAnswers','/:id/applications','getApplications','/:id/interactions','/:id/users','post','create','addDisposition','/:id/notify','notify','addAgents','/:id/send','send','put','update','destroy','removeDispositions','delete','removeAnswers','removeAgents','exports','multer','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service'];(function(_0x21eccd,_0x2108f8){var _0x1125a9=function(_0x44ab36){while(--_0x44ab36){_0x21eccd['push'](_0x21eccd['shift']());}};_0x1125a9(++_0x2108f8);}(_0x5bd4,0x6c));var _0x45bd=function(_0x36b5c2,_0x198fd6){_0x36b5c2=_0x36b5c2-0x0;var _0x17da45=_0x5bd4[_0x36b5c2];return _0x17da45;};'use strict';var multer=require(_0x45bd('0x0'));var util=require('util');var path=require(_0x45bd('0x1'));var timeout=require(_0x45bd('0x2'));var express=require(_0x45bd('0x3'));var router=express['Router']();var auth=require(_0x45bd('0x4'));var interaction=require(_0x45bd('0x5'));var config=require(_0x45bd('0x6'));var controller=require(_0x45bd('0x7'));router[_0x45bd('0x8')]('/',auth[_0x45bd('0x9')](),controller[_0x45bd('0xa')]);router['get']('/describe',auth[_0x45bd('0x9')](),controller[_0x45bd('0xb')]);router[_0x45bd('0x8')](_0x45bd('0xc'),auth[_0x45bd('0x9')](),controller[_0x45bd('0xd')]);router[_0x45bd('0x8')](_0x45bd('0xe'),auth[_0x45bd('0x9')](),controller[_0x45bd('0xf')]);router[_0x45bd('0x8')](_0x45bd('0x10'),auth[_0x45bd('0x9')](),controller[_0x45bd('0x11')]);router[_0x45bd('0x8')](_0x45bd('0x12'),auth['isAuthenticated'](),controller[_0x45bd('0x13')]);router[_0x45bd('0x8')](_0x45bd('0x14'),auth[_0x45bd('0x9')](),controller['getInteractions']);router[_0x45bd('0x8')](_0x45bd('0x15'),auth[_0x45bd('0x9')](),controller['getAgents']);router[_0x45bd('0x16')]('/',auth[_0x45bd('0x9')](),controller[_0x45bd('0x17')]);router[_0x45bd('0x16')](_0x45bd('0xe'),auth[_0x45bd('0x9')](),controller[_0x45bd('0x18')]);router[_0x45bd('0x16')](_0x45bd('0x10'),auth['isAuthenticated'](),controller['addAnswer']);router['post'](_0x45bd('0x19'),controller[_0x45bd('0x1a')]);router[_0x45bd('0x16')](_0x45bd('0x12'),auth[_0x45bd('0x9')](),controller['addApplications']);router['post'](_0x45bd('0x15'),auth[_0x45bd('0x9')](),controller[_0x45bd('0x1b')]);router[_0x45bd('0x16')](_0x45bd('0x1c'),auth['isAuthenticated'](),controller[_0x45bd('0x1d')]);router[_0x45bd('0x1e')](_0x45bd('0xc'),auth[_0x45bd('0x9')](),controller[_0x45bd('0x1f')]);router['delete'](_0x45bd('0xc'),auth['isAuthenticated'](),controller[_0x45bd('0x20')]);router['delete']('/:id/dispositions',auth[_0x45bd('0x9')](),controller[_0x45bd('0x21')]);router[_0x45bd('0x22')](_0x45bd('0x10'),auth['isAuthenticated'](),controller[_0x45bd('0x23')]);router[_0x45bd('0x22')](_0x45bd('0x15'),auth[_0x45bd('0x9')](),controller[_0x45bd('0x24')]);module[_0x45bd('0x25')]=router;