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 _0x0bef=['data2','data3','data4','data5','data6','../client','getTriggers','Request','GetTrigger','name','status','Condition','AllConditions','field','operator','AnyConditions','value','Action','action','data1'];(function(_0x218a9a,_0x10682e){var _0xe78de4=function(_0x18c400){while(--_0x18c400){_0x218a9a['push'](_0x218a9a['shift']());}};_0xe78de4(++_0x10682e);}(_0x0bef,0xe1));var _0xf0be=function(_0x242b0f,_0x1fbfa4){_0x242b0f=_0x242b0f-0x0;var _0x46478e=_0x0bef[_0x242b0f];return _0x46478e;};'use strict';var client=require(_0xf0be('0x0'));exports[_0xf0be('0x1')]=function(_0x23ed0b){return function(_0x3e6de4){return client[_0xf0be('0x2')](_0xf0be('0x3'),{'options':{'raw':![],'attributes':['id',_0xf0be('0x4'),'channel',_0xf0be('0x5')],'include':[{'model':_0xf0be('0x6'),'as':_0xf0be('0x7'),'attributes':['id',_0xf0be('0x8'),_0xf0be('0x9'),'value']},{'model':_0xf0be('0x6'),'as':_0xf0be('0xa'),'attributes':['id',_0xf0be('0x8'),'operator',_0xf0be('0xb')]},{'model':_0xf0be('0xc'),'as':'Actions','attributes':['id',_0xf0be('0xd'),_0xf0be('0xe'),_0xf0be('0xf'),_0xf0be('0x10'),_0xf0be('0x11'),_0xf0be('0x12'),_0xf0be('0x13'),'data7']}]},'log':_0xf0be('0x3')});};};