5dd3522740f6786f0cda9be66e7d586a7668f689
[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 _0x5af8=['path','rimraf','../../config/environment','exports','define','Schedule','tools_schedules','lodash','util','../../config/logger','api','bluebird','request-promise'];(function(_0x1f7001,_0x166eed){var _0x4a3d1d=function(_0x44635b){while(--_0x44635b){_0x1f7001['push'](_0x1f7001['shift']());}};_0x4a3d1d(++_0x166eed);}(_0x5af8,0xf1));var _0x85af=function(_0x47014e,_0x7decfc){_0x47014e=_0x47014e-0x0;var _0x16fae8=_0x5af8[_0x47014e];return _0x16fae8;};'use strict';var _=require(_0x85af('0x0'));var util=require(_0x85af('0x1'));var logger=require(_0x85af('0x2'))(_0x85af('0x3'));var moment=require('moment');var BPromise=require(_0x85af('0x4'));var rp=require(_0x85af('0x5'));var fs=require('fs');var path=require(_0x85af('0x6'));var rimraf=require(_0x85af('0x7'));var config=require(_0x85af('0x8'));var attributes=require('./schedule.attributes');module[_0x85af('0x9')]=function(_0x535186,_0x432a58){return _0x535186[_0x85af('0xa')](_0x85af('0xb'),attributes,{'tableName':_0x85af('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};