Built motion from commit 00bf23f6.|2.6.16
[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 _0xe684=['data1','data5','data6','data7','../client','getTriggers','Request','GetTrigger','name','channel','status','Condition','AllConditions','operator','value','AnyConditions','Actions','action'];(function(_0x5575cd,_0x73ab7a){var _0x4979a0=function(_0x1ac744){while(--_0x1ac744){_0x5575cd['push'](_0x5575cd['shift']());}};_0x4979a0(++_0x73ab7a);}(_0xe684,0x1c6));var _0x4e68=function(_0x21a9d9,_0x4d5ac8){_0x21a9d9=_0x21a9d9-0x0;var _0x46adce=_0xe684[_0x21a9d9];return _0x46adce;};'use strict';var client=require(_0x4e68('0x0'));exports[_0x4e68('0x1')]=function(_0x2f7164){return function(_0x18e69e){return client[_0x4e68('0x2')](_0x4e68('0x3'),{'options':{'raw':![],'attributes':['id',_0x4e68('0x4'),_0x4e68('0x5'),_0x4e68('0x6')],'include':[{'model':_0x4e68('0x7'),'as':_0x4e68('0x8'),'attributes':['id','field',_0x4e68('0x9'),_0x4e68('0xa')]},{'model':_0x4e68('0x7'),'as':_0x4e68('0xb'),'attributes':['id','field',_0x4e68('0x9'),'value']},{'model':'Action','as':_0x4e68('0xc'),'attributes':['id',_0x4e68('0xd'),_0x4e68('0xe'),'data2','data3','data4',_0x4e68('0xf'),_0x4e68('0x10'),_0x4e68('0x11')]}]},'log':_0x4e68('0x3')});};};