b40f00d39ab655a490cf88f5fd82799d31755576
[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 _0xc2f4=['addAnswer','/:id/notify','notify','addApplications','addAgents','/:id/send','send','put','/:id','delete','destroy','removeAnswers','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/describe','/:id/dispositions','getDispositions','/:id/canned_answers','getAnswers','getApplications','/:id/interactions','/:id/users','getAgents','create','post'];(function(_0x5218c9,_0x15197c){var _0x4ac883=function(_0x2f18b3){while(--_0x2f18b3){_0x5218c9['push'](_0x5218c9['shift']());}};_0x4ac883(++_0x15197c);}(_0xc2f4,0x1bd));var _0x4c2f=function(_0xab2865,_0x32e71e){_0xab2865=_0xab2865-0x0;var _0x31f344=_0xc2f4[_0xab2865];return _0x31f344;};'use strict';var multer=require(_0x4c2f('0x0'));var util=require(_0x4c2f('0x1'));var path=require(_0x4c2f('0x2'));var timeout=require(_0x4c2f('0x3'));var express=require(_0x4c2f('0x4'));var router=express[_0x4c2f('0x5')]();var fs_extra=require(_0x4c2f('0x6'));var auth=require(_0x4c2f('0x7'));var interaction=require(_0x4c2f('0x8'));var config=require(_0x4c2f('0x9'));var controller=require('./openchannelAccount.controller');router[_0x4c2f('0xa')]('/',auth[_0x4c2f('0xb')](),controller['index']);router[_0x4c2f('0xa')](_0x4c2f('0xc'),auth[_0x4c2f('0xb')](),controller['describe']);router[_0x4c2f('0xa')]('/:id',auth[_0x4c2f('0xb')](),controller['show']);router[_0x4c2f('0xa')](_0x4c2f('0xd'),auth['isAuthenticated'](),controller[_0x4c2f('0xe')]);router[_0x4c2f('0xa')](_0x4c2f('0xf'),auth['isAuthenticated'](),controller[_0x4c2f('0x10')]);router[_0x4c2f('0xa')]('/:id/applications',auth[_0x4c2f('0xb')](),controller[_0x4c2f('0x11')]);router[_0x4c2f('0xa')](_0x4c2f('0x12'),auth[_0x4c2f('0xb')](),controller['getInteractions']);router['get'](_0x4c2f('0x13'),auth[_0x4c2f('0xb')](),controller[_0x4c2f('0x14')]);router['post']('/',auth[_0x4c2f('0xb')](),controller[_0x4c2f('0x15')]);router[_0x4c2f('0x16')](_0x4c2f('0xd'),auth[_0x4c2f('0xb')](),controller['addDisposition']);router['post'](_0x4c2f('0xf'),auth[_0x4c2f('0xb')](),controller[_0x4c2f('0x17')]);router[_0x4c2f('0x16')](_0x4c2f('0x18'),controller[_0x4c2f('0x19')]);router[_0x4c2f('0x16')]('/:id/applications',auth[_0x4c2f('0xb')](),controller[_0x4c2f('0x1a')]);router[_0x4c2f('0x16')](_0x4c2f('0x13'),auth['isAuthenticated'](),controller[_0x4c2f('0x1b')]);router['post'](_0x4c2f('0x1c'),auth[_0x4c2f('0xb')](),controller[_0x4c2f('0x1d')]);router[_0x4c2f('0x1e')](_0x4c2f('0x1f'),auth[_0x4c2f('0xb')](),controller['update']);router[_0x4c2f('0x20')]('/:id',auth[_0x4c2f('0xb')](),controller[_0x4c2f('0x21')]);router[_0x4c2f('0x20')](_0x4c2f('0xd'),auth[_0x4c2f('0xb')](),controller['removeDispositions']);router[_0x4c2f('0x20')](_0x4c2f('0xf'),auth[_0x4c2f('0xb')](),controller[_0x4c2f('0x22')]);router[_0x4c2f('0x20')](_0x4c2f('0x13'),auth['isAuthenticated'](),controller['removeAgents']);module[_0x4c2f('0x23')]=router;