5f81732c33aa09a55ca24b792ba7ff9a76c83afd
[motion2.git] / server / services / ami / rpc / integrations / zendesk.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 _0x5ec7=['name','username','token','remoteUri','serverUrl','type','ZendeskConfiguration','Configurations','Tag','ZendeskField','content','variableName','Variable','Descriptions','keyType','nameField','customField','getZendeskAccounts','GetZendeskAccount'];(function(_0x4695ba,_0x5a7f2a){var _0x524b7d=function(_0xfc9707){while(--_0xfc9707){_0x4695ba['push'](_0x4695ba['shift']());}};_0x524b7d(++_0x5a7f2a);}(_0x5ec7,0x108));var _0x75ec=function(_0x1193ea,_0xc04ef0){_0x1193ea=_0x1193ea-0x0;var _0x5e4000=_0x5ec7[_0x1193ea];return _0x5e4000;};'use strict';var client=require('../../client');exports[_0x75ec('0x0')]=function(){return function(_0x19285f){return client['Request'](_0x75ec('0x1'),{'options':{'raw':![],'attributes':['id',_0x75ec('0x2'),_0x75ec('0x3'),'password',_0x75ec('0x4'),_0x75ec('0x5'),'authType',_0x75ec('0x6'),_0x75ec('0x7')],'include':[{'model':_0x75ec('0x8'),'as':_0x75ec('0x9'),'attributes':['id',_0x75ec('0x2')],'include':[{'model':_0x75ec('0xa'),'attributes':['id','name']},{'model':_0x75ec('0xb'),'as':'Subjects','attributes':['id','type',_0x75ec('0xc'),_0x75ec('0xd')],'include':[{'model':_0x75ec('0xe'),'as':_0x75ec('0xe'),'attributes':['id','name']}]},{'model':_0x75ec('0xb'),'as':_0x75ec('0xf'),'attributes':['id',_0x75ec('0x7'),_0x75ec('0xc'),'key',_0x75ec('0x10'),'keyContent',_0x75ec('0xd')],'include':[{'model':_0x75ec('0xe'),'as':_0x75ec('0xe'),'attributes':['id',_0x75ec('0x2')]}]},{'model':_0x75ec('0xb'),'as':'Fields','attributes':['id',_0x75ec('0x7'),'content','idField',_0x75ec('0x11'),_0x75ec('0x12'),_0x75ec('0xd')],'include':[{'model':_0x75ec('0xe'),'as':_0x75ec('0xe'),'attributes':['id',_0x75ec('0x2')]}]}]}]},'log':_0x75ec('0x1')});};};