864d94a1483b8e2ea3fbcf740aa0bfde6c9797c1
[motion2.git] / server / api / automation / automation.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 _0xe075=['api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./automation.attributes','exports','define','Automation','util','../../config/logger'];(function(_0x231e29,_0x2afc1a){var _0x3a3a05=function(_0x2c8e93){while(--_0x2c8e93){_0x231e29['push'](_0x231e29['shift']());}};_0x3a3a05(++_0x2afc1a);}(_0xe075,0x143));var _0x5e07=function(_0x162ae3,_0x3299ed){_0x162ae3=_0x162ae3-0x0;var _0x4fe946=_0xe075[_0x162ae3];return _0x4fe946;};'use strict';var _=require('lodash');var util=require(_0x5e07('0x0'));var logger=require(_0x5e07('0x1'))(_0x5e07('0x2'));var moment=require(_0x5e07('0x3'));var BPromise=require(_0x5e07('0x4'));var rp=require(_0x5e07('0x5'));var fs=require('fs');var path=require(_0x5e07('0x6'));var rimraf=require(_0x5e07('0x7'));var config=require(_0x5e07('0x8'));var attributes=require(_0x5e07('0x9'));module[_0x5e07('0xa')]=function(_0x2a466b,_0x5b9b46){return _0x2a466b[_0x5e07('0xb')](_0x5e07('0xc'),attributes,{'tableName':'tools_automations','paranoid':![],'indexes':[],'timestamps':!![]});};