Built motion from commit (unavailable).|2.5.11
[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 _0x7919=['GetTrigger','name','channel','status','AllConditions','field','operator','value','Condition','AnyConditions','Action','Actions','data1','data2','data3','data5','data6','../client','getTriggers','Request'];(function(_0x24b62d,_0xd49554){var _0x1b6142=function(_0x117952){while(--_0x117952){_0x24b62d['push'](_0x24b62d['shift']());}};_0x1b6142(++_0xd49554);}(_0x7919,0x75));var _0x9791=function(_0x2dc10b,_0x146928){_0x2dc10b=_0x2dc10b-0x0;var _0x254511=_0x7919[_0x2dc10b];return _0x254511;};'use strict';var client=require(_0x9791('0x0'));exports[_0x9791('0x1')]=function(_0x15ca28){return function(_0x5a1ab1){return client[_0x9791('0x2')](_0x9791('0x3'),{'options':{'raw':![],'attributes':['id',_0x9791('0x4'),_0x9791('0x5'),_0x9791('0x6')],'include':[{'model':'Condition','as':_0x9791('0x7'),'attributes':['id',_0x9791('0x8'),_0x9791('0x9'),_0x9791('0xa')]},{'model':_0x9791('0xb'),'as':_0x9791('0xc'),'attributes':['id',_0x9791('0x8'),_0x9791('0x9'),_0x9791('0xa')]},{'model':_0x9791('0xd'),'as':_0x9791('0xe'),'attributes':['id','action',_0x9791('0xf'),_0x9791('0x10'),_0x9791('0x11'),'data4',_0x9791('0x12'),_0x9791('0x13'),'data7']}]},'log':_0x9791('0x3')});};};