8fb5290f262ffa33557e5c3caa06ddb66e4a47a8
[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 _0x6db8=['lodash','util','../../config/logger','api','moment','request-promise','path','rimraf','./automation.attributes','exports','define','Automation','tools_automations'];(function(_0xfae23b,_0x2be4ba){var _0x200640=function(_0x4ae258){while(--_0x4ae258){_0xfae23b['push'](_0xfae23b['shift']());}};_0x200640(++_0x2be4ba);}(_0x6db8,0x1ba));var _0x86db=function(_0x819464,_0x46fc91){_0x819464=_0x819464-0x0;var _0x49dcc0=_0x6db8[_0x819464];return _0x49dcc0;};'use strict';var _=require(_0x86db('0x0'));var util=require(_0x86db('0x1'));var logger=require(_0x86db('0x2'))(_0x86db('0x3'));var moment=require(_0x86db('0x4'));var BPromise=require('bluebird');var rp=require(_0x86db('0x5'));var fs=require('fs');var path=require(_0x86db('0x6'));var rimraf=require(_0x86db('0x7'));var config=require('../../config/environment');var attributes=require(_0x86db('0x8'));module[_0x86db('0x9')]=function(_0x32e7ad,_0x5f429b){return _0x32e7ad[_0x86db('0xa')](_0x86db('0xb'),attributes,{'tableName':_0x86db('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};