039460a550b033adb678e9ccb2ed571fac32adf0
[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 _0xb9e7=['./schedule.attributes','exports','lodash','util','../../config/logger','moment','request-promise','rimraf','../../config/environment'];(function(_0x278e3c,_0x1c9cfd){var _0x3e2d9b=function(_0x34d928){while(--_0x34d928){_0x278e3c['push'](_0x278e3c['shift']());}};_0x3e2d9b(++_0x1c9cfd);}(_0xb9e7,0x185));var _0x7b9e=function(_0x21ecc8,_0x2bdead){_0x21ecc8=_0x21ecc8-0x0;var _0x510c1d=_0xb9e7[_0x21ecc8];return _0x510c1d;};'use strict';var _=require(_0x7b9e('0x0'));var util=require(_0x7b9e('0x1'));var logger=require(_0x7b9e('0x2'))('api');var moment=require(_0x7b9e('0x3'));var BPromise=require('bluebird');var rp=require(_0x7b9e('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x7b9e('0x5'));var config=require(_0x7b9e('0x6'));var attributes=require(_0x7b9e('0x7'));module[_0x7b9e('0x8')]=function(_0x207451,_0x1b3a7f){return _0x207451['define']('Schedule',attributes,{'tableName':'tools_schedules','paranoid':![],'indexes':[],'timestamps':!![]});};