b5475c7906632531ccfaf3e3e2107e13406308bd
[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 _0x3149=['Subjects','type','variableName','Variable','Descriptions','content','keyType','keyContent','Fields','idField','customField','../../client','Request','GetFreshdeskAccount','name','apiKey','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','Tag','FreshdeskField'];(function(_0xa3f915,_0x5c0ecf){var _0x1f88ba=function(_0x9b05fa){while(--_0x9b05fa){_0xa3f915['push'](_0xa3f915['shift']());}};_0x1f88ba(++_0x5c0ecf);}(_0x3149,0x181));var _0x9314=function(_0x35e545,_0x44d0f6){_0x35e545=_0x35e545-0x0;var _0x12b16c=_0x3149[_0x35e545];return _0x12b16c;};'use strict';var client=require(_0x9314('0x0'));exports['getFreshdeskAccounts']=function(){return function(_0x905bad){return client[_0x9314('0x1')](_0x9314('0x2'),{'options':{'raw':![],'attributes':['id',_0x9314('0x3'),'username',_0x9314('0x4'),_0x9314('0x5'),_0x9314('0x6')],'include':[{'model':_0x9314('0x7'),'as':_0x9314('0x8'),'attributes':['id','name'],'include':[{'model':_0x9314('0x9'),'attributes':['id',_0x9314('0x3')]},{'model':_0x9314('0xa'),'as':_0x9314('0xb'),'attributes':['id',_0x9314('0xc'),'content',_0x9314('0xd')],'include':[{'model':'Variable','as':_0x9314('0xe'),'attributes':['id','name']}]},{'model':_0x9314('0xa'),'as':_0x9314('0xf'),'attributes':['id','type',_0x9314('0x10'),'key',_0x9314('0x11'),_0x9314('0x12'),_0x9314('0xd')],'include':[{'model':'Variable','as':_0x9314('0xe'),'attributes':['id',_0x9314('0x3')]}]},{'model':_0x9314('0xa'),'as':_0x9314('0x13'),'attributes':['id',_0x9314('0xc'),_0x9314('0x10'),_0x9314('0x14'),'nameField',_0x9314('0x15'),_0x9314('0xd')],'include':[{'model':_0x9314('0xe'),'as':'Variable','attributes':['id',_0x9314('0x3')]}]}]}]},'log':_0x9314('0x2')});};};