7af0332c275bee175f3fdf7fb50edb0646e94d07
[motion2.git] / server / services / ami / rpc / integrations / freshdesk.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 _0x1c7c=['type','content','variableName','Variable','keyType','keyContent','Fields','idField','nameField','customField','GetFreshdeskAccount','../../client','getFreshdeskAccounts','Request','name','apiKey','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','Tag','FreshdeskField','Subjects'];(function(_0x4565bf,_0x5ad9d6){var _0x5610ba=function(_0x170988){while(--_0x170988){_0x4565bf['push'](_0x4565bf['shift']());}};_0x5610ba(++_0x5ad9d6);}(_0x1c7c,0x164));var _0xc1c7=function(_0x4e26eb,_0x14ae69){_0x4e26eb=_0x4e26eb-0x0;var _0x420076=_0x1c7c[_0x4e26eb];return _0x420076;};'use strict';var client=require(_0xc1c7('0x0'));exports[_0xc1c7('0x1')]=function(){return function(_0x38fc99){return client[_0xc1c7('0x2')]('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id',_0xc1c7('0x3'),'username',_0xc1c7('0x4'),_0xc1c7('0x5'),_0xc1c7('0x6')],'include':[{'model':_0xc1c7('0x7'),'as':_0xc1c7('0x8'),'attributes':['id',_0xc1c7('0x3')],'include':[{'model':_0xc1c7('0x9'),'attributes':['id',_0xc1c7('0x3')]},{'model':_0xc1c7('0xa'),'as':_0xc1c7('0xb'),'attributes':['id',_0xc1c7('0xc'),_0xc1c7('0xd'),_0xc1c7('0xe')],'include':[{'model':_0xc1c7('0xf'),'as':_0xc1c7('0xf'),'attributes':['id',_0xc1c7('0x3')]}]},{'model':_0xc1c7('0xa'),'as':'Descriptions','attributes':['id',_0xc1c7('0xc'),_0xc1c7('0xd'),'key',_0xc1c7('0x10'),_0xc1c7('0x11'),_0xc1c7('0xe')],'include':[{'model':'Variable','as':_0xc1c7('0xf'),'attributes':['id',_0xc1c7('0x3')]}]},{'model':_0xc1c7('0xa'),'as':_0xc1c7('0x12'),'attributes':['id',_0xc1c7('0xc'),_0xc1c7('0xd'),_0xc1c7('0x13'),_0xc1c7('0x14'),_0xc1c7('0x15'),_0xc1c7('0xe')],'include':[{'model':_0xc1c7('0xf'),'as':_0xc1c7('0xf'),'attributes':['id','name']}]}]}]},'log':_0xc1c7('0x16')});};};