799baf1d529fb019502d1616d849caa3a6bbe835
[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 _0x67e5=['Variable','Descriptions','key','keyType','keyContent','variableName','idField','nameField','customField','Tag','Tags','../../client','getDeskAccounts','Request','GetDeskAccount','description','username','password','authType','type','serverUrl','Configurations','name','DeskField','Subjects','content'];(function(_0xd601d8,_0x8bb177){var _0x61522b=function(_0x6f2595){while(--_0x6f2595){_0xd601d8['push'](_0xd601d8['shift']());}};_0x61522b(++_0x8bb177);}(_0x67e5,0xf5));var _0x567e=function(_0x2243a3,_0x2ced00){_0x2243a3=_0x2243a3-0x0;var _0x363c48=_0x67e5[_0x2243a3];return _0x363c48;};'use strict';var client=require(_0x567e('0x0'));exports[_0x567e('0x1')]=function(){return function(_0x4c1c33){return client[_0x567e('0x2')](_0x567e('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x567e('0x4'),_0x567e('0x5'),_0x567e('0x6'),'remoteUri',_0x567e('0x7'),_0x567e('0x8'),_0x567e('0x9')],'include':[{'model':'DeskConfiguration','as':_0x567e('0xa'),'attributes':['id',_0x567e('0xb')],'include':[{'model':_0x567e('0xc'),'as':_0x567e('0xd'),'attributes':['id',_0x567e('0x8'),_0x567e('0xe'),'variableName'],'include':[{'model':_0x567e('0xf'),'as':'Variable','attributes':['id','name']}]},{'model':_0x567e('0xc'),'as':_0x567e('0x10'),'attributes':['id',_0x567e('0x8'),_0x567e('0xe'),_0x567e('0x11'),_0x567e('0x12'),_0x567e('0x13'),_0x567e('0x14')],'include':[{'model':_0x567e('0xf'),'as':_0x567e('0xf'),'attributes':['id',_0x567e('0xb')]}]},{'model':'DeskField','as':'Fields','attributes':['id',_0x567e('0x8'),_0x567e('0xe'),_0x567e('0x15'),_0x567e('0x16'),_0x567e('0x17'),'variableName'],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x567e('0xb')]}]},{'model':_0x567e('0x18'),'as':_0x567e('0x19'),'attributes':['id',_0x567e('0xb')]}]}]},'log':_0x567e('0x3')});};};