Built motion from commit (unavailable).|2.5.17
[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 _0xf608=['type','content','variableName','Variable','key','keyType','keyContent','nameField','customField','../../client','getFreshdeskAccounts','Request','GetFreshdeskAccount','name','username','apiKey','remoteUri','serverUrl','Configurations','Tag','FreshdeskField','Subjects'];(function(_0x3b1423,_0xcde343){var _0x3fd338=function(_0x25ee2f){while(--_0x25ee2f){_0x3b1423['push'](_0x3b1423['shift']());}};_0x3fd338(++_0xcde343);}(_0xf608,0x1ed));var _0x8f60=function(_0xea4633,_0x595928){_0xea4633=_0xea4633-0x0;var _0x2e7e83=_0xf608[_0xea4633];return _0x2e7e83;};'use strict';var client=require(_0x8f60('0x0'));exports[_0x8f60('0x1')]=function(){return function(_0x3763fc){return client[_0x8f60('0x2')](_0x8f60('0x3'),{'options':{'raw':![],'attributes':['id',_0x8f60('0x4'),_0x8f60('0x5'),_0x8f60('0x6'),_0x8f60('0x7'),_0x8f60('0x8')],'include':[{'model':'FreshdeskConfiguration','as':_0x8f60('0x9'),'attributes':['id',_0x8f60('0x4')],'include':[{'model':_0x8f60('0xa'),'attributes':['id',_0x8f60('0x4')]},{'model':_0x8f60('0xb'),'as':_0x8f60('0xc'),'attributes':['id',_0x8f60('0xd'),_0x8f60('0xe'),_0x8f60('0xf')],'include':[{'model':_0x8f60('0x10'),'as':_0x8f60('0x10'),'attributes':['id',_0x8f60('0x4')]}]},{'model':_0x8f60('0xb'),'as':'Descriptions','attributes':['id',_0x8f60('0xd'),_0x8f60('0xe'),_0x8f60('0x11'),_0x8f60('0x12'),_0x8f60('0x13'),_0x8f60('0xf')],'include':[{'model':_0x8f60('0x10'),'as':_0x8f60('0x10'),'attributes':['id',_0x8f60('0x4')]}]},{'model':_0x8f60('0xb'),'as':'Fields','attributes':['id',_0x8f60('0xd'),_0x8f60('0xe'),'idField',_0x8f60('0x14'),_0x8f60('0x15'),_0x8f60('0xf')],'include':[{'model':_0x8f60('0x10'),'as':'Variable','attributes':['id',_0x8f60('0x4')]}]}]}]},'log':_0x8f60('0x3')});};};