Built motion from commit bab6f49e.|2.6.17
[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 _0x732e=['rimraf','../../config/environment','exports','define','Template','tools_templates','lodash','util','api','bluebird','request-promise'];(function(_0xd57008,_0x483961){var _0xdbbf10=function(_0x46e512){while(--_0x46e512){_0xd57008['push'](_0xd57008['shift']());}};_0xdbbf10(++_0x483961);}(_0x732e,0x10e));var _0xe732=function(_0xdb0cc5,_0x33653a){_0xdb0cc5=_0xdb0cc5-0x0;var _0x153aa=_0x732e[_0xdb0cc5];return _0x153aa;};'use strict';var _=require(_0xe732('0x0'));var util=require(_0xe732('0x1'));var logger=require('../../config/logger')(_0xe732('0x2'));var moment=require('moment');var BPromise=require(_0xe732('0x3'));var rp=require(_0xe732('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xe732('0x5'));var config=require(_0xe732('0x6'));var attributes=require('./template.attributes');module[_0xe732('0x7')]=function(_0x5379a0,_0x49495e){return _0x5379a0[_0xe732('0x8')](_0xe732('0x9'),attributes,{'tableName':_0xe732('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};