383e102e92a746a6dae7cdf94060f9eb23171770
[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 _0xd4e4=['./automation.attributes','define','tools_automations','util','../../config/logger','api','moment','request-promise','rimraf','../../config/environment'];(function(_0x21b236,_0x2b981d){var _0x462edf=function(_0x1a7927){while(--_0x1a7927){_0x21b236['push'](_0x21b236['shift']());}};_0x462edf(++_0x2b981d);}(_0xd4e4,0xf3));var _0x4d4e=function(_0x46257e,_0x2a9222){_0x46257e=_0x46257e-0x0;var _0x1b0533=_0xd4e4[_0x46257e];return _0x1b0533;};'use strict';var _=require('lodash');var util=require(_0x4d4e('0x0'));var logger=require(_0x4d4e('0x1'))(_0x4d4e('0x2'));var moment=require(_0x4d4e('0x3'));var BPromise=require('bluebird');var rp=require(_0x4d4e('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x4d4e('0x5'));var config=require(_0x4d4e('0x6'));var attributes=require(_0x4d4e('0x7'));module['exports']=function(_0x23f87f,_0x11375c){return _0x23f87f[_0x4d4e('0x8')]('Automation',attributes,{'tableName':_0x4d4e('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};