9792378f92517586897f11e08bddc4c626b74227
[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 _0x4180=['request-promise','path','rimraf','exports','define','Pause','lodash','../../config/logger','api','bluebird'];(function(_0x2718c7,_0x5a1636){var _0x59d89c=function(_0x4d4f49){while(--_0x4d4f49){_0x2718c7['push'](_0x2718c7['shift']());}};_0x59d89c(++_0x5a1636);}(_0x4180,0x7e));var _0x0418=function(_0x1e476b,_0x4ac7b3){_0x1e476b=_0x1e476b-0x0;var _0x4a75b2=_0x4180[_0x1e476b];return _0x4a75b2;};'use strict';var _=require(_0x0418('0x0'));var util=require('util');var logger=require(_0x0418('0x1'))(_0x0418('0x2'));var moment=require('moment');var BPromise=require(_0x0418('0x3'));var rp=require(_0x0418('0x4'));var fs=require('fs');var path=require(_0x0418('0x5'));var rimraf=require(_0x0418('0x6'));var config=require('../../config/environment');var attributes=require('./pause.attributes');module[_0x0418('0x7')]=function(_0x4a86f8,_0x5af629){return _0x4a86f8[_0x0418('0x8')](_0x0418('0x9'),attributes,{'tableName':'tools_pauses','paranoid':![],'indexes':[],'timestamps':!![]});};