2563d2130d0668f956e4a538b12880615b9105f6
[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 _0xd19e=['keyContent','Fields','idField','customField','Tag','Tags','../../client','GetDeskAccount','name','username','remoteUri','authType','serverUrl','DeskConfiguration','Configurations','DeskField','type','variableName','Variable','Descriptions','content'];(function(_0x290dd3,_0x1d1d9c){var _0x594793=function(_0x50b0ef){while(--_0x50b0ef){_0x290dd3['push'](_0x290dd3['shift']());}};_0x594793(++_0x1d1d9c);}(_0xd19e,0xc3));var _0xed19=function(_0x4a4ef4,_0x44c478){_0x4a4ef4=_0x4a4ef4-0x0;var _0x46cdd1=_0xd19e[_0x4a4ef4];return _0x46cdd1;};'use strict';var client=require(_0xed19('0x0'));exports['getDeskAccounts']=function(){return function(_0x39b967){return client['Request'](_0xed19('0x1'),{'options':{'raw':![],'attributes':['id',_0xed19('0x2'),'description',_0xed19('0x3'),'password',_0xed19('0x4'),_0xed19('0x5'),'type',_0xed19('0x6')],'include':[{'model':_0xed19('0x7'),'as':_0xed19('0x8'),'attributes':['id','name'],'include':[{'model':_0xed19('0x9'),'as':'Subjects','attributes':['id',_0xed19('0xa'),'content',_0xed19('0xb')],'include':[{'model':_0xed19('0xc'),'as':_0xed19('0xc'),'attributes':['id',_0xed19('0x2')]}]},{'model':_0xed19('0x9'),'as':_0xed19('0xd'),'attributes':['id',_0xed19('0xa'),_0xed19('0xe'),'key','keyType',_0xed19('0xf'),_0xed19('0xb')],'include':[{'model':_0xed19('0xc'),'as':_0xed19('0xc'),'attributes':['id',_0xed19('0x2')]}]},{'model':'DeskField','as':_0xed19('0x10'),'attributes':['id',_0xed19('0xa'),_0xed19('0xe'),_0xed19('0x11'),'nameField',_0xed19('0x12'),'variableName'],'include':[{'model':_0xed19('0xc'),'as':_0xed19('0xc'),'attributes':['id',_0xed19('0x2')]}]},{'model':_0xed19('0x13'),'as':_0xed19('0x14'),'attributes':['id',_0xed19('0x2')]}]}]},'log':_0xed19('0x1')});};};