Built motion from commit fe909640.|2.6.8
[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 _0xcbcc=['request-promise','path','../../config/environment','./schedule.attributes','exports','Schedule','tools_schedules','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x4ed4d2,_0x47acf7){var _0x15ae2e=function(_0x3199f0){while(--_0x3199f0){_0x4ed4d2['push'](_0x4ed4d2['shift']());}};_0x15ae2e(++_0x47acf7);}(_0xcbcc,0x125));var _0xccbc=function(_0x2be8c2,_0x14a4b5){_0x2be8c2=_0x2be8c2-0x0;var _0x97f531=_0xcbcc[_0x2be8c2];return _0x97f531;};'use strict';var _=require(_0xccbc('0x0'));var util=require(_0xccbc('0x1'));var logger=require(_0xccbc('0x2'))(_0xccbc('0x3'));var moment=require(_0xccbc('0x4'));var BPromise=require(_0xccbc('0x5'));var rp=require(_0xccbc('0x6'));var fs=require('fs');var path=require(_0xccbc('0x7'));var rimraf=require('rimraf');var config=require(_0xccbc('0x8'));var attributes=require(_0xccbc('0x9'));module[_0xccbc('0xa')]=function(_0x478b6d,_0x5e6ec6){return _0x478b6d['define'](_0xccbc('0xb'),attributes,{'tableName':_0xccbc('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};