8161978c2c6c271d3a6939fb3c1250ac7112708a
[motion2.git] / server / api / trigger / trigger.model.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 _0xea44=['./trigger.attributes','exports','define','Trigger','tools_triggers','lodash','util','../../config/logger','api','bluebird','request-promise','rimraf','../../config/environment'];(function(_0xa0a82a,_0x1e8aee){var _0x226195=function(_0x40f180){while(--_0x40f180){_0xa0a82a['push'](_0xa0a82a['shift']());}};_0x226195(++_0x1e8aee);}(_0xea44,0x1a5));var _0x4ea4=function(_0xdc0735,_0x34dff3){_0xdc0735=_0xdc0735-0x0;var _0x5b2edc=_0xea44[_0xdc0735];return _0x5b2edc;};'use strict';var _=require(_0x4ea4('0x0'));var util=require(_0x4ea4('0x1'));var logger=require(_0x4ea4('0x2'))(_0x4ea4('0x3'));var moment=require('moment');var BPromise=require(_0x4ea4('0x4'));var rp=require(_0x4ea4('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x4ea4('0x6'));var config=require(_0x4ea4('0x7'));var attributes=require(_0x4ea4('0x8'));module[_0x4ea4('0x9')]=function(_0x4be99c,_0x3c651f){return _0x4be99c[_0x4ea4('0xa')](_0x4ea4('0xb'),attributes,{'tableName':_0x4ea4('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};