Built motion from commit (unavailable).|2.5.13
[motion2.git] / server / api / schedule / schedule.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 _0xc60a=['bluebird','request-promise','path','../../config/environment','exports','define','Schedule','lodash','util','../../config/logger','moment'];(function(_0x1d2f87,_0x1f1507){var _0x290a06=function(_0x4e0b70){while(--_0x4e0b70){_0x1d2f87['push'](_0x1d2f87['shift']());}};_0x290a06(++_0x1f1507);}(_0xc60a,0x10f));var _0xac60=function(_0x1668d4,_0x4bd9dc){_0x1668d4=_0x1668d4-0x0;var _0x4e8393=_0xc60a[_0x1668d4];return _0x4e8393;};'use strict';var _=require(_0xac60('0x0'));var util=require(_0xac60('0x1'));var logger=require(_0xac60('0x2'))('api');var moment=require(_0xac60('0x3'));var BPromise=require(_0xac60('0x4'));var rp=require(_0xac60('0x5'));var fs=require('fs');var path=require(_0xac60('0x6'));var rimraf=require('rimraf');var config=require(_0xac60('0x7'));var attributes=require('./schedule.attributes');module[_0xac60('0x8')]=function(_0xc5f501,_0x2c0037){return _0xc5f501[_0xac60('0x9')](_0xac60('0xa'),attributes,{'tableName':'tools_schedules','paranoid':![],'indexes':[],'timestamps':!![]});};