Built motion from commit (unavailable).|2.5.21
[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 _0xe36b=['tools_schedules','util','../../config/logger','moment','bluebird','request-promise','path','rimraf','../../config/environment','exports','define','Schedule'];(function(_0x4900f5,_0x15dda4){var _0x588951=function(_0x2f94fd){while(--_0x2f94fd){_0x4900f5['push'](_0x4900f5['shift']());}};_0x588951(++_0x15dda4);}(_0xe36b,0xd9));var _0xbe36=function(_0x4346eb,_0x1593ac){_0x4346eb=_0x4346eb-0x0;var _0x565baf=_0xe36b[_0x4346eb];return _0x565baf;};'use strict';var _=require('lodash');var util=require(_0xbe36('0x0'));var logger=require(_0xbe36('0x1'))('api');var moment=require(_0xbe36('0x2'));var BPromise=require(_0xbe36('0x3'));var rp=require(_0xbe36('0x4'));var fs=require('fs');var path=require(_0xbe36('0x5'));var rimraf=require(_0xbe36('0x6'));var config=require(_0xbe36('0x7'));var attributes=require('./schedule.attributes');module[_0xbe36('0x8')]=function(_0x29a8ed,_0x21e184){return _0x29a8ed[_0xbe36('0x9')](_0xbe36('0xa'),attributes,{'tableName':_0xbe36('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};