523e7dc0ca17a9dfa040c30b8ec6787ca7c20f0e
[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 _0xc73a=['../../config/logger','api','moment','request-promise','rimraf','./automation.attributes','exports','lodash','util'];(function(_0x55a769,_0x142de2){var _0x2bead4=function(_0x503da9){while(--_0x503da9){_0x55a769['push'](_0x55a769['shift']());}};_0x2bead4(++_0x142de2);}(_0xc73a,0x1ae));var _0xac73=function(_0x317416,_0x5c2eb9){_0x317416=_0x317416-0x0;var _0x3ed77d=_0xc73a[_0x317416];return _0x3ed77d;};'use strict';var _=require(_0xac73('0x0'));var util=require(_0xac73('0x1'));var logger=require(_0xac73('0x2'))(_0xac73('0x3'));var moment=require(_0xac73('0x4'));var BPromise=require('bluebird');var rp=require(_0xac73('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xac73('0x6'));var config=require('../../config/environment');var attributes=require(_0xac73('0x7'));module[_0xac73('0x8')]=function(_0x4a76ab,_0x834c4c){return _0x4a76ab['define']('Automation',attributes,{'tableName':'tools_automations','paranoid':![],'indexes':[],'timestamps':!![]});};