0b58aad92c86d072e0bba83fd798003975833521
[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 _0xdefd=['authType','type','serverUrl','DeskConfiguration','name','DeskField','Subjects','content','variableName','Variable','Descriptions','key','keyType','keyContent','idField','nameField','customField','Tag','../../client','getDeskAccounts','Request','GetDeskAccount','description','remoteUri'];(function(_0x424501,_0x42096d){var _0xb719af=function(_0x37adcf){while(--_0x37adcf){_0x424501['push'](_0x424501['shift']());}};_0xb719af(++_0x42096d);}(_0xdefd,0x1c2));var _0xddef=function(_0x1b3150,_0x501411){_0x1b3150=_0x1b3150-0x0;var _0x3e06aa=_0xdefd[_0x1b3150];return _0x3e06aa;};'use strict';var client=require(_0xddef('0x0'));exports[_0xddef('0x1')]=function(){return function(_0x55488e){return client[_0xddef('0x2')](_0xddef('0x3'),{'options':{'raw':![],'attributes':['id','name',_0xddef('0x4'),'username','password',_0xddef('0x5'),_0xddef('0x6'),_0xddef('0x7'),_0xddef('0x8')],'include':[{'model':_0xddef('0x9'),'as':'Configurations','attributes':['id',_0xddef('0xa')],'include':[{'model':_0xddef('0xb'),'as':_0xddef('0xc'),'attributes':['id',_0xddef('0x7'),_0xddef('0xd'),_0xddef('0xe')],'include':[{'model':_0xddef('0xf'),'as':_0xddef('0xf'),'attributes':['id','name']}]},{'model':_0xddef('0xb'),'as':_0xddef('0x10'),'attributes':['id',_0xddef('0x7'),'content',_0xddef('0x11'),_0xddef('0x12'),_0xddef('0x13'),_0xddef('0xe')],'include':[{'model':_0xddef('0xf'),'as':_0xddef('0xf'),'attributes':['id',_0xddef('0xa')]}]},{'model':_0xddef('0xb'),'as':'Fields','attributes':['id',_0xddef('0x7'),_0xddef('0xd'),_0xddef('0x14'),_0xddef('0x15'),_0xddef('0x16'),_0xddef('0xe')],'include':[{'model':_0xddef('0xf'),'as':_0xddef('0xf'),'attributes':['id',_0xddef('0xa')]}]},{'model':_0xddef('0x17'),'as':'Tags','attributes':['id',_0xddef('0xa')]}]}]},'log':_0xddef('0x3')});};};