1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x80a7=['AllConditions','field','operator','value','Action','action','data1','data2','data6','getTriggers','GetTrigger','channel','status','Condition'];(function(_0x4cb861,_0x2b532e){var _0x28e120=function(_0x28b55a){while(--_0x28b55a){_0x4cb861['push'](_0x4cb861['shift']());}};_0x28e120(++_0x2b532e);}(_0x80a7,0xb1));var _0x780a=function(_0x4e5552,_0x19ec4e){_0x4e5552=_0x4e5552-0x0;var _0x60a338=_0x80a7[_0x4e5552];return _0x60a338;};'use strict';var client=require('../client');exports[_0x780a('0x0')]=function(_0x3c47e9){return function(_0x153221){return client['Request'](_0x780a('0x1'),{'options':{'raw':![],'attributes':['id','name',_0x780a('0x2'),_0x780a('0x3')],'include':[{'model':_0x780a('0x4'),'as':_0x780a('0x5'),'attributes':['id',_0x780a('0x6'),_0x780a('0x7'),_0x780a('0x8')]},{'model':'Condition','as':'AnyConditions','attributes':['id',_0x780a('0x6'),_0x780a('0x7'),_0x780a('0x8')]},{'model':_0x780a('0x9'),'as':'Actions','attributes':['id',_0x780a('0xa'),_0x780a('0xb'),_0x780a('0xc'),'data3','data4','data5',_0x780a('0xd'),'data7']}]},'log':_0x780a('0x1')});};};