180e004af1e16d821a45c930577719dae4efc832
[motion2.git] / server / api / pause / pause.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 _0x113b=['lodash','util','../../config/logger','moment','request-promise','rimraf','../../config/environment','define','Pause','tools_pauses'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x113b,0x1e0));var _0xb113=function(_0x411c26,_0xc2e2e7){_0x411c26=_0x411c26-0x0;var _0xea8278=_0x113b[_0x411c26];return _0xea8278;};'use strict';var _=require(_0xb113('0x0'));var util=require(_0xb113('0x1'));var logger=require(_0xb113('0x2'))('api');var moment=require(_0xb113('0x3'));var BPromise=require('bluebird');var rp=require(_0xb113('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xb113('0x5'));var config=require(_0xb113('0x6'));var attributes=require('./pause.attributes');module['exports']=function(_0x33844d,_0x4c376c){return _0x33844d[_0xb113('0x7')](_0xb113('0x8'),attributes,{'tableName':_0xb113('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};