Built motion from commit (unavailable).|2.5.3
[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 _0x37b8=['keyType','keyContent','idField','customField','Tags','GetDeskAccount','../../client','getDeskAccounts','Request','name','description','username','password','remoteUri','authType','type','serverUrl','DeskConfiguration','DeskField','content','variableName','Variable','Descriptions','key'];(function(_0x5c12f2,_0x5de043){var _0x5e8344=function(_0x445932){while(--_0x445932){_0x5c12f2['push'](_0x5c12f2['shift']());}};_0x5e8344(++_0x5de043);}(_0x37b8,0x186));var _0x837b=function(_0x330d1f,_0x47c710){_0x330d1f=_0x330d1f-0x0;var _0x1df784=_0x37b8[_0x330d1f];return _0x1df784;};'use strict';var client=require(_0x837b('0x0'));exports[_0x837b('0x1')]=function(){return function(_0x445c07){return client[_0x837b('0x2')]('GetDeskAccount',{'options':{'raw':![],'attributes':['id',_0x837b('0x3'),_0x837b('0x4'),_0x837b('0x5'),_0x837b('0x6'),_0x837b('0x7'),_0x837b('0x8'),_0x837b('0x9'),_0x837b('0xa')],'include':[{'model':_0x837b('0xb'),'as':'Configurations','attributes':['id',_0x837b('0x3')],'include':[{'model':_0x837b('0xc'),'as':'Subjects','attributes':['id',_0x837b('0x9'),_0x837b('0xd'),_0x837b('0xe')],'include':[{'model':_0x837b('0xf'),'as':_0x837b('0xf'),'attributes':['id',_0x837b('0x3')]}]},{'model':'DeskField','as':_0x837b('0x10'),'attributes':['id',_0x837b('0x9'),_0x837b('0xd'),_0x837b('0x11'),_0x837b('0x12'),_0x837b('0x13'),_0x837b('0xe')],'include':[{'model':'Variable','as':_0x837b('0xf'),'attributes':['id',_0x837b('0x3')]}]},{'model':'DeskField','as':'Fields','attributes':['id',_0x837b('0x9'),_0x837b('0xd'),_0x837b('0x14'),'nameField',_0x837b('0x15'),'variableName'],'include':[{'model':_0x837b('0xf'),'as':_0x837b('0xf'),'attributes':['id',_0x837b('0x3')]}]},{'model':'Tag','as':_0x837b('0x16'),'attributes':['id','name']}]}]},'log':_0x837b('0x17')});};};