5de0990231a2b99770e490ef6dde98b97d905aac
[motion2.git] / server / services / ami / rpc / integrations / desk.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 _0xf613=['variableName','Variable','name','Descriptions','key','keyType','Fields','idField','nameField','customField','Tag','Tags','../../client','getDeskAccounts','description','username','remoteUri','authType','type','serverUrl','DeskField','content'];(function(_0x5365a9,_0x34eee4){var _0x43b00c=function(_0x42de41){while(--_0x42de41){_0x5365a9['push'](_0x5365a9['shift']());}};_0x43b00c(++_0x34eee4);}(_0xf613,0xfe));var _0x3f61=function(_0x2b5587,_0x2de0c0){_0x2b5587=_0x2b5587-0x0;var _0x317e3a=_0xf613[_0x2b5587];return _0x317e3a;};'use strict';var client=require(_0x3f61('0x0'));exports[_0x3f61('0x1')]=function(){return function(_0x157d20){return client['Request']('GetDeskAccount',{'options':{'raw':![],'attributes':['id','name',_0x3f61('0x2'),_0x3f61('0x3'),'password',_0x3f61('0x4'),_0x3f61('0x5'),_0x3f61('0x6'),_0x3f61('0x7')],'include':[{'model':'DeskConfiguration','as':'Configurations','attributes':['id','name'],'include':[{'model':_0x3f61('0x8'),'as':'Subjects','attributes':['id',_0x3f61('0x6'),_0x3f61('0x9'),_0x3f61('0xa')],'include':[{'model':_0x3f61('0xb'),'as':'Variable','attributes':['id',_0x3f61('0xc')]}]},{'model':_0x3f61('0x8'),'as':_0x3f61('0xd'),'attributes':['id','type','content',_0x3f61('0xe'),_0x3f61('0xf'),'keyContent',_0x3f61('0xa')],'include':[{'model':_0x3f61('0xb'),'as':_0x3f61('0xb'),'attributes':['id','name']}]},{'model':'DeskField','as':_0x3f61('0x10'),'attributes':['id',_0x3f61('0x6'),_0x3f61('0x9'),_0x3f61('0x11'),_0x3f61('0x12'),_0x3f61('0x13'),'variableName'],'include':[{'model':_0x3f61('0xb'),'as':'Variable','attributes':['id',_0x3f61('0xc')]}]},{'model':_0x3f61('0x14'),'as':_0x3f61('0x15'),'attributes':['id',_0x3f61('0xc')]}]}]},'log':'GetDeskAccount'});};};