Built motion from commit d1eab355.|2.6.28
[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 _0x1820=['variableName','Descriptions','key','keyType','keyContent','Variable','Fields','idField','nameField','customField','../../client','getZendeskAccounts','Request','GetZendeskAccount','password','token','remoteUri','authType','serverUrl','type','ZendeskConfiguration','Configurations','name','Tag','ZendeskField','content'];(function(_0x306bbd,_0x36fc39){var _0x46e248=function(_0x5d9e49){while(--_0x5d9e49){_0x306bbd['push'](_0x306bbd['shift']());}};_0x46e248(++_0x36fc39);}(_0x1820,0x1c4));var _0x0182=function(_0x27e811,_0x20137c){_0x27e811=_0x27e811-0x0;var _0x1627fa=_0x1820[_0x27e811];return _0x1627fa;};'use strict';var client=require(_0x0182('0x0'));exports[_0x0182('0x1')]=function(){return function(_0x30eb8f){return client[_0x0182('0x2')](_0x0182('0x3'),{'options':{'raw':![],'attributes':['id','name','username',_0x0182('0x4'),_0x0182('0x5'),_0x0182('0x6'),_0x0182('0x7'),_0x0182('0x8'),_0x0182('0x9')],'include':[{'model':_0x0182('0xa'),'as':_0x0182('0xb'),'attributes':['id',_0x0182('0xc')],'include':[{'model':_0x0182('0xd'),'attributes':['id',_0x0182('0xc')]},{'model':_0x0182('0xe'),'as':'Subjects','attributes':['id',_0x0182('0x9'),_0x0182('0xf'),_0x0182('0x10')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x0182('0xc')]}]},{'model':_0x0182('0xe'),'as':_0x0182('0x11'),'attributes':['id',_0x0182('0x9'),_0x0182('0xf'),_0x0182('0x12'),_0x0182('0x13'),_0x0182('0x14'),_0x0182('0x10')],'include':[{'model':_0x0182('0x15'),'as':'Variable','attributes':['id',_0x0182('0xc')]}]},{'model':_0x0182('0xe'),'as':_0x0182('0x16'),'attributes':['id',_0x0182('0x9'),_0x0182('0xf'),_0x0182('0x17'),_0x0182('0x18'),_0x0182('0x19'),'variableName'],'include':[{'model':_0x0182('0x15'),'as':_0x0182('0x15'),'attributes':['id',_0x0182('0xc')]}]}]}]},'log':'GetZendeskAccount'});};};