Built motion from commit fa4c4286.|2.6.29
[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 _0x0971=['../../config/environment','exports','define','Schedule','tools_schedules','lodash','../../config/logger','bluebird','request-promise','path','rimraf'];(function(_0x16f9f1,_0xd4f411){var _0x381e5b=function(_0x900d0d){while(--_0x900d0d){_0x16f9f1['push'](_0x16f9f1['shift']());}};_0x381e5b(++_0xd4f411);}(_0x0971,0xaa));var _0x1097=function(_0x207811,_0x3420a6){_0x207811=_0x207811-0x0;var _0x170d56=_0x0971[_0x207811];return _0x170d56;};'use strict';var _=require(_0x1097('0x0'));var util=require('util');var logger=require(_0x1097('0x1'))('api');var moment=require('moment');var BPromise=require(_0x1097('0x2'));var rp=require(_0x1097('0x3'));var fs=require('fs');var path=require(_0x1097('0x4'));var rimraf=require(_0x1097('0x5'));var config=require(_0x1097('0x6'));var attributes=require('./schedule.attributes');module[_0x1097('0x7')]=function(_0x36d0e6,_0x45bc8a){return _0x36d0e6[_0x1097('0x8')](_0x1097('0x9'),attributes,{'tableName':_0x1097('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};