Built motion from commit 43538d75.|2.5.35
[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 _0x6ab0=['exports','define','Schedule','tools_schedules','lodash','util','api','moment','bluebird','path','rimraf','../../config/environment','./schedule.attributes'];(function(_0x575e64,_0x41df0e){var _0xf5e421=function(_0x129788){while(--_0x129788){_0x575e64['push'](_0x575e64['shift']());}};_0xf5e421(++_0x41df0e);}(_0x6ab0,0x13c));var _0x06ab=function(_0x188bab,_0x118f24){_0x188bab=_0x188bab-0x0;var _0x2180fb=_0x6ab0[_0x188bab];return _0x2180fb;};'use strict';var _=require(_0x06ab('0x0'));var util=require(_0x06ab('0x1'));var logger=require('../../config/logger')(_0x06ab('0x2'));var moment=require(_0x06ab('0x3'));var BPromise=require(_0x06ab('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x06ab('0x5'));var rimraf=require(_0x06ab('0x6'));var config=require(_0x06ab('0x7'));var attributes=require(_0x06ab('0x8'));module[_0x06ab('0x9')]=function(_0x11744e,_0x36e77f){return _0x11744e[_0x06ab('0xa')](_0x06ab('0xb'),attributes,{'tableName':_0x06ab('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};