c0feff6f53daab1502a5facd9e6ba5ee0451deca
[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 _0xbf45=['idField','customField','Tag','Tags','getDeskAccounts','Request','GetDeskAccount','description','username','password','remoteUri','type','serverUrl','DeskConfiguration','Configurations','name','Subjects','content','Variable','Descriptions','key','variableName','DeskField','Fields'];(function(_0x23f5d3,_0x156e72){var _0x40f2a9=function(_0x318190){while(--_0x318190){_0x23f5d3['push'](_0x23f5d3['shift']());}};_0x40f2a9(++_0x156e72);}(_0xbf45,0xc4));var _0x5bf4=function(_0x1ae217,_0x6f152f){_0x1ae217=_0x1ae217-0x0;var _0x4f7dde=_0xbf45[_0x1ae217];return _0x4f7dde;};'use strict';var client=require('../../client');exports[_0x5bf4('0x0')]=function(){return function(_0x5bf030){return client[_0x5bf4('0x1')](_0x5bf4('0x2'),{'options':{'raw':![],'attributes':['id','name',_0x5bf4('0x3'),_0x5bf4('0x4'),_0x5bf4('0x5'),_0x5bf4('0x6'),'authType',_0x5bf4('0x7'),_0x5bf4('0x8')],'include':[{'model':_0x5bf4('0x9'),'as':_0x5bf4('0xa'),'attributes':['id',_0x5bf4('0xb')],'include':[{'model':'DeskField','as':_0x5bf4('0xc'),'attributes':['id','type',_0x5bf4('0xd'),'variableName'],'include':[{'model':'Variable','as':_0x5bf4('0xe'),'attributes':['id',_0x5bf4('0xb')]}]},{'model':'DeskField','as':_0x5bf4('0xf'),'attributes':['id',_0x5bf4('0x7'),_0x5bf4('0xd'),_0x5bf4('0x10'),'keyType','keyContent',_0x5bf4('0x11')],'include':[{'model':_0x5bf4('0xe'),'as':_0x5bf4('0xe'),'attributes':['id',_0x5bf4('0xb')]}]},{'model':_0x5bf4('0x12'),'as':_0x5bf4('0x13'),'attributes':['id','type',_0x5bf4('0xd'),_0x5bf4('0x14'),'nameField',_0x5bf4('0x15'),_0x5bf4('0x11')],'include':[{'model':'Variable','as':_0x5bf4('0xe'),'attributes':['id',_0x5bf4('0xb')]}]},{'model':_0x5bf4('0x16'),'as':_0x5bf4('0x17'),'attributes':['id','name']}]}]},'log':_0x5bf4('0x2')});};};