Built motion from commit 9d1906d1.|2.5.40
[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 _0xb45b=['name','channel','Condition','AllConditions','field','operator','value','AnyConditions','Action','action','data1','data2','data6','data7','../client','getTriggers','Request','GetTrigger'];(function(_0x33e8fb,_0x5f3c6b){var _0x4ccc04=function(_0x2111f7){while(--_0x2111f7){_0x33e8fb['push'](_0x33e8fb['shift']());}};_0x4ccc04(++_0x5f3c6b);}(_0xb45b,0x188));var _0xbb45=function(_0x4c0622,_0x5dacaf){_0x4c0622=_0x4c0622-0x0;var _0x1799d8=_0xb45b[_0x4c0622];return _0x1799d8;};'use strict';var client=require(_0xbb45('0x0'));exports[_0xbb45('0x1')]=function(_0x5d772f){return function(_0x2eb52d){return client[_0xbb45('0x2')](_0xbb45('0x3'),{'options':{'raw':![],'attributes':['id',_0xbb45('0x4'),_0xbb45('0x5'),'status'],'include':[{'model':_0xbb45('0x6'),'as':_0xbb45('0x7'),'attributes':['id',_0xbb45('0x8'),_0xbb45('0x9'),_0xbb45('0xa')]},{'model':_0xbb45('0x6'),'as':_0xbb45('0xb'),'attributes':['id',_0xbb45('0x8'),_0xbb45('0x9'),_0xbb45('0xa')]},{'model':_0xbb45('0xc'),'as':'Actions','attributes':['id',_0xbb45('0xd'),_0xbb45('0xe'),_0xbb45('0xf'),'data3','data4','data5',_0xbb45('0x10'),_0xbb45('0x11')]}]},'log':_0xbb45('0x3')});};};