Built motion from commit (unavailable).|2.5.7
[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 _0x920c=['rimraf','exports','define','Tag','tools_tags','util','../../config/logger','api','request-promise'];(function(_0xf363f0,_0x3b5eeb){var _0x55a386=function(_0x548349){while(--_0x548349){_0xf363f0['push'](_0xf363f0['shift']());}};_0x55a386(++_0x3b5eeb);}(_0x920c,0x152));var _0xc920=function(_0x24c86a,_0x4131b5){_0x24c86a=_0x24c86a-0x0;var _0x3412ff=_0x920c[_0x24c86a];return _0x3412ff;};'use strict';var _=require('lodash');var util=require(_0xc920('0x0'));var logger=require(_0xc920('0x1'))(_0xc920('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xc920('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0xc920('0x4'));var config=require('../../config/environment');var attributes=require('./tag.attributes');module[_0xc920('0x5')]=function(_0x4fca9f,_0x352142){return _0x4fca9f[_0xc920('0x6')](_0xc920('0x7'),attributes,{'tableName':_0xc920('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};