Built motion from commit bab6f49e.|2.6.17
[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 _0xa09d=['moment','bluebird','request-promise','rimraf','../../config/environment','exports','define','Sound','lodash','../../config/logger','api'];(function(_0x2e04ef,_0x31a596){var _0x5722b0=function(_0x386fbd){while(--_0x386fbd){_0x2e04ef['push'](_0x2e04ef['shift']());}};_0x5722b0(++_0x31a596);}(_0xa09d,0x126));var _0xda09=function(_0x273c39,_0x1052e6){_0x273c39=_0x273c39-0x0;var _0x46d6b5=_0xa09d[_0x273c39];return _0x46d6b5;};'use strict';var _=require(_0xda09('0x0'));var util=require('util');var logger=require(_0xda09('0x1'))(_0xda09('0x2'));var moment=require(_0xda09('0x3'));var BPromise=require(_0xda09('0x4'));var rp=require(_0xda09('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xda09('0x6'));var config=require(_0xda09('0x7'));var attributes=require('./sound.attributes');module[_0xda09('0x8')]=function(_0x23f88a,_0x4a8e27){return _0x23f88a[_0xda09('0x9')](_0xda09('0xa'),attributes,{'tableName':'tools_sounds','paranoid':![],'indexes':[],'timestamps':!![]});};