be524fc475d7467b2f314ca8b95963175ee99c33
[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 _0x9228=['GetTrigger','name','channel','status','Condition','AllConditions','field','operator','AnyConditions','data1','data2','data3','data5','data7','../client','getTriggers'];(function(_0x5c7ff2,_0x498057){var _0x3c36a1=function(_0x324255){while(--_0x324255){_0x5c7ff2['push'](_0x5c7ff2['shift']());}};_0x3c36a1(++_0x498057);}(_0x9228,0x17e));var _0x8922=function(_0x32528f,_0x2ba2de){_0x32528f=_0x32528f-0x0;var _0x1833f8=_0x9228[_0x32528f];return _0x1833f8;};'use strict';var client=require(_0x8922('0x0'));exports[_0x8922('0x1')]=function(_0x9d84f6){return function(_0x4eced0){return client['Request'](_0x8922('0x2'),{'options':{'raw':![],'attributes':['id',_0x8922('0x3'),_0x8922('0x4'),_0x8922('0x5')],'include':[{'model':_0x8922('0x6'),'as':_0x8922('0x7'),'attributes':['id',_0x8922('0x8'),_0x8922('0x9'),'value']},{'model':_0x8922('0x6'),'as':_0x8922('0xa'),'attributes':['id',_0x8922('0x8'),_0x8922('0x9'),'value']},{'model':'Action','as':'Actions','attributes':['id','action',_0x8922('0xb'),_0x8922('0xc'),_0x8922('0xd'),'data4',_0x8922('0xe'),'data6',_0x8922('0xf')]}]},'log':'GetTrigger'});};};