Built motion from commit 8c034dcd.|2.6.31
[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 _0x0295=['moment','bluebird','path','rimraf','../../config/environment','exports','define','Sound','tools_sounds','lodash','api'];(function(_0x40ac5e,_0x2de228){var _0x2839d6=function(_0x123d47){while(--_0x123d47){_0x40ac5e['push'](_0x40ac5e['shift']());}};_0x2839d6(++_0x2de228);}(_0x0295,0x1a0));var _0x5029=function(_0x20a791,_0x49718f){_0x20a791=_0x20a791-0x0;var _0xe0f198=_0x0295[_0x20a791];return _0xe0f198;};'use strict';var _=require(_0x5029('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x5029('0x1'));var moment=require(_0x5029('0x2'));var BPromise=require(_0x5029('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x5029('0x4'));var rimraf=require(_0x5029('0x5'));var config=require(_0x5029('0x6'));var attributes=require('./sound.attributes');module[_0x5029('0x7')]=function(_0x5d81ac,_0x298559){return _0x5d81ac[_0x5029('0x8')](_0x5029('0x9'),attributes,{'tableName':_0x5029('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};