Built motion from commit (unavailable).|2.5.30
[motion2.git] / server / api / voiceQueue / voiceQueue.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 _0x9a38=['exports','define','VoiceQueue','lodash','../../config/logger','moment','bluebird','request-promise','path','../../config/environment'];(function(_0x3869fa,_0x16ef3f){var _0x209652=function(_0x527167){while(--_0x527167){_0x3869fa['push'](_0x3869fa['shift']());}};_0x209652(++_0x16ef3f);}(_0x9a38,0x71));var _0x89a3=function(_0x50a6f6,_0x2d741d){_0x50a6f6=_0x50a6f6-0x0;var _0x59c8ac=_0x9a38[_0x50a6f6];return _0x59c8ac;};'use strict';var _=require(_0x89a3('0x0'));var util=require('util');var logger=require(_0x89a3('0x1'))('api');var moment=require(_0x89a3('0x2'));var BPromise=require(_0x89a3('0x3'));var rp=require(_0x89a3('0x4'));var fs=require('fs');var path=require(_0x89a3('0x5'));var rimraf=require('rimraf');var config=require(_0x89a3('0x6'));var attributes=require('./voiceQueue.attributes');module[_0x89a3('0x7')]=function(_0x4ebfcf,_0x1dbe7b){return _0x4ebfcf[_0x89a3('0x8')](_0x89a3('0x9'),attributes,{'tableName':'voice_queues','paranoid':![],'indexes':[],'timestamps':!![]});};