8c273e95df30ccf0e1960480ad4807f4d7f6a74f
[motion2.git] / server / api / sound / sound.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 _0xf664=['exports','define','Sound','tools_sounds','lodash','api','bluebird','request-promise','rimraf','../../config/environment','./sound.attributes'];(function(_0x1c67a2,_0x599648){var _0x4fbd8e=function(_0x2e465b){while(--_0x2e465b){_0x1c67a2['push'](_0x1c67a2['shift']());}};_0x4fbd8e(++_0x599648);}(_0xf664,0x1f3));var _0x4f66=function(_0x1ff575,_0xdba21f){_0x1ff575=_0x1ff575-0x0;var _0x48fc9e=_0xf664[_0x1ff575];return _0x48fc9e;};'use strict';var _=require(_0x4f66('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x4f66('0x1'));var moment=require('moment');var BPromise=require(_0x4f66('0x2'));var rp=require(_0x4f66('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x4f66('0x4'));var config=require(_0x4f66('0x5'));var attributes=require(_0x4f66('0x6'));module[_0x4f66('0x7')]=function(_0x3b290b,_0x18763c){return _0x3b290b[_0x4f66('0x8')](_0x4f66('0x9'),attributes,{'tableName':_0x4f66('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};