9977ccc62101dba74aec4427e21ac809d6dbdf28
[motion2.git] / server / api / tag / tag.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 _0x727c=['api','moment','bluebird','request-promise','path','./tag.attributes','exports','define','Tag','tools_tags','lodash','util','../../config/logger'];(function(_0x2f7a2e,_0x1e912a){var _0x8ab899=function(_0x1a440d){while(--_0x1a440d){_0x2f7a2e['push'](_0x2f7a2e['shift']());}};_0x8ab899(++_0x1e912a);}(_0x727c,0x176));var _0xc727=function(_0x1066a3,_0x4ae4b6){_0x1066a3=_0x1066a3-0x0;var _0x488ca3=_0x727c[_0x1066a3];return _0x488ca3;};'use strict';var _=require(_0xc727('0x0'));var util=require(_0xc727('0x1'));var logger=require(_0xc727('0x2'))(_0xc727('0x3'));var moment=require(_0xc727('0x4'));var BPromise=require(_0xc727('0x5'));var rp=require(_0xc727('0x6'));var fs=require('fs');var path=require(_0xc727('0x7'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xc727('0x8'));module[_0xc727('0x9')]=function(_0x40c27f,_0x2e5074){return _0x40c27f[_0xc727('0xa')](_0xc727('0xb'),attributes,{'tableName':_0xc727('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};