15d3cc41750654342f4b8bfbe52bc478676040f0
[motion2.git] / server / services / ami / rpc / trigger.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 _0xf887=['getTriggers','GetTrigger','name','channel','status','Condition','field','operator','value','Action','Actions','data1','data2','data4','data5','data6','data7','../client'];(function(_0xf8192c,_0x48a106){var _0x574694=function(_0x41b0bb){while(--_0x41b0bb){_0xf8192c['push'](_0xf8192c['shift']());}};_0x574694(++_0x48a106);}(_0xf887,0xb3));var _0x7f88=function(_0x5ec7f2,_0x23179b){_0x5ec7f2=_0x5ec7f2-0x0;var _0x26994b=_0xf887[_0x5ec7f2];return _0x26994b;};'use strict';var client=require(_0x7f88('0x0'));exports[_0x7f88('0x1')]=function(_0x175032){return function(_0x898165){return client['Request'](_0x7f88('0x2'),{'options':{'raw':![],'attributes':['id',_0x7f88('0x3'),_0x7f88('0x4'),_0x7f88('0x5')],'include':[{'model':_0x7f88('0x6'),'as':'AllConditions','attributes':['id',_0x7f88('0x7'),_0x7f88('0x8'),_0x7f88('0x9')]},{'model':_0x7f88('0x6'),'as':'AnyConditions','attributes':['id',_0x7f88('0x7'),'operator',_0x7f88('0x9')]},{'model':_0x7f88('0xa'),'as':_0x7f88('0xb'),'attributes':['id','action',_0x7f88('0xc'),_0x7f88('0xd'),'data3',_0x7f88('0xe'),_0x7f88('0xf'),_0x7f88('0x10'),_0x7f88('0x11')]}]},'log':'GetTrigger'});};};