4b39091548a434f7fb44a09b6b6c2f49bbcd2d7f
[motion2.git] / server / api / template / template.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 _0x46cc=['path','rimraf','./template.attributes','exports','define','Template','lodash','util','../../config/logger','api','bluebird','request-promise'];(function(_0x44dbb9,_0x55b599){var _0x4d1167=function(_0x269279){while(--_0x269279){_0x44dbb9['push'](_0x44dbb9['shift']());}};_0x4d1167(++_0x55b599);}(_0x46cc,0x1aa));var _0xc46c=function(_0x59fb70,_0x56af62){_0x59fb70=_0x59fb70-0x0;var _0x31e982=_0x46cc[_0x59fb70];return _0x31e982;};'use strict';var _=require(_0xc46c('0x0'));var util=require(_0xc46c('0x1'));var logger=require(_0xc46c('0x2'))(_0xc46c('0x3'));var moment=require('moment');var BPromise=require(_0xc46c('0x4'));var rp=require(_0xc46c('0x5'));var fs=require('fs');var path=require(_0xc46c('0x6'));var rimraf=require(_0xc46c('0x7'));var config=require('../../config/environment');var attributes=require(_0xc46c('0x8'));module[_0xc46c('0x9')]=function(_0x144294,_0xb45cd7){return _0x144294[_0xc46c('0xa')](_0xc46c('0xb'),attributes,{'tableName':'tools_templates','paranoid':![],'indexes':[],'timestamps':!![]});};