3364a0ae6c6a8be8860b6b16db55720e4c9f8226
[motion2.git] / server / api / voicePrefix / voicePrefix.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 _0xd585=['./voicePrefix.attributes','exports','define','VoicePrefix','voice_prefixes','lodash','util','../../config/logger','api','bluebird','request-promise','path'];(function(_0x38414b,_0x5b5b26){var _0x4981e1=function(_0x33d4c6){while(--_0x33d4c6){_0x38414b['push'](_0x38414b['shift']());}};_0x4981e1(++_0x5b5b26);}(_0xd585,0x1e5));var _0x5d58=function(_0x16668f,_0x2dd307){_0x16668f=_0x16668f-0x0;var _0x136b4=_0xd585[_0x16668f];return _0x136b4;};'use strict';var _=require(_0x5d58('0x0'));var util=require(_0x5d58('0x1'));var logger=require(_0x5d58('0x2'))(_0x5d58('0x3'));var moment=require('moment');var BPromise=require(_0x5d58('0x4'));var rp=require(_0x5d58('0x5'));var fs=require('fs');var path=require(_0x5d58('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x5d58('0x7'));module[_0x5d58('0x8')]=function(_0x19e56a,_0x45a569){return _0x19e56a[_0x5d58('0x9')](_0x5d58('0xa'),attributes,{'tableName':_0x5d58('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};