1dad4ed9f358520cad251cf92c09850f400880c8
[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 _0xacee=['path','rimraf','../../config/environment','./schedule.attributes','exports','define','Schedule','tools_schedules','lodash','util','../../config/logger','api','bluebird','request-promise'];(function(_0x18ac57,_0x276f49){var _0x3f0224=function(_0x339b3a){while(--_0x339b3a){_0x18ac57['push'](_0x18ac57['shift']());}};_0x3f0224(++_0x276f49);}(_0xacee,0x1e4));var _0xeace=function(_0x404cd6,_0x31feb5){_0x404cd6=_0x404cd6-0x0;var _0x4ee9e0=_0xacee[_0x404cd6];return _0x4ee9e0;};'use strict';var _=require(_0xeace('0x0'));var util=require(_0xeace('0x1'));var logger=require(_0xeace('0x2'))(_0xeace('0x3'));var moment=require('moment');var BPromise=require(_0xeace('0x4'));var rp=require(_0xeace('0x5'));var fs=require('fs');var path=require(_0xeace('0x6'));var rimraf=require(_0xeace('0x7'));var config=require(_0xeace('0x8'));var attributes=require(_0xeace('0x9'));module[_0xeace('0xa')]=function(_0x257cf4,_0x493101){return _0x257cf4[_0xeace('0xb')](_0xeace('0xc'),attributes,{'tableName':_0xeace('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};