Built motion from commit 9e1399f3.|2.5.37
[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 _0x0e4f=['path','../../config/environment','./schedule.attributes','exports','define','Schedule','tools_schedules','util','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x572e09,_0x34fc03){var _0x4c3cb9=function(_0x506d93){while(--_0x506d93){_0x572e09['push'](_0x572e09['shift']());}};_0x4c3cb9(++_0x34fc03);}(_0x0e4f,0x173));var _0xf0e4=function(_0x318668,_0x4a5fa9){_0x318668=_0x318668-0x0;var _0x6c7c46=_0x0e4f[_0x318668];return _0x6c7c46;};'use strict';var _=require('lodash');var util=require(_0xf0e4('0x0'));var logger=require(_0xf0e4('0x1'))(_0xf0e4('0x2'));var moment=require(_0xf0e4('0x3'));var BPromise=require(_0xf0e4('0x4'));var rp=require(_0xf0e4('0x5'));var fs=require('fs');var path=require(_0xf0e4('0x6'));var rimraf=require('rimraf');var config=require(_0xf0e4('0x7'));var attributes=require(_0xf0e4('0x8'));module[_0xf0e4('0x9')]=function(_0x538ced,_0x31bfaf){return _0x538ced[_0xf0e4('0xa')](_0xf0e4('0xb'),attributes,{'tableName':_0xf0e4('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};