Built motion from commit fe909640.|2.6.8
[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 _0xbd09=['path','rimraf','../../config/environment','exports','define','tools_sounds','util','../../config/logger','request-promise'];(function(_0x45ad09,_0x521ab1){var _0x2084fd=function(_0x6fd212){while(--_0x6fd212){_0x45ad09['push'](_0x45ad09['shift']());}};_0x2084fd(++_0x521ab1);}(_0xbd09,0xf9));var _0x9bd0=function(_0x31e29a,_0x349c9b){_0x31e29a=_0x31e29a-0x0;var _0x32d892=_0xbd09[_0x31e29a];return _0x32d892;};'use strict';var _=require('lodash');var util=require(_0x9bd0('0x0'));var logger=require(_0x9bd0('0x1'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x9bd0('0x2'));var fs=require('fs');var path=require(_0x9bd0('0x3'));var rimraf=require(_0x9bd0('0x4'));var config=require(_0x9bd0('0x5'));var attributes=require('./sound.attributes');module[_0x9bd0('0x6')]=function(_0x17d679,_0x412903){return _0x17d679[_0x9bd0('0x7')]('Sound',attributes,{'tableName':_0x9bd0('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};