51aabe4f221ee6578279a771495ed06c89c4994d
[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 _0x0426=['idField','nameField','customField','Tag','../../client','getDeskAccounts','Request','GetDeskAccount','name','description','username','remoteUri','type','serverUrl','DeskConfiguration','Configurations','DeskField','Subjects','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields'];(function(_0x3a9d7c,_0x5282e6){var _0x53a2d9=function(_0x5f2b75){while(--_0x5f2b75){_0x3a9d7c['push'](_0x3a9d7c['shift']());}};_0x53a2d9(++_0x5282e6);}(_0x0426,0x170));var _0x6042=function(_0xcba85a,_0x5d1402){_0xcba85a=_0xcba85a-0x0;var _0x4c7ce3=_0x0426[_0xcba85a];return _0x4c7ce3;};'use strict';var client=require(_0x6042('0x0'));exports[_0x6042('0x1')]=function(){return function(_0x371a0a){return client[_0x6042('0x2')](_0x6042('0x3'),{'options':{'raw':![],'attributes':['id',_0x6042('0x4'),_0x6042('0x5'),_0x6042('0x6'),'password',_0x6042('0x7'),'authType',_0x6042('0x8'),_0x6042('0x9')],'include':[{'model':_0x6042('0xa'),'as':_0x6042('0xb'),'attributes':['id',_0x6042('0x4')],'include':[{'model':_0x6042('0xc'),'as':_0x6042('0xd'),'attributes':['id',_0x6042('0x8'),_0x6042('0xe'),_0x6042('0xf')],'include':[{'model':_0x6042('0x10'),'as':_0x6042('0x10'),'attributes':['id','name']}]},{'model':'DeskField','as':_0x6042('0x11'),'attributes':['id',_0x6042('0x8'),_0x6042('0xe'),_0x6042('0x12'),_0x6042('0x13'),_0x6042('0x14'),_0x6042('0xf')],'include':[{'model':_0x6042('0x10'),'as':'Variable','attributes':['id',_0x6042('0x4')]}]},{'model':'DeskField','as':_0x6042('0x15'),'attributes':['id','type',_0x6042('0xe'),_0x6042('0x16'),_0x6042('0x17'),_0x6042('0x18'),_0x6042('0xf')],'include':[{'model':_0x6042('0x10'),'as':_0x6042('0x10'),'attributes':['id',_0x6042('0x4')]}]},{'model':_0x6042('0x19'),'as':'Tags','attributes':['id',_0x6042('0x4')]}]}]},'log':_0x6042('0x3')});};};