Built motion from commit 9d7072cc.|2.5.39
[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 _0x58c8=['path','rimraf','../../config/environment','exports','define','Tag','lodash','util','../../config/logger','api','moment','request-promise'];(function(_0x167cc1,_0x56ef5a){var _0x10bc4b=function(_0xd6a255){while(--_0xd6a255){_0x167cc1['push'](_0x167cc1['shift']());}};_0x10bc4b(++_0x56ef5a);}(_0x58c8,0xc6));var _0x858c=function(_0x3f27d2,_0x337f01){_0x3f27d2=_0x3f27d2-0x0;var _0x6fde31=_0x58c8[_0x3f27d2];return _0x6fde31;};'use strict';var _=require(_0x858c('0x0'));var util=require(_0x858c('0x1'));var logger=require(_0x858c('0x2'))(_0x858c('0x3'));var moment=require(_0x858c('0x4'));var BPromise=require('bluebird');var rp=require(_0x858c('0x5'));var fs=require('fs');var path=require(_0x858c('0x6'));var rimraf=require(_0x858c('0x7'));var config=require(_0x858c('0x8'));var attributes=require('./tag.attributes');module[_0x858c('0x9')]=function(_0x1fa012,_0x1a120a){return _0x1fa012[_0x858c('0xa')](_0x858c('0xb'),attributes,{'tableName':'tools_tags','paranoid':![],'indexes':[],'timestamps':!![]});};