9ada68406bf489c37b2f6bb6bd6ef95ae6173410
[motion2.git] / server / services / ami / rpc / integrations / vtiger.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 _0x88dc=['Subjects','type','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','idField','nameField','customField','GetVtigerAccount','../../client','getVtigerAccounts','Request','name','description','username','serverUrl','VtigerConfiguration','Configurations','VtigerField'];(function(_0x246227,_0x12bfcb){var _0x37bd4a=function(_0x4670f4){while(--_0x4670f4){_0x246227['push'](_0x246227['shift']());}};_0x37bd4a(++_0x12bfcb);}(_0x88dc,0xfe));var _0xc88d=function(_0xe7da70,_0x3dd724){_0xe7da70=_0xe7da70-0x0;var _0xca594=_0x88dc[_0xe7da70];return _0xca594;};'use strict';var client=require(_0xc88d('0x0'));exports[_0xc88d('0x1')]=function(){return function(_0x4c02e0){return client[_0xc88d('0x2')]('GetVtigerAccount',{'options':{'raw':![],'attributes':['id',_0xc88d('0x3'),_0xc88d('0x4'),_0xc88d('0x5'),'accessKey','remoteUri',_0xc88d('0x6')],'include':[{'model':_0xc88d('0x7'),'as':_0xc88d('0x8'),'attributes':['id','name'],'include':[{'model':_0xc88d('0x9'),'as':_0xc88d('0xa'),'attributes':['id',_0xc88d('0xb'),_0xc88d('0xc'),_0xc88d('0xd')],'include':[{'model':_0xc88d('0xe'),'as':_0xc88d('0xe'),'attributes':['id',_0xc88d('0x3')]}]},{'model':_0xc88d('0x9'),'as':_0xc88d('0xf'),'attributes':['id',_0xc88d('0xb'),'content',_0xc88d('0x10'),_0xc88d('0x11'),_0xc88d('0x12'),_0xc88d('0xd')],'include':[{'model':_0xc88d('0xe'),'as':_0xc88d('0xe'),'attributes':['id',_0xc88d('0x3')]}]},{'model':_0xc88d('0x9'),'as':_0xc88d('0x13'),'attributes':['id',_0xc88d('0xb'),_0xc88d('0xc'),_0xc88d('0x14'),_0xc88d('0x15'),_0xc88d('0x16'),_0xc88d('0xd')],'include':[{'model':_0xc88d('0xe'),'as':_0xc88d('0xe'),'attributes':['id','name']}]}]}]},'log':_0xc88d('0x17')});};};