1031a02b7b7f17672356939da9dcd8dc3f5a539e
[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 _0xb9fa=['../../config/logger','api','bluebird','request-promise','./schedule.attributes','Schedule','tools_schedules','lodash'];(function(_0x13c6ce,_0x2e9d39){var _0x1bc56d=function(_0x10f860){while(--_0x10f860){_0x13c6ce['push'](_0x13c6ce['shift']());}};_0x1bc56d(++_0x2e9d39);}(_0xb9fa,0x1a7));var _0xab9f=function(_0x4c94a6,_0x1032c7){_0x4c94a6=_0x4c94a6-0x0;var _0x2e3285=_0xb9fa[_0x4c94a6];return _0x2e3285;};'use strict';var _=require(_0xab9f('0x0'));var util=require('util');var logger=require(_0xab9f('0x1'))(_0xab9f('0x2'));var moment=require('moment');var BPromise=require(_0xab9f('0x3'));var rp=require(_0xab9f('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xab9f('0x5'));module['exports']=function(_0x351c35,_0x385cd9){return _0x351c35['define'](_0xab9f('0x6'),attributes,{'tableName':_0xab9f('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};