Built motion from commit (unavailable).|2.4.4
[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 _0xe5b3=['FreshdeskConfiguration','Configurations','Tag','Subjects','type','content','variableName','FreshdeskField','Descriptions','keyType','Variable','Fields','idField','getFreshdeskAccounts','Request','GetFreshdeskAccount','name','username','apiKey','remoteUri','serverUrl'];(function(_0x25899d,_0x4970b3){var _0x460444=function(_0x400b71){while(--_0x400b71){_0x25899d['push'](_0x25899d['shift']());}};_0x460444(++_0x4970b3);}(_0xe5b3,0x133));var _0x3e5b=function(_0x57747c,_0xed780){_0x57747c=_0x57747c-0x0;var _0x4cf803=_0xe5b3[_0x57747c];return _0x4cf803;};'use strict';var client=require('../../client');exports[_0x3e5b('0x0')]=function(){return function(_0xba44a0){return client[_0x3e5b('0x1')](_0x3e5b('0x2'),{'options':{'raw':![],'attributes':['id',_0x3e5b('0x3'),_0x3e5b('0x4'),_0x3e5b('0x5'),_0x3e5b('0x6'),_0x3e5b('0x7')],'include':[{'model':_0x3e5b('0x8'),'as':_0x3e5b('0x9'),'attributes':['id','name'],'include':[{'model':_0x3e5b('0xa'),'attributes':['id',_0x3e5b('0x3')]},{'model':'FreshdeskField','as':_0x3e5b('0xb'),'attributes':['id',_0x3e5b('0xc'),_0x3e5b('0xd'),_0x3e5b('0xe')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x3e5b('0x3')]}]},{'model':_0x3e5b('0xf'),'as':_0x3e5b('0x10'),'attributes':['id',_0x3e5b('0xc'),_0x3e5b('0xd'),'key',_0x3e5b('0x11'),'keyContent',_0x3e5b('0xe')],'include':[{'model':_0x3e5b('0x12'),'as':_0x3e5b('0x12'),'attributes':['id',_0x3e5b('0x3')]}]},{'model':_0x3e5b('0xf'),'as':_0x3e5b('0x13'),'attributes':['id',_0x3e5b('0xc'),'content',_0x3e5b('0x14'),'nameField','customField','variableName'],'include':[{'model':_0x3e5b('0x12'),'as':_0x3e5b('0x12'),'attributes':['id',_0x3e5b('0x3')]}]}]}]},'log':'GetFreshdeskAccount'});};};