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 _0x7bc8=['data6','GetTrigger','../client','getTriggers','name','status','Condition','value','field','Action','action','data4'];(function(_0x92c450,_0x41f1e3){var _0x2a9599=function(_0x4f27df){while(--_0x4f27df){_0x92c450['push'](_0x92c450['shift']());}};_0x2a9599(++_0x41f1e3);}(_0x7bc8,0x1ca));var _0x87bc=function(_0x14f150,_0x29c949){_0x14f150=_0x14f150-0x0;var _0x3f7036=_0x7bc8[_0x14f150];return _0x3f7036;};'use strict';var client=require(_0x87bc('0x0'));exports[_0x87bc('0x1')]=function(_0x1f35ba){return function(_0x619dfc){return client['Request']('GetTrigger',{'options':{'raw':![],'attributes':['id',_0x87bc('0x2'),'channel',_0x87bc('0x3')],'include':[{'model':_0x87bc('0x4'),'as':'AllConditions','attributes':['id','field','operator',_0x87bc('0x5')]},{'model':_0x87bc('0x4'),'as':'AnyConditions','attributes':['id',_0x87bc('0x6'),'operator','value']},{'model':_0x87bc('0x7'),'as':'Actions','attributes':['id',_0x87bc('0x8'),'data1','data2','data3',_0x87bc('0x9'),'data5',_0x87bc('0xa'),'data7']}]},'log':_0x87bc('0xb')});};};