Built motion from commit (unavailable).|2.5.3
[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 _0x95b2=['username','remoteUri','serverUrl','Configurations','Tag','type','content','variableName','Variable','FreshdeskField','Descriptions','keyType','keyContent','Fields','idField','../../client','getFreshdeskAccounts','Request','GetFreshdeskAccount','name'];(function(_0x569998,_0x361b8d){var _0x2f8256=function(_0x3354f1){while(--_0x3354f1){_0x569998['push'](_0x569998['shift']());}};_0x2f8256(++_0x361b8d);}(_0x95b2,0xc3));var _0x295b=function(_0x1dcc2d,_0x968a85){_0x1dcc2d=_0x1dcc2d-0x0;var _0x4e0562=_0x95b2[_0x1dcc2d];return _0x4e0562;};'use strict';var client=require(_0x295b('0x0'));exports[_0x295b('0x1')]=function(){return function(_0x352370){return client[_0x295b('0x2')](_0x295b('0x3'),{'options':{'raw':![],'attributes':['id',_0x295b('0x4'),_0x295b('0x5'),'apiKey',_0x295b('0x6'),_0x295b('0x7')],'include':[{'model':'FreshdeskConfiguration','as':_0x295b('0x8'),'attributes':['id',_0x295b('0x4')],'include':[{'model':_0x295b('0x9'),'attributes':['id','name']},{'model':'FreshdeskField','as':'Subjects','attributes':['id',_0x295b('0xa'),_0x295b('0xb'),_0x295b('0xc')],'include':[{'model':'Variable','as':_0x295b('0xd'),'attributes':['id',_0x295b('0x4')]}]},{'model':_0x295b('0xe'),'as':_0x295b('0xf'),'attributes':['id',_0x295b('0xa'),_0x295b('0xb'),'key',_0x295b('0x10'),_0x295b('0x11'),_0x295b('0xc')],'include':[{'model':_0x295b('0xd'),'as':'Variable','attributes':['id',_0x295b('0x4')]}]},{'model':_0x295b('0xe'),'as':_0x295b('0x12'),'attributes':['id',_0x295b('0xa'),_0x295b('0xb'),_0x295b('0x13'),'nameField','customField','variableName'],'include':[{'model':'Variable','as':_0x295b('0xd'),'attributes':['id',_0x295b('0x4')]}]}]}]},'log':_0x295b('0x3')});};};