3dc32f172dea43ee9230ea956cd939c9779ba1f6
[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 _0xd61e=['../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','./automation.attributes','exports','lodash','util'];(function(_0x41a45d,_0x1e61c3){var _0x24b1d6=function(_0x5d1f8b){while(--_0x5d1f8b){_0x41a45d['push'](_0x41a45d['shift']());}};_0x24b1d6(++_0x1e61c3);}(_0xd61e,0x13d));var _0xed61=function(_0x508967,_0x33b08f){_0x508967=_0x508967-0x0;var _0x36af57=_0xd61e[_0x508967];return _0x36af57;};'use strict';var _=require(_0xed61('0x0'));var util=require(_0xed61('0x1'));var logger=require(_0xed61('0x2'))(_0xed61('0x3'));var moment=require(_0xed61('0x4'));var BPromise=require(_0xed61('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xed61('0x6'));var rimraf=require(_0xed61('0x7'));var config=require(_0xed61('0x8'));var attributes=require(_0xed61('0x9'));module[_0xed61('0xa')]=function(_0x39e7f8,_0x1b9836){return _0x39e7f8['define']('Automation',attributes,{'tableName':'tools_automations','paranoid':![],'indexes':[],'timestamps':!![]});};