Built motion from commit 14588770.|2.5.38
[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 _0xd9e7=['request-promise','path','./schedule.attributes','exports','define','Schedule','tools_schedules','lodash','../../config/logger','api','bluebird'];(function(_0x97c6ea,_0x4cffce){var _0x2d7f50=function(_0x54010e){while(--_0x54010e){_0x97c6ea['push'](_0x97c6ea['shift']());}};_0x2d7f50(++_0x4cffce);}(_0xd9e7,0xa1));var _0x7d9e=function(_0x5466ab,_0x227b13){_0x5466ab=_0x5466ab-0x0;var _0x40751a=_0xd9e7[_0x5466ab];return _0x40751a;};'use strict';var _=require(_0x7d9e('0x0'));var util=require('util');var logger=require(_0x7d9e('0x1'))(_0x7d9e('0x2'));var moment=require('moment');var BPromise=require(_0x7d9e('0x3'));var rp=require(_0x7d9e('0x4'));var fs=require('fs');var path=require(_0x7d9e('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x7d9e('0x6'));module[_0x7d9e('0x7')]=function(_0x531ff2,_0x113d0f){return _0x531ff2[_0x7d9e('0x8')](_0x7d9e('0x9'),attributes,{'tableName':_0x7d9e('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};