d74f92074ca4f3927da1eff0c0f89e42160adf41
[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 _0x2f57=['api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./tag.attributes','exports','define','Tag','tools_tags','lodash','util'];(function(_0x4af01e,_0x543f5c){var _0x178c11=function(_0x2c2f76){while(--_0x2c2f76){_0x4af01e['push'](_0x4af01e['shift']());}};_0x178c11(++_0x543f5c);}(_0x2f57,0x1a2));var _0x72f5=function(_0x41a0d5,_0x549fe6){_0x41a0d5=_0x41a0d5-0x0;var _0x25671c=_0x2f57[_0x41a0d5];return _0x25671c;};'use strict';var _=require(_0x72f5('0x0'));var util=require(_0x72f5('0x1'));var logger=require('../../config/logger')(_0x72f5('0x2'));var moment=require(_0x72f5('0x3'));var BPromise=require(_0x72f5('0x4'));var rp=require(_0x72f5('0x5'));var fs=require('fs');var path=require(_0x72f5('0x6'));var rimraf=require(_0x72f5('0x7'));var config=require(_0x72f5('0x8'));var attributes=require(_0x72f5('0x9'));module[_0x72f5('0xa')]=function(_0x253d27,_0x51fc13){return _0x253d27[_0x72f5('0xb')](_0x72f5('0xc'),attributes,{'tableName':_0x72f5('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};