Built motion from commit b5413ace.|2.6.9
[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 _0x9714=['define','Tag','tools_tags','lodash','util','moment','bluebird','path','../../config/environment','exports'];(function(_0x16f354,_0x2ca072){var _0x1a440d=function(_0x306ab9){while(--_0x306ab9){_0x16f354['push'](_0x16f354['shift']());}};_0x1a440d(++_0x2ca072);}(_0x9714,0x11b));var _0x4971=function(_0x35b18a,_0x6b2fbe){_0x35b18a=_0x35b18a-0x0;var _0x4db1bd=_0x9714[_0x35b18a];return _0x4db1bd;};'use strict';var _=require(_0x4971('0x0'));var util=require(_0x4971('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x4971('0x2'));var BPromise=require(_0x4971('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x4971('0x4'));var rimraf=require('rimraf');var config=require(_0x4971('0x5'));var attributes=require('./tag.attributes');module[_0x4971('0x6')]=function(_0x5bbff9,_0x4228b4){return _0x5bbff9[_0x4971('0x7')](_0x4971('0x8'),attributes,{'tableName':_0x4971('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};