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