Built motion from commit 25580385.|2.6.2
[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 _0x112a=['idField','nameField','../../client','getFreshdeskAccounts','Request','GetFreshdeskAccount','name','username','apiKey','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','Tag','FreshdeskField','Subjects','type','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields'];(function(_0x1bc5b7,_0x3c81b9){var _0x981305=function(_0xbf75b0){while(--_0xbf75b0){_0x1bc5b7['push'](_0x1bc5b7['shift']());}};_0x981305(++_0x3c81b9);}(_0x112a,0x115));var _0xa112=function(_0x34e158,_0xeb215a){_0x34e158=_0x34e158-0x0;var _0x2b2773=_0x112a[_0x34e158];return _0x2b2773;};'use strict';var client=require(_0xa112('0x0'));exports[_0xa112('0x1')]=function(){return function(_0xe30bf4){return client[_0xa112('0x2')](_0xa112('0x3'),{'options':{'raw':![],'attributes':['id',_0xa112('0x4'),_0xa112('0x5'),_0xa112('0x6'),_0xa112('0x7'),_0xa112('0x8')],'include':[{'model':_0xa112('0x9'),'as':_0xa112('0xa'),'attributes':['id',_0xa112('0x4')],'include':[{'model':_0xa112('0xb'),'attributes':['id',_0xa112('0x4')]},{'model':_0xa112('0xc'),'as':_0xa112('0xd'),'attributes':['id',_0xa112('0xe'),_0xa112('0xf'),_0xa112('0x10')],'include':[{'model':_0xa112('0x11'),'as':_0xa112('0x11'),'attributes':['id',_0xa112('0x4')]}]},{'model':'FreshdeskField','as':_0xa112('0x12'),'attributes':['id','type',_0xa112('0xf'),_0xa112('0x13'),_0xa112('0x14'),_0xa112('0x15'),_0xa112('0x10')],'include':[{'model':_0xa112('0x11'),'as':_0xa112('0x11'),'attributes':['id',_0xa112('0x4')]}]},{'model':_0xa112('0xc'),'as':_0xa112('0x16'),'attributes':['id',_0xa112('0xe'),_0xa112('0xf'),_0xa112('0x17'),_0xa112('0x18'),'customField',_0xa112('0x10')],'include':[{'model':_0xa112('0x11'),'as':_0xa112('0x11'),'attributes':['id',_0xa112('0x4')]}]}]}]},'log':_0xa112('0x3')});};};