Built motion from commit d1eab355.|2.6.28
[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 _0xcce8=['key','keyType','variableName','Fields','type','idField','customField','../../client','getFreshdeskAccounts','Request','GetFreshdeskAccount','name','username','apiKey','remoteUri','serverUrl','Configurations','Tag','FreshdeskField','Subjects','Variable','Descriptions','content'];(function(_0x282a9d,_0x463788){var _0x5a2327=function(_0x443293){while(--_0x443293){_0x282a9d['push'](_0x282a9d['shift']());}};_0x5a2327(++_0x463788);}(_0xcce8,0x1a5));var _0x8cce=function(_0x330732,_0x165254){_0x330732=_0x330732-0x0;var _0x128d34=_0xcce8[_0x330732];return _0x128d34;};'use strict';var client=require(_0x8cce('0x0'));exports[_0x8cce('0x1')]=function(){return function(_0x367918){return client[_0x8cce('0x2')](_0x8cce('0x3'),{'options':{'raw':![],'attributes':['id',_0x8cce('0x4'),_0x8cce('0x5'),_0x8cce('0x6'),_0x8cce('0x7'),_0x8cce('0x8')],'include':[{'model':'FreshdeskConfiguration','as':_0x8cce('0x9'),'attributes':['id',_0x8cce('0x4')],'include':[{'model':_0x8cce('0xa'),'attributes':['id',_0x8cce('0x4')]},{'model':_0x8cce('0xb'),'as':_0x8cce('0xc'),'attributes':['id','type','content','variableName'],'include':[{'model':_0x8cce('0xd'),'as':'Variable','attributes':['id','name']}]},{'model':_0x8cce('0xb'),'as':_0x8cce('0xe'),'attributes':['id','type',_0x8cce('0xf'),_0x8cce('0x10'),_0x8cce('0x11'),'keyContent',_0x8cce('0x12')],'include':[{'model':_0x8cce('0xd'),'as':_0x8cce('0xd'),'attributes':['id',_0x8cce('0x4')]}]},{'model':'FreshdeskField','as':_0x8cce('0x13'),'attributes':['id',_0x8cce('0x14'),_0x8cce('0xf'),_0x8cce('0x15'),'nameField',_0x8cce('0x16'),'variableName'],'include':[{'model':'Variable','as':_0x8cce('0xd'),'attributes':['id','name']}]}]}]},'log':_0x8cce('0x3')});};};