Built motion from commit (unavailable).|2.5.28
[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 _0xfaf8=['lodash','util','api','bluebird','exports','define','Sound','tools_sounds'];(function(_0xf9f0da,_0x4c282d){var _0x79d487=function(_0x1bd225){while(--_0x1bd225){_0xf9f0da['push'](_0xf9f0da['shift']());}};_0x79d487(++_0x4c282d);}(_0xfaf8,0xe8));var _0x8faf=function(_0x219035,_0x3bd808){_0x219035=_0x219035-0x0;var _0x76539c=_0xfaf8[_0x219035];return _0x76539c;};'use strict';var _=require(_0x8faf('0x0'));var util=require(_0x8faf('0x1'));var logger=require('../../config/logger')(_0x8faf('0x2'));var moment=require('moment');var BPromise=require(_0x8faf('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./sound.attributes');module[_0x8faf('0x4')]=function(_0x4cea42,_0x4fa021){return _0x4cea42[_0x8faf('0x5')](_0x8faf('0x6'),attributes,{'tableName':_0x8faf('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};