149819df371263c43965b7574e9acf40c50877d4
[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 _0x43eb=['password','remoteUri','type','serverUrl','Configurations','DeskField','Subjects','content','variableName','Variable','keyType','keyContent','Fields','nameField','Tags','../../client','getDeskAccounts','Request','GetDeskAccount','name','description','username'];(function(_0x156a0d,_0x3946ce){var _0x98a9ba=function(_0x46c1b2){while(--_0x46c1b2){_0x156a0d['push'](_0x156a0d['shift']());}};_0x98a9ba(++_0x3946ce);}(_0x43eb,0x1c7));var _0xb43e=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x43eb[_0x3dd15e];return _0x231fd0;};'use strict';var client=require(_0xb43e('0x0'));exports[_0xb43e('0x1')]=function(){return function(_0x58aa1c){return client[_0xb43e('0x2')](_0xb43e('0x3'),{'options':{'raw':![],'attributes':['id',_0xb43e('0x4'),_0xb43e('0x5'),_0xb43e('0x6'),_0xb43e('0x7'),_0xb43e('0x8'),'authType',_0xb43e('0x9'),_0xb43e('0xa')],'include':[{'model':'DeskConfiguration','as':_0xb43e('0xb'),'attributes':['id',_0xb43e('0x4')],'include':[{'model':_0xb43e('0xc'),'as':_0xb43e('0xd'),'attributes':['id',_0xb43e('0x9'),_0xb43e('0xe'),_0xb43e('0xf')],'include':[{'model':_0xb43e('0x10'),'as':_0xb43e('0x10'),'attributes':['id','name']}]},{'model':_0xb43e('0xc'),'as':'Descriptions','attributes':['id','type','content','key',_0xb43e('0x11'),_0xb43e('0x12'),_0xb43e('0xf')],'include':[{'model':_0xb43e('0x10'),'as':_0xb43e('0x10'),'attributes':['id','name']}]},{'model':_0xb43e('0xc'),'as':_0xb43e('0x13'),'attributes':['id',_0xb43e('0x9'),_0xb43e('0xe'),'idField',_0xb43e('0x14'),'customField',_0xb43e('0xf')],'include':[{'model':_0xb43e('0x10'),'as':_0xb43e('0x10'),'attributes':['id',_0xb43e('0x4')]}]},{'model':'Tag','as':_0xb43e('0x15'),'attributes':['id',_0xb43e('0x4')]}]}]},'log':_0xb43e('0x3')});};};