346c84a509bf5eb245dee2d1cf489188340ba2d2
[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 _0xa987=['Automation','tools_automations','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','exports','define'];(function(_0x5cbab1,_0x32afac){var _0x2637f4=function(_0x47abed){while(--_0x47abed){_0x5cbab1['push'](_0x5cbab1['shift']());}};_0x2637f4(++_0x32afac);}(_0xa987,0x9c));var _0x7a98=function(_0x29d94e,_0xf386d6){_0x29d94e=_0x29d94e-0x0;var _0x106237=_0xa987[_0x29d94e];return _0x106237;};'use strict';var _=require(_0x7a98('0x0'));var util=require(_0x7a98('0x1'));var logger=require(_0x7a98('0x2'))(_0x7a98('0x3'));var moment=require(_0x7a98('0x4'));var BPromise=require(_0x7a98('0x5'));var rp=require(_0x7a98('0x6'));var fs=require('fs');var path=require(_0x7a98('0x7'));var rimraf=require(_0x7a98('0x8'));var config=require(_0x7a98('0x9'));var attributes=require('./automation.attributes');module[_0x7a98('0xa')]=function(_0x37e488,_0x456ebc){return _0x37e488[_0x7a98('0xb')](_0x7a98('0xc'),attributes,{'tableName':_0x7a98('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};