83eb0828cfa03fb1704e19ea0008521136c317cc
[motion2.git] / server / services / ami / rpc / integrations / desk.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 _0xa69c=['idField','nameField','customField','Tag','Tags','getDeskAccounts','Request','GetDeskAccount','name','username','password','remoteUri','authType','type','serverUrl','Configurations','DeskField','Subjects','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields'];(function(_0x4adb5d,_0x4e250b){var _0x1f6f70=function(_0x579e78){while(--_0x579e78){_0x4adb5d['push'](_0x4adb5d['shift']());}};_0x1f6f70(++_0x4e250b);}(_0xa69c,0xbb));var _0xca69=function(_0x12ddb2,_0x5ad61e){_0x12ddb2=_0x12ddb2-0x0;var _0x10b6dd=_0xa69c[_0x12ddb2];return _0x10b6dd;};'use strict';var client=require('../../client');exports[_0xca69('0x0')]=function(){return function(_0x4118f3){return client[_0xca69('0x1')](_0xca69('0x2'),{'options':{'raw':![],'attributes':['id',_0xca69('0x3'),'description',_0xca69('0x4'),_0xca69('0x5'),_0xca69('0x6'),_0xca69('0x7'),_0xca69('0x8'),_0xca69('0x9')],'include':[{'model':'DeskConfiguration','as':_0xca69('0xa'),'attributes':['id',_0xca69('0x3')],'include':[{'model':_0xca69('0xb'),'as':_0xca69('0xc'),'attributes':['id',_0xca69('0x8'),_0xca69('0xd'),_0xca69('0xe')],'include':[{'model':_0xca69('0xf'),'as':_0xca69('0xf'),'attributes':['id','name']}]},{'model':'DeskField','as':_0xca69('0x10'),'attributes':['id',_0xca69('0x8'),_0xca69('0xd'),_0xca69('0x11'),_0xca69('0x12'),_0xca69('0x13'),_0xca69('0xe')],'include':[{'model':_0xca69('0xf'),'as':'Variable','attributes':['id',_0xca69('0x3')]}]},{'model':_0xca69('0xb'),'as':_0xca69('0x14'),'attributes':['id',_0xca69('0x8'),'content',_0xca69('0x15'),_0xca69('0x16'),_0xca69('0x17'),_0xca69('0xe')],'include':[{'model':_0xca69('0xf'),'as':_0xca69('0xf'),'attributes':['id','name']}]},{'model':_0xca69('0x18'),'as':_0xca69('0x19'),'attributes':['id',_0xca69('0x3')]}]}]},'log':_0xca69('0x2')});};};